Commit f482f121 by 王志慧

commit

1 parent feba6886
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-radio :label="item.optionId" :key="index" v-for="(item, index) in topicStyleList">{{ item.optionLabel }}</el-radio> <el-radio :label="item.optionId" :key="index" v-for="(item, index) in topicStyleList">{{ item.optionLabel }}</el-radio>
</el-radio-group> </el-radio-group>
<div> <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>
</div> </div>
<!-- 卡片背景图 --> <!-- 卡片背景图 -->
...@@ -144,10 +144,10 @@ ...@@ -144,10 +144,10 @@
<img :src="editForm.contentList[0].activityDetails.goodsImage" /> <img :src="editForm.contentList[0].activityDetails.goodsImage" />
</div> </div>
<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"> <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> </div>
</div> </div>
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
</div> </div>
</div> </div>
</template> </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="goodss-box" v-if="editForm.activityDetails">
<div class="goods-img"> <div class="goods-img">
<img :src="editForm.activityDetails.goodsImage" /> <img :src="editForm.activityDetails.goodsImage" />
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
mediaType: 1, mediaType: 1,
mediaUrlArr: [], mediaUrlArr: [],
mediaUrl: '', mediaUrl: '',
pagePathType:'', pagePathType: '',
contentList: [ contentList: [
{ {
mediaType: '', mediaType: '',
...@@ -416,7 +416,7 @@ export default { ...@@ -416,7 +416,7 @@ export default {
} }
}, },
created() { created() {
this.getChannelDetail() // this.getChannelDetail()
this.initParams() this.initParams()
}, },
mounted() { mounted() {
...@@ -462,6 +462,7 @@ export default { ...@@ -462,6 +462,7 @@ export default {
data1.contentList[0].mediaList.forEach(item => { data1.contentList[0].mediaList.forEach(item => {
this.editForm.mediaUrlArr.push(item.mediaUrl) this.editForm.mediaUrlArr.push(item.mediaUrl)
}) })
this.editForm.productPrice = this.editForm.activityDetails.contentPrice
this.editForm.activityPrice = this.editForm.activityDetails.activityPrice this.editForm.activityPrice = this.editForm.activityDetails.activityPrice
this.isFlag = true this.isFlag = true
console.log(this.editForm) console.log(this.editForm)
...@@ -717,14 +718,14 @@ export default { ...@@ -717,14 +718,14 @@ export default {
}) })
}, },
//频道详情,获取频道主题 //频道详情,获取频道主题
getChannelDetail() { // getChannelDetail() {
let params = { id: this.channelId } // let params = { id: this.channelId }
this.$apis.channel.getChannelDetail(params).then(res => { // this.$apis.channel.getChannelDetail(params).then(res => {
if (res.code == 0) { // if (res.code == 0) {
this.channelStyle = res.data.channelStyle // this.channelStyle = res.data.channelStyle
} // }
}) // })
}, // },
changeChannelImg(val) { changeChannelImg(val) {
// this[val.key + 'Flag'] = false // this[val.key + 'Flag'] = false
console.log(val.key, this.editForm) 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!