Feat(提交订单):UI调整(已完成)

This commit is contained in:
modendeveloper
2024-09-08 15:10:49 +08:00
parent b9b47ef816
commit 22f2e9779a
6 changed files with 215 additions and 126 deletions
+4 -2
View File
@@ -61,7 +61,8 @@ export default {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
current: 0,
couponId: uni.getStorageSync('couponId') || 0
couponId: uni.getStorageSync('couponId') || 0,
selectItem: {}
}
},
computed: {
@@ -88,6 +89,7 @@ export default {
},
selectCoupon(id) {
this.couponId = id
this.selectItem = this.list.find(e => e.id === id)
this.list.map(item => {
item.checked = id === item.id
})
@@ -95,7 +97,7 @@ export default {
setCoupon() {
if (this.current === 1) return
uni.setStorageSync('couponId', this.couponId)
this.$emit('change')
this.$emit('change', this.selectItem || {})
}
}
}