Merge branch 'dev' of https://gitee.com/fengyuze178/xdd-uniapp-new into dev
This commit is contained in:
@@ -157,8 +157,10 @@ export default {
|
||||
return maxIndex
|
||||
},
|
||||
largOne() {
|
||||
if(this.list[this.maxIndex]) {
|
||||
this.selectCoupon(this.list[this.maxIndex].id)
|
||||
return this.list[this.maxIndex]
|
||||
}
|
||||
return this.list[this.maxIndex] || {}
|
||||
}
|
||||
|
||||
},
|
||||
@@ -171,7 +173,7 @@ export default {
|
||||
},
|
||||
selectCoupon(id) {
|
||||
this.couponId = id
|
||||
this.selectItem = this.list.find(e => e.id === id)
|
||||
this.selectItem = this.list.find(e => e.id === id) || {}
|
||||
this.list.map(item => {
|
||||
item.checked = id === item.id
|
||||
})
|
||||
|
||||
@@ -268,8 +268,8 @@ export default {
|
||||
padding: 20rpx 20rpx 0 48rpx;
|
||||
|
||||
.item {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
width: 175rpx;
|
||||
height: 175rpx;
|
||||
margin-right: 20rpx;
|
||||
border-radius: 26rpx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user