Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
6f328c30
Commit
6f328c30
authored
Jun 01, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: encodeURI_decodeURI
parent
c3be6e8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app.js
src/app.js
+3
-1
activateCardCallback.js
src/pages/activateCard/activateCardCallback.js
+1
-2
No files found.
src/app.js
View file @
6f328c30
...
...
@@ -24,12 +24,14 @@ App({
// wxService.router(`${url}`).search(parmas);
wxService
.
router
(
`
${
url
}
`
).
search
({
activate_ticket
,
activate_ticket
:
encodeURIComponent
(
activate_ticket
)
,
card_id
,
code
,
errCode
,
wx_activate_after_submit_url
:
parmas
});
// encodeURIComponent
// decodeURIComponent
}
},
...
...
src/pages/activateCard/activateCardCallback.js
View file @
6f328c30
...
...
@@ -40,10 +40,9 @@ wxService.page({
handleGoActivateCard
(
options
=
{})
{
console
.
log
(
"options"
,
options
)
if
(
!
options
)
return
false
options
.
activate_ticket
=
decodeURIComponent
(
options
.
activate_ticket
)
// 解析 url 参数 {}
const
parmasSubmitUrl
=
utils
.
parseUrl
(
options
.
wx_activate_after_submit_url
)
console
.
log
(
'parmasSubmitUrl'
,
parmasSubmitUrl
)
// 合并对象
let
currentObj
=
Object
.
assign
(
options
,
parmasSubmitUrl
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment