diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dd0e93..a799570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.1.0 (2021-12-22) +# 0.1.0 (2021-12-27) ### 🌟 新功能 范围|描述|commitId @@ -78,6 +78,7 @@ - | 登录时提示是否合并账号样式修改 | [d82bf1a](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/d82bf1a) - | 细节调整,添加project-webview | [4d9050b](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/4d9050b) - | 绑定手机号 | [52e0352](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/52e0352) + - | 给设置角色加小红点 | [c3adab4](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/c3adab4) - | 缓存修改 | [63e1f0d](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/63e1f0d) - | 缓存基本信息 | [43bd024](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/43bd024) - | 获取用户收取那,提交用户信息 | [a3c54f1](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/a3c54f1) diff --git a/src/App.vue b/src/App.vue index e89684f..cdcffca 100644 --- a/src/App.vue +++ b/src/App.vue @@ -59,6 +59,7 @@ export default { async signin() { try { const data = await this.$u.api.signin(); + console.log('登录data: ', data); if (data && data.token) { this.setUser(data); this.setToken(data.token); diff --git a/src/components/Info/Info.vue b/src/components/Info/Info.vue index 0ad773e..a594b08 100644 --- a/src/components/Info/Info.vue +++ b/src/components/Info/Info.vue @@ -59,7 +59,6 @@ 是,每天能睡 { - uni.redirectTo({ url: '/pages/index/index' }); + uni.reLaunch({ url: `/pages/index/index?u=${this.userId}` }); }, 3000); } else { this.showElder = true; @@ -95,7 +98,7 @@ export default { } }) .catch(() => { - uni.redirectTo({ url: '/pages/index/index' }); + uni.reLaunch({ url: `/pages/index/index?u=${this.userId}` }); }); }, @@ -108,7 +111,7 @@ export default { this.setShowSetUser(true); }) .catch(() => { - uni.redirectTo({ url: '/pages/index/index' }); + uni.reLaunch({ url: `/pages/index/index?u=${this.userId}` }); }); }, @@ -169,6 +172,7 @@ export default { // 取消选择老人 cancelModel() { this.setShowChooseElder(false); + uni.reLaunch({ url: `/pages/index/index?u=${this.userId}` }); }, // 确定设置使用者 @@ -213,7 +217,7 @@ export default { duration: '3000', }); setTimeout(() => { - uni.redirectTo({ url: '/pages/index/index' }); + uni.reLaunch({ url: `/pages/index/index?u=${this.userId}` }); }, 2000); }, }, diff --git a/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue b/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue index 28d3f7c..ba4a4e9 100644 --- a/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue +++ b/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue @@ -31,7 +31,7 @@ - + @@ -114,11 +114,11 @@ export default { }, // 成功弹框 - showToast(type, title) { - console.log('type, title: ', type, title); + showToast(type, title, icon) { this.$refs.uToast.show({ type, title, + icon, }); }, diff --git a/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue b/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue index b2697e8..e9f8284 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue @@ -86,8 +86,8 @@ export default { }, // 成功弹框 - showToast(type, title) { - this.$emit('showToast', type, title); + showToast(type, title, icon) { + this.$emit('showToast', type, title, icon); }, // 添加 diff --git a/src/pagesProject/project/components/ConfigInfo/components/CaregiverDetail.vue b/src/pagesProject/project/components/ConfigInfo/components/CaregiverDetail.vue index 8f995a1..b096f20 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/CaregiverDetail.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/CaregiverDetail.vue @@ -238,12 +238,14 @@ export default { for (let j = 0; j < info.length; j++) { const item = info[j]; if (item.showOther && !item.otherValue) { - this.$t.ui.showToast(`请填写其他${item.name}`); + // this.$t.ui.showToast(`请填写其他${item.name}`); + this.$emit('showToast', 'default', `请填写其他${item.name}`, false); isComplete = false; break; } if (!item.value) { - this.$t.ui.showToast(`请填写${item.name}`); + // this.$t.ui.showToast(`请填写${item.name}`); + this.$emit('showToast', 'default', `请填写${item.name}`, false); isComplete = false; break; } diff --git a/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue b/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue index 05d5cf3..700ad54 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue @@ -67,8 +67,8 @@ export default { }, // 成功弹框 - showToast(type, title) { - this.$emit('showToast', type, title); + showToast(type, title, icon) { + this.$emit('showToast', type, title, icon); }, // 添加 diff --git a/src/pagesProject/project/components/ConfigInfo/components/MedicineDetail.vue b/src/pagesProject/project/components/ConfigInfo/components/MedicineDetail.vue index 75b55a9..1b788c6 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/MedicineDetail.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/MedicineDetail.vue @@ -5,7 +5,7 @@ {{ item.title }}