Commit 99d40f0a by 胡悦

Merge branch 'v1.0.3'

2 parents 9bc8bb13 4734a143
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.6", "glsx-components": "^1.3.6",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"qrcodejs2": "^0.0.2",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-amap": "^0.5.10", "vue-amap": "^0.5.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
} }
#app { #app {
background: #F4F5FA; background: #F4F5FA;
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 20px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
......
...@@ -74,11 +74,24 @@ const getSecret = params => { ...@@ -74,11 +74,24 @@ const getSecret = params => {
sign: true sign: true
}) })
} }
const getSuccess = params => {
params.method = 'scrm.api.work.wechat.config.agent.success'
params.sessionId = sessionId
return http_config({
url: '/rop-scrm-wechat/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getAccess, getAccess,
getStatus, getStatus,
getCheckStatus, getCheckStatus,
getQrcode, getQrcode,
getReportStatus, getReportStatus,
getSecret getSecret,
getSuccess
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,8 +8,15 @@ VueRouter.prototype.push = function push(location) { ...@@ -8,8 +8,15 @@ VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err) return originalPush.call(this, location).catch(err => err)
} }
function getRoutes(routesData) { function getRoutes(routesData) {
return routesData.reduce((routes, route) => { return routesData.reduce( (routes, route) => {
routes.push({ ...route, component: () => import('@/views' + route.compath + '.vue') }) // let status = await Vue.prototype.$apis.ww.getStatus({})
// console.log(status)
routes.push({
...route,
component: () => {
return import('@/views' + route.compath + '.vue')
}
})
return routes return routes
}, []) }, [])
} }
......
...@@ -69,6 +69,18 @@ const staticRoutes = Object.freeze([{ ...@@ -69,6 +69,18 @@ const staticRoutes = Object.freeze([{
path: '/baseInfo/relevance', path: '/baseInfo/relevance',
meta: {}, meta: {},
component: resolve => require([`@/views/baseInfo/relevance.vue`], resolve) component: resolve => require([`@/views/baseInfo/relevance.vue`], resolve)
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp/index',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
} }
]) ])
export default staticRoutes export default staticRoutes
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!