mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 11:06:43 +08:00
路由修改
This commit is contained in:
@@ -1,19 +1,17 @@
|
|||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
export default {
|
export default {
|
||||||
refreshImg() {
|
refreshImg() {
|
||||||
if (window.WebViewJavascriptBridge) {
|
EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
EWebBridge.webCallAppInJs('webview_right_button', {
|
btns: [
|
||||||
btns: [
|
{
|
||||||
{
|
img: config.mainUrl + '/images/refresh.png',
|
||||||
img: config.mainUrl + '/images/refresh.png',
|
route: {
|
||||||
route: {
|
flag: '',
|
||||||
flag: '',
|
extra: {}
|
||||||
extra: {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
})
|
]
|
||||||
}
|
})
|
||||||
},
|
},
|
||||||
closeBtn(that) {
|
closeBtn(that) {
|
||||||
if (window.WebViewJavascriptBridge) {
|
if (window.WebViewJavascriptBridge) {
|
||||||
|
|||||||
@@ -92,12 +92,19 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
//活动人力
|
//活动人力
|
||||||
path: '/institutionalPerform/institutionalManpower',
|
path: '/institutionalPerform/institutionalManpower/:manageLv/:manageCode',
|
||||||
name: 'InstitutionalManpower',
|
name: 'InstitutionalManpower',
|
||||||
component: InstitutionalManpower,
|
component: InstitutionalManpower,
|
||||||
meta: {
|
meta: {
|
||||||
title: '机构业绩',
|
title: '机构业绩',
|
||||||
index: 1
|
index: 1
|
||||||
}
|
}
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/:manageCode',
|
||||||
|
// component: InstitutionalManpower,
|
||||||
|
// name: 'InstitutionalManpower1'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -7,6 +7,11 @@ import Ebiz from './ebiz'
|
|||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
|
//解决路由重复的报错
|
||||||
|
const originalPush = Router.prototype.push
|
||||||
|
Router.prototype.push = function push(location) {
|
||||||
|
return originalPush.call(this, location).catch(err => err)
|
||||||
|
}
|
||||||
const constantRouterMap = [...App, ...Example, ...Ebiz] //后续可以删减模块
|
const constantRouterMap = [...App, ...Example, ...Ebiz] //后续可以删减模块
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
|
|||||||
@@ -13,9 +13,10 @@ const myMixin = {
|
|||||||
created() {
|
created() {
|
||||||
var that = this
|
var that = this
|
||||||
console.log(this)
|
console.log(this)
|
||||||
|
setTimeout(() => {
|
||||||
getApp.closeBtn(that)
|
getApp.closeBtn(that)
|
||||||
window.appCallBack = that.appCallBack
|
window.appCallBack = that.appCallBack
|
||||||
|
}, 400)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default myMixin
|
export default myMixin
|
||||||
|
|||||||
@@ -138,12 +138,16 @@ export default {
|
|||||||
toDetail(manageCode) {
|
toDetail(manageCode) {
|
||||||
|
|
||||||
|
|
||||||
this.manageLv = '0' + (Number(this.manageLv) + 1)
|
let manageLv = '0' + (Number(this.manageLv) + 1)
|
||||||
this.manageCode = manageCode
|
// this.manageCode = manageCode
|
||||||
this.getlComPremDetil()
|
console.log(`/institutionalPerform/institutionalManpower/${manageLv}/${manageCode}`)
|
||||||
|
|
||||||
document.querySelector('.layer').scrollTo(0, 0);//重置滚动条
|
this.$router.push(`/institutionalPerform/institutionalManpower/${manageLv}/${manageCode}`) ;
|
||||||
|
this.manageLv=this.$route.params.manageLv;
|
||||||
|
this.manageCode=this.$route.params.manageCode
|
||||||
|
console.log('this.manageLv',this.manageLv)
|
||||||
|
this.getlComPremDetil()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getCurrentDate() {
|
getCurrentDate() {
|
||||||
@@ -225,6 +229,9 @@ export default {
|
|||||||
// setInterval(this.getCurrentDate, 1000 * 60)
|
// setInterval(this.getCurrentDate, 1000 * 60)
|
||||||
|
|
||||||
this.dateVal = util.getMonthLastDay()
|
this.dateVal = util.getMonthLastDay()
|
||||||
|
this.manageLv=this.$route.params.manageLv;
|
||||||
|
this.manageCode=this.$route.params.manageCode
|
||||||
|
|
||||||
this.getlComPremDetil()
|
this.getlComPremDetil()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user