Commit 93ecd61a authored by linxin's avatar linxin

修改bug

parent 8bff1d85
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
}, },
} }
</script> </script>
<style lang='less'> <style lang='less' >
#contract-record { #contract-record {
.h-header { .h-header {
background-color: #00469C; background-color: #00469C;
......
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
<div><span></span>{{ sumMoney |currency }}</div> <div><span></span>{{ sumMoney |currency }}</div>
</div> </div>
</div> </div>
<h-content class="pay-content"> <h-content v-if="info.length===0" class="none">
<p>暂无数据</p>
</h-content>
<h-content v-if="info.length!==0" class="pay-content">
<div class="search"> <div class="search">
<img src="@/assets/payment/search.png" alt=""> <img src="@/assets/payment/search.png" alt="">
<input type="text" placeholder="请输入合同号/车架号/承租人名称"> <input type="text" placeholder="请输入合同号/车架号/承租人名称">
...@@ -50,7 +53,7 @@ ...@@ -50,7 +53,7 @@
<span slot="content">{{ money|currency }}</span> <span slot="content">{{ money|currency }}</span>
</item> </item>
</list-item></h-content> </list-item></h-content>
<div class="prompt"> <div v-if="info.length!==0" class="prompt">
<div><img src="@/assets/payment/prompt.png" alt=""></div> <div><img src="@/assets/payment/prompt.png" alt=""></div>
<div> <div>
<p>温馨提示</p> <p>温馨提示</p>
...@@ -58,7 +61,7 @@ ...@@ -58,7 +61,7 @@
<p>由于存在款项到账时差性,“已还金额”字段可能XXX,给您造成的不便,请谅解,谢谢!</p> <p>由于存在款项到账时差性,“已还金额”字段可能XXX,给您造成的不便,请谅解,谢谢!</p>
</div> </div>
</div> </div>
<bottom-tab> <bottom-tab v-if="info.length!==0">
<tab-button class="footer" @click.native="payDetail()"> <tab-button class="footer" @click.native="payDetail()">
&nbsp;&nbsp; &nbsp;&nbsp;
</tab-button> </tab-button>
...@@ -191,6 +194,11 @@ export default { ...@@ -191,6 +194,11 @@ export default {
</script> </script>
<style lang='less' > <style lang='less' >
#payment-contract-record { #payment-contract-record {
.none{
display:flex;
justify-content: center;
align-items: center;
}
.h-header { .h-header {
background-color: #00469C; background-color: #00469C;
.h-header-btn { .h-header-btn {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="pay-icon"><img src="@/assets/payment/first-pay.png" alt="">租金支付</div> <div class="pay-icon"><img src="@/assets/payment/first-pay.png" alt="">租金支付</div>
<div class="pay-input"> <div class="pay-input">
<span>应还租金</span> <span>应还租金</span>
<p>{{ pay_rent |currency }}</p> <input v-model="pay_rent" type="text" placeholder="请输入支付金额">
<div @click="createOrder"><i class="icon ion-ios-arrow-right"/></div> <div @click="createOrder"><i class="icon ion-ios-arrow-right"/></div>
</div> </div>
</div> </div>
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
}, },
computed: {}, computed: {},
watch: { watch: {
'liquidated_damages': { 'pay_rent': {
handler () { handler () {
this.money = parseFloat(parseFloat(this.pay_rent) + parseFloat(this.liquidated_damages)) this.money = parseFloat(parseFloat(this.pay_rent) + parseFloat(this.liquidated_damages))
}, },
...@@ -130,11 +130,11 @@ export default { ...@@ -130,11 +130,11 @@ export default {
} }
}) })
}, },
toPayEntry (money) { toPayEntry () {
this.$router.push({ this.$router.push({
name: 'PaymentPayEntry', name: 'PaymentPayEntry',
params: { params: {
money, money: this.money,
}, },
}) })
}, },
......
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