合并后提交

This commit is contained in:
@fawn-nine
2024-06-24 09:12:39 +08:00
parent 560efc19bc
commit 89a8a3e405
7 changed files with 81 additions and 33 deletions

View File

@@ -34,16 +34,18 @@
return {
pricespop:true,
curProId:null,
curPro:{}
};
},methods:{
closePup() {
this.pricespop = false
this.$emit('closePup')
// this.proPriceList = []
},
choosePrice(item) {
// console.log(item, 'choosePrice')
console.log(item, 'choosePrice')
this.curProId = item.productId
this.curPro = item
},
oprate(val){
if(!this.curProId){
@@ -55,10 +57,10 @@
}
if(val=='buy'){
console.log('直接购买');
this.$emit('oprate',{name:val,id:this.curProId})
this.$emit('oprate',{name:val,item:this.curPro})
}else if(val == 'gouwuche'){
console.log('加入购物车');
this.$emit('oprate',{name:val,id:this.curProId})
this.$emit('oprate',{name:val,item:this.curPro})
}
this.closePup()
}