Browse Source

update 提示登录

master
fanp 6 years ago
parent
commit
a60b48eb87
  1. 12
      pages/topics/index.js

12
pages/topics/index.js

@ -70,9 +70,21 @@ Page({
} }
} else { } else {
console.log('未绑定微信') console.log('未绑定微信')
wx.showModal({
title: '温馨提示',
content: '是否前往绑定微信?',
success(res) {
if (res.confirm) {
wx.redirectTo({ wx.redirectTo({
url: '/pages/weChatAuth/index', url: '/pages/weChatAuth/index',
}) })
} else if (res.cancel) {
wx.switchTab({
url: '/pages/home/index',
})
}
}
})
} }
}, },
fetchTopicList () { fetchTopicList () {

Loading…
Cancel
Save