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 68708f24
authored
Oct 25, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.0' into 'zhangxw_dev_3.0'
V3.0 See merge request
!70
2 parents
f5bcd8e1
f30a37c1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
pages/authentication/lib/index.js
pages/authentication/registerInfo/registerInfo.js
pages/authentication/registerInfo/registerInfo.wxml
pages/tab/discovery/discovery.js
pages/authentication/lib/index.js
View file @
68708f2
...
@@ -38,7 +38,6 @@ const selectAccountLogin = ({
...
@@ -38,7 +38,6 @@ const selectAccountLogin = ({
}
}
/**设置登录信息 */
/**设置登录信息 */
const
setLoginInfo
=
(
userInfo
,
sessionId
)
=>
{
const
setLoginInfo
=
(
userInfo
,
sessionId
)
=>
{
console
.
log
(
111222222233333
)
setUserInfo
(
userInfo
)
setUserInfo
(
userInfo
)
setSessionId
(
sessionId
)
setSessionId
(
sessionId
)
loginSuccess
()
loginSuccess
()
...
...
pages/authentication/registerInfo/registerInfo.js
View file @
68708f2
...
@@ -35,6 +35,7 @@ Page({
...
@@ -35,6 +35,7 @@ Page({
dataFromOptions
:
options
,
dataFromOptions
:
options
,
staffName
:
options
.
staffName
staffName
:
options
.
staffName
})
})
console
.
log
(
this
.
data
.
dataFromOptions
)
},
},
/**
/**
...
@@ -96,8 +97,8 @@ Page({
...
@@ -96,8 +97,8 @@ Page({
disabled
:
!
this
.
data
.
department
.
id
||
!
this
.
data
.
staffName
disabled
:
!
this
.
data
.
department
.
id
||
!
this
.
data
.
staffName
})
})
},
},
handleRegister
(
{
detail
}
){
handleRegister
(){
const
{
merchantId
,
merchantFileRequest
}
=
this
.
data
.
dataFromOptions
const
{
merchantId
,
merchantFileRequest
,
detail
}
=
this
.
data
.
dataFromOptions
let
params
=
{
let
params
=
{
merchantId
,
merchantId
,
loginToken
:
this
.
loginToken
,
loginToken
:
this
.
loginToken
,
...
...
pages/authentication/registerInfo/registerInfo.wxml
View file @
68708f2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</view>
</view>
</view>
</view>
<view class="register">
<view class="register">
<button class="btn {{disabled ? 'store-btn-disabled':''}}" disabled="{{disabled}}"
open-type="getPhoneNumber" bindgetphonenumber
="handleRegister">立即注册</button>
<button class="btn {{disabled ? 'store-btn-disabled':''}}" disabled="{{disabled}}"
bindtap
="handleRegister">立即注册</button>
</view>
</view>
</view>
</view>
<van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 50%" >
<van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 50%" >
...
...
pages/tab/discovery/discovery.js
View file @
68708f2
...
@@ -44,24 +44,24 @@ Page({
...
@@ -44,24 +44,24 @@ Page({
if
(
res
?.
length
>
0
){
if
(
res
?.
length
>
0
){
let
sceneCodeList
=
[]
let
sceneCodeList
=
[]
let
senceData
=
[...
this
.
data
.
senceData
]
let
senceData
=
[...
this
.
data
.
senceData
]
let
res
=
[
//
let res = [
{
//
{
sceneCode
:
'SC001'
,
//
sceneCode: 'SC001',
status
:
1
//
status: 1
},
//
},
{
//
{
sceneCode
:
'SC002'
,
//
sceneCode: 'SC002',
status
:
1
//
status: 1
},
//
},
{
//
{
sceneCode
:
'SC003'
,
//
sceneCode: 'SC003',
status
:
1
//
status: 1
},
//
},
{
//
{
sceneCode
:
'SC004'
,
//
sceneCode: 'SC004',
status
:
1
//
status: 1
}
//
}
]
//
]
res
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
status
==
1
)
{
if
(
item
.
status
==
1
)
{
let
sceneTarget
=
senceData
.
find
(
sitem
=>
sitem
.
sceneCode
==
item
.
sceneCode
)
let
sceneTarget
=
senceData
.
find
(
sitem
=>
sitem
.
sceneCode
==
item
.
sceneCode
)
...
...
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