From 65833072c5f816d4d2340d6be622e2305a96bd4d Mon Sep 17 00:00:00 2001 From: aBin Date: Thu, 14 Oct 2021 16:25:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=92=E8=89=B2=E6=A0=8F=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9,=E4=BD=93=E9=AA=8C=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=A0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +-- .env.production | 6 +-- CHANGELOG.md | 3 +- src/apis/role.js | 20 +++++++++- src/apis/tall.js | 18 +++++++++ src/components/Experience/Experience.vue | 21 +++++++--- src/components/Globals/Globals.vue | 2 +- src/pages/project/project.vue | 51 ++++++++++++------------ src/store/role/mutations.js | 10 +++++ src/store/role/state.js | 1 + 10 files changed, 96 insertions(+), 42 deletions(-) diff --git a/.env.development b/.env.development index d16578a..403eac1 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ VUE_APP_NODE_ENV=development -VUE_APP_BASE_URL=https://test.tall.wiki/ -VUE_APP_API_URL=https://test.tall.wiki/gateway -VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws +VUE_APP_BASE_URL=https://www.tall.wiki/ +VUE_APP_API_URL=https://www.tall.wiki/gateway +VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws diff --git a/.env.production b/.env.production index ed91693..9a99c2b 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ VUE_APP_NODE_ENV=production -VUE_APP_BASE_URL=https://test.tall.wiki/ -VUE_APP_API_URL=https://test.tall.wiki/gateway -VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws +VUE_APP_BASE_URL=https://www.tall.wiki/ +VUE_APP_API_URL=https://www.tall.wiki/gateway +VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws diff --git a/CHANGELOG.md b/CHANGELOG.md index cbdbe1b..37828ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.1.0 (2021-10-12) +# 0.1.0 (2021-10-14) ### 🌟 新功能 范围|描述|commitId @@ -226,6 +226,7 @@ - | 测试接口 | [215e074](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/215e074) - | 插件查询及展示 | [4dba770](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/4dba770) - | 角色栏文字颜色修改 | [215c6b3](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/215c6b3) + - | 角色栏展示修改 | [2b70ff5](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/2b70ff5) - | 解决警告 | [c932b09](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/c932b09) - | 日常任务样式修改 | [4628301](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/4628301) - | 日历的更改 | [7353ac8](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/7353ac8) diff --git a/src/apis/role.js b/src/apis/role.js index d0cc264..1918c36 100644 --- a/src/apis/role.js +++ b/src/apis/role.js @@ -1,8 +1,24 @@ +const url = process.env.VUE_APP_API_URL; +// 查询首页按钮的名称及跳转 +export const queryMustShow = { + async index(params) { + try { + /* #endif */ + const data = await uni.$u.http.post(`${url}/carbasics/v4.0/role/queryMustShow`, params); + return data; + } catch (error) { + throw new Error(error); + } + }, +}; + const install = (Vue, vm) => { vm.$u.api = { ...vm.$u.api } || {}; - //根据项目id查找角色 + // 根据项目id查找所有体验角色 + vm.$u.api.queryMustShow = params => queryMustShow.index(params); + // 根据项目id查找角色 vm.$u.api.findShowRole = param => vm.$u.post(`${uni.$t.domain}/role/show`, param); - //根据项目id查找所有成员 + // 根据项目id查找所有成员 vm.$u.api.queryChecker = param => vm.$u.post(`${uni.$t.domain}/deliver/queryChecker`, param); }; diff --git a/src/apis/tall.js b/src/apis/tall.js index d21b334..bbc8e73 100644 --- a/src/apis/tall.js +++ b/src/apis/tall.js @@ -1,5 +1,6 @@ const apiUrl = process.env.VUE_APP_API_URL; export const tall = `${apiUrl}/tall3/v3.0`; +export const carbasics = `${apiUrl}/carbasics/v4.0`; import { mp } from '@/config/user.js'; @@ -18,10 +19,25 @@ export const login = { }, }; +// 查询首页按钮的名称及跳转 +export const getQueryButton = { + async index(params) { + try { + /* #endif */ + const data = await uni.$u.http.post(`${carbasics}/questionnaire/queryButton`, params); + return data; + } catch (error) { + throw new Error(error); + } + }, +}; + const install = (Vue, vm) => { vm.$u.api = { ...vm.$u.api } || {}; // 登录 vm.$u.api.signin = params => login.index(params); + // 查询首页的按钮展示及跳转 + vm.$u.api.getQueryButton = params => getQueryButton.index(params); // 获取图片验证码 vm.$u.api.getImageCode = () => vm.$u.get(`${tall}/users/code`); // 获取短信验证码 @@ -35,6 +51,8 @@ const install = (Vue, vm) => { vm.$u.api.getProjects = (startTime, endTime) => vm.$u.post(`${tall}/project/query`, { startTime, endTime }); // 查询日历是否有小红点 vm.$u.api.findRedPoint = (startTime, endTime) => vm.$u.post(`${tall}/project/day`, { startTime, endTime }); + // 查询首页的按钮展示及跳转 + vm.$u.api.getQueryButton = params => getQueryButton.index(params); }; export default { install }; diff --git a/src/components/Experience/Experience.vue b/src/components/Experience/Experience.vue index fb66b30..85523f4 100644 --- a/src/components/Experience/Experience.vue +++ b/src/components/Experience/Experience.vue @@ -3,7 +3,7 @@