Commit c5b21a51 by 杨北旺

style:UI规范修改样式

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