Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
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
frontend
mall-webview
Commits
2052cad8
Commit
2052cad8
authored
Apr 23, 2021
by
wykolor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复app进入奖励金明细没有数据bug
parent
e8c57a91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
add.vue
src/views/bonus/bonus-detail/add.vue
+3
-2
reduce.vue
src/views/bonus/bonus-detail/reduce.vue
+3
-2
No files found.
src/views/bonus/bonus-detail/add.vue
View file @
2052cad8
...
@@ -33,7 +33,7 @@ import { usePaging } from "@/util/use-paging";
...
@@ -33,7 +33,7 @@ import { usePaging } from "@/util/use-paging";
import
{
getBonusList
}
from
"@/server/api/bonus"
;
import
{
getBonusList
}
from
"@/server/api/bonus"
;
import
{
FlowType
,
BizType
}
from
"@/model/bonus/constant"
;
import
{
FlowType
,
BizType
}
from
"@/model/bonus/constant"
;
import
{
useStore
}
from
"vuex"
;
import
{
useStore
}
from
"vuex"
;
import
{
useRoute
}
from
"vue-router"
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
components
:
{
[
List
.
name
]:
List
,
[
List
.
name
]:
List
,
...
@@ -42,11 +42,12 @@ export default defineComponent({
...
@@ -42,11 +42,12 @@ export default defineComponent({
[
Loading
.
name
]:
Loading
[
Loading
.
name
]:
Loading
},
},
setup
()
{
setup
()
{
const
route
=
useRoute
();
const
store
=
useStore
();
const
store
=
useStore
();
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
const
[
paging
,
loadMore
,
refresh
,
helpers
]
=
usePaging
(
getBonusList
,
()
=>
({
const
[
paging
,
loadMore
,
refresh
,
helpers
]
=
usePaging
(
getBonusList
,
()
=>
({
studentId
:
bonusStoreState
.
value
.
studentId
,
studentId
:
route
.
query
.
studentId
||
bonusStoreState
.
value
.
studentId
,
flowType
:
"ADD"
flowType
:
"ADD"
}));
}));
...
...
src/views/bonus/bonus-detail/reduce.vue
View file @
2052cad8
...
@@ -58,7 +58,7 @@ import { usePaging } from "@/util/use-paging";
...
@@ -58,7 +58,7 @@ import { usePaging } from "@/util/use-paging";
import
{
getBonusList
}
from
"@/server/api/bonus"
;
import
{
getBonusList
}
from
"@/server/api/bonus"
;
import
{
FlowType
,
BizType
}
from
"@/model/bonus/constant"
;
import
{
FlowType
,
BizType
}
from
"@/model/bonus/constant"
;
import
{
useStore
}
from
"vuex"
;
import
{
useStore
}
from
"vuex"
;
import
{
useRoute
}
from
"vue-router"
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
components
:
{
[
List
.
name
]:
List
,
[
List
.
name
]:
List
,
...
@@ -67,11 +67,12 @@ export default defineComponent({
...
@@ -67,11 +67,12 @@ export default defineComponent({
[
Loading
.
name
]:
Loading
[
Loading
.
name
]:
Loading
},
},
setup
()
{
setup
()
{
const
route
=
useRoute
();
const
store
=
useStore
();
const
store
=
useStore
();
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
const
[
paging
,
loadMore
,
refresh
,
helpers
]
=
usePaging
(
getBonusList
,
()
=>
({
const
[
paging
,
loadMore
,
refresh
,
helpers
]
=
usePaging
(
getBonusList
,
()
=>
({
studentId
:
bonusStoreState
.
value
.
studentId
,
studentId
:
route
.
query
.
studentId
||
bonusStoreState
.
value
.
studentId
,
flowType
:
"REDUCE"
flowType
:
"REDUCE"
}));
}));
...
...
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