购物车删除数据处理

master
chen 2022-02-25 17:35:07 +08:00
parent ab67d715ed
commit fce22b48c2
2 changed files with 6 additions and 4 deletions

View File

@ -204,7 +204,6 @@
//
gopageEv(){
if(this.dataList.length){
console.log(this.totalPrice,207);
if(this.totalPrice!='0.00'){
let newList = [];
this.dataList.forEach(item=>{
@ -262,7 +261,9 @@
},
deladdEvent(id,cur,index){//
if(index==0){//
this.dataList[cur].num--;
if(this.dataList[cur].num!=0){
this.dataList[cur].num--;
}
if(this.dataList[cur].num > 1){
this.setShopNum(id,this.dataList[cur].num,'down');
}

View File

@ -102,8 +102,9 @@
methods:{
//
backEv(){
this.fromWhere = uni.getStorageSync('outside')*1;
console.log(this.fromWhere,106);
if(uni.getStorageSync('outside')*1==2){
this.fromWhere = uni.getStorageSync('outside')*1;
}
switch (this.fromWhere){
case 1:
case 2: