商品券处理
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 先下单后支付 -->
|
||||
<orderInfoAfter ref="orderInfoAfter" :listinfo="listinfo" @setPayAmount="setPayAmount" v-if="listinfo.useType == 'dine-in-after'"></orderInfoAfter>
|
||||
<orderInfoAfter ref="orderInfoAfterRef" :amountVIP="amountVIP" :listinfo="listinfo" @setPayAmount="setPayAmount" v-if="listinfo.useType == 'dine-in-after'"></orderInfoAfter>
|
||||
<!-- 先支付后下单 -->
|
||||
<orderInfoBefore ref="orderInfoBefore" :listinfo="listinfo" v-else></orderInfoBefore>
|
||||
<!-- 积分兑换订单详情 -->
|
||||
@@ -96,11 +96,16 @@
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
this.orderId = e.orderId
|
||||
this.orderorderInfo()
|
||||
},
|
||||
onShow() {
|
||||
this.orderorderInfo()
|
||||
if ( this.listinfo.useType == "dine-in-after") {
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.orderInfoAfterRef.childOnShow();
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
onUnload() {
|
||||
this.ispws = false
|
||||
@@ -116,8 +121,10 @@
|
||||
},
|
||||
methods: {
|
||||
setPayAmount(payAmount) {
|
||||
console.log("payAmount===",payAmount)
|
||||
this.listinfo.payAmount = payAmount
|
||||
this.$forceUpdate()
|
||||
// this.$set(this.listinfo,"payAmount",payAmount)
|
||||
// this.$forceUpdate()
|
||||
},
|
||||
saveImage (url) {
|
||||
uni.saveImage({
|
||||
@@ -157,17 +164,19 @@
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.listinfo = res.data;
|
||||
console.log(this.listinfo.orderInfo.couponInfoList)
|
||||
if ( this.listinfo.orderInfo.couponInfoList ) {
|
||||
this.listinfo.orderInfo.couponInfoList = JSON.parse(this.listinfo.orderInfo.couponInfoList)
|
||||
// this.listinfo.orderInfo.couponInfoList = eval('(' + jsonString + ')')
|
||||
}
|
||||
this.listinfoid = res.data.orderId;
|
||||
this.shopId = res.data.shopId;
|
||||
if (this.listinfo.useType == " ") {
|
||||
//堂食先付费
|
||||
}
|
||||
console.log(this.listinfo)
|
||||
if ( this.listinfo.useType == "dine-in-after") {
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.orderInfoAfterRef.childOnShow();
|
||||
})
|
||||
}
|
||||
this.getAount();
|
||||
}
|
||||
},
|
||||
@@ -181,10 +190,6 @@
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 去支付
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user