路径:pages/order_addcart/order_addcart.vue
代码根据上图的行数对照添加(下面方便复制):
注:修改完记得打包上传,方可生效
that.getCartList('subCart');
that.getCartList('addCart');
getCartList: function(handle) {
if(validList[j].valid[index].attrStatus && !validList[j].valid[index].is_gift){
if (['addCart', 'subCart'].includes(handle)) {
validList[j].valid[index].checked = false;
for (let k = 0; k < that.selectValue.length; k++) {
if (that.selectValue[k] == validList[j].valid[index].id) {
validList[j].valid[index].checked = true;
break;
}
}
if (validList[j].valid[index].checked) {
selectValue.push(validList[j].valid[index].id);
}
} else {
validList[j].valid[index].checked = true;
selectValue.push(validList[j].valid[index].id);
}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}