diff --git a/apis/interfaces/menu.js b/apis/interfaces/menu.js
new file mode 100644
index 0000000..15d307c
--- /dev/null
+++ b/apis/interfaces/menu.js
@@ -0,0 +1,44 @@
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: 签到
+ */
+
+import { request } from '../index'
+
+// 首页
+const index = () =>{
+ return request({
+ url: 'health/recipes'
+ })
+}
+
+// 分类
+const categories = () =>{
+ return request({
+ url: 'health/recipe/categories'
+ })
+}
+
+// 分类-列表
+const queue = (data) =>{
+ return request({
+ url: 'health/recipe/lists',
+ data:data
+ })
+}
+
+// 详情
+const menuDet = (recipe) =>{
+ return request({
+ url: 'health/recipes/' + recipe
+ })
+}
+
+export {
+ index,
+ categories,
+ queue,
+ menuDet
+}
diff --git a/apis/interfaces/ranking.js b/apis/interfaces/ranking.js
new file mode 100644
index 0000000..dbba97e
--- /dev/null
+++ b/apis/interfaces/ranking.js
@@ -0,0 +1,29 @@
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: 食物排行
+ */
+
+import { request } from '../index'
+
+// 食物分类
+const categories = (data) =>{
+ return request({
+ url: 'health/foods/categories',
+ data: data
+ })
+}
+
+// 食物排行
+const foods = (data) =>{
+ return request({
+ url: 'health/foods',
+ data: data
+ })
+}
+
+export {
+ categories,
+ foods
+}
diff --git a/apis/interfaces/sign.js b/apis/interfaces/sign.js
new file mode 100644
index 0000000..58684dc
--- /dev/null
+++ b/apis/interfaces/sign.js
@@ -0,0 +1,19 @@
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: 签到
+ */
+
+import { request } from '../index'
+
+// 日历
+const date = () =>{
+ return request({
+ url: 'user/sign'
+ })
+}
+
+export {
+ date
+}
diff --git a/pages.json b/pages.json
index 84bdc3e..14a9d4b 100644
--- a/pages.json
+++ b/pages.json
@@ -128,7 +128,79 @@
"enablePullDownRefresh": true
}
}, {
- "path": "pages/im/index",
+ "path": "pages/sign/index",
+ "name": "signIndex",
+ "style": {
+ "navigationBarTitleText": "每日签到",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/menu/index",
+ "name": "menuIndex",
+ "style": {
+ "navigationBarTitleText": "食谱推荐",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/menu/classify",
+ "name": "menuClassify",
+ "style": {
+ "navigationBarTitleText": "食谱推荐",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/menu/details",
+ "name": "menuDetails",
+ "style": {
+ "navigationBarTitleText": "食谱详情",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/topic/index",
+ "name": "topicIndex",
+ "style": {
+ "navigationBarTitleText": "话题广场",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/topic/details",
+ "name": "topicDetails",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/ranking/index",
+ "name": "rankingIndex",
+ "style": {
+ "navigationBarTitleText": "食物排行",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/ranking/list",
+ "name": "rankingList",
+ "style": {
+ "navigationBarTitleText": "食物榜单",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/ranking/details",
+ "name": "rankingDetails",
+ "style": {
+ "navigationBarTitleText": "食物详情",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/im/index",
"name": "IM",
"style": {
"navigationBarTitleText": "im",
@@ -149,18 +221,18 @@
"selectedIconPath": "static/tabBar/tabBar_show_01.png",
"pagePath": "pages/record/index",
"text": "服务"
- },
- {
- "iconPath": "static/tabBar/tabBar_02.png",
- "selectedIconPath": "static/tabBar/tabBar_show_02.png",
- "pagePath": "pages/store/index",
- "text": "生活"
- },
- {
- "iconPath": "static/tabBar/tabBar_01.png",
- "selectedIconPath": "static/tabBar/tabBar_show_01.png",
- "pagePath": "pages/im/index",
- "text": "聊聊"
+ },
+ {
+ "iconPath": "static/tabBar/tabBar_02.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_02.png",
+ "pagePath": "pages/store/index",
+ "text": "生活"
+ },
+ {
+ "iconPath": "static/tabBar/tabBar_01.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_01.png",
+ "pagePath": "pages/im/index",
+ "text": "聊聊"
},
{
"iconPath": "static/tabBar/tabBar_03.png",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d18edf2..9cdc1ea 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -4,7 +4,7 @@
欢迎使用ZH健康
-
+
@@ -17,9 +17,9 @@
-
+
- 精选推荐
+ 精选推荐查看更多
@@ -31,39 +31,11 @@
- 话题广场
-
-
- 坚持做瑜伽可以减肥吗
-
- 阅读100
- 赞100
-
-
-
-
- 有没有减肥秘诀/减肥偏方/减肥窍门
-
- 阅读100
- 赞100
-
-
-
-
- 只需2招迅速变出小蛮腰
-
- 阅读100
- 赞100
-
-
-
-
- 有效方便的减肥方法有哪些
-
- 阅读100
- 赞100
-
-
+ 话题广场查看更多
+
@@ -89,7 +61,32 @@ export default {
describe: "健身搭配食用更佳",
color : "fbeed3",
thumb : 'https://cdn.uviewui.com/uview/goods/1.jpg'
- }]
+ }],
+ topicArr: [{
+ id: 1,
+ title: '坚持做瑜伽可以减肥吗',
+ read: '100',
+ praise: '100',
+ cover: 'http://up.boohee.cn/house/u/mboohee/img/others/7.2.jpg'
+ },{
+ id: 2,
+ title: '有没有减肥秘诀/减肥偏方/减肥窍门',
+ read: '100',
+ praise: '100',
+ cover: 'http://up.boohee.cn/house/u/mboohee/img/others/yundong1.jpg'
+ },{
+ id: 3,
+ title: '只需2招迅速变出小蛮腰',
+ read: '100',
+ praise: '100',
+ cover: 'http://up.boohee.cn/house/u/mboohee/img/others/yundong2.jpg'
+ },{
+ id: 3,
+ title: '有效方便的减肥方法有哪些',
+ read: '100',
+ praise: '100',
+ cover: 'http://up.boohee.cn/house/u/mboohee/img/others/jian.jpg'
+ }]
};
},
onLoad() {},
@@ -209,41 +206,17 @@ export default {
// 话题广场
.new-box {
margin: $margin;
+ position: relative;
.title {
font-weight: bold;
font-size: $title-size + 4;
}
- .new-item {
- position: relative;
- margin-top: $margin - 10;
- background: #f5fdfa;
- border-radius: $radius;
- padding: $padding ($padding * 2 + 200rpx) $padding $padding;
- .new-cover {
- position: absolute;
- right: $padding;
- top: $padding;
- width: 200rpx;
- height: 150rpx;
- border-radius: $radius;
- }
- .new-title {
- font-size: $title-size;
- line-height: 45rpx;
- min-height: 100rpx;
- margin-bottom: 10px;
- font-weight: bold;
- color: $text-color;
- }
- .new-tool {
- color: $text-gray;
- font-size: $title-size-sm;
- line-height: 40rpx;
- text {
- margin-right: $margin/2;
- }
- }
- }
+ .more {
+ position: absolute;
+ right: 0;
+ top: 0;
+ color: $text-gray;
+ }
}
// 卡片
diff --git a/pages/menu/classify.vue b/pages/menu/classify.vue
new file mode 100644
index 0000000..5611823
--- /dev/null
+++ b/pages/menu/classify.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/menu/details.vue b/pages/menu/details.vue
new file mode 100644
index 0000000..8b5d7fc
--- /dev/null
+++ b/pages/menu/details.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+ {{ menuData.description }}
+
+
+
+ 推荐搭配
+
+
+
+
+
+ 推荐搭配
+
+
+
+
+ 碳水化合物
+
+
+ 200.00g
+
+
+
+
+ 蛋白质
+
+
+ 200.00g
+
+
+
+
+ 脂肪
+
+
+ 200.00g
+
+
+
+
+ 千卡
+
+
+ {{ menuData.calory }}
+
+
+
+
+
+
+
+ 营养师建议
+
+
+ {{ menuData.suggest }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/menu/index.vue b/pages/menu/index.vue
new file mode 100644
index 0000000..a2a440f
--- /dev/null
+++ b/pages/menu/index.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/ranking/details.vue b/pages/ranking/details.vue
new file mode 100644
index 0000000..5f08d3c
--- /dev/null
+++ b/pages/ranking/details.vue
@@ -0,0 +1,321 @@
+
+
+
+
+
+
+ 白粉桃
+
+
+ 295千卡/100克
+
+
+
+
+
+
+
+ 推荐搭配
+
+
+
+ 白粉桃富含蛋白质、脂肪、维生素、挥发油、有机酸、矿物质、粗纤维和水化合物等多种成份。有解饥消渴,补养身体;且有增进人体胆汁分泌,促进消化和治疗便秘等功效
+
+
+
+
+
+
+ 热量
+
+
+
+ 千卡
+
+
+ 千焦
+
+
+
+
+
+ 113千卡
+
+
+ 每100克(可食用部分)
+
+
+
+
+
+
+
+ 营养成分
+
+
+ 单位:每100克
+
+
+
+
+
+ 营养元素
+
+
+ 含量
+
+
+ NPV%
+
+
+
+
+
+ 蛋白质
+
+
+ 0.1克
+
+
+ 0.1%
+
+
+
+
+ 脂肪
+
+
+ 0.4克
+
+
+ 0.7%
+
+
+
+
+ 碳水化合物
+
+
+ 0.2克
+
+
+ 0.1%
+
+
+
+
+
+ 注:以上为三大营养元素的功能比例,不是重量比例。其中,脂肪供能效率比较高,是碳水化合物和蛋白质的2.25倍
+
+
+
+
+
+
+ 相关商品
+
+
+
+
+
+
+ 黑果枸杞
+
+
+ ¥99.00
+
+
+
+ 查看商品
+
+
+
+
+
+
+
+
+
diff --git a/pages/ranking/index.vue b/pages/ranking/index.vue
new file mode 100644
index 0000000..f3d9554
--- /dev/null
+++ b/pages/ranking/index.vue
@@ -0,0 +1,120 @@
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/ranking/list.vue b/pages/ranking/list.vue
new file mode 100644
index 0000000..d73032c
--- /dev/null
+++ b/pages/ranking/list.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+ {{ name }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/sign/index.vue b/pages/sign/index.vue
new file mode 100644
index 0000000..533d247
--- /dev/null
+++ b/pages/sign/index.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+ 10天
+
+ 本月签到
+
+
+
+
+
+
+ 1天
+
+ 本月漏签
+
+
+
+
+
+ 2020-01-07
+
+
+
+ 1
+
+
+ 2
+
+
+ 3
+
+
+ 4
+
+
+ 5
+
+
+ 6
+
+
+ 7
+
+
+ 8
+
+
+
+
+ 立即签到
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/topic/details.vue b/pages/topic/details.vue
new file mode 100644
index 0000000..a34807d
--- /dev/null
+++ b/pages/topic/details.vue
@@ -0,0 +1,151 @@
+
+
+
+ 坚持做瑜伽可以减肥吗?
+
+
+
+
+
+ ZH大健康
+
+
+ ZH大健康官方账号
+
+
+
+
+ 提到骨质疏松,大家的第一反应估计就是补钙,骨质疏松是一种悄无声息的疾病,大多数患者在早期没有症状,随着骨质的逐步流失,逐渐会有全身关节疼痛、甚至稍有不慎便摔成骨折。
+ 骨质疏松是一种以低骨量和骨组织微结构破坏为特征,导致骨质脆性增加和易于骨折的全身性骨代谢性疾病。常见于老年人,但各年龄时期都可以发病。
+ 一般的症状包括腰背疼痛、身高下降、驼背以及骨折发生等,但事实上,在这些症状发生之前,骨量已经大量流失,骨质疏松也早已开始了。
+ 一旦发生骨质疏松性骨折危害巨大,特别是股骨颈等部位发生的骨折,会给患者带来严重的疼痛、高额医疗支出、致残失能等。
+ 严重影响生活质量的同时,给家庭也造成巨大的负担,并且会缩短患者寿命,因而骨质疏松性骨折常被称为“人生的最后一次骨折”。提到骨质疏松,大家的第一反应估计就是补钙,骨质疏松是一种悄无声息的疾病,大多数患者在早期没有症状,随着骨质的逐步流失,逐渐会有全身关节疼痛、甚至稍有不慎便摔成骨折。
+ 骨质疏松是一种以低骨量和骨组织微结构破坏为特征,导致骨质脆性增加和易于骨折的全身性骨代谢性疾病。常见于老年人,但各年龄时期都可以发病。
+ 一般的症状包括腰背疼痛、身高下降、驼背以及骨折发生等,但事实上,在这些症状发生之前,骨量已经大量流失,骨质疏松也早已开始了。
+ 一旦发生骨质疏松性骨折危害巨大,特别是股骨颈等部位发生的骨折,会给患者带来严重的疼痛、高额医疗支出、致残失能等。
+ 严重影响生活质量的同时,给家庭也造成巨大的负担,并且会缩短患者寿命,因而骨质疏松性骨折常被称为“人生的最后一次骨折”。
+
+
+
+ 相关商品
+
+
+
+
+
+ 黑果枸杞
+
+
+ ¥99.00
+
+
+
+ 查看商品
+
+
+
+
+
+
+
+
+
diff --git a/pages/topic/index.vue b/pages/topic/index.vue
new file mode 100644
index 0000000..808f4cc
--- /dev/null
+++ b/pages/topic/index.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/find/default_img.png b/static/find/default_img.png
new file mode 100644
index 0000000..0874e87
Binary files /dev/null and b/static/find/default_img.png differ
diff --git a/static/find/menu_0.jpg b/static/find/menu_0.jpg
new file mode 100644
index 0000000..9a3ee9e
Binary files /dev/null and b/static/find/menu_0.jpg differ
diff --git a/static/find/menu_1.jpg b/static/find/menu_1.jpg
new file mode 100644
index 0000000..ae21c6b
Binary files /dev/null and b/static/find/menu_1.jpg differ
diff --git a/static/find/menu_2.jpg b/static/find/menu_2.jpg
new file mode 100644
index 0000000..cfd6396
Binary files /dev/null and b/static/find/menu_2.jpg differ
diff --git a/static/find/menu_more.png b/static/find/menu_more.png
new file mode 100644
index 0000000..1608962
Binary files /dev/null and b/static/find/menu_more.png differ
diff --git a/static/find/ranking_img.png b/static/find/ranking_img.png
new file mode 100644
index 0000000..782a494
Binary files /dev/null and b/static/find/ranking_img.png differ
diff --git a/static/find/sign.png b/static/find/sign.png
new file mode 100644
index 0000000..ec6202f
Binary files /dev/null and b/static/find/sign.png differ
diff --git a/static/find/sign_active.png b/static/find/sign_active.png
new file mode 100644
index 0000000..68bbe29
Binary files /dev/null and b/static/find/sign_active.png differ
diff --git a/static/find/sign_img.png b/static/find/sign_img.png
new file mode 100644
index 0000000..ba16454
Binary files /dev/null and b/static/find/sign_img.png differ
diff --git a/uni_modules/oct-menu/changelog.md b/uni_modules/oct-menu/changelog.md
new file mode 100644
index 0000000..e69de29
diff --git a/uni_modules/oct-menu/components/oct-menu/oct-menu.vue b/uni_modules/oct-menu/components/oct-menu/oct-menu.vue
new file mode 100644
index 0000000..aa20acb
--- /dev/null
+++ b/uni_modules/oct-menu/components/oct-menu/oct-menu.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
diff --git a/uni_modules/oct-menu/package.json b/uni_modules/oct-menu/package.json
new file mode 100644
index 0000000..daedf71
--- /dev/null
+++ b/uni_modules/oct-menu/package.json
@@ -0,0 +1,80 @@
+{
+ "id": "oct-menu",
+ "displayName": "oct-menu",
+ "version": "1.0.0",
+ "description": "oct-menu",
+ "keywords": [
+ "oct-menu"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "",
+ "data": "",
+ "permissions": ""
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "u",
+ "aliyun": "u"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "u",
+ "vue3": "u"
+ },
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "u",
+ "Android Browser": "u",
+ "微信浏览器(Android)": "u",
+ "QQ浏览器(Android)": "u"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "u",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/oct-menu/readme.md b/uni_modules/oct-menu/readme.md
new file mode 100644
index 0000000..d21a4a3
--- /dev/null
+++ b/uni_modules/oct-menu/readme.md
@@ -0,0 +1 @@
+# oct-menu
\ No newline at end of file
diff --git a/uni_modules/oct-topic/changelog.md b/uni_modules/oct-topic/changelog.md
new file mode 100644
index 0000000..e69de29
diff --git a/uni_modules/oct-topic/components/oct-topic/oct-topic.vue b/uni_modules/oct-topic/components/oct-topic/oct-topic.vue
new file mode 100644
index 0000000..bdfdb5a
--- /dev/null
+++ b/uni_modules/oct-topic/components/oct-topic/oct-topic.vue
@@ -0,0 +1,63 @@
+
+
+
+
+ {{ item.title }}
+
+ 阅读{{ item.read }}
+ 赞{{ item.praise }}
+
+
+
+
+
+
+
+
diff --git a/uni_modules/oct-topic/package.json b/uni_modules/oct-topic/package.json
new file mode 100644
index 0000000..9d4eb62
--- /dev/null
+++ b/uni_modules/oct-topic/package.json
@@ -0,0 +1,80 @@
+{
+ "id": "oct-topic",
+ "displayName": "oct-topic",
+ "version": "1.0.0",
+ "description": "oct-topic",
+ "keywords": [
+ "oct-topic"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "",
+ "data": "",
+ "permissions": ""
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "u",
+ "aliyun": "u"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "u",
+ "vue3": "u"
+ },
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "u",
+ "Android Browser": "u",
+ "微信浏览器(Android)": "u",
+ "QQ浏览器(Android)": "u"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "u",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/oct-topic/readme.md b/uni_modules/oct-topic/readme.md
new file mode 100644
index 0000000..23c80e6
--- /dev/null
+++ b/uni_modules/oct-topic/readme.md
@@ -0,0 +1 @@
+# oct-topic
\ No newline at end of file