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.
 
 
 
 

99 lines
2.5 KiB

<template>
<view class="" style="font-size: 0;">
<BackButton />
<view class="" v-if="index==0">
<image class="bannerImg" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/16/1df5889f-9315-4533-839f-232ea65e3364.png"> </image>
</view>
<view class="" v-if="index==1">
<image class="bannerImg" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/16/d31fb948-a705-4e23-9544-38f1e705a146.jpg"> </image>
</view>
<view class="" v-if="index==2">
<image class="bannerImg" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/16/94e342f7-7215-4f93-b4d0-64aedd2cdbe3.jpg"> </image>
</view>
<view class="" v-if="index==3">
<image class="bannerImg" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/11/4f5581b4-e354-4a2b-8f41-5d37fcd3904b.png"> </image>
<view class="action-box">
<image @click="toPath" class="action-img" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/15/0f60d3fa-fe52-4b79-aeb5-22c707fc06b2.png"> </image>
<image @click="toNovel" class="action-img" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/15/855a0a1a-0685-407a-b833-24f473308b00.png"> </image>
<image @click="toNone" class="action-img" mode="aspectFill" src="https://des.js-dyyj.com/data/2025/09/15/02d41295-048b-4523-a09f-0401df0381f9.png"> </image>
</view>
</view>
</view>
</template>
<script>
import BackButton from "@/components/BackButton.vue";
export default{
components: {
BackButton,
},
data(){
return{
img:'',
index:0,
info:null
}
},
onLoad(e) {
this.index = e.index
let info = decodeURIComponent(e.item)
this.info = JSON.parse(info)
},
methods:{
toNone(){
uni.showToast({
title: '功能暂未开放',
icon: 'none'
})
},
toNovel(){
uni.navigateTo({
url:'/subPackages/other/index'
})
},
toPath(){
console.log(this.info.mini)
if(this.info.mini){
wx.navigateToMiniProgram({
appId: this.info.mini.appID,
path: this.info.mini.path,
envVersion: 'release',
success(res) {
// 打开成功
},
fail(e){
console.log(e)
}
})
}else{
uni.showToast({
title: '功能暂未开放',
icon: 'none'
})
}
}
}
}
</script>
<style lang="scss" scoped>
.bannerImg{
width: 100vw;
height: 100vh;
}
.action-box{
position: absolute;
z-index: 9;
bottom: 170rpx;
left: 123rpx;
}
.action-img{
width: 524rpx;
height: 117rpx;
margin-bottom: 45rpx;
&:nth-child(1){
}
}
</style>