Преглед изворни кода

积分足够时购买包异常问题修复

liuyao пре 1 година
родитељ
комит
5437963d5a

+ 5 - 0
package-basic-data/pages/activity/activity.js

@@ -544,6 +544,11 @@ Page({
             if (res.data.code == Constants.SUCESS_CODE  && Number(this.data.summaryInfo.amount) > 0) {
             if (res.data.code == Constants.SUCESS_CODE  && Number(this.data.summaryInfo.amount) > 0) {
                 // 成功后跳转支付
                 // 成功后跳转支付
                 this.toPay(res.data.data);
                 this.toPay(res.data.data);
+            }else {
+                // 调转主页
+                wx.reLaunch({
+                  url: '/pages/welcome/welcome',
+                })
             }
             }
         })
         })
     },
     },

+ 5 - 0
package-basic-data/pages/activity/renew/renew.js

@@ -543,6 +543,11 @@ Page({
             if (res.data.code == Constants.SUCESS_CODE && Number(this.data.summaryInfo.amount) > 0) {
             if (res.data.code == Constants.SUCESS_CODE && Number(this.data.summaryInfo.amount) > 0) {
                 // 成功后跳转支付
                 // 成功后跳转支付
                 this.toPay(res.data.data);
                 this.toPay(res.data.data);
+            }else {
+                // 调转主页
+                wx.reLaunch({
+                  url: '/pages/welcome/welcome',
+                })
             }
             }
         })
         })
     },
     },

+ 5 - 0
package-basic-data/pages/func-buy/add-confirm/add-confirm.js

@@ -260,6 +260,11 @@ Page({
             if (res.data.code == Constants.SUCESS_CODE && Number(this.data.factAmt) > 0) {
             if (res.data.code == Constants.SUCESS_CODE && Number(this.data.factAmt) > 0) {
                 // 成功后跳转支付
                 // 成功后跳转支付
                 this.toPay(res.data.data);
                 this.toPay(res.data.data);
+            }else {
+                // 调转主页
+                wx.reLaunch({
+                  url: '/pages/welcome/welcome',
+                })
             }
             }
         })
         })
     },
     },

+ 0 - 1
package-basic-data/pages/share-power/share-power.js

@@ -147,7 +147,6 @@ Page({
   */
   */
   helpMe() {
   helpMe() {
     let _this = this
     let _this = this
-    console.log('helpMe');
     _this.wxlogin().then(res => {
     _this.wxlogin().then(res => {
       _this.getopenid({ code: res.code }).then(res => {
       _this.getopenid({ code: res.code }).then(res => {
         if (res.data.code == Constants.SUCESS_CODE) {
         if (res.data.code == Constants.SUCESS_CODE) {

+ 1 - 1
package-basic-data/pages/sign-share-detail/integral-detail.wxml

@@ -44,7 +44,7 @@
     <view class="item-card" wx:if="{{ itemList.length > 0 }}">
     <view class="item-card" wx:if="{{ itemList.length > 0 }}">
       <view class="list-item" wx:for="{{itemList}}" wx:for-index="index" wx:for-item="item">
       <view class="list-item" wx:for="{{itemList}}" wx:for-index="index" wx:for-item="item">
         <view>
         <view>
-          <view class="item-type">{{item.integralTypeName}}</view>
+          <view class="item-type">{{item.tradeType? item.tradeType: item.integralTypeName}}</view>
           <view class="item-info">{{item.accDate}}/{{item.staffName?item.staffName:''}}</view>
           <view class="item-info">{{item.accDate}}/{{item.staffName?item.staffName:''}}</view>
         </view>
         </view>
         <view class="integral-value">
         <view class="integral-value">

+ 5 - 0
package-business-analysis/pages/business-overview-experience/business-overview-experience.js

@@ -279,6 +279,11 @@ Page({
             if (res.data.code == Constants.SUCESS_CODE && Number(this.data.factAmt) > 0) {
             if (res.data.code == Constants.SUCESS_CODE && Number(this.data.factAmt) > 0) {
                 // 成功后跳转支付
                 // 成功后跳转支付
                 this.toPay(res.data.data);
                 this.toPay(res.data.data);
+            }else {
+                // 调转主页
+                wx.reLaunch({
+                  url: '/pages/welcome/welcome',
+                })
             }
             }
         })
         })
     },
     },

+ 5 - 0
package-business-analysis/pages/cus-rec-pay-report/cus-rec-pay-report.js

@@ -234,6 +234,11 @@ Page({
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
         // 成功后跳转支付
         // 成功后跳转支付
         this.toPay(res.data.data);
         this.toPay(res.data.data);
+      }else {
+        // 调转主页
+        wx.reLaunch({
+          url: '/pages/welcome/welcome',
+        })
       }
       }
     })
     })
   },
   },

+ 5 - 0
package-business-analysis/pages/profit-report/org-rank/org-rank.js

@@ -163,6 +163,11 @@ Page({
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
         // 成功后跳转支付
         // 成功后跳转支付
         this.toPay(res.data.data);
         this.toPay(res.data.data);
+      }else {
+        // 调转主页
+        wx.reLaunch({
+          url: '/pages/welcome/welcome',
+        })
       }
       }
     })
     })
   },
   },

+ 5 - 0
package-business-analysis/pages/profit-report/profit-report.js

@@ -295,6 +295,11 @@ Page({
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
         // 成功后跳转支付
         // 成功后跳转支付
         this.toPay(res.data.data);
         this.toPay(res.data.data);
+      }else {
+        // 调转主页
+        wx.reLaunch({
+          url: '/pages/welcome/welcome',
+        })
       }
       }
     })
     })
   },
   },

+ 5 - 0
package-business-analysis/pages/profit-report/sku-rank/sku-rank.js

@@ -163,6 +163,11 @@ Page({
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
         // 成功后跳转支付
         // 成功后跳转支付
         this.toPay(res.data.data);
         this.toPay(res.data.data);
+      }else {
+        // 调转主页
+        wx.reLaunch({
+          url: '/pages/welcome/welcome',
+        })
       }
       }
     })
     })
   },
   },

+ 5 - 0
package-business-analysis/pages/profit-report/staff-rank/staff-rank.js

@@ -169,6 +169,11 @@ Page({
         if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
         if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
             // 成功后跳转支付
             // 成功后跳转支付
             this.toPay(res.data.data);
             this.toPay(res.data.data);
+        }else {
+            // 调转主页
+            wx.reLaunch({
+              url: '/pages/welcome/welcome',
+            })
         }
         }
     })
     })
   },
   },

+ 5 - 0
package-inventory/pages/ivt-sum-report/ivt-sum-report.js

@@ -274,6 +274,11 @@ Page({
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
       if (res.data.code == Constants.SUCESS_CODE && Number(this.data.params.factAmt) > 0) {
         // 成功后跳转支付
         // 成功后跳转支付
         this.toPay(res.data.data);
         this.toPay(res.data.data);
+      }else {
+        // 调转主页
+        wx.reLaunch({
+          url: '/pages/welcome/welcome',
+        })
       }
       }
     })
     })
   },
   },