Commit 26119cf2 authored by linxin's avatar linxin

头像保存查询,新增角色保存

parent 457d2a3c
......@@ -72,7 +72,11 @@
<img src="@/assets/myInfo/unFace.png" >
<p>待面签</p>
</div>
<div v-if="(user_bp_type==='TENANT')||(user_bp_type==='GUTA')" class="content-wrap" @click="goCarConfirm">
<div
v-if="(user_bp_type==='TENANT')||(user_bp_type==='GUTA')"
class="content-wrap"
@click="goCarConfirm"
>
<span
v-if="carCount > 0"
:class="{'content-wrap-class-width':carCount>99, 'content-wrap-class':carCount<99}"
......@@ -83,7 +87,10 @@
</div>
</div>
<list-item :item-height="44" class="list">
<item v-if="(user_bp_type==='TENANT')||(user_bp_type==='GUTA')" @click.native="goReimburse">
<item
v-if="(user_bp_type==='TENANT')||(user_bp_type==='GUTA')"
@click.native="goReimburse"
>
<img slot="left-icon" src="@/assets/myInfo/myRefund.png" class="left-icon" >
<div slot="name">我的还款</div>
</item>
......@@ -233,11 +240,6 @@ export default {
break
}
}
// if (newVal === 'NP_NO' || newVal === 'ORG_NO' || newVal === 'ORG_L_NO' || newVal === 'ORG_AUTH_NO ' || !newVal) {
// this.elecStatus = false
// } else if (newVal === 'NP_YES' || newVal === 'ORG_YES' || newVal === 'ORG_L_YES' || newVal === 'ORG_AUTH_YES') {
// this.elecStatus = true
// }
},
},
created () {},
......@@ -250,6 +252,32 @@ export default {
},
activated () {},
methods: {
// 查询头像
getHead () {
let vm = this
let url = process.env.basePath + 'app_attment_query'
let param = {
master: {
source_type: 'HLS_APP_USER',
pkvalue: vm.bp_id,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
if (res.info) {
vm.upLoadObj = process.env.filePath +
'attachment_id=' +
res.info.attachment_id +
'&access_token=' +
window.localStorage.access_token
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 选择角色后确定
roleConfirm (role) {
this.roleSwitchFlag = false
......@@ -676,6 +704,7 @@ export default {
vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone
vm.watchBpStatus()
vm.getHead()
if (vm.user_bp_type === 'AGENT') {
vm.isAGENT = true
} else {
......@@ -769,7 +798,6 @@ export default {
},
// 获取企业认证url
async getOrgCertificationUrl () {
debugger
let vm = this
let url = $config.basePath + 'auth_company_sign'
let param = {
......@@ -876,7 +904,7 @@ export default {
width: 285px;
margin: 0 auto;
display: flex;
justify-content:flex-start;
justify-content: flex-start;
align-items: center;
text-align: center;
p {
......@@ -889,8 +917,8 @@ export default {
width: 48px;
height: 48px;
}
div:not(:first-child){
margin-left:60px;
div:not(:first-child) {
margin-left: 60px;
}
}
}
......@@ -972,9 +1000,9 @@ export default {
color: #383f45;
margin-top: 5px;
}
div:not(:first-child){
margin-left:85px;
}
div:not(:first-child) {
margin-left: 85px;
}
}
.list {
width: 359px;
......
......@@ -51,7 +51,7 @@
<div slot="name" class="required">办事处代码</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" >
</item>
<button v-if="isAddNewType" class="type-save">新增角色</button>
<button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>
</list-item>
<div class="userInfo">客户信息</div>
<div class="upload-id-card">
......@@ -634,6 +634,28 @@ export default {
this.multiBpType.bp_type = ''
this.isAddNewType = false
},
addNewRole () {
let vm = this
let url = process.env.basePath + 'bp_type_save'
let param = {
master: {
bp_id: vm.fromPromisePay
? window.localStorage.getItem('bp_id')
: vm.$route.params.bp_id,
bp_type: vm.multiBpType.bp_type,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('新增成功')
vm.isAddNewType = false
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
basicInfoQuery () {
let vm = this
let url = process.env.basePath + 'bp_np_info_query'
......
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