Compare commits

...

2 Commits

Author SHA1 Message Date
左哥
9364c8927d dsds 2025-05-23 23:07:15 +08:00
左哥
502113d2e1 dss 2025-05-23 21:51:47 +08:00
11 changed files with 97 additions and 110 deletions

View File

@ -14,16 +14,7 @@ export default {
address: ['440000', '440300'], address: ['440000', '440300'],
brief: '在你身边,为你设计', brief: '在你身边,为你设计',
photos: [ photos: [
{
url: getLocalUrl('/static/img_td.png', 'uploaded1.png'),
name: 'uploaded1.png',
type: 'image',
},
{
url: getLocalUrl('/static/img_td.png', 'uploaded2.png'),
name: 'uploaded2.png',
type: 'image',
},
], ],
}, },
}, },

View File

@ -14,7 +14,7 @@ function initChart(canvas, width, height, dpr) {
title: { title: {
text: '身高cm', text: '身高cm',
left: 'left', left: 'left',
fontSize: 12 fontSize: 6
}, },
legend: { legend: {
data: ['实际身高', '标准范围'], data: ['实际身高', '标准范围'],

View File

@ -55,6 +55,7 @@
border-radius: 12rpx; border-radius: 12rpx;
padding: 26rpx; padding: 26rpx;
margin-top: 20rpx; margin-top: 20rpx;
position: relative;
.item-box-title{ .item-box-title{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -72,12 +73,24 @@
.drug-name{ .drug-name{
font-size: 30rpx; font-size: 30rpx;
color: #323030; color: #323030;
margin-bottom: 8rpx;
} }
.drug-usage{ .drug-usage{
font-size: 26rpx; font-size: 26rpx;
color: #323030; color: #323030;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.follow-up-itme{
font-size: 24rpx;
}
.follow-itme-ed{
color: #0091cc;
font-size: 30rpx;
position: absolute;
right: 30rpx;
top: 50%;
transform: translateY(-50%);
}
} }

View File

@ -53,9 +53,30 @@
术后一个月随访 术后一个月随访
</view> </view>
<!-- 药品名字 --> <!-- 药品名字 -->
<view class="drug-name"> <view class="follow-up-itme">
随访时间2025-05-25 随访时间2025-05-25
</view> </view>
<text class="follow-itme-ed">50天后</text>
</view>
</view>
<view class="item-content">
<view class="item-title">健康推送
<view class="item-title-right-text">
更多
</view>
</view>
<view class="item-box">
<view class="drug-name">
关于配方奶粉的选择
</view>
<!-- 药品名字 -->
<view class="follow-up-itme">
关于配方奶粉的选择
含 MCT(中链脂肪)奶粉或粉剂有利于胆闭宝宝脂肪酸及维生素的吸收,改善营养状况。待退黄后根据营养科医生指导,可逐步转回母乳喂养,母乳不足者用普通......
</view>
</view> </view>
</view> </view>
</view> </view>

View File

@ -121,5 +121,8 @@
.peld{ .peld{
font-size: 26rpx; font-size: 26rpx;
color: red; color: red;
.tag{
margin-left: 20rpx;
}
} }
} }

View File

@ -13,7 +13,7 @@
</view> </view>
<view class="time">胆道闭锁手术时间2024年12月15日</view> <view class="time">胆道闭锁手术时间2024年12月15日</view>
<view class="peld">PELD评分12 <view class="peld">PELD评分12
<t-tag class="tag" theme="danger">高危</t-tag></view> <t-tag class="tag" theme="danger" size="small">高危</t-tag></view>
<!-- <view class="tags"> <!-- <view class="tags">
<t-tag class="tag" variant="light" icon="discount">{{personalInfo.star}}</t-tag> <t-tag class="tag" variant="light" icon="discount">{{personalInfo.star}}</t-tag>
<t-tag class="tag" variant="light" icon="location">{{personalInfo.city}}</t-tag> <t-tag class="tag" variant="light" icon="location">{{personalInfo.city}}</t-tag>

View File

@ -9,7 +9,8 @@ Page({
birth: '', birth: '',
address: [], address: [],
introduction: '', introduction: '',
photos: [], yearType: 0
// photos: [],
}, },
genderOptions: [ genderOptions: [
{ {
@ -21,6 +22,17 @@ Page({
value: 1, value: 1,
} }
],
yearOptions: [
{
label: '月',
value: 0,
},
{
label: '年',
value: 1,
}
], ],
birthVisible: false, birthVisible: false,
birthStart: '1970-01-01', birthStart: '1970-01-01',
@ -40,8 +52,8 @@ Page({
}, },
onLoad() { onLoad() {
this.initAreaData(); // this.initAreaData();
this.getPersonalInfo(); // this.getPersonalInfo();
}, },
getPersonalInfo() { getPersonalInfo() {
@ -135,6 +147,9 @@ Page({
onGenderChange(e) { onGenderChange(e) {
this.personInfoFieldChange('gender', e); this.personInfoFieldChange('gender', e);
}, },
onYearChange(e) {
this.personInfoFieldChange('yearType', e);
},
onIntroductionChange(e) { onIntroductionChange(e) {
this.personInfoFieldChange('introduction', e); this.personInfoFieldChange('introduction', e);
@ -142,26 +157,26 @@ Page({
onPhotosRemove(e) { onPhotosRemove(e) {
const { index } = e.detail; const { index } = e.detail;
const { photos } = this.data.personInfo; // const { photos } = this.data.personInfo;
photos.splice(index, 1); // photos.splice(index, 1);
this.setData({ // this.setData({
'personInfo.photos': photos, // 'personInfo.photos': photos,
}); // });
}, },
onPhotosSuccess(e) { onPhotosSuccess(e) {
const { files } = e.detail; const { files } = e.detail;
this.setData({ // this.setData({
'personInfo.photos': files, // 'personInfo.photos': files,
}); // });
}, },
onPhotosDrop(e) { onPhotosDrop(e) {
const { files } = e.detail; const { files } = e.detail;
this.setData({ // this.setData({
'personInfo.photos': files, // 'personInfo.photos': files,
}); // });
}, },
onSaveInfo() { onSaveInfo() {

View File

@ -36,3 +36,7 @@ page {
right: 32rpx; right: 32rpx;
bottom: calc(env(safe-area-inset-bottom) + 32rpx); bottom: calc(env(safe-area-inset-bottom) + 32rpx);
} }
.info-edit__gender {
width: 45%;
}

View File

@ -1,9 +1,9 @@
<t-navbar left-arrow title="个人信息" /> <t-navbar left-arrow title="个人信息" />
<view class="info-edit"> <view class="info-edit">
<t-cell class="info-edit__cell" title="姓名"> <t-cell class="info-edit__cell" required title="姓名">
<t-input bind:change="onNameChange" borderless placeholder="请输入姓名" slot="note" value="{{personInfo.name}}" /> <t-input bind:change="onNameChange" borderless placeholder="请输入姓名" slot="note" value="{{personInfo.name}}" />
</t-cell> </t-cell>
<t-cell class="info-edit__cell" title="性别"> <t-cell class="info-edit__cell" required title="性别">
<t-radio-group <t-radio-group
bind:change="onGenderChange" bind:change="onGenderChange"
borderless borderless
@ -14,14 +14,24 @@
value="{{personInfo.gender}}" value="{{personInfo.gender}}"
/> />
</t-cell> </t-cell>
<t-cell arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="出生日期" />
<t-cell class="info-edit__cell" title="身份证号"> <t-cell class="info-edit__cell" title="身份证号">
<t-input bind:change="onNameChange" borderless placeholder="请输入身份证号" slot="note" value="{{personInfo.name}}" /> <t-input bind:change="onNameChange" borderless placeholder="请输入身份证号" slot="note" value="{{personInfo.name}}" />
</t-cell> </t-cell>
<t-cell class="info-edit__cell" title="手机号"> <t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="出生日期" />
<t-input bind:change="onNameChange" borderless placeholder="请输入手机号" slot="note" value="{{personInfo.name}}" />
<t-cell class="info-edit__cell" required title="年龄">
<t-input bind:change="onNameChange" borderless placeholder="请输入年龄" slot="note" value="{{personInfo.name}}" />
<t-radio-group
bind:change="onYearChange"
borderless
defaultValue="{{personInfo.yearType}}"
options="{{yearOptions}}"
slot="note"
t-class="info-edit__gender"
value="{{personInfo.yearType}}"
/>
</t-cell> </t-cell>
<t-cell arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="胆道闭锁手术时间" /> <t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="胆道闭锁手术时间" />
</view> </view>

View File

@ -46,10 +46,13 @@
], ],
"condition": false, "condition": false,
"ignoreUploadUnusedFiles": true, "ignoreUploadUnusedFiles": true,
"swc": false "swc": false,
"compileWorklet": false,
"localPlugins": false,
"disableSWC": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "3.7.8", "libVersion": "3.7.12",
"appid": "wx1ad3deaff62aed21", "appid": "wx1ad3deaff62aed21",
"projectname": "miniprogram-starter", "projectname": "miniprogram-starter",
"condition": { "condition": {
@ -105,5 +108,6 @@
"editorSetting": { "editorSetting": {
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",
"tabSize": 2 "tabSize": 2
} },
"simulatorPluginLibVersion": {}
} }

View File

@ -1,74 +0,0 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"condition": {
"miniprogram": {
"list": [
{
"name": "message",
"pathName": "pages/message/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "search",
"pathName": "pages/search/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "login",
"pathName": "pages/login/login",
"query": "",
"scene": null
},
{
"name": "loginCode",
"pathName": "pages/loginCode/loginCode",
"query": "",
"scene": null
},
{
"name": "my",
"pathName": "pages/my/index",
"query": "",
"scene": null
},
{
"name": "info-edit",
"pathName": "pages/my/info-edit/index",
"query": "",
"scene": null
},
{
"name": "dataCenter",
"pathName": "pages/dataCenter/index",
"query": "",
"scene": null
},
{
"name": "release",
"pathName": "pages/release/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "setting",
"pathName": "pages/setting/index",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
},
"projectname": "patient-mini",
"setting": {
"compileHotReLoad": true,
"bigPackageSizeSupport": true,
"urlCheck": false
},
"libVersion": "3.7.12"
}