Commit c5b21a51 by 杨北旺

style:UI规范修改样式

1 parent d1d185e1
...@@ -188,24 +188,20 @@ ...@@ -188,24 +188,20 @@
</div> </div>
<!-- 底部固定按钮 --> <!-- 底部固定按钮 -->
<div style="height: 78px"></div> <!-- <div style="height: 78px"></div> -->
<div <div
class="fixed_bottom" class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
> >
<div class="ma_top"></div> <!-- <div class="ma_top"></div> -->
<div class="flex_cc ma_bot"> <div class="flex_cc ma_bot">
<el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" size="small" class="custom_black" @click="handleReset">重置</el-button> <el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" class="custom_black" @click="handleReset">重置</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
<el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" size="small" @click="handleDraft">草稿</el-button> <el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleDraft">草稿</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" size="small" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button> <el-button v-if="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != 5" size="small" @click="handleCancel">返回</el-button> <el-button v-if="routeInfo.addOrEdit != 5" @click="handleCancel">返回</el-button>
<el-button v-else size="small" type="primary" @click="handleCancel">返回</el-button> <el-button v-else type="primary" @click="handleCancel">返回</el-button>
</div> </div>
</div> </div>
...@@ -232,8 +228,6 @@ export default { ...@@ -232,8 +228,6 @@ export default {
PC0005: '', PC0005: '',
PC0007: '' PC0007: ''
}, },
footerLeft: '0',
footerWidth: '0',
editCarChildRef: 'editChildRef', editCarChildRef: 'editChildRef',
disabled: false, disabled: false,
successDisable: false, successDisable: false,
...@@ -734,8 +728,6 @@ export default { ...@@ -734,8 +728,6 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
const urlParam = this.$route.params const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id)) this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
this.disabled = this.routeInfo.addOrEdit == '5' this.disabled = this.routeInfo.addOrEdit == '5'
...@@ -1815,9 +1807,9 @@ export default { ...@@ -1815,9 +1807,9 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.edit-equity { // .edit-equity {
margin-top: 17px; // margin-top: 17px;
} // }
.before-sale .container { .before-sale .container {
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);
...@@ -2081,24 +2073,24 @@ export default { ...@@ -2081,24 +2073,24 @@ export default {
margin-right: 10px; margin-right: 10px;
} }
.fixed_bottom { .fixed_bottom {
position: fixed; // position: fixed;
width: 100%; // width: 100%;
bottom: 0px; // bottom: 0px;
height: 82px; // height: 82px;
// display: flex; // display: flex;
// align-items: center; // align-items: center;
// justify-content: center; // justify-content: center;
background: #ffffff; // background: #ffffff;
z-index: 999; // z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
.ma_top { // .ma_top {
height: 4px; // height: 4px;
background: #f4f5fa; // background: #f4f5fa;
} // }
.ma_bot { .ma_bot {
box-sizing: border-box; box-sizing: border-box;
padding: 0 20px 0 40px; padding-top: 16px;
height: 78px; // height: 78px;
.custom_black { .custom_black {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;
......
...@@ -943,9 +943,9 @@ export default { ...@@ -943,9 +943,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.before-sale { // .before-sale {
margin-top: 17px; // margin-top: 17px;
} // }
.before-sale .flex { .before-sale .flex {
display: flex; display: flex;
} }
......
...@@ -59,13 +59,9 @@ ...@@ -59,13 +59,9 @@
</div> </div>
</div> </div>
<div <div
class="fixed_bottom" class="fixed_bottom flex_cc"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
> >
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button> <el-button type="primary" @click="handleConfirm">确定</el-button>
</div> </div>
</template> </template>
<template v-if="showPage == 2"> <template v-if="showPage == 2">
...@@ -123,8 +119,6 @@ export default { ...@@ -123,8 +119,6 @@ export default {
size: 'small', size: 'small',
isBlock: true, isBlock: true,
title: '店面服务设置', title: '店面服务设置',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
editForm: { editForm: {
hotline: '', hotline: '',
...@@ -242,8 +236,6 @@ export default { ...@@ -242,8 +236,6 @@ export default {
mounted() { mounted() {
this.getHotline() this.getHotline()
this.getActiveCode() this.getActiveCode()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}, },
methods: { methods: {
...@@ -401,14 +393,14 @@ export default { ...@@ -401,14 +393,14 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.edit-equity { // .edit-equity {
margin-top: 17px; // // margin-top: 17px;
width: 100%; // // width: 100%;
// height: calc(100% - 108px); // }
}
.edit-container { .edit-container {
width: 100%; width: 100%;
height: 76vh; height: calc(100vh - 195px);
// height: 76vh;
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);
} }
...@@ -554,16 +546,17 @@ export default { ...@@ -554,16 +546,17 @@ export default {
} }
} }
.fixed_bottom { .fixed_bottom {
position: fixed; margin-top: 16px;
width: 100%; // position: fixed;
bottom: 0px; // width: 100%;
height: 78px; // bottom: 0px;
display: flex; // height: 78px;
align-items: center; // display: flex;
justify-content: center; // align-items: center;
background: #ffffff; // justify-content: center;
z-index: 999; // background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); // z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.nodata_widget { .nodata_widget {
margin-top: 17px; margin-top: 17px;
......
<!-- 编辑权益 --> <!-- 编辑权益 -->
<template> <template>
<div class="before-sale edit-equity edit-order"> <div class="before-sale edit-equity edit-order">
<div style="padding: 17px 0 55px;"> <div>
<!-- <div class="help-service"> <!-- <div class="help-service">
<img class="service-img" src="./image/code.png" /> <img class="service-img" src="./image/code.png" />
<p>提单及服务咨询</p> <p>提单及服务咨询</p>
...@@ -82,13 +82,12 @@ ...@@ -82,13 +82,12 @@
</div> </div>
</div> </div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <div class="operate-btn flex_cc">
<div class="footer operate-btn"> <el-button class="reset-btn" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button>
<el-button size="small" class="reset-btn" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button> <el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft(2)">草稿</el-button>
<el-button size="small" v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft(2)">草稿</el-button> <el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm(1)">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<el-button size="small" v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm(1)">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button> <el-button v-if="routeInfo.addOrEdit != 5" @click="handleCancel">返回</el-button>
<el-button v-if="routeInfo.addOrEdit != 5" size="small" @click="handleCancel">返回</el-button> <el-button v-else type="primary" @click="handleCancel">返回</el-button>
<el-button v-else size="small" type="primary" @click="handleCancel">返回</el-button>
</div> </div>
<qrCode :bottom="320" :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode> <qrCode :bottom="320" :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode>
...@@ -115,8 +114,6 @@ export default { ...@@ -115,8 +114,6 @@ export default {
// 2: '编辑权益', // 2: '编辑权益',
// 3: '查看权益' // 3: '查看权益'
// }, // },
// footerLeft: '0',
// footerWidth: '0',
editCarChildRef: 'editChildRef', editCarChildRef: 'editChildRef',
disabled: false, disabled: false,
successDisable: false, successDisable: false,
...@@ -586,8 +583,6 @@ export default { ...@@ -586,8 +583,6 @@ export default {
}, },
mounted() { mounted() {
// this.footerLeft = document.querySelector('.base-container-right').offsetLeft
// this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// this.routeInfo = this.$route.params // this.routeInfo = this.$route.params
const urlParam = this.$route.params const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id)) this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
...@@ -1227,23 +1222,24 @@ export default { ...@@ -1227,23 +1222,24 @@ export default {
text-align: center; text-align: center;
} }
.before-sale .footer { // .before-sale .footer {
width: 100%; // // margin-top: 16px;
position: fixed; // // width: 100%;
bottom: 0; // // position: fixed;
height: 64px; // // bottom: 0;
left: 0; // // height: 78px;
text-align: center; // // left: 0;
line-height: 64px; // // text-align: center;
background: #ffffff; // // line-height: 78px;
z-index: 0; // // background: #ffffff;
// // z-index: 0;
// }
.operate-btn{
margin-top: 16px;
// width: 88px;
// margin-left: 20px;
} }
/* .operate-btn .el-button{
width: 88px;
margin-left: 20px;
} */
.before-sale .edit-form-container { .before-sale .edit-form-container {
margin-top: 20px; margin-top: 20px;
} }
......
...@@ -1489,9 +1489,9 @@ export default { ...@@ -1489,9 +1489,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.before-sale { // .before-sale {
padding-top: 17px; // padding-top: 17px;
} // }
.before-sale .flex { .before-sale .flex {
display: flex; display: flex;
......
...@@ -61,9 +61,8 @@ ...@@ -61,9 +61,8 @@
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" /> <img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" />
</div> --> </div> -->
</div> </div>
<div class="fixed_bottom" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="fixed_bottom flex_cc">
<!-- <div class="footer"> --> <el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div> </div>
</template> </template>
<template v-if="showPage == 2"> <template v-if="showPage == 2">
...@@ -121,8 +120,6 @@ export default { ...@@ -121,8 +120,6 @@ export default {
size: 'small', size: 'small',
isBlock: true, isBlock: true,
title: '店面服务设置', title: '店面服务设置',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
qrcodeUrl: '', qrcodeUrl: '',
editForm: { editForm: {
...@@ -228,8 +225,6 @@ export default { ...@@ -228,8 +225,6 @@ export default {
} }
this.getHotline() this.getHotline()
this.getActiveCode() this.getActiveCode()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// this.getDefaultCarbrand() // this.getDefaultCarbrand()
}, },
...@@ -393,16 +388,16 @@ export default { ...@@ -393,16 +388,16 @@ export default {
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; padding: 20px;
height: 76vh; height: calc(100vh - 195px);
} }
.before-sale { // .before-sale {
padding-top: 17px; // padding-top: 17px;
} // }
.before-sale .edit-container { // .before-sale .edit-container {
margin-bottom: 84px; // margin-bottom: 84px;
} // }
.before-sale .edit-form-container { .before-sale .edit-form-container {
margin-top: 20px; margin-top: 20px;
...@@ -509,16 +504,17 @@ export default { ...@@ -509,16 +504,17 @@ export default {
} }
} }
.fixed_bottom { .fixed_bottom {
position: fixed; margin-top: 16px;
width: 100%; // position: fixed;
bottom: 0px; // width: 100%;
height: 78px; // bottom: 0px;
display: flex; // height: 78px;
align-items: center; // display: flex;
justify-content: center; // align-items: center;
background: #ffffff; // justify-content: center;
z-index: 999; // background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); // z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.new_container { .new_container {
box-sizing: border-box; box-sizing: border-box;
......
...@@ -326,8 +326,8 @@ export default { ...@@ -326,8 +326,8 @@ export default {
// min-height: 520px; // min-height: 520px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
padding-bottom: 15px; // padding-bottom: 15px;
.tip_line { .tip_line {
box-sizing: border-box; box-sizing: border-box;
padding: 22px 20px 25px 20px; padding: 22px 20px 25px 20px;
...@@ -368,7 +368,7 @@ export default { ...@@ -368,7 +368,7 @@ export default {
} }
} }
.list_wrapper { .list_wrapper {
margin-top: 26px; // margin-top: 26px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
// height: calc(100% - 17px); // height: calc(100% - 17px);
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
} }
.top_tip_title { .top_tip_title {
width: 100%; width: 100%;
......
...@@ -395,7 +395,7 @@ export default { ...@@ -395,7 +395,7 @@ export default {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
} }
.mini_margin { .mini_margin {
margin-top: 10px; margin-top: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!