Commit fc71ae59 by 陆志强

feat: 样式优化

parent 7ed5f64a
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta http-equiv="Cache-Control" content="no-store no-cache" /> <meta http-equiv="Cache-Control" content="no-store no-cache" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> --> <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> -->
<link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/config.js" rel="preload" as="script" /> <link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/config.js" rel="preload" as="script" />
<!-- <link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/moduleLoader.js" rel="preload" as="script" /> --> <!-- <link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/moduleLoader.js" rel="preload" as="script" /> -->
......
...@@ -166,3 +166,7 @@ body { ...@@ -166,3 +166,7 @@ body {
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }
.van-dialog__message {
font-size: 16px !important;
}
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 12px; padding: 16px 12px 12px;
font-size: 14px; font-size: 14px;
&-title { &-title {
font-size: 16px; font-size: 16px;
......
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 12px; padding: 16px 12px 12px;
font-size: 14px; font-size: 14px;
&-title { &-title {
font-size: 16px; font-size: 16px;
...@@ -232,8 +232,8 @@ export default { ...@@ -232,8 +232,8 @@ export default {
align-items: center; align-items: center;
margin-left: 15px; margin-left: 15px;
img { img {
width: 16px; width: 20px;
height: 16px; height: 20px;
margin-right: 4px; margin-right: 4px;
} }
.name { .name {
...@@ -306,8 +306,8 @@ export default { ...@@ -306,8 +306,8 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
img { img {
width: 16px; width: 20px;
height: 16px; height: 20px;
margin-left: 10px; margin-left: 10px;
} }
} }
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
line-height: 36px; line-height: 36px;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
margin: 15px auto 25px; margin: 15px auto 28px;
padding-right: 12px; padding-right: 12px;
} }
</style> </style>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</template> </template>
<template v-if="item.type === 'address' && item.isChecked"> <template v-if="item.type === 'address' && item.isChecked">
<template v-if="!addressList.length"> <template v-if="!addressList.length">
<van-field v-model="form.address" label-width="60" label="收地址" readonly placeholder="请选择省市区" @focus="isError = false" @click="select" > <van-field v-model="form.address" label-width="60" label="收地址" readonly placeholder="请选择省市区" @focus="isError = false" @click="select" >
<template #button> <template #button>
<van-icon name="location" /> <van-icon name="location" />
</template> </template>
...@@ -45,11 +45,17 @@ ...@@ -45,11 +45,17 @@
/> />
</template> </template>
<template v-else> <template v-else>
<div class="address" @click="isShowAddressPopup = true"> <div v-if="lotteryInfo.newPremise[0].isChecked + lotteryInfo.newPremise[1].isChecked === 0" class="address" @click="isShowAddressPopup = true">
<img class="address-icon" src="@/assets/images/lottery/address.png" alt=""> <img class="address-icon" src="@/assets/images/lottery/address.png" alt="">
<div class="address-text">{{ form.address + form.detail }}</div> <div class="address-text">{{ form.address + form.detail }}</div>
<img class="address-right" src="@/assets/images/lottery/address-right.png" alt=""> <img class="address-right" src="@/assets/images/lottery/address-right.png" alt="">
</div> </div>
<div v-else class="address" @click="isShowAddressPopup = true">
<div class="address-title">收件地址</div>
<img class="address-icon__alter" src="@/assets/images/lottery/address.png" alt="">
<div class="address-text">{{ form.address + form.detail }}</div>
<img class="address-right" src="@/assets/images/lottery/address-right.png" alt="">
</div>
</template> </template>
</template> </template>
<template v-if="item.type.includes('custom') && item.isChecked"> <template v-if="item.type.includes('custom') && item.isChecked">
...@@ -400,12 +406,13 @@ export default { ...@@ -400,12 +406,13 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.main { .main {
min-height: 42vh; min-height: 42vh;
padding-bottom: 30px;
} }
.top { .top {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 12px; padding: 16px 12px 12px;
font-size: 14px; font-size: 14px;
&-title { &-title {
font-size: 16px; font-size: 16px;
...@@ -441,25 +448,39 @@ export default { ...@@ -441,25 +448,39 @@ export default {
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-right: 12px; margin-right: 12px;
&__alter {
width: 20px;
height: 20px;
margin-right: 5px;
}
} }
&-text { &-text {
flex: 1; flex: 1;
// width: 225px; // width: 225px;
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 15px;
color: #333333; color: #333333;
line-height: 24px; line-height: 24px;
text-align: left; text-align: justify;
padding-right: 35px; padding-right: 20px;
} }
&-right { &-right {
width: 5px; width: 5px;
height: 9px; height: 9px;
} }
&-title {
height: 24px;
line-height: 24px;
font-size: 15px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #666666;
margin-right: 8px;
}
} }
.code { .code {
font-size: 13px; font-size: 15px;
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #357BF0; color: #357BF0;
...@@ -482,7 +503,7 @@ export default { ...@@ -482,7 +503,7 @@ export default {
font-size: 15px; font-size: 15px;
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #333333; color: #666666;
margin-right: 8px; margin-right: 8px;
span { span {
white-space: nowrap; white-space: nowrap;
......
...@@ -76,6 +76,7 @@ export default { ...@@ -76,6 +76,7 @@ export default {
.box { .box {
width: 70%; width: 70%;
position: relative; position: relative;
margin-bottom: 10%;
&-img { &-img {
width: 100%; width: 100%;
position: relative; position: relative;
...@@ -117,14 +118,14 @@ export default { ...@@ -117,14 +118,14 @@ export default {
} }
&__btn { &__btn {
width: 120px; width: 120px;
height: 33px; height: 36px;
background: linear-gradient( 201deg, #FD8192 0%, #FF4F31 100%); background: linear-gradient( 201deg, #FD8192 0%, #FF4F31 100%);
border-radius: 37px; border-radius: 37px;
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 13px; font-size: 14px;
color: #FFFFFF; color: #FFFFFF;
line-height: 33px; line-height: 36px;
text-align: center; text-align: center;
} }
} }
......
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
background-size: cover; background-size: cover;
background-position: center; background-position: center;
font-size: 0; font-size: 0;
z-index: 3;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment