Commit 45b7b917 authored by 李晓兵's avatar 李晓兵

''

parent db386872
...@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService' ...@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService' import Jmessage from './scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') { // if (process.env.CONFIG_ENV === 'uat') {
const VConsole = require('vconsole') //const VConsole = require('vconsole')
new VConsole() // eslint-disable-line // new VConsole() // eslint-disable-line
// } // }
Vue.use(componentInstall) Vue.use(componentInstall)
......
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
code_name: item.annual_pay_times_n, code_name: item.annual_pay_times_n,
} }
}) })
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.info.annual_pay_times_n = obj.bp_type_n vm.info.annual_pay_times_n = obj.bp_type_n
}, },
}) })
......
...@@ -177,14 +177,18 @@ export default { ...@@ -177,14 +177,18 @@ export default {
}, },
// 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约 // 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约
goSign () { goSign () {
if (this.user_bp_type === 'AGENT') { if (this.bp_id) {
this.$router.push({ if (this.user_bp_type === 'AGENT') {
name: 'ContractList', this.$router.push({
}) name: 'ContractList',
})
} else {
this.$router.push({
name: 'ContractSigning',
})
}
} else { } else {
this.$router.push({ hlsPopup.showLongCenter('请先进行用户绑定')
name: 'ContractSigning',
})
} }
}, },
// 进入待确认,(进件确认) // 进入待确认,(进件确认)
...@@ -198,9 +202,13 @@ export default { ...@@ -198,9 +202,13 @@ export default {
}, },
// 进入我的还款 // 进入我的还款
goReimburse () { goReimburse () {
this.$router.push({ if (this.bp_id) {
name: 'ReimburseMyselfList', this.$router.push({
}) name: 'ReimburseMyselfList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
// 进入我的收藏 // 进入我的收藏
goMyProduct () { goMyProduct () {
...@@ -210,20 +218,32 @@ export default { ...@@ -210,20 +218,32 @@ export default {
}, },
// 进入发车申请 // 进入发车申请
goStart () { goStart () {
this.$router.push({ if (this.bp_id) {
name: 'StartList', this.$router.push({
}) name: 'StartList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
// 进入发车确认 // 进入发车确认
goCarConfirm () { goCarConfirm () {
this.$router.push({ if (this.bp_id) {
name: 'ConfirmList', this.$router.push({
}) name: 'ConfirmList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
goVideoSign () { goVideoSign () {
this.$router.push({ if (this.bp_id) {
name: 'VideoSign', this.$router.push({
}) name: 'VideoSign',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
changeHelp () { changeHelp () {
this.$router.push({ this.$router.push({
...@@ -231,9 +251,13 @@ export default { ...@@ -231,9 +251,13 @@ export default {
}) })
}, },
changeDrawbackList () { changeDrawbackList () {
this.$router.push({ if (this.bp_id) {
name: 'DrawbackList', this.$router.push({
}) name: 'DrawbackList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
changePay () { changePay () {
if (window.sessionStorage.getItem('bp_id') !== 'undefined') { if (window.sessionStorage.getItem('bp_id') !== 'undefined') {
...@@ -445,32 +469,36 @@ export default { ...@@ -445,32 +469,36 @@ export default {
// 认证入口 // 认证入口
async certification () { async certification () {
let vm = this let vm = this
if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') { if (vm.bp_id) {
let authUrl = await vm.getNpCertificationUrl() if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') {
if (authUrl) { let authUrl = await vm.getNpCertificationUrl()
vm.$router.push({ if (authUrl) {
name: 'Certification', vm.$router.push({
params: { name: 'Certification',
authUrl: authUrl, params: {
}, authUrl: authUrl,
}) },
} else { })
hlsPopup.showLongCenter('获取认证url失败') } else {
} hlsPopup.showLongCenter('获取认证url失败')
} else if (vm.bp_identity === 'ORG_NO') { }
let authUrl = await vm.getOrgCertificationUrl() } else if (vm.bp_identity === 'ORG_NO') {
if (authUrl) { let authUrl = await vm.getOrgCertificationUrl()
vm.$router.push({ if (authUrl) {
name: 'Certification', vm.$router.push({
params: { name: 'Certification',
authUrl: authUrl, params: {
}, authUrl: authUrl,
}) },
})
} else {
hlsPopup.showLongCenter('获取认证url失败')
}
} else { } else {
hlsPopup.showLongCenter('获取认证url失败') hlsPopup.showLongCenter('您已认证通过')
} }
} else { } else {
hlsPopup.showLongCenter('您已认证通过') hlsPopup.showLongCenter('请先进行用户绑定')
} }
}, },
// 获取个人认证url // 获取个人认证url
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=CyOWd7pmPurvZ0PERgxEOlAlifG0y7Sp"></script><title>xcmg</title><link href=./static/css/app.84881c6cb7d5be64864b11323ab85fa6.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.efd596b798e6119ce4a4.js></script><script type=text/javascript src=./static/js/app.972addcd4e5bd52ea724.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=CyOWd7pmPurvZ0PERgxEOlAlifG0y7Sp"></script><title>xcmg</title><link href=./static/css/app.a4266b42e9e2d7359bb4ca6f12f1e0dd.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.efd596b798e6119ce4a4.js></script><script type=text/javascript src=./static/js/app.12d489fd8cb9b17cd278.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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