Commit feba6886 by 王志慧

commit

1 parent a5755634
......@@ -203,8 +203,8 @@ export default {
background: #0a0e19;
}
.el-form-item__error {
margin-top: 25px;
margin-bottom: 10px;
// margin-top: 25px;
// margin-bottom: 10px;
}
.el-radio__input {
margin-top: -160px;
......
......@@ -4,7 +4,7 @@
<el-form-item label="频道卡片主标题:" prop="topicTitle">
<el-input v-model="activityForm.topicTitle" maxlength="6"></el-input>
</el-form-item>
<template v-if="channelId == 3">
<template v-if="channelType == 3">
<el-form-item label="卡片背景图:" prop="backgroundType">
<el-radio-group v-model="activityForm.backgroundType" @input="changeBackgroundType">
<el-radio :label="1">单个</el-radio>
......@@ -13,7 +13,7 @@
<glsx-preview :picOptions="bgOptions" limit="1" :imageUrlArr="activityForm.backgroundImgArr" @change="changeChannelImg"></glsx-preview>
</el-form-item>
</template>
<template v-if="channelId == 4">
<template v-if="channelType == 4">
<el-form-item label="卡片背景图:" prop="backgroundImg">
<glsx-preview :picOptions="bgOptions" limit="1" :imageUrlArr="activityForm.backgroundImgArr" @change="changeChannelImg"></glsx-preview>
</el-form-item>
......@@ -147,13 +147,17 @@ export default {
})
},
props: {
channelId: {
merchantChannelId: {
type: String,
default: ''
},
topicId: {
type: String,
default: ''
},
channelType: {
type: String,
default: ''
}
},
watch: {
......@@ -245,7 +249,7 @@ export default {
}
let contentList = [
{
pagePathType:this.activityForm.pagePathType,
pagePathType: this.activityForm.pagePathType,
pagePathContent: this.activityForm.pagePathContent,
promotion: this.activityForm.promotion,
mediaList
......@@ -254,7 +258,7 @@ export default {
if (valid) {
let params = {
merchantChannelId: this.channelId,
merchantChannelId: this.merchantChannelId,
topicTitle: this.activityForm.topicTitle,
contentList,
backgroundImg: this.activityForm.backgroundImg,
......@@ -267,7 +271,7 @@ export default {
success: res => {
if (res.code == 0) {
this.loading = false
// this.$router.go(-1)
this.$router.go(-1)
}
this.$message({
......
......@@ -593,7 +593,7 @@ export default {
success: res => {
if (res.code == 0) {
this.loading = false
// this.$router.go(-1)
this.$router.go(-1)
}
this.$message({
......
......@@ -2,7 +2,7 @@
<div class="content-wrap">
<div class="container edit-container" style="min-height: 520px !important">
<p class="edit-title" id="basic">新增内容</p>
<component :is="currentComponent" ref="componentRef" :channelId="merchantChannelId" :topicId="topicId"></component>
<component :is="currentComponent" ref="componentRef" :merchantChannelId="merchantChannelId" :topicId="topicId" :channelType="channelType"></component>
</div>
<GLFooter>
<el-button @click="handleCancel">取消</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!