|
@@ -50,8 +50,8 @@
|
|
radiovalue1: '', //选中项的下标
|
|
radiovalue1: '', //选中项的下标
|
|
couponId: '', //选中项的id
|
|
couponId: '', //选中项的id
|
|
boxId: '',
|
|
boxId: '',
|
|
- ticketId:'',
|
|
|
|
-
|
|
|
|
|
|
+ ticketId: '',
|
|
|
|
+
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -59,8 +59,8 @@
|
|
},
|
|
},
|
|
onLoad(opthios) {
|
|
onLoad(opthios) {
|
|
this.boxId = opthios.boxId
|
|
this.boxId = opthios.boxId
|
|
-
|
|
|
|
- if(opthios.ticketId){
|
|
|
|
|
|
+
|
|
|
|
+ if (opthios.ticketId) {
|
|
this.ticketId = opthios.ticketId
|
|
this.ticketId = opthios.ticketId
|
|
}
|
|
}
|
|
if (opthios.couponId) {
|
|
if (opthios.couponId) {
|
|
@@ -97,12 +97,11 @@
|
|
|
|
|
|
// 点击切换事件
|
|
// 点击切换事件
|
|
changeChechk(e) {
|
|
changeChechk(e) {
|
|
-
|
|
|
|
- if(this.couponId == e){
|
|
|
|
|
|
+ if (this.couponId == e) {
|
|
this.radiovalue1 = -1
|
|
this.radiovalue1 = -1
|
|
this.couponId = []
|
|
this.couponId = []
|
|
return
|
|
return
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.couponId = [e]
|
|
this.couponId = [e]
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -110,7 +109,6 @@
|
|
|
|
|
|
// 点击确认事件
|
|
// 点击确认事件
|
|
exchange() {
|
|
exchange() {
|
|
- console.log(this.ticketId)
|
|
|
|
let data = {
|
|
let data = {
|
|
userCouponIds: this.couponId,
|
|
userCouponIds: this.couponId,
|
|
autoCoupon: 0,
|
|
autoCoupon: 0,
|
|
@@ -130,7 +128,7 @@
|
|
.data.couponList[0].discount,
|
|
.data.couponList[0].discount,
|
|
couponId: res.data && res.data.couponList && res.data.couponList.length && res.data
|
|
couponId: res.data && res.data.couponList && res.data.couponList.length && res.data
|
|
.couponList[0].id,
|
|
.couponList[0].id,
|
|
- listNum:this.listNum
|
|
|
|
|
|
+ listNum: this.listNum
|
|
}
|
|
}
|
|
page.$vm.payInfo = payInfo
|
|
page.$vm.payInfo = payInfo
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|