|
@@ -1104,6 +1104,8 @@
|
|
addressId = ''
|
|
addressId = ''
|
|
storeid = that.storeId
|
|
storeid = that.storeId
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
orderConfirm(that.cartId, that.news, addressId, shippingType, storeid, that.couponId).then(res => {
|
|
orderConfirm(that.cartId, that.news, addressId, shippingType, storeid, that.couponId).then(res => {
|
|
if (res.data.upgrade_addr == 1) {
|
|
if (res.data.upgrade_addr == 1) {
|
|
that.id = res.data.addressInfo.id
|
|
that.id = res.data.addressInfo.id
|
|
@@ -1352,7 +1354,9 @@
|
|
},
|
|
},
|
|
payment: function(data) {
|
|
payment: function(data) {
|
|
let that = this;
|
|
let that = this;
|
|
|
|
+ console.log(data,'data')
|
|
orderCreate(that.orderKey, data).then(res => {
|
|
orderCreate(that.orderKey, data).then(res => {
|
|
|
|
+ console.log(res,'resres')
|
|
let status = res.data.status,
|
|
let status = res.data.status,
|
|
orderId = res.data.result.orderId,
|
|
orderId = res.data.result.orderId,
|
|
jsConfig = res.data.result.jsConfig,
|
|
jsConfig = res.data.result.jsConfig,
|
|
@@ -1486,6 +1490,7 @@
|
|
}, 2000)
|
|
}, 2000)
|
|
},
|
|
},
|
|
fail: (e) => {
|
|
fail: (e) => {
|
|
|
|
+ console.log(e,'ee')
|
|
let url = '/pages/goods/order_pay_status/index?order_id=' + orderId +
|
|
let url = '/pages/goods/order_pay_status/index?order_id=' + orderId +
|
|
'&msg=支付失败';
|
|
'&msg=支付失败';
|
|
uni.showModal({
|
|
uni.showModal({
|