main
lion 1 year ago
parent 07d64be3af
commit f8a73b496f

@ -43,7 +43,7 @@ const install = (Vue, vm) => {
confirmText: '重新获取', confirmText: '重新获取',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
uni.removeStorageSync('xtt_lifeData3') uni.removeStorageSync()
uni.login({ uni.login({
provider: 'weixin', provider: 'weixin',
success: (res) => { success: (res) => {

@ -254,7 +254,8 @@
url = '/packages/myorder/myorder' url = '/packages/myorder/myorder'
} else if (index == 4) { } else if (index == 4) {
url = '/packages/myorder/myorder' url = '/packages/myorder/myorder'
} else if (index == 5) { } else if (index == 5) {
uni.setStorageSync('kfType','kf2')
uni.switchTab({ uni.switchTab({
url:'/pages/talk/talk' url:'/pages/talk/talk'
}) })

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

Loading…
Cancel
Save