Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wx-shopping-mall
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
engine
wx-shopping-mall
Commits
2bb7c4b9
Commit
2bb7c4b9
authored
May 21, 2020
by
Aivs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
有手机号不用绑定
parent
77a29f17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
login.js
pages/auth/login/login.js
+20
-13
goods.js
pages/goods/goods.js
+0
-1
No files found.
pages/auth/login/login.js
View file @
2bb7c4b9
...
...
@@ -43,18 +43,25 @@ Page({
})
user
.
loginByWeixin
(
e
.
detail
.
userInfo
).
then
(
res
=>
{
app
.
globalData
.
hasLogin
=
true
;
this
.
setData
({
hasLogin
:
true
})
// if (getCurrentPages().length>1) {
// wx.navigateBack({
// delta: 1
// })
// } else {
// wx.reLaunch({
// url: '/pages/ucenter/index/index',
// })
// }
if
(
wx
.
getStorageSync
(
'userInfo'
).
tel
){
this
.
setData
({
phoneshow
:
true
})
if
(
getCurrentPages
().
length
>
1
)
{
wx
.
navigateBack
({
delta
:
1
})
}
else
{
wx
.
reLaunch
({
url
:
'/pages/ucenter/index/index'
,
})
}
}
else
{
this
.
setData
({
hasLogin
:
true
})
}
wx
.
hideLoading
();
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
...
...
@@ -68,7 +75,7 @@ Page({
let
that
=
this
;
if
(
e
.
detail
.
errMsg
!==
"getPhoneNumber:ok"
)
{
// 拒绝授权
wx
.
clearStorageSync
(
'token'
)
return
;
}
...
...
pages/goods/goods.js
View file @
2bb7c4b9
...
...
@@ -474,7 +474,6 @@ Page({
}
let
checkedProduct
=
checkedProductArray
[
0
];
debugger
if
(
checkedProduct
.
number
>
0
)
{
this
.
setData
({
checkedSpecPrice
:
checkedProduct
.
price
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment