Showing
3 changed files
with
15 additions
and
20 deletions
| ... | @@ -66,12 +66,7 @@ import $ from 'jquery' | ... | @@ -66,12 +66,7 @@ import $ from 'jquery' |
| 66 | import { Toast } from 'vant'; | 66 | import { Toast } from 'vant'; |
| 67 | const $route = useRoute(); | 67 | const $route = useRoute(); |
| 68 | const $router = useRouter(); | 68 | const $router = useRouter(); |
| 69 | -// 自定义按钮颜色样式 | 69 | + |
| 70 | -const styleObject = reactive({ | ||
| 71 | - backgroundColor: '#F4675A', | ||
| 72 | - color: '#FFFFFF', | ||
| 73 | - borderColor: '#F4675A' | ||
| 74 | -}) | ||
| 75 | const items = reactive([]) | 70 | const items = reactive([]) |
| 76 | const onClick = (item) => { | 71 | const onClick = (item) => { |
| 77 | // 调整书籍详情页 | 72 | // 调整书籍详情页 | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <van-image width="100%" height="100%" :src="logo_image" /> | 2 | <van-image width="100%" height="100%" :src="logo_image" /> |
| 3 | - <div style="margin-bottom: 1rem;"> | 3 | + <div class="login-header"> |
| 4 | <van-row align="center"> | 4 | <van-row align="center"> |
| 5 | <van-col span="8"> | 5 | <van-col span="8"> |
| 6 | </van-col> | 6 | </van-col> |
| 7 | - <van-col span="8" style="text-align: center; margin-top: 2vh;"> | 7 | + <van-col span="8" class="title"> |
| 8 | - <p style="font-size: 2.5vh; margin: 1vh;">登 录</p> | 8 | + <p>登 录</p> |
| 9 | </van-col> | 9 | </van-col> |
| 10 | <van-col span="8"> | 10 | <van-col span="8"> |
| 11 | </van-col> | 11 | </van-col> |
| ... | @@ -240,12 +240,17 @@ export default { | ... | @@ -240,12 +240,17 @@ export default { |
| 240 | --van-button-primary-background: white; | 240 | --van-button-primary-background: white; |
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | - // .logo-section { | 243 | + .login-header { |
| 244 | - // height: 22vh; | 244 | + margin-bottom: 1rem; |
| 245 | - // // padding: 2vh; | 245 | + .title { |
| 246 | - // background-size: contain; | 246 | + text-align: center; |
| 247 | - // background-image: url('@images/zhengshu-banner@2x.png'); | 247 | + margin-top: 2vh; |
| 248 | - // } | 248 | + p { |
| 249 | + font-size: 2.5vh; | ||
| 250 | + margin: 1vh; | ||
| 251 | + } | ||
| 252 | + } | ||
| 253 | + } | ||
| 249 | 254 | ||
| 250 | .login-section { | 255 | .login-section { |
| 251 | // background-color: #FAFAFA; | 256 | // background-color: #FAFAFA; | ... | ... |
| ... | @@ -7,11 +7,9 @@ | ... | @@ -7,11 +7,9 @@ |
| 7 | <p style="color: #B8B8B8; margin: 1rem; margin-bottom: 0;">请选择您的身份</p> | 7 | <p style="color: #B8B8B8; margin: 1rem; margin-bottom: 0;">请选择您的身份</p> |
| 8 | <div class="control"> | 8 | <div class="control"> |
| 9 | <div class="plain"> | 9 | <div class="plain"> |
| 10 | - <!-- <my-button type="plain" @on-click="goVisit">访客</my-button> --> | ||
| 11 | <my-button type="custom" :custom-style="styleObject1" @on-click="goVisit">访客</my-button> | 10 | <my-button type="custom" :custom-style="styleObject1" @on-click="goVisit">访客</my-button> |
| 12 | </div> | 11 | </div> |
| 13 | <div class="primary"> | 12 | <div class="primary"> |
| 14 | - <!-- <my-button type="primary" @on-click="goSchool">我有所属幼儿园</my-button> --> | ||
| 15 | <my-button type="custom" :custom-style="styleObject2" @on-click="goSchool">我有所属幼儿园</my-button> | 13 | <my-button type="custom" :custom-style="styleObject2" @on-click="goSchool">我有所属幼儿园</my-button> |
| 16 | </div> | 14 | </div> |
| 17 | </div> | 15 | </div> |
| ... | @@ -52,8 +50,6 @@ const goSchool = () => { // 跳转选择幼儿园页面 | ... | @@ -52,8 +50,6 @@ const goSchool = () => { // 跳转选择幼儿园页面 |
| 52 | } | 50 | } |
| 53 | 51 | ||
| 54 | onMounted (() => { | 52 | onMounted (() => { |
| 55 | - // 进入项目自动打开导航栏 | ||
| 56 | - // window.history.pushState({}, "title", "#"); | ||
| 57 | // 背景颜色全屏 | 53 | // 背景颜色全屏 |
| 58 | $('.client-index-page').height($(document).height()); | 54 | $('.client-index-page').height($(document).height()); |
| 59 | }) | 55 | }) |
| ... | @@ -91,7 +87,6 @@ export default { | ... | @@ -91,7 +87,6 @@ export default { |
| 91 | position: absolute; | 87 | position: absolute; |
| 92 | bottom: 0; | 88 | bottom: 0; |
| 93 | width: 100%; | 89 | width: 100%; |
| 94 | - // background-color: #FFF; | ||
| 95 | .control { | 90 | .control { |
| 96 | margin: 1rem; | 91 | margin: 1rem; |
| 97 | margin-top: 0.5rem; | 92 | margin-top: 0.5rem; | ... | ... |
-
Please register or login to post a comment