Commit 26119cf2 authored by linxin's avatar linxin

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

parent 457d2a3c
...@@ -72,7 +72,11 @@ ...@@ -72,7 +72,11 @@
<img src="@/assets/myInfo/unFace.png" > <img src="@/assets/myInfo/unFace.png" >
<p>待面签</p> <p>待面签</p>
</div> </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 <span
v-if="carCount > 0" v-if="carCount > 0"
:class="{'content-wrap-class-width':carCount>99, 'content-wrap-class':carCount<99}" :class="{'content-wrap-class-width':carCount>99, 'content-wrap-class':carCount<99}"
...@@ -83,7 +87,10 @@ ...@@ -83,7 +87,10 @@
</div> </div>
</div> </div>
<list-item :item-height="44" class="list"> <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" > <img slot="left-icon" src="@/assets/myInfo/myRefund.png" class="left-icon" >
<div slot="name">我的还款</div> <div slot="name">我的还款</div>
</item> </item>
...@@ -233,11 +240,6 @@ export default { ...@@ -233,11 +240,6 @@ export default {
break 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 () {}, created () {},
...@@ -250,6 +252,32 @@ export default { ...@@ -250,6 +252,32 @@ export default {
}, },
activated () {}, activated () {},
methods: { 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) { roleConfirm (role) {
this.roleSwitchFlag = false this.roleSwitchFlag = false
...@@ -676,6 +704,7 @@ export default { ...@@ -676,6 +704,7 @@ export default {
vm.user_bp_type = res.info.user_bp_type vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone vm.user_phone = res.info.user_phone
vm.watchBpStatus() vm.watchBpStatus()
vm.getHead()
if (vm.user_bp_type === 'AGENT') { if (vm.user_bp_type === 'AGENT') {
vm.isAGENT = true vm.isAGENT = true
} else { } else {
...@@ -769,7 +798,6 @@ export default { ...@@ -769,7 +798,6 @@ export default {
}, },
// 获取企业认证url // 获取企业认证url
async getOrgCertificationUrl () { async getOrgCertificationUrl () {
debugger
let vm = this let vm = this
let url = $config.basePath + 'auth_company_sign' let url = $config.basePath + 'auth_company_sign'
let param = { let param = {
...@@ -876,7 +904,7 @@ export default { ...@@ -876,7 +904,7 @@ export default {
width: 285px; width: 285px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content:flex-start; justify-content: flex-start;
align-items: center; align-items: center;
text-align: center; text-align: center;
p { p {
...@@ -889,8 +917,8 @@ export default { ...@@ -889,8 +917,8 @@ export default {
width: 48px; width: 48px;
height: 48px; height: 48px;
} }
div:not(:first-child){ div:not(:first-child) {
margin-left:60px; margin-left: 60px;
} }
} }
} }
...@@ -972,9 +1000,9 @@ export default { ...@@ -972,9 +1000,9 @@ export default {
color: #383f45; color: #383f45;
margin-top: 5px; margin-top: 5px;
} }
div:not(:first-child){ div:not(:first-child) {
margin-left:85px; margin-left: 85px;
} }
} }
.list { .list {
width: 359px; width: 359px;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<div slot="name" class="required">办事处代码</div> <div slot="name" class="required">办事处代码</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" > <input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" >
</item> </item>
<button v-if="isAddNewType" class="type-save">新增角色</button> <button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>
</list-item> </list-item>
<div class="userInfo">客户信息</div> <div class="userInfo">客户信息</div>
<div class="upload-id-card"> <div class="upload-id-card">
...@@ -634,6 +634,28 @@ export default { ...@@ -634,6 +634,28 @@ export default {
this.multiBpType.bp_type = '' this.multiBpType.bp_type = ''
this.isAddNewType = false 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 () { basicInfoQuery () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_np_info_query' 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