Pārlūkot izejas kodu

Merge branch 'master' of http://git.dayaedu.com/lex/orchestra-app

mo 2 gadi atpakaļ
vecāks
revīzija
c856c1d99a

BIN
src/student/download/images/teacher-center.png


BIN
src/student/music-group/pre-apply/images/member_bao-2.png


+ 2 - 0
src/styles/index.less

@@ -197,6 +197,7 @@ body {
     // background: rgba(0, 0, 0, 0.4);
     background: #fff;
     // transition: all 0 ease;
+    z-index: 1999 !important;
   }
   .van-fade-enter-from,
   .van-fade-enter-active {
@@ -216,6 +217,7 @@ body {
     // background-color: rgba(0, 0, 0, 0.9);
     background-color: transparent;
     // box-shadow: 0px 8px 20px 2px #f0f0f0;
+    z-index: 1999 !important;
   }
   .toastAnimate {
     width: 70px;

+ 1 - 1
src/views/unit-test/model/choice-question/index.tsx

@@ -116,7 +116,7 @@ export default defineComponent({
                   <span class={styles.option}>{labelOptions[index + 1]}.</span>
                   {item.questionAnswerTypeCode === AnswerType.IMAGE && (
                     <div class={styles.value}>
-                      <Image src={item.questionAnswer} fit="contain" />
+                      <Image src={item.questionAnswer} fit="contain" class={'answerTitleImg'} />
                     </div>
                   )}
                   {item.questionAnswerTypeCode === AnswerType.TXT && (

+ 14 - 13
src/views/unit-test/model/play-question/index.tsx

@@ -100,12 +100,23 @@ export default defineComponent({
 
           console.log(instance, '-------------')
           const result = instance.getCache2('h5-orchestra-unit')
-          if (result.questionId === props.data.id) {
-            const tempScore = result.score || 0
+          console.log('🚀 ~ listenerMessage ~ result', result)
+          const tempResult = result ? JSON.parse(result) : {}
+          if (tempResult.questionId === props.data.id) {
+            const tempScore = tempResult.score || 0
             // 跟上一次分数对比
             if (state.score < tempScore) {
-              state.score = result.score || 0
+              state.score = tempResult.score || 0
             }
+
+            // 置空,存的缓存
+            promisefiyPostMessage({
+              api: 'setCache',
+              content: {
+                key: 'h5-orchestra-unit',
+                value: ''
+              }
+            })
           }
           emit('update:value', [
             {
@@ -114,16 +125,6 @@ export default defineComponent({
               answerExtra: ''
             }
           ])
-
-          // 置空,存的缓存
-          promisefiyPostMessage({
-            api: 'setCache',
-            content: {
-              key: 'h5-orchestra-unit',
-              value: ''
-            }
-          })
-
           // 关闭页面监听
           removeListenerMessage('webViewOnResume', () => {
             //