diff --git a/api/oil-site.js b/api/oil-site.js index fd12efe..a04a5e3 100644 --- a/api/oil-site.js +++ b/api/oil-site.js @@ -31,6 +31,13 @@ export default { data: data }) }, + getSiteLists(data) { + return request({ + url: `/${service_name}/${group_name}/findBCSiteInfoByPage`, + method: 'post', + data: data + }) + }, getSiteDetails(data) { return request({ url: `/${service_name}/${group_name}/getSiteDetails`, diff --git a/components/Empty.vue b/components/Empty.vue index bd26f3c..a91bd55 100644 --- a/components/Empty.vue +++ b/components/Empty.vue @@ -4,7 +4,7 @@
-

这里没有相关记录哦~

+

{{contentTitle?contentTitle:'这里没有相关记录哦~'}}

diff --git a/components/sl-filter/sl-filter.vue b/components/sl-filter/sl-filter.vue index 6c1b29f..776c55c 100644 --- a/components/sl-filter/sl-filter.vue +++ b/components/sl-filter/sl-filter.vue @@ -226,6 +226,10 @@ } } } else { + // if(this.titleList[this.selectedIndex].key.indexOf('oilProductCode') !=-1 && this.titleList[this.selectedIndex].title.indexOf('全部') != -1){ + // this.titleList[this.selectedIndex+1].title = '距离排序' + // console.log(this.titleList[this.selectedIndex].key,this.titleList[this.selectedIndex].title,'spppppppppppp') + // } for (let key in titlesObj) { if (!Array.isArray(titlesObj[key])) { this.tempTitleObj[key] = titlesObj[key]; @@ -240,7 +244,6 @@ } } } - this.$refs.popupRef.close() if (obj.isReset) { diff --git a/pages/index/startPage/startPage.vue b/pages/index/startPage/startPage.vue index 6a7540f..6bd4b7b 100644 --- a/pages/index/startPage/startPage.vue +++ b/pages/index/startPage/startPage.vue @@ -59,21 +59,59 @@ this.getFilterData() } } - setTimeout(() => { - if (key == '在线') { - uni.switchTab({ - url: '/pages/tabbar/home/home', - fail: (err) => { - console.log(err) - } - // url:'/BagStation/orderDetail/orderDetail' - }) - } else { - uni.redirectTo({ - url: '/BagAuth/pages/login/login' - }) - } - }, 2000) + // 在页面中定义插屏广告 + let interstitialAd = null + + // 在页面onLoad回调事件中创建插屏广告实例 + if (wx.createInterstitialAd) { + interstitialAd = wx.createInterstitialAd({ + adUnitId: 'adunit-a7faf57adeed211f' + }) + } + interstitialAd.onLoad((err) => { + console.log('onLoad event emit', err) + }) + interstitialAd.onError((err) => { + setTimeout(() => { + if (key == '在线') { + uni.switchTab({ + url: '/pages/tabbar/home/home', + fail: (err) => { + console.log(err) + } + // url:'/BagStation/orderDetail/orderDetail' + }) + } else { + uni.redirectTo({ + url: '/BagAuth/pages/login/login' + }) + } + }, 2000) + console.log('onError event emit', err) + }) + // 在适合的场景显示插屏广告 + if (interstitialAd) { + interstitialAd.show().catch((err) => { + console.error(err) + }) + } + interstitialAd.onClose(res => { + setTimeout(() => { + if (key == '在线') { + uni.switchTab({ + url: '/pages/tabbar/home/home', + fail: (err) => { + console.log(err) + } + // url:'/BagStation/orderDetail/orderDetail' + }) + } else { + uni.redirectTo({ + url: '/BagAuth/pages/login/login' + }) + } + }, 2000) + }) }, onReady(option) { const updateManager = uni.getUpdateManager(); diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue index 6bc660c..8fa1dd6 100644 --- a/pages/tabbar/home/home.vue +++ b/pages/tabbar/home/home.vue @@ -137,6 +137,9 @@ + + + @@ -310,6 +313,7 @@ onLoad() { this.reverseGeocoder(this.location) this.refreshLocation() + // if (!uni.getStorageSync('filterData')) { // this.getFilterData() // } diff --git a/pages/tabbar/station/stationList.vue b/pages/tabbar/station/stationList.vue index c747dff..ae05760 100644 --- a/pages/tabbar/station/stationList.vue +++ b/pages/tabbar/station/stationList.vue @@ -1,5 +1,5 @@