1
This commit is contained in:
@@ -15,9 +15,10 @@
|
||||
</view>
|
||||
<view class="search-form radius" @tap="InputFocus">
|
||||
<text class="cuIcon-search"></text>
|
||||
<input disabled :adjust-position="false" type="text" placeholder="搜索油站名称" confirm-type="search" />
|
||||
<input disabled :adjust-position="false" type="text" placeholder="搜索油站名称"
|
||||
confirm-type="search" />
|
||||
</view>
|
||||
<!-- <view class="">
|
||||
<!-- <view class="">
|
||||
阿三
|
||||
</view> -->
|
||||
</view>
|
||||
@@ -108,16 +109,16 @@
|
||||
</view>
|
||||
<!-- 广告图片开始 -->
|
||||
<view class="my-bg padding">
|
||||
<view class="" >
|
||||
<!-- <swiper autoplay interval='5000' style="width: 100%;height: 204rpx;" class="swiper" circular >
|
||||
<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>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<!-- <swiper-item>
|
||||
<ad unit-id="adunit-fae65289bc72095d" ad-intervals="30"></ad>
|
||||
</swiper-item>
|
||||
</swiper> -->
|
||||
<image :src="starUrl+'banner.png'" style="width: 100%;" mode="widthFix"></image>
|
||||
</swiper-item> -->
|
||||
</swiper>
|
||||
<!-- <image :src="starUrl+'banner.png'" style="width: 100%;" mode="widthFix"></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- 筛选开始 -->
|
||||
@@ -127,8 +128,8 @@
|
||||
</view> -->
|
||||
<view class=" ">
|
||||
<view class="" v-if="siteList.length>0">
|
||||
<site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0" :listHeight="listHeight"
|
||||
class="cu-list menu-avatar cu-item" @tap="toDetail(item)">
|
||||
<site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0"
|
||||
:listHeight="listHeight" class="cu-list menu-avatar cu-item" @tap="toDetail(item)">
|
||||
</site-item>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
@@ -158,17 +159,21 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
swiperArray:[
|
||||
swiperArray: [
|
||||
// {
|
||||
// src:this.global.starUrl+'banner.png',
|
||||
// link:''
|
||||
// },
|
||||
{
|
||||
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/banner_baichuan.png',
|
||||
JumpPage: '/Activity/pages/index/index'
|
||||
},
|
||||
// {
|
||||
// src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
|
||||
// link: 'https://tengxun.hkzj168.com/?ChannelId=20220831152210221048473'
|
||||
// },
|
||||
],
|
||||
listHeight:160,
|
||||
listHeight: 160,
|
||||
siteInfo: {
|
||||
|
||||
},
|
||||
@@ -285,13 +290,13 @@
|
||||
]
|
||||
};
|
||||
},
|
||||
onTabItemTap(res){
|
||||
this.showThreeSites =false
|
||||
onTabItemTap(res) {
|
||||
this.showThreeSites = false
|
||||
},
|
||||
onLoad() {
|
||||
this.reverseGeocoder(this.location)
|
||||
this.refreshLocation()
|
||||
|
||||
|
||||
// if (!uni.getStorageSync('filterData')) {
|
||||
// this.getFilterData()
|
||||
// }
|
||||
@@ -329,38 +334,45 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
toManagement(){
|
||||
toManagement() {
|
||||
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'
|
||||
})
|
||||
}
|
||||
},
|
||||
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))
|
||||
})
|
||||
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){
|
||||
uni.navigateTo({
|
||||
url: item.JumpPage
|
||||
})
|
||||
}
|
||||
},
|
||||
goToPage(url) {
|
||||
@@ -447,10 +459,11 @@
|
||||
// url: 'plugin://routePlan/index?key=' + this.qqMapKey + '&referer=' + referer +
|
||||
// '&endPoint=' + endPoint
|
||||
// })
|
||||
uni.removeStorageSync("origins")
|
||||
uni.removeStorageSync("destination")
|
||||
uni.removeStorageSync("origins")
|
||||
uni.removeStorageSync("destination")
|
||||
wx.navigateTo({
|
||||
url:'../../../BagStation/pages/routePlain/routePlain'})
|
||||
url: '../../../BagStation/pages/routePlain/routePlain'
|
||||
})
|
||||
} else if (index == 8) {
|
||||
this.goToPage('/BagAuth/pages/agreeMent/OperationGuide')
|
||||
}
|
||||
@@ -498,9 +511,9 @@
|
||||
// siteBrand: "", // 备注:// 石油品牌 ( 1-中国石油 2-中国石化 3-壳牌 4-民营 5-中海油 6-京博 7-中化石油 8-其他 )
|
||||
// channelCode: "", // 备注:// 渠道编码 ( OIL:星油 WJY:万金油 LV:老吕(找油网) TY:团油 YDJY:一点加油(壳牌))
|
||||
// oilProductCode: "0#" // 备注:// 油号选择 ( 0# 92# 92#)
|
||||
clientBelong:'ZHONGPIN',
|
||||
comprehensiveSort:1,
|
||||
zpDisable:'ENABLE',
|
||||
clientBelong: 'ZHONGPIN',
|
||||
comprehensiveSort: 1,
|
||||
zpDisable: 'ENABLE',
|
||||
sort: "juli", //类型:String 必有字段 备注:// 智能排序 ( price:价格最低 juli:距离最近 ) 默认距离排序
|
||||
...uni.getStorageSync('location'),
|
||||
...this.filterData,
|
||||
@@ -566,13 +579,13 @@
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title:'请您登录',
|
||||
content:"登录小星加油才可以加油 |˛˙꒳˙)♡",
|
||||
confirmText:'去登陆',
|
||||
title: '请您登录',
|
||||
content: "登录小星加油才可以加油 |˛˙꒳˙)♡",
|
||||
confirmText: '去登陆',
|
||||
success: (res) => {
|
||||
if(res.confirm){
|
||||
if (res.confirm) {
|
||||
uni.reLaunch({
|
||||
url:'../../../BagAuth/pages/login/login'
|
||||
url: '../../../BagAuth/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -789,4 +802,4 @@
|
||||
.my-icon-sm .text-sm {
|
||||
line-height: 1rem;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user