|
|
@@ -165,6 +165,10 @@ export default {
|
|
|
this.$http
|
|
|
.post('/payOrder/weixin', { id: res.id, openId: localStorage.getItem('openId') })
|
|
|
.then(res => {
|
|
|
+ console.log({
|
|
|
+ ...res,
|
|
|
+ package: res.package || res.packageValue
|
|
|
+ });
|
|
|
wx.chooseWXPay({
|
|
|
...res,
|
|
|
package: res.package || res.packageValue,
|
|
|
@@ -174,7 +178,8 @@ export default {
|
|
|
this.$router.replace('/orders');
|
|
|
}, 1000);
|
|
|
},
|
|
|
- fail() {
|
|
|
+ fail(e) {
|
|
|
+ console.log(e);
|
|
|
this.$toast('支付失败,请稍后再试');
|
|
|
}
|
|
|
});
|