支付方式优化,外带订单去除table参数
This commit is contained in:
@@ -86,11 +86,19 @@
|
||||
payAmount:{
|
||||
immediate: true,
|
||||
handler (newVal) {
|
||||
if ( this.amountVIP.amount < newVal) {
|
||||
// #ifdef MP-WEIXIN
|
||||
this.radiovalue = 2
|
||||
// #endif
|
||||
// #ifdef MP-ALIPAY
|
||||
this.radiovalue = 3
|
||||
// #endif
|
||||
}
|
||||
if ( newVal <= 0 ) {
|
||||
this.radiovalue = 1
|
||||
let name = this.paymentMethodName[this.radiovalue-1].name;
|
||||
this.$emit("groupChange",{type:this.radiovalue ,name: name })
|
||||
}
|
||||
let name = this.paymentMethodName[this.radiovalue-1].name;
|
||||
this.$emit("groupChange",{type:this.radiovalue ,name: name })
|
||||
}
|
||||
},
|
||||
rechargeFreeChecked:{
|
||||
|
||||
@@ -880,7 +880,6 @@
|
||||
}
|
||||
|
||||
let params = {
|
||||
"tableId": this.tableCode , //桌台码
|
||||
"shopId": uni.cache.get('shopId'),
|
||||
"userId": uni.cache.get('userInfo').id,
|
||||
"sendType": this.sendType,
|
||||
@@ -892,6 +891,7 @@
|
||||
if ( this.userCouponInfos ) {
|
||||
params.userCouponInfos = this.userCouponInfos
|
||||
}
|
||||
if ( this.tableCode && this.sendType == "table") { params.tableId = this.tableCode; }
|
||||
let res = await this.api.creatOrder(params)
|
||||
this.listinfoid = res.data.id;
|
||||
if ( this.storeInfo.registerType == 'restaurant') {
|
||||
|
||||
@@ -138,7 +138,8 @@
|
||||
this.$refs.orderInfoAfterRef.childOnShow();
|
||||
})
|
||||
}
|
||||
if ( this.listinfo ) {
|
||||
console.log(JSON.stringify(this.listinfo))
|
||||
if ( JSON.stringify(this.listinfo) != '{}' ) {
|
||||
this.getAount();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user