Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
12923787
Commit
12923787
authored
Oct 25, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
04495ad9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
81 deletions
+72
-81
reimburse-myself-list.Vue
src/pages/reimburseMyself/reimburse-myself-list.Vue
+72
-81
No files found.
src/pages/reimburseMyself/reimburse-myself-list.Vue
View file @
12923787
...
...
@@ -3,94 +3,85 @@
* @Date 2019/10/22
*/
<
template
>
<h-view
id=
"reimburse"
class=
"public-style"
style=
"height: 100%"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
我的还款
</span>
</div>
</h-header>
<div
class=
"hinput"
>
<div
class=
"search-box"
>
<input
v-model=
"keyWords"
type=
"text"
placeholder=
"请输入还款金额"
>
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
</div>
<h-view
id=
"reimburse"
class=
"public-style"
style=
"height: 100%"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
我的还款
</span>
</div>
<scroll
ref=
"scroll"
:updateData=
"[reimburseList]"
:pullUp=
"true"
>
<section
class=
"reimburse-wrap"
>
<list-item
v-for=
"(list,index) in reimburseList"
:key=
"index"
@
click
.
native=
"godetail(list.order_id)"
>
<item>
<img
slot=
"left-icon"
src=
"@/assets/reimburseMyself/reimburse.png"
class=
"left-icon"
>
<div
slot=
"name"
>
还款金额
</div>
<div
slot=
"content"
class=
"money-font"
>
{{
list
.
orderamount
|
currency
}}
</div>
</item>
<item>
<img
slot=
"left-icon"
src=
""
class=
"left-icon"
>
<div
slot=
"name"
class=
"time-font"
>
还款时间
</div>
<div
slot=
"content"
class=
"time-font"
>
{{
list
.
order_date
}}
</div>
</item>
</list-item>
</section>
</scroll>
</h-view>
</h-header>
<div
class=
"hinput"
>
<div
class=
"search-box"
>
<input
v-model=
"keyWords"
type=
"text"
placeholder=
"请输入还款金额"
>
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
</div>
</div>
<scroll
ref=
"scroll"
:updateData=
"[reimburseList]"
:pullUp=
"true"
>
<section
class=
"reimburse-wrap"
>
<list-item
v-for=
"(list,index) in reimburseList"
:key=
"index"
@
click
.
native=
"godetail(list.order_id)"
>
<item>
<img
slot=
"left-icon"
src=
"@/assets/reimburseMyself/reimburse.png"
class=
"left-icon"
>
<div
slot=
"name"
>
还款金额
</div>
<div
slot=
"content"
class=
"money-font"
>
{{
list
.
orderamount
|
currency
}}
</div>
</item>
<item>
<img
slot=
"left-icon"
src=
""
class=
"left-icon"
>
<div
slot=
"name"
class=
"time-font"
>
还款时间
</div>
<div
slot=
"content"
class=
"time-font"
>
{{
list
.
order_date
}}
</div>
</item>
</list-item>
</section>
</scroll>
</h-view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
reimburseList
:
[],
keyWords
:
''
,
}
},
created
:
function
()
{
},
mounted
:
function
()
{
},
updated
:
function
()
{
},
destroyed
:
function
()
{
export
default
{
data
()
{
return
{
reimburseList
:
[],
keyWords
:
''
,
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
// if (from.name === 'MyInfo') {
vm
.
getList
()
// }
})
},
methods
:
{
godetail
(
e
)
{
this
.
$router
.
push
({
name
:
'ReimburseDetail'
,
params
:
{
order_id
:
e
,
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
//if (from.name === 'MyInfo') {
vm
.
getList
()
// }
})
},
methods
:
{
godetail
(
e
){
this
.
$router
.
push
({
name
:
'ReimburseDetail'
,
params
:{
order_id
:
e
}
})
},
getList
(){
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'my_repayment_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中,请稍后!'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
reimburseList
=
res
.
lists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
}
})
})
},
getList
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'my_repayment_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中,请稍后!'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
reimburseList
=
res
.
lists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
}
}
})
},
},
}
</
script
>
<
style
lang=
"less"
rel=
"stylesheet"
>
...
...
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