Commit 0ed9b278 by cwq0219

商品管理-带货;部分样式

1 parent 8226221f
...@@ -14,19 +14,25 @@ html { ...@@ -14,19 +14,25 @@ html {
padding: 20px; padding: 20px;
} }
.marketing.edit-box .container {
padding: 20px 0 20px;
}
.live-room .container { .live-room .container {
background: #FFFFFF; background: #FFFFFF;
margin: 20px 0px; margin: 20px 0px;
padding: 15px 20px; padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10); box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
} }
//输入框后置文字(如 “元”) //输入框后置文字(如 “元”)
.suffix-label{ .suffix-label {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
margin-right: 5px; margin-right: 5px;
} }
// 单行省略 // 单行省略
.ellipsis-1 { .ellipsis-1 {
overflow: hidden; overflow: hidden;
...@@ -108,10 +114,6 @@ html { ...@@ -108,10 +114,6 @@ html {
margin-top: 20px; margin-top: 20px;
} }
.marketing .m-b-20 {
margin-bottom: 20px;
}
.marketing .footer-btns { .marketing .footer-btns {
float: right; float: right;
margin-bottom: 18px; margin-bottom: 18px;
...@@ -156,15 +158,27 @@ html { ...@@ -156,15 +158,27 @@ html {
margin-top: 10px; margin-top: 10px;
} }
.marketing .m-b-20 {
margin-bottom: 20px;
}
.marketing .m-t-20 { .marketing .m-t-20 {
margin-top: 20px; margin-top: 20px;
} }
.marketing .m-r-20 {
margin-right: 20px;
}
.marketing.p-t-20, .marketing.p-t-20,
.marketing .p-t-20 { .marketing .p-t-20 {
padding-top: 20px; padding-top: 20px;
} }
.marketing .p-l-40 {
padding-left: 40px;
}
.marketing .txt-center { .marketing .txt-center {
text-align: center; text-align: center;
} }
...@@ -196,13 +210,13 @@ html { ...@@ -196,13 +210,13 @@ html {
.marketing .edit-title { .marketing .edit-title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: 500;
height: 48px; font-family: PingFangSC-Medium, PingFang SC;
line-height: 48px; height: 28px;
// color: #0947C6; line-height: 28px;
border-bottom: 1px solid #E7EAEC; border-bottom: 1px solid #E7EAEC;
// padding-left: 20px;
margin: 0 0; margin: 0 0;
padding: 0 0 11px 40px;
} }
// .marketing .edit-sub-title::before { // .marketing .edit-sub-title::before {
......
<!-- 编辑分类 --> <!-- 编辑分类 -->
<template> <template>
<div class="edit-classify marketing p-t-20"> <div class="edit-classify marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......
<!-- 首页设置 --> <!-- 首页设置 -->
<template> <template>
<div class="home-set marketing p-t-20"> <div class="home-set marketing p-t-20 edit-box">
<div class="container edit-container flex"> <div class="container edit-container flex">
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-sub-title">{{ item.title }}</p> <p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule"> <glsx-combi-form class="edit-form-container p-l-40" ref="editFormRef" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<template slot="merchantQrcode" slot-scope="scope"> <template slot="merchantQrcode" slot-scope="scope">
<img class="img-100" :src="editForm[scope.scope.name]" /> <img class="img-100" :src="editForm[scope.scope.name]" />
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载</el-button> <el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载</el-button>
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p> <p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p> <p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</div> </div>
<!-- <template slot="serviceTable"> <template slot="serviceTable">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable> <GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</template> --> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
...@@ -190,7 +190,7 @@ export default { ...@@ -190,7 +190,7 @@ export default {
{ confId: '2', confName: '图文介绍' }, { confId: '2', confName: '图文介绍' },
{ confId: '3', confName: '视频介绍' } { confId: '3', confName: '视频介绍' }
], ],
labelWidth: '110px', labelWidth: '90px',
externalFormList: [ externalFormList: [
{ {
title: '门店小程序码', title: '门店小程序码',
...@@ -243,46 +243,46 @@ export default { ...@@ -243,46 +243,46 @@ export default {
maxlength: '300' maxlength: '300'
} }
] ]
},
{
title: '在线客服',
editFormData: [
{
label: '在线客服',
name: 'customerServerUserId',
type: 'select',
optionList: [],
optionId: 'userOneid',
optionLabel: 'staffName',
optionsName: 'consultantList',
isClear: true,
changeAttr: (value, targetItem) => {
var tempObj = {
customerServerName: '',
customerServerUserTitle: ''
}
this.customerServerList = []
this.editForm.customerServerId = ''
this.editForm.customerServerName = ''
this.editForm.customerServerUserTitle = ''
if (value) {
tempObj = this.baseData.consultantList.find(item => item.id == value)
this.editForm.customerServerId = tempObj.id
this.editForm.customerServerName = tempObj.staffName
this.editForm.customerServerUserTitle = tempObj.staffTitle
this.customerServerList.push({
customerServerName: tempObj.staffName,
customerServerUserTitle: tempObj.staffTitle,
})
}
}
},
{
label: '',
addHtml: 'serviceTable'
}
]
} }
// {
// title: '在线客服',
// editFormData: [
// {
// label: '在线客服',
// name: 'customerServerUserId',
// type: 'select',
// optionList: [],
// optionId: 'id',
// optionLabel: 'staffName',
// optionsName: 'consultantList',
// isClear: true,
// changeAttr: (value, targetItem) => {
// var tempObj = {
// customerServerName: '',
// customerServerUserTitle: ''
// }
// this.customerServerList = []
// this.editForm.customerServerId = ''
// this.editForm.customerServerName = ''
// this.editForm.customerServerUserTitle = ''
// if (value) {
// tempObj = this.baseData.consultantList.find(item => item.id == value)
// this.editForm.customerServerId = tempObj.id
// this.editForm.customerServerName = tempObj.staffName
// this.editForm.customerServerUserTitle = tempObj.staffTitle
// this.customerServerList.push({
// customerServerName: tempObj.staffName,
// customerServerUserTitle: tempObj.staffTitle,
// })
// }
// }
// },
// {
// label: '',
// addHtml: 'serviceTable'
// }
// ]
// }
], ],
// 基本信息 // 基本信息
baseData: { baseData: {
...@@ -296,7 +296,7 @@ export default { ...@@ -296,7 +296,7 @@ export default {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getInfo() this.getInfo()
// this.getConsultant() this.getConsultant()
}, },
methods: { methods: {
...@@ -539,9 +539,9 @@ export default { ...@@ -539,9 +539,9 @@ export default {
} }
</script> </script>
<style scoped> <style scoped>
.home-set .container { /* .home-set .container {
padding: 30px; padding: 20px 24px 20px 0;
} } */
.home-set .home-img-w-h { .home-set .home-img-w-h {
width: 264px; width: 264px;
height: 108px; height: 108px;
......
<!-- 编辑晒单 --> <!-- 编辑晒单 -->
<template> <template>
<div class="edit-share marketing"> <div class="edit-share marketing edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
this.routeInfo = this.$route.params this.routeInfo = this.$route.params
this.title = this.titleObj[this.routeInfo.addOrEdit] this.title = this.titleObj[this.routeInfo.addOrEdit]
this.isDisabled = this.routeInfo.addOrEdit == 3 this.isDisabled = this.routeInfo.addOrEdit == 3
this.editFormData[0].isDisabled = true this.editFormData[0].isDisabled = this.isDisabled
this.routeInfo.addOrEdit != 1 ? this.getInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
}, },
......
<!-- 编辑专区 --> <!-- 编辑专区 -->
<template> <template>
<div class="edit-zone marketing p-t-20"> <div class="edit-zone marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectMerchant" slot-scope="scope" class="select-merchant"> <div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button type="primary" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换' : '请选择' }}</el-button> <el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div> </div>
<div slot="merchantTable" class="select-merchant"> <div slot="merchantTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.merchantList.length" ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList"> <GLTable v-show="editForm.merchantList.length" ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button> <el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button>
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
addOrEdit: 1, addOrEdit: 1,
id: '' id: ''
}, },
labelWidth: '140px',
editForm: { editForm: {
// 专区类型(1发现频道,2商城专区) // 专区类型(1发现频道,2商城专区)
zoneType: '2', zoneType: '2',
...@@ -98,7 +99,7 @@ export default { ...@@ -98,7 +99,7 @@ export default {
addHtml: 'selectMerchant' addHtml: 'selectMerchant'
}, },
{ {
// label: '门店', // label: '',
name: '', name: '',
addHtml: 'merchantTable' addHtml: 'merchantTable'
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!