Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25fa9dad
authored
Nov 09, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
手机号授权 低版本提示
1 parent
deb3e9e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
pages/authentication/login/login.js
pages/authentication/register/register.js
pages/authentication/login/login.js
View file @
25fa9da
...
@@ -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
()
...
...
pages/authentication/register/register.js
View file @
25fa9da
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment