Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
fxPark
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-04-18 17:15:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3120ff2f3b562f10b11f4db12552c4701101e7d8
3120ff2f
1 parent
cdd030c9
fix 植被介绍页功能按钮都fixed到页面上
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
35 deletions
src/views/fxPark/intro.vue
src/views/fxPark/intro.vue
View file @
3120ff2
<!--
* @Date: 2024-04-10 16:08:09
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-04-1
7 13:36:04
* @LastEditTime: 2024-04-1
8 17:15:11
* @FilePath: /fxPark/src/views/fxPark/intro.vue
* @Description: 植被介绍页
-->
...
...
@@ -20,39 +20,12 @@
<div class="intro-img-wrapper">
<img v-for="(item, index) in INTRO_IMG[revision]" :key="index" :src="item">
</div>
<div class="go-poster-wrapper" @click="goToPoster">
<!-- <div style="background-color: #F68015; display: inline-block; padding: 0.7rem 2rem; border-radius: 1.5rem;">完成“碳寻”任务</div> -->
<img src="https://cdn.ipadbiz.cn/xfPark/intro/public/gongxi.1713232270.png" style="pointer-events:none;display: block; width: 50%; margin-bottom: 1.5rem;">
<img src="https://cdn.ipadbiz.cn/xfPark/intro/public/finish-btn.1713232270.png" style="pointer-events:none;display: block; width: 50%;">
<div class="go-poster-wrapper">
<img src="https://cdn.ipadbiz.cn/xfPark/intro/public/gongxi.1713232270.png" style="pointer-events:none;display: block; width: 12rem;">
</div>
<!-- <div style="margin: 1rem;">
<div style="margin-bottom: 1rem;">
<span style="font-size: 1.25rem;">{{ tree_data?.name }}</span>
<span style="font-size: 0.85rem;">{{ tree_data?.nickname }}</span>
<div @click="goToPoster" style="position: fixed; bottom: 3rem; left: calc(50% - 6rem);">
<img src="https://cdn.ipadbiz.cn/xfPark/intro/public/finish-btn.1713232270.png" style="pointer-events:none;display: block; width: 12rem;">
</div>
<div style="border: 1px solid #000; padding: 1rem; border-radius: 8px;">
<div style="margin-bottom: 1.5rem;"><span style="background-color: #D0FCF0; padding: 0.5rem 0.75rem; border-radius: 1rem;">植被类型:</span> {{ tree_data?.type }}</div>
<div v-if="tree_data.study_name" style="margin-bottom: 1.5rem;"><span style="background-color: #D0FCF0; padding: 0.5rem 0.75rem; border-radius: 1rem;">植被学名:</span> {{ tree_data?.study_name }}</div>
<div style="margin-bottom: 1.5rem;white-space: pre-wrap;line-height: 1.8;">
{{ tree_data?.note }}
</div>
<div style="margin-bottom: 1rem;"><span style="background-color: #D0FCF0; padding: 0.5rem 0.75rem; border-radius: 1rem;">植被介绍:</span></div>
<div class="tree-intro" v-html="formattedIntro"></div>
</div>
</div>
<div class="task-tips">
<div class="title-wrapper">
<span class="title-text">任务卡</span>
</div>
<div class="task-wrapper">
<div class="task-title">{{ tree_data?.mission_title }}</div>
<div class="tree-mission-note" v-html="formattedNote"></div>
</div>
</div>
<div class="light-up-text">恭喜您植被已被点亮</div>
<div style="margin: 1rem 1rem 2rem 1rem; color: white; text-align: center;">
<div @click="goToPoster" style="background-color: #F68015; display: inline-block; padding: 0.7rem 2rem; border-radius: 1.5rem;">生成海报</div>
</div> -->
</div>
</template>
...
...
@@ -170,7 +143,7 @@ const goToIndex = () => { // 返回首页
display: flex;
flex-direction: column;
.audio-wrapper {
position:
absolute
;
position:
fixed
;
right: 10px;
top: 10px;
img {
...
...
@@ -180,7 +153,7 @@ const goToIndex = () => { // 返回首页
}
}
.go-back-wrapper {
position:
absolute
;
position:
fixed
;
right: 10px;
top: 3.5rem;
img {
...
...
@@ -201,7 +174,7 @@ const goToIndex = () => { // 返回首页
color: white;
text-align: center;
position: absolute;
bottom:
1
rem;
bottom:
5
rem;
left: 0;
right: 0;
display: flex;
...
...
Please
register
or
login
to post a comment