This commit is contained in:
左哥 2025-05-28 22:43:31 +08:00
parent 171f731c3b
commit 96018aa0b4
14 changed files with 246 additions and 9 deletions

View File

@ -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": {

66
pages/article/index.js Normal file
View File

@ -0,0 +1,66 @@
// pages/article/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

4
pages/article/index.json Normal file
View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "文章详情"
}

5
pages/article/index.less Normal file
View File

@ -0,0 +1,5 @@
/* pages/article/index.wxss */
.rich{
padding: 28rpx;
}

6
pages/article/index.wxml Normal file
View File

@ -0,0 +1,6 @@
<!--pages/article/index.wxml-->
<view class="rich">
<rich-text nodes=""></rich-text>
</view>

View File

@ -160,9 +160,13 @@ Page({
},
toClockIn(){
console.log(232)
wx.navigateTo({
url: '/pages/clockIn/index',
})
},
toEmergency(){
wx.navigateTo({
url: '/pages/emergency/index',
})
}
});

View File

@ -88,6 +88,6 @@
</view> -->
<!-- <t-message id="t-message" /> -->
<view class="emergency-access">
<t-icon name="call-1-filled" size="42rpx" bind:click="onIconTap" />
<view class="emergency-access" bindtap="toEmergency">
<t-icon name="call-1-filled" size="42rpx" />
</view>

View File

@ -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() {

View File

@ -31,7 +31,7 @@
</view>
<view class="my-cell">
<t-cell-group theme="card">
<t-cell wx:for="{{settingList}}" wx:for-item="item" wx:key="type" title="{{item.label}}" url="{{item.url}}" arrow />
<t-cell wx:for="{{settingList}}" wx:for-item="item" wx:key="type" title="{{item.label}}" url="{{item.path}}" arrow />
</t-cell-group>
</view>

View File

@ -0,0 +1,66 @@
// pages/therapeuticRegimen/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,5 @@
{
"usingComponents": {},
"navigationBarTitleText": "用药方案"
}

View File

@ -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;
}
}
}
}

View File

@ -0,0 +1,23 @@
<!--pages/therapeuticRegimen/index.wxml-->
<view class="therapeuticRegimen">
<view class="therapeuticRegimen-item">
<view class="time">
2024.10.01 至 2024.10.31方案
<text>进行中</text>
</view>
<view class="item-box">
<view class="name">
优思弗
<text>500mg</text>
</view>
<view class="details">每日2次饭后服用</view>
</view>
<view class="item-box">
<view class="name">
优思弗
<text>500mg</text>
</view>
<view class="details">每日2次饭后服用</view>
</view>
</view>
</view>

View File

@ -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",