bug
This commit is contained in:
parent
e49689ceec
commit
43b6dad16d
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function(e) {
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
uni.setStorageSync("appltType","WECHAT")
|
uni.setStorageSync("appltType","WECHAT")
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
:autoplay="autoplay" :interval="interval" :duration="duration">
|
:autoplay="autoplay" :interval="interval" :duration="duration">
|
||||||
<swiper-item v-for="(item,index) in list1" :key="index" @click="goPage(item.routeUrl)">
|
<swiper-item v-for="(item,index) in list1" :key="index" @click="goPage(item.routeUrl)">
|
||||||
<view class="swiper-item uni-bg-red"></view>
|
<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-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
@ -114,7 +115,7 @@
|
|||||||
<!-- <u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="cancel"></u-picker> -->
|
<!-- <u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="cancel"></u-picker> -->
|
||||||
<u-picker :columns="columns" @confirm="confirm" :show="show" @cancel="show = false"
|
<u-picker :columns="columns" @confirm="confirm" :show="show" @cancel="show = false"
|
||||||
keyName="label"></u-picker>
|
keyName="label"></u-picker>
|
||||||
<u-overlay :show="shows">
|
<u-overlay :show="shows == true">
|
||||||
<image src="../../static/imgs/zzxryl.png"
|
<image src="../../static/imgs/zzxryl.png"
|
||||||
style="width: 280px; height: 350px; margin: 20px auto; margin-top: 200px; ">
|
style="width: 280px; height: 350px; margin: 20px auto; margin-top: 200px; ">
|
||||||
</image>
|
</image>
|
||||||
@ -238,6 +239,16 @@ import { callWithErrorHandling } from "vue"
|
|||||||
tabbar
|
tabbar
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 返回图片路径
|
||||||
|
getBannerUrl(url){
|
||||||
|
let imgurl = ""
|
||||||
|
if (url.includes("http")){
|
||||||
|
imgurl = url
|
||||||
|
}else {
|
||||||
|
imgurl = this.baseUrl + url
|
||||||
|
}
|
||||||
|
return imgurl;
|
||||||
|
},
|
||||||
// 跳转banner图对应的页面
|
// 跳转banner图对应的页面
|
||||||
goPage(url) {
|
goPage(url) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -434,6 +445,8 @@ import { callWithErrorHandling } from "vue"
|
|||||||
_this.list3.push(_this.baseUrl + item)
|
_this.list3.push(_this.baseUrl + item)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_this.getIndexBanner()
|
||||||
})
|
})
|
||||||
|
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
|
Loading…
Reference in New Issue
Block a user