Browse Source

提交测试结果调用微信apicocos联调

周玉佂 3 tuần trước cách đây
mục cha
commit
ce6c1d9d28

+ 1 - 1
.env.development

@@ -1,7 +1,7 @@
 # 应用配置面板
 VITE_APP_SETTING = true
 # 页面标题
-VITE_APP_TITLE = InsomniaCognitionH5
+VITE_APP_TITLE = 失眠认知训练
 # 接口请求地址,会设置到 axios 的 baseURL 参数上
 VITE_APP_API_BASE_URL = https://byly.jue-ming.com:8112/
 # VITE_APP_API_BASE_URL = http://192.168.1.4:8112/

+ 1 - 1
.env.production

@@ -1,7 +1,7 @@
 # 应用配置面板
 VITE_APP_SETTING = false
 # 页面标题
-VITE_APP_TITLE = InsomniaCognitionH5
+VITE_APP_TITLE = 失眠认知训练
 # 接口请求地址,会设置到 axios 的 baseURL 参数上
 VITE_APP_API_BASE_URL = https://byly.jue-ming.com:8112/
 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空

+ 1 - 1
.env.test

@@ -1,7 +1,7 @@
 # 应用配置面板
 VITE_APP_SETTING = false
 # 页面标题
-VITE_APP_TITLE = InsomniaCognitionH5
+VITE_APP_TITLE = 失眠认知训练
 # 接口请求地址,会设置到 axios 的 baseURL 参数上
 VITE_APP_API_BASE_URL = /
 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空

+ 37 - 3
.idea/workspace.xml

@@ -4,7 +4,14 @@
     <option name="autoReloadType" value="SELECTIVE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="b347610e-2e38-40df-8414-1dc079962726" name="更改" comment="提交测试结果调用微信api" />
+    <list default="true" id="b347610e-2e38-40df-8414-1dc079962726" name="更改" comment="提交测试结果调用微信apicocos联调">
+      <change beforePath="$PROJECT_DIR$/.env.development" beforeDir="false" afterPath="$PROJECT_DIR$/.env.development" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.env.production" beforeDir="false" afterPath="$PROJECT_DIR$/.env.production" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.env.test" beforeDir="false" afterPath="$PROJECT_DIR$/.env.test" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/views/cognitiveTasks/BreadthTraining/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/views/cognitiveTasks/BreadthTraining/index.vue" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/views/cognitiveTasks/main/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/views/cognitiveTasks/main/index.vue" afterDir="false" />
+    </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -75,6 +82,8 @@
       <workItem from="1734514601970" duration="154000" />
       <workItem from="1734571154985" duration="23532000" />
       <workItem from="1747192052253" duration="13962000" />
+      <workItem from="1747213485972" duration="15850000" />
+      <workItem from="1747815153323" duration="5996000" />
     </task>
     <task id="LOCAL-00001" summary="提交">
       <option name="closed" value="true" />
@@ -92,7 +101,31 @@
       <option name="project" value="LOCAL" />
       <updated>1747210302000</updated>
     </task>
-    <option name="localTasksCounter" value="3" />
+    <task id="LOCAL-00003" summary="提交测试结果调用微信apicocos联调">
+      <option name="closed" value="true" />
+      <created>1747288944371</created>
+      <option name="number" value="00003" />
+      <option name="presentableId" value="LOCAL-00003" />
+      <option name="project" value="LOCAL" />
+      <updated>1747288944371</updated>
+    </task>
+    <task id="LOCAL-00004" summary="提交测试结果调用微信apicocos联调">
+      <option name="closed" value="true" />
+      <created>1747290999915</created>
+      <option name="number" value="00004" />
+      <option name="presentableId" value="LOCAL-00004" />
+      <option name="project" value="LOCAL" />
+      <updated>1747290999915</updated>
+    </task>
+    <task id="LOCAL-00005" summary="提交测试结果调用微信apicocos联调">
+      <option name="closed" value="true" />
+      <created>1747291419698</created>
+      <option name="number" value="00005" />
+      <option name="presentableId" value="LOCAL-00005" />
+      <option name="project" value="LOCAL" />
+      <updated>1747291419698</updated>
+    </task>
+    <option name="localTasksCounter" value="6" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
@@ -103,6 +136,7 @@
     <MESSAGE value="init" />
     <MESSAGE value="提交" />
     <MESSAGE value="提交测试结果调用微信api" />
-    <option name="LAST_COMMIT_MESSAGE" value="提交测试结果调用微信api" />
+    <MESSAGE value="提交测试结果调用微信apicocos联调" />
+    <option name="LAST_COMMIT_MESSAGE" value="提交测试结果调用微信apicocos联调" />
   </component>
 </project>

+ 4 - 1
src/views/cognitiveTasks/BreadthTraining/index.vue

@@ -169,6 +169,7 @@ function choiceClick(choice: number, index: number) {
       mainData.totalScore
         += mainData.dataList[currentIndex.value].extraScore + mainData.dataList[currentIndex.value].score
     }
+    console.log(mainData.dataList[currentIndex.value],mainData.dataList)
 
     setTimeout(() => {
       nextClick()
@@ -204,7 +205,9 @@ function sendData() {
     },
     { gameTime: 0, totalReactionTime: 0 },
   )
-
+  // mainData.dataList.map((item) => {
+  //   gameData.levelList.push({level:item.index,levelParamList: item})
+  // })
   gameData.paramList = [
     {
       code: 'score',

+ 6 - 1
src/views/cognitiveTasks/main/index.vue

@@ -35,10 +35,15 @@ function startTest() {
 async function exec() {
   taskId.value = route.query.taskId as string
   userId.value = route.query.userId as string
+  console.log(userId.value,'userId.value')
+  if (userId.value) {
+    userId.value = userId.value.split('?')[0]
+    sessionStorage.setItem('userId', userId.value)
+  }
+  console.log(userId.value,'userId.value---')
   GameAPI.findById(taskId.value).then((res) => {
     console.log(res)
     subjectInfo.value = res.data!
-    sessionStorage.setItem('userId', userId.value)
     sessionStorage.setItem('subjectInfo', JSON.stringify(res.data))
   })
 }