Commit f482f121 by 王志慧

commit

1 parent feba6886
......@@ -7,7 +7,7 @@
<el-radio :label="item.optionId" :key="index" v-for="(item, index) in topicStyleList">{{ item.optionLabel }}</el-radio>
</el-radio-group>
<div>
<glsx-preview :picOptions="topicStyleOptions" limit="1" :imageUrlArr="channelStyle == 1 ? topicStyleArrFirst[editForm.topicStyle - 1] : topicStyleArrSecond[editForm.topicStyle - 1]"></glsx-preview>
<glsx-preview :picOptions="topicStyleOptions" limit="1" :imageUrlArr="topicDetail.channelStyle == 1 ? topicStyleArrFirst[editForm.topicStyle - 1] : topicStyleArrSecond[editForm.topicStyle - 1]"></glsx-preview>
</div>
</div>
<!-- 卡片背景图 -->
......@@ -144,10 +144,10 @@
<img :src="editForm.contentList[0].activityDetails.goodsImage" />
</div>
<div>
<div class="goods-title">{{ editForm.contentList[0].activityDetails.goodsName }}</div>
<div class="goods-title">{{ editForm.contentList[0].activityDetails.contentName }}</div>
<div class="goods-price">
价格/元:
<span class="theme-color">{{ editForm.contentList[0].activityDetails.retailPrice }}</span>
<span class="theme-color">{{ editForm.contentList[0].activityDetails.contentPrice }}</span>
</div>
</div>
</div>
......@@ -169,7 +169,7 @@
</div>
</div>
</template>
<template v-if="editForm.activityDetails && editForm.pagePathType ==2">
<template v-if="editForm.activityDetails && editForm.pagePathType == 2">
<div class="goodss-box" v-if="editForm.activityDetails">
<div class="goods-img">
<img :src="editForm.activityDetails.goodsImage" />
......@@ -214,7 +214,7 @@ export default {
mediaType: 1,
mediaUrlArr: [],
mediaUrl: '',
pagePathType:'',
pagePathType: '',
contentList: [
{
mediaType: '',
......@@ -416,7 +416,7 @@ export default {
}
},
created() {
this.getChannelDetail()
// this.getChannelDetail()
this.initParams()
},
mounted() {
......@@ -462,6 +462,7 @@ export default {
data1.contentList[0].mediaList.forEach(item => {
this.editForm.mediaUrlArr.push(item.mediaUrl)
})
this.editForm.productPrice = this.editForm.activityDetails.contentPrice
this.editForm.activityPrice = this.editForm.activityDetails.activityPrice
this.isFlag = true
console.log(this.editForm)
......@@ -717,14 +718,14 @@ export default {
})
},
//频道详情,获取频道主题
getChannelDetail() {
let params = { id: this.channelId }
this.$apis.channel.getChannelDetail(params).then(res => {
if (res.code == 0) {
this.channelStyle = res.data.channelStyle
}
})
},
// getChannelDetail() {
// let params = { id: this.channelId }
// this.$apis.channel.getChannelDetail(params).then(res => {
// if (res.code == 0) {
// this.channelStyle = res.data.channelStyle
// }
// })
// },
changeChannelImg(val) {
// this[val.key + 'Flag'] = false
console.log(val.key, this.editForm)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!