|
|
|
@ -47,15 +47,16 @@
|
|
|
|
img: ''
|
|
|
|
img: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
onShow() {
|
|
|
|
const banner4 = uni.getStorageSync('banner4') ? uni.getStorageSync('banner4') : []
|
|
|
|
const banner4 = uni.getStorageSync('banner4') ? uni.getStorageSync('banner4') : []
|
|
|
|
|
|
|
|
const kfType = uni.getStorageSync('kfType') ? uni.getStorageSync('kfType') : 'gzh'
|
|
|
|
if (banner4.length > 0) {
|
|
|
|
if (banner4.length > 0) {
|
|
|
|
banner4.map(item=>{
|
|
|
|
banner4.map(item=>{
|
|
|
|
if(item.type==='gzh'){
|
|
|
|
if(item.type===kfType){
|
|
|
|
this.img = item.image
|
|
|
|
this.img = item.image
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
uni.removeStorageSync('kfType')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|