From 5c3525daa34971072382ef51d4b64d4d13c53796 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 17 Mar 2025 15:13:19 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/user.js | 7 +++++--
src/components/back.vue | 14 +++++++++++++-
src/views/caseIntro.vue | 2 +-
src/views/caseList.vue | 17 +++++++++++++----
src/views/home.vue | 4 ++--
src/views/result.vue | 2 +-
6 files changed, 35 insertions(+), 11 deletions(-)
diff --git a/src/api/user.js b/src/api/user.js
index bbbf418..1e03062 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -6,6 +6,9 @@ const login = (data) => {
const getProjectList = (data) => {
return http.get("/project/page", data);
};
+const getProjectDetail = (id) => {
+ return http.get("/project/"+id);
+};
const getCaseList = (data) => {
return http.get("/case/page", data);
};
@@ -56,6 +59,6 @@ export default {
getScore,
getConfig,
completeCase,
- behaviorRecord
-
+ behaviorRecord,
+ getProjectDetail
}
\ No newline at end of file
diff --git a/src/components/back.vue b/src/components/back.vue
index 79b9b0e..84d78a5 100644
--- a/src/components/back.vue
+++ b/src/components/back.vue
@@ -52,6 +52,17 @@ const route = useRoute();
let origin=route.query.source?route.query.source:'';
const source=ref(origin);
const freshkey = ref(0);
+const props=defineProps({
+ project_id:{
+ type:String,
+ default:''
+ }
+})
+const envVersion=computed(()=>{
+ if(source.value==3){
+ return 'release'
+ }
+})
const goHome = () => {
if(source.value==3){
// try {
@@ -72,7 +83,8 @@ const goHome = () => {
});
}else{
router.push({
- path: "/home",
+ path: "/caseList",
+ query: { project_id: props.project_id },
});
}
diff --git a/src/views/caseIntro.vue b/src/views/caseIntro.vue
index fa96aa4..0bb7cf4 100644
--- a/src/views/caseIntro.vue
+++ b/src/views/caseIntro.vue
@@ -21,7 +21,7 @@
-
+
diff --git a/src/views/home.vue b/src/views/home.vue
index 09ae420..9541940 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -36,7 +36,7 @@ const finished = ref(false);
const goCase = (id,img,num) => {
router.push({
path: 'caseList',
- query: { project_id: id,img_url:img,case_num: num}
+ query: { project_id: id}
})
}
const getList = async () => {
@@ -66,7 +66,7 @@ const onLoad = () => {
};
onMounted(() => {
let link=host+'/web/home';
- WXSHARE('“佳动例”等你来挑战,精彩福利享不停',"肝胆相照-肝胆病在线公共服务平台",link,'');
+ WXSHARE('肝胆相照互动病例等你来挑战,福利享不停',"肝胆相照-肝胆病在线公共服务平台",link,'');
})
diff --git a/src/views/result.vue b/src/views/result.vue
index 7826812..9489e3d 100644
--- a/src/views/result.vue
+++ b/src/views/result.vue
@@ -11,7 +11,7 @@
-
+