feat: 增加banner

master
xjs 2025-06-09 17:37:27 +08:00
parent 6647931459
commit 840764231e
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<template>
<view class="flex flex-col h-screen">
<view class="flex-1 overflow-auto">
<image :src="imgs[0]" mode="widthFix" class="w-full" @click="previewImg(imgs, 0)" />
</view>
<ShareButtonGroup
phone-number="18516500555"
friend-image="https://api-static-zhiy.oss-cn-shanghai.aliyuncs.com/images/ad-banner/tianjiawx-liuxue.jpg"
/>
</view>
</template>
<script lang="ts" setup>
import ShareButtonGroup from './components/ShareButtonGroup.vue'
const imgs = ['https://api-static-zhiy.oss-cn-shanghai.aliyuncs.com/images/ad-banner/youxue.png']
const previewImg = (imgs: string[], index: number) => {
uni.previewImage({
urls: imgs,
current: index,
})
}
</script>

View File

@ -139,6 +139,10 @@
"navigationBarTitleText": "深泉教育"
}
},
{
"path": "home/adPoster/summerCamp",
"type": "page"
},
{
"path": "home/autoFill/index",
"type": "page",

View File

@ -40,6 +40,10 @@ const handleRouter = (item: { url: string; img: string }) => {
uni.navigateTo({
url: `/pages-sub/home/adPoster/studyAboard`,
})
} else if (item.url === '夏令营') {
uni.navigateTo({
url: `/pages-sub/home/adPoster/summerCamp`,
})
}
}
</script>

View File

@ -12,6 +12,7 @@ interface NavigateToOptions {
"/pages-sub/customerService/index/index" |
"/pages-sub/home/adPoster/index" |
"/pages-sub/home/adPoster/studyAboard" |
"/pages-sub/home/adPoster/summerCamp" |
"/pages-sub/home/autoFill/index" |
"/pages-sub/home/career/index" |
"/pages-sub/home/career/info" |