Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
c75d5631
Commit
c75d5631
authored
May 11, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的钱包
parent
9d0fd03b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
625 additions
and
167 deletions
+625
-167
settlement.vue
src/components/mine/settlement.vue
+99
-0
statement.vue
src/components/mine/statement.vue
+135
-0
pages.json
src/pages.json
+10
-0
index.vue
src/pages/mine/wallet/index.vue
+246
-167
settlement.vue
src/pages/mine/wallet/settlement.vue
+34
-0
statement.vue
src/pages/mine/wallet/statement.vue
+37
-0
withdraw.vue
src/pages/mine/wallet/withdraw.vue
+64
-0
No files found.
src/components/mine/settlement.vue
0 → 100644
View file @
c75d5631
<
template
>
<view
class=
"settlement-view"
>
<view
class=
"left-view"
>
<view
class=
"time-view"
></view>
<view
class=
"order-view"
v-for=
"(value, key) in items"
:key=
"key"
>
<text>
{{
value
}}
:
</text>
<text>
{{
data
[
key
]
}}
</text>
</view>
</view>
<view
class=
"right-view"
>
<view
:class=
"settlementTypeClass"
>
{{
data
.
payableRecordStatusText
}}
</view>
<view
class=
"settlement-amount-view"
>
{{
data
.
payableAmount
}}
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
()
{
return
{
paymentTime
:
'今天'
,
payableAmount
:
'yingfu'
,
payableRecordNumber
:
'EE999777'
,
payableAmount
:
9899
}
}
}
},
data
()
{
return
{
}
},
computed
:
{
items
()
{
return
{
payableRecordNumber
:
'工单编号'
,
businessType
:
'工单类型'
}
},
settlementTypeClass
()
{
switch
(
this
.
data
){
case
'预计'
:
return
'settlement-type-y'
case
'已确认'
:
return
'settlement-type-h'
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.settlement-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-start
;
padding
:
30rpx
;
.left-view
{
.time-view
{
height
:
40rpx
;
color
:
#333333
;
background-color
:
#F4F5F7
;
border-radius
:
8rpx
;
font-size
:
20rpx
;
}
.order-view
{
font-size
:
26rpx
;
color
:
#999999
;
}
}
.right-view
{
.settlement-type-y
{
border-radius
:
8rpx
;
border
:
2rpx
solid
#FF930D
;
font-size
:
20rpx
;
color
:
#FF930D
;
}
.settlement-type-h
{
border-radius
:
8rpx
;
border
:
2rpx
solid
#2272FF
;
font-size
:
20rpx
;
color
:
#2272FF
;
}
.settlement-amount-view
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#2272FF
;
}
}
}
</
style
>
src/components/mine/statement.vue
0 → 100644
View file @
c75d5631
<
template
>
<view
class=
"statement-view"
>
<view
class=
"statement-com-view"
>
<view
class=
"left-view"
>
<view
class=
"time-view"
>
{{
timeText
}}
</view>
<view
class=
"order-view"
>
<text>
工单编号:
</text>
<text>
{{
data
.
orderNumber
}}
</text>
</view>
<view
class=
"order-view"
>
<text>
工单类型:
</text>
<text>
{{
typeText
}}
</text>
</view>
</view>
<view
class=
"right-view"
>
<view
:class=
"['statement-status-view', statementTypeClass]"
>
{{
data
.
payableRecordStatusText
}}
</view>
<view
class=
"statement-amount-view"
>
+
{{
data
.
payableAmount
}}
</view>
</view>
</view>
<view
class=
"line-view"
></view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
()
{
return
{
paymentTime
:
new
Date
().
getTime
(),
payableRecordStatusText
:
'预结'
,
orderNumber
:
'EE999777'
,
orderServiceType
:
'安装'
,
inGuaranteePeriod
:
false
,
// true 保内;false 保外
payableAmount
:
9899
}
}
}
},
data
()
{
return
{
}
},
computed
:
{
statementTypeClass
()
{
switch
(
this
.
data
.
payableRecordStatusText
){
case
'预结'
:
return
'statement-type-y'
case
'已确认'
:
return
'statement-type-h'
}
},
typeText
()
{
return
(
this
.
data
.
inGuaranteePeriod
?
'保内'
:
'保外'
)
+
'-'
+
this
.
data
.
orderServiceType
},
timeText
()
{
return
this
.
$u
.
timeFormat
(
this
.
data
.
paymentTime
,
'mm.dd'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.statement-view
{
height
:
212rpx
;
.statement-com-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-start
;
padding
:
30rpx
;
.left-view
{
.time-view
{
height
:
40rpx
;
width
:
80rpx
;
color
:
#333333
;
background-color
:
#F4F5F7
;
border-radius
:
8rpx
;
font-size
:
20rpx
;
margin-bottom
:
10rpx
;
text-align
:
center
;
padding-top
:
6rpx
;
}
.order-view
{
font-size
:
26rpx
;
color
:
#999999
;
margin-bottom
:
6rpx
;
}
}
.right-view
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-end
;
margin-top
:
6rpx
;
.statement-status-view
{
border-radius
:
8rpx
;
border
:
2rpx
solid
#FF930D
;
font-size
:
20rpx
;
color
:
#FF930D
;
width
:
80rpx
;
height
:
40rpx
;
text-align
:
center
;
padding-top
:
4rpx
;
&
.statement-type-y
{
border
:
2rpx
solid
#FF930D
;
color
:
#FF930D
;
}
&
.statement-type-h
{
border
:
2rpx
solid
#2272FF
;
color
:
#2272FF
;
}
}
.statement-amount-view
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#2272FF
;
margin-top
:
20rpx
;
}
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin
:
0
30rpx
;
}
}
</
style
>
src/pages.json
View file @
c75d5631
...
@@ -167,6 +167,16 @@
...
@@ -167,6 +167,16 @@
"navigationBarBackgroundColor"
:
"#F4F5F7"
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
}
},
},
{
"path"
:
"wallet/withdraw"
,
"style"
:
{
"navigationBarTitleText"
:
"提现"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
},
{
{
"path"
:
"cert/list"
,
"path"
:
"cert/list"
,
"style"
:
{
"style"
:
{
...
...
src/pages/mine/wallet/index.vue
View file @
c75d5631
<
template
>
<
template
>
<view
class=
"wallet-view"
>
<view
class=
"wallet-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"我的钱包"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"我的钱包"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
<view
class=
"wallet-content-view"
>
<image
class=
"header-image"
mode=
"widthFix"
:src=
"qianbaobeijing"
></image>
<image
class=
"header-image"
mode=
"widthFix"
:src=
"qianbaobeijing"
></image>
<view
class=
"survey-view"
>
<view
class=
"survey-view"
>
<view
class=
"survey-top-view"
>
<view
class=
"survey-top-view"
>
<view
class=
"survey-top-left"
>
<view
class=
"survey-top-left"
>
<view>
账户总资产(元)
</view>
<view>
账户总资产(元)
</view>
<view>
{{
info
.
totalPayAmount
}}
</view>
<view
class=
"survey-top-account"
>
{{
info
.
totalPayAmount
}}
</view>
</view>
</view>
<view
class=
"survey-top-right"
>
<view
class=
"survey-top-right"
>
<u-button>
提现
</u-button>
<u-button
type=
"primary"
shape=
"circle"
:custom-style=
"buttonStyle"
@
click=
"handleClickWithdraw"
>
提现
</u-button>
</view>
</view>
</view>
</view>
<view
class=
"survey-bottom-view"
>
<view
class=
"survey-bottom-view"
>
<view
v-for=
"(value, key) in items"
:key=
"key"
>
<view
v-for=
"(value, key) in items"
:key=
"key"
>
<view>
{{
value
}}
</view>
<view>
{{
value
}}
</view>
<view>
{{
info
[
key
]
}}
</view>
<view
class=
"survey-bottom-account"
>
{{
info
[
key
]
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
v-for=
"(item, index) in lists"
:class=
"['content-list',
{'first': index==0}]" :key="index">
<view
v-for=
"(item, index) in lists"
:class=
"['content-list',
{'first': index==0}]" :key="index"
@click="handleClick(index)">
<view
class=
"content-list-left"
>
<view
class=
"content-list-left"
>
<image
class=
"content-list-image"
:src=
"item.icon"
></image>
<image
class=
"content-list-image"
:src=
"item.icon"
></image>
<view
class=
"content-list-text"
>
<view
class=
"content-list-text"
>
...
@@ -34,25 +38,32 @@
...
@@ -34,25 +38,32 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"list-view"
>
<view
class=
"list-view"
>
<view
v-for=
"(item, index) in statementList"
:key=
"index"
>
<Statement
:data=
"item"
></Statement>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
Statement
from
"@/components/mine/statement.vue"
export
default
{
export
default
{
components
:
{
Statement
},
data
()
{
data
()
{
return
{
return
{
info
:
{
info
:
{
canApplyAmount
:
0
,
// 可提现金额
canApplyAmount
:
0
,
// 可提现金额
saveApplyCount
:
0
,
// 已申请提现的支付单数
saveApplyCount
:
0
,
// 已申请提现的支付单数
canApplyCount
:
0
,
// 可申请提现的支付单数
canApplyCount
:
0
,
// 可申请提现的支付单数
saveAndApplyAmount
:
0
,
// 已申请提现金额
totalPayAmount
:
0
,
// 总共收入
totalPayAmount
:
0
,
// 总共收入
/* 还没对字段名 */
saveAndApplyAmount
:
0
,
// 预计待入账
dairuzhang
:
0
,
// 预计待入账
},
}
statementList
:
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -61,14 +72,17 @@
...
@@ -61,14 +72,17 @@
title
:
'结算账单'
,
title
:
'结算账单'
,
content
:
'展示您已提现的账单信息'
,
content
:
'展示您已提现的账单信息'
,
icon
:
this
.
imageUrl
+
'jiesuan.png'
icon
:
this
.
imageUrl
+
'jiesuan.png'
},
{
},
{
title
:
'收入流水'
,
title
:
'收入流水'
,
content
:
'当前展示最近5条,点击查看全部'
,
content
:
'当前展示最近5条,点击查看全部'
,
icon
:
this
.
imageUrl
+
'liushui.png'
icon
:
this
.
imageUrl
+
'liushui.png'
}]
}]
},
},
items
()
{
items
()
{
return
{
canApplyAmount
:
'可提现(元)'
,
dairuzhang
:
'预计待入账(元)'
}
return
{
canApplyAmount
:
'可提现(元)'
,
saveAndApplyAmount
:
'预计待入账(元)'
}
},
},
imageUrl
()
{
imageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
return
process
.
uniEnv
.
qn_base_url
...
@@ -76,82 +90,139 @@
...
@@ -76,82 +90,139 @@
qianbaobeijing
()
{
qianbaobeijing
()
{
return
this
.
imageUrl
+
'qianbaobeijing.png'
return
this
.
imageUrl
+
'qianbaobeijing.png'
},
},
buttonStyle
()
{
return
{
width
:
"200rpx"
,
height
:
"80rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
'background-color'
:
'#FFFFFF'
,
'color'
:
'#2272FF'
,
'margin-bottom'
:
'20rpx'
};
},
},
created
()
{
var
item
=
{
paymentTime
:
new
Date
().
getTime
(),
payableRecordStatusText
:
'预结'
,
orderNumber
:
'EE999777'
,
orderServiceType
:
'安装'
,
inGuaranteePeriod
:
false
,
// true 保内;false 保外
payableAmount
:
9899
}
this
.
statementList
=
[
item
,
item
,
item
,
item
,
item
]
},
},
methods
:
{
methods
:
{
// 提现
handleClickWithdraw
()
{
},
handleClick
(
index
)
{
console
.
log
(
index
)
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.wallet-view
{
.wallet-view
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
height
:
100vh
;
.wallet-content-view
{
position
:
relative
;
overflow
:
auto
;
overflow
:
auto
;
background-color
:
#F4F5F7
;
background-color
:
#F4F5F7
;
overflow
:
auto
;
.header-image
{
.header-image
{
position
:
absolute
;
position
:
absolute
;
width
:
100%
;
width
:
100%
;
margin-left
:
4rpx
;
margin-left
:
4rpx
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
}
}
.survey-view
{
.survey-view
{
position
:
relative
;
position
:
relative
;
height
:
400rpx
;
height
:
400rpx
;
margin
:
30rpx
30rpx
10rpx
30rpx
;
margin
:
30rpx
30rpx
10rpx
30rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
padding
:
30rpx
;
padding
:
30rpx
;
.survey-top-view
{
.survey-top-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
flex-end
;
align-items
:
flex-end
;
.survey-top-left
{
.survey-top-left
{
font-size
:
28rpx
;
.survey-top-account
{
font-size
:
72rpx
;
font-weight
:
bold
;
margin-top
:
6rpx
;
}
}
.survey-top-right
{
}
}
.survey-top-right
{}
}
}
.survey-bottom-view
{
.survey-bottom-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
24rpx
;
margin-top
:
60rpx
;
.survey-bottom-account
{
margin-top
:
6rpx
;
font-size
:
40rpx
;
font-weight
:
bold
;
}
}
}
}
}
.content-view
{
.content-view
{
position
:
relative
;
position
:
relative
;
padding
:
0
30rpx
;
padding
:
0
30rpx
;
.content-list
{
.content-list
{
height
:
140rpx
;
height
:
140rpx
;
border-radius
:
12rpx
;
border-radius
:
12rpx
12rpx
0
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
30rpx
;
padding
:
30rpx
;
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
&
.first
{
&
.first
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
border-radius
:
12rpx
;
}
}
.content-list-left
{
.content-list-left
{
display
:
flex
;
display
:
flex
;
.content-list-image
{
.content-list-image
{
width
:
56rpx
;
width
:
56rpx
;
height
:
56rpx
;
height
:
56rpx
;
margin-top
:
2rpx
;
margin-top
:
2rpx
;
}
}
.content-list-text
{
.content-list-text
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#666666
;
color
:
#666666
;
margin-left
:
20rpx
;
margin-left
:
20rpx
;
.content-list-text-title
{
.content-list-text-title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#333333
;
color
:
#333333
;
}
}
}
}
}
}
.content-list-right
{
.content-list-right
{
color
:
#2272FF
;
color
:
#2272FF
;
font-size
:
26rpx
;
font-size
:
26rpx
;
.content-list-right-text
{
.content-list-right-text
{
margin-right
:
4rpx
;
margin-right
:
4rpx
;
}
}
...
@@ -159,11 +230,19 @@
...
@@ -159,11 +230,19 @@
}
}
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin
:
0
30rpx
;
}
.list-view
{
.list-view
{
position
:
relative
;
position
:
relative
;
background-color
:
#FFFFFF
;
margin
:
0rpx
30rpx
30rpx
30rpx
;
padding-bottom
:
30rpx
;
border-radius
:
0
0
12rpx
12rpx
;
}
}
}
}
}
</
style
>
</
style
>
src/pages/mine/wallet/settlement.vue
0 → 100644
View file @
c75d5631
<
template
>
<view
class=
"statement-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"结算账单"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
()
{
return
{
paymentTime
:
'已结算金额'
,
}
}
}
},
data
()
{
return
{
}
},
computed
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.statement-view
{
}
</
style
>
src/pages/mine/wallet/statement.vue
0 → 100644
View file @
c75d5631
<
template
>
<view
class=
"statement-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"我的钱包"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
()
{
return
{
paymentTime
:
'预结'
,
payableRecordStatusText
:
'已确认'
,
payableRecordNumber
:
'订单数'
,
statementList
:
[]
// count是总数
}
}
}
},
data
()
{
return
{
}
},
computed
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.statement-view
{
}
</
style
>
src/pages/mine/wallet/withdraw.vue
0 → 100644
View file @
c75d5631
<
template
>
<view
class=
"withdraw-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"提现"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
<view
class=
"withdraw-content"
>
<view></view>
<view></view>
<u-button
type=
"primary"
shape=
"circle"
:custom-style=
"buttonStyle"
@
click=
"handleClick"
>
提现
</u-button>
<view
class=
"line-view"
></view>
<view
class=
"rule-title"
>
提现规则说明
</view>
<view
class=
"rule-content"
>
1.提现金额:提现金额是指已完工订单通过平台审核后且达到合同账期的订单费用之总和。
</view>
<view
class=
"rule-content"
>
2.提现到账时间为1-3个工作日,最终以银行结果为准
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
amount
:
0
}
},
computed
:
{
buttonStyle
()
{
return
{
width
:
"400rpx"
,
height
:
"104rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
};
},
},
methods
:
{
handleClick
()
{
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.withdraw-view
{
height
:
100vh
;
background-color
:
#F4F5F7
;
.withdraw-content
{
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
padding
:
100rpx
30rpx
;
.line-view
{
}
.rule-title
{
}
.rule-content
{
}
}
}
</
style
>
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