更新
This commit is contained in:
@@ -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' });
|
||||
|
||||
Reference in New Issue
Block a user