You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

172 lines
3.6 KiB

<template>
<view class="page-container">
<view class="header">
<view @click="goBack" class="back-btn">
<image
class="back-icon"
src="https://static.ticket.sz-trip.com/epicSoul/taozi/back.png"
mode="aspectFill"
></image>
</view>
</view>
<image
v-if="type"
class="tag-image"
:src="showImg(imgMap[type].bg)"
mode="aspectFill"
></image>
<image
v-if="type"
style="position: absolute; z-index: 9; bottom: 521rpx"
:style="{
width: imgMap[type].width,
left: imgMap[type].left,
}"
:src="showImg(imgMap[type].title)"
mode="widthFix"
></image>
<image
v-if="type"
style="position: absolute; z-index: 9; bottom: 340rpx"
:style="{
width: imgMap[type].width,
left: imgMap[type].left,
}"
:src="showImg('/uploads/20250806/b8aa4923d2994836bee0ebed5dc255a6.png')"
mode="widthFix"
></image>
<image
style="
position: absolute;
z-index: 9;
left: 72rpx;
bottom: 178rpx;
width: 605rpx;
height: 66rpx;
"
:src="showImg('/uploads/20250802/1b853d1f8d147368ef9d0ba35df9e5c3.png')"
mode="aspectFill"
></image>
<image
@click="goBackChange"
style="
position: absolute;
z-index: 9;
left: 72rpx;
bottom: 84rpx;
width: 605rpx;
height: 66rpx;
"
:src="showImg('/uploads/20250802/b458d05790345ec9ae9a3bea23495b46.png')"
mode="aspectFill"
></image>
<!-- 侧边导航组件 -->
<SideNav :currentIndex="7" />
</view>
</template>
<script>
import SideNav from "../components/SideNav.vue";
export default {
components: {
SideNav,
},
data() {
return {
type: 1,
imgMap: {
1: {
bg: "/uploads/20250802/7ff759d15338ba690573602be45a72d2.png",
title: "/uploads/20250802/152dc5b77ad0af50f92c4cb0dbd7aef5.png",
width: "467rpx",
left: "140rpx",
},
2: {
bg: "/uploads/20250802/98cf261fb1e09be491e084a67b939dbe.png",
title: "/uploads/20250802/798a5053842969643caee2f482ce6c09.png",
width: "511rpx",
left: "119rpx",
},
3: {
bg: "/uploads/20250802/b04ffee53c537e35aa5f7ad98d21b297.png",
title: "/uploads/20250802/0a90c67dc32bf30caaca5e85039df174.png",
width: "441rpx",
left: "154rpx",
},
4: {
bg: "/uploads/20250802/b7ce92c7d9d7d1349fa82ac81625d2cf.png",
title: "/uploads/20250802/e66ab85e23d2d9a03efc5d9cdd0735ba.png",
width: "597rpx",
left: "77rpx",
},
},
};
},
onLoad(options) {
this.type = Number(options.type);
console.log(this.imgMap[this.type], "---");
},
methods: {
goBack() {
uni.navigateBack();
},
goBackChange() {
uni.navigateBack({
delta: 2,
});
},
},
};
</script>
<style lang="scss" scoped>
.header {
display: flex;
align-items: center;
padding: 50rpx 30rpx 30rpx;
position: relative;
}
.back-btn {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 50%;
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
}
.back-icon {
width: 50rpx;
height: 50rpx;
}
.title {
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 48rpx;
font-weight: bold;
color: white;
}
.tag-image {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
top: 0;
}
.description {
text-align: center;
}
.desc-text {
font-size: 36rpx;
color: white;
line-height: 1.6;
}
</style>