设置不同角色 显示

This commit is contained in:
浅念
2026-01-19 14:47:43 +08:00
parent 7b516404ce
commit 322530a658
18 changed files with 1697 additions and 1063 deletions
+30
View File
@@ -52,6 +52,9 @@
<view class="action-btn" @tap.stop="handleShare">
<u-icon name="share" size="18" />
</view>
<view class="action-btn" @tap.stop="handleSet(item)" v-if="item.status==1">
<u-icon name="setting" size="18" />
</view>
</view>
</view>
</view>
@@ -89,6 +92,33 @@
pdfchanges() {
this.$emit('pdfchange')
},
handleSet(item){
const that = this
uni.showModal({
title: '提示',
content: '确认标记已售出?',
success: res => {
if (res.confirm) {
request({
url:'common/usedcar/update/status',
method:'post',
data: {id:item.id,status:2}
}).then(res => {
uni.showToast({
title: res.data.message,
icon: 'none'
});
setTimeout(() => {
that.$emit('restchange')
}, 1000);
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
handleCardTap() {
// 直接处理跳转,避免事件传递问题
if (this.item && this.item.id) {