1212
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
<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" :key='index'>
|
||||
<image :src="item.src" style="width: 100%;" mode="widthFix"></image>
|
||||
<image :src="item.src" style="width: 100%;height: 100%;"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
@@ -188,6 +188,10 @@
|
||||
src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
|
||||
link: 'https://tengxun.hkzj168.com/?ChannelId=20220831152210221048473'
|
||||
},
|
||||
{
|
||||
src:'https://xoil-public.oss-cn-beijing.aliyuncs.com/baichuan_MP/bannerindexs.png',
|
||||
JumpPage:'Financial'
|
||||
},
|
||||
|
||||
],
|
||||
siteInfo: {},
|
||||
@@ -352,7 +356,6 @@
|
||||
console.log('首页 非卡力 进入')
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e, '首页')
|
||||
let _that = this
|
||||
let IsOtherUser = _that.isOther
|
||||
console.log(IsOtherUser, '这里是判断是否为卡力')
|
||||
@@ -369,7 +372,17 @@
|
||||
return
|
||||
}
|
||||
console.log('首页 非卡力 进入测试++')
|
||||
this.reverseGeocoder(this.location)
|
||||
this.reverseGeocoder(this.location);
|
||||
setTimeout(()=>{
|
||||
let startParamsData = uni.getStorageSync('isJump')||null;
|
||||
if(startParamsData){
|
||||
this.shadoumeiyou(6)
|
||||
if(startParamsData?.disposable){
|
||||
uni.removeStorageSync('isJump');
|
||||
}
|
||||
|
||||
}
|
||||
},500)
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
@@ -411,17 +424,22 @@
|
||||
},
|
||||
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))
|
||||
})
|
||||
if(item?.JumpPage){
|
||||
switch(item.JumpPage){
|
||||
case "Financial":
|
||||
this.shadoumeiyou(6)
|
||||
break;
|
||||
}
|
||||
}else if(item?.link){
|
||||
switch (Number(index)) {
|
||||
default:
|
||||
console.log('item.link')
|
||||
uni.navigateTo({
|
||||
url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
gotoMap() {
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user