更新
This commit is contained in:
@@ -59,13 +59,13 @@
|
||||
</view>
|
||||
<view class="text-xxl" @tap="toManagement">
|
||||
<view class="cuIcon-form">
|
||||
|
||||
|
||||
</view>
|
||||
<text class="text-df">
|
||||
中交风控
|
||||
</text>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -153,7 +153,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">
|
||||
<image :src="item.src" style="width: 100%;" mode="widthFix"></image>
|
||||
<image :src="item.src" style="width: 100%;" mode="widthFix"></image>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<ad unit-id="adunit-fae65289bc72095d" ad-intervals="30"></ad>
|
||||
@@ -179,7 +179,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<msg-models :showAuthFrror="showAuthFrror" @hideOneModal="hideModel"></msg-models>
|
||||
<three-sites v-if="showThreeSites" @hideOneModal="showThreeSites=false" :showThreeSites="showThreeSites"></three-sites>
|
||||
<three-sites v-if="showThreeSites" @hideOneModal="showThreeSites=false"
|
||||
:showThreeSites="showThreeSites"></three-sites>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -200,10 +201,9 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
swiperArray: [
|
||||
{
|
||||
src:this.global.imgURL+'banner-baichuan.png',
|
||||
link:''
|
||||
swiperArray: [{
|
||||
src: this.global.imgURL + 'banner-baichuan.png',
|
||||
link: ''
|
||||
},
|
||||
// {
|
||||
// src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
|
||||
@@ -349,7 +349,7 @@
|
||||
const openid = uni.getStorageSync('openid')
|
||||
if (token && openid) {
|
||||
this.getAuthInfo()
|
||||
}
|
||||
}
|
||||
// else {
|
||||
// uni.showToast({
|
||||
// title: '您还没有登录哦',
|
||||
@@ -360,7 +360,7 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
toActivity(){},
|
||||
toActivity() {},
|
||||
toManagement() {
|
||||
const user = uni.getStorageSync('user');
|
||||
if (user) {
|
||||
@@ -389,7 +389,7 @@
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link))
|
||||
// })
|
||||
if(item?.JumpPage){
|
||||
if (item?.JumpPage) {
|
||||
uni.navigateTo({
|
||||
url: item.JumpPage
|
||||
})
|
||||
@@ -426,7 +426,7 @@
|
||||
success: (resSec) => {
|
||||
if (resSec.confirm) {
|
||||
uni.openSetting({
|
||||
complete:() => {
|
||||
complete: () => {
|
||||
// this.getSiteList()
|
||||
// this.realPosition()
|
||||
// this.refreshLocation()
|
||||
@@ -435,10 +435,10 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
}else {
|
||||
} else {
|
||||
uni.showToast({
|
||||
title:'获取定位失败,请稍后再试!',
|
||||
icon:'none'
|
||||
title: '获取定位失败,请稍后再试!',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -541,12 +541,25 @@
|
||||
},
|
||||
|
||||
showQr() {
|
||||
// uni.navigateTo({
|
||||
// url: '/BagStation/pages/stationDetail/stieQr'
|
||||
// })
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showToast({
|
||||
title: '登录后才能出示付款码哦',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.showThreeSites = true
|
||||
},
|
||||
toCards() {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showToast({
|
||||
title: '登录后才能获取加油卡哦',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/BagMoney/pages/oilCards/oilCards'
|
||||
})
|
||||
@@ -597,37 +610,14 @@
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
|
||||
|
||||
// }
|
||||
},
|
||||
toDetail(item) {
|
||||
let itemS = encodeURIComponent(JSON.stringify(item))
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
fail: (err) => {},
|
||||
success: () => {}
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`
|
||||
})
|
||||
// console.log(itemS)
|
||||
// if (uni.getStorageSync('user')) {
|
||||
// uni.navigateTo({
|
||||
// url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
// fail: (err) => {},
|
||||
// success: () => {}
|
||||
// })
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// title: '请您登录',
|
||||
// content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
||||
// confirmText: '去登陆',
|
||||
// success: (res) => {
|
||||
// if (res.confirm) {
|
||||
// uni.reLaunch({
|
||||
// url: '../../../BagAuth/pages/login/login?loginType=true'
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
},
|
||||
getFilterData() {
|
||||
oilSiteApi.getCheckInfo().then(res => {
|
||||
@@ -727,11 +717,15 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
scan1() {
|
||||
// 测试用
|
||||
this.getScanRes('fixed_1371293944539422720')
|
||||
},
|
||||
openScan() {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showToast({
|
||||
title: '登录后才能使用扫一扫哦',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.scanCode({
|
||||
scanType: 'qrCode',
|
||||
onlyFromCamera: false,
|
||||
@@ -839,4 +833,4 @@
|
||||
.my-icon-sm .text-sm {
|
||||
line-height: 1rem;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -469,13 +469,7 @@
|
||||
toDetail(item) {
|
||||
let itemS = encodeURIComponent(JSON.stringify(item));
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
fail: (err) => {
|
||||
// console.log(err)
|
||||
},
|
||||
success: () => {
|
||||
// console.log('err')
|
||||
}
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`
|
||||
})
|
||||
// if (uni.getStorageSync('user')) {
|
||||
// uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user