fix: 修复bug
parent
c7b67f2aae
commit
c4fc7ec96e
|
@ -21,7 +21,7 @@
|
|||
"env": {
|
||||
"UNI_PLATFORM": "h5",
|
||||
"isVConsole": true,
|
||||
"APP_BASE_URL": "http://192.168.1.147:48080"
|
||||
"APP_BASE_URL": "http://192.168.1.188:48080"
|
||||
}
|
||||
},
|
||||
"prod": {
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
onLoad(options) {
|
||||
if (options.order_id) this.orderId = options.order_id
|
||||
if (options.from_type) this.fromType = options.from_type
|
||||
// this.getCashierOrder()
|
||||
this.getCashierOrder()
|
||||
},
|
||||
onShow() {
|
||||
let options = wx.getEnterOptionsSync();
|
||||
|
@ -175,7 +175,7 @@
|
|||
},
|
||||
getCashierOrder() {
|
||||
uni.showLoading({
|
||||
title: '创建订单中'
|
||||
title: '加载中'
|
||||
});
|
||||
getCashierOrder(this.orderId, this.fromType).then(res => {
|
||||
console.log(res)
|
||||
|
|
|
@ -617,7 +617,7 @@
|
|||
let that = this;
|
||||
orderCreate(data).then(res => {
|
||||
console.log(res.data,'订单信息')
|
||||
that.getOrderPay(res.data.orderNo, '支付成功');
|
||||
that.getOrderPay(res.data.columns.orderNo, '支付成功');
|
||||
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
|
@ -628,6 +628,7 @@
|
|||
},
|
||||
getOrderPay: function(orderNo, message) {
|
||||
let that = this;
|
||||
console.log('orderNO---', orderNo)
|
||||
uni.navigateTo({
|
||||
url: '/pages/goods_cashier/index?order_id=' + orderNo
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue