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'],
brief: '在你身边,为你设计',
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: {
text: '身高cm',
left: 'left',
fontSize: 12
fontSize: 6
},
legend: {
data: ['实际身高', '标准范围'],

View File

@ -55,6 +55,7 @@
border-radius: 12rpx;
padding: 26rpx;
margin-top: 20rpx;
position: relative;
.item-box-title{
display: flex;
justify-content: space-between;
@ -72,12 +73,24 @@
.drug-name{
font-size: 30rpx;
color: #323030;
margin-bottom: 8rpx;
}
.drug-usage{
font-size: 26rpx;
color: #323030;
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 class="drug-name">
<view class="follow-up-itme">
随访时间2025-05-25
</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 File

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

View File

@ -13,7 +13,7 @@
</view>
<view class="time">胆道闭锁手术时间2024年12月15日</view>
<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">
<t-tag class="tag" variant="light" icon="discount">{{personalInfo.star}}</t-tag>
<t-tag class="tag" variant="light" icon="location">{{personalInfo.city}}</t-tag>

View File

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

View File

@ -36,3 +36,7 @@ page {
right: 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="个人信息" />
<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-cell>
<t-cell class="info-edit__cell" title="性别">
<t-cell class="info-edit__cell" required title="性别">
<t-radio-group
bind:change="onGenderChange"
borderless
@ -14,14 +14,24 @@
value="{{personInfo.gender}}"
/>
</t-cell>
<t-cell arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="出生日期" />
<t-cell class="info-edit__cell" title="身份证号">
<t-input bind:change="onNameChange" borderless placeholder="请输入身份证号" slot="note" value="{{personInfo.name}}" />
</t-cell>
<t-cell class="info-edit__cell" title="手机号">
<t-input bind:change="onNameChange" borderless placeholder="请输入手机号" slot="note" value="{{personInfo.name}}" />
<t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="出生日期" />
<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 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 File

@ -46,10 +46,13 @@
],
"condition": false,
"ignoreUploadUnusedFiles": true,
"swc": false
"swc": false,
"compileWorklet": false,
"localPlugins": false,
"disableSWC": true
},
"compileType": "miniprogram",
"libVersion": "3.7.8",
"libVersion": "3.7.12",
"appid": "wx1ad3deaff62aed21",
"projectname": "miniprogram-starter",
"condition": {
@ -105,5 +108,6 @@
"editorSetting": {
"tabIndent": "insertSpaces",
"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"
}