Commit f33fe91d by 前端

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

Wuwx dev v2.7.0

See merge request !296
2 parents f0eb9fa5 47ad3b78
...@@ -317,7 +317,6 @@ export default { ...@@ -317,7 +317,6 @@ export default {
goodsImage: '' goodsImage: ''
} }
}, },
souce: '',
bannerRadioList: [ bannerRadioList: [
{ confId: '1', confName: '商品' }, { confId: '1', confName: '商品' },
{ confId: '2', confName: '图文介绍' }, { confId: '2', confName: '图文介绍' },
...@@ -503,13 +502,8 @@ export default { ...@@ -503,13 +502,8 @@ 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,inx) => {
var params = { var params = {
bannerImg: item.bannerImg, bannerImg: item.bannerImg,
goodsId: item.goods ? item.goods.id : '', goodsId: item.goods ? item.goods.id : '',
...@@ -517,7 +511,7 @@ export default { ...@@ -517,7 +511,7 @@ export default {
linkUrl: item.linkUrl, linkUrl: item.linkUrl,
imgLinkUrl: '', imgLinkUrl: '',
videoLinkUrl: '', videoLinkUrl: '',
source: this.souce source: res.bannerList[inx].source || 1
} }
if (item.bannerType == '2') { if (item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl params.imgLinkUrl = item.linkUrl
...@@ -779,7 +773,7 @@ export default { ...@@ -779,7 +773,7 @@ export default {
bannerType: +item.bannerType, bannerType: +item.bannerType,
linkUrl: '', linkUrl: '',
goods: {}, goods: {},
source: this.souce source: item.source || 1
}) })
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!