Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
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
Chao Sun
CFFP-HB
Commits
9997376d
Commit
9997376d
authored
Nov 15, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的积分
parent
3776a327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
14 deletions
+29
-14
api/api.ts
+1
-1
pages/myPoints/myPoints.vue
+28
-13
No files found.
api/api.ts
View file @
9997376d
...
@@ -107,6 +107,6 @@ export default {
...
@@ -107,6 +107,6 @@ export default {
},
},
//我的积分查询接口
//我的积分查询接口
findByUserIdForFortuneStatistic
(
params
){
findByUserIdForFortuneStatistic
(
params
){
return
request
(
`
${
cffp
URL
}
/fortune/findByUserIdForFortuneStatistic`
,
"POST"
,
params
)
return
request
(
`
${
api
URL
}
/fortune/findByUserIdForFortuneStatistic`
,
"POST"
,
params
)
}
}
}
}
pages/myPoints/myPoints.vue
View file @
9997376d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"top"
>
<view
class=
"top"
>
<view
class=
"exchange_wrapper"
>
<view
class=
"exchange_wrapper"
>
<view>
可兑换积分
<text
style=
"color: #FF7704;"
>
5555.55
积分
</text></view>
<view>
可兑换积分
<text
style=
"color: #FF7704;"
>
{{
yesExchangeFortune
}}
积分
</text></view>
<view
style=
"color:#C85E04;text-decoration: underline;"
>
可兑换提现5555.55
</view>
<view
style=
"color:#C85E04;text-decoration: underline;"
>
可兑换提现5555.55
</view>
</view>
</view>
<view
class=
"bg"
>
<view
class=
"bg"
>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</view>
</view>
<view
class=
""
>
<view
class=
""
>
<text
style=
"color: #0A2F99;"
>
-222
</text>
<text
style=
"color: #0A2F99;"
>
-222
</text>
<text>
比上次得分
</text>
<text>
{{
prePercent
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"point_content"
>
<view
class=
"point_content"
>
...
@@ -51,10 +51,10 @@
...
@@ -51,10 +51,10 @@
<li>
获得积分
</li>
<li>
获得积分
</li>
<li>
操作
</li>
<li>
操作
</li>
</ul>
</ul>
<ul
class=
"point_content_list"
v-for=
"pointItem in
point
List"
>
<ul
class=
"point_content_list"
v-for=
"pointItem in
cffpFortuneDeduction
List"
>
<li>
{{
pointItem
.
classify
}}
</li>
<li>
{{
pointItem
.
productTypeName
}}
</li>
<li>
{{
pointItem
.
sourc
e
}}
</li>
<li>
{{
pointItem
.
commissionTypeNam
e
}}
</li>
<li
class=
"get_point"
>
{{
pointItem
.
score
}}
</li>
<li
class=
"get_point"
>
{{
pointItem
.
commissionAmount
}}
</li>
<li
class=
"point_detail"
>
查看明细
</li>
<li
class=
"point_detail"
>
查看明细
</li>
</ul>
</ul>
</view>
</view>
...
@@ -66,16 +66,22 @@
...
@@ -66,16 +66,22 @@
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
queryDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
fortuneDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
navList
:[{
name
:
'日积分'
,
timeFlag
:
'D'
},{
name
:
'月积分'
,
timeFlag
:
'M'
},{
name
:
'年积分'
,
timeFlag
:
'Y'
}],
navList
:[{
name
:
'日积分'
,
timeFlag
:
'D'
},{
name
:
'月积分'
,
timeFlag
:
'M'
},{
name
:
'年积分'
,
timeFlag
:
'Y'
}],
timeFlag
:
'D'
,
timeFlag
:
'D'
,
pointList
:[{
name
:
'课程大类'
,
id
:
1
,
source
:
'销售收入'
,
classify
:
'家组信托'
,
score
:
100
}]
pointList
:[{
name
:
'课程大类'
,
id
:
1
,
source
:
'销售收入'
,
classify
:
'家组信托'
,
score
:
100
}],
sumCommissionAmount
:
''
,
//总积分
nowSumCommissionAmount
:
''
,
//当前(日月年)积分
prePercent
:
''
,
//比前日、上月,上年多或少的百分比数据
yesExchangeFortune
:
''
,
//可兑换金额
cffpFortuneDeductionList
:[]
//对象类型见下方CffpFortuneExchangeVO
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(){
this
.
findByUserIdForFortuneStatistic
();
},
},
methods
:{
methods
:{
selectNav
(
navItem
){
selectNav
(
navItem
){
...
@@ -86,12 +92,21 @@
...
@@ -86,12 +92,21 @@
},
},
findByUserIdForFortuneStatistic
(){
findByUserIdForFortuneStatistic
(){
const
param
=
{
const
param
=
{
isDtl
:
2
isDtl
:
2
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
,
fortuneDate
:
this
.
fortuneDate
fortuneDate
:
this
.
fortuneDate
,
timeFlag
:
this
.
timeFlag
timeFlag
:
this
.
timeFlag
}
}
api
.
findByUserIdForFortuneStatistic
(
param
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
sumCommissionAmount
=
res
[
'data'
][
'sumCommissionAmount'
];
//总积分
this
.
nowSumCommissionAmount
=
res
[
'data'
][
'nowSumCommissionAmount'
]
//当前(日月年)积分
this
.
prePercent
=
res
[
'data'
][
'prePercent'
]
//比前日、上月,上年多或少的百分比数据
this
.
yesExchangeFortune
=
res
[
'data'
][
'yesExchangeFortune'
]
//可兑换金额
this
.
cffpFortuneDeductionList
=
res
[
'data'
][
'cffpFortuneDeductionList'
];
}
})
}
}
}
}
}
}
...
...
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