|
@@ -85,7 +85,6 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
isCanbuy(goods){
|
|
isCanbuy(goods){
|
|
- console.log(goods)
|
|
|
|
if (this.$user.isLogin() && this.$store.state.user.info) {
|
|
if (this.$user.isLogin() && this.$store.state.user.info) {
|
|
let member_level =this.$store.state.user.info.identity.member_level;
|
|
let member_level =this.$store.state.user.info.identity.member_level;
|
|
if(member_level<goods.member_level){
|
|
if(member_level<goods.member_level){
|
|
@@ -105,7 +104,6 @@
|
|
console.log('用户点击取消');
|
|
console.log('用户点击取消');
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
return true;
|
|
return true;
|
|
@@ -139,9 +137,9 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // if(!isCanbuy){
|
|
|
|
- // return;
|
|
|
|
- // }
|
|
|
|
|
|
+ if(!isCanbuy){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
if(that.noAttrList.length > 0) {
|
|
if(that.noAttrList.length > 0) {
|
|
@@ -208,8 +206,7 @@
|
|
id: that.list[i].host_list[0].goods_id,
|
|
id: that.list[i].host_list[0].goods_id,
|
|
num: 1,
|
|
num: 1,
|
|
goods_attr_id: that.list[i].host_list[0].choose_attr.goods_attr_id,
|
|
goods_attr_id: that.list[i].host_list[0].choose_attr.goods_attr_id,
|
|
- attr: attr,
|
|
|
|
-
|
|
|
|
|
|
+ attr: attr
|
|
})
|
|
})
|
|
}
|
|
}
|
|
let noChoose = true;
|
|
let noChoose = true;
|
|
@@ -226,7 +223,8 @@
|
|
id: that.list[i].goods_list[y].goods_id,
|
|
id: that.list[i].goods_list[y].goods_id,
|
|
num: 1,
|
|
num: 1,
|
|
goods_attr_id: that.list[i].goods_list[y].choose_attr.goods_attr_id,
|
|
goods_attr_id: that.list[i].goods_list[y].choose_attr.goods_attr_id,
|
|
- attr: attr
|
|
|
|
|
|
+ attr: attr,
|
|
|
|
+ service_label:that.list[i].goods_list[y].choose_attr.service_label
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -284,6 +282,7 @@
|
|
this.noAttrList = e;
|
|
this.noAttrList = e;
|
|
},
|
|
},
|
|
getTotal(e,max_discount) {
|
|
getTotal(e,max_discount) {
|
|
|
|
+ console.log(e)
|
|
this.total = e;
|
|
this.total = e;
|
|
if(max_discount) {
|
|
if(max_discount) {
|
|
this.max_discount = max_discount.toFixed(2)
|
|
this.max_discount = max_discount.toFixed(2)
|