Commit ee90ca7e by 李伟康

commit 还原历史成交

1 parent 466d2d24
......@@ -10,8 +10,9 @@
</view>
</template>
<template v-if="list.length > 0">
<!-- {'has-tabs':views && views.length > 1} -->
<scroll-view
:class="['record-box',{'has-tabs':views && views.length > 1}]"
:class="['record-box']"
scroll-y
:scroll-top="scrollTop"
@scrolltolower="pageonReachBottom"
......@@ -120,11 +121,30 @@ export default {
}, 100);
}
},
watchCarModel: {
immediate: true,
handler (newval) {
if (this.madiaId == 4) {
// this.list = uni.$storage.get("historyList")
let index = {
'问界M5': 'M5',
'问界M7': 'M7',
'问界M9': 'M9'
}[newval]
this.list = []
this.pageNum = 1
return this.goodsName = index || null
}
}
}
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
watchCarModel () {
return this.$store.state.user.customerInfo.carModel
}
},
mounted () {
if (this.show) this.init()
......@@ -149,7 +169,19 @@ export default {
goodsName,
orderStatus: 3,
})
if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
if (pageNum == 1) {
uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
if (goodsName && this.list.length == 0) {
await this.getList('getQuotationList', {
merchantId: shopMerchantId,
pageNum,
pageSize,
goodsName: null,
orderStatus: 3,
})
}
}
// if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
} catch (error) {
if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
}
......@@ -271,10 +303,10 @@ export default {
.value {
font-size: 24rpx;
color: #666666;
margin-left: auto;
// margin-left: auto;
}
.price {
margin-left: auto;
// margin-left: auto;
display: flex;
align-items: baseline;
font-weight: 500;
......@@ -286,7 +318,15 @@ export default {
}
}
.image-box {
display: none;
display: block;
position: absolute;
right: 0rpx;
top: 0rpx;
width: 252rpx;
height: 364rpx;
border-radius: 0 32rpx 32rpx 0;
z-index: -1;
// display: none;
}
.gradient-overlay {
z-index: -1;
......@@ -338,7 +378,8 @@ export default {
z-index: -1;
}
.card-info {
.value,.price {
.value,
.price {
margin-left: 0;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!