...
|
...
|
@@ -38,7 +38,6 @@ Page({ |
|
|
title: '',
|
|
|
});
|
|
|
let params = {
|
|
|
uid: '500031182',
|
|
|
skup: this.data.skup,
|
|
|
debug: 'XYZ'
|
|
|
}
|
...
|
...
|
@@ -63,7 +62,6 @@ Page({ |
|
|
})
|
|
|
|
|
|
let params = {
|
|
|
uid: '500031182',
|
|
|
debug: 'XYZ'
|
|
|
}
|
|
|
|
...
|
...
|
@@ -107,14 +105,13 @@ Page({ |
|
|
let addressId = this.data.hasAddress && this.data.address && this.data.address.address_id
|
|
|
let skup = this.data.skup
|
|
|
let channelNo = ''
|
|
|
let uid = '500031182'
|
|
|
|
|
|
let api = new orderService()
|
|
|
wx.showLoading({
|
|
|
title: '',
|
|
|
})
|
|
|
|
|
|
api.buyerSubmit(uid,skup,channelNo,addressId, () => wx.hideLoading())
|
|
|
api.buyerSubmit(skup,channelNo,addressId, () => wx.hideLoading())
|
|
|
.then(data => {
|
|
|
if (data && data.orderCode) {
|
|
|
this.prePay(data.orderCode)
|
...
|
...
|
@@ -134,13 +131,12 @@ Page({ |
|
|
// url: `./orderSuccess?product_id=${this.data.product_id}&orderCode=${this.data.orderCode}`
|
|
|
// })
|
|
|
|
|
|
let uid = '500031182'
|
|
|
let api = new orderService()
|
|
|
wx.showLoading({
|
|
|
title: '',
|
|
|
})
|
|
|
|
|
|
api.prePay(uid,orderCode, () => wx.hideLoading())
|
|
|
api.prePay(orderCode, () => wx.hideLoading())
|
|
|
.then(data => {
|
|
|
if (data && data.prePayData) {
|
|
|
this.callWxPay(data.prePayData)
|
...
|
...
|
@@ -205,10 +201,13 @@ Page({ |
|
|
|
|
|
selectComplete: function(data) {
|
|
|
|
|
|
this.setData({
|
|
|
address: data,
|
|
|
hasAddress: true
|
|
|
})
|
|
|
if (data) {
|
|
|
this.setData({
|
|
|
address: data,
|
|
|
hasAddress: true
|
|
|
})
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
checkProtocol: function () {
|
...
|
...
|
|