调支付
This commit is contained in:
@@ -171,7 +171,7 @@
|
||||
以优惠¥{{emitorderfoodform.couponsPrice}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="fixedview_tow" @tap="$u.debounce(showpopupclick, 1000)">
|
||||
<view class="fixedview_tow" @tap="$u.debounce(showpopupclick, 500)">
|
||||
立即付款
|
||||
</view>
|
||||
</view>
|
||||
@@ -210,7 +210,6 @@
|
||||
// 输入支付密码 123
|
||||
passwordArr: [],
|
||||
ispws: false,
|
||||
numValue: 0
|
||||
};
|
||||
},
|
||||
|
||||
@@ -255,11 +254,11 @@
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
fangdouevent() {
|
||||
this.$u.debounce(() => {
|
||||
this.showpopupclick()
|
||||
}, 1000)
|
||||
},
|
||||
// fangdouevent() {
|
||||
// this.$u.debounce(() => {
|
||||
// this.showpopupclick()
|
||||
// }, 1000)
|
||||
// },
|
||||
async getcoupon() {
|
||||
let res = await this.api.userCoupon({
|
||||
"orderNum": this.listinfo.amount,
|
||||
@@ -342,7 +341,6 @@
|
||||
},
|
||||
// 去结算
|
||||
showpopupclick() {
|
||||
if (this.numValue == 0) {
|
||||
let data = { //定义socket数据传参
|
||||
"skuId": '',
|
||||
"num": '', //数量
|
||||
@@ -355,11 +353,7 @@
|
||||
"userId": uni.cache.get('userInfo').id,
|
||||
// tableId:uni.cache.get('tableCode')
|
||||
}
|
||||
this.numValue = 1
|
||||
uni.$u.debounce(this.socketSendMsg(data), 500)
|
||||
} else {
|
||||
this.showpopupclickdd()
|
||||
}
|
||||
this.socketSendMsg(data)
|
||||
},
|
||||
// 去充值
|
||||
goRecharge() {
|
||||
@@ -369,7 +363,6 @@
|
||||
},
|
||||
|
||||
async showpopupclickdd(i) {
|
||||
|
||||
if (this.radiovalue1 == 1) {
|
||||
let res = await this.api.payorderPay({
|
||||
orderId: this.listinfoid
|
||||
@@ -399,7 +392,8 @@
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/successful?orderId=' + this
|
||||
.listinfoid + '&orderInfo=' + JSON.stringify(
|
||||
this.orderInfo) + '&payType' + this.radiovalue1
|
||||
this.orderInfo) + '&payType' + this
|
||||
.radiovalue1
|
||||
});
|
||||
}, 1000)
|
||||
// uni.redirectTo({
|
||||
@@ -456,7 +450,8 @@
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/successful?orderId=' + this
|
||||
.listinfoid + '&orderInfo=' + JSON.stringify(
|
||||
this.orderInfo)+ '&radiovalue1=' + this.radiovalue1
|
||||
this.orderInfo) + '&radiovalue1=' + this
|
||||
.radiovalue1
|
||||
});
|
||||
}, 1000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user