Commit 96d12c53 authored by linxin's avatar linxin

个人中心头像

parent 3caedc26
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="top" style="margin-top:-1px;"> <div class="top" style="margin-top:-1px;">
<div class="card-top"> <div class="card-top">
<img src="@/assets/myInfo/1.png" @click="changePageHead" > <img src="@/assets/myInfo/1.png" @click="checkType" >
<div class="sign"> <div class="sign">
<span>{{ user_phone }}</span> <span>{{ user_phone }}</span>
<div> <div>
...@@ -195,8 +195,8 @@ export default { ...@@ -195,8 +195,8 @@ export default {
this.$router.push({ this.$router.push({
name: 'ContractSigning', name: 'ContractSigning',
params: { params: {
user_bp_type: this.user_bp_type, user_bp_type: this.user_bp_type,
}, },
}) })
} }
} else { } else {
...@@ -326,14 +326,6 @@ export default { ...@@ -326,14 +326,6 @@ export default {
}, },
}) })
}, },
showActionSheet () {
this.hlsPopup.showActionSheet({
buttonArray: ['查看头像', '选择头像'],
callback: (index) => {
console.log(index)
},
})
},
unBind () { unBind () {
let vm = this let vm = this
hlsPopup.showConfirm({ hlsPopup.showConfirm({
...@@ -373,6 +365,20 @@ export default { ...@@ -373,6 +365,20 @@ export default {
}, },
}) })
}, },
checkType () {
this.hlsPopup.showActionSheet({
buttonArray: this.user_bp_status === 'NEW' ? ['修改头像'] : ['修改头像', '用户信息', '角色切换'],
callback: (index) => {
if (index === 0) {
hlsPopup.showLongCenter('修改头像功能敬请期待!')
} else if (index === 1) {
this.changePageHead()
} else if (index === 2) {
hlsPopup.showLongCenter('角色切换功能敬请期待!')
}
},
})
},
changePageHead () { changePageHead () {
let vm = this let vm = this
if (vm.bp_id) { if (vm.bp_id) {
......
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