This commit is contained in:
郭永超 2025-07-21 15:24:27 +08:00
commit df80a4bb84
4 changed files with 6 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

View File

@ -82,7 +82,7 @@
<p style="color: #25bf82; font-size: 16px">1800 /</p> <p style="color: #25bf82; font-size: 16px">1800 /</p>
</div> </div>
<div> <div>
<el-button type="primary" size="large" style="width: 120px">立即租用</el-button> <el-button type="primary" size="large" style="width: 120px">立即预约</el-button>
</div> </div>
</div> </div>
</div> </div>
@ -220,7 +220,7 @@
<!-- 核心配件 --> <!-- 核心配件 -->
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<p style="display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: bold; margin-bottom: 5px"> <p style="display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: bold; margin-bottom: 5px">
<img style="width: 33px; height: 33px" src="../../../assets/images/njIcon/js.png" alt="" /> <img style="width: 33px; height: 33px" src="../../../assets/images/njIcon/pj.png" alt="" />
<span>核心配件</span> <span>核心配件</span>
</p> </p>
<div style="display: flex; flex-wrap: wrap; /* 允许换行 */ gap: 4px; /* 元素间距 */ justify-content: space-around; /* 左对齐 */"> <div style="display: flex; flex-wrap: wrap; /* 允许换行 */ gap: 4px; /* 元素间距 */ justify-content: space-around; /* 左对齐 */">

View File

@ -74,7 +74,7 @@ onMounted(() => {
queryList(); queryList();
}); });
const extractText = (htmlText, maxChars = 80) => { const extractText = (htmlText, maxChars = 86) => {
// HTML // HTML
const cleanText = htmlText.replace(/<[^>]+>/g, ''); const cleanText = htmlText.replace(/<[^>]+>/g, '');
// //
@ -90,8 +90,9 @@ const queryList = () => {
for (let i in res.data.records) { for (let i in res.data.records) {
tableData.value[i].content = extractText(res.data.records[i].content); tableData.value[i].content = extractText(res.data.records[i].content);
if (tableData.value[i].content.length > 80) { if (tableData.value[i].content.length > 80) {
tableData.value[i].content += '...'; tableData.value[i].content += '......';
} }
console.log(tableData.value[i].content, tableData.value[i].content.length);
} }
} }
}); });

View File

@ -21,7 +21,7 @@
</div> --> </div> -->
<p class="mt-2 text-gray-700">报价{{ data.price }}/</p> <p class="mt-2 text-gray-700">报价{{ data.price }}/</p>
<p class="mt-2 text-gray-700">关键词{{ data.type }}</p> <p class="mt-2 text-gray-700">关键词{{ data.type }}</p>
<p class="mt-2 text-gray-700">所在地{{ data.location }}</p> <p class="mt-2 text-gray-700">所在地{{ data.address }}</p>
<p class="mt-2 text-gray-700">联系人{{ data.contact }}</p> <p class="mt-2 text-gray-700">联系人{{ data.contact }}</p>
<p class="mt-2 text-gray-700">联系电话{{ data.phone }}</p> <p class="mt-2 text-gray-700">联系电话{{ data.phone }}</p>
<div> <div>