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

'myinfo'

parent 5ed575c9
......@@ -108,7 +108,8 @@ export default {
}
},
watch: {
'user_bp_status' (newVal, oldVal) {
/*'user_bp_status' (newVal, oldVal) {
console.log('@@@@@@@@@@@@@@@@@')
if (!this.bp_id && newVal === 'NEW') {
this.description = '用户绑定'
} else if (this.bp_id && newVal === 'NEW') {
......@@ -121,12 +122,12 @@ export default {
} else {
this.description = '审批中'
}
/* if (newVal === 'APPROVED') {
/!* if (newVal === 'APPROVED') {
this.flag = false
} else {
this.flag = true
} */
},
} *!/
},*/
'user_bp_type' (newVal, oldVal) {
if (newVal === 'AGENT') {
this.isAGENT = true
......@@ -161,6 +162,21 @@ export default {
},
activated () {},
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 () {
if (this.user_bp_type === 'AGENT') {
......@@ -284,7 +300,8 @@ export default {
if (res.result === 'S') {
vm.hlsPopup.showLongCenter('解绑成功')
vm.userQuery()
vm.flag = true
//vm.flag = true
vm.approveBtn = false
} else {
vm.hlsPopup.showLongCenter(res.message)
}
......@@ -371,6 +388,7 @@ export default {
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.watchBpStatus()
} else {
this.hlsPopup.showLongCenter(res.message)
}
......
......@@ -844,6 +844,7 @@ export default {
vm.save_picture(list)
}
let error = function () {
hlsPopup.showLongCenter('请拍照')
}
hlsUtil.openCamera(cameraoptions, success, error)
},
......@@ -1011,7 +1012,7 @@ export default {
}
}
let error = function () {
hlsPopup.showLongCenter(error)
hlsPopup.showLongCenter('请拍照')
}
hlsUtil.openCamera(cameraoptions, success, error)
},
......
......@@ -1336,7 +1336,7 @@ export default {
}
}
let error = function () {
hlsPopup.showLongCenter(error)
hlsPopup.showLongCenter('请拍照')
}
hlsUtil.openCamera(cameraoptions, success, error)
},
......@@ -1705,6 +1705,7 @@ export default {
vm.laImg = imgdata
}
let error = function () {
hlsPopup.showLongCenter('请拍照')
}
hlsUtil.openCamera(cameraoptions, success, error)
},
......@@ -1714,8 +1715,12 @@ export default {
quality: 100,
}
let success = function (imgUrl) {
vm.LaEditFlag = true
vm.laImg = imgUrl[0]
if (imgUrl.length === 0) {
hlsPopup.showLongCenter('请选择一张图片')
} else {
vm.LaEditFlag = true
vm.laImg = imgUrl[0]
}
}
let error = function () {
}
......@@ -1762,6 +1767,7 @@ export default {
vm.save_picture(list)
}
let error = function () {
hlsPopup.showLongCenter('请拍照')
}
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