Showing
10 changed files
with
75 additions
and
27 deletions
| ... | @@ -6,8 +6,8 @@ | ... | @@ -6,8 +6,8 @@ |
| 6 | top: 0; | 6 | top: 0; |
| 7 | width: 100%; | 7 | width: 100%; |
| 8 | height: 10px; | 8 | height: 10px; |
| 9 | - background: url('@images/modify-top.png') | 9 | + background-image: url('@images/top-xian@2x.png'); |
| 10 | - 0px 0px repeat-x; | 10 | + background-size: contain; |
| 11 | } | 11 | } |
| 12 | .content-bg { | 12 | .content-bg { |
| 13 | /** | 13 | /** |
| ... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
| 17 | * 不使用渐变色背景 | 17 | * 不使用渐变色背景 |
| 18 | */ | 18 | */ |
| 19 | height: 100%; | 19 | height: 100%; |
| 20 | - background: url('@images/choose-school-bg.png'); | 20 | + background-image: url('@images/bg-yellow-duan@2x.png'); |
| 21 | - background-size: cover; | 21 | + // background-size: cover; |
| 22 | - background: linear-gradient(360deg, #FDD347 0%, #FFED6D 100%) ; | 22 | + // background: linear-gradient(360deg, #FDD347 0%, #FFED6D 100%) ; |
| 23 | } | 23 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
src/assets/images/bg-yellow-duan@2x.png
0 → 100644
1.55 KB
src/assets/images/ding-left@2x.png
0 → 100644
860 Bytes
src/assets/images/icon-my@2x.png
0 → 100644
3.8 KB
src/assets/images/top-xian@2x.png
0 → 100644
1.39 KB
src/assets/images/yindao@2x.png
0 → 100644
523 KB
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | </template> | 9 | </template> |
| 10 | 10 | ||
| 11 | <script setup> | 11 | <script setup> |
| 12 | -import icon_me from '@images/me.png' | 12 | +import icon_me from '@images/icon-my@2x.png' |
| 13 | import { ref, reactive, onMounted } from 'vue' | 13 | import { ref, reactive, onMounted } from 'vue' |
| 14 | const props = defineProps({ | 14 | const props = defineProps({ |
| 15 | type: String | 15 | type: String |
| ... | @@ -44,7 +44,7 @@ export default { | ... | @@ -44,7 +44,7 @@ export default { |
| 44 | z-index: 169; | 44 | z-index: 169; |
| 45 | position: fixed; | 45 | position: fixed; |
| 46 | right: 2rem; | 46 | right: 2rem; |
| 47 | - bottom: 10rem; | 47 | + bottom: 5rem; |
| 48 | width: 44px; | 48 | width: 44px; |
| 49 | height: 44px; | 49 | height: 44px; |
| 50 | } | 50 | } | ... | ... |
| ... | @@ -14,14 +14,19 @@ | ... | @@ -14,14 +14,19 @@ |
| 14 | </van-image> | 14 | </van-image> |
| 15 | <p class="title">杨浦民办科技幼稚园</p> | 15 | <p class="title">杨浦民办科技幼稚园</p> |
| 16 | </div> | 16 | </div> |
| 17 | - <!-- 吊着的图片效果没有处理,让娜娜弄一张连到一起的图片试看看定位 --> | 17 | + <div style="position: relative;"> |
| 18 | - <van-row> | 18 | + <div class="ding left"></div> |
| 19 | - <van-col span="4"></van-col> | 19 | + <div style="position: relative; z-index: 100;"> |
| 20 | - <van-col span="16"> | 20 | + <van-row> |
| 21 | - <my-button type="custom" :custom-style="styleObject">幼儿园爱心书籍</my-button> | 21 | + <van-col span="4"></van-col> |
| 22 | - </van-col> | 22 | + <van-col span="16"> |
| 23 | - <van-col span="4"></van-col> | 23 | + <my-button type="custom" :custom-style="styleObject">幼儿园爱心书籍</my-button> |
| 24 | - </van-row> | 24 | + </van-col> |
| 25 | + <van-col span="4"></van-col> | ||
| 26 | + </van-row> | ||
| 27 | + </div> | ||
| 28 | + <div class="ding right"></div> | ||
| 29 | + </div> | ||
| 25 | <div class="book-list"> | 30 | <div class="book-list"> |
| 26 | <template v-for="(item, key) in items" :key="key"> | 31 | <template v-for="(item, key) in items" :key="key"> |
| 27 | <book-card :item="item" @on-click="onClick(item)"></book-card> | 32 | <book-card :item="item" @on-click="onClick(item)"></book-card> |
| ... | @@ -101,10 +106,28 @@ export default { | ... | @@ -101,10 +106,28 @@ export default { |
| 101 | } | 106 | } |
| 102 | .book-list { | 107 | .book-list { |
| 103 | margin: 1rem; | 108 | margin: 1rem; |
| 109 | + margin-top: 1.25rem; | ||
| 110 | + padding-top: 1rem; | ||
| 104 | border-radius: 10px; | 111 | border-radius: 10px; |
| 105 | background-color: rgba(255, 255, 255, 1); | 112 | background-color: rgba(255, 255, 255, 1); |
| 106 | box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.13); | 113 | box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.13); |
| 107 | } | 114 | } |
| 115 | + .ding { | ||
| 116 | + z-index: 69; | ||
| 117 | + position: absolute; | ||
| 118 | + top: 2.5rem; | ||
| 119 | + width: 1rem; | ||
| 120 | + height: 3rem; | ||
| 121 | + background-image: url('@images/ding-left@2x.png'); | ||
| 122 | + background-size: contain; | ||
| 123 | + background-repeat: no-repeat; | ||
| 124 | + &.left { | ||
| 125 | + left: 8rem; | ||
| 126 | + } | ||
| 127 | + &.right { | ||
| 128 | + right: 8rem; | ||
| 129 | + } | ||
| 130 | + } | ||
| 108 | .group4 { | 131 | .group4 { |
| 109 | width: 160px; | 132 | width: 160px; |
| 110 | height: 15px; | 133 | height: 15px; | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | - <div>客户端入口</div> | 2 | + <div style="background-color: white;height:100%; overflow:auto;"> |
| 3 | - <div class="entry-wrapper"> | 3 | + <div class="client-index-page"> |
| 4 | - <p style="color: #B8B8B8; margin: 1rem;">请选择您的身份</p> | 4 | + </div> |
| 5 | - <div class="control"> | 5 | + |
| 6 | - <div class="plain"> | 6 | + <div class="entry-wrapper"> |
| 7 | - <my-button type="plain" @on-click="goVisit">访客</my-button> | 7 | + <p style="color: #B8B8B8; margin: 1rem; margin-bottom: 0;">请选择您的身份</p> |
| 8 | - </div> | 8 | + <div class="control"> |
| 9 | - <div class="primary"> | 9 | + <div class="plain"> |
| 10 | - <my-button type="primary" @on-click="goSchool">我有所属幼儿园</my-button> | 10 | + <my-button type="plain" @on-click="goVisit">访客</my-button> |
| 11 | + </div> | ||
| 12 | + <div class="primary"> | ||
| 13 | + <my-button type="primary" @on-click="goSchool">我有所属幼儿园</my-button> | ||
| 14 | + </div> | ||
| 11 | </div> | 15 | </div> |
| 12 | </div> | 16 | </div> |
| 13 | </div> | 17 | </div> |
| 14 | - <div class="van-safe-area-bottom"></div> | 18 | + |
| 19 | + <!-- <div class="van-safe-area-bottom"></div> --> | ||
| 15 | </template> | 20 | </template> |
| 16 | 21 | ||
| 17 | <script setup> | 22 | <script setup> |
| 18 | import MyButton from '@/components/MyButton/index.vue' | 23 | import MyButton from '@/components/MyButton/index.vue' |
| 19 | 24 | ||
| 25 | +import $ from 'jquery'; | ||
| 20 | import { useRoute, useRouter } from 'vue-router' | 26 | import { useRoute, useRouter } from 'vue-router' |
| 21 | import { Toast } from 'vant'; | 27 | import { Toast } from 'vant'; |
| 28 | +import { nextTick, onMounted } from 'vue' | ||
| 22 | const $route = useRoute(); | 29 | const $route = useRoute(); |
| 23 | const $router = useRouter(); | 30 | const $router = useRouter(); |
| 24 | 31 | ||
| ... | @@ -32,6 +39,14 @@ const goSchool = () => { // 跳转选择幼儿园页面 | ... | @@ -32,6 +39,14 @@ const goSchool = () => { // 跳转选择幼儿园页面 |
| 32 | path: '/client/chooseSchool' | 39 | path: '/client/chooseSchool' |
| 33 | }); | 40 | }); |
| 34 | } | 41 | } |
| 42 | + | ||
| 43 | +onMounted (() => { | ||
| 44 | + // 进入项目自动打开导航栏 | ||
| 45 | + // window.history.pushState({}, "title", "#"); | ||
| 46 | + // 背景颜色全屏 | ||
| 47 | + $('.client-index-page').height($(document).height() - $('.entry-wrapper').outerHeight()); | ||
| 48 | + // $('.client-index-page').width($(document).width()); | ||
| 49 | +}) | ||
| 35 | </script> | 50 | </script> |
| 36 | 51 | ||
| 37 | <script> | 52 | <script> |
| ... | @@ -53,12 +68,22 @@ export default { | ... | @@ -53,12 +68,22 @@ export default { |
| 53 | </script> | 68 | </script> |
| 54 | 69 | ||
| 55 | <style lang="less" scoped> | 70 | <style lang="less" scoped> |
| 71 | + .client-index-page { | ||
| 72 | + background-image: url('@images/yindao@2x.png'); | ||
| 73 | + background-repeat: no-repeat; | ||
| 74 | + background-size: contain; | ||
| 75 | + background-position:top center; | ||
| 76 | + } | ||
| 77 | + | ||
| 56 | .entry-wrapper { | 78 | .entry-wrapper { |
| 57 | position: absolute; | 79 | position: absolute; |
| 58 | - bottom: 3rem; | 80 | + // bottom: 1rem; |
| 59 | width: 100%; | 81 | width: 100%; |
| 82 | + background-color: #FFF; | ||
| 60 | .control { | 83 | .control { |
| 61 | margin: 1rem; | 84 | margin: 1rem; |
| 85 | + margin-top: 0.5rem; | ||
| 86 | + overflow: auto; | ||
| 62 | .plain { | 87 | .plain { |
| 63 | width: 30%; float: left; | 88 | width: 30%; float: left; |
| 64 | } | 89 | } | ... | ... |
-
Please register or login to post a comment