|
@@ -1237,7 +1237,7 @@
|
|
|
if (this.rechargeVisible) {
|
|
if (this.rechargeVisible) {
|
|
|
this.rechargeBalance(payNum);
|
|
this.rechargeBalance(payNum);
|
|
|
} else {
|
|
} else {
|
|
|
- this.orderCreate();
|
|
|
|
|
|
|
+ this.orderCreate(payNum);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1438,7 +1438,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 创建订单
|
|
// 创建订单
|
|
|
- orderCreate() {
|
|
|
|
|
|
|
+ orderCreate(payNum) {
|
|
|
if (this.payType == "cash") {
|
|
if (this.payType == "cash") {
|
|
|
if (parseFloat(this.priceInfo.payPrice) > parseFloat(this.collection)) {
|
|
if (parseFloat(this.priceInfo.payPrice) > parseFloat(this.collection)) {
|
|
|
return this.$Message.error("您付款金额不足");
|
|
return this.$Message.error("您付款金额不足");
|
|
@@ -1451,6 +1451,12 @@
|
|
|
} else if (this.storeInfo.product_type == 4) {
|
|
} else if (this.storeInfo.product_type == 4) {
|
|
|
this.createOrder.new = 1;
|
|
this.createOrder.new = 1;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.payType == "") {
|
|
|
|
|
+ this.createOrder.auth_code=payNum
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.payType=='yue') {
|
|
|
|
|
+ this.createOrder.userCode=payNum
|
|
|
|
|
+ }
|
|
|
cashierCreate(this.userInfo.uid, this.createOrder)
|
|
cashierCreate(this.userInfo.uid, this.createOrder)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
let storage = window.localStorage;
|
|
let storage = window.localStorage;
|