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
7fc0eee6
Commit
7fc0eee6
authored
Nov 15, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人信息接口调整
parent
9997376d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
19 deletions
+97
-19
pages.json
+8
-2
pages/index/index.vue
+3
-3
pages/myPoints/myPoints.vue
+51
-14
pages/myPoints/pointsDetail.vue
+35
-0
No files found.
pages.json
View file @
7fc0eee6
...
...
@@ -153,7 +153,7 @@
"path"
:
"pages/myPoints/myPoints"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
我的积分
"
,
"enablePullDownRefresh"
:
false
}
}
...
...
@@ -189,7 +189,13 @@
"navigationBarTitleText"
:
"我的售后"
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/myPoints/pointsDetail"
,
"style"
:
{
"navigationBarTitleText"
:
"积分明细"
,
"enablePullDownRefresh"
:
false
}
}
],
//
"tabBar"
:
{
...
...
pages/index/index.vue
View file @
7fc0eee6
...
...
@@ -122,12 +122,12 @@
},
queryAreaCenterInfo
(){
api
.
queryAreaCenterInfo
({
userId
:
1
}).
then
((
res
)
=>
{
if
(
res
[
'
commonResult'
][
'
success'
]){
this
.
cffpUserInfo
=
res
;
if
(
res
[
'success'
]){
this
.
cffpUserInfo
=
res
[
'data'
]
;
// this.cffpUserInfo.logo = res['logo'];
}
else
{
uni
.
showToast
({
title
:
res
[
'
commonResult'
][
'
message'
],
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
...
...
pages/myPoints/myPoints.vue
View file @
7fc0eee6
...
...
@@ -3,7 +3,7 @@
<view
class=
"top"
>
<view
class=
"exchange_wrapper"
>
<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;"
>
可兑换提现
{{
yesExchangeFortune
}}
</view>
</view>
<view
class=
"bg"
>
<image
src=
"/static/mypoint_pic.png"
mode=
"widthFix"
></image>
...
...
@@ -29,16 +29,16 @@
</view>
<view
class=
"statistics_wrapper"
>
<view
class=
""
>
<text
style=
"color: #0A2F99;"
>
11111
</text>
<text
style=
"color: #0A2F99;"
>
{{
sumCommissionAmount
}}
</text>
<text>
累计积分
</text>
</view>
<view
class=
""
>
<text
style=
"color: #F15A1F;"
>
333
</text>
<text>
今日
获得积分
</text>
<text
style=
"color: #F15A1F;"
>
{{
nowSumCommissionAmount
}}
</text>
<text>
{{
getName
(
timeFlag
)
}}
获得积分
</text>
</view>
<view
class=
""
>
<text
style=
"color: #0A2F99;"
>
-222
</text>
<text>
{{
prePercent
}}
</text>
<text
style=
"color: #0A2F99;"
>
{{
prePercent
}}
%
</text>
<text>
比
{{
getInfo
(
timeFlag
)
}}
得分
</text>
</view>
</view>
<view
class=
"point_content"
>
...
...
@@ -51,7 +51,7 @@
<li>
获得积分
</li>
<li>
操作
</li>
</ul>
<ul
class=
"point_content_list"
v-for=
"pointItem in cffpFortuneDeductionList"
>
<ul
class=
"point_content_list"
v-for=
"pointItem in cffpFortuneDeductionList"
@
click=
"toPointDetail(pointItem)"
>
<li>
{{
pointItem
.
productTypeName
}}
</li>
<li>
{{
pointItem
.
commissionTypeName
}}
</li>
<li
class=
"get_point"
>
{{
pointItem
.
commissionAmount
}}
</li>
...
...
@@ -91,12 +91,19 @@
this
.
fortuneDate
=
e
.
detail
.
value
;
},
findByUserIdForFortuneStatistic
(){
// const param = {
// isDtl:2,
// userId:uni.getStorageSync('cffp_userId'),
// fortuneDate:this.fortuneDate,
// timeFlag:this.timeFlag
// }
const
param
=
{
isDtl
:
2
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
fortuneDate
:
this
.
fortuneDate
,
timeFlag
:
this
.
timeFlag
}
"isDtl"
:
2
,
"userId"
:
1
,
"fortuneDate"
:
"2022-11-01"
,
"timeFlag"
:
"D"
}
api
.
findByUserIdForFortuneStatistic
(
param
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
...
...
@@ -104,9 +111,36 @@
this
.
nowSumCommissionAmount
=
res
[
'data'
][
'nowSumCommissionAmount'
]
//当前(日月年)积分
this
.
prePercent
=
res
[
'data'
][
'prePercent'
]
//比前日、上月,上年多或少的百分比数据
this
.
yesExchangeFortune
=
res
[
'data'
][
'yesExchangeFortune'
]
//可兑换金额
this
.
cffpFortuneDeductionList
=
res
[
'data'
][
'cffpFortuneDeductionList'
]
;
this
.
cffpFortuneDeductionList
=
res
[
'data'
][
'cffpFortuneDeductionList'
]
}
})
},
getInfo
(
str
){
if
(
str
==
'D'
){
return
'上次'
;
}
if
(
str
==
'M'
){
return
'上月'
;
}
if
(
str
==
'Y'
){
return
'去年'
;
}
},
getName
(
str
){
if
(
str
==
'D'
){
return
'当日'
;
}
if
(
str
==
'M'
){
return
'当月'
;
}
if
(
str
==
'Y'
){
return
'当年'
;
}
},
toPointDetail
(
item
){
uni
.
navigateTo
({
url
:
`../myPoints/pointDetail`
})
}
}
}
...
...
@@ -195,9 +229,12 @@
align-items
:
center
;
height
:
70
rpx
;
li{
width
:
2
5
%
;
width
:
2
0
%
;
text-align
:
center
;
}
li
:nth-child
(
2
)
{
width
:
30%
;
}
.get_point
{
color
:
#FF0000
;
}
...
...
pages/myPoints/pointsDetail.vue
0 → 100644
View file @
7fc0eee6
<
template
>
<view
class=
"container"
>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
}
},
components
:{},
onLoad
(){
},
methods
:{
getDetail
(){
const
param
=
{
"isDtl"
:
1
,
"userId"
:
1
,
"fortuneDate"
:
"2022-12"
,
"timeFlag"
:
"M"
,
"commissionType"
:
"A01"
,
"productType"
:
1
}
}
}
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
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