Commit 12923787 authored by linxin's avatar linxin

test

parent 04495ad9
...@@ -3,94 +3,85 @@ ...@@ -3,94 +3,85 @@
* @Date 2019/10/22 * @Date 2019/10/22
*/ */
<template> <template>
<h-view id="reimburse" class="public-style" style="height: 100%"> <h-view id="reimburse" class="public-style" style="height: 100%">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>我的还款</span> <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>
</div> </div>
<scroll </h-header>
ref="scroll" <div class="hinput">
:updateData="[reimburseList]" <div class="search-box">
:pullUp="true" <input v-model="keyWords" type="text" placeholder="请输入还款金额">
> <img src="@/assets/distributorSign/search.png" alt="">
<section class="reimburse-wrap"> </div>
<list-item v-for="(list,index) in reimburseList" :key="index" @click.native="godetail(list.order_id)"> </div>
<item> <scroll
<img slot="left-icon" src="@/assets/reimburseMyself/reimburse.png" class="left-icon"> ref="scroll"
<div slot="name">还款金额</div> :updateData="[reimburseList]"
<div slot="content" class="money-font">{{list.orderamount | currency}}</div> :pullUp="true"
</item> >
<item> <section class="reimburse-wrap">
<img slot="left-icon" src="" class="left-icon"> <list-item v-for="(list,index) in reimburseList" :key="index" @click.native="godetail(list.order_id)">
<div slot="name" class="time-font">还款时间</div> <item>
<div slot="content" class="time-font">{{list.order_date}}</div> <img slot="left-icon" src="@/assets/reimburseMyself/reimburse.png" class="left-icon">
</item> <div slot="name">还款金额</div>
</list-item> <div slot="content" class="money-font">{{ list.orderamount | currency }}</div>
</section> </item>
</scroll> <item>
</h-view> <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> </template>
<script> <script>
export default { export default {
data() { data () {
return { return {
reimburseList: [], reimburseList: [],
keyWords: '', keyWords: '',
} }
}, },
created: function () { beforeRouteEnter (to, from, next) {
}, next(vm => {
mounted: function () { // if (from.name === 'MyInfo') {
}, vm.getList()
updated: function () { // }
}, })
destroyed: function () { },
methods: {
godetail (e) {
this.$router.push({
name: 'ReimburseDetail',
params: {
order_id: e,
}, },
beforeRouteEnter (to, from, next) { })
next(vm => { },
//if (from.name === 'MyInfo') { getList () {
vm.getList() let vm = this
// } let url = process.env.basePath + 'my_repayment_query'
}) let param = {
}, user_phone: window.localStorage.getItem('user_phone'),
methods: { }
godetail(e){ vm.hlsPopup.showLoading('数据加载中,请稍后!')
this.$router.push({ vm.hlsHttp.post(url, param).then(function (res) {
name:'ReimburseDetail', vm.hlsPopup.hideLoading()
params:{ if (res.result === 'S') {
order_id:e 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> </script>
<style lang="less" rel="stylesheet"> <style lang="less" rel="stylesheet">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment