@ -43,7 +43,7 @@ const install = (Vue, vm) => {
confirmText: '重新获取',
success: function(res) {
if (res.confirm) {
uni.removeStorageSync('xtt_lifeData3')
uni.removeStorageSync()
uni.login({
provider: 'weixin',
success: (res) => {
@ -254,7 +254,8 @@
url = '/packages/myorder/myorder'
} else if (index == 4) {
} else if (index == 5) {
uni.setStorageSync('kfType','kf2')
uni.switchTab({
url:'/pages/talk/talk'
})
@ -47,15 +47,16 @@
img: ''
}
},
onLoad() {
const banner4 = uni.getStorageSync('banner4') ? uni.getStorageSync('banner4') : []
onShow() {
const kfType = uni.getStorageSync('kfType') ? uni.getStorageSync('kfType') : 'gzh'
if (banner4.length > 0) {
banner4.map(item=>{
if(item.type==='gzh'){
if(item.type===kfType){
this.img = item.image
uni.removeStorageSync('kfType')