From cf1669ce8595989f3f5ebbb9b109785c8bd2410f Mon Sep 17 00:00:00 2001 From: WeiRan <2392355487@qq.com> Date: Wed, 28 Aug 2024 01:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=9E=E7=8E=B0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/authentication/message.js | 9 + src/api/background/company.js | 17 ++ src/router/index.js | 12 ++ src/utils/request.js | 2 +- src/views/background/company/index.vue | 241 ++++++++++++++++++++++ src/views/market/authentication/index.vue | 201 ++++++++++++++++++ src/views/market/easymessage/index.vue | 121 +++++++++++ src/views/market/product/index.vue | 13 +- 8 files changed, 609 insertions(+), 7 deletions(-) create mode 100644 src/api/authentication/message.js create mode 100644 src/api/background/company.js create mode 100644 src/views/background/company/index.vue create mode 100644 src/views/market/authentication/index.vue create mode 100644 src/views/market/easymessage/index.vue diff --git a/src/api/authentication/message.js b/src/api/authentication/message.js new file mode 100644 index 0000000..bd7b4b1 --- /dev/null +++ b/src/api/authentication/message.js @@ -0,0 +1,9 @@ +import request from "@/utils/request"; + +export function linkemail(data){ + return request({ + url:"/market/company/list", + method: "POST", + data: data + }) +} diff --git a/src/api/background/company.js b/src/api/background/company.js new file mode 100644 index 0000000..4841ef7 --- /dev/null +++ b/src/api/background/company.js @@ -0,0 +1,17 @@ +import request from "@/utils/request"; + +export function selectcompanyList(data){ + return request({ + url:"/background/company/list", + method: "POST", + data: data + }) +} + +export function selectcompanystatus(data){ + return request({ + url:"/background/company/companystatus", + method: "POST", + data: data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 718fccc..87207fb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -104,6 +104,18 @@ export const constantRoutes = [ } ] }, + { + path: '/authentication', + component: Layout, + children: [ + { + path: 'index', + name: 'authentication', + component: () => import('@/views/market/authentication/index.vue'), + meta: { title: '实名认证', icon: 'form' } + } + ] + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/utils/request.js b/src/utils/request.js index 406490d..f97c5eb 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -17,7 +17,7 @@ const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, // 超时 - timeout: 10000 + timeout: 20000 }) // request拦截器 diff --git a/src/views/background/company/index.vue b/src/views/background/company/index.vue new file mode 100644 index 0000000..7f7785a --- /dev/null +++ b/src/views/background/company/index.vue @@ -0,0 +1,241 @@ + + + + diff --git a/src/views/market/authentication/index.vue b/src/views/market/authentication/index.vue new file mode 100644 index 0000000..3a4885e --- /dev/null +++ b/src/views/market/authentication/index.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/views/market/easymessage/index.vue b/src/views/market/easymessage/index.vue new file mode 100644 index 0000000..72d272b --- /dev/null +++ b/src/views/market/easymessage/index.vue @@ -0,0 +1,121 @@ + + + + diff --git a/src/views/market/product/index.vue b/src/views/market/product/index.vue index 9103ae9..9bed3da 100644 --- a/src/views/market/product/index.vue +++ b/src/views/market/product/index.vue @@ -111,6 +111,12 @@ export default { submitForm(){ this.getList() }, + //产品类型 + gettypeList(){ + selectTypeList().then(response=>{ + this.typeList=response.data + }) + }, //选择类型 chosetype(index1){ this.ruleForm.productType=this.typeList[index1] @@ -148,12 +154,7 @@ export default { this.ruleForm.pageNum=val this.getList() }, - //产品类型 - gettypeList(){ - selectTypeList().then(response=>{ - this.typeList=response.data - }) - } + }, //生命周期 - 创建完成(可以访问当前this实例)", created() {