中秋更行

This commit is contained in:
caolc
2022-09-09 14:57:19 +08:00
parent a10b2b7dcc
commit ced82c19bc
7 changed files with 79 additions and 8 deletions

View File

@@ -133,8 +133,13 @@
</view> -->
<!-- 广告图片开始 -->
<view class="my-bg padding">
<view class="" @tap="goCall">
<image :src="starUrl+'banner.png'" style="width: 100%;" mode="widthFix"></image>
<view class="" >
<swiper autoplay interval='5000' style="width: 100%;height: 204rpx;" class="swiper" circular >
<swiper-item @click="swiperClick(item,index)" v-for="(item,index) in swiperArray">
<image :src="item.src" style="width: 100%;" mode="widthFix"></image>
</swiper-item>
</swiper>
<!-- <image :src="starUrl+'banner.png'" style="width: 100%;" mode="widthFix"></image> -->
</view>
</view>
<!-- 筛选开始 -->
@@ -174,6 +179,16 @@
},
data() {
return {
swiperArray:[
// {
// src:this.global.starUrl+'banner.png',
// link:''
// },
{
src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
link: 'https://tengxun.hkzj168.com/?ChannelId=20220831152210221048473'
},
],
siteInfo: {
},
@@ -333,6 +348,19 @@
},
methods: {
swiperClick(item,index) {
if(!item?.link) return
switch (Number(index)) {
// case 0:
// this.goCall()
// break;
default:
console.log('item.link')
uni.navigateTo({
url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link))
})
}
},
goToPage(url) {
if (!url) return;
uni.navigateTo({

View File

@@ -0,0 +1,28 @@
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: ''
}
},
methods: {
},
onReady() {
},
onLoad(e) {
this.url = JSON.parse(decodeURIComponent(e.url ));
},
}
</script>
<style>
</style>