From 96018aa0b4c4c3f9f080fe3b458fd364b12a518a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=93=A5?= <17630302050@163.com> Date: Wed, 28 May 2025 22:43:31 +0800 Subject: [PATCH] ewew --- app.json | 8 ++++ pages/article/index.js | 66 +++++++++++++++++++++++++++++ pages/article/index.json | 4 ++ pages/article/index.less | 5 +++ pages/article/index.wxml | 6 +++ pages/home/index.js | 6 ++- pages/home/index.wxml | 4 +- pages/my/index.js | 10 +++-- pages/my/index.wxml | 2 +- pages/therapeuticRegimen/index.js | 66 +++++++++++++++++++++++++++++ pages/therapeuticRegimen/index.json | 5 +++ pages/therapeuticRegimen/index.less | 39 +++++++++++++++++ pages/therapeuticRegimen/index.wxml | 23 ++++++++++ project.private.config.json | 11 ++++- 14 files changed, 246 insertions(+), 9 deletions(-) create mode 100644 pages/article/index.js create mode 100644 pages/article/index.json create mode 100644 pages/article/index.less create mode 100644 pages/article/index.wxml create mode 100644 pages/therapeuticRegimen/index.js create mode 100644 pages/therapeuticRegimen/index.json create mode 100644 pages/therapeuticRegimen/index.less create mode 100644 pages/therapeuticRegimen/index.wxml diff --git a/app.json b/app.json index b2aed28..fbbedba 100644 --- a/app.json +++ b/app.json @@ -52,6 +52,14 @@ "root": "pages/emergency", "name": "emergency", "pages": ["index"] + },{ + "root": "pages/article", + "name": "article", + "pages": ["index"] + },{ + "root": "pages/therapeuticRegimen", + "name": "therapeuticRegimen", + "pages": ["index"] } ], "window": { diff --git a/pages/article/index.js b/pages/article/index.js new file mode 100644 index 0000000..6dae095 --- /dev/null +++ b/pages/article/index.js @@ -0,0 +1,66 @@ +// pages/article/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/article/index.json b/pages/article/index.json new file mode 100644 index 0000000..c59efc1 --- /dev/null +++ b/pages/article/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "文章详情" +} \ No newline at end of file diff --git a/pages/article/index.less b/pages/article/index.less new file mode 100644 index 0000000..a8c285d --- /dev/null +++ b/pages/article/index.less @@ -0,0 +1,5 @@ +/* pages/article/index.wxss */ + +.rich{ + padding: 28rpx; +} \ No newline at end of file diff --git a/pages/article/index.wxml b/pages/article/index.wxml new file mode 100644 index 0000000..c436be7 --- /dev/null +++ b/pages/article/index.wxml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pages/home/index.js b/pages/home/index.js index 408ee1e..1bc43e8 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -160,9 +160,13 @@ Page({ }, toClockIn(){ - console.log(232) wx.navigateTo({ url: '/pages/clockIn/index', }) + }, + toEmergency(){ + wx.navigateTo({ + url: '/pages/emergency/index', + }) } }); \ No newline at end of file diff --git a/pages/home/index.wxml b/pages/home/index.wxml index dbbc9fd..6361d65 100644 --- a/pages/home/index.wxml +++ b/pages/home/index.wxml @@ -88,6 +88,6 @@ --> - - + + \ No newline at end of file diff --git a/pages/my/index.js b/pages/my/index.js index 7419520..ad08692 100644 --- a/pages/my/index.js +++ b/pages/my/index.js @@ -38,14 +38,18 @@ Page({ ], settingList: [ - { label: '用药方案', text: '', icon: 'service', type: 'text' }, - { label: '健康教育', text: '', icon: 'setting', type: 'text' }, + { label: '用药方案', path: '/pages/therapeuticRegimen/index', icon: 'service', type: 'text' }, + { label: '健康教育', path: '/pages/article/index', icon: 'setting', type: 'text' }, ], }, onLoad() { - this.getServiceList(); + // this.getServiceList(); + }, + + handelClick(e){ + console.log(e) }, async onShow() { diff --git a/pages/my/index.wxml b/pages/my/index.wxml index fef662a..1667b77 100644 --- a/pages/my/index.wxml +++ b/pages/my/index.wxml @@ -31,7 +31,7 @@ - + diff --git a/pages/therapeuticRegimen/index.js b/pages/therapeuticRegimen/index.js new file mode 100644 index 0000000..6e6663a --- /dev/null +++ b/pages/therapeuticRegimen/index.js @@ -0,0 +1,66 @@ +// pages/therapeuticRegimen/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/therapeuticRegimen/index.json b/pages/therapeuticRegimen/index.json new file mode 100644 index 0000000..37eb285 --- /dev/null +++ b/pages/therapeuticRegimen/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "用药方案" + +} \ No newline at end of file diff --git a/pages/therapeuticRegimen/index.less b/pages/therapeuticRegimen/index.less new file mode 100644 index 0000000..4080624 --- /dev/null +++ b/pages/therapeuticRegimen/index.less @@ -0,0 +1,39 @@ +/* pages/therapeuticRegimen/index.wxss */ + +.therapeuticRegimen{ + padding: 28rpx; + .therapeuticRegimen-item{ + padding: 28rpx; + background-color: #fff; + border-radius: 20rpx; + .time{ + font-size: 26rpx; + position: relative; + text{ + position: absolute; + right: 0; + color: var(--td-brand-color); + } + } + .item-box{ + margin-top: 26rpx; + background-color: #f5f5f5; + padding: 24rpx; + padding-bottom: 30rpx; + border-radius: 20rpx; + .name{ + font-weight: bold; + display: flex; + justify-content: space-between; + text{ + color: var(--td-brand-color); + font-weight: normal; + } + } + .details{ + margin-top: 20rpx; + font-size: 24rpx; + } + } + } +} \ No newline at end of file diff --git a/pages/therapeuticRegimen/index.wxml b/pages/therapeuticRegimen/index.wxml new file mode 100644 index 0000000..4cd449b --- /dev/null +++ b/pages/therapeuticRegimen/index.wxml @@ -0,0 +1,23 @@ + + + + + 2024.10.01 至 2024.10.31方案 + 进行中 + + + + 优思弗 + 500mg + + 每日2次,饭后服用 + + + + 优思弗 + 500mg + + 每日2次,饭后服用 + + + \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index e0fa06b..37f15ad 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -3,12 +3,19 @@ "miniprogram": { "list": [ { - "name": "pages/emergency/index", - "pathName": "pages/emergency/index", + "name": "pages/therapeuticRegimen/index", + "pathName": "pages/therapeuticRegimen/index", "query": "", "scene": null, "launchMode": "default" }, + { + "name": "pages/emergency/index", + "pathName": "pages/emergency/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "pages/register/index", "pathName": "pages/register/index",