Commit 8dbbfcbb authored by linxin's avatar linxin

解决冲突

parents 60446c13 f3db6a2e
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-21 14:00:54
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
<template> <template>
<h-view id="contract-details" class="public-style"> <h-view id="contract-details" class="public-style">
<div v-show="isshow" class="all"> <div v-show="isshow" class="all">
...@@ -23,51 +30,51 @@ ...@@ -23,51 +30,51 @@
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" >商务政策</div> <div slot="name" >商务政策</div>
<section slot="content">零手续费产品</section> <section slot="content">{{ conditionInfo.product_plan_id_n }}</section>
</item> </item>
<item> <item>
<div slot="name" >设备总价</div> <div slot="name" >设备总价</div>
<section slot="content">150,0000.00</section> <section slot="content">{{ conditionInfo.equip_price | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >融资金额</div> <div slot="name" >融资金额</div>
<section slot="content">100,000.00</section> <section slot="content">{{ Math.round(conditionInfo.finance_amount) | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >首付款</div> <div slot="name" >首付款</div>
<section slot="content">100,000.00</section> <section slot="content">{{ Math.round(conditionInfo.down_payment) | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >保证金比例</div> <div slot="name" >保证金比例</div>
<section slot="content">10%</section> <section slot="content">{{ conditionInfo.deposit_ratio_n }}</section>
</item> </item>
<item> <item>
<div slot="name" >保证金</div> <div slot="name" >保证金</div>
<section slot="content">150,000.00</section> <section slot="content">{{ Math.round(conditionInfo.deposit) | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >手续费比例</div> <div slot="name" >手续费比例</div>
<section slot="content">5%</section> <section slot="content">{{ conditionInfo.lease_charge_ratio_n }}</section>
</item> </item>
<item> <item>
<div slot="name" >手续费</div> <div slot="name" >手续费</div>
<section slot="content">7,500.00</section> <section slot="content">{{ Math.round(conditionInfo.lease_charge) | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >预计付款日</div> <div slot="name" >预计付款日</div>
<section slot="content">2019-08-01</section> <section slot="content">{{ conditionInfo.lease_start_date }}</section>
</item> </item>
<item> <item>
<div slot="name" >还款周期</div> <div slot="name" >还款周期</div>
<section slot="content"></section> <section slot="content">{{ conditionInfo.annual_pay_times_n }}</section>
</item> </item>
<item> <item>
<div slot="name" >租赁期数</div> <div slot="name" >租赁期数</div>
<section slot="content">6</section> <section slot="content">{{ conditionInfo.lease_times }}</section>
</item> </item>
<item> <item>
<div slot="name" >年利率</div> <div slot="name" >年利率</div>
<section slot="content">6.5%</section> <section slot="content">{{ conditionInfo.int_rate_n }}</section>
</item> </item>
</list-item> </list-item>
<div class="repay-plan"> <div class="repay-plan">
...@@ -77,15 +84,15 @@ ...@@ -77,15 +84,15 @@
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" >参数项</div> <div slot="name" >参数项</div>
<section slot="content">GTZ226</section> <section slot="content">{{ conditionInfo.product_code }}</section>
</item> </item>
<item> <item>
<div slot="name" >产品线</div> <div slot="name" >产品线</div>
<section slot="content">起重机</section> <section slot="content">{{ conditionInfo.product_name }}</section>
</item> </item>
<item> <item>
<div slot="name" >产品数量</div> <div slot="name" >产品数量</div>
<section slot="content">10</section> <section slot="content">{{ conditionInfo.product_num }}</section>
</item> </item>
</list-item> </list-item>
...@@ -94,8 +101,8 @@ ...@@ -94,8 +101,8 @@
<img src="@/assets/constractSigning/work.png" alt="" style="width:32px"> <img src="@/assets/constractSigning/work.png" alt="" style="width:32px">
</div> </div>
<div class="center"> <div class="center">
<p>业务经办:张三</p> <p>业务经办:{{ conditionInfo.bp_user_id_n }}</p>
<p>联系电话:17890765336</p> <p>联系电话:{{ conditionInfo.agent_phone }}</p>
</div> </div>
<div class="right"> <div class="right">
<img src="@/assets/constractSigning/phone.png" alt="" style="width:30px"> <img src="@/assets/constractSigning/phone.png" alt="" style="width:30px">
...@@ -164,6 +171,7 @@ export default { ...@@ -164,6 +171,7 @@ export default {
return { return {
isshow: false, // 提示框的显示与隐藏 isshow: false, // 提示框的显示与隐藏
num: 1, num: 1,
conditionInfo: {},
check1: Check1, check1: Check1,
check2: Check2, check2: Check2,
uncheck1: unCheck1, uncheck1: unCheck1,
...@@ -172,7 +180,31 @@ export default { ...@@ -172,7 +180,31 @@ export default {
}, },
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter (to, from, next) {
if (from.name === 'ContractSigning') {
next(vm => {
vm.conditionQuery()
})
}
next()
},
methods: { methods: {
// 合同商务条件查询
conditionQuery () {
let vm = this
let url = $config.basePath + 'con_business_query'
let param = {
project_id: this.$route.params.project_id,
}
vm.hlsHttp.post(url, param).then(function (res) {
console.log('商务条件', res)
if (res.result === 'S') {
vm.conditionInfo = res.info
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 跳转合同详情 // 跳转合同详情
goContractContent (name) { goContractContent (name) {
this.$router.push({ this.$router.push({
...@@ -194,7 +226,7 @@ export default { ...@@ -194,7 +226,7 @@ export default {
}, },
} }
</script> </script>
<style lang='less' > <style lang='less' type="text/less">
#contract-details { #contract-details {
.all{ .all{
position: absolute; position: absolute;
......
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-21 11:09:20
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
<template> <template>
<h-view class="contract-signing"> <h-view class="contract-signing">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
...@@ -17,26 +24,51 @@ ...@@ -17,26 +24,51 @@
</div> </div>
</div> </div>
<h-content> <h-content v-if="num === 1">
<div v-for="(item,index) in contractMsg" :key="index" class="contract-list"> <div v-for="(item,index) in submitLists" :key="index" class="contract-list">
<div class="item"> <div class="item">
<img src="@/assets/constractSigning/Incoming.png" alt="" style="height:18px"> <img src="@/assets/constractSigning/Incoming.png" alt="" style="height:18px">
<p class="incoming-num">进件号</p> <p class="incoming-num">进件号</p>
<p class="code">{{ item.code }}</p> <p class="code">{{ item.project_number }}</p>
</div> </div>
<div class="details"> <div class="details" @click="goDetails(item.project_id)">
<div class="option"> <div class="option">
<p class="name">承租人</p> <p class="name">承租人</p>
<p class="full-name normal">{{ item.name }}</p> <p class="full-name normal">{{ item.bp_name }}</p>
</div> </div>
<div class="option" @click="goDetails(index)"> <div class="option">
<p class="name">合同租金</p> <p class="name">合同租金</p>
<p class="normal money">{{ item.money | currency }}</p> <p class="normal money">{{ item.total_price | currency }}</p>
<img src="@/assets/distributorSign/goDetails.png" alt=""> <img src="@/assets/distributorSign/goDetails.png" alt="">
</div> </div>
<div class="option"> <div class="option">
<p class="name">申请时间</p> <p class="name">申请时间</p>
<p class="normal">{{ item.date }}</p> <p class="normal">{{ item.confirm_start_date }}</p>
</div>
</div>
</div>
</h-content>
<h-content v-if="num === 2">
<div v-for="(item,index) in approvedLists" :key="index" class="contract-list">
<div class="item">
<img src="@/assets/constractSigning/Incoming.png" alt="" style="height:18px">
<p class="incoming-num">进件号</p>
<p class="code">{{ item.project_number }}</p>
</div>
<div class="details" @click="goDetails(item.project_id)">
<div class="option">
<p class="name">承租人</p>
<p class="full-name normal">{{ item.bp_name }}</p>
</div>
<div class="option">
<p class="name">合同租金</p>
<p class="normal money">{{ item.total_price | currency }}</p>
<img src="@/assets/distributorSign/goDetails.png" alt="">
</div>
<div class="option">
<p class="name">申请时间</p>
<p class="normal">{{ item.confirm_start_date }}</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -58,25 +90,47 @@ export default { ...@@ -58,25 +90,47 @@ export default {
check2: Check2, check2: Check2,
uncheck1: unCheck1, uncheck1: unCheck1,
uncheck2: unCheck2, uncheck2: unCheck2,
contractMsg: [ submitLists: [],
{name: '张三', money: 90000, date: '2019-03-1', code: '201903022001'}, approvedLists: [],
{name: '李四', money: 90000, date: '2019-03-1', code: '201903022002'},
{name: '王五', money: 90000, date: '2019-03-1', code: '201903022003'},
{name: '赵六', money: 90000, date: '2019-03-1', code: '201903022004'},
{name: '张三', money: 90000, date: '2019-03-1', code: '201903022001'},
{name: '李四', money: 90000, date: '2019-03-1', code: '201903022002'},
{name: '王五', money: 90000, date: '2019-03-1', code: '201903022003'},
{name: '赵六', money: 90000, date: '2019-03-1', code: '201903022004'},
],
} }
}, },
activated () { activated () {
},
created () {
},
beforeRouteEnter (to, from, next) {
if (from.name === 'HomePage') {
next(vm => {
vm.contractList()
})
}
next()
}, },
methods: { methods: {
goDetails (index) { contractList () {
let vm = this
let url = $config.basePath + 'con_confirm_list_query'
let param = {
user_phone: window.localStorage.user_phone,
}
vm.hlsHttp.post(url, param).then(function (res) {
console.log(res)
if (res.result === 'S') {
vm.submitLists = res.lists.filter(item => item.confirm_status === 'SUBMIT')
vm.approvedLists = res.lists.filter(item => item.confirm_status === 'APPROVED')
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
goDetails (val) {
this.$router.push({ this.$router.push({
name: 'ContractDetail', name: 'ContractDetail',
params: {
project_id: val,
},
}) })
}, },
}, },
...@@ -183,86 +237,94 @@ export default { ...@@ -183,86 +237,94 @@ export default {
padding-bottom: 14px; padding-bottom: 14px;
} }
.contract-list { .contract-list {
width: 100%;
height: 120px;
// border: 1px solid #ccc;
background: #fff;
margin-top: 8px;
.item {
width: 100%; width: 100%;
height: 34px; height: 120px;
background: rgba(00, 70, 156, 0.1); // border: 1px solid #ccc;
display: flex; background: #fff;
flex-direction: row; //margin-bottom: 8px;
align-items: center; .item {
width: 100%;
height: 34px;
background: rgba(00, 70, 156, 0.1);
display: flex;
flex-direction: row;
align-items: center;
img { img {
margin-left: 16.6px; margin-left: 16.6px;
} }
.incoming-num { .incoming-num {
font-family: PingFangSC-Semibold; font-family: PingFangSC-Semibold;
// width: 42px; // width: 42px;
height: 20px; height: 20px;
font-weight: bolder; font-weight: bolder;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 14px;
color: #00469C; color: #00469C;
letter-spacing: 0; letter-spacing: 0;
margin-left: 8.8px; margin-left: 8.8px;
} }
.code { .code {
font-family: PingFangSC-Semibold; font-family: PingFangSC-Semibold;
font-size: 14px; font-size: 14px;
color: #00469C; color: #00469C;
margin-left: 8px; margin-left: 8px;
font-weight: 700; font-weight: bolder
}
} }
}
.details { .details {
width: 100%;
height: 86px;
display: flex;
flex-direction: column;
justify-content: space-around;
.option {
width: 100%; width: 100%;
// flex: 1; height: 86px;
display: flex; display: flex;
flex-basis: row; flex-direction: column;
justify-content: space-around;
padding: 6px 0;
.name { .option {
font-family: PingFangSC-Regular; width: 100%;
font-size: 13px;
color: rgba(56,63,69,0.60);
width: 80px;
height: 18px; height: 18px;
line-height: 18px; display: flex;
text-align: right flex-direction: row;
}
.name {
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.60);
width: 80px;
height: 18px;
line-height: 18px;
text-align: right
}
.normal { .normal {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #383F45; color: #383F45;
height: 18px; height: 18px;
line-height: 18px; line-height: 18px;
margin-left: 8px; margin-left: 8px;
} }
.money { .money {
color: #FCC800; color: #FCC800;
} }
img { img {
margin-left: 55% margin-left: 47%
}
}
.option:nth-of-type(2) {
position: relative;
img{
position: absolute;
right: 10px;
}
} }
} }
} }
}
} }
</style> </style>
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
<p>业务经办:{{ baseInfo.bp_user_id_n }}</p> <p>业务经办:{{ baseInfo.bp_user_id_n }}</p>
<p>联系电话:{{ baseInfo.phone }}</p> <p>联系电话:{{ baseInfo.phone }}</p>
</div> </div>
<div class="right1" @click="callUp"> <div class="right1" @click="callUp(baseInfo.phone)">
<img src="@/assets/distributorSign/calls.png" alt=""> <img src="@/assets/distributorSign/calls.png" alt="">
</div> </div>
</div> </div>
...@@ -367,8 +367,8 @@ export default { ...@@ -367,8 +367,8 @@ export default {
dateConverse (date) { dateConverse (date) {
return date.replace(/\//g, '-') return date.replace(/\//g, '-')
}, },
callUp () { callUp (phonenumber) {
this.hlsPopup.showSuccess('打电话') window.open('tel:' + phonenumber)
}, },
repayPlan () { repayPlan () {
this.$router.push({ this.$router.push({
......
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
<input slot="content" v-model="baseInfo.marital_status_n" readonly> <input slot="content" v-model="baseInfo.marital_status_n" readonly>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">配偶信息</div> <div class="equipment-list" v-if="baseInfo.marital_status == 'MARRIED'">配偶信息</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part" v-if="baseInfo.marital_status == 'MARRIED'">
<item> <item>
<div slot="name" class="font-color">姓名</div> <div slot="name" class="font-color">姓名</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly> <input slot="content" v-model="baseInfo.bp_name_sp" readonly>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit * @Descrip""/>User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-29 20:31:00 * @Date: 2019-09-29 20:31:00
* @LastEditTime: 2019-10-18 16:40:49 * @LastEditTime: 2019-10-21 15:17:55
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">预计付款日</div> <div slot="name" class="font-color">预计付款日</div>
<input slot="content" placeholder="YYYY-MM-DD" > <!-- <input slot="content" placeholder="YYYY-MM-DD" readonly> -->
<div slot="content">{{ dates }}</div>
<img src="@/assets/trial/date.png" alt="" class="date-pic" @click="showTime('YYYY-MM-DD')">
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">还款周期</div> <div slot="name" class="font-color">还款周期</div>
...@@ -90,6 +92,7 @@ export default { ...@@ -90,6 +92,7 @@ export default {
name: 'FinancingDetails', name: 'FinancingDetails',
data () { data () {
return { return {
dates: '',
plan_price: '', plan_price: '',
price_date_to: '', price_date_to: '',
} }
...@@ -116,11 +119,28 @@ export default { ...@@ -116,11 +119,28 @@ export default {
name: 'FinancDetails', name: 'FinancDetails',
}) })
}, },
showTime (format) {
let vm = this
hlsPopup.showTime({
nowDate: new Date().toLocaleDateString(),
format: format,
callback: (date) => {
// alert(date)
vm.dates = date
},
})
},
}, },
} }
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
#details1 { #details1 {
.date-pic {
height: 17px;
width: 17px;
margin-top: 13px;
margin-left: 4px;
}
.h-header-btn { .h-header-btn {
img { img {
width: 16px; width: 16px;
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<p>业务经办:{{ bp_user_id_n }}</p> <p>业务经办:{{ bp_user_id_n }}</p>
<p>联系电话:{{ cell_phone }}</p> <p>联系电话:{{ cell_phone }}</p>
</div> </div>
<div class="right1" @click="callUp"> <div class="right1" @click="callUp(cell_phone)">
<img src="@/assets/distributorSign/calls.png" alt=""> <img src="@/assets/distributorSign/calls.png" alt="">
</div> </div>
</div> </div>
...@@ -465,8 +465,8 @@ export default { ...@@ -465,8 +465,8 @@ export default {
this.isConfirm = this.$route.params.isConfirm this.isConfirm = this.$route.params.isConfirm
}, },
methods: { methods: {
callUp () { callUp (phonenumber) {
this.hlsPopup.showSuccess('打电话') window.open('tel:' + phonenumber)
}, },
getTabNum (i) { getTabNum (i) {
this.tabNum = i this.tabNum = i
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip: 产品明细 * @Descrip: 产品明细
* @Author: your name * @Author: your name
* @Date: 2019-10-15 14:30:00 * @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-18 15:35:42 * @LastEditTime: 2019-10-21 15:56:00
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -118,14 +118,20 @@ export default { ...@@ -118,14 +118,20 @@ export default {
bgc_flag: true, bgc_flag: true,
collect_flag: false, collect_flag: false,
src: require('@/assets/productQuery/collect.png'), src: require('@/assets/productQuery/collect.png'),
// collect_status: window.sessionStorage.getItem('collect_status'),
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {
},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'ProductList') { if (from.name === 'ProductList') {
next(vm => { next(vm => {
vm.product_id = vm.$route.params.product_id vm.product_id = vm.$route.params.product_id
// vm.collect_status = vm.$route.params.collect_status
// if (vm.$route.params.collect_status === 'Y') {
// vm.src = require('@/assets/productQuery/coll-success.png')
// }
vm.baseMsg() vm.baseMsg()
vm.detailMsg() vm.detailMsg()
vm.confgMsg() vm.confgMsg()
...@@ -134,7 +140,10 @@ export default { ...@@ -134,7 +140,10 @@ export default {
next() next()
}, },
created () { created () {
console.log('collect........', window.sessionStorage.getItem('collect_status'))
if (window.sessionStorage.getItem('collect_status') === 'Y') {
this.src = require('@/assets/productQuery/coll-success.png')
}
}, },
methods: methods:
{ {
...@@ -144,27 +153,32 @@ export default { ...@@ -144,27 +153,32 @@ export default {
}, },
// 收藏 // 收藏
collect () { collect () {
this.collect_flag = true console.log('collect', window.sessionStorage.getItem('collect_status'))
console.log(this.collect_flag) if (window.sessionStorage.getItem('collect_status') === 'Y') {
let vm = this hlsPopup.showLongCenter('该产品已收藏过,请勿重复收藏')
let url = $config.basePath + 'save_collection' } else {
let param = { this.collect_flag = true
master: { console.log(this.collect_flag)
product_id: vm.product_id, let vm = this
user_phone: window.localStorage.user_phone, let url = $config.basePath + 'save_collection'
}, let param = {
} master: {
vm.$post(url, param).then(function (res) { product_id: vm.product_id,
console.log('收藏', res) user_phone: window.localStorage.user_phone,
if (res.result === 'S') { },
vm.src = require('@/assets/productQuery/coll-success.png')
setTimeout(() => {
vm.collect_flag = false
}, 1500)
} else {
hlsPopup.showLongCenter(res.message)
} }
}) vm.$post(url, param).then(function (res) {
console.log('收藏', res)
if (res.result === 'S') {
vm.src = require('@/assets/productQuery/coll-success.png')
setTimeout(() => {
vm.collect_flag = false
}, 1500)
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
}, },
// 基本信息查询 // 基本信息查询
baseMsg () { baseMsg () {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<div slot="right-icon"> <div slot="right-icon">
<img class="arrow" src="@/assets/productQuery/getIn.png" alt="" @click="goDetailed(item.product_id)"> <img class="arrow" src="@/assets/productQuery/getIn.png" alt="" @click="goDetailed(item.product_id,item.collect_status)">
</div> </div>
</item> </item>
</list-item> </list-item>
...@@ -82,11 +82,13 @@ export default { ...@@ -82,11 +82,13 @@ export default {
}) })
}, },
// val:产品id // val:产品id
goDetailed (val) { goDetailed (val, status) {
window.sessionStorage.setItem('collect_status', status)
this.$router.push({ this.$router.push({
name: 'ProDetailed', name: 'ProDetailed',
params: { params: {
product_id: val, product_id: val,
// collect_status: status,
}, },
}) })
}, },
...@@ -149,8 +151,11 @@ export default { ...@@ -149,8 +151,11 @@ export default {
// margin-left: 30px; // margin-left: 30px;
margin-top: 16px; margin-top: 16px;
} }
// .hls-item .contents .add-name {
// flex: none!important;
// }
.item-pic { .item-pic {
width: 110px; width: 100px;
//height: 110px; //height: 110px;
img { img {
width: 100%; width: 100%;
......
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
<div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')"> <div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')">
<img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" > <img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" >
</div> </div>
<div v-if="idCardFront && isApproved"> <div v-if="isApproved">
<img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(idCardFront)"> <img v-if="idCardFront" :src="idCardFront" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(idCardFront)">
</div> </div>
<div v-if="!idCardBack" @click="ocrShow('idCard', 'back')"> <div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">
<img src="@/assets/userBind/back.png" > <img src="@/assets/userBind/back.png" >
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
<div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')"> <div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')">
<img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" > <img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" >
</div> </div>
<div v-if="idCardBack && isApproved"> <div v-if="isApproved">
<img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(idCardBack)"> <img v-if="idCardBack" :src="idCardBack" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(idCardBack)">
</div> </div>
</div> </div>
</div> </div>
...@@ -260,12 +260,17 @@ ...@@ -260,12 +260,17 @@
@click="ocrShow('bankCard', '')" @click="ocrShow('bankCard', '')"
> >
<img <img
v-if="bankImg && !isApproved" v-if="bankImg"
:src="bankImg" :src="bankImg"
class="addBack" class="addBack"
style="height: 38%;" style="height: 38%;"
@click="ocrShow('bankCard', '')" @click="ocrShow('bankCard', '')"
> >
<img
v-if="isApproved"
src="@/assets/userBind/addBack.png"
class="addBack"
>
<list-item :item-height="44" class="card-Info"> <list-item :item-height="44" class="card-Info">
<item> <item>
<div slot="name">银行卡卡号</div> <div slot="name">银行卡卡号</div>
...@@ -483,8 +488,13 @@ export default { ...@@ -483,8 +488,13 @@ export default {
}) })
switch (cdd_item) { switch (cdd_item) {
case 'NP_ID_CARD': case 'NP_ID_CARD':
vm.idCardBack = res.lists[0].url res.lists.forEach(item => {
vm.idCardFront = res.lists[1].url if (item.file_name === 'front.jpg') {
vm.idCardFront = item.url
} else {
vm.idCardBack = item.url
}
})
break break
default: default:
vm.dowload_list.push(res.lists) vm.dowload_list.push(res.lists)
...@@ -496,6 +506,7 @@ export default { ...@@ -496,6 +506,7 @@ export default {
}, },
async verified () { async verified () {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片 this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片
let bpId = await this.saveWord() let bpId = await this.saveWord()
this.getBankInfo() this.getBankInfo()
// 查询资料清单 // 查询资料清单
...@@ -522,6 +533,9 @@ export default { ...@@ -522,6 +533,9 @@ export default {
switch (item.cdd_item) { switch (item.cdd_item) {
case 'NP_ID_CARD': case 'NP_ID_CARD':
vm.idCardCheck_id = item.check_id vm.idCardCheck_id = item.check_id
break
case 'BANK_CARD':
break break
default: default:
vm.cddItemList.push(item) vm.cddItemList.push(item)
...@@ -833,7 +847,7 @@ export default { ...@@ -833,7 +847,7 @@ export default {
maxCount: 1, maxCount: 1,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
if (!imgUrl) { if (imgUrl.length === 0) {
hlsPopup.showLongCenter('请选择一张图片') hlsPopup.showLongCenter('请选择一张图片')
} else { } else {
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
...@@ -1228,6 +1242,7 @@ export default { ...@@ -1228,6 +1242,7 @@ export default {
let vm = this let vm = this
vm.hlsPopup.showBigPicture({ vm.hlsPopup.showBigPicture({
imgUrl: pic, imgUrl: pic,
width: '100%',
}) })
}, },
}, },
......
This diff is collapsed.
export default (Vue) => { export default (Vue) => {
Vue.filter('currency', function (val) { Vue.filter('currency', function (val) {
if (!val) return '0.00' if (!val) return '0.00'
......
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