|
@@ -451,13 +451,13 @@ export default {
|
|
|
this.previewList = []
|
|
|
this.openProductModal = false
|
|
|
},
|
|
|
- onChange (e) {
|
|
|
+ onChange () {
|
|
|
const dataName = this.chooseVal === 'a' ? 'gate' : this.chooseVal === 'b' ? 'regular' : this.chooseVal === 'c' ? 'gift' : this.chooseVal === 'd' ? 'special' : 'giftGroup'
|
|
|
if (dataName != 'giftGroup') {
|
|
|
this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(this.form[dataName + 'ProductList'])
|
|
|
} else {
|
|
|
// 阶梯数据处理
|
|
|
- const pos = e.split('')[1]
|
|
|
+ const pos = this.chooseVal.split('')[1]
|
|
|
if (this.form.giftProductMap && Object.keys(this.form.giftProductMap).length > 0) {
|
|
|
this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(this.form.giftProductMap['GIFT' + (pos * 1 + 1)])
|
|
|
}
|