Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
2a970119
Commit
2a970119
authored
Aug 14, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix session
parent
dc270954
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
src/pages/address/index.vue
+3
-4
src/pages/wxPay/index.vue
+5
-6
No files found.
src/pages/address/index.vue
View file @
2a970119
...
...
@@ -41,10 +41,9 @@ export default {
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
this
.
options
=
options
;
if
(
options
.
sessionid
){
wx
.
setStorageSync
({
key
:
"sessionid"
,
data
:
options
.
sessionid
});
try
{
wx
.
setStorageSync
(
'sessionid'
,
options
.
sessionid
)
}
catch
(
e
)
{
}
}
console
.
log
(
"onload"
);
this
.
init
();
...
...
src/pages/wxPay/index.vue
View file @
2a970119
...
...
@@ -31,12 +31,11 @@ export default {
this
.
options_orderType
=
options
.
orderType
;
this
.
options_isCard
=
options
.
isCard
;
this
.
options_isCardTitle
=
options
.
isCardTit
;
if
(
options
.
sessionid
){
wx
.
setStorageSync
({
key
:
"sessionid"
,
data
:
options
.
sessionid
});
}
if
(
options
.
sessionid
){
try
{
wx
.
setStorageSync
(
'sessionid'
,
options
.
sessionid
)
}
catch
(
e
)
{
}
}
let
that
=
this
;
wx
.
getStorage
({
key
:
"openid"
,
...
...
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