...
|
...
|
@@ -17,7 +17,7 @@ function _queryFromServiceAsync(fn) { |
|
|
|
|
|
args[0] = args[0] || {};
|
|
|
Object.assign(args[0], {
|
|
|
appType: app.getAppType()
|
|
|
app_type: app.getAppType()
|
|
|
});
|
|
|
|
|
|
return fn(...args);
|
...
|
...
|
@@ -53,7 +53,6 @@ Page({ |
|
|
},
|
|
|
onShow() {
|
|
|
this.getCartData();
|
|
|
|
|
|
},
|
|
|
onHide: function () {
|
|
|
if (this.data.isEditing) {
|
...
|
...
|
@@ -96,7 +95,9 @@ Page({ |
|
|
} else {
|
|
|
return Promise.reject();
|
|
|
}
|
|
|
}).catch(() => {});
|
|
|
}).catch(() => {
|
|
|
this.setData({isEmptyCart: true});
|
|
|
});
|
|
|
},
|
|
|
editCartStatus(e) {
|
|
|
let data = {isEditing: !this.data.isEditing};
|
...
|
...
|
@@ -170,7 +171,7 @@ Page({ |
|
|
chooseGoodsBundle(e) {
|
|
|
let bundle = e.detail;
|
|
|
|
|
|
this.editCart(bundle.goods_list, selected);
|
|
|
this.editCart(bundle.goods_list, bundle.selected);
|
|
|
},
|
|
|
editGoodsNum(e) {
|
|
|
let goods = e.detail;
|
...
|
...
|
|