Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
cauchy-ui
Commits
ed2fb93a
Commit
ed2fb93a
authored
Jul 17, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改存储方式
parent
a5f1eeb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
cookieStorage.service.js
src/service/cookieStorage.service.js
+6
-1
init.service.js
src/service/init.service.js
+2
-3
index.vue
src/views/pay/index.vue
+1
-1
No files found.
src/service/cookieStorage.service.js
View file @
ed2fb93a
...
...
@@ -5,7 +5,12 @@ const option = {
};
const
Cookies
=
{
get
(
key
)
{
return
cookies
.
get
(
key
)
||
''
;
const
result
=
cookies
.
get
(
key
);
try
{
return
JSON
.
parse
(
result
);
}
catch
(
e
)
{
return
result
;
}
},
set
(
key
,
value
)
{
return
cookies
.
set
(
key
,
value
,
option
);
...
...
src/service/init.service.js
View file @
ed2fb93a
...
...
@@ -5,7 +5,6 @@ import store from '../store';
import
{
isWechat
,
isApp
}
from
'
./validation.service
'
;
import
Cookies
from
'
./cookieStorage.service
'
;
import
localStorage
from
'
./localStorage.service
'
;
//formXcxPage:标识是从小程序跳转过来的;
const
localStorageParams
=
[
'
creditToken
'
,
'
vccToken
'
,
...
...
@@ -13,8 +12,8 @@ const localStorageParams = [
'
sonVccChannel
'
,
'
formXcxPage
'
];
const
cookiesParams
=
[
'
h
'
];
const
sessionStorageParams
=
[
'
returnUrl
'
];
const
cookiesParams
=
[
'
h
'
,
'
returnUrl
'
];
const
sessionStorageParams
=
[];
export
default
{
// token校验,整个流程都是登陆后的
...
...
src/views/pay/index.vue
View file @
ed2fb93a
...
...
@@ -206,6 +206,7 @@ export default {
},
mounted
()
{
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
this
.
queryPayInfo
();
this
.
getCouponList
(
this
.
orderNo
);
},
...
...
@@ -398,7 +399,6 @@ export default {
this
.
retrieveLink
();
return
;
}
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
const
paramsData
=
{
...
params
,
quitUrl
:
`
${
window
.
location
.
origin
}
/payWaiting`
,
...
...
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