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 aba470e1
authored
Nov 03, 2022
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式,验证注册
1 parent
90f4aace
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
pages/authentication/registerInfo/registerInfo.js
pages/authentication/registerInfo/registerInfo.scss
pages/authentication/registerInfo/registerInfo.wxml
pages/authentication/registerInfo/registerInfo.js
View file @
aba470e
...
@@ -111,18 +111,26 @@ Page({
...
@@ -111,18 +111,26 @@ Page({
weChatNickName
:
merchantFileRequest
.
fileName
,
weChatNickName
:
merchantFileRequest
.
fileName
,
weChatAvatarUrl
:
merchantFileRequest
.
fileUrl
weChatAvatarUrl
:
merchantFileRequest
.
fileUrl
}
}
wx
.
showLoading
()
USERAPI
.
register
(
params
).
then
((
res
)
=>
{
USERAPI
.
register
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'0'
){
if
(
res
.
code
==
'0'
){
this
.
toLogin
()
this
.
toLogin
()
}
else
if
(
res
.
errId
==
'200122'
){
}
else
if
(
res
.
errId
==
'200122'
){
wx
.
hideLoading
()
this
.
init
(
2
)
this
.
init
(
2
)
}
else
{
}
else
{
wx
.
hideLoading
()
wx
.
$api
.
showToast
(
res
.
message
||
'系统异常'
)
wx
.
$api
.
showToast
(
res
.
message
||
'系统异常'
)
}
}
}).
catch
(({
errMsg
})
=>
{
wx
.
hideLoading
()
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
})
})
//
},
},
toLogin
(){
toLogin
(){
wx
.
showLoading
()
USERAPI
.
authUserPhone
(
this
.
data
.
dataFromOptions
.
detail
,
this
.
loginToken
).
then
(({
USERAPI
.
authUserPhone
(
this
.
data
.
dataFromOptions
.
detail
,
this
.
loginToken
).
then
(({
code
,
code
,
data
,
data
,
...
@@ -132,15 +140,17 @@ Page({
...
@@ -132,15 +140,17 @@ Page({
if
(
code
==
'0'
){
if
(
code
==
'0'
){
this
.
checkLoginUserInfo
(
data
)
this
.
checkLoginUserInfo
(
data
)
}
else
if
(
errId
==
'200122'
){
}
else
if
(
errId
==
'200122'
){
wx
.
hideLoading
()
this
.
init
(
1
)
this
.
init
(
1
)
}
else
{
}
else
{
wx
.
hideLoading
()
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
}
}
}).
catch
(({
}).
catch
(({
errMsg
errMsg
})
=>
{
})
=>
{
this
.
setShowLoading
(
false
)
wx
.
hideLoading
(
)
wx
.
$api
.
showToast
(
'系统异常'
)
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
})
})
},
},
checkLoginUserInfo
({
checkLoginUserInfo
({
...
...
pages/authentication/registerInfo/registerInfo.scss
View file @
aba470e
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
}
}
.placeholder
{
.placeholder
{
margin-top
:
2rpx
;
margin-top
:
2rpx
;
color
:
#999999
;
}
}
.depart-name
,
input
{
.depart-name
,
input
{
display
:
inline-block
;
display
:
inline-block
;
...
...
pages/authentication/registerInfo/registerInfo.wxml
View file @
aba470e
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
</view>
</view>
<view class="info-item" bindtap="selectDepartment">
<view class="info-item" bindtap="selectDepartment">
<text class="label">部门</text>
<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>
<image class="right-arrow" src="{{IMGURL}}right_arrow_grey_icon.png"></image>
</view>
</view>
</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