Commit f0eb9fa5 by 前端

Merge branch 'wuwx_dev_v2.7.0' into 'v2.7.0'

Wuwx dev v2.7.0

See merge request !295
2 parents f5011929 ca0c0dab
...@@ -310,12 +310,14 @@ export default { ...@@ -310,12 +310,14 @@ export default {
linkUrl: '', linkUrl: '',
videoLinkUrl: '', videoLinkUrl: '',
imgLinkUrl: '', imgLinkUrl: '',
source: '',
goods: { goods: {
id: '', id: '',
goodsName: '', goodsName: '',
goodsImage: '' goodsImage: ''
} }
}, },
souce: '',
bannerRadioList: [ bannerRadioList: [
{ confId: '1', confName: '商品' }, { confId: '1', confName: '商品' },
{ confId: '2', confName: '图文介绍' }, { confId: '2', confName: '图文介绍' },
...@@ -501,6 +503,11 @@ export default { ...@@ -501,6 +503,11 @@ export default {
customerServerUserTitle: res.customerServerUserTitle 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) { if (res.bannerList && res.bannerList.length) {
res.bannerList.forEach(item => { res.bannerList.forEach(item => {
var params = { var params = {
...@@ -509,7 +516,8 @@ export default { ...@@ -509,7 +516,8 @@ export default {
bannerType: item.bannerType + '', bannerType: item.bannerType + '',
linkUrl: item.linkUrl, linkUrl: item.linkUrl,
imgLinkUrl: '', imgLinkUrl: '',
videoLinkUrl: '' videoLinkUrl: '',
source: this.souce
} }
if (item.bannerType == '2') { if (item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl params.imgLinkUrl = item.linkUrl
...@@ -550,7 +558,6 @@ export default { ...@@ -550,7 +558,6 @@ export default {
this.relateStoreVisible = !this.relateStoreVisible this.relateStoreVisible = !this.relateStoreVisible
}, },
handleRelateStoreConfirm(selectedData) { handleRelateStoreConfirm(selectedData) {
console.log('selectedData', selectedData);
if (this.state == 'banner') { if (this.state == 'banner') {
this.editForm.bannerMerchantList = selectedData this.editForm.bannerMerchantList = selectedData
} else if (this.state == 'notice') { } else if (this.state == 'notice') {
...@@ -771,7 +778,8 @@ export default { ...@@ -771,7 +778,8 @@ export default {
goodsId: '', goodsId: '',
bannerType: +item.bannerType, bannerType: +item.bannerType,
linkUrl: '', linkUrl: '',
goods: {} goods: {},
source: this.souce
}) })
if (item.bannerType == '1' && item.goodsId) { if (item.bannerType == '1' && item.goodsId) {
params.bannerList[idx].goodsId = 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!