From 05c363fdd7ab04e3bd9a753e2c5d5bfff04d681c Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 09 六月 2026 10:21:35 +0800
Subject: [PATCH] 备份上传
---
pages/ethicalReview/ethicalInfo.vue | 87 +++++++++++++++++++++++++++++++++----------
1 files changed, 66 insertions(+), 21 deletions(-)
diff --git a/pages/ethicalReview/ethicalInfo.vue b/pages/ethicalReview/ethicalInfo.vue
index 954d588..64ab1d8 100644
--- a/pages/ethicalReview/ethicalInfo.vue
+++ b/pages/ethicalReview/ethicalInfo.vue
@@ -277,6 +277,10 @@
</view>
</u-popup>
+ <view v-if="showHomeButton" class="home-fab" @click="goHome">
+ <uni-icons type="home" size="24" color="#fff" />
+ <text class="home-text">棣栭〉</text>
+ </view>
<!-- 鎻愪氦纭寮圭獥 -->
<u-modal
:show="showSubmitModal"
@@ -294,6 +298,8 @@
import { onLoad, onShow } from "@dcloudio/uni-app";
import dayjs from "dayjs";
import { useUserStore } from "@/stores/user";
+import { useHomeButton } from "@/stores/useHomeButton";
+const { showHomeButton, checkAutoLogin, goHome } = useHomeButton();
const userStore = useUserStore();
const dict = ref({});
@@ -408,7 +414,7 @@
// 鏄惁瓒呮椂
const isTimeout = computed(() => {
- return caseInfo.value.receiveStatus === "3";
+ return caseInfo.value.receiveStatus == "3";
});
// 鏄惁鍙妯″紡
@@ -429,6 +435,8 @@
// 鐢熷懡鍛ㄦ湡
onLoad(async (options) => {
+ checkAutoLogin(options);
+
id.value = options.id;
fcid.value = options.fcid;
if (fcid.value) {
@@ -461,7 +469,7 @@
params,
);
- if (res.code === 200 && res.rows && res.rows.length > 0) {
+ if (res.code == 200 && res.rows && res.rows.length > 0) {
const data = res.rows[0];
console.log("鍔犺浇鐨勫鏌ユ暟鎹�:", data);
@@ -479,6 +487,9 @@
endtime: data.endtime || "",
caseNo: data.caseNo || "",
};
+ console.log(data.receiveStatus,'data.receiveStatus');
+
+ console.log(caseInfo.value.receiveStatus, "caseInfo.value");
// 璁剧疆琛ㄥ崟鏁版嵁
if (data.expertconclusion) {
@@ -534,7 +545,7 @@
});
}
} catch (error) {
- if (error.message === "鏈櫥褰�") {
+ if (error.message == "鏈櫥褰�") {
// 鉁� 浠�涔堥兘涓嶅仛锛屾嫤鎴櫒宸茬粡澶勭悊
return;
}
@@ -546,21 +557,21 @@
// 妫�鏌ユ槸鍚﹁秴鏃�
const checkTimeoutStatus = (data) => {
- if (data.receiveStatus === "3") {
+ if (data.receiveStatus == "3") {
// 鐘舵�佸凡缁忔槸瓒呮椂
return;
}
// 濡傛灉鏈夋埅姝㈡椂闂达紝妫�鏌ユ槸鍚﹁秴杩囧綋鍓嶆椂闂�
- if (data.endtime) {
- const endTime = new Date(data.endtime);
- const now = new Date();
- if (now > endTime) {
- // 鏍囪涓鸿秴鏃剁姸鎬�
- caseInfo.value.receiveStatus = "3";
- updateButtonStatus("3");
- }
- }
+ // if (data.endtime) {
+ // const endTime = new Date(data.endtime);
+ // const now = new Date();
+ // if (now > endTime) {
+ // // 鏍囪涓鸿秴鏃剁姸鎬�
+ // caseInfo.value.receiveStatus = "3";
+ // updateButtonStatus("3");
+ // }
+ // }
};
// 瑙f瀽闄勪欢鏂囦欢
@@ -727,7 +738,7 @@
// 鎾ら攢涓婁竴姝�
const undoLastStroke = () => {
- if (strokeHistory.length === 0) return;
+ if (strokeHistory.length == 0) return;
// 绉婚櫎鏈�鍚庝竴姝�
strokeHistory.pop();
@@ -750,7 +761,7 @@
ctx.draw();
// 鏇存柊棰勮
- if (strokeHistory.length === 0) {
+ if (strokeHistory.length == 0) {
tempSignatureData.value = "";
} else {
getCanvasImage();
@@ -894,11 +905,11 @@
uploadType: "signature",
},
success: (res) => {
- if (res.statusCode === 200) {
+ if (res.statusCode == 200) {
const data = JSON.parse(res.data);
console.log("绛惧悕涓婁紶鎴愬姛:", data);
- if (data.code === 200) {
+ if (data.code == 200) {
resolve({
url: data.url,
fileName: data.fileName,
@@ -1019,12 +1030,12 @@
uni.downloadFile({
url: material.url,
success: (res) => {
- if (res.statusCode === 200) {
+ if (res.statusCode == 200) {
const filePath = res.tempFilePath;
uni.openDocument({
filePath: filePath,
showMenu: true,
- fileType: fileExt === "pdf" ? "pdf" : "",
+ fileType: fileExt == "pdf" ? "pdf" : "",
success: () => {
console.log("鎵撳紑鏂囨。鎴愬姛");
},
@@ -1098,7 +1109,7 @@
submitData,
);
- if (res.code === 200) {
+ if (res.code == 200) {
uni.showToast({
title: "淇濆瓨鎴愬姛",
icon: "success",
@@ -1165,7 +1176,7 @@
submitData,
);
- if (res.code === 200) {
+ if (res.code == 200) {
uni.showToast({
title: "鎻愪氦鎴愬姛",
icon: "success",
@@ -1534,7 +1545,41 @@
color: #fa8c16;
}
}
+.home-fab {
+ position: fixed;
+ top: 80rpx; /* 閬垮紑鐘舵�佹爮锛屽彲璋� */
+ right: 120rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8rpx;
+ background: rgba(24, 144, 255, 0.9);
+ backdrop-filter: blur(8rpx);
+ border-radius: 60rpx;
+ padding: 14rpx 28rpx;
+ box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.2);
+ z-index: 999;
+ transition: all 0.2s ease;
+}
+.home-fab:active {
+ transform: scale(0.96);
+ background: #1890ff;
+}
+
+.home-text {
+ color: #fff;
+ font-size: 28rpx;
+ font-weight: 500;
+}
+
+/* 閽堝寰俊灏忕▼搴忥紝閬垮厤涓庤兌鍥婇噸鍙� (鍙��) */
+/* #ifdef MP-WEIXIN */
+.home-fab {
+ top: 100rpx; /* 鑳跺泭澶х害浣嶇疆锛屽彲璋冩暣 */
+ right: 20rpx;
+}
+/* #endif */
.signature-section {
margin-top: 20rpx;
padding: 24rpx;
--
Gitblit v1.9.3