Commit 25fa9dad by zhangxw

手机号授权 低版本提示

1 parent deb3e9e0
...@@ -226,6 +226,9 @@ Page({ ...@@ -226,6 +226,9 @@ Page({
wxLogin({ wxLogin({
detail detail
}) { }) {
if (!detail?.code) {
return wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
}
if (!detail.code || this.data.showLoading) return if (!detail.code || this.data.showLoading) return
// this.setShowLoading(true) // this.setShowLoading(true)
wx.showLoading() wx.showLoading()
......
...@@ -58,8 +58,8 @@ Page({ ...@@ -58,8 +58,8 @@ Page({
toRegister({ toRegister({
detail detail
}) { }) {
if (!detail.code) { if (!detail?.code) {
return wx.$api.showToast('请升级您的微信版本') return wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
} }
let params = { let params = {
detail, detail,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!