Просмотр исходного кода

直播版本更新&积分、店长专区详情后返回刷新问题

junyuanz лет назад: 5
Родитель
Сommit
8739e0966b
3 измененных файлов с 7 добавлено и 39 удалено
  1. 1 1
      app.json
  2. 3 19
      pages/areacart/areacart.js
  3. 3 19
      pages/centcart/centcart.js

+ 1 - 1
app.json

@@ -130,7 +130,7 @@
   "sitemapLocation": "sitemap.json",
   "plugins": {
 	    "live-player-plugin": {
-	        "version": "1.2.5",
+	        "version": "1.2.7",
 	        "provider": "wx2b03c6e691cd7370"
 	    }
 	}

+ 3 - 19
pages/areacart/areacart.js

@@ -44,27 +44,11 @@ Page({
   },
   onLoad: function (options) {
 //	this.getCartList();
-  },
-  onShow: function () {
-	this.setData({
-	  count:1,
-	  cartList:[],
-	  cartCount:0,
-	  cartTotal:0,
-	  checkeditems:'',
-	  checkeditemsnum:'',
-	  checkedtotal:0,
-	  selectedall:false,
-	  submitlock:false,
-	  x:0,
-	  currentX: 0,
-	  perpage:10,
-	  nowpage:1,
-	  cartMore:true
-	})
-  	this.getCartList();
+	this.getCartList();
   	this.setData({submitlock: false});
   	this.setData({selectedall: false});
+  },
+  onShow: function () {
 //	this.getCartListAndSelected();
   },
   getCartList:function(){

+ 3 - 19
pages/centcart/centcart.js

@@ -46,31 +46,15 @@ Page({
   },
   onLoad: function (options) {
 //	this.getCartList();
-  },
-  onShow: function () {
-	  this.setData({
-	    count:1,
-	    cartList:[],
-	    cartCount:0,
-	    cartTotal:0,
-	    checkeditems:'',
-	    checkeditemsnum:'',
-	    checkedtotal:0,
-	    selectedall:false,
-	    submitlock:false,
-	    x:0,
-	    currentX: 0,
-	    perpage:10,
-	    nowpage:1,
-	    cartMore:true
-	  })
-  	this.getCartList();
+	this.getCartList();
   	this.getBalanceInfo();
   	this.getCentAct();
   	this.setData({
   		submitlock: false,
   		selectedall: false
   	});
+  },
+  onShow: function () {
 //	this.getCartListAndSelected();
   },
   getCentAct(){