Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
593674f7
Commit
593674f7
authored
May 31, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:合并分支
parent
3109bd7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
router.js
server/router.js
+1
-1
index.js
src/router/index.js
+6
-6
enterprise.js
src/service/enterprise.js
+2
-2
No files found.
server/router.js
View file @
593674f7
...
@@ -6,7 +6,7 @@ const enterprise = require("./controllers/enterprise");
...
@@ -6,7 +6,7 @@ const enterprise = require("./controllers/enterprise");
const
router
=
Router
();
const
router
=
Router
();
const
API_VERSION
=
"/api/v1"
;
const
API_VERSION
=
"/api/v1"
;
router
.
post
(
`
${
API_VERSION
}
/login`
,
system
.
login
);
//
router.post(`${API_VERSION}/login`, system.login);
router
.
get
(
`
${
API_VERSION
}
/fetch_user`
,
system
.
fetch_user
);
router
.
get
(
`
${
API_VERSION
}
/fetch_user`
,
system
.
fetch_user
);
router
.
get
(
`
${
API_VERSION
}
/user/:type`
,
user
.
query
)
router
.
get
(
`
${
API_VERSION
}
/user/:type`
,
user
.
query
)
router
.
get
(
`
${
API_VERSION
}
/certification`
,
enterprise
.
entCheck
);
router
.
get
(
`
${
API_VERSION
}
/certification`
,
enterprise
.
entCheck
);
...
...
src/router/index.js
View file @
593674f7
...
@@ -34,17 +34,17 @@ const routes = [
...
@@ -34,17 +34,17 @@ const routes = [
{
{
path
:
'/enterprise/certification'
,
path
:
'/enterprise/certification'
,
name
:
'Certification'
,
name
:
'Certification'
,
component
:
Certification
,
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'@/pages/Enterprise/Certification'
)
// component: () => import(/* webpackChunkName: "enterprise" */ '@/pages/Enterprise/Certification')
},
},
{
{
path
:
'/enterprise/audit'
,
path
:
"/enterprise/audit"
,
name
:
'Audit'
,
name
:
"Audit"
,
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'@/pages/Enterprise/Audit'
)
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'@/pages/Enterprise/Audit'
)
},
},
{
{
path
:
'/enterprise/establish'
,
path
:
"/enterprise/establish"
,
name
:
'Establish'
,
name
:
"Establish"
,
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'@/pages/Enterprise/Establish'
)
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'@/pages/Enterprise/Establish'
)
},
},
//生活号管理
//生活号管理
...
...
src/service/enterprise.js
View file @
593674f7
...
@@ -2,12 +2,12 @@ import axios from "../utils/request";
...
@@ -2,12 +2,12 @@ import axios from "../utils/request";
// 企业信息检查
// 企业信息检查
export
async
function
entCheck
(
user_id
)
{
export
async
function
entCheck
(
user_id
)
{
const
res
=
await
axios
.
get
(
`api/v1/certification`
,
{
params
:
{
user_id
}
});
const
res
=
await
axios
.
get
(
`
/
api/v1/certification`
,
{
params
:
{
user_id
}
});
return
res
.
result
;
return
res
.
result
;
}
}
// 发送企业信息认证
// 发送企业信息认证
export
async
function
entCommit
(
query
)
{
export
async
function
entCommit
(
query
)
{
const
res
=
await
axios
.
post
(
`api/v1/emterprise_commit`
,
{
query
});
const
res
=
await
axios
.
post
(
`
/
api/v1/emterprise_commit`
,
{
query
});
return
res
.
result
;
return
res
.
result
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment