From 03c6628e84ae1f3b8f1b16da944c5e689cf05766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Fri, 24 Sep 2021 16:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/index.js | 2 +- apis/interfaces/certification.js | 21 +++++ pages.json | 11 ++- pages/certification/personal.vue | 140 ++++++++++++++----------------- pages/instrument/basics.vue | 7 +- pages/user/index.vue | 5 +- 6 files changed, 101 insertions(+), 85 deletions(-) create mode 100644 apis/interfaces/certification.js diff --git a/apis/index.js b/apis/index.js index 76f9f15..ec79c85 100644 --- a/apis/index.js +++ b/apis/index.js @@ -9,7 +9,7 @@ import store from '@/store' // 基础配置 const config = { - apiUrl : 'https://e-chain.cnskl.com/api/', + apiUrl : 'http://api.ahxh.shangkelian.cn/api/', timeout : 60000 } diff --git a/apis/interfaces/certification.js b/apis/interfaces/certification.js new file mode 100644 index 0000000..64ff5e5 --- /dev/null +++ b/apis/interfaces/certification.js @@ -0,0 +1,21 @@ +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName: 认证 + */ + +import { request } from '../index' + +// 个人认证 +const personal = (data) => { + return request({ + url: 'user/certification', + method: 'POST', + data: data + }) +} + +export { + personal +} diff --git a/pages.json b/pages.json index c7e0c8e..8340288 100644 --- a/pages.json +++ b/pages.json @@ -54,7 +54,7 @@ "path": "pages/coupons/management", "name": "couponsManagement", "style": { - "navigationBarTitleText":"创建优惠券" + "navigationBarTitleText":"优惠券管理" } }, { "path": "pages/coupons/add", @@ -66,7 +66,7 @@ "path": "pages/coupons/magDetails", "name": "couponsDetails", "style": { - "navigationBarTitleText":"优惠券管理" + "navigationBarTitleText":"优惠券详情" } }, { "path": "pages/coupons/selectGoods", @@ -80,6 +80,13 @@ "style": { "navigationBarTitleText":"登录" } + }, { + "path" : "pages/certification/personal", + "name" : "Personal", + "auth" : true, + "style": { + "navigationBarTitleText":"个人认证" + } }], "globalStyle": { "navigationStyle": "custom", diff --git a/pages/certification/personal.vue b/pages/certification/personal.vue index 388b9a8..227847d 100644 --- a/pages/certification/personal.vue +++ b/pages/certification/personal.vue @@ -1,9 +1,5 @@