From bb5c0e36ed25abbed00f1efe471399ae0e90746c Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Mon, 17 Jan 2022 11:57:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BB=E4=BD=93=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 12 +- CHANGELOG.md | 1 + apis/tall.js | 8 +- pages/index/index.vue | 4 +- pages/project/project.vue | 380 +++++++++++++++++++------------------- 5 files changed, 206 insertions(+), 199 deletions(-) diff --git a/App.vue b/App.vue index 570d63b..b6bf46d 100644 --- a/App.vue +++ b/App.vue @@ -18,10 +18,10 @@ export default { this.checkNetwork(); // 监听网络状态 this.getSystemInfo(); // 获取系统设备信息、 - const token = this.$store.state.user.token || this.$storage.getStorageSync('anyringToken') || ''; - if (token) { - this.$store.commit('user/setToken', token); - } + // const token = this.$store.state.user.token || this.$storage.getStorageSync('anyringToken') || ''; + // if (token) { + // this.$store.commit('user/setToken', token); + // } // if (!token) { // this.$ui.showToast('获取用户信息失败, 请登录'); @@ -29,8 +29,8 @@ export default { // return; // } - // await this.syncLocalDataToStore(options.query.u); // 将localStorage里的数据同步到store里 - // token = await this.getToken(); + await this.syncLocalDataToStore('1217647686598135808'); // 将localStorage里的数据同步到store里 + const token = await this.getToken(); // this.noPhone(this.$store.state.user.phone); this.$store.dispatch('socket/initSocket'); diff --git a/CHANGELOG.md b/CHANGELOG.md index adbd4e2..2c9de93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - | 将时间轴改成swiper滑动 | [12384f9](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/12384f9) - | 日历页首页 | [561c8e6](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/561c8e6) - | 日历页添加 | [1b46a91](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b46a91) + - | 设置状态栏 | [9871356](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9871356) - | 时间轴接口 | [a95d005](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a95d005) - | 时间轴页面 | [e926b75](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/e926b75) - | 时间轴展示 | [8b1b380](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8b1b380) diff --git a/apis/tall.js b/apis/tall.js index 8ab591c..718e84b 100644 --- a/apis/tall.js +++ b/apis/tall.js @@ -1,9 +1,9 @@ import Config from '@/common/js/config.js' -// const apiUrl = Config.apiUrl; -const apiUrl = Config.apiUrlNew; -// const tall = `${apiUrl}/tall3/v3.0`; -const tall = `${apiUrl}/ptostall`; +const apiUrl = Config.apiUrl; +// const apiUrl = Config.apiUrlNew; +const tall = `${apiUrl}/tall3/v3.0`; +// const tall = `${apiUrl}/ptostall`; export function setupTall(app) { uni.$u.api = { ...uni.$u.api } || {}; diff --git a/pages/index/index.vue b/pages/index/index.vue index 4012f4a..6a98013 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -5,7 +5,7 @@ - + @@ -26,7 +26,7 @@ - + - -