Commit feba6886 by 王志慧

commit

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