comment 8.1

This commit is contained in:
2020-08-01 16:36:48 +08:00
parent 865e2a741a
commit 854976c8f0
18 changed files with 356 additions and 120 deletions

View File

@@ -297,7 +297,7 @@ export default {
},
setTotalPrice() {
const goods = this.orderInfo.store_goods_total;
console.log(this.freight);
// console.log(this.freight);
const freight = this.freight;
let price = 0;
// 商品价格加上运费

View File

@@ -73,6 +73,9 @@ export default {
deep: true
}
},
onPullDownRefresh() {
this.getCartList();
},
onShow() {
this.getCartList();
},
@@ -111,6 +114,7 @@ export default {
getCartList() {
this.$u.api.getCartTreeList().then(res => {
if (res.errCode == 0) {
uni.stopPullDownRefresh();
let list = res.data.store_cart_list;
list.forEach((item, l_index) => {
// 判断有无 checked 属性,如果有取值再赋值, 没有给默认值 false