Showing
10 changed files
with
68 additions
and
15 deletions
| ... | @@ -13,7 +13,6 @@ declare module 'vue' { | ... | @@ -13,7 +13,6 @@ declare module 'vue' { |
| 13 | VanActionSheet: typeof import('vant/es')['ActionSheet'] | 13 | VanActionSheet: typeof import('vant/es')['ActionSheet'] |
| 14 | VanCol: typeof import('vant/es')['Col'] | 14 | VanCol: typeof import('vant/es')['Col'] |
| 15 | VanField: typeof import('vant/es')['Field'] | 15 | VanField: typeof import('vant/es')['Field'] |
| 16 | - VanFloatingBubble: typeof import('vant/es')['FloatingBubble'] | ||
| 17 | VanIcon: typeof import('vant/es')['Icon'] | 16 | VanIcon: typeof import('vant/es')['Icon'] |
| 18 | VanLoading: typeof import('vant/es')['Loading'] | 17 | VanLoading: typeof import('vant/es')['Loading'] |
| 19 | VanRow: typeof import('vant/es')['Row'] | 18 | VanRow: typeof import('vant/es')['Row'] | ... | ... |
871 Bytes
5.16 KB
783 Bytes
4.05 KB
207 KB
91.7 KB
116 KB
823 Bytes
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-04-10 16:08:09 | 2 | * @Date: 2024-04-10 16:08:09 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-04-14 21:42:38 | 4 | + * @LastEditTime: 2024-04-16 10:19:12 |
| 5 | * @FilePath: /fxPark/src/views/fxPark/intro.vue | 5 | * @FilePath: /fxPark/src/views/fxPark/intro.vue |
| 6 | * @Description: 植被介绍页 | 6 | * @Description: 植被介绍页 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <div class="intro-page"> | 9 | <div class="intro-page"> |
| 10 | - <div @click="handleAudio" style="width: 3rem; height: 3rem; border-radius: 50%; position: absolute; right: 10px; top: 10px;"> | 10 | + <div class="audio-wrapper" @click="handleAudio"> |
| 11 | - <img :class="[audioStatus === 'play' ? 'play' : 'pause']" src="https://picsum.photos/50/50" style="width: 3rem; height: 3rem; border-radius: 50%;"> | 11 | + <img |
| 12 | + :class="[audioStatus === 'play' ? 'play' : 'pause']" | ||
| 13 | + :src="audioStatus === 'play' ? 'https://cdn.ipadbiz.cn/xfPark/intro/close-music-btn.1713232270.png' : 'https://cdn.ipadbiz.cn/xfPark/intro/open-music-btn.1713232270.png'" | ||
| 14 | + > | ||
| 15 | + <audio ref="audioPlayer" loop="loop" id="audios" :src="audio_list[audioIndex]?.audio_url" preload></audio> | ||
| 12 | </div> | 16 | </div> |
| 13 | - <audio ref="audioPlayer" loop="loop" id="audios" :src="audio_list[audioIndex]?.audio_url" preload></audio> | 17 | + <div class="go-back-wrapper" @click="goToIndex"> |
| 14 | - <div> | 18 | + <img src="https://cdn.ipadbiz.cn/xfPark/intro/go-back-btn.1713232270.png"> |
| 15 | - <img :src="INTRO_IMG[revision]" style="width: 100%; pointer-events:none;"> | ||
| 16 | </div> | 19 | </div> |
| 17 | - <div style="margin: 1rem 1rem 2rem 1rem; color: white; text-align: center; position: absolute;bottom: 1rem; left: 0; right: 0;"> | 20 | + <div class="intro-img-wrapper"> |
| 18 | - <div @click="goToPoster" style="background-color: #F68015; display: inline-block; padding: 0.7rem 2rem; border-radius: 1.5rem;">完成“碳寻”任务</div> | 21 | + <img :src="INTRO_IMG[revision][0]"> |
| 22 | + <img :src="INTRO_IMG[revision][1]"> | ||
| 23 | + </div> | ||
| 24 | + <div class="go-poster-wrapper" @click="goToPoster"> | ||
| 25 | + <!-- <div style="background-color: #F68015; display: inline-block; padding: 0.7rem 2rem; border-radius: 1.5rem;">完成“碳寻”任务</div> --> | ||
| 26 | + <img src="https://cdn.ipadbiz.cn/xfPark/intro/gongxi.1713232270.png" style="pointer-events:none;display: block; width: 50%; margin-bottom: 1.5rem;"> | ||
| 27 | + <img src="https://cdn.ipadbiz.cn/xfPark/intro/finish-btn.1713232270.png" style="pointer-events:none;display: block; width: 50%;"> | ||
| 19 | </div> | 28 | </div> |
| 20 | <!-- <div style="margin: 1rem;"> | 29 | <!-- <div style="margin: 1rem;"> |
| 21 | <div style="margin-bottom: 1rem;"> | 30 | <div style="margin-bottom: 1rem;"> |
| ... | @@ -66,12 +75,12 @@ const tree_data = ref({}); | ... | @@ -66,12 +75,12 @@ const tree_data = ref({}); |
| 66 | 75 | ||
| 67 | // TODO: 等待正式数据 | 76 | // TODO: 等待正式数据 |
| 68 | const INTRO_IMG = { // 植被介绍七牛图片地址映射 | 77 | const INTRO_IMG = { // 植被介绍七牛图片地址映射 |
| 69 | - '1': 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1.1713086546.jpg', | 78 | + '1': ['https://cdn.ipadbiz.cn/xfPark/intro/intro-1_01.1713232270.jpg', 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1_02.1713232270.jpg'], |
| 70 | - '2': 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1.1713086546.jpg', | 79 | + '2': [], |
| 71 | - '3': 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1.1713086546.jpg', | 80 | + '3': [], |
| 72 | - '4': 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1.1713086546.jpg', | 81 | + '4': [], |
| 73 | - '5': 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1.1713086546.jpg', | 82 | + '5': [], |
| 74 | - '6': 'https://cdn.ipadbiz.cn/xfPark/intro/intro-1.1713086546.jpg', | 83 | + '6': [], |
| 75 | } | 84 | } |
| 76 | 85 | ||
| 77 | const audioPlayer = ref(null); | 86 | const audioPlayer = ref(null); |
| ... | @@ -152,6 +161,12 @@ const goToPoster = () => { // 去海报页 | ... | @@ -152,6 +161,12 @@ const goToPoster = () => { // 去海报页 |
| 152 | }); | 161 | }); |
| 153 | }; | 162 | }; |
| 154 | 163 | ||
| 164 | +const goToIndex = () => { | ||
| 165 | + $router.push({ | ||
| 166 | + path: '/', | ||
| 167 | + }); | ||
| 168 | +} | ||
| 169 | + | ||
| 155 | 170 | ||
| 156 | </script> | 171 | </script> |
| 157 | 172 | ||
| ... | @@ -160,6 +175,45 @@ const goToPoster = () => { // 去海报页 | ... | @@ -160,6 +175,45 @@ const goToPoster = () => { // 去海报页 |
| 160 | position: relative; | 175 | position: relative; |
| 161 | display: flex; | 176 | display: flex; |
| 162 | flex-direction: column; | 177 | flex-direction: column; |
| 178 | + .audio-wrapper { | ||
| 179 | + position: absolute; | ||
| 180 | + right: 10px; | ||
| 181 | + top: 10px; | ||
| 182 | + img { | ||
| 183 | + width: 2.5rem; | ||
| 184 | + height: 2.5rem; | ||
| 185 | + border-radius: 50%; | ||
| 186 | + } | ||
| 187 | + } | ||
| 188 | + .go-back-wrapper { | ||
| 189 | + position: absolute; | ||
| 190 | + right: 10px; | ||
| 191 | + top: 50px; | ||
| 192 | + img { | ||
| 193 | + width: 2.5rem; | ||
| 194 | + height: 2.5rem; | ||
| 195 | + border-radius: 50%; | ||
| 196 | + } | ||
| 197 | + } | ||
| 198 | + .intro-img-wrapper { | ||
| 199 | + img { | ||
| 200 | + width: 100%; | ||
| 201 | + pointer-events:none; | ||
| 202 | + display: block; | ||
| 203 | + } | ||
| 204 | + } | ||
| 205 | + .go-poster-wrapper { | ||
| 206 | + margin: 1rem 1rem 2rem 1rem; | ||
| 207 | + color: white; | ||
| 208 | + text-align: center; | ||
| 209 | + position: absolute; | ||
| 210 | + bottom: 1rem; | ||
| 211 | + left: 0; | ||
| 212 | + right: 0; | ||
| 213 | + display: flex; | ||
| 214 | + flex-direction: column; | ||
| 215 | + align-items: center; | ||
| 216 | + } | ||
| 163 | .task-tips { | 217 | .task-tips { |
| 164 | .title-wrapper { | 218 | .title-wrapper { |
| 165 | text-align: center; | 219 | text-align: center; | ... | ... |
-
Please register or login to post a comment