细节修改

This commit is contained in:
Xulinchuan 2025-07-21 15:23:31 +08:00
parent da255070ff
commit cd63935b92
5 changed files with 7 additions and 5 deletions

View File

@ -12,6 +12,7 @@ declare module 'vue' {
BreadComp: typeof import('./src/components/breadComp.vue')['default']
CenterMap: typeof import('./src/components/centerMap.vue')['default']
CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default']
copy: typeof import('./src/components/custom-scroll-title copy/index.vue')['default']
CostomImg: typeof import('./src/components/costomImg.vue')['default']
CustomBack: typeof import('./src/components/customBack.vue')['default']
CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default']

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>
</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>
@ -220,7 +220,7 @@
<!-- 核心配件 -->
<div style="margin-bottom: 10px">
<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>
</p>
<div style="display: flex; flex-wrap: wrap; /* 允许换行 */ gap: 4px; /* 元素间距 */ justify-content: space-around; /* 左对齐 */">

View File

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