Commit bb7232b4 authored by liangliang.wang01's avatar liangliang.wang01 🤸🏽

5月6日扫码支付页面UI优化

parent 018ef96e
<template> <template>
<div class="" style="padding: 20px; height: 100%"> <div class="" style="padding: 20px; height: 100%">
<div class="title" style="height:5%; width:100%"> <div class="title" style="height:5%; width:100%">
<div style=" <div>合同信息</div>
width: 100%;
height:100%;
text-align: center;
border-radius: 5px;
padding-top: 7px;
background-color: #ddd;
font-size: 16px;
font-weight: 700;
color: #11111187;
">
合同信息
</div>
</div> </div>
<div class="search"> <div class="search">
<div class="searchInput"> <div class="searchInput">
...@@ -23,7 +11,7 @@ ...@@ -23,7 +11,7 @@
</div> </div>
<div v-if="ListNum != 0" class="billList"> <div v-if="ListNum != 0" class="billList">
<article v-for="(item, index) in massages" :key="item.id" class="article" style="margin-top:10px"> <article v-for="(item, index) in massages" :key="item.id" class="article" style="margin-top:10px">
<img slot="left-icon" src="../../../assets\electronicContract\contract-list.png" class="icon"> <img slot="left-icon" src="../../../assets\electronicContract\contract-icon.png" class="icon">
<div slot="name" class="text" style="width: 80%;font-size: 12px;"> <div slot="name" class="text" style="width: 80%;font-size: 12px;">
<div class="cont-type" style="color: #000;font-size: 14px;font-weight:700">承租人:{{ item.customername }} <div class="cont-type" style="color: #000;font-size: 14px;font-weight:700">承租人:{{ item.customername }}
</div> </div>
...@@ -79,7 +67,7 @@ export default { ...@@ -79,7 +67,7 @@ export default {
methods: { methods: {
searchBill (openId) { searchBill (openId) {
let vm = this; let vm = this;
let value = vm.searchCondition.input let value = vm.searchCondition.input;
let url = process.env.basePath + 'getCmbConList'; let url = process.env.basePath + 'getCmbConList';
console.log("请求数据") console.log("请求数据")
// http://sign.hitachics.com/core/r/api?sysName=HCL_UPLOAD_FILE&apiName=getCmbConList // http://sign.hitachics.com/core/r/api?sysName=HCL_UPLOAD_FILE&apiName=getCmbConList
...@@ -119,6 +107,20 @@ export default { ...@@ -119,6 +107,20 @@ export default {
</script> </script>
<style lang="less" type="text/less" scoped> <style lang="less" type="text/less" scoped>
.title{
border-radius: 5px;
background-color: #ddd;
display: flex;
justify-content: space-around;
align-items: center;
div{
height: 20px;
line-height: 20px;
font-size: 16px;
font-weight:bolder;
color: #11111187;
}
}
.search { .search {
display: flex; display: flex;
//height: 50px; //height: 50px;
...@@ -182,9 +184,9 @@ export default { ...@@ -182,9 +184,9 @@ export default {
width: 100%; width: 100%;
word-wrap:break-word; word-wrap:break-word;
} }
:nth-child(1){ // :nth-child(1){
width: 200px; // width: 200px;
} // }
} }
.icon { .icon {
//左侧图标 //左侧图标
...@@ -205,13 +207,14 @@ export default { ...@@ -205,13 +207,14 @@ export default {
} }
button { button {
position: absolute; position: absolute;
top: 12px; bottom: 12px;
right: 5px; right: 15px;
width: 75px; width: 75px;
height: 25px; height: 25px;
font-size: 14px; font-size: 14px;
background-color: #d1d1d1; color: #fff;
border: 2px solid #dcd0d0; background-color: rgb(0, 200, 0);
border: 2px solid rgb(0, 200, 0);
border-radius: 5px; border-radius: 5px;
}; };
.more { .more {
......
...@@ -7,16 +7,16 @@ ...@@ -7,16 +7,16 @@
<li><span>期数:</span>{{ item.times }}</li> <li><span>期数:</span>{{ item.times }}</li>
<li><span>还款日期:</span>{{ item.recduedt_char }}</li> <li><span>还款日期:</span>{{ item.recduedt_char }}</li>
<li><span>租金金额:</span>{{ item.recdueamt }}</li> <li><span>租金金额:</span>{{ item.recdueamt }}</li>
<li><span>逾期金额:</span>{{ item.ovducmpsamt }}</li> <li><span>违约金金额:</span>{{ item.ovducmpsamt }}</li>
<li><span>剩余应还金额:</span>{{ item.recdueamt_total }}</li> <li><span>剩余应还金额:</span>{{ item.recdueamt_total_str }}</li>
<li><span>现金流项目</span>{{ item.characterid_n }}</li> <li><span>收款类别</span>{{ item.characterid_n }}</li>
</ul> </ul>
</li> </li>
</ul> </ul>
<!-- 总计还款金额 --> <!-- 总计还款金额 -->
<div v-if="bottomType == 0" class="bottomBox"> <div v-if="bottomType == 0" class="bottomBox">
<div class="total"> <div class="total">
<span>合计还款金额:{{ total }}</span> <div class="counter"><span>合计还款金额:{{ total }}</span></div>
<input id="payamount" type="number" placeholder="请输入支付金额" required oninvalid="setCustomValidity('请输入支付金额!');" <input id="payamount" type="number" placeholder="请输入支付金额" required oninvalid="setCustomValidity('请输入支付金额!');"
oninput="setCustomValidity('');"> oninput="setCustomValidity('');">
</div> </div>
...@@ -88,10 +88,11 @@ export default { ...@@ -88,10 +88,11 @@ export default {
// 给checked和unchecked初始值 // 给checked和unchecked初始值
for (let i = 0; i < vm.ListNum; i++) { for (let i = 0; i < vm.ListNum; i++) {
// console.log('给checked初始值'); // console.log('给checked初始值');
vm.checked[i] = false vm.checked[i] = false;
vm.unchecked[i] = dataInfo.lists[i].select_flag == 'N' vm.unchecked[i] = dataInfo.lists[i].select_flag === 'N';
} }
vm.Lists = dataInfo.lists vm.Lists = dataInfo.lists;
console.log(vm.Lists);
} else { } else {
vm.hlsPopup.showLongCenter('获取合同还款计划失败,请联系管理员') vm.hlsPopup.showLongCenter('获取合同还款计划失败,请联系管理员')
} }
...@@ -220,9 +221,6 @@ export default { ...@@ -220,9 +221,6 @@ export default {
console.log(res.respMsg); console.log(res.respMsg);
} }
}); });
},
showPaypage () {
}, },
close () { close () {
// 点击关闭二维码页面; // 点击关闭二维码页面;
...@@ -234,13 +232,15 @@ export default { ...@@ -234,13 +232,15 @@ export default {
if (this.Lists[index].select_flag == 'N') { if (this.Lists[index].select_flag == 'N') {
return return
} }
var num = this.total var num = this.total;
// 计算 // 计算
if (this.checked[index] == false) { if (this.checked[index] == false) {
num += this.Lists[index].recdueamt_total num += this.Lists[index].recdueamt_total;
} else if (this.checked[index] == true) { } else if (this.checked[index] == true) {
num -= this.Lists[index].recdueamt_total num -= this.Lists[index].recdueamt_total;
} }
num = Number(num.toFixed(2));
// console.log(Number(num.toFixed(2)));
this.total = num; this.total = num;
document.getElementById('payamount').value = num; document.getElementById('payamount').value = num;
console.log(index); console.log(index);
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
let $input = document.getElementById('box').children[i].children[0]; let $input = document.getElementById('box').children[i].children[0];
let $ul = document.getElementById('box').children[i].children[1]; let $ul = document.getElementById('box').children[i].children[1];
// console.log($input.className); // console.log($input.className);
if (this.unchecked[i] == true) { if (this.unchecked[i] === true) {
$input.className = 'uncheck-box'; $input.className = 'uncheck-box';
$ul.className = 'uncheck-ul'; $ul.className = 'uncheck-ul';
} else { } else {
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
ul { ul {
margin-right: 3%; margin-right: 3%;
width: 87%; width: 87%;
border: 2px solid #b08f8f; border: 2px solid #afafaf;
border-radius: 8px; border-radius: 8px;
li { li {
padding-left: 8px; padding-left: 8px;
...@@ -298,7 +298,7 @@ export default { ...@@ -298,7 +298,7 @@ export default {
} }
} }
.uncheck-ul{ .uncheck-ul{
background-color: #d5d5d5; background-color: #ffffff;
} }
.check-ul{ .check-ul{
background-color: #ffffff; background-color: #ffffff;
...@@ -336,8 +336,8 @@ input[type="checkbox"] { ...@@ -336,8 +336,8 @@ input[type="checkbox"] {
} }
.uncheck-box[type="checkbox"]::after { .uncheck-box[type="checkbox"]::after {
position: absolute; position: absolute;
background-color: #d5d5d5; background-color: #d9d9d9;
border: 2px solid #8e8e8e; border: 2px solid #bfbfbf;
width: 18px; width: 18px;
height: 18px; height: 18px;
display: inline-block; display: inline-block;
...@@ -354,25 +354,29 @@ input[type="checkbox"] { ...@@ -354,25 +354,29 @@ input[type="checkbox"] {
background-color: #fffffe; background-color: #fffffe;
border-top: 2px solid #7aae3b; border-top: 2px solid #7aae3b;
.total { .total {
font-size: 12px; font-size: 14px;
font-weight: bolder;
color: rgb(180, 0, 0); color: rgb(180, 0, 0);
width: 80%; width: 90%;
height: 20%; // height: 20%;
margin: 20px auto; margin: 20px auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
span { align-items: flex-end;
height: 25px; .counter{
line-height: 25px; vertical-align: bottom;
text-align: center; position: relative;
bottom: 0px;
} }
input { input {
font-size: 12px;
position: relative; position: relative;
right: 0px; right: 0px;
width: 50%; width: 36%;
border: 1px solid #dab2b2; border: 1px solid #a69a9a;
border-radius: 5px; border-radius: 5px;
padding-left: 6%; padding-left: 5%;
padding-right: 3%;
} }
} }
button { button {
...@@ -382,8 +386,8 @@ input[type="checkbox"] { ...@@ -382,8 +386,8 @@ input[type="checkbox"] {
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
color: #ffffff; color: #ffffff;
border-radius: 5px; border-radius: 8px;
border: 1px solid #dab2b2; border: 1px solid rgb(0, 200, 0);
background-color: rgb(0, 200, 0); background-color: rgb(0, 200, 0);
} }
} }
......
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