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
f5b27e19
Commit
f5b27e19
authored
May 11, 2021
by
Morson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
430724e1
574c030c
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1099 additions
and
191 deletions
+1099
-191
contract.js
src/common/api/contract.js
+18
-0
index.js
src/common/api/index.js
+4
-1
settlement.vue
src/components/mine/settlement.vue
+140
-0
statement.vue
src/components/mine/statement.vue
+143
-0
index.vue
src/components/order/index.vue
+3
-3
pages.json
src/pages.json
+45
-5
index.vue
src/pages/index/index.vue
+14
-6
learn.vue
src/pages/index/learn.vue
+2
-2
order.vue
src/pages/index/order.vue
+1
-1
index.vue
src/pages/mine/contract/index.vue
+65
-8
index.vue
src/pages/mine/wallet/index.vue
+255
-164
settlement.vue
src/pages/mine/wallet/settlement.vue
+145
-0
statement.vue
src/pages/mine/wallet/statement.vue
+161
-0
withdraw.vue
src/pages/mine/wallet/withdraw.vue
+100
-0
detail.vue
src/pages/order/detail.vue
+3
-1
No files found.
src/common/api/contract.js
0 → 100644
View file @
f5b27e19
const
globalUrl
=
process
.
uniEnv
||
{}
const
ucenterApiUrl
=
globalUrl
.
ucenterUrl
.
apiUrl
const
collegeApiUrl
=
globalUrl
.
ucenterUrl
.
xueUrl
const
testApiUrl
=
globalUrl
.
systemUrl
.
apiUrl
let
contractApiFun
=
function
(
vm
){
//我的合同//
Mycontract
=
async
(
params
)
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled-contract/info'
+
'?Authorization='
+
vm
.
vuex_token
+
params
)
const
contract
=
{
Mycontract
}
return
contract
}
module
.
exports
=
{
contractApiFun
}
src/common/api/index.js
View file @
f5b27e19
...
@@ -11,6 +11,7 @@ import {learnApiFun} from "@/common/api/learn.js";
...
@@ -11,6 +11,7 @@ import {learnApiFun} from "@/common/api/learn.js";
import
{
orderApiFun
}
from
"@/common/api/order.js"
;
import
{
orderApiFun
}
from
"@/common/api/order.js"
;
import
{
assessmentApiFun
}
from
"@/common/api/assessment.js"
import
{
assessmentApiFun
}
from
"@/common/api/assessment.js"
import
{
certApiFun
}
from
"@/common/api/cert.js"
import
{
certApiFun
}
from
"@/common/api/cert.js"
import
{
contractApiFun
}
from
"@/common/api/contract.js"
let
apiFun
=
function
(
vm
)
{
let
apiFun
=
function
(
vm
)
{
let
commonApi
=
commonApiFun
(
vm
);
let
commonApi
=
commonApiFun
(
vm
);
let
settledApi
=
settledApiFun
(
vm
)
let
settledApi
=
settledApiFun
(
vm
)
...
@@ -19,6 +20,7 @@ let apiFun = function(vm) {
...
@@ -19,6 +20,7 @@ let apiFun = function(vm) {
let
assessmentApi
=
assessmentApiFun
(
vm
)
let
assessmentApi
=
assessmentApiFun
(
vm
)
let
orderApi
=
orderApiFun
(
vm
)
let
orderApi
=
orderApiFun
(
vm
)
let
certApi
=
certApiFun
(
vm
)
let
certApi
=
certApiFun
(
vm
)
let
contractApi
=
contractApiFun
(
vm
)
let
apiUrl
=
{
let
apiUrl
=
{
...
commonApi
,
...
commonApi
,
...
settledApi
,
...
settledApi
,
...
@@ -26,7 +28,8 @@ let apiFun = function(vm) {
...
@@ -26,7 +28,8 @@ let apiFun = function(vm) {
...
learnApi
,
...
learnApi
,
...
orderApi
,
...
orderApi
,
...
assessmentApi
,
...
assessmentApi
,
...
certApi
...
certApi
,
...
contractApi
}
}
return
apiUrl
return
apiUrl
}
}
...
...
src/components/mine/settlement.vue
0 → 100644
View file @
f5b27e19
<
template
>
<view
class=
"settlement-view"
>
<view
class=
"settlement-com-view"
@
click=
"$u.throttle(handleClick, 500)"
>
<view
class=
"left-view"
>
<view
class=
"time-view"
>
{{
timeText
}}
</view>
<view
class=
"order-view"
>
<text>
提现编号:
</text>
<text>
{{
data
.
payableRecordNumber
}}
</text>
</view>
</view>
<view
class=
"right-view"
>
<view
:class=
"['settlement-status-view', settlementTypeClass]"
>
{{
data
.
payableRecordStatusText
}}
</view>
<view
class=
"settlement-amount-view"
>
-
{{
data
.
settlementAmount
}}
</view>
</view>
</view>
<view
class=
"line-view"
></view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
()
{
return
{
paymentTime
:
new
Date
().
getTime
(),
payableRecordStatusText
:
'提现'
,
payableRecordNumber
:
'EE999777'
,
settlementAmount
:
9899
}
}
}
},
data
()
{
return
{
}
},
computed
:
{
items
()
{
return
{
payableRecordNumber
:
'工单编号'
,
businessType
:
'工单类型'
}
},
settlementTypeClass
()
{
switch
(
this
.
data
)
{
case
'提现'
:
return
'settlement-type-y'
case
'其他'
:
return
'settlement-type-h'
}
},
timeText
()
{
return
this
.
$u
.
timeFormat
(
this
.
data
.
paymentTime
,
'mm.dd'
)
}
},
methods
:
{
handleClick
()
{
this
.
$emit
(
'click'
,
this
.
data
.
orderId
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.settlement-view
{
height
:
212rpx
;
.settlement-com-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-start
;
padding
:
30rpx
;
height
:
210rpx
;
.left-view
{
.time-view
{
height
:
40rpx
;
width
:
80rpx
;
color
:
#333333
;
background-color
:
#F4F5F7
;
border-radius
:
8rpx
;
font-size
:
20rpx
;
margin-bottom
:
40rpx
;
text-align
:
center
;
padding-top
:
6rpx
;
}
.order-view
{
font-size
:
26rpx
;
color
:
#999999
;
}
}
.right-view
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-end
;
.settlement-status-view
{
border-radius
:
8rpx
;
border
:
2rpx
solid
#FF930D
;
font-size
:
20rpx
;
color
:
#FF930D
;
width
:
80rpx
;
height
:
40rpx
;
text-align
:
center
;
padding-top
:
4rpx
;
margin-right
:
10rpx
;
&
.settlement-type-y
{
border
:
2rpx
solid
#FF930D
;
color
:
#FF930D
;
}
&
.settlement-type-h
{
border
:
2rpx
solid
#2272FF
;
color
:
#2272FF
;
}
}
.settlement-amount-view
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#FA5A49
;
margin-top
:
30rpx
;
}
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin
:
0
30rpx
;
}
}
</
style
>
src/components/mine/statement.vue
0 → 100644
View file @
f5b27e19
<
template
>
<view
class=
"statement-view"
>
<view
class=
"statement-com-view"
@
click=
"$u.throttle(handleClick, 500)"
>
<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>
</
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'
)
}
},
methods
:{
handleClick
()
{
this
.
$emit
(
'click'
,
this
.
data
.
orderId
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.statement-view
{
height
:
212rpx
;
.statement-com-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-start
;
padding
:
30rpx
;
height
:
210rpx
;
.left-view
{
.time-view
{
height
:
40rpx
;
width
:
80rpx
;
color
:
#333333
;
background-color
:
#F4F5F7
;
border-radius
:
8rpx
;
font-size
:
20rpx
;
margin-bottom
:
20rpx
;
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
;
.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
:
30rpx
;
}
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin
:
0
30rpx
;
}
}
</
style
>
src/components/order/index.vue
View file @
f5b27e19
...
@@ -234,11 +234,11 @@
...
@@ -234,11 +234,11 @@
}
else
{
}
else
{
this
.
orderType
=
1
this
.
orderType
=
1
}
}
}
else
if
(
this
.
orderData
.
orderStatus
>
31
&&
this
.
orderData
.
orderStatus
<
80
)
{
}
else
if
(
this
.
orderData
.
orderStatus
>
31
||
this
.
orderData
.
orderStatus
<
80
)
{
this
.
orderType
=
3
this
.
orderType
=
3
}
else
if
(
this
.
orderData
.
orderStatus
==
85
&&
this
.
orderData
.
orderStatus
==
87
)
{
}
else
if
(
this
.
orderData
.
orderStatus
==
85
||
this
.
orderData
.
orderStatus
==
87
)
{
this
.
orderType
=
4
this
.
orderType
=
4
}
else
if
(
this
.
orderData
.
orderStatus
==
86
&&
this
.
orderData
.
orderStatus
==
88
)
{
}
else
if
(
this
.
orderData
.
orderStatus
==
86
||
this
.
orderData
.
orderStatus
==
88
)
{
this
.
orderType
=
5
this
.
orderType
=
5
}
else
if
([
80
,
81
,
89
,
110
].
indexOf
(
this
.
orderData
.
orderStatus
)
!=
-
1
)
{
}
else
if
([
80
,
81
,
89
,
110
].
indexOf
(
this
.
orderData
.
orderStatus
)
!=
-
1
)
{
this
.
orderType
=
6
this
.
orderType
=
6
...
...
src/pages.json
View file @
f5b27e19
...
@@ -167,6 +167,36 @@
...
@@ -167,6 +167,36 @@
"navigationBarBackgroundColor"
:
"#F4F5F7"
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
}
},
},
{
"path"
:
"wallet/withdraw"
,
"style"
:
{
"navigationBarTitleText"
:
"提现"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
},
{
"path"
:
"wallet/statement"
,
"style"
:
{
"navigationBarTitleText"
:
"收入流水"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
},
{
"path"
:
"wallet/settlement"
,
"style"
:
{
"navigationBarTitleText"
:
"结算账单"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
},
{
{
"path"
:
"cert/index"
,
"path"
:
"cert/index"
,
"style"
:
{
"style"
:
{
...
@@ -182,6 +212,13 @@
...
@@ -182,6 +212,13 @@
}
}
},
},
{
{
"path"
:
"contract/index"
,
"style"
:{
"navigationBarTitleText"
:
""
,
//我的合同
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"customer/index"
,
"path"
:
"customer/index"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
...
@@ -205,7 +242,10 @@
...
@@ -205,7 +242,10 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
]
]
},
},
{
{
"root"
:
"pages/order"
,
"root"
:
"pages/order"
,
...
@@ -467,11 +507,11 @@
...
@@ -467,11 +507,11 @@
"name"
:
"学习 - 首页"
,
//模式名称
"name"
:
"学习 - 首页"
,
//模式名称
"path"
:
"pages/index/learn"
,
//启动页面,必选
"path"
:
"pages/index/learn"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
},
{
{
"name"
:
"我的 - 我的证件 - 列表"
,
//模式名称
"name"
:
"我的 - 我的证件 - 列表"
,
//模式名称
"path"
:
"pages/mine/cert/index"
,
//启动页面,必选
"path"
:
"pages/mine/cert/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}
}
]
]
}
}
...
...
src/pages/index/index.vue
View file @
f5b27e19
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
<view
class=
"msg-view"
>
<view
class=
"msg-view"
>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-list-view"
>
<view
class=
"msg-list-view"
>
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
>
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
@
click=
"toNewsDetail(item)"
>
<view
class=
"msg-content-view"
>
<view
class=
"msg-content-view"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.
content_type
]"
></image>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.
is_top
]"
></image>
<text
class=
"msg-text"
>
{{
item
.
title
}}
</text>
<text
class=
"msg-text"
>
{{
item
.
title
}}
</text>
</view>
</view>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
msgStyleImage
()
{
msgStyleImage
()
{
return
{
return
{
'1'
:
process
.
uniEnv
.
qn_base_url
+
"zhiding.png"
,
// 置顶
'1'
:
process
.
uniEnv
.
qn_base_url
+
"zhiding.png"
,
// 置顶
'
2
'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
'
0
'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
'3'
:
process
.
uniEnv
.
qn_base_url
+
"xiaoxi.png"
,
// 消息
//
'3': process.uniEnv.qn_base_url + "xiaoxi.png", // 消息
}
}
},
},
bannerImage
()
{
bannerImage
()
{
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
self
.
orderList
=
[]
self
.
orderList
=
[]
}
}
self
.
orderList
.
push
(...
res
.
data
.
list
);
self
.
orderList
.
push
(...
res
.
data
.
list
);
self
.
currentLoadStatus
=
res
.
data
.
total
>
self
.
orderList
.
length
?
'loadmore'
:
'nomore'
self
.
currentLoadStatus
=
res
.
data
.
total
>
self
.
orderList
.
length
&&
res
.
data
.
list
.
length
==
self
.
search
.
pageSize
?
'loadmore'
:
'nomore'
}
}
}
else
{
}
else
{
...
@@ -407,7 +407,15 @@
...
@@ -407,7 +407,15 @@
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
}
}
});
});
},
},
toNewsDetail
(
item
)
{
wx
.
navigateTo
({
url
:
'/pages/learn/news-details'
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
item
)
}
});
}
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/index/learn.vue
View file @
f5b27e19
...
@@ -744,7 +744,7 @@
...
@@ -744,7 +744,7 @@
.notice
{
.notice
{
/* border: #808080 solid 2rpx; */
/* border: #808080 solid 2rpx; */
width
:
100%
;
width
:
100%
;
height
:
370
rpx
;
min-
height
:
370
rpx
;
margin-top
:
36
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
...
@@ -868,7 +868,7 @@
...
@@ -868,7 +868,7 @@
}
}
swiper
{
swiper
{
height
:
920
rpx
;
height
:
65vh
;
}
}
.line-percent
{
.line-percent
{
...
...
src/pages/index/order.vue
View file @
f5b27e19
...
@@ -264,7 +264,7 @@
...
@@ -264,7 +264,7 @@
if
(
self
.
list
[
self
.
types
[
res
.
data
.
type
]])
{
if
(
self
.
list
[
self
.
types
[
res
.
data
.
type
]])
{
self
.
list
[
self
.
types
[
res
.
data
.
type
]].
total
=
res
.
data
.
total
self
.
list
[
self
.
types
[
res
.
data
.
type
]].
total
=
res
.
data
.
total
}
}
self
.
loadStatus
=
res
.
data
.
total
>
self
.
orderList
.
length
?
'loadmore'
:
'nomore'
self
.
loadStatus
=
res
.
data
.
total
>
self
.
orderList
.
length
&&
res
.
data
.
list
.
length
==
self
.
pageSize
?
'loadmore'
:
'nomore'
}
}
}
else
{
}
else
{
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
...
...
src/pages/mine/contract/index.vue
View file @
f5b27e19
...
@@ -8,20 +8,21 @@
...
@@ -8,20 +8,21 @@
></u-navbar>
></u-navbar>
<view
class=
"content"
>
<view
class=
"content"
>
<text
class=
"title"
>
合同清单
</text>
<text
class=
"title"
>
合同清单
</text>
<view
class=
"jf-currency-class"
>
<view
class=
"jf-currency-class"
v-for=
"item in res"
:key=
"item.id"
>
<view
class=
"left"
>
自营平台技 工入驻签约 合同
</view>
<view
class=
"left"
>
{{
item
.
name
}}
</view>
<view
class=
"text1"
>
《
自营平台技工入驻签约合同
》
</view>
<view
class=
"text1"
>
《
{{
item
.
name
}}
》
</view>
<view
class=
"text2"
>
下载时间:
2021.05.06 14:25:00
</view>
<view
class=
"text2"
>
下载时间:
{{
item
.
create_at
}}
</view>
</view>
</view>
<view
class=
"jf-currency-class"
>
<
!--
<
view
class=
"jf-currency-class"
>
<view
class=
"left"
>
新风机技工入驻签约合同
</view>
<view
class=
"left"
>
新风机技工入驻签约合同
</view>
<view
class=
"text1"
>
《新风机技工入驻签约合同》
</view>
<view
class=
"text1"
>
《新风机技工入驻签约合同》
</view>
<view
class=
"text2"
>
下载时间: 2021.05.06 15:01:48
</view>
<view
class=
"text2"
>
下载时间: 2021.05.06 15:01:48
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
moment
from
"moment"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -36,10 +37,66 @@ export default {
...
@@ -36,10 +37,66 @@ export default {
// 渐变色
// 渐变色
// backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
// backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
},
},
res
:
[],
type
:
"充电桩"
,
};
};
},
},
onLoad
()
{},
onLoad
()
{
methods
:
{},
this
.
getContract
(
this
.
type
);
},
computed
:
{},
methods
:
{
getContract
(
params
)
{
this
.
$u
.
api
.
Mycontract
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
)
{
let
length
=
res
.
data
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
let
data
=
new
Date
(
Number
(
res
.
data
[
i
].
create_at
)
*
1000
);
res
.
data
[
i
].
create_at
=
moment
(
data
).
format
(
"yyyy.MM.DD HH:mm:ss"
);
}
this
.
res
=
this
.
res
.
concat
(
res
.
data
);
console
.
log
(
this
.
res
);
}
}
else
{
console
.
log
(
res
.
code
);
}
});
},
add0
(
m
)
{
return
m
<
10
?
"0"
+
m
:
m
;
},
// format(shijianchuo) {
// //shijianchuo是整数,否则要parseInt转换
// var time = new Date(shijianchuo * 1000);
// var y = time.getFullYear();
// var m = time.getMonth() + 1;
// var d = time.getDate();
// var h = time.getHours();
// var mm = time.getMinutes();
// var s = time.getSeconds();
// return (
// y +
// "." +
// this.add0(m) +
// "." +
// this.add0(d) +
// " " +
// this.add0(h) +
// ":" +
// this.add0(mm) +
// ":" +
// this.add0(s)
// );
// // },
// gettime(time) {
// moment(new Date(time).format("yyyy.MM.DD HH:mm:ss"));
// },
},
};
};
</
script
>
</
script
>
...
...
src/pages/mine/wallet/index.vue
View file @
f5b27e19
This diff is collapsed.
Click to expand it.
src/pages/mine/wallet/settlement.vue
0 → 100644
View file @
f5b27e19
<
template
>
<view
class=
"settlement-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"结算账单"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
<view
class=
"settlement-conten"
>
<view
class=
"settlement-content-view"
>
<view
class=
"head-view"
>
<view
class=
"head-top-view"
>
<picker
mode=
"date"
:value=
"date"
fields=
"month"
@
change=
"bindDateChange"
>
<view
class=
"date-input"
>
<text
class=
"date-text"
>
{{
date
}}
</text>
<u-icon
name=
"arrow-down"
></u-icon>
</view>
</picker>
</view>
<view
class=
"head-bottom-view"
>
<view
class=
"head-amount-view"
>
<view><text>
已结算金额(元)
</text></view>
<view
class=
"head-amount-text"
><text>
{{
info
.
totalAmount
}}
</text></view>
</view>
</view>
</view>
<image
:src=
"liushuibeijingImage"
class=
"head-back-image"
mode=
"widthFix"
></image>
<view
class=
"list-view"
>
<view
v-for=
"(item, index) in info.payableRecordExtendDtos"
:key=
"index"
>
<Settlement
:data=
"item"
@
click=
"handleClickCell"
></Settlement>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
Settlement
from
"@/components/mine/settlement.vue"
export
default
{
components
:
{
Settlement
},
data
()
{
return
{
info
:
{
totalAmount
:
0
,
payableRecordExtendDtos
:
[]
},
date
:
'2021-05'
}
},
computed
:
{
liushuibeijingImage
()
{
return
this
.
imageUrl
+
'liushuibeijing.png'
},
imageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
},
created
()
{
var
item
=
{
paymentTime
:
new
Date
().
getTime
(),
payableRecordStatusText
:
'提现'
,
payableRecordNumber
:
'EE999777'
,
settlementAmount
:
9899
}
this
.
info
.
payableRecordExtendDtos
=
[
item
,
item
,
item
,
item
,
item
]
},
methods
:
{
bindDateChange
:
function
(
e
)
{
this
.
date
=
e
.
target
.
value
},
handleClickCell
(
orderId
)
{
uni
.
navigateTo
({
url
:
'pages/order/detail?id='
+
orderId
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.settlement-view
{
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
#F4F5F7
;
.settlement-conten
{
overflow
:
auto
;
.settlement-content-view
{
margin
:
10rpx
30rpx
30rpx
30rpx
;
border-radius
:
12rpx
;
position
:
relative
;
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
.head-back-image
{
position
:
relative
;
width
:
100%
;
z-index
:
0
;
}
.head-view
{
z-index
:
1
;
padding
:
30rpx
;
color
:
#FFFFFF
;
position
:
absolute
;
width
:
100%
;
.head-top-view
{
margin-top
:
10rpx
;
margin-bottom
:
50rpx
;
.date-input
{
.date-text
{
padding-right
:
10rpx
;
font-size
:
28rpx
;
}
}
}
.head-bottom-view
{
display
:
flex
;
align-items
:
flex-start
;
justify-content
:
space-between
;
.head-amount-view
{
font-size
:
24rpx
;
.head-amount-text
{
font-size
:
40rpx
;
margin-top
:
10rpx
;
}
}
}
}
.list-view
{
position
:
relative
;
z-index
:
1
;
padding-bottom
:
20rpx
;
}
}
}
}
</
style
>
src/pages/mine/wallet/statement.vue
0 → 100644
View file @
f5b27e19
<
template
>
<view
class=
"statement-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"收入流水"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
<view
class=
"statement-conten"
>
<view
class=
"statement-content-view"
>
<view
class=
"head-view"
>
<view
class=
"head-top-view"
>
<picker
mode=
"date"
:value=
"date"
fields=
"month"
@
change=
"bindDateChange"
>
<view
class=
"date-input"
>
<text
class=
"date-text"
>
{{
date
}}
</text>
<u-icon
name=
"arrow-down"
></u-icon>
</view>
</picker>
</view>
<view
class=
"head-bottom-view"
>
<view
v-for=
"(value, key) in items"
:key=
"key"
class=
"head-amount-view"
>
<view><text>
{{
value
}}
</text></view>
<view
class=
"head-amount-text"
><text>
{{
info
[
key
]
}}
</text></view>
</view>
</view>
</view>
<image
:src=
"liushuibeijingImage"
class=
"head-back-image"
mode=
"widthFix"
></image>
<view
class=
"list-view"
>
<view
v-for=
"(item, index) in data.statementList"
:key=
"index"
>
<Statement
:data=
"item"
@
click=
"handleClickCell"
></Statement>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
Statement
from
"@/components/mine/statement.vue"
export
default
{
components
:
{
Statement
},
data
()
{
return
{
data
:
{
expectedAmount
:
0
,
settledAmount
:
0
,
statementList
:
[]
},
date
:
'2021-05'
}
},
computed
:
{
info
()
{
return
{
...
this
.
data
,
number
:
this
.
data
.
statementList
.
length
}
},
items
()
{
return
{
expectedAmount
:
'预结(元)'
,
settledAmount
:
'已确认(元)'
,
number
:
'订单数(单)'
,
}
},
liushuibeijingImage
()
{
return
this
.
imageUrl
+
'liushuibeijing.png'
},
imageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
},
created
()
{
var
item
=
{
paymentTime
:
new
Date
().
getTime
(),
payableRecordStatusText
:
'预结'
,
orderNumber
:
'EE999777'
,
orderServiceType
:
'安装'
,
inGuaranteePeriod
:
false
,
// true 保内;false 保外
payableAmount
:
9899
}
this
.
data
.
statementList
=
[
item
,
item
,
item
,
item
,
item
]
},
methods
:
{
bindDateChange
:
function
(
e
)
{
this
.
date
=
e
.
target
.
value
},
handleClickCell
(
orderId
)
{
uni
.
navigateTo
({
url
:
'pages/order/detail?id='
+
orderId
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.statement-view
{
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
#F4F5F7
;
.statement-conten
{
overflow
:
auto
;
.statement-content-view
{
margin
:
10rpx
30rpx
30rpx
30rpx
;
border-radius
:
12rpx
;
position
:
relative
;
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
.head-back-image
{
position
:
relative
;
width
:
100%
;
z-index
:
0
;
}
.head-view
{
z-index
:
1
;
padding
:
30rpx
;
color
:
#FFFFFF
;
position
:
absolute
;
width
:
100%
;
.head-top-view
{
margin-top
:
10rpx
;
margin-bottom
:
50rpx
;
.date-input
{
.date-text
{
padding-right
:
10rpx
;
font-size
:
28rpx
;
}
}
}
.head-bottom-view
{
display
:
flex
;
align-items
:
flex-start
;
justify-content
:
space-between
;
.head-amount-view
{
font-size
:
24rpx
;
.head-amount-text
{
font-size
:
40rpx
;
margin-top
:
10rpx
;
}
}
}
}
.list-view
{
position
:
relative
;
z-index
:
1
;
padding-bottom
:
20rpx
;
}
}
}
}
</
style
>
src/pages/mine/wallet/withdraw.vue
0 → 100644
View file @
f5b27e19
<
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
class=
"withdraw-content-main"
>
<view
class=
"amount-title"
>
可提现金额
</view>
<view
class=
"amount-text"
><text
class=
"amount-symbol"
>
¥
</text>
{{
amount
}}
</view>
<u-button
type=
"primary"
shape=
"circle"
:custom-style=
"buttonStyle"
@
click=
"handleClick"
>
提现
</u-button>
</view>
<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
;
margin
:
10rpx
30rpx
30rpx
30rpx
;
.withdraw-content-main
{
text-align
:
center
;
margin-bottom
:
200rpx
;
.amount-title
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#333333
;
}
.amount-text
{
font-size
:
72rpx
;
font-weight
:
bold
;
color
:
#2272FF
;
margin-top
:
60rpx
;
margin-bottom
:
60rpx
;
.amount-symbol
{
font-size
:
36rpx
;
}
}
}
.line-view
{
padding
:
0
30rpx
;
background-color
:
#F4F5F7
;
height
:
2rpx
;
}
.rule-title
{
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
margin-top
:
60rpx
;
margin-bottom
:
30rpx
;
}
.rule-content
{
font-size
:
24rpx
;
color
:
#666666
;
margin-bottom
:
20rpx
;
line-height
:
40rpx
;
}
}
}
</
style
>
src/pages/order/detail.vue
View file @
f5b27e19
...
@@ -549,7 +549,9 @@
...
@@ -549,7 +549,9 @@
this
.
scenePhoto
=
true
this
.
scenePhoto
=
true
this
.
readMore
=
true
this
.
readMore
=
true
this
.
isAllowDianhuaAndDaohang
=
true
this
.
isAllowDianhuaAndDaohang
=
true
}
else
{}
}
else
{
this
.
isAllowDianhuaAndDaohang
=
true
}
},
},
handleBtn
()
{
handleBtn
()
{
if
(
!
this
.
submitType
){
if
(
!
this
.
submitType
){
...
...
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