Commit 93f9ae9d authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents 0624cf6c 9b6aae93
...@@ -87,21 +87,30 @@ export default { ...@@ -87,21 +87,30 @@ export default {
data () { data () {
return { return {
flag: true, flag: true,
isAGENT: false,
user_bp_status: '', user_bp_status: '',
user_bp_class: '', user_bp_class: '',
bp_id: '', bp_id: '',
user_phone: '', user_phone: '',
user_bp_name: '', user_bp_name: '',
user_bp_type: '',
} }
}, },
watch: { watch: {
'user_bp_status' (newVal, oulVal) { 'user_bp_status' (newVal, oldVal) {
if (newVal === 'APPROVED') { if (newVal === 'APPROVED') {
this.flag = false this.flag = false
} else { } else {
this.flag = true this.flag = true
} }
}, },
'user_bp_type' (newVal, oldVal) {
if (newVal === 'AGENT') {
this.isAGENT = true
} else {
this.isAGENT = false
}
},
}, },
created () { created () {
if (this.user_bp_status === 'APPROVED') { if (this.user_bp_status === 'APPROVED') {
...@@ -109,6 +118,11 @@ export default { ...@@ -109,6 +118,11 @@ export default {
} else { } else {
this.flag = true this.flag = true
} }
if (this.user_bp_type === 'AGENT') {
this.isAGENT = true
} else {
this.isAGENT = false
}
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
...@@ -239,6 +253,7 @@ export default { ...@@ -239,6 +253,7 @@ export default {
params: { params: {
bp_id: this.bp_id, bp_id: this.bp_id,
user_bp_name: this.user_bp_name, user_bp_name: this.user_bp_name,
isAGENT: this.isAGENT,
status: 'APPROVED', status: 'APPROVED',
}, },
}) })
...@@ -248,6 +263,7 @@ export default { ...@@ -248,6 +263,7 @@ export default {
params: { params: {
bp_id: this.bp_id, bp_id: this.bp_id,
user_bp_name: this.user_bp_name, user_bp_name: this.user_bp_name,
isAGENT: this.isAGENT,
status: 'APPROVED', status: 'APPROVED',
}, },
}) })
...@@ -279,6 +295,7 @@ export default { ...@@ -279,6 +295,7 @@ export default {
vm.user_bp_class = res.info.user_bp_class vm.user_bp_class = res.info.user_bp_class
vm.bp_id = res.info.user_bp_id vm.bp_id = res.info.user_bp_id
vm.user_bp_name = res.info.user_bp_name vm.user_bp_name = res.info.user_bp_name
vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone vm.user_phone = res.info.user_phone
} else { } else {
this.hlsPopup.showLongCenter(res.message) this.hlsPopup.showLongCenter(res.message)
......
...@@ -212,7 +212,16 @@ ...@@ -212,7 +212,16 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake">
<img src="@/assets/userBind/tax.png" class="left-img">
<div>
<span>缴纳保证金</span>
<p>已缴纳:500000</p>
</div> </div>
<img src="@/assets/userBind/arrow-right.png" class="right-img">
</div>
</div>
<BankInfo v-show="tabNum==1" :getBankList="getBankList" @getInfo="getInfo" @getList="getList"/> <BankInfo v-show="tabNum==1" :getBankList="getBankList" @getInfo="getInfo" @getList="getList"/>
<InvoiceInfo <InvoiceInfo
v-show="tabNum==2" v-show="tabNum==2"
...@@ -296,6 +305,7 @@ export default { ...@@ -296,6 +305,7 @@ export default {
showModalValue: false, showModalValue: false,
isApproved: false, isApproved: false,
isSave: false, isSave: false,
isAGENT: this.$route.params.isAGENT,
isSelected: false, isSelected: false,
tabNum: 0, tabNum: 0,
from: false, from: false,
...@@ -746,7 +756,7 @@ export default { ...@@ -746,7 +756,7 @@ export default {
} else { } else {
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
vm.idCardEditFlag = true // 身份证图片状态已修改 vm.idCardEditFlag = true // 身份证图片状态已修改
type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata), vm.idCardImgList.push({'url':imgdata,'fileName':'front'})) : (vm.idCardBack = imgdata, vm.idCardImgList.push({'url':imgdata,'fileName':'back'})) type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata), vm.idCardImgList.push({'url': imgdata, 'fileName': 'front'})) : (vm.idCardBack = imgdata, vm.idCardImgList.push({'url': imgdata, 'fileName': 'back'}))
} else if (ocrType === 'bankCard') { } else if (ocrType === 'bankCard') {
vm.bankImg = imgdata vm.bankImg = imgdata
vm.bankCardIdentify(imgdata) vm.bankCardIdentify(imgdata)
...@@ -772,7 +782,7 @@ export default { ...@@ -772,7 +782,7 @@ export default {
} else { } else {
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
vm.idCardEditFlag = true // 身份证图片状态已修改 vm.idCardEditFlag = true // 身份证图片状态已修改
type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0]), vm.idCardImgList.push({'url':imgUrl[0],'fileName':'front'})) : (vm.idCardBack = imgUrl[0], vm.idCardImgList.push({'url':imgUrl[0],'fileName':'back'})) type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0]), vm.idCardImgList.push({'url': imgUrl[0], 'fileName': 'front'})) : (vm.idCardBack = imgUrl[0], vm.idCardImgList.push({'url': imgUrl[0], 'fileName': 'back'}))
} else if (ocrType === 'bankCard') { } else if (ocrType === 'bankCard') {
vm.bankImg = imgUrl[0] vm.bankImg = imgUrl[0]
vm.bankCardIdentify(imgUrl[0]) vm.bankCardIdentify(imgUrl[0])
...@@ -1172,6 +1182,45 @@ export default { ...@@ -1172,6 +1182,45 @@ export default {
textarea { textarea {
text-align: right; text-align: right;
} }
.tax{
width:351px;
height: 78px;
background:#fff;
margin:0 auto;
margin-bottom: 30px;
display:flex;
align-items: center;
.left-img{
width:24px;
height:28px;
flex:2.5;
padding-left:24px;
}
div{
flex:25;
padding-left:24px;
span{
font-family: PingFangSC-Regular;
font-size: 14px;
color: #383F45;
letter-spacing: 0;
line-height: 22px;
}
p{
font-family: PingFangSC-Regular;
font-size: 12px;
color: rgba(56,63,69,0.50);
letter-spacing: 0;
line-height: 22px;
}
}
.right-img{
width:10px;
height:16px;
flex:1;
padding-right:21px;
}
}
.header { .header {
background-color: #00469c; background-color: #00469c;
color: #fff; color: #fff;
......
...@@ -316,6 +316,14 @@ ...@@ -316,6 +316,14 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake">
<img src="@/assets/userBind/tax.png" class="left-img">
<div>
<span>缴纳保证金</span>
<p>已缴纳:500000</p>
</div>
<img src="@/assets/userBind/arrow-right.png" class="right-img">
</div>
</div> </div>
<!-- <BankInfo v-show="tabNum==1" :bp_id="bp_id" @getInfo="getInfo" /> --> <!-- <BankInfo v-show="tabNum==1" :bp_id="bp_id" @getInfo="getInfo" /> -->
<BankInfo v-show="tabNum==1" :getBankList="getBankList" @getInfo="getInfo" @getList="getList" /> <BankInfo v-show="tabNum==1" :getBankList="getBankList" @getInfo="getInfo" @getList="getList" />
...@@ -408,6 +416,7 @@ export default { ...@@ -408,6 +416,7 @@ export default {
bpClass: '', bpClass: '',
from: false, from: false,
isApproved: false, isApproved: false,
isAGENT: this.$route.params.isAGENT,
img_url: {}, img_url: {},
typeList: [], typeList: [],
backList: [], backList: [],
...@@ -567,6 +576,11 @@ export default { ...@@ -567,6 +576,11 @@ export default {
} }
}) })
}, },
changeUndertake () {
this.$router.push({
name: 'MarginFirstPay',
})
},
addRows (e) { addRows (e) {
let addNum = parseInt(e.length / 16) let addNum = parseInt(e.length / 16)
if (addNum === 0) { if (addNum === 0) {
...@@ -1426,6 +1440,45 @@ export default { ...@@ -1426,6 +1440,45 @@ export default {
text-align: right; text-align: right;
// padding-top:16px; // padding-top:16px;
} }
.tax{
width:351px;
height: 78px;
background:#fff;
margin:0 auto;
margin-bottom: 15px;
display:flex;
align-items: center;
.left-img{
width:24px;
height:28px;
flex:2.5;
padding-left:24px;
}
div{
flex:25;
padding-left:24px;
span{
font-family: PingFangSC-Regular;
font-size: 14px;
color: #383F45;
letter-spacing: 0;
line-height: 22px;
}
p{
font-family: PingFangSC-Regular;
font-size: 12px;
color: rgba(56,63,69,0.50);
letter-spacing: 0;
line-height: 22px;
}
}
.right-img{
width:10px;
height:16px;
flex:1;
padding-right:21px;
}
}
.header { .header {
background-color: #00469c; background-color: #00469c;
color: #fff; color: #fff;
......
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