Compare commits

..

No commits in common. "9364c8927de3c60281d8ba9e0143da892c0598ff" and "00f874ac674fd202939aea2bbcba8e7354774741" have entirely different histories.

11 changed files with 110 additions and 97 deletions

View File

@ -14,7 +14,16 @@ 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: 6
fontSize: 12
},
legend: {
data: ['实际身高', '标准范围'],

View File

@ -55,7 +55,6 @@
border-radius: 12rpx;
padding: 26rpx;
margin-top: 20rpx;
position: relative;
.item-box-title{
display: flex;
justify-content: space-between;
@ -73,24 +72,12 @@
.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,29 +53,8 @@
术后一个月随访
</view>
<!-- 药品名字 -->
<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(中链脂肪)奶粉或粉剂有利于胆闭宝宝脂肪酸及维生素的吸收,改善营养状况。待退黄后根据营养科医生指导,可逐步转回母乳喂养,母乳不足者用普通......
随访时间2025-05-25
</view>
</view>
</view>

View File

@ -121,8 +121,5 @@
.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" size="small">高危</t-tag></view>
<t-tag class="tag" theme="danger">高危</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,8 +9,7 @@ Page({
birth: '',
address: [],
introduction: '',
yearType: 0
// photos: [],
photos: [],
},
genderOptions: [
{
@ -22,17 +21,6 @@ Page({
value: 1,
}
],
yearOptions: [
{
label: '月',
value: 0,
},
{
label: '年',
value: 1,
}
],
birthVisible: false,
birthStart: '1970-01-01',
@ -52,8 +40,8 @@ Page({
},
onLoad() {
// this.initAreaData();
// this.getPersonalInfo();
this.initAreaData();
this.getPersonalInfo();
},
getPersonalInfo() {
@ -147,9 +135,6 @@ Page({
onGenderChange(e) {
this.personInfoFieldChange('gender', e);
},
onYearChange(e) {
this.personInfoFieldChange('yearType', e);
},
onIntroductionChange(e) {
this.personInfoFieldChange('introduction', e);
@ -157,26 +142,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,7 +36,3 @@ 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" required 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" required title="性别">
<t-cell class="info-edit__cell" title="性别">
<t-radio-group
bind:change="onGenderChange"
borderless
@ -14,24 +14,14 @@
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 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 class="info-edit__cell" title="手机号">
<t-input bind:change="onNameChange" borderless placeholder="请输入手机号" slot="note" value="{{personInfo.name}}" />
</t-cell>
<t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="胆道闭锁手术时间" />
<t-cell arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="胆道闭锁手术时间" />
</view>

View File

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

View File

@ -0,0 +1,74 @@
{
"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"
}