diff --git a/config/index.js b/config/index.js index e1099d9..2d047a3 100644 --- a/config/index.js +++ b/config/index.js @@ -9,15 +9,14 @@ function resolve (dir) { module.exports = { dev: { - // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { '/api': { // target: 'https://ceres.zkthink.com/api', // 测试 - //target: 'http://localhost:9007', // 测试 - target: 'http://122.9.152.120/ceres-app-api', // + target: 'http://localhost:9007', // 测试 + // target: 'http://122.9.152.120/ceres-app-api', // // target: 'https://shopapi.zkthink.com', // 测试 // target: 'http://3j073r3905.qicp.vip', // 测试 // target: 'http://3j073r3905.qicp.vip:29544', // 测试 diff --git a/src/api/user/user.js b/src/api/user/user.js index 773a3ac..a40ee0a 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -44,6 +44,15 @@ export function changePhone (data) { }) } +// 实名认证 +export function changeRealName (data) { + return request({ + url: '/user/updateRealName', + method: 'put', + data + }) +} + // 身份验证 export function checkUser (params) { return request({ diff --git a/src/router/index.js b/src/router/index.js index 3ec0982..516fbda 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -114,6 +114,16 @@ const router = new Router({ searchVisible: false } }, + // 实名认证 + { + path: '/changeRealName', + name: 'changeRealName', + component: () => import('@/views/userCenter/changeInfo/changeRealName'), + meta: { + logoText: '', + searchVisible: false + } + }, // 评论 { path: '/myEvaluate', diff --git a/src/views/userCenter/changeInfo/changePhone.vue b/src/views/userCenter/changeInfo/changePhone.vue index 1780032..5093d43 100644 --- a/src/views/userCenter/changeInfo/changePhone.vue +++ b/src/views/userCenter/changeInfo/changePhone.vue @@ -99,7 +99,7 @@ + diff --git a/src/views/userCenter/userInfo/userInfo.vue b/src/views/userCenter/userInfo/userInfo.vue index fb6a32f..5efca81 100644 --- a/src/views/userCenter/userInfo/userInfo.vue +++ b/src/views/userCenter/userInfo/userInfo.vue @@ -23,6 +23,12 @@ +
+ +
+ {{ userInfo.idCard }} +
+
@@ -42,6 +48,13 @@ 更换
+
+ +
+ {{ userInfo.realName }} + 实名认证 +
+
0) { + this.$router.push('/changeRealName') + } else { + this.$message({ + message: '请先绑定手机号!', + type: 'fail' + }) + } + } } }