Commit 26b4e91f authored by zhangtong5@yidian-inc.com's avatar zhangtong5@yidian-inc.com

update:合并冲突

parents 49a5f22c 558bec75
const API_INTERNAL_URI = require("../config.js").API_INTERNAL_URI; const API_INTERNAL_URI = require("../config.js").API_INTERNAL_URI;
const req = require("../utils/request").httpReq; const req = require("../utils/request").httpReq;
// 获取企业信息验证 // 获取企业信息列表
exports.entCheck = async ctx => { exports.auditList = async ctx => {
const url = `${API_INTERNAL_URI}/merchant/inner/ent_check`; const url = `${API_INTERNAL_URI}/merchant/inner/audit_list`;
// const url = `http://bp-test.ini.yidian-inc.com/merchant/inner/ent_check`;
const { user_id } = ctx.request.query;
const opts = { const opts = {
url: url, url,
method: "GET", method: "POST",
qs: { json: true,
user_id body: ctx.request.body
}
}; };
ctx.body = await req(ctx, opts); ctx.body = await req(ctx, opts);
}; };
// 企业信息提交 // 企业认证获取验证码
exports.entCommit = async ctx => { exports.sendCode = async ctx => {
const url = `${API_INTERNAL_URI}/merchant/inner/ent_commit`; const url = `${API_INTERNAL_URI}/merchant/lifeinner/send_code`;
const opts = { const opts = {
url, url,
method: "POST", method: "POST",
...@@ -28,21 +25,21 @@ exports.entCommit = async ctx => { ...@@ -28,21 +25,21 @@ exports.entCommit = async ctx => {
ctx.body = await req(ctx, opts); ctx.body = await req(ctx, opts);
}; };
// 生活号检查 // 企业认证校验验证码
exports.checkLife = async ctx => { exports.checkCode = async ctx => {
const url = `${API_INTERNAL_URI}/merchant/enterprise/check_life`; const url = `${API_INTERNAL_URI}/merchant/lifeinner/check_code`;
const opts = { const opts = {
url, url,
method: "POST", method: "POST",
json: true, json: true,
body: ctx.request.body body: ctx.request.body
}; };
ctx.body = await req(ctx, opts); ctx.body = await req(ctx, opts)
}; };
// 创建生活号 // 企业信息提交
exports.createLife = async ctx => { exports.entCommit = async ctx => {
const url = `${API_INTERNAL_URI}/merchant/enterprise/create_life`; const url = `${API_INTERNAL_URI}/merchant/inner/ent_commit`;
const opts = { const opts = {
url, url,
method: "POST", method: "POST",
......
...@@ -10,11 +10,7 @@ const API_VERSION = "/api/v1"; ...@@ -10,11 +10,7 @@ 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.post(`${API_VERSION}/emterprise_commit`, enterprise.entCommit);
router.post(`${API_VERSION}/check_life`, enterprise.checkLife);
router.post(`${API_VERSION}/create_life`, enterprise.createLife);
//角色 //角色
router.post(`${API_VERSION}/merchant/authority/role_list`, role.getRole_list) router.post(`${API_VERSION}/merchant/authority/role_list`, role.getRole_list)
router.post(`${API_VERSION}/merchant/authority/add_role`, role.getAdd_role) router.post(`${API_VERSION}/merchant/authority/add_role`, role.getAdd_role)
...@@ -22,6 +18,12 @@ router.post(`${API_VERSION}/merchant/authority/update_role`, role.getUpdate_role ...@@ -22,6 +18,12 @@ router.post(`${API_VERSION}/merchant/authority/update_role`, role.getUpdate_role
router.post(`${API_VERSION}/merchant/authority/get_role_list`, role.getAll_role_list) router.post(`${API_VERSION}/merchant/authority/get_role_list`, role.getAll_role_list)
router.post(`${API_VERSION}/merchant/authority/get_role_info`, role.get_role_info) router.post(`${API_VERSION}/merchant/authority/get_role_info`, role.get_role_info)
router.post(`${API_VERSION}/merchant/authority/delete_role`, role.getDelete_role) router.post(`${API_VERSION}/merchant/authority/delete_role`, role.getDelete_role)
/* 企业认证 */
router.post(`${API_VERSION}/certification`, enterprise.auditList);
router.post(`${API_VERSION}/emterprise_commit`, enterprise.entCommit);
router.post(`${API_VERSION}/send_code`, enterprise.sendCode);
router.post(`${API_VERSION}/check_code`, enterprise.checkCode);
//生活号 //生活号
router.post(`${API_VERSION}/merchant/lifeinner/life_info`, life.get_life_info) router.post(`${API_VERSION}/merchant/lifeinner/life_info`, life.get_life_info)
router.get(`${API_VERSION}/merchant/lifeinner/life_list`, life.get_life_list) router.get(`${API_VERSION}/merchant/lifeinner/life_list`, life.get_life_list)
......
import { createApp } from 'vue'; import { createApp } from "vue";
import App from './App.vue'; import App from "./App.vue";
import router from './router'; import router from "./router";
import store from './store'; import store from "./store";
import ElementPlus from 'element-plus'; import ElementPlus from "element-plus";
import 'element-plus/lib/theme-chalk/index.css'; import "element-plus/lib/theme-chalk/index.css";
import 'dayjs/locale/zh-cn'; import "dayjs/locale/zh-cn";
import locale from 'element-plus/lib/locale/lang/zh-cn'; import locale from "element-plus/lib/locale/lang/zh-cn";
import { fetchCurrentUser } from './service/user'; /* import { fetchCurrentUser } from "./service/user";
import { checkPathAuth } from './utils/authUtil'; import { checkPathAuth } from "./utils/authUtil";
import { redirectToLogin } from './utils/util'; import { redirectToLogin } from "./utils/util"; */
// 处理路由权限 // 处理路由权限
router.beforeResolve(async (to, from, next) => { /* router.beforeResolve(async (to, from, next) => {
if (to.meta.requireAuth && !store.state.permissions) { if (to.meta.requireAuth && !store.state.permissions) {
const { status, user } = await fetchCurrentUser(); const { status, user } = await fetchCurrentUser();
if (status === 'success') { if (status === 'success') {
...@@ -31,10 +31,10 @@ router.beforeResolve(async (to, from, next) => { ...@@ -31,10 +31,10 @@ router.beforeResolve(async (to, from, next) => {
} else { } else {
next() next()
} }
}) }) */
createApp(App) createApp(App)
.use(router) .use(router)
.use(store) .use(store)
.use(ElementPlus, { locale }) .use(ElementPlus, { locale })
.mount('#app'); .mount("#app");
...@@ -290,17 +290,6 @@ ...@@ -290,17 +290,6 @@
align="center" align="center"
prop="adminId" prop="adminId"
></el-table-column> ></el-table-column>
<el-table-column
label="创建生活号"
align="center"
>
<template #default="scope">
<el-button
type="primary"
@click="onCreateLife(scope.row)"
>创建生活号</el-button>
</template>
</el-table-column>
</el-table> </el-table>
</el-card> </el-card>
<!-- 查看详情__创建生活号表单 --> <!-- 查看详情__创建生活号表单 -->
......
This diff is collapsed.
...@@ -3,31 +3,36 @@ ...@@ -3,31 +3,36 @@
*/ */
import axios from "../utils/request"; import axios from "../utils/request";
// 获取审核列表 /**
// export async function auditList (params) { * 获取企业信息列表
// const res = await axios.post(``) * @param query
// } */
export async function auditList (params) {
// 企业信息检查 const res = await axios.post(`/api/v1/certification`, params);
export async function entCheck (user_id) {
const res = await axios.get(`/api/v1/certification`, { params: { user_id } });
return res; return res;
} }
// 发送企业信息认证 /**
export async function entCommit (query) { * 企业认证审核获取验证码
const res = await axios.post(`/api/v1/emterprise_commit`, { query }); * @param enterprise_auth_record_id 企业认证审核id
*/
export async function sendCode (enterprise_auth_record_id) {
const res = await axios.post(`/api/v1/send_code`, enterprise_auth_record_id);
return res; return res;
} }
// 检查生活号信息唯一性 /**
export async function checkLife (life_account_name) { * 企业认证检测验证码
const res = await axios.post(`/api/v1/check_life`, { life_account_name }); * @param enterprise_auth_record_id 企业认证审核id
* @param code 验证码
*/
export async function checkCode (params) {
const res = await axios.post(`/api/v1/check_code`, params);
return res; return res;
} }
// 创建生活号 // 发送企业信息认证
export async function createLife (params) { export async function entCommit (query) {
const res = await axios.post(`/api/v1/create_life`, { params }); const res = await axios.post(`/api/v1/emterprise_commit`, query);
return res; return res;
} }
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