Commit 2e7247a9 by 王志慧

fixed

1 parent c6cacc89
......@@ -5,7 +5,7 @@
<div class="channel-content gl-form-page">
<el-form ref="ruleForm" :model="channelForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="频道名称:" prop="channelName">
<el-input v-model="channelForm.channelName" maxlength="4"></el-input>
<el-input v-model="channelForm.channelName"></el-input>
</el-form-item>
<span v-if="channelForm.channelType == 1">
<el-form-item label="频道主题:" prop="channelStyle">
......@@ -23,7 +23,7 @@
</div>
</el-form-item>
</span>
<el-form-item label="频道banner:" prop="channelImg" style="margin-top:15px;">
<el-form-item label="频道banner:" prop="channelImg" style="margin-top: 15px">
<glsx-preview :picOptions="picOptions" :imageUrlArr="channelForm.channelImgArr" @change="changeChannelImg"></glsx-preview>
<div class="el-form-item__error" v-if="channelImgFlag">请上传频道banner</div>
</el-form-item>
......@@ -115,7 +115,7 @@ export default {
this.channelForm.channelImg = this.commonImg(this.channelImgbgArr[this.channelForm.channelStyle - 1])
} else {
this.channelForm.channelImgArr = [this.commonImg(this.channelOtherImgbgArr[this.channelForm.channelType - 2])]
this.channelForm.channelImg = this.commonImg(this.channelOtherImgbgArr[this.channelForm.channelType - 2])
this.channelForm.channelImg = this.commonImg(this.channelOtherImgbgArr[this.channelForm.channelType - 2])
}
},
getChannelDetail() {
......@@ -128,7 +128,7 @@ export default {
this.channelForm.posterImgArr.push(res.data.posterImg) //海报
this.channelForm.publicityImgArr.push(res.data.publicityImg) //频道分享预览图
this.channelForm.channelImgArr.push(res.data.channelImg) //频道banner
if(!res.data.channelImg) this.diffChannelStyle()
if (!res.data.channelImg) this.diffChannelStyle()
}
})
},
......@@ -254,4 +254,4 @@ export default {
margin-top: 15px;
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!