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 13857647
authored
Nov 07, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feat_v3.0' into 'zhangxw_dev_3.0'
Feat v3.0 See merge request
!139
2 parents
f7c4cb77
c12c5494
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
pages/authentication/register/register.js
pages/authentication/registerInfo/registerInfo.js
pages/authentication/registerInfo/registerInfo.scss
pages/authentication/registerInfo/registerInfo.wxml
pages/authentication/register/register.js
View file @
1385764
...
...
@@ -75,7 +75,7 @@ Page({
if
(
code
==
'0'
&&
loginUserInfoList
?.
length
){
target
=
loginUserInfoList
.
find
(
item
=>
item
.
merchantId
==
this
.
data
.
linkParams
.
merchantId
)
}
if
(
target
&&
target
.
staffLabel
){
if
(
target
&&
target
.
department
){
this
.
register
(
detail
)
}
else
{
this
.
isTypeEmpty
(
detail
)
...
...
pages/authentication/registerInfo/registerInfo.js
View file @
1385764
...
...
@@ -111,18 +111,26 @@ Page({
weChatNickName
:
merchantFileRequest
.
fileName
,
weChatAvatarUrl
:
merchantFileRequest
.
fileUrl
}
wx
.
showLoading
()
USERAPI
.
register
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'0'
){
this
.
toLogin
()
}
else
if
(
res
.
errId
==
'200122'
){
wx
.
hideLoading
()
this
.
init
(
2
)
}
else
{
wx
.
hideLoading
()
wx
.
$api
.
showToast
(
res
.
message
||
'系统异常'
)
}
}).
catch
(({
errMsg
})
=>
{
wx
.
hideLoading
()
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
})
//
},
toLogin
(){
wx
.
showLoading
()
USERAPI
.
authUserPhone
(
this
.
data
.
dataFromOptions
.
detail
,
this
.
loginToken
).
then
(({
code
,
data
,
...
...
@@ -132,15 +140,17 @@ Page({
if
(
code
==
'0'
){
this
.
checkLoginUserInfo
(
data
)
}
else
if
(
errId
==
'200122'
){
wx
.
hideLoading
()
this
.
init
(
1
)
}
else
{
wx
.
hideLoading
()
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
}
}).
catch
(({
errMsg
})
=>
{
this
.
setShowLoading
(
false
)
wx
.
$api
.
showToast
(
'系统异常'
)
wx
.
hideLoading
(
)
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
})
},
checkLoginUserInfo
({
...
...
pages/authentication/registerInfo/registerInfo.scss
View file @
1385764
...
...
@@ -26,6 +26,7 @@
}
.placeholder
{
margin-top
:
2rpx
;
color
:
#999999
;
}
.depart-name
,
input
{
display
:
inline-block
;
...
...
pages/authentication/registerInfo/registerInfo.wxml
View file @
1385764
...
...
@@ -8,7 +8,8 @@
</view>
<view class="info-item" bindtap="selectDepartment">
<text class="label">部门</text>
<text class="depart-name">{{department.name}}</text>
<text wx:if="{{department.id}}" class="depart-name">{{department.name}}</text>
<text wx:else style="color:#999999;" class="depart-name">请选择部门</text>
<image class="right-arrow" src="{{IMGURL}}right_arrow_grey_icon.png"></image>
</view>
</view>
...
...
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