xiongzhu 4 лет назад
Родитель
Сommit
c27594e455
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      src/main/nine-space/src/views/Submit.vue

+ 6 - 1
src/main/nine-space/src/views/Submit.vue

@@ -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('支付失败,请稍后再试');
                                             }
                                         });