|
|
|
@ -82,7 +82,7 @@ |
|
|
|
|
</label> |
|
|
|
|
<!-- --> |
|
|
|
|
</checkbox-group> |
|
|
|
|
<view v-if="!isEdit" class="paddleft5 fcorred " @click="editDelete">编辑</view> |
|
|
|
|
<view v-if="!isEdit" class="paddleft5 paddtright5 fcorred " @click="editDelete">编辑</view> |
|
|
|
|
<view v-if="isEdit" class="icon-ymt delete paddleft5 fcorred font16" @click="deleteCart">删除</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -208,19 +208,18 @@ |
|
|
|
|
this.initData(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
initData(status) { |
|
|
|
|
if(!status){ |
|
|
|
|
initData() { |
|
|
|
|
|
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中', |
|
|
|
|
mask:true, |
|
|
|
|
duration:2000 |
|
|
|
|
}); |
|
|
|
|
// console.log(20) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getShoppingCartList().then(res => { |
|
|
|
|
if(!status){ |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.allCheck.whetherCheck = false; |
|
|
|
|
this.cartList = res.return_data; |
|
|
|
@ -228,8 +227,6 @@ |
|
|
|
|
// 测试失效数据 |
|
|
|
|
// this.cartList[0].loseEfficacy=true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.allCheckInit(); //全选是否勾中判断 |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
@ -239,6 +236,9 @@ |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
},100) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
editDelete() { |
|
|
|
@ -504,13 +504,16 @@ |
|
|
|
|
this.initData(); |
|
|
|
|
} else { |
|
|
|
|
//增加数量失败 |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
},200) |
|
|
|
|
|
|
|
|
|
//重新刷新数据 |
|
|
|
|
this.initData(2); |
|
|
|
|
this.initData(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -708,7 +711,10 @@ |
|
|
|
|
.tool-jiesuan {} |
|
|
|
|
|
|
|
|
|
.jiesuan-btn { |
|
|
|
|
width: 240rpx; |
|
|
|
|
max-width: 240rpx; |
|
|
|
|
min-width: 100px; |
|
|
|
|
font-size: 16px; |
|
|
|
|
flex: 1; |
|
|
|
|
height: 50px; |
|
|
|
|
line-height: 50px; |
|
|
|
|
text-align: center; |
|
|
|
|