Commit 74ce1584 authored by 李晓兵's avatar 李晓兵

'myinfo'

parent 5ed575c9
...@@ -108,7 +108,8 @@ export default { ...@@ -108,7 +108,8 @@ export default {
} }
}, },
watch: { watch: {
'user_bp_status' (newVal, oldVal) { /*'user_bp_status' (newVal, oldVal) {
console.log('@@@@@@@@@@@@@@@@@')
if (!this.bp_id && newVal === 'NEW') { if (!this.bp_id && newVal === 'NEW') {
this.description = '用户绑定' this.description = '用户绑定'
} else if (this.bp_id && newVal === 'NEW') { } else if (this.bp_id && newVal === 'NEW') {
...@@ -121,12 +122,12 @@ export default { ...@@ -121,12 +122,12 @@ export default {
} else { } else {
this.description = '审批中' this.description = '审批中'
} }
/* 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) { 'user_bp_type' (newVal, oldVal) {
if (newVal === 'AGENT') { if (newVal === 'AGENT') {
this.isAGENT = true this.isAGENT = true
...@@ -161,6 +162,21 @@ export default { ...@@ -161,6 +162,21 @@ export default {
}, },
activated () {}, activated () {},
methods: { methods: {
// 监听用户状态
watchBpStatus(){
if (!this.bp_id && this.user_bp_status === 'NEW') {
this.description = '用户绑定'
} else if (this.bp_id && this.user_bp_status === 'NEW') {
this.description = '待提交'
} else if (this.bp_id && this.user_bp_status === 'APPROVED') {
this.description = '解除绑定'
this.approveBtn = true
} else if ((this.bp_id && this.user_bp_status === 'RETURN') || (this.bp_id && this.user_bp_status === 'REJECT')) {
this.description = '审核未通过'
} else {
this.description = '审批中'
}
},
// 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约 // 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约
goSign () { goSign () {
if (this.user_bp_type === 'AGENT') { if (this.user_bp_type === 'AGENT') {
...@@ -284,7 +300,8 @@ export default { ...@@ -284,7 +300,8 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.showLongCenter('解绑成功') vm.hlsPopup.showLongCenter('解绑成功')
vm.userQuery() vm.userQuery()
vm.flag = true //vm.flag = true
vm.approveBtn = false
} else { } else {
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
} }
...@@ -371,6 +388,7 @@ export default { ...@@ -371,6 +388,7 @@ export default {
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_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone vm.user_phone = res.info.user_phone
vm.watchBpStatus()
} else { } else {
this.hlsPopup.showLongCenter(res.message) this.hlsPopup.showLongCenter(res.message)
} }
......
...@@ -844,6 +844,7 @@ export default { ...@@ -844,6 +844,7 @@ export default {
vm.save_picture(list) vm.save_picture(list)
} }
let error = function () { let error = function () {
hlsPopup.showLongCenter('请拍照')
} }
hlsUtil.openCamera(cameraoptions, success, error) hlsUtil.openCamera(cameraoptions, success, error)
}, },
...@@ -1011,7 +1012,7 @@ export default { ...@@ -1011,7 +1012,7 @@ export default {
} }
} }
let error = function () { let error = function () {
hlsPopup.showLongCenter(error) hlsPopup.showLongCenter('请拍照')
} }
hlsUtil.openCamera(cameraoptions, success, error) hlsUtil.openCamera(cameraoptions, success, error)
}, },
......
...@@ -1336,7 +1336,7 @@ export default { ...@@ -1336,7 +1336,7 @@ export default {
} }
} }
let error = function () { let error = function () {
hlsPopup.showLongCenter(error) hlsPopup.showLongCenter('请拍照')
} }
hlsUtil.openCamera(cameraoptions, success, error) hlsUtil.openCamera(cameraoptions, success, error)
}, },
...@@ -1705,6 +1705,7 @@ export default { ...@@ -1705,6 +1705,7 @@ export default {
vm.laImg = imgdata vm.laImg = imgdata
} }
let error = function () { let error = function () {
hlsPopup.showLongCenter('请拍照')
} }
hlsUtil.openCamera(cameraoptions, success, error) hlsUtil.openCamera(cameraoptions, success, error)
}, },
...@@ -1714,8 +1715,12 @@ export default { ...@@ -1714,8 +1715,12 @@ export default {
quality: 100, quality: 100,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
vm.LaEditFlag = true if (imgUrl.length === 0) {
vm.laImg = imgUrl[0] hlsPopup.showLongCenter('请选择一张图片')
} else {
vm.LaEditFlag = true
vm.laImg = imgUrl[0]
}
} }
let error = function () { let error = function () {
} }
...@@ -1762,6 +1767,7 @@ export default { ...@@ -1762,6 +1767,7 @@ export default {
vm.save_picture(list) vm.save_picture(list)
} }
let error = function () { let error = function () {
hlsPopup.showLongCenter('请拍照')
} }
hlsUtil.openCamera(cameraoptions, success, error) hlsUtil.openCamera(cameraoptions, success, error)
}, },
......
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