From 5a5f3b080eaa9a500000c8cd728185a03375b370 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E5=93=A5?= <17630302050@163.com>
Date: Mon, 14 Jul 2025 23:50:24 +0800
Subject: [PATCH] wewe
---
api/request.js | 4 ++++
pages/followUp/index.js | 2 +-
pages/login/login.js | 5 +----
pages/login/login.wxml | 4 ++--
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/api/request.js b/api/request.js
index b01acec..1eb533c 100644
--- a/api/request.js
+++ b/api/request.js
@@ -36,6 +36,10 @@ function request(url, method = 'GET', data = {}) {
}
reject(res.data);
}
+ wx.showToast({
+ title: res.data.message,
+ icon: 'none'
+ });
reject(res.data);
} else {
resolve(res.data);
diff --git a/pages/followUp/index.js b/pages/followUp/index.js
index 9ca3968..8a59ddc 100644
--- a/pages/followUp/index.js
+++ b/pages/followUp/index.js
@@ -45,7 +45,7 @@ Page({
}
},
async getDetail(id){
- const res = await request('doctor/patient/questionnaire_info', 'post', {patient_id: 1, questionnaire_id: id})
+ const res = await request('doctor/patient/questionnaire_info', 'post', {patient_id: Number(this.userId), questionnaire_id: id})
res.liver_function_image = res.liver_function_image ? res.liver_function_image.split(',') : []
res.coagulation_function_image = res.coagulation_function_image ? res.coagulation_function_image.split(',') : []
res.blood_routine_image = res.blood_routine_image ? res.blood_routine_image.split(',') : []
diff --git a/pages/login/login.js b/pages/login/login.js
index 7932719..9fa9d91 100644
--- a/pages/login/login.js
+++ b/pages/login/login.js
@@ -4,10 +4,7 @@ import aesCryptoJS from '~/utils/aesCryptoJS.js';
Page({
data: {
- code: '',
- phoneNumber: '',
- timer: null,
- getCodeText: '获取验证码',
+
mobile: '',//13888888888
password: '',//doctor2025
showPassword: false,
diff --git a/pages/login/login.wxml b/pages/login/login.wxml
index 8ee30f7..55b2fe9 100644
--- a/pages/login/login.wxml
+++ b/pages/login/login.wxml
@@ -13,13 +13,13 @@
-
+
-
+