Commit c55243bc by 王志慧

commit

1 parent 7af7c269
......@@ -3,7 +3,7 @@
<div class="add-container">
<div class="title">{{ this.channelForm.channelName }}编辑</div>
<div class="channel-content gl-form-page">
<el-form ref="ruleForm" :model="channelForm" label-width="154px" :rules="rules">
<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" :disabled="isDisabled" maxlength="4"></el-input>
</el-form-item>
......@@ -23,7 +23,7 @@
</div>
</el-form-item>
</span>
<el-form-item label="频道banner:" prop="channelImg">
<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>
......
......@@ -68,14 +68,16 @@ export default {
tableColumns: [
{
label: '频道名称',
prop: 'channelName ',
prop: 'channelName',
formatter: cellValue => {
return cellValue.channelName || '--'
}
},
{
label: '频道宣传语',
prop: 'promotion ',
prop: 'promotion',
width: 300,
line: 1,
formatter: cellValue => {
return cellValue.promotion || '--'
}
......
<template>
<div class="activity-content gl-form-page">
<el-form ref="ruleForm" :model="activityForm" label-width="154px" :rules="rules">
<el-form ref="ruleForm" :model="activityForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="频道卡片主标题:" prop="topicTitle">
<el-input v-model="activityForm.topicTitle" maxlength="4"></el-input>
</el-form-item>
......
......@@ -26,7 +26,7 @@
<!-- 具体内容 -->
<div slot="concreteContent" class="concrete-content">
<div class="gl-form-page">
<el-form ref="ruleForm" :model="editForm" :rules="rules">
<el-form ref="ruleForm" :model="editForm" size="small" :rules="rules">
<span v-for="(item, index) in editForm.contentList" :key="index" class="line-item">
<div class="delect-box" @click="delectContent(index)">
<img class="icon-dele" src="@/assets/channel/dele.png" />
......@@ -91,7 +91,7 @@
<el-radio :label="2">上传图片</el-radio>
</el-radio-group>
<div class="gl-form-page mediaType-content">
<el-form ref="ruleForm" :model="editForm" :rules="rules">
<el-form ref="ruleForm" :model="editForm" size="small" :rules="rules">
<span v-if="editForm.mediaType == 1">
<el-form-item label="选择视频:" :prop="'contentList.' + 0 + '.mediaUrl'" :rules="rules.mediaCover">
<el-select v-model="editForm.contentList[0].mediaUrl" placeholder="请选择视频" @change="changeVideo(0)">
......@@ -911,7 +911,7 @@ export default {
line-height: 1;
padding-top: 4px;
position: absolute;
bottom: -30px;
bottom: -26px;
left: 154px;
}
}
......@@ -942,7 +942,7 @@ export default {
.publicPraise-box {
margin-top: -7px;
/deep/ .el-form-item__label {
color: #fff;
color: #f1f1f1;
}
}
.dele-publicPraise {
......
<template>
<div class="membrane-content gl-form-page">
<el-form ref="ruleForm" :model="membraneForm" label-width="154px" :rules="rules">
<el-form ref="ruleForm" :model="membraneForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="上传类型:" prop="mediaType">
<el-radio-group v-model="membraneForm.mediaType" @input="changeMediaType">
<el-radio :label="1">视频</el-radio>
......
<!-- 选择礼包弹窗 -->
<template>
<GLDialog class="muti-gift" bigTitle="选择礼包内容" mode="big" :visible.sync="isSelectGiftVisible" :before-close="handleGiftClose" @onOk="handleGiftConfirm" @onCancel="handleGiftClose" v-loading="loading">
<GLDialog class="muti-gift" bigTitle="选择券" mode="big" :visible.sync="isSelectGiftVisible" :before-close="handleGiftClose" @onOk="handleGiftConfirm" @onCancel="handleGiftClose" v-loading="loading">
<div class="flex-default">
<div class="gift-table">
<el-tabs class="gift-tabs" v-model="activeName" @tab-click="handleTabClick">
......@@ -165,7 +165,7 @@ export default {
},
{
label: '剩余库存',
prop: 'stock'
prop: 'residueAmount'
}
]
}
......
<template>
<div class="content-wrap">
<div class="container edit-container" style="min-height: 520px !important">
<p class="edit-title" id="basic">新增内容</p>
<p class="edit-title" id="basic">{{ contentTitle }}</p>
<component :is="currentComponent" ref="componentRef" :merchantChannelId="merchantChannelId" :topicId="topicId" :channelType="channelType"></component>
</div>
<GLFooter>
......@@ -26,6 +26,7 @@ export default {
},
data() {
return {
contentTitle: '',
merchantChannelId: this.$route.query.merchantChannelId ? this.$route.query.merchantChannelId : '', //门店频道id
topicId: this.$route.query.topicId ? this.$route.query.topicId : '', //频道主题ID
channelType: this.$route.query.channelType ? this.$route.query.channelType : '', //频道类型
......@@ -34,6 +35,8 @@ export default {
}
},
created() {
let { $title } = this.$route.query
this.contentTitle = $title ? $title : '新增内容'
//判断显示模块
this.judgeModule()
//获取视频
......
......@@ -27,7 +27,7 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" v-if="scope.scope.contentType == 1" @click="handleConfig(scope.scope)">{{ scope.scope.status == 0 ? '待配置' : '编辑' }}</el-button>
<template v-else>
<el-button type="text" v-if="scope.scope.status == 1&&scope.scope.topStatus == 0" @click="handleTop(scope.scope)">置顶</el-button>
<el-button type="text" v-if="scope.scope.status == 1 && scope.scope.topStatus == 0" @click="handleTop(scope.scope)">置顶</el-button>
<el-button type="text" @click="handleAddContent(scope.scope)">编辑</el-button>
<el-button type="text" v-if="scope.scope.status == 1" @click="handleOut(scope.scope, '下架')">下架</el-button>
<el-button type="text" v-if="scope.scope.status == 2" @click="handleOut(scope.scope, '上架')">上架</el-button>
......@@ -63,7 +63,7 @@ export default {
searchFormData: [],
formData: [
{
label: '频道卡片主主题',
label: '频道卡片主标题',
name: 'topicTitle',
type: 'input',
filter: '1'
......@@ -120,7 +120,7 @@ export default {
label: '宣传文案',
prop: 'promotion',
line: 1,
minWidth: 200,
width: 200,
formatter: cellValue => {
return cellValue.contentList[0].promotion
},
......@@ -141,7 +141,7 @@ export default {
label: '活动名称',
prop: 'activityName',
width: 150,
line:1,
line: 1,
filter: '3,4',
formatter: cellValue => {
return cellValue.contentList[0].activityName
......@@ -280,19 +280,19 @@ export default {
res.forEach(item => {
this.tabPaneList.push({
label: item.channelName,
name: item.channelType,
name: item.channelType + '',
merchantChannelId: item.id
})
})
this.SET_MERCHANT_ID({ id: this.merchantId })
this.SET_CHANNEL_STYLE({ channelStyle: res[0].channelStyle })
!this.channelType && this.SET_CHANNEL_TYPE({ channelType: res[0].channelType })
this.activeName = res[0].channelType
this.activeName = res[0].channelType + ''
this.merchantChannelId = res[0].id
this.tabPaneText = res[0].channelName
this.isFlag = true
if (this.channelType) {
this.activeName = this.channelType
this.activeName = this.channelType + ''
this.handleClick()
}
})
......@@ -300,14 +300,14 @@ export default {
//新增编辑内容
handleAddContent(val) {
if (val) {
this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&topicId=${val.topicId}&channelType=${this.activeName}`)
this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&topicId=${val.topicId}&channelType=${this.activeName}&$title=编辑内容`)
} else {
this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&channelType=${this.activeName}`)
this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&channelType=${this.activeName}&$title=新增内容`)
}
},
//膜类待配置
handleConfig(val) {
this.$router.push(`/store/content?topicId=${val.topicId}&channelType=-1`)
this.$router.push(`/store/content?topicId=${val.topicId}&channelType=-1&$title=新增配置`)
},
handleClick() {
this.SET_CHANNEL_TYPE({ channelType: this.activeName })
......
......@@ -149,11 +149,9 @@ export default {
tableColumns: [
{
label: '门店名称',
prop: 'merchantName ',
// width: '200',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
prop: 'merchantName',
width: '250',
line:1
},
{
label: '频道个数',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!