Commit ca0c0dab by wuwx

修改banner配置门店区分集团或自己

1 parent e4fe04f7
......@@ -310,12 +310,14 @@ export default {
linkUrl: '',
videoLinkUrl: '',
imgLinkUrl: '',
source: '',
goods: {
id: '',
goodsName: '',
goodsImage: ''
}
},
souce: '',
bannerRadioList: [
{ confId: '1', confName: '商品' },
{ confId: '2', confName: '图文介绍' },
......@@ -501,6 +503,11 @@ export default {
customerServerUserTitle: res.customerServerUserTitle
})
}
if(res.bannerList && res.bannerList.length) {
this.souce = res.bannerList[0].source
} else {
this.souce = 1
}
if (res.bannerList && res.bannerList.length) {
res.bannerList.forEach(item => {
var params = {
......@@ -509,7 +516,8 @@ export default {
bannerType: item.bannerType + '',
linkUrl: item.linkUrl,
imgLinkUrl: '',
videoLinkUrl: ''
videoLinkUrl: '',
source: this.souce
}
if (item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl
......@@ -550,7 +558,6 @@ export default {
this.relateStoreVisible = !this.relateStoreVisible
},
handleRelateStoreConfirm(selectedData) {
console.log('selectedData', selectedData);
if (this.state == 'banner') {
this.editForm.bannerMerchantList = selectedData
} else if (this.state == 'notice') {
......@@ -771,7 +778,8 @@ export default {
goodsId: '',
bannerType: +item.bannerType,
linkUrl: '',
goods: {}
goods: {},
source: this.souce
})
if (item.bannerType == '1' && item.goodsId) {
params.bannerList[idx].goodsId = item.goodsId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!