|
@@ -50,6 +50,8 @@
|
|
|
radiovalue1: '', //选中项的下标
|
|
|
couponId: '', //选中项的id
|
|
|
boxId: '',
|
|
|
+ ticketId:'',
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
@@ -57,6 +59,10 @@
|
|
|
},
|
|
|
onLoad(opthios) {
|
|
|
this.boxId = opthios.boxId
|
|
|
+
|
|
|
+ if(opthios.ticketId){
|
|
|
+ this.ticketId = opthios.ticketId
|
|
|
+ }
|
|
|
if (opthios.couponId) {
|
|
|
this.couponId = opthios.couponId
|
|
|
this.radiovalue1 = opthios.couponId
|
|
@@ -104,10 +110,12 @@
|
|
|
|
|
|
// 点击确认事件
|
|
|
exchange() {
|
|
|
+ console.log(this.ticketId)
|
|
|
let data = {
|
|
|
userCouponIds: this.couponId,
|
|
|
autoCoupon: 0,
|
|
|
boxId: this.boxId,
|
|
|
+ ticketId: this.ticketId,
|
|
|
orderNum: 1
|
|
|
}
|
|
|
$http.post('/api/v1/mp/user/ticket/order/settle', data).then(res => {
|