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 @@
-
+