Ver Fonte

fix: debug weixin pay & active card

wangyuan há 2 anos atrás
pai
commit
cb1667dad0
2 ficheiros alterados com 5 adições e 2 exclusões
  1. 1 1
      pages/appointment/appointment.js
  2. 4 1
      pages/buy/buy.js

+ 1 - 1
pages/appointment/appointment.js

@@ -263,7 +263,7 @@ Page({
             })
           } else if (res.cancel) {
             wx.navigateTo({
-              url: '/pages/scan/scan?form=appointment',
+              url: '/pages/exchange/exchange',
             })
           }
         }

+ 4 - 1
pages/buy/buy.js

@@ -42,7 +42,10 @@ Page({
       response.map((item, index) => {
         if (item.isRecommend) {
           this.setData({
-            activeIndex: index
+            activeIndex: index,
+            goodsId: item.goodsId,
+            orderAmount: item.salePrice,
+            num: item.donateNumber + item.useNumber
           })
         }
       })