|
|
|
@ -181,18 +181,18 @@ |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
swiperArray: [ |
|
|
|
|
{ |
|
|
|
|
swiperArray: [{ |
|
|
|
|
src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2etc.png', |
|
|
|
|
link: 'https://h5.51etr.com/pro/onlineApply/?type=20220831103626200101811' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// 已经下架 勿放开注释 |
|
|
|
|
// 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/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' |
|
|
|
|
src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/baichuan_MP/bannerindexs.png', |
|
|
|
|
JumpPage: 'Financial' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// src:'https://xoil-public.oss-cn-beijing.aliyuncs.com/baichuan_MP/banner_baichuan.png', |
|
|
|
@ -322,9 +322,9 @@ |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch:{ |
|
|
|
|
showAuthFrror(n,o){ |
|
|
|
|
console.log(n,o,'=================') |
|
|
|
|
watch: { |
|
|
|
|
showAuthFrror(n, o) { |
|
|
|
|
console.log(n, o, '=================') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() {}, |
|
|
|
@ -383,16 +383,16 @@ |
|
|
|
|
} |
|
|
|
|
// console.log('首页 非卡力 进入测试++') |
|
|
|
|
this.reverseGeocoder(this.location); |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
let startParamsData = uni.getStorageSync('isJump')||null; |
|
|
|
|
if(startParamsData){ |
|
|
|
|
setTimeout(() => { |
|
|
|
|
let startParamsData = uni.getStorageSync('isJump') || null; |
|
|
|
|
if (startParamsData) { |
|
|
|
|
this.shadoumeiyou(6) |
|
|
|
|
if(startParamsData?.disposable){ |
|
|
|
|
if (startParamsData?.disposable) { |
|
|
|
|
uni.removeStorageSync('isJump'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
},500) |
|
|
|
|
}, 500) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
onPullDownRefresh() { |
|
|
|
@ -427,36 +427,35 @@ |
|
|
|
|
// url:'/BagStation/pages/makeOrder/payResult?status=success' |
|
|
|
|
this.getSiteList(); |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
beforeCreate() {}, |
|
|
|
|
onReady() { |
|
|
|
|
// this.getSiteList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
swiperClick(item,index) { |
|
|
|
|
if(item?.JumpPage){ |
|
|
|
|
switch(item.JumpPage){ |
|
|
|
|
swiperClick(item, index) { |
|
|
|
|
if (item?.JumpPage) { |
|
|
|
|
switch (item.JumpPage) { |
|
|
|
|
case "Financial": |
|
|
|
|
this.shadoumeiyou(6) |
|
|
|
|
break; |
|
|
|
|
case "Activity": |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:'/Activity/pages/index/index' |
|
|
|
|
}) |
|
|
|
|
console.log('Activity') |
|
|
|
|
break; |
|
|
|
|
this.shadoumeiyou(6) |
|
|
|
|
break; |
|
|
|
|
case "Activity": |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/Activity/pages/index/index' |
|
|
|
|
}) |
|
|
|
|
console.log('Activity') |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}else if(item?.link){ |
|
|
|
|
} else if (item?.link) { |
|
|
|
|
switch (Number(index)) { |
|
|
|
|
default: |
|
|
|
|
console.log('item.link') |
|
|
|
|
default: |
|
|
|
|
console.log('item.link') |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link)) |
|
|
|
|
url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link)) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
gotoMap() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -564,7 +563,7 @@ |
|
|
|
|
true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
goCall() { |
|
|
|
|
uni.makePhoneCall({ |
|
|
|
@ -657,29 +656,31 @@ |
|
|
|
|
// url:'../../../BagStation/pages/newRoutePlanning/newRoutePlanning' |
|
|
|
|
url: '../../../BagStation/pages/overviewMap/overviewMap', |
|
|
|
|
}) |
|
|
|
|
} else if(index == 6){ |
|
|
|
|
} else if (index == 6) { |
|
|
|
|
const user = uni.getStorageSync('user'); |
|
|
|
|
if(user){ |
|
|
|
|
Financial.findHomePageReport({customerId:user.id}).then(res=>{ |
|
|
|
|
if(res.data){ |
|
|
|
|
if (user) { |
|
|
|
|
Financial.findHomePageReport({ |
|
|
|
|
customerId: user.id |
|
|
|
|
}).then(res => { |
|
|
|
|
if (res.data) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:`../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}` |
|
|
|
|
url: `../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}` |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:'../../../Financial/pages/index?guide=1' |
|
|
|
|
url: '../../../Financial/pages/index?guide=1' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请先登录!', |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (index == 7) { |
|
|
|
|
this.swiperClick(this.swiperArray[0],1) |
|
|
|
|
this.swiperClick(this.swiperArray[0], 1) |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '功能暂无', |
|
|
|
|