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 03b810be
authored
Oct 19, 2022
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
注册母链参数修改
1 parent
48693f38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
pages/authentication/register/register.js
pages/authentication/register/register.js
View file @
03b810b
...
@@ -8,12 +8,7 @@ Page({
...
@@ -8,12 +8,7 @@ Page({
data
:
{
data
:
{
navStyle
,
navStyle
,
headerHeight
:
0
,
headerHeight
:
0
,
linkParams
:
{
linkParams
:
{}
staffName
:
'zqqq'
,
merchantId
:
'44211227'
,
merchantFileRequest
:
{
fileName
:
"bsg"
,
fileUrl
:
'https://img1.baidu.com/it/u=1755961019,1690032781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1665766800&t=0b9617eab6fe013e35dc2e491e2e2100'
},
type
:
0
}
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
{
let
{
...
@@ -76,6 +71,7 @@ Page({
...
@@ -76,6 +71,7 @@ Page({
if
(
this
.
data
.
linkParams
.
type
==
1
){
if
(
this
.
data
.
linkParams
.
type
==
1
){
wx
.
$router
.
go
(
'/pages/authentication/registerInfo/registerInfo'
,
params
)
wx
.
$router
.
go
(
'/pages/authentication/registerInfo/registerInfo'
,
params
)
}
else
{
}
else
{
let
randomName
=
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
(
1
)
*
10000
)
let
{
merchantFileRequest
,
merchantId
}
=
this
.
data
.
linkParams
let
{
merchantFileRequest
,
merchantId
}
=
this
.
data
.
linkParams
let
regParmas
=
{
let
regParmas
=
{
merchantId
,
merchantId
,
...
@@ -83,7 +79,9 @@ Page({
...
@@ -83,7 +79,9 @@ Page({
encryptedData
:
detail
.
encryptedData
,
encryptedData
:
detail
.
encryptedData
,
iv
:
detail
.
iv
,
iv
:
detail
.
iv
,
merchantFileRequest
:
JSON
.
stringify
(
merchantFileRequest
),
merchantFileRequest
:
JSON
.
stringify
(
merchantFileRequest
),
staffName
:
merchantFileRequest
.
fileName
staffName
:
merchantFileRequest
.
fileName
||
randomName
,
weChatNickName
:
merchantFileRequest
.
fileName
,
weChatAvatarUrl
:
merchantFileRequest
.
fileUrl
}
}
this
.
register
(
regParmas
)
this
.
register
(
regParmas
)
}
}
...
@@ -109,10 +107,17 @@ Page({
...
@@ -109,10 +107,17 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
let
data
=
JSON
.
parse
(
decodeURIComponent
(
options
.
data
))
console
.
log
(
options
,
'options'
)
let
{
staffName
,
fileUrl
,
merchantId
,
type
}
=
data
let
data
=
decodeURIComponent
(
options
.
data
)
let
linkParams
=
{
console
.
log
(
data
)
staffName
,
merchantId
,
type
,
merchantFileRequest
:
{
fileName
:
staffName
,
fileUrl
:
fileUrl
}
}
this
.
setData
({
linkParams
})
this
.
init
()
this
.
init
()
},
},
...
...
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