合并后提交
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user