调试支付

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

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

Loading…
Cancel
Save