Commit ee90ca7e by 李伟康

commit 还原历史成交

1 parent 466d2d24
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
</view> </view>
</template> </template>
<template v-if="list.length > 0"> <template v-if="list.length > 0">
<!-- {'has-tabs':views && views.length > 1} -->
<scroll-view <scroll-view
:class="['record-box',{'has-tabs':views && views.length > 1}]" :class="['record-box']"
scroll-y scroll-y
:scroll-top="scrollTop" :scroll-top="scrollTop"
@scrolltolower="pageonReachBottom" @scrolltolower="pageonReachBottom"
...@@ -120,11 +121,30 @@ export default { ...@@ -120,11 +121,30 @@ export default {
}, 100); }, 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: { computed: {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
watchCarModel () {
return this.$store.state.user.customerInfo.carModel
}
}, },
mounted () { mounted () {
if (this.show) this.init() if (this.show) this.init()
...@@ -149,7 +169,19 @@ export default { ...@@ -149,7 +169,19 @@ export default {
goodsName, goodsName,
orderStatus: 3, 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) { } catch (error) {
if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`) if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
} }
...@@ -271,10 +303,10 @@ export default { ...@@ -271,10 +303,10 @@ export default {
.value { .value {
font-size: 24rpx; font-size: 24rpx;
color: #666666; color: #666666;
margin-left: auto; // margin-left: auto;
} }
.price { .price {
margin-left: auto; // margin-left: auto;
display: flex; display: flex;
align-items: baseline; align-items: baseline;
font-weight: 500; font-weight: 500;
...@@ -286,7 +318,15 @@ export default { ...@@ -286,7 +318,15 @@ export default {
} }
} }
.image-box { .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 { .gradient-overlay {
z-index: -1; z-index: -1;
...@@ -338,7 +378,8 @@ export default { ...@@ -338,7 +378,8 @@ export default {
z-index: -1; z-index: -1;
} }
.card-info { .card-info {
.value,.price { .value,
.price {
margin-left: 0; margin-left: 0;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!