|
|
|
@ -67,6 +67,7 @@ |
|
|
|
|
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
companyCard:uni.getStorageSync('companyCard'), |
|
|
|
|
getSiteListTimer:null, |
|
|
|
|
areaCodeList:[], |
|
|
|
|
loadText:'more', |
|
|
|
@ -238,17 +239,17 @@ |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
this.refreshLocation() |
|
|
|
|
let storykey = uni.getStorageInfoSync() |
|
|
|
|
// console.log('%c look here↓','color:green;font-size:50px') |
|
|
|
|
// console.log(storykey) |
|
|
|
|
let storykey = uni.getStorageInfoSync() |
|
|
|
|
let nowCompanyCard = uni.getStorageSync('companyCard') |
|
|
|
|
if(this.companyCard&&this.companyCard!==nowCompanyCard){ |
|
|
|
|
this.companyCard = uni.getStorageSync('companyCard'); |
|
|
|
|
this.updateFn() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
console.log("111111111111111",uni.getStorageSync('filterDatas')) |
|
|
|
|
onLoad() { |
|
|
|
|
if (!uni.getStorageSync('filterDatas')) { |
|
|
|
|
this.getFilterData() |
|
|
|
|
// console.log('dhgiuhihqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq') |
|
|
|
|
} else{ |
|
|
|
|
// console.log('dhgiuhihiiiiiiiiiiiiiiiiiiiiiiiiiiiii') |
|
|
|
|
this.getFilterData() |
|
|
|
|
} else{ |
|
|
|
|
} |
|
|
|
|
this.findPriceDetails() |
|
|
|
|
if (uni.getStorageSync('productCodeList')) { |
|
|
|
@ -257,10 +258,7 @@ |
|
|
|
|
this.getSiteList() |
|
|
|
|
}, |
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
this.filterRes(this.filterDatas) |
|
|
|
|
setTimeout(function() { |
|
|
|
|
uni.stopPullDownRefresh() |
|
|
|
|
}, 600); |
|
|
|
|
this.updateFn() |
|
|
|
|
}, |
|
|
|
|
onReachBottom() { |
|
|
|
|
if (this.loadStatus == 'load') { |
|
|
|
@ -279,6 +277,12 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
updateFn(){ |
|
|
|
|
this.filterRes(this.filterDatas) |
|
|
|
|
setTimeout(function() { |
|
|
|
|
uni.stopPullDownRefresh() |
|
|
|
|
}, 600); |
|
|
|
|
}, |
|
|
|
|
reunrnFn(){ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|