调试支付

feature/v-xuexi
wangdong 8 months ago
parent c541051a8f
commit 3886709bfa
  1. 4
      components/PayDialog/index.vue
  2. 5
      pages/special/order_store_list.vue

@ -249,7 +249,6 @@ export default {
Object.assign(backUrlCRshlcICwGdGY, this.signs);
// JSON
if (this.pay_type_num === 20) {
console.log(backUrlCRshlcICwGdGY.event);
backUrlCRshlcICwGdGY.price_id = this.priceId;
backUrlCRshlcICwGdGY.event && backUrlCRshlcICwGdGY.event.forEach((item) => {
if (item.event_type === 3 && typeof item.event_value != "string") {
@ -261,10 +260,8 @@ export default {
if (this.pay_type_num === 40) {
backUrlCRshlcICwGdGY.useGold = this.useGold;
}
console.log(backUrlCRshlcICwGdGY);
try {
const data = await createOrder(backUrlCRshlcICwGdGY);
console.log(data.msg);
uni.hideLoading();
if (data.code === 200) {
this.$emit("change", {
@ -276,7 +273,6 @@ export default {
this.$emit("update:open", false);
}
} catch (err) {
console.log(err)
uni.hideLoading();
this.$util.showMsg(err.msg);
}

@ -241,7 +241,6 @@
this.id = order.id;
this.money = order.pay_price;
this.payDialogOpen = true;
console.log(order);
},
userTake(item) {
uni.showModal({
@ -265,7 +264,6 @@
},
pay_order(data) {
this.orderId = data.data.result.orderId || "";
console.log(data, 267);
switch (data.data.status) {
case "PAY_ERROR":
case "ORDER_EXIST":
@ -309,7 +307,6 @@
},
extendOrder: function (msg) {
console.log(msg, 310);
this.payDialogOpen = false;
if (typeof msg === "object") {
if (msg.errMsg === "chooseWXPay:cancel") {
@ -325,7 +322,6 @@
},
//
changeVal: function (opt) {
console.log(opt, 327)
if (typeof opt != "object") opt = {};
var action = opt.action || "";
var value = opt.value || "";
@ -397,7 +393,6 @@
};
this.getOrderList();
} catch (err) {
console.log(err);
uni.hideLoading();
this.$util.showMsg(err.msg);
}

Loading…
Cancel
Save