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

''

parent db386872
......@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') {
const VConsole = require('vconsole')
new VConsole() // eslint-disable-line
//const VConsole = require('vconsole')
// new VConsole() // eslint-disable-line
// }
Vue.use(componentInstall)
......
......@@ -202,7 +202,7 @@ export default {
code_name: item.annual_pay_times_n,
}
})
} else {
hlsPopup.showLongCenter(res.message)
......@@ -218,7 +218,7 @@ export default {
returnItem: function (index, obj) {
vm.info.annual_pay_times_n = obj.bp_type_n
},
})
......
......@@ -177,14 +177,18 @@ export default {
},
// 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约
goSign () {
if (this.user_bp_type === 'AGENT') {
this.$router.push({
name: 'ContractList',
})
if (this.bp_id) {
if (this.user_bp_type === 'AGENT') {
this.$router.push({
name: 'ContractList',
})
} else {
this.$router.push({
name: 'ContractSigning',
})
}
} else {
this.$router.push({
name: 'ContractSigning',
})
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
// 进入待确认,(进件确认)
......@@ -198,9 +202,13 @@ export default {
},
// 进入我的还款
goReimburse () {
this.$router.push({
name: 'ReimburseMyselfList',
})
if (this.bp_id) {
this.$router.push({
name: 'ReimburseMyselfList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
// 进入我的收藏
goMyProduct () {
......@@ -210,20 +218,32 @@ export default {
},
// 进入发车申请
goStart () {
this.$router.push({
name: 'StartList',
})
if (this.bp_id) {
this.$router.push({
name: 'StartList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
// 进入发车确认
goCarConfirm () {
this.$router.push({
name: 'ConfirmList',
})
if (this.bp_id) {
this.$router.push({
name: 'ConfirmList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
goVideoSign () {
this.$router.push({
name: 'VideoSign',
})
if (this.bp_id) {
this.$router.push({
name: 'VideoSign',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
changeHelp () {
this.$router.push({
......@@ -231,9 +251,13 @@ export default {
})
},
changeDrawbackList () {
this.$router.push({
name: 'DrawbackList',
})
if (this.bp_id) {
this.$router.push({
name: 'DrawbackList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
changePay () {
if (window.sessionStorage.getItem('bp_id') !== 'undefined') {
......@@ -445,32 +469,36 @@ export default {
// 认证入口
async certification () {
let vm = this
if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') {
let authUrl = await vm.getNpCertificationUrl()
if (authUrl) {
vm.$router.push({
name: 'Certification',
params: {
authUrl: authUrl,
},
})
} else {
hlsPopup.showLongCenter('获取认证url失败')
}
} else if (vm.bp_identity === 'ORG_NO') {
let authUrl = await vm.getOrgCertificationUrl()
if (authUrl) {
vm.$router.push({
name: 'Certification',
params: {
authUrl: authUrl,
},
})
if (vm.bp_id) {
if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') {
let authUrl = await vm.getNpCertificationUrl()
if (authUrl) {
vm.$router.push({
name: 'Certification',
params: {
authUrl: authUrl,
},
})
} else {
hlsPopup.showLongCenter('获取认证url失败')
}
} else if (vm.bp_identity === 'ORG_NO') {
let authUrl = await vm.getOrgCertificationUrl()
if (authUrl) {
vm.$router.push({
name: 'Certification',
params: {
authUrl: authUrl,
},
})
} else {
hlsPopup.showLongCenter('获取认证url失败')
}
} else {
hlsPopup.showLongCenter('获取认证url失败')
hlsPopup.showLongCenter('您已认证通过')
}
} else {
hlsPopup.showLongCenter('您已认证通过')
hlsPopup.showLongCenter('请先进行用户绑定')
}
},
// 获取个人认证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>
\ No newline at end of file
<!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
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