This commit is contained in:
cun-nan 2024-01-22 16:14:28 +08:00
parent e49689ceec
commit 43b6dad16d
2 changed files with 16 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<script>
export default {
onLaunch: function() {
onLaunch: function(e) {
console.log('App Launch')
// #ifdef MP-WEIXIN
uni.setStorageSync("appltType","WECHAT")

View File

@ -10,7 +10,8 @@
:autoplay="autoplay" :interval="interval" :duration="duration">
<swiper-item v-for="(item,index) in list1" :key="index" @click="goPage(item.routeUrl)">
<view class="swiper-item uni-bg-red"></view>
<image style="width: 100%;" :src="item.bannerUrl"></image>
<!-- <image style="width: 100%;" :src="item.bannerUrl"></image> -->
<image style="width: 100%;" :src="getBannerUrl(item.bannerUrl)"></image>
</swiper-item>
</swiper>
</view>
@ -114,7 +115,7 @@
<!-- <u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="cancel"></u-picker> -->
<u-picker :columns="columns" @confirm="confirm" :show="show" @cancel="show = false"
keyName="label"></u-picker>
<u-overlay :show="shows">
<u-overlay :show="shows == true">
<image src="../../static/imgs/zzxryl.png"
style="width: 280px; height: 350px; margin: 20px auto; margin-top: 200px; ">
</image>
@ -238,6 +239,16 @@ import { callWithErrorHandling } from "vue"
tabbar
},
methods: {
//
getBannerUrl(url){
let imgurl = ""
if (url.includes("http")){
imgurl = url
}else {
imgurl = this.baseUrl + url
}
return imgurl;
},
// banner
goPage(url) {
uni.navigateTo({
@ -434,6 +445,8 @@ import { callWithErrorHandling } from "vue"
_this.list3.push(_this.baseUrl + item)
})
}
_this.getIndexBanner()
})
// uni.showToast({