Commit 23c707ca by 杨北旺

售前权益UI样式调整

1 parent ce92adad
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + '' : ''" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
......
<!-- 店面服务设置 --> <!-- 店面服务设置 -->
<template> <template>
<div class="before-sale edit-equity"> <div class="edit-equity">
<div class="container edit-container"> <div class="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" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar"> <glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId"> <template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:160px;" clearable> <el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
<template slot="vehicleSubBrandId"> <template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:160px;" clearable> <el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<div
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer" :style="{ width: '100%' }"> <!-- <div class="footer" :style="{ width: '100%' }">
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button type="primary" @click="handleConfirm">确定</el-button>
</div> </div> -->
</div> </div>
</template> </template>
...@@ -55,7 +64,7 @@ export default { ...@@ -55,7 +64,7 @@ export default {
], ],
editFormDataCar: [ editFormDataCar: [
{ {
label: '主营品牌', label: '品牌',
name: 'vehicleBrandId', name: 'vehicleBrandId',
addHtml: 'vehicleBrandId' addHtml: 'vehicleBrandId'
}, },
...@@ -86,6 +95,8 @@ export default { ...@@ -86,6 +95,8 @@ export default {
mounted() { mounted() {
this.getHotline() this.getHotline()
// this.getDefaultCarbrand() // this.getDefaultCarbrand()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}, },
methods: { methods: {
...@@ -97,7 +108,7 @@ export default { ...@@ -97,7 +108,7 @@ export default {
getDefaultCarbrand() { getDefaultCarbrand() {
this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => { this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => {
// console.log(res) // console.log(res)
if(res) { if (res) {
this.editForm.id = res.id this.editForm.id = res.id
this.editForm.vehicleBrandId = res.vehicleBrandId this.editForm.vehicleBrandId = res.vehicleBrandId
this.editForm.vehicleSubBrandId = res.vehicleSubBrandId this.editForm.vehicleSubBrandId = res.vehicleSubBrandId
...@@ -133,8 +144,8 @@ export default { ...@@ -133,8 +144,8 @@ export default {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
Promise.all([this.$apis.beforeSale.updateHotlineApi(params), this.$apis.beforeSale.updateCarBrandApi(params)]).then(([hotlineRes, carBrandRes]) => { Promise.all([this.$apis.beforeSale.updateHotlineApi(params), this.$apis.beforeSale.updateCarBrandApi(params)]).then(([hotlineRes, carBrandRes]) => {
this.$message({ this.$message({
message: (hotlineRes.code == '0' && carBrandRes.code == '0') ? '操作成功' : '操作失败', message: hotlineRes.code == '0' && carBrandRes.code == '0' ? '操作成功' : '操作失败',
type: (hotlineRes.code == '0' && carBrandRes.code == '0') ? 'success' : 'error' type: hotlineRes.code == '0' && carBrandRes.code == '0' ? 'success' : 'error'
}) })
this.getHotline() this.getHotline()
this.getDefaultCarbrand() this.getDefaultCarbrand()
...@@ -145,57 +156,59 @@ export default { ...@@ -145,57 +156,59 @@ export default {
} }
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.before-sale .container { .edit-equity {
padding: 0px 20px 20px 40px; margin-top: 17px;
width: 100%;
height: calc(100% - 108px);
}
.edit-container {
width: 100%;
height: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
} }
/* .before-sale .edit-equity{
.before-sale .edit-container { height: 100vh;
margin-bottom: 84px; }
.before-sale .container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.before-sale .edit-form-container { .before-sale .edit-form-container {
margin-top: 20px; margin-top: 20px;
} } */
.before-sale .txt-center { /* .before-sale .footer {
text-align: center;
}
.before-sale .footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 64px; height: 64px;
/* left: 220px; */
text-align: center; text-align: center;
line-height: 64px; line-height: 64px;
background: #ffffff; background: #ffffff;
z-index: 999; z-index: 999;
} } */
.before-sale .flex { /* .before-sale .flex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.before-sale .flex-grow { .before-sale .flex-grow {
flex: 1; flex: 1;
} } */
.before-sale .edit-title { .edit-title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: 600;
height: 48px; border-bottom: 1px solid #e7eaec;
line-height: 48px; padding: 15px 20px;
border-bottom: 1px solid #E7EAEC; margin-bottom: 32px;
margin: 0 0;
} }
.before-sale .edit-sub-title { /* .before-sale .edit-sub-title {
position: relative; position: relative;
font-size: 13px; font-size: 13px;
font-weight: 700; font-weight: 700;
...@@ -205,21 +218,33 @@ export default { ...@@ -205,21 +218,33 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
padding-left: 8px; padding-left: 8px;
background-color: rgba(242, 242, 242, 1); background-color: rgba(242, 242, 242, 1);
} } */
.before-sale .message-Z-zinde { /* .before-sale .message-Z-zinde {
z-index: 3000 !important; z-index: 3000 !important;
} } */
.before-sale .txt-red { /* .before-sale .txt-red {
color: red; color: red;
} } */
.one-line-ellipsis { /* .one-line-ellipsis {
display: -webkit-box; display: -webkit-box;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} */
.fixed_bottom {
position: fixed;
width: 100%;
bottom: 0px;
height: 78px;
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!