Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4d79bd5c
authored
2019-12-31 17:13:38 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
7c29b254
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
src/pages/vip-login/vip-login.js
src/pages/vip-login/vip-login.wxml
src/pages/vip-login/vip-login.js
View file @
4d79bd5
...
...
@@ -10,7 +10,7 @@ Page({
userInfo
:
{},
// form start
name
:
""
,
s
hop
Name
:
""
,
s
tore
Name
:
""
,
mobile
:
""
,
verifyCode
:
""
,
imageUrl
:
""
,
...
...
@@ -38,9 +38,9 @@ Page({
})
},
onLoad
(
options
)
{
this
.
setData
({
isModify
:
options
&&
options
.
type
==
"modify"
})
//
this.setData({
//
isModify: options && options.type == "modify"
//
})
this
.
initData
();
},
initData
()
{
...
...
@@ -80,7 +80,8 @@ Page({
initVipLogin
()
{
let
auditStatus
=
this
.
data
.
userInfo
&&
this
.
data
.
userInfo
.
auditStatus
||
""
;
let
isModify
=
this
.
data
.
isModify
;
if
((
auditStatus
==
"authorization"
||
auditStatus
==
"unauthorized"
)
&&
!
isModify
)
{
// if ((auditStatus == "authorization" || auditStatus == "unauthorized") && !isModify) {
if
(
1
>
10
)
{
//可随时修改
// 未验证和待验证
app
.
router
.
push
({
openType
:
"redirect"
,
...
...
@@ -97,6 +98,7 @@ Page({
this
.
setData
({
name
:
verifyInfo
.
realName
,
mobile
:
verifyInfo
.
phone
,
storeName
:
verifyInfo
.
storeName
,
province
:
verifyInfo
.
province
,
city
:
verifyInfo
.
city
,
memberTypeCode
:
verifyInfo
.
memberTypeCode
,
...
...
@@ -241,7 +243,7 @@ Page({
return
new
Promise
((
resolve
,
reject
)
=>
{
let
{
name
,
s
hop
Name
,
s
tore
Name
,
memberTypeCode
,
province
,
city
,
...
...
@@ -298,7 +300,7 @@ Page({
onSubmitHandler
()
{
let
{
name
,
s
hop
Name
,
s
tore
Name
,
memberTypeCode
,
province
,
city
,
...
...
@@ -316,7 +318,7 @@ Page({
// this.uploadToCustomService(pics).then((result) => {
let
verifyInfo
=
{
realName
:
name
,
storeName
:
s
hop
Name
,
storeName
:
s
tore
Name
,
province
:
province
,
city
:
city
,
phone
:
mobile
,
...
...
@@ -506,9 +508,9 @@ Page({
name
:
e
.
detail
.
value
})
},
bindS
hop
NameInput
(
e
)
{
bindS
tore
NameInput
(
e
)
{
this
.
setData
({
s
hop
Name
:
e
.
detail
.
value
s
tore
Name
:
e
.
detail
.
value
})
},
bindVerifyCodeInput
(
e
)
{
...
...
src/pages/vip-login/vip-login.wxml
View file @
4d79bd5
...
...
@@ -22,7 +22,7 @@
</picker>
<view class="form-item">
<view class="label">店名</view>
<input disabled="{{isModify}}" class="cont {{isModify ? 'modify' :''}}" value="{{s
hopName}}" bindinput="bindShop
NameInput" placeholder="选填" />
<input disabled="{{isModify}}" class="cont {{isModify ? 'modify' :''}}" value="{{s
toreName}}" bindinput="bindStore
NameInput" placeholder="选填" />
</view>
<view class="form-item">
<view class="label">销售区域</view>
...
...
Please
register
or
sign in
to post a comment