diff --git a/app.json b/app.json
index 64631f3..455a4e1 100644
--- a/app.json
+++ b/app.json
@@ -68,6 +68,10 @@
"root": "pages/AddTherapeuticRegimen",
"name": "AddTherapeuticRegimen",
"pages": ["index"]
+ },{
+ "root": "pages/mmp-7",
+ "name": "mmp-7",
+ "pages": ["index"]
}
],
"window": {
diff --git a/pages/mmp-7/index.js b/pages/mmp-7/index.js
new file mode 100644
index 0000000..388c7e4
--- /dev/null
+++ b/pages/mmp-7/index.js
@@ -0,0 +1,189 @@
+// pages/followUp/index.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ style: 'border: 2rpx solid #efefef;border-radius: 12rpx;',
+ personInfo: {
+ name: '',
+ gender: 0,
+ birth: '',
+ address: [],
+ introduction: '',
+ yearType: 0,
+
+ // photos: [],
+ },
+ mode: '',
+ dateVisible: false,
+ date: new Date('2021-12-23').getTime(), // 支持时间戳传入
+ dateText: '',
+ filter(type, options) {
+ if (type === 'year') {
+ return options.sort((a, b) => b.value - a.value);
+ }
+ return options;
+ },
+ popupProps: {
+ usingCustomNavbar: true,
+ },
+
+ formatter(item, index) {
+ if (index === 1) {
+ const label = item.label.slice(0, -1);
+ return {
+ value: item.value,
+ label: calendarMonth[Number(label) - 1],
+ };
+ }
+ if (index === 2) {
+ const [dateValue, weekValue] = item.label.split(' ');
+ const dateSuffixes = {
+ 1: 'st',
+ 2: 'nd',
+ 3: 'rd',
+ };
+ const weekMap = {
+ 周一: 'Mon.',
+ 周二: 'Tues.',
+ 周三: 'Wed.',
+ 周四: 'Thurs.',
+ 周五: 'Fri.',
+ 周六: 'Sat.',
+ 周日: 'Sun.',
+ };
+ const label = dateValue.slice(0, -1);
+
+ return {
+ value: item.value,
+ label: `${label}${dateSuffixes[label] || 'th'} ${weekMap[weekValue]}`,
+ };
+ }
+
+ return {
+ value: item.value,
+ label: item.label.slice(0, -1),
+ };
+ },
+
+ originFiles: [
+ {
+ url: 'https://tdesign.gtimg.com/mobile/demos/example4.png',
+ name: 'uploaded1.png',
+ type: 'image',
+ removeBtn: true,
+ },
+ {
+ url: 'https://tdesign.gtimg.com/mobile/demos/example6.png',
+ name: 'uploaded2.png',
+ type: 'image',
+ removeBtn: true,
+ },
+ {
+ url: 'https://tdesign.gtimg.com/mobile/demos/example5.png',
+ name: 'uploaded3.png',
+ type: 'image',
+ removeBtn: true,
+ },
+ ],
+ gridConfig: {
+ column: 4,
+ width: 160,
+ height: 160,
+ },
+ config: {
+ count: 1,
+ },
+
+
+ },
+ showPicker(e) {
+ const { mode } = e.currentTarget.dataset;
+ this.setData({
+ [`${mode}Visible`]: true,
+ });
+
+
+
+ },
+
+ handleSuccess(e) {
+ console.log(e.detail)
+ const { files } = e.detail;
+ this.setData({
+ originFiles: files,
+ });
+ },
+ handleRemove(e) {
+ console.log(e.detail.file);
+ const { index } = e.detail;
+ const { originFiles } = this.data;
+ originFiles.splice(index, 1);
+ this.setData({
+ originFiles,
+ });
+ },
+ handleClick(e) {
+ console.log(e.detail.file);
+ },
+
+
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/mmp-7/index.json b/pages/mmp-7/index.json
new file mode 100644
index 0000000..6d9dd9c
--- /dev/null
+++ b/pages/mmp-7/index.json
@@ -0,0 +1,15 @@
+{
+ "usingComponents": {
+ "t-cell": "tdesign-miniprogram/cell/cell",
+ "t-input": "tdesign-miniprogram/input/input",
+ "t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker",
+ "t-row": "tdesign-miniprogram/row/row",
+ "t-col": "tdesign-miniprogram/col/col",
+ "t-button": "tdesign-miniprogram/button/button",
+ "t-upload": "tdesign-miniprogram/upload/upload",
+ "t-radio": "tdesign-miniprogram/radio/radio",
+ "t-radio-group": "tdesign-miniprogram/radio-group/radio-group"
+ },
+ "navigationStyle": "default",
+ "navigationBarTitleText": "诊断信息录入"
+}
\ No newline at end of file
diff --git a/pages/mmp-7/index.less b/pages/mmp-7/index.less
new file mode 100644
index 0000000..ef35ab7
--- /dev/null
+++ b/pages/mmp-7/index.less
@@ -0,0 +1,42 @@
+/* pages/followUp/index.wxss */
+.follow-up{
+ padding: 28rpx;
+ padding-bottom: 56rpx;
+ .follow-item{
+ background-color: #fff;
+ padding: 28rpx;
+ margin-bottom: 28rpx;
+ border-radius: 20rpx;
+ padding-bottom: 20rpx;
+ }
+ .custom-label {
+ display: inline-flex;
+ }
+
+ .custom-label::after, .input-example__label::after {
+ content: '*';
+ color: red;
+ font-size: 32rpx;
+ margin-left: 4rpx;
+ }
+ .t-overlay{
+ top: 0!important;
+ }
+ .input-example {
+ // background-color: var(--bg-color-demo);
+ padding: 10rpx 0;
+ }
+
+ .input-example__label {
+ color: var(--td-text-color-primary);
+ font-size: 24rpx;
+ line-height: 40rpx;
+ margin: 0 8rpx 16rpx;
+ }
+ .box{
+ display: flex;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ padding-right: 60rpx;
+ }
+}
\ No newline at end of file
diff --git a/pages/mmp-7/index.wxml b/pages/mmp-7/index.wxml
new file mode 100644
index 0000000..78b0fb5
--- /dev/null
+++ b/pages/mmp-7/index.wxml
@@ -0,0 +1,225 @@
+
+
+
+
+ 胆囊
+
+
+
+ 请裁剪原始超声图像,使胆囊在画面中尽可能充满整个图像,如右图所示
+
+
+
+
+
+
+
+ 门静脉左右分支
+
+
+
+ 请裁剪原始超声图像,使门静脉(cord sign)的左右分支或其潜在区域在画面中最大化填充,如右图所示
+
+
+
+
+
+
+
+
+ 门静脉右支横截
+
+
+
+ 请裁剪原始超声图像,使肝门区(cord sign)的横切面或其潜在区域在画面中最大化填充,如右图所示
+
+
+
+
+
+
+
+
+ 血小板(10^9/L)
+
+
+
+
+
+
+
+
+ 血红蛋白(g/L)
+
+
+
+
+
+
+
+ 白细胞(10^9/L)
+
+
+
+
+
+
+
+
+
+
+ 营养指标
+
+
+
+ 上传营养指标检查报告(支持OCR识别)
+
+
+
+
+
+
+
+
+ 25(OH)D3 (ng/ml)
+
+
+
+
+
+
+
+
+ 维生素A (ng/ml)
+
+
+
+
+
+
+
+ 维生素K (ng/ml)
+
+
+
+
+
+
+
+
+ 维生素E (ng/ml)
+
+
+
+
+
+
+
+
+
+ B超
+
+
+
+ 上传B超报告(支持OCR识别)
+
+
+
+
+
+
+
+
+ 肝肋下(mm)肝肋下(mm)
+
+
+
+
+
+
+
+
+ 肝剑突下(mm)
+
+
+
+
+
+
+
+ 脾肋下(mm)
+
+
+
+
+
+
+
+
+ 门静脉主干(mm)
+
+
+
+
+
+
+
+
+ 门静脉流速
+
+
+
+
+
+
+
+
+ 肝弹性值
+
+
+
+
+
+
+
+ 有无肝囊肿
+
+
+
+
+
+
+
+
+
+
+
+ 有无腹水
+
+
+
+
+
+
+
+
+
+
+
+
+ MDT电子病历
+
+
+
+ 上传本次随访的电子病历
+
+
+
+
+
+ 提交
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/index.js b/pages/my/index.js
index 049c6d1..fb1f386 100644
--- a/pages/my/index.js
+++ b/pages/my/index.js
@@ -54,11 +54,11 @@ Page({
async onShow() {
const Token = wx.getStorageSync('access_token');
- // const personalInfo = await this.getPersonalInfo();
- console.log(Token)
if (Token) {
+ const personalInfo = await this.getPersonalInfo();
this.setData({
isLoad: false,
+ personalInfo: personalInfo,
settingList: [
{ label: '用药方案', path: '/pages/therapeuticRegimen/index', icon: 'service', type: 'text' },
{ label: '健康教育', path: '/pages/article/index', icon: 'setting', type: 'text' },
@@ -85,7 +85,7 @@ Page({
},
async getPersonalInfo() {
- const info = await request('/api/genPersonalInfo').then((res) => res.data.data);
+ const info = await request('patient/basic/0').then((res) => res);
return info;
},
diff --git a/pages/my/index.wxml b/pages/my/index.wxml
index 1667b77..780df7d 100644
--- a/pages/my/index.wxml
+++ b/pages/my/index.wxml
@@ -7,17 +7,16 @@
- {{personalInfo.name}}
- 男 1岁5个月
+ {{personalInfo.username}}
+ {{personalInfo.sex == 1 ? '男' : '女'}} {{personalInfo.age}}
- 胆道闭锁手术时间:2024年12月15日
- PELD评分:12
- 高危
-
+ 胆道闭锁手术时间:{{personalInfo.operative_date}}
+ PELD评分:{{personalInfo.risk_value}}
+ 低危
+ 中危
+ 高危
+
diff --git a/pages/my/info-edit/index.js b/pages/my/info-edit/index.js
index 04ab3c6..93d54c2 100644
--- a/pages/my/info-edit/index.js
+++ b/pages/my/info-edit/index.js
@@ -5,17 +5,10 @@ Page({
personInfo: {
username: '',
sex: 0,
- age: '',
id_number: '',
birthday: '',
operative_date: '',
-
- birth: '',
- address: [],
- introduction: '',
- yearType: 0
- // photos: [],
},
genderOptions: [
{
@@ -41,7 +34,7 @@ Page({
],
birthVisible: false,
birthStart: '1970-01-01',
- birthEnd: '2025-03-01',
+ birthEnd: new Date().toISOString().split('T')[0],
birthTime: 0,
birthFilter: (type, options) => (type === 'year' ? options.sort((a, b) => b.value - a.value) : options),
addressText: '',
@@ -54,13 +47,27 @@ Page({
width: 160,
height: 160,
},
+
+ defaultTime: '',
+ newTime: '',
},
onLoad() {
// this.initAreaData();
-
+ this.getPersonalInfo()
+ },
+ async getPersonalInfo() {
+ const info = await request('patient/basic/0')
+ this.setData({
+ personInfo: {
+ username: info.username,
+ sex: info.sex,
+ id_number: info.id_number,
+ birthday: info.birthday,
+ operative_date: info.operative_date,
+ }
+ })
},
-
getAreaOptions(data, filter) {
@@ -93,9 +100,12 @@ Page({
},
showPicker(e) {
+ console.log(e)
const { mode } = e.currentTarget.dataset;
this.setData({
- [`${mode}Visible`]: true,
+ birthVisible: true,
+ defaultTime: e.detail.value,
+ newTime: e.detail.value,
});
},
@@ -167,7 +177,11 @@ Page({
// });
},
- onSaveInfo() {
+ async onSaveInfo() {
// console.log(this.data.personInfo);
+ const res = await request('patient/set_personal_information', 'get', {
+ data: this.data.personInfo
+ })
+ wx.navigateBack()
},
});
diff --git a/pages/my/info-edit/index.wxml b/pages/my/info-edit/index.wxml
index 851b4f5..5684f5f 100644
--- a/pages/my/info-edit/index.wxml
+++ b/pages/my/info-edit/index.wxml
@@ -1,37 +1,28 @@
-
+
-
+
-
+
-
-
-
-
-
+
+
@@ -46,7 +37,7 @@
cancelBtn="取消"
confirmBtn="确认"
data-mode="birth"
- defaultValue="{{personInfo.birth}}"
+ defaultValue="{{defaultTime}}"
end="{{birthEnd}}"
filter="{{birthFilter}}"
format="YYYY-MM-DD"
@@ -54,7 +45,7 @@
popup-props="{{ { usingCustomNavbar: true } }}"
start="{{birthStart}}"
title="选择生日"
- value="{{personInfo.birth}}"
+ value="{{newTime}}"
visible="{{birthVisible}}"
/>