Feat(提交订单):UI调整(已完成)
This commit is contained in:
@@ -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 || {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user