Commit 8d95b228 by wuwx

合并master

2 parents 449e9cdd 57d6708c
<!-- 首页设置 -->
<template>
<div class="home-set marketing edit-box">
<div class="container edit-container flex">
<div class="container edit-container">
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
<div class="item-box" v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': defaultLabelWidth, width: '120px', 'text-align': 'center' }">
<p>
<img class="img-120" :src="editForm[scope.scope.name]" />
</p>
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载图片</el-button>
</div>
<template slot="bannerBtn">
<el-button type="primary" :size="size" @click="handleBannerAdd">新增banner</el-button>
</template>
<div :style="{ 'margin-left': defaultLabelWidth }" slot="bannerList" slot-scope="scope">
<div v-for="(subItem, subIndex) in editForm[scope.scope.name]" :key="subIndex" class="flex">
<!-- 上传图片 -->
<div class="banner-upload-box">
<div class="">
<div class="flex">
<div v-show="!subItem.bannerImg" class="activity-img home-img-w-h" style="margin-bottom: 11px">
<div class="add">+</div>
<span class="number">上传</span>
<input type="file" style="opacity: 0" ref="file" class="activity-img home-img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, subIndex)" />
</div>
<div v-show="!subItem.bannerImg" style="margin-left: 40px">
<el-button type="text" class="el-icon-delete" @click="handleBannerDelete(subIndex)"></el-button>
</div>
</div>
<span v-show="subItem.bannerImg" class="muti-imgs">
<img class="home-img-w-h" :src="subItem.bannerImg" />
<span class="img-btns home-img-w-h">
<span class="btn-item">
<i class="el-icon-delete" @click="handleImgDelete(scope.scope.name, subIndex)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.bannerImg)"></i>
</span>
</span>
</span>
</div>
</div>
<div v-if="subItem.bannerImg" class="flex-grow">
<div class="flex-default">
<span>banner链接</span>
<div class="banner-link">
<el-radio-group v-model="subItem.bannerType">
<el-radio v-for="(m, n) in bannerRadioList" :key="n" :label="m.confId">{{ m.confName }}</el-radio>
</el-radio-group>
<div v-show="subItem.bannerType != '0'" class="link-block">
<div v-show="(subItem.bannerType == '1' && !subItem.goodsId) || (subItem.bannerType == '2' && !subItem.imgLinkUrl) || (subItem.bannerType == '3' && !subItem.videoLinkUrl)">
<el-button class="banner-btn" type="primary" :size="size" @click="handleBnnerLinkClick(scope.scope, subIndex)">
选择
<input v-if="subItem.bannerType == '2'" type="file" ref="file" class="upload-btn" accept="image/png, image/jpeg, image/jpg" @change="e => handleUploadChange(e, item)" />
<input v-if="subItem.bannerType == '3'" type="file" ref="file" class="upload-btn" accept="video/mp4" @change="e => handleUploadVideoChange(e, item)" />
</el-button>
<p class="banner-tips-txt">点击banner后跳转{{ subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文介绍' : '视频介绍' }}</p>
</div>
<!-- 选择商品 -->
<div v-show="subItem.bannerType == '1' && subItem.goodsId" class="flex-grow">
<div class="show-pro-box flex" v-if="subItem.goodsId">
<img class="img-56" :src="subItem.goods.goodsImage" />
<div class="flex-grow pro-txt">
<p class="one-line-ellipsis" :title="subItem.goods.goodsName">{{ subItem.goods.goodsName }}</p>
<div>
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleSinglePro(scope.scope, subIndex)">更换</el-button>
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleProDelete(subIndex)">删除</el-button>
</div>
</div>
<div class="flex pad-32">
<glsx-combi-form ref="editFormRef" class="flex-grow" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': defaultLabelWidth, width: '120px', 'text-align': 'center' }">
<p>
<img class="img-120" :src="editForm[scope.scope.name]" />
</p>
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载图片</el-button>
</div>
<template slot="bannerList" slot-scope="scope">
<div class="banner-box">
<el-button type="primary" plain class="add-banner-btn" :size="size" @click="handleBannerAdd">新增banner</el-button>
<el-tabs v-if="editForm.bannerList.length" v-model="bannerIndex" type="card" class="home-set-tabs" closable @tab-remove="handleBannerDelete">
<el-tab-pane
v-for="(subItem, subIndex) in editForm.bannerList"
:key="subIndex"
:label="'Banner'+ (subIndex + 1)"
:name="'Banner'+ (subIndex + 1)"
>
<!-- 上传图片 -->
<div class="banner-upload-box">
<div class="banner-img">
<span class="banner-label">banner图片:</span>
<div v-show="!subItem.bannerImg" class="activity-img home-img-w-h" style="margin-bottom: 11px">
<div class="add">+</div>
<span class="number">上传</span>
<input type="file" style="opacity: 0" ref="file" class="activity-img home-img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, subIndex)" />
</div>
</div>
<!-- 图文介绍 -->
<div v-show="subItem.bannerType == '2' && subItem.imgLinkUrl" class="m-t-8">
<span class="muti-imgs">
<img class="img-56" :src="subItem.imgLinkUrl" />
<span class="img-btns img-56">
<span v-show="subItem.bannerImg" class="muti-imgs">
<img class="home-img-w-h" :src="subItem.bannerImg" />
<span class="img-btns home-img-w-h">
<span class="btn-item">
<i class="el-icon-delete" @click="handleBannerItemDelete(subIndex, 'imgLinkUrl')"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.imgLinkUrl)"></i>
<i class="el-icon-delete" @click="handleImgDelete(scope.scope.name, subIndex)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.bannerImg)"></i>
</span>
</span>
</span>
</div>
<!-- 视频介绍 -->
<div v-show="subItem.bannerType == '3' && subItem.videoLinkUrl" class="m-t-8">
<span class="muti-imgs">
<video class="img-56 activity-img" :src="subItem.videoLinkUrl"></video>
<span class="img-btns img-56">
<span class="btn-item">
<i class="el-icon-delete" @click="handleBannerItemDelete(subIndex, 'videoLinkUrl')"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.videoLinkUrl, 'video')"></i>
</span>
</span>
</span>
</div>
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸710*140px,大小10M以内</p>
<div class="flex-grow">
<div class="flex-default">
<span class="banner-label">banner链接:</span>
<div class="banner-link">
<el-radio-group v-model="subItem.bannerType" :disabled="!subItem.bannerImg">
<el-radio v-for="(m, n) in bannerRadioList" :key="n" :label="m.confId">{{ m.confName }}</el-radio>
</el-radio-group>
<div v-show="subItem.bannerType != '0'" class="link-block">
<div v-show="(subItem.bannerType == '1') || (subItem.bannerType == '2') || (subItem.bannerType == '3')">
<span class="label"><span v-if="subItem.bannerType == '2'" style="color:red">*</span>{{subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文' : '视频'}}名称:</span>
<el-input :size="size" style="width: 200px;" maxlength="20" v-model.trim="subItem.title" placeholder="请输入内容" clearable></el-input><br>
<span class="label">
选择{{subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文' : '视频'}}:
</span>
<el-button v-show="(subItem.bannerType == '1' && !subItem.goodsId) || (subItem.bannerType == '2' && !subItem.imgLinkUrl) || (subItem.bannerType == '3' && !subItem.videoLinkUrl)" class="banner-btn" :size="size" @click="handleBnnerLinkClick(scope.scope, subIndex)">
+ 选择{{subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文' : '视频'}}
<input v-if="subItem.bannerType == '2'" type="file" ref="file" class="upload-btn" accept="image/png, image/jpeg, image/jpg" @change="e => handleUploadChange(e, item)" />
<input v-if="subItem.bannerType == '3'" type="file" ref="file" class="upload-btn" accept="video/mp4" @change="e => handleUploadVideoChange(e, item)" />
</el-button>
<!-- 选择商品 -->
<div v-show="subItem.bannerType == '1' && subItem.goodsId" class="flex-grow inline-b">
<div class="show-pro-box flex" v-if="subItem.goodsId">
<img class="img-56" :src="subItem.goods.goodsImage" />
<div class="flex-grow pro-txt">
<p class="one-line-ellipsis" :title="subItem.goods.goodsName">{{ subItem.goods.goodsName }}</p>
<div>
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleSinglePro(scope.scope, subIndex)">更换</el-button>
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleProDelete(subIndex)">删除</el-button>
</div>
</div>
</div>
</div>
<!-- 图文介绍 -->
<div v-show="subItem.bannerType == '2' && subItem.imgLinkUrl" class="m-t-8 inline-b">
<span class="muti-imgs">
<img class="img-56" :src="subItem.imgLinkUrl" />
<span class="img-btns img-56">
<span class="btn-item">
<i class="el-icon-delete" @click="handleBannerItemDelete(subIndex, 'imgLinkUrl')"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.imgLinkUrl)"></i>
</span>
</span>
</span>
</div>
<!-- 视频介绍 -->
<div v-show="subItem.bannerType == '3' && subItem.videoLinkUrl" class="m-t-8 inline-b">
<span class="muti-imgs">
<video class="img-56 activity-img" :src="subItem.videoLinkUrl"></video>
<span class="img-btns img-56">
<span class="btn-item">
<i class="el-icon-delete" @click="handleBannerItemDelete(subIndex, 'videoLinkUrl')"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.videoLinkUrl, 'video')"></i>
</span>
</span>
</span>
</div>
<p class="banner-tips-txt">点击banner后跳转{{ subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文介绍' : '视频介绍' }}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
<!-- banner管理配置门店 -->
<div class="approval" slot="bannerToSubMerchant">
<el-radio v-model="editForm.bannerToSubMerchant" :label="'N'">否</el-radio>
<el-radio v-model="editForm.bannerToSubMerchant" :label="'Y'">是</el-radio>
<el-button v-show="editForm.bannerToSubMerchant == 'Y'" type="default" @click="handleRelateStoreClose('banner')">{{ editForm.bannerMerchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<!-- 公告管理配置门店 -->
<div class="approval" slot="noticeToSubMerchant">
<el-radio v-model="editForm.noticeToSubMerchant" :label="'N'">否</el-radio>
<el-radio v-model="editForm.noticeToSubMerchant" :label="'Y'">是</el-radio>
<el-button v-show="editForm.noticeToSubMerchant == 'Y'" type="default" @click="handleRelateStoreClose('notice')">{{ editForm.noticeMerchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<!-- banner管理配置门店 -->
<div slot="merchantTable" class="merchantTable" v-show="editForm.bannerToSubMerchant == 'Y'">
<GLTable v-show="editForm.bannerMerchantList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.bannerMerchantList">
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button>
</span>
</GLTable>
</div>
<!-- 公告管理配置门店 -->
<div slot="noticeMerchantTable" class="merchantTable" v-show="editForm.noticeToSubMerchant == 'Y'">
<GLTable v-show="editForm.noticeMerchantList.length" :hasPage="false" :tableParams="tableParamss" :tableData="editForm.noticeMerchantList">
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDeletes(scope)">删除</el-button>
</span>
</GLTable>
</div>
<!-- 金刚区管理 -->
<div slot="clueBlock">
<el-checkbox-group v-model="editForm.clueList" @change="handleChange">
<el-checkbox v-for="(item, index) in baseData.clueList" :label="item.confId" :key="index">{{ item.confName }}</el-checkbox>
</el-checkbox-group>
</div>
<div class="approval" slot="customerServerUserId" :key="freshFlag">
<el-radio v-model="editForm.customerServerType" :label="1">
<el-select style="width: 432px" v-model="editForm.customerServerUserId" :disabled="editForm.customerServerType == 2" :clearable="true" :placeholder="'请选择在线客服'" :no-data-text="'无数据'" @clear="selectAddAttr" @change="selectAddAttr">
<el-option v-for="value in baseData.consultantList" :key="value.userOneid" :label="value.staffName" :value="value.userOneid"></el-option>
</el-select>
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" :label="2">
<!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> -->
<el-input placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable @change="handleServerUrlChange"></el-input>
</el-radio>
</div>
</glsx-combi-form>
<div class="wechat-container" v-if="item.title == 'Banner管理'">
<div class="wechat-box">
<img class="w-100-per" src="@/assets/phone.png" />
<img class="wechant-back" src="@/assets/homeSet/home-set-bg.png" />
<img class="wechant-bg-menu" src="@/assets/homeSet/home-set-bg-menu.png">
<div class="menu-list">
<div class="menu-item" v-for="(it, index) in menuList" :key="index">
<img :class="!it.hasLimit || editForm.clueList.indexOf(it.idx) != -1 ? 'menu-img': 'menu-img disabled'" :src="require(`@/assets/homeSet/icon-${it.iconPath}.png`)">
<span :class="!it.hasLimit || editForm.clueList.indexOf(it.idx) != -1 ? '' : 'text-disabled'">{{it.menuName}}</span>
</div>
</div>
<!-- <img class="p-absolute icon-dhdd" src="@/assets/homeSet/icon-location.png" />
<img class="p-absolute icon-jyfw" :src="editForm.clueList.indexOf(1) != -1 ? require('@/assets/homeSet/icon-jyfw.png') : require('@/assets/homeSet/icon-jyfw-default.png')" />
<img class="p-absolute icon-wbyy" :src="editForm.clueList.indexOf(2) != -1 ? require('@/assets/homeSet/icon-wbyy.png') : require('@/assets/homeSet/icon-wbyy-default.png')" />
<img class="p-absolute icon-mdkq" src="@/assets/homeSet/icon-mdkq.png" />
<img class="p-absolute icon-xcpd" :src="editForm.clueList.indexOf(3) != -1 ? require('@/assets/homeSet/icon-xcpd.png') : require('@/assets/homeSet/icon-xcpd-default.png')" />
<img class="p-absolute icon-acbb" src="@/assets/homeSet/icon-acbb.png" /> -->
<div class="wechant-notice">
<img class="img-14" src="@/assets/homeSet/notice-icon.png" />
<span>
<marquee width="200px" height="14px" scrolldelay="160">{{ editForm.noticeContent }}</marquee>
</span>
</div>
<div class="wechant-banner-img img-w-h">
<el-carousel height="45px">
<template v-for="item in editForm.copyBannerList">
<el-carousel-item v-if="item.bannerImg" :key="item">
<img class="img-w-h" :src="item.bannerImg" />
</el-carousel-item>
</template>
</el-carousel>
</div>
</div>
<p class="edit-tips">最多支持6张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
......@@ -148,33 +242,7 @@
<el-input placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable @change="handleServerUrlChange"></el-input>
</el-radio>
</div>
</glsx-combi-form>
</div>
</div>
<div class="wechat-container m-r-20" style="margin-top: 59px">
<div class="wechat-box">
<img class="w-100-per" src="@/assets/phone.png" />
<img class="wechant-back" src="@/assets/homeSet/home-set.png" />
<div class="wechant-banner-img img-w-h">
<img v-if="!editForm.bannerList.length" src="@/assets/homeSet/home-set-default.png" />
<el-carousel v-else height="90px">
<el-carousel-item v-for="item in editForm.bannerList" :key="item">
<img class="img-w-h" :src="item.bannerImg" />
</el-carousel-item>
</el-carousel>
</div>
<div class="wechant-notice">
<img class="img-14" src="@/assets/icon_notice.png" />
<span>
<marquee width="200px" height="14px" scrolldelay="160">{{ editForm.noticeContent }}</marquee>
</span>
</div>
<img class="p-absolute icon-fwwd" src="@/assets/homeSet/icon-fwwd.png" />
<img class="p-absolute icon-jyfw" :src="editForm.clueList.indexOf(1) != -1 ? require('@/assets/homeSet/icon-jyfw.png') : require('@/assets/homeSet/icon-jyfw-default.png')" />
<img class="p-absolute icon-wbyy" :src="editForm.clueList.indexOf(2) != -1 ? require('@/assets/homeSet/icon-wbyy.png') : require('@/assets/homeSet/icon-wbyy-default.png')" />
<img class="p-absolute icon-mdkq" src="@/assets/homeSet/icon-mdkq.png" />
<img class="p-absolute icon-xcpd" :src="editForm.clueList.indexOf(3) != -1 ? require('@/assets/homeSet/icon-xcpd.png') : require('@/assets/homeSet/icon-xcpd-default.png')" />
<img class="p-absolute icon-acbb" src="@/assets/homeSet/icon-acbb.png" />
</div>
</div>
</div>
......@@ -293,6 +361,9 @@ export default {
clueList: [],
customerServerUserId: '',
bannerList: [],
copyBannerList: [{
bannerImg: 'https://img02.glsx.com.cn/weapp/resource/miniprogram-test/glsx/index/equity_banner.png'
}],
bannerToSubMerchant: 'N',
noticeToSubMerchant: 'N',
bannerMerchantList: [],
......@@ -337,10 +408,6 @@ export default {
title: 'Banner管理',
editFormData: [
{
label: 'banner图片',
addHtml: 'bannerBtn'
},
{
label: '',
name: 'bannerList',
addHtml: 'bannerList'
......@@ -429,9 +496,50 @@ export default {
{
confId: 3,
confName: '新车频道'
},
{
confId: 4,
confName: '代驾服务'
},
{
confId: 5,
confName: '精品商城'
}
]
}
},
bannerIndex: 'Banner1',
menuList: [
{
menuName: '导航到店',
iconPath: 'location'
},
{
menuName: '门店卡券',
iconPath: 'store-coupon'
},
{
menuName: '新车频道',
iconPath: 'new-car-channel',
hasLimit: true,
idx: 3
},
{
menuName: '维保预约',
iconPath: 'mainten-appoint',
hasLimit: true,
idx: 2
},
{
menuName: '代驾服务',
iconPath: 'sub-driving'
},
{
menuName: '救援服务',
iconPath: 'rescue',
hasLimit: true,
idx: 1
}
]
}
},
......@@ -515,7 +623,8 @@ export default {
linkUrl: item.linkUrl,
imgLinkUrl: '',
videoLinkUrl: '',
source: res.bannerList[inx].source || 1
source: res.bannerList[inx].source || 1,
title: item.title
}
if (item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl
......@@ -531,6 +640,7 @@ export default {
}
}
this.editForm.bannerList.push(params)
this.editForm.copyBannerList.push(params)
})
}
// banner管理配置门店
......@@ -624,17 +734,20 @@ export default {
}
},
handleBannerAdd() {
if (this.editForm.bannerList.length >= 6) {
if (this.editForm.bannerList.length >= 4) {
this.$message({
message: '最多只能新增6个banner',
message: '最多只能新增4个banner',
type: 'error'
})
return true
}
this.editForm.bannerList.push(this.$common.utils.deepClone(this.bannerItem))
this.editForm.copyBannerList.push(this.$common.utils.deepClone(this.bannerItem))
},
handleBannerDelete(idx) {
this.editForm.bannerList.splice(idx, 1)
handleBannerDelete(tabName) {
let idx = tabName.slice(tabName.length - 1, tabName.length)
this.editForm.bannerList.splice(idx - 1, 1)
this.editForm.copyBannerList.splice(idx, 1)
},
handleProDelete(idx) {
this.editForm.bannerList[idx].goodsId = ''
......@@ -770,6 +883,7 @@ export default {
handleConfirm() {
var params = this.$common.utils.deepClone(this.editForm)
params.bannerList = []
let flag = true
this.editForm.bannerList.forEach((item, idx) => {
params.bannerList.push({
bannerImg: item.bannerImg,
......@@ -779,6 +893,10 @@ export default {
goods: {},
source: item.source || 1
})
params.bannerList[idx].title = item.title
if (!item.title && item.bannerType == 2) {
flag = false
}
if (item.bannerType == '1' && item.goodsId) {
params.bannerList[idx].goodsId = item.goodsId
params.bannerList[idx].goods = {
......@@ -797,6 +915,10 @@ export default {
params.bannerList[idx].bannerType = 0
}
})
if (!flag) return this.$message({
message: '请输入图文名称',
type: 'error'
})
// banner管理配置门店
params.bannerMerchantList = []
if (this.editForm.bannerToSubMerchant == 'Y') {
......@@ -846,6 +968,66 @@ export default {
}
</script>
<style>
.home-set .edit-container {
background: transparent !important;
}
.home-set .home-set-form .item-box{
margin-bottom: 16px;
background: #fff;
}
.home-set .home-set-form .item-box .pad-32{
padding: 32px 0;
}
.home-set .home-set-form .item-box .wechat-container{
margin: 0 64px 0 20px !important;
}
.home-set .home-set-form .item-box .banner-box{
position: relative;
padding-left: 20px;
}
.home-set .home-set-form .item-box .add-banner-btn {
position: absolute;
top: 0;
right: 0;
z-index: 10;
}
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__content{
border: 1px solid #E5E5E5;
border-radius: 0 4px 4px 4px;
border-top: none;
padding: 20px;
}
.home-set .banner-img{
display: flex;
}
.home-set .banner-label{
flex: 0 134px;
text-align: right;
font-weight: 400;
color: #666;
}
.home-set .home-set-form .item-box .home-set-tabs.el-tabs--card>.el-tabs__header .el-tabs__nav{
border: none !important;
}
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__item{
border-radius: 4px 4px 0px 0px;
border: 1px solid #eeedff !important;
font-size: 14px;
color: #37383A;
}
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__item.is-active{
color: #5850ff;
background: #ffffff !important;
border-radius: 4px 4px 0px 0px;
border: 1px solid #eeedff !important;
border-bottom: none !important;
}
.home-set .home-img-w-h {
width: 264px;
height: 108px;
......@@ -861,10 +1043,19 @@ export default {
left: 19px;
border: 1px solid #d8d8d8;
}
.home-set .wechat-container .wechat-box .wechant-bg-menu {
width: 252px;
box-sizing: border-box;
position: absolute;
bottom: 56px;
left: 19px;
border: 1px solid #d8d8d8;
border-top: none;
}
.home-set .wechat-container .wechat-box .wechant-banner-img {
position: absolute;
top: 141px;
left: 35px;
top: 335px;
left: 29px;
}
.img-14 {
width: 14px;
......@@ -872,21 +1063,54 @@ export default {
margin-right: 4px;
}
.home-set .wechat-container .wechat-box .img-w-h {
width: 220px;
height: 90px;
width: 232px;
height: 45px;
}
.home-set .wechat-container .wechat-box .wechant-notice {
position: absolute;
top: 237px;
top: 315px;
left: 35px;
font-size: 12px;
height: 14px;
line-height: 14px;
color: #333333;
}
.home-set .wechat-container .wechat-box .icon-fwwd {
top: 262px;
.home-set .wechat-container .wechat-box .menu-list {
position: absolute;
width: 250px;
top: 200px;
left: 19px;
display: flex;
flex-flow: wrap;
overflow: hidden;
}
.home-set .wechat-container .wechat-box .menu-list .menu-item{
width: 25%;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
margin: 5px 0;
}
.home-set .wechat-container .wechat-box .menu-list .menu-item span{
font-size: 10px;
transform: scale(.8);
}
.home-set .wechat-container .wechat-box .menu-list .menu-item .menu-img{
width: 33px;
height: 33px;
}
.home-set .wechat-container .wechat-box .menu-list .menu-item .disabled{
opacity:0.3;
}
.home-set .wechat-container .wechat-box .menu-list .menu-item .text-disabled{
color: #999;
}
.home-set .wechat-container .wechat-box .icon-dhdd {
top: 210px;
left: 40px;
width: 33px;
height: 43px;
}
.home-set .wechat-container .wechat-box .icon-wbyy {
top: 262px;
......@@ -912,18 +1136,19 @@ export default {
width: 5px !important;
}
.home-set .banner-upload-box {
width: 264px;
/* width: 264px; */
/* margin: 0 10px 10px 0; */
margin-right: 10px;
/* margin-right: 10px; */
}
.home-set .edit-tips {
line-height: 20px;
font-size: 14px;
color: #999999;
width: 338px;
margin-left: 134px;
}
.home-set .show-pro-box {
padding: 8px 12px;
padding: 8px 0;
}
.home-set .img-56 {
width: 56px;
......@@ -932,6 +1157,9 @@ export default {
.home-set .m-t-8 {
margin-top: 8px;
}
.home-set .inline-b {
display: inline-block;
}
.home-set .show-pro-box .pro-txt {
width: 154px;
text-align: left;
......@@ -941,8 +1169,8 @@ export default {
padding-top: 12px;
}
.home-set .banner-link {
width: 246px;
margin-left: 20px;
width: 100%;
/* margin-left: 20px; */
}
.home-set .banner-link .el-radio {
margin-right: 17px;
......@@ -952,8 +1180,10 @@ export default {
}
.home-set .link-block {
width: 100%;
height: 72px;
text-align: center;
/* height: 128px; */
text-align: left;
padding: 20px 40px;
box-sizing: border-box;
background-color: #f7f7f7;
border: 1px solid #dcdfe6;
}
......
......@@ -336,19 +336,22 @@ export default {
if (list.length && pIdx != -1) {
list[pIdx].labelList.push({
id: item.labelId,
name: item.labelName
name: item.labelName,
labelType: item.labelGroupType
})
} else {
groupIdList.push(item.labelGroupId)
list.push({
labelGroup: {
id: item.labelGroupId,
name: item.labelGroupName
name: item.labelGroupName,
labelType: item.labelGroupType
},
labelList: [
{
id: item.labelId,
name: item.labelName
name: item.labelName,
labelType: item.labelGroupType
}
]
})
......@@ -405,7 +408,6 @@ export default {
getInfo() {
this.$apis.sop.getSopInfoDetailApi({ sopId: this.routeInfo.id }).then(res => {
// console.log(res)
this.editForm = res
this.currentCustomerIdx = this.customerDataList.findIndex(item => item.confId == this.editForm.customerOptType)
this.recoverCustomerList()
......@@ -661,7 +663,7 @@ export default {
list.push({
labelGroupId: item.labelGroup.id,
labelGroupName: item.labelGroup.name,
labelGroupType: item.labelType,
labelGroupType: item.labelType || subItem.labelType,
labelId: subItem.id,
labelName: subItem.name
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!