Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
33ba90f1
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
d8b5f9f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
src/store/modules/more.js
src/views/More/index.vue
src/store/modules/more.js
View file @
33ba90f1
...
...
@@ -29,7 +29,7 @@ const mutations = {
[
types
.
CHANGE_MORE_SUMMARY
]
(
state
,
moreSummary
)
{
state
.
moreSummary
=
moreSummary
;
try
{
localStorage
.
setItem
(
"moreSummary"
,
moreSummary
);
localStorage
.
setItem
(
"moreSummary"
,
JSON
.
stringify
(
moreSummary
)
);
}
catch
(
error
)
{
}
},
}
...
...
src/views/More/index.vue
View file @
33ba90f1
...
...
@@ -76,7 +76,14 @@ export default {
...
mapActions
([
"loadMoreList"
,
"loadMoreSummary"
,
"loadPayUrl"
]),
toPay
()
{
let
payUrl
=
this
.
payUrl
+
"&accountType=1&payType=3&selected=1&failUrl="
+
encodeURIComponent
(
'https://pay.qinqinxiaobao.com/callback/fail'
)
+
"&successUrl="
+
encodeURIComponent
(
'https://pay.qinqinxiaobao.com/callback/success'
)
+
""
+
"&periodId="
+
this
.
currentPerId
;
this
.
payUrl
+
"&accountType=1&payType=3&selected=1&failUrl="
+
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/fail"
)
+
"&successUrl="
+
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/success"
)
+
""
+
"&periodId="
+
this
.
currentPerId
;
window
.
open
(
payUrl
);
},
toPage
()
{
...
...
@@ -89,9 +96,11 @@ export default {
this
.
$router
.
push
({
name
:
"moredetail"
,
query
:
{
index
,
name
}
});
},
async
getData
()
{
console
.
log
(
"more index getData"
);
await
this
.
loadMoreSummary
().
then
(
data
=>
{
this
.
summary
=
data
;
console
.
log
(
"this.summary="
,
this
.
summary
);
},
err
=>
{
console
.
log
(
err
);
...
...
@@ -111,11 +120,10 @@ export default {
}
},
async
mounted
()
{
console
.
log
(
'more index mounted'
);
this
.
setPageNavState
();
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
await
this
.
getData
();
this
.
payUrl
=
await
this
.
loadPayUrl
();
//
this.payUrl = await this.loadPayUrl();
}
};
</
script
>
...
...
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