diff --git a/.DS_Store b/.DS_Store index 6857663..0451fa5 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index a97fd25..4bbcf3c 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -14,6 +14,10 @@ { "launchtype" : "local" }, + "mp-weixin" : + { + "launchtype" : "local" + }, "type" : "uniCloud" } ] diff --git a/App.vue b/App.vue index 7b7b95a..002072b 100644 --- a/App.vue +++ b/App.vue @@ -1,11 +1,13 @@ + diff --git a/manifest.json b/manifest.json index 4b641da..c65cec7 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "ZH-HEALTH", "appid" : "__UNI__C29473D", "description" : "ZH-HEALTH,您手上的健康管理专家", - "versionName" : "1.0.7", - "versionCode" : 107, + "versionName" : "1.0.8", + "versionCode" : 108, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages.json b/pages.json index 6ace7f2..d662e57 100644 --- a/pages.json +++ b/pages.json @@ -35,9 +35,8 @@ "path": "pages/record/drink", "name": "Drink", "style": { - "navigationBarTitleText": "记录喝水", - "navigationBarBackgroundColor": "#34CE98", - "navigationBarTextStyle": "white" + "navigationBarTitleText": "记录", + "navigationStyle": "custom" } }, { @@ -53,9 +52,8 @@ "path": "pages/record/foods", "name": "RecordFoods", "style": { - "navigationBarTitleText": "食物记录", - "navigationBarBackgroundColor": "#34CE98", - "navigationBarTextStyle": "white" + "navigationBarTitleText": "", + "navigationStyle": "custom" } }, { @@ -80,7 +78,7 @@ "path": "pages/evaluation/list", "name": "EvaluationList", "style": { - "navigationBarTitleText": "评测列表", + "navigationBarTitleText": "健康评测", "navigationBarBackgroundColor": "#34CE98", "navigationBarTextStyle": "white" } @@ -369,10 +367,18 @@ "path": "pages/im/index", "name": "IM", "style": { - "navigationBarBackgroundColor": "#FFFFFF", "navigationStyle": "custom" } }, + { + "path": "pages/im/private/chat", + "style": { + "disableScroll": true, + "navigationBarTitleText": "聊天", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#F3F6FB" + } + }, { "path": "pages/im/private/call", "name": "imPrivateCall", @@ -402,40 +408,110 @@ "path": "pages/im/friends/pending", "name": "imFriendsPending", "style": { - "navigationBarTitleText": "新朋友", - "navigationBarBackgroundColor": "#F3F6FB" + "navigationBarTitleText": "新朋友" } }, { "path": "pages/im/friends/search", "name": "SearchFriend", "style": { - "navigationBarTitleText": "好友搜索", - "navigationBarBackgroundColor": "#F3F6FB" + "navigationBarTitleText": "好友搜索" } }, { "path": "pages/im/friends/info", "name": "imFriendsInfo", "style": { - "navigationBarTitleText": "好友资料", - "navigationBarBackgroundColor": "#FFFFFF" + "navigationBarTitleText": "用户资料" } }, { "path": "pages/im/friends/mine", "name": "imFriendsMine", "style": { - "navigationBarTitleText": "我的二维码", - "navigationBarBackgroundColor": "#34CE98", - "navigationBarTextStyle": "white" + "navigationBarTitleText": "我的资料" } }, { "path": "pages/im/group/index", - "name": "imGroup", + "name": "imGroups", "style": { - "navigationBarTitleText": "我的群聊" + "navigationBarTitleText": "我的群聊", + "app-plus": { + "titleNView": { + "type": "default", + "buttons": [{ + "float": "right", + "fontSrc": "/static/iconfont.ttf", + "text": "\ue60a", + "fontSize": "20px" + }] + } + } + } + }, + { + "path": "pages/im/group/chat", + "name": "imGroupChat", + "style": { + "navigationBarTitleText": "群聊", + "app-plus": { + "titleNView": { + "type": "default", + "buttons": [{ + "float": "right", + "fontSrc": "/static/iconfont.ttf", + "text": "\ue607", + "fontSize": "20px" + }] + } + } + } + }, + { + "path": "pages/im/group/apply", + "name": "imGroupApply", + "style": { + "navigationBarTitleText": "申请加群" + } + }, + { + "path": "pages/im/group/info", + "name": "imGroupInfo", + "style": { + "navigationBarTitleText": "群信息" + } + }, + { + "path": "pages/im/group/users", + "name": "imGroupUsers", + "style": { + "navigationBarTitleText": "群成员" + } + }, + { + "path": "pages/im/group/announcement", + "name": "imGroupAnnouncement", + "style": { + "navigationBarTitleText": "群公告", + "app-plus": { + "titleNView": { + "type": "default", + "buttons": [{ + "float": "right", + "fontSrc": "/static/iconfont.ttf", + "text": "\ue60a", + "fontSize": "20px" + }] + } + } + } + }, + { + "path": "pages/im/group/announceCreate", + "name": "imGroupAnnouncementCreate", + "style": { + "navigationBarTitleText": "发布群公告" } }, { @@ -548,14 +624,6 @@ "navigationBarBackgroundColor": "#34CE98", "navigationBarTextStyle": "white" } - }, { - "path": "pages/im/private/chat", - "style": { - "disableScroll": true, - "navigationBarTitleText": "聊天", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#F3F6FB" - } } ], "tabBar": { diff --git a/pages/auth/auth.vue b/pages/auth/auth.vue index 33a8231..05f59cf 100644 --- a/pages/auth/auth.vue +++ b/pages/auth/auth.vue @@ -1,267 +1,253 @@ - - - - - diff --git a/pages/essentialInfo/index.vue b/pages/essentialInfo/index.vue index 357dd56..a149002 100644 --- a/pages/essentialInfo/index.vue +++ b/pages/essentialInfo/index.vue @@ -11,21 +11,18 @@ - 基本信息 - + 基本信息 - 健康目标 - + 健康目标 - 行为习惯 - + 行为习惯 - + 生理性别和激素会影响我们的身体代谢食物的方式 @@ -47,19 +44,7 @@ 你的出生日期是? {{ showBirthday }} - + @@ -68,7 +53,6 @@ 身高体重信息对健康信息有重要参考价值 您的身高是? - {{ heightU }}厘米 @@ -84,51 +68,18 @@ 下一步 - + - + 您的目标是? - - - 减肥 - - - - 保持体重 - - - - 增肌 - + 减肥 + 保持体重 + 增肌 上一步 @@ -141,10 +92,7 @@ 您的打算减脂多少? - - {{ weightTargetU }} - 公斤 - + {{ weightTargetU }} 公斤 @@ -153,7 +101,7 @@ 下一步 - + @@ -162,51 +110,19 @@ 您的运动量是? - + 久坐不动 - + 少量运动 - + 中等运动量 - + 超强度运动 @@ -274,7 +190,6 @@ export default { }, computed: { showBirthday() { - console.log(moment(this.birthday).format('YYYY年MM月DD日')); return moment(this.birthday).format('YYYY年MM月DD日'); } }, @@ -297,6 +212,7 @@ export default { this.percentplan1 = uni.$u.range(0, 100, this.percentplan1 + 33.33); // 增加进度 this.heightWeightShow = true; // 展示身高体重模块 }, + // 年龄 ----- 取消选择年龄 camcelBirthday() { this.birthdayShow = false; // // 年龄页面弹窗不显示 @@ -304,6 +220,7 @@ export default { this.percentplan1 = 0; // 进度为0 this.sexShow = true; // 显示性别页面 }, + //年龄------------- 过滤出生年月日 formatter(type, value) { if (type === 'year') {return `${value}年`;} @@ -311,6 +228,8 @@ export default { if (type === 'day') {return `${value}日`;} return value; }, + + // 体重---------标尺滚动 scrollWeight(msg) { this.weightU = msg; @@ -332,6 +251,8 @@ export default { this.targetShow = true; // 目标页面展示 } }, + + // 目标 ------------点击 1上一页 2 下一页 targetClick(type) { if (type === 1) { @@ -368,6 +289,8 @@ export default { this.behaviorShow = true; // 打开行为习惯页面 } }, + + // 目标 运动量--------- 1上一页 2 下一页 targetBehaviorClick(type) { if (type === 1) { @@ -391,7 +314,6 @@ export default { exercise: this.activedbehaviarTarget, // 运动量 days: 1 }; - console.log(params, 'params.....'); recordsHealth(params) .then(res => { uni.showModal({ @@ -406,10 +328,12 @@ export default { }); }) .catch(err => { - uni.showToast({ - title: err.message, - icon: 'none' - }); + uni.showToast({ + title: err.message, + icon: "none", + duration: 2000, + mask: true + }) }); } } diff --git a/pages/evaluation/index.vue b/pages/evaluation/index.vue index e97b152..b512745 100644 --- a/pages/evaluation/index.vue +++ b/pages/evaluation/index.vue @@ -6,172 +6,175 @@ * @LastEditTime: 2022-01-13 17:16:09 --> diff --git a/pages/evaluation/introduce.vue b/pages/evaluation/introduce.vue index 8850f9d..37b52d7 100644 --- a/pages/evaluation/introduce.vue +++ b/pages/evaluation/introduce.vue @@ -6,129 +6,138 @@ * @LastEditTime: 2022-01-13 17:26:38 --> diff --git a/pages/evaluation/list.vue b/pages/evaluation/list.vue index c2a4daa..896493b 100644 --- a/pages/evaluation/list.vue +++ b/pages/evaluation/list.vue @@ -11,44 +11,20 @@ - - {{ item.title }} - {{ item.description || '--' }} - + {{ item.title }} {{ item.description || '--' }} - - {{ item.answer.total }} - 分 - + {{ item.answer.total }} - - · - {{ item.remark }} - + · {{ item.remark }} 查看历史结果 - - · - {{ item.remark }} - 人已测 | 约4~8分钟 - - + · {{ item.remark }} 人已测 | 约4~8分钟 + @@ -72,7 +48,14 @@ export default { getList() { evaluations().then(res => { this.evalList = res; - }); + }).catch(err => { + uni.showToast({ + title: err.message, + icon: "none", + duration: 2000, + mask: true + }) + }); }, // nowEva nowEva(item) { diff --git a/pages/evaluation/result.vue b/pages/evaluation/result.vue index 29fa042..6888e1e 100644 --- a/pages/evaluation/result.vue +++ b/pages/evaluation/result.vue @@ -53,9 +53,7 @@ 营养建议 - - {{ item }}. 低Gi - + {{ item }}. 低Gi 饮食营养及生活方式对维持面部年轻态影响较大,建议注意食材选择,逐步清淡口味;规律作息,逐个改善不良生活习惯;帮助改善当前皮肤状态。 @@ -63,10 +61,7 @@ - - 更多护肤知识 - - + 更多护肤知识 @@ -109,7 +104,14 @@ export default { ] }; this.loaded = true; - }); + }).catch(err => { + uni.showToast({ + title: err.message, + icon: "none", + duration: 2000, + mask: true + }) + }); }, reEva() { uni.navigateTo({ diff --git a/pages/im/components/conversationList.vue b/pages/im/components/conversationList.vue new file mode 100644 index 0000000..cf3eeca --- /dev/null +++ b/pages/im/components/conversationList.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/pages/im/components/friendApplyCell.vue b/pages/im/components/friendApplyCell.vue new file mode 100644 index 0000000..94f3263 --- /dev/null +++ b/pages/im/components/friendApplyCell.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/components/friend-apply-reject-agree/index.vue b/pages/im/components/friendApplyList.vue similarity index 86% rename from components/friend-apply-reject-agree/index.vue rename to pages/im/components/friendApplyList.vue index c05d136..10e2762 100644 --- a/components/friend-apply-reject-agree/index.vue +++ b/pages/im/components/friendApplyList.vue @@ -1,15 +1,14 @@