This commit is contained in:
caolc
2023-07-06 14:08:20 +08:00
parent cf253870a3
commit b43d34fe06
6 changed files with 31 additions and 19 deletions

View File

@@ -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(){
},