|
@@ -44,27 +44,11 @@ Page({
|
|
|
},
|
|
},
|
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
// this.getCartList();
|
|
// 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({submitlock: false});
|
|
|
this.setData({selectedall: false});
|
|
this.setData({selectedall: false});
|
|
|
|
|
+ },
|
|
|
|
|
+ onShow: function () {
|
|
|
// this.getCartListAndSelected();
|
|
// this.getCartListAndSelected();
|
|
|
},
|
|
},
|
|
|
getCartList:function(){
|
|
getCartList:function(){
|