Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
75953729
Commit
75953729
authored
Sep 20, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
9c82c1fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
57 deletions
+94
-57
pages.json
pages.json
+1
-2
myInfo.vue
pages/my/myInfo.vue
+3
-3
index.vue
setting/equityFundLog/index.vue
+90
-52
No files found.
pages.json
View file @
75953729
...
...
@@ -253,8 +253,7 @@
{
"path"
:
"equityFundLog/index"
,
"style"
:
{
"navigationBarTitleText"
:
"权益金详情"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"我的权益金"
,
"enablePullDownRefresh"
:
false
}
},
...
...
pages/my/myInfo.vue
View file @
75953729
...
...
@@ -248,14 +248,14 @@
</view>
</view>
<view
v-if=
"userInfo.consumerMember && userInfo.consumerMember.isRights"
class=
"item-box"
@
tap=
"onNavByPath('equityFundLog')"
>
<
!--
<
view
v-if=
"userInfo.consumerMember && userInfo.consumerMember.isRights"
class=
"item-box"
@
tap=
"onNavByPath('equityFundLog')"
>
<view
class=
"icon-img"
>
<image
:src=
"assetsPath+'/user/tool_4.png'"
mode=
"scaleToFill"
></image>
</view>
<view
class=
"text-box"
>
<text
class=
"text-gray"
>
收益明细
</text>
</view>
</view>
</view>
-->
<view
class=
"item-box"
@
tap=
"onNavByPath('payRecord')"
>
...
...
@@ -469,7 +469,7 @@
</view>
</uni-popup>
<LoginPop
ref=
"loginPop"
/>
<LoginPop
ref=
"loginPop"
@
success=
"onGetUserInfo"
/>
</view>
</
template
>
...
...
setting/equityFundLog/index.vue
View file @
75953729
<
template
>
<view
class=
"order-record"
>
<f-navbar
title=
"奖励金"
:isShowTransparentTitle=
"false"
:isShowLeft=
"true"
fontColor=
"#ffffff"
:fontSize=
"38"
bgColor=
"#E40583"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
<!--
<f-navbar
title=
"奖励金"
:isShowTransparentTitle=
"false"
:isShowLeft=
"true"
fontColor=
"#ffffff"
:fontSize=
"38"
bgColor=
"#E40583"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
-->
<
scroll-view
:enable-flex=
"true"
class=
"scroll-view"
scroll-y=
"true"
@
scroll=
"onScroll"
@
scrolltolower=
"onScrolltolower"
>
<
!--
<scroll-view
:enable-flex=
"true"
class=
"scroll-view"
scroll-y=
"true"
@
scroll=
"onScroll"
@
scrolltolower=
"onScrolltolower"
>
--
>
<view
class=
"content-box"
>
<view
class=
"header-content"
:style=
"
{paddingTop:statusBarHeight+'px' }">
<!--
<image
class=
"logo-bg"
:src=
"assetsPath +'/logo_v1.png'"
mode=
"widthFix"
></image>
-->
<view
class=
"flex-col avatar-box"
>
<view
class=
"avatar"
>
<image
:src=
"userInfo.avatar || assetsPath+'/logo_icon.png' "
mode=
"scaleToFill"
></image>
</view>
<view
class=
""
>
<text
class=
"text-white text-lg"
>
{{
userInfo
.
nickName
||
'凑角_'
+
userName
}}
</text>
</view>
<view
class=
"amount"
>
<text
class=
"text-bold text-white"
>
{{
userInfo
&&
userInfo
.
consumerWallet
&&
userInfo
.
consumerWallet
.
equityFund
?
(
userInfo
.
consumerWallet
.
equityFund
).
toFixed
(
2
)
:
'0.00'
}}
</text>
</view>
</view>
<view
class=
"flex-between part-list"
>
<view
class=
"flex-col"
>
<text
class=
"text-white text-sm"
>
累计收益
</text>
<text
class=
"text-bold text-white text-xl"
>
{{
userInfo
&&
userInfo
.
consumerWallet
&&
userInfo
.
consumerWallet
.
accumulateEquityFund
?
(
userInfo
.
consumerWallet
.
accumulateEquityFund
).
toFixed
(
2
)
:
'0.00'
}}
</text>
</view>
<view
class=
"flex-col"
>
<text
class=
"text-white text-sm"
>
绑定用户
</text>
<view
class=
"flex-row-center"
@
tap=
"onNavToUsers"
>
<text
class=
"text-bold text-white text-xl"
>
{{
countNum
}}
</text>
<text
class=
"cuIcon-right text-white text-xl"
></text>
</view>
</view>
</view>
<view
class=
"header-content"
>
<image
class=
"logo-bg"
:src=
"assetsPath +'/equity_bg.png'"
mode=
"scaleToFill"
></image>
<view
class=
"flex-col part-content"
>
<view
class=
"flex-col avatar-box"
>
<view
class=
"avatar"
>
<image
:src=
"userInfo.avatar || assetsPath+'/logo_icon.png' "
mode=
"scaleToFill"
></image>
</view>
<view
class=
""
>
<text
class=
"text-white text-lg"
>
{{
userInfo
.
nickName
||
'凑角_'
+
userName
}}
</text>
</view>
<view
class=
"amount"
>
<text
class=
"text-bold text-white"
>
{{
userInfo
&&
userInfo
.
consumerWallet
&&
userInfo
.
consumerWallet
.
equityFund
?
(
userInfo
.
consumerWallet
.
equityFund
).
toFixed
(
2
)
:
'0.00'
}}
</text>
<text
class=
"text-sm"
>
可提现
</text>
</view>
</view>
<view
class=
"flex-between part-list"
>
<view
class=
"flex-col"
>
<text
class=
"text-white text-sm"
>
累计收益
</text>
<text
class=
"text-bold text-white text-xl"
>
{{
userInfo
&&
userInfo
.
consumerWallet
&&
userInfo
.
consumerWallet
.
accumulateEquityFund
?
(
userInfo
.
consumerWallet
.
accumulateEquityFund
).
toFixed
(
2
)
:
'0.00'
}}
</text>
</view>
<view
class=
"flex-col"
>
<text
class=
"text-white text-sm"
>
绑定用户
</text>
<view
class=
"flex-row-center"
@
tap=
"onNavToUsers"
>
<text
class=
"text-bold text-white text-xl"
>
{{
countNum
}}
</text>
<text
class=
"cuIcon-right text-white text-xl"
></text>
</view>
</view>
</view>
</view>
<view
class=
"btn-box"
>
<button
class=
"cu-btn round bg-white"
@
tap=
"onConfirm"
>
立即提现
</button>
...
...
@@ -42,7 +45,7 @@
</view>
<view
class=
"content-list"
>
<view
v-if=
"list && list.length"
class=
"padding-sm"
>
<view
class=
"padding-sm"
>
<text
class=
"text-title text-lg text-black"
>
权益金入账信息
</text>
</view>
<view
class=
"list-content"
>
...
...
@@ -65,9 +68,9 @@
<view
class=
"flex-between"
>
<text
class=
""
>
说明:
</text>
<text
class=
"text-black"
>
好友
<text
class=
"text-bold"
>
{{
item
.
newNickName
||
'凑角用户'
}}
_
{{
item
.
phone4Last
}}
</text>
进行
<text
class=
"text-bold"
>
{{
equityFundTypeEnum
[
item
.
equityFundType
]
}}
</text>
后返现
</text>
<text
class=
"text-black"
><text
class=
"text-bold"
>
{{
item
.
newNickName
||
'凑角用户'
}}
_
{{
item
.
phone4Last
}}
</text>
进行
<text
class=
"text-bold"
>
{{
equityFundTypeEnum
[
item
.
equityFundType
]
}}
</text></text>
</view>
...
...
@@ -84,7 +87,7 @@
</view>
</view>
</view>
<
/scroll-view
>
<
!--
</scroll-view>
--
>
</view>
</
template
>
...
...
@@ -121,7 +124,7 @@
scrollTop
:
0
,
queryParams
:
{
pageNum
:
1
,
pageSize
:
5
pageSize
:
10
},
equityFundTypeEnum
:
{
0
:
"金额充值"
,
...
...
@@ -150,6 +153,12 @@
this
.
onGetDicts
()
this
.
onEquityBindUser
()
},
onReachBottom
()
{
if
(
this
.
status
==
'loadmore'
)
{
this
.
queryParams
.
pageNum
+=
1
;
this
.
onLoading
();
}
},
methods
:
{
onScrolltolower
(){
if
(
this
.
status
==
'loadmore'
)
{
...
...
@@ -188,13 +197,13 @@
let
dicts
=
[]
if
(
uni
.
getStorageSync
(
'dicts'
))
{
dicts
=
JSON
.
parse
(
uni
.
getStorageSync
(
'dicts'
))
this
.
orderStatusEnum
=
getDictItem
(
dicts
,
"store_order_status
"
);
this
.
equityFundTypeEnum
=
getDictItem
(
dicts
,
"equity_fund_type
"
);
this
.
onLoading
()
}
else
{
dictList
().
then
(
res
=>
{
dicts
=
res
.
data
.
data
;
uni
.
setStorageSync
(
'dicts'
,
JSON
.
stringify
(
res
.
data
.
data
))
this
.
orderStatusEnum
=
getDictItem
(
dicts
,
"store_order_status
"
);
this
.
equityFundTypeEnum
=
getDictItem
(
dicts
,
"equity_fund_type
"
);
this
.
onLoading
()
})
}
...
...
@@ -212,7 +221,7 @@
let
list
=
res
.
data
.
rows
.
map
(
item
=>
{
return
{
...
item
,
phone4Last
:
item
.
new
Account
.
slice
(
-
4
)
phone4Last
:
item
.
new
Phone
.
slice
(
-
4
)
}
})
...
...
@@ -298,25 +307,35 @@
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
min-height
:
400
upx
;
background
:
linear-gradient
(
to
right
,
#FB406F
,
#E40583
);
//
background
:
linear-gradient
(
to
right
,
#FB406F
,
#E40583
);
.logo-bg
{
width
:
380
upx
;
max-height
:
280
upx
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
.part-content
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
z-index
:
4
;
}
.avatar-box
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
margin-top
:
16
upx
;
.avatar{
border
:
2px
solid
rgba
(
255
,
255
,
255
,
0.8
);
width
:
5
2
px
;
height
:
5
2
px
;
border
:
2px
solid
rgba
(
255
,
255
,
255
,
1
);
width
:
5
4
px
;
height
:
5
4
px
;
border-radius
:
50%
;
overflow
:
hidden
;
box-shadow
:
0
0
6
upx
#f1f1f1
;
background
:
#e4e4e4
;
image{
display
:
block
;
width
:
100%
;
...
...
@@ -324,15 +343,23 @@
}
}
.amount
{
margin-top
:
16
upx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
margin-top
:
4
upx
;
text{
font-size
:
60
upx
;
font-size
:
52
upx
;
}
.text-sm
{
font-size
:
20
upx
;
color
:
#f1f1f1
;
}
}
}
.part-list
{
width
:
100%
;
padding
:
0
24
upx
12
upx
;
padding
:
0
24
upx
8
upx
;
.flex-col{
justify-content
:
center
;
align-items
:
center
;
...
...
@@ -341,12 +368,19 @@
.btn-box
{
position
:
absolute
;
left
:
0
;
bottom
:
-
16
px
;
bottom
:
-
32
u
px
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
.cu-btn{
box-shadow
:
0
4
upx
4
upx
#E40583
;
display
:
inline-block
;
width
:
230
upx
;
line-height
:
64
upx
;
background
:
linear-gradient
(
0deg
,
#E03997
4%
,
#FF375D
92%
);
border-radius
:
32
upx
;
font-weight
:
600
;
font-size
:
30
upx
;
color
:
#FFFFFF
;
}
}
}
...
...
@@ -414,4 +448,7 @@
width
:
0
;
border-left
:
2
upx
solid
#e5e5e5
;
}
.empty-box
{
margin-top
:
32
upx
;
}
</
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