bug
This commit is contained in:
parent
e49689ceec
commit
43b6dad16d
@ -1,6 +1,6 @@
|
||||
<script>
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
onLaunch: function(e) {
|
||||
console.log('App Launch')
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.setStorageSync("appltType","WECHAT")
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user