12121212
This commit is contained in:
@@ -53,11 +53,11 @@
|
||||
key = '离线'
|
||||
}
|
||||
if (key == '在线') {
|
||||
if (!uni.getStorageSync('filterData')) {
|
||||
this.getFilterData()
|
||||
} else if (uni.getStorageSync('filterData')[0].detailList.length < 2) {
|
||||
this.getFilterData()
|
||||
}
|
||||
// if (!uni.getStorageSync('filterData')) {
|
||||
// this.getFilterData()
|
||||
// } else if (uni.getStorageSync('filterData')[0].detailList.length < 2) {
|
||||
// this.getFilterData()
|
||||
// }
|
||||
}
|
||||
// 在页面中定义插屏广告
|
||||
let interstitialAd = null
|
||||
@@ -142,8 +142,10 @@
|
||||
},
|
||||
methods: {
|
||||
getFilterData() {
|
||||
console.log('在线')
|
||||
oilSiteApi.getCheckInfo().then(res => {
|
||||
if (res.code == 20000) {
|
||||
console.log('接口返回正常')
|
||||
let channelCodes = []
|
||||
res.data.channelCodes.map(item => {
|
||||
channelCodes.push({
|
||||
@@ -169,7 +171,8 @@
|
||||
this.menuList[0].detailList = this.menuList[0].detailList.concat(channelCodes)
|
||||
this.menuList[1].detailList = this.menuList[1].detailList.concat(productCodes)
|
||||
this.menuList[2].detailList = this.menuList[2].detailList.concat(siteBrands)
|
||||
uni.setStorageSync('filterData', this.menuList)
|
||||
uni.setStorageSync('filterData', this.menuList);
|
||||
console.log('存入',this.menuList)
|
||||
// this.$refs.slFilter.resetMenuList(this.menuList)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user