feat: 增加banner
parent
6647931459
commit
840764231e
|
|
@ -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>
|
||||
|
|
@ -139,6 +139,10 @@
|
|||
"navigationBarTitleText": "深泉教育"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "home/adPoster/summerCamp",
|
||||
"type": "page"
|
||||
},
|
||||
{
|
||||
"path": "home/autoFill/index",
|
||||
"type": "page",
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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" |
|
||||
|
|
|
|||
Loading…
Reference in New Issue