|
|
|
@ -49,8 +49,42 @@ |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.getCategoryList(); |
|
|
|
// this.get(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
get(){ |
|
|
|
this.$http(this.API.TEST, { |
|
|
|
goods_id: 1, |
|
|
|
goods_specs_id: 1, |
|
|
|
number: 1, |
|
|
|
token: 'b1f20b424ec9e7a2a4c9788fd0f75643' |
|
|
|
}).then(res => { |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
// let nonceStr = res.data.nonceStr |
|
|
|
// appId: "wxb35ef055a4dd8ad4" |
|
|
|
// nonceStr: "60d3125d138af" |
|
|
|
// order_num: "2842855348400816128" |
|
|
|
// package: "prepay_id=wx23185213000285e14ea77ac97acc670000" |
|
|
|
// paySign: "6DC330CBDF6C29BEDD4D254D9DA97364" |
|
|
|
// signType: "MD5" |
|
|
|
// timeStamp: "1624445533" |
|
|
|
|
|
|
|
|
|
|
|
uni.requestPayment({ |
|
|
|
orderInfo: res.data.order_num, |
|
|
|
timeStamp: res.data.timeStamp, |
|
|
|
nonceStr: res.data.nonceStr, |
|
|
|
package: res.data.package, |
|
|
|
signType: res.data.signType, |
|
|
|
paySign: res.data.paySign, |
|
|
|
complete: result => { |
|
|
|
console.log(result) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
// 切换tab |
|
|
|
change(index) { |
|
|
|
this.current = index; |
|
|
|
|