junyuanz лет назад: 5
Родитель
Сommit
9fb29ec94d
2 измененных файлов с 7 добавлено и 2 удалено
  1. 6 1
      pages/pay/pay.js
  2. 1 1
      project.config.json

+ 6 - 1
pages/pay/pay.js

@@ -32,7 +32,7 @@ Page({
   onLoad: function (options) {
     this.data.orderId = options.orderId;
     this.getOrderInfo()
-    this.getBalanceInfo()
+//  this.getBalanceInfo()
     wx.setStorageSync('use_address', false)
   },
   onShow: function () {
@@ -91,6 +91,9 @@ Page({
         total:total,
         yunfei:total<9900?val.data.freight:0
       });
+      
+      
+      that.getBalanceInfo();
     }
     __request.$get(url, params, success)
   },
@@ -111,7 +114,9 @@ Page({
     var that = this
     var url = "v1/user/balance/info";
     var params = {}
+    
     var success = function (val) {
+//  	console.log('showusebalance:',(val.data.total > 0 && that.data.payData.order_type == 0))
       that.setData({
         balanceInfo: val.data,
         cache: false,

+ 1 - 1
project.config.json

@@ -19,7 +19,7 @@
 			"disablePlugins": [],
 			"outputPath": ""
 		},
-		"useCompilerModule": true,
+		"useCompilerModule": false,
 		"userConfirmedUseCompilerModuleSwitch": false,
 		"compileHotReLoad": false,
 		"useIsolateContext": true