|
@@ -242,6 +242,10 @@ export default {
|
|
|
itemSn: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
+ },
|
|
|
+ pageType:{
|
|
|
+ type: String,
|
|
|
+ default: 'promotionsPage'
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -371,17 +375,17 @@ export default {
|
|
|
const resultObj = res.data
|
|
|
if (resultObj.gateFlag == '1') {
|
|
|
this.chooseVal = 'a'
|
|
|
- this.isShowPreview = this.judgeBtnShow(res.data.gateProductList)
|
|
|
+ this.isShowPreview =this.pageType==='salesPage'? false:this.judgeBtnShow(res.data.gateProductList)
|
|
|
} else {
|
|
|
if (resultObj.promotionRuleType == 'BUY_PROD_GIVE_PROD') {
|
|
|
this.chooseVal = 'b'
|
|
|
- this.isShowPreview = this.judgeBtnShow(res.data.regularProductList)
|
|
|
+ this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(res.data.regularProductList)
|
|
|
} else if (resultObj.promotionRuleType == 'BUY_PROD_GIVE_MONEY') {
|
|
|
this.chooseVal = 'b'
|
|
|
- this.isShowPreview = this.judgeBtnShow(res.data.regularProductList)
|
|
|
+ this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(res.data.regularProductList)
|
|
|
} else {
|
|
|
this.chooseVal = 'd'
|
|
|
- this.isShowPreview = this.judgeBtnShow(res.data.specialProductList)
|
|
|
+ this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(res.data.specialProductList)
|
|
|
}
|
|
|
}
|
|
|
this.form = { ...this.form, ...resultObj }
|
|
@@ -450,12 +454,12 @@ export default {
|
|
|
onChange (e) {
|
|
|
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.judgeBtnShow(this.form[dataName + 'ProductList'])
|
|
|
+ this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(this.form[dataName + 'ProductList'])
|
|
|
} else {
|
|
|
// 阶梯数据处理
|
|
|
const pos = e.split('')[1]
|
|
|
if (this.form.giftProductMap && Object.keys(this.form.giftProductMap).length > 0) {
|
|
|
- this.isShowPreview = this.judgeBtnShow(this.form.giftProductMap['GIFT' + (pos * 1 + 1)])
|
|
|
+ this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(this.form.giftProductMap['GIFT' + (pos * 1 + 1)])
|
|
|
}
|
|
|
}
|
|
|
}
|