调整 添加贸易条款

This commit is contained in:
浅念
2026-01-16 09:54:29 +08:00
parent 56f09c263f
commit 7b516404ce
11 changed files with 2316 additions and 807 deletions
+35 -9
View File
@@ -1,7 +1,15 @@
<template>
<view class="car-cards" @click="handleCardTap">
<view class="car-card">
<view class="car-cards" >
<view class="heard">
<view class="" @click="handleCardTap">
编号:{{item.code?item.code:'~'}}
</view>
<view v-if="ismy">
<u-icon @click="detilsfn(item)" name="edit-pen-fill" size="25" />
</view>
</view>
<view class="car-card" @click="handleCardTap">
<image class="thumb" :src="item.images_pull[0]" mode="aspectFill" />
<view class="info">
<view class="row row1">
@@ -26,14 +34,14 @@
</view>
<view class="kv">
<text class="k">里程</text>
<text class="v">{{ item.mileage }}</text>
<text class="v">{{ item.mileage }} <text v-if="item.mileage">Km</text> </text>
</view>
</view>
</view>
</view>
<!-- 操作区:保存 + 分享(方案A:卡片右下角悬浮) -->
<view class="card-actions">
<view class="actions-lift">
<view class="actions-lift" @click="handleCardTap">
<text class="">创建时间:</text>
<text class="">{{ item.created_at }}</text>
</view>
@@ -59,12 +67,22 @@
type: Object,
required: true
},
ismy:{
default: false,
type: Boolean
},
index: {
type: Number,
default: -1
}
},
methods: {
detilsfn(item){
const id = item.id
uni.navigateTo({
url: `/pages/index/publishedit?id=${id}`
})
},
formatPlateTime(dateStr) {
return String(dateStr || '').slice(0, 7) // "2026-01"
},
@@ -110,12 +128,12 @@
},
handleToggleSave() {
const item = this.item
if (item.pdf_src && item.pdf_src != '') {
this.downloadpdf(item)
} else {
// if (item.pdf_src && item.pdf_src != '') {
// this.downloadpdf(item)
// } else {
// 让父组件统一弹出输入框(避免列表里每个卡片都渲染一个 popup)
this.$emit('request-price', { item, index: this.index })
}
this.$emit('request-price', { item, index: this.index })
// }
},
buildShareLink(id) {
// 统一生成"详情页路径"
@@ -230,6 +248,14 @@
</script>
<style lang="scss" scoped>
.heard{
padding: 5px 10px;
color: #666;
font-size: 12px;
display: flex;
align-items: center;
justify-content: space-between;
}
.car-cards {
padding-bottom: 6rpx; // 预留右下角按钮空间,避免遮挡信息
border-radius: 18rpx;