This commit is contained in:
Your Name
2026-03-20 18:00:19 +08:00
parent d765517b74
commit 18fee2e8f8
240 changed files with 976 additions and 280 deletions
+4 -11
View File
@@ -824,31 +824,24 @@ const confirmDiagnosis = async (diagnosisId) => {
uni.showLoading({ title: '提交中...' });
const app = getApp();
const rawUserID = app?.globalData?.userID;
const userID = (typeof rawUserID === 'string' ? rawUserID : '').replace(/patient_/g, '');
if (!userID) {
uni.hideLoading();
uni.showToast({ title: '请先登录', icon: 'none' });
return;
}
try {
const res = await proxy.apiUrl({
url: '/api/tcm/confirmDiagnosis',
method: 'POST',
data: {
id: diagnosisId,
user_id: userID || 0,
share_user: share_user_id || 0
}
}, false);
if (res.code === 1) {
dingdan_ok.value=res.data.is_view?true:false
uni.setStorageSync('dingdan_ok', true);
dingdan_ok.value=true;
} else {
uni.showToast({ title: res.msg || '确认失败', icon: 'none' });