Browse Source

修改样式

aaa 3 years ago
parent
commit
4763bffefd

+ 24 - 2
src/views/home/answer/page-answer-recruit-result.vue

@@ -6,7 +6,9 @@
       <div class="exam-item-result-grade">{{ rightNum }}</div>
       <div>正确率:{{ accuracyVal }}</div>
       <!-- <div>积分+{{ rightNum }}</div> -->
-      <div class="exam-item-detial-button-box">
+      <div
+       v-if="answerRecruitId !='weekly-questions' && answerRecruitId !='special-questions'"
+       class="exam-item-detial-button-box">
         <van-button
           class="exam-item-detial-button"
           type="primary"
@@ -15,7 +17,6 @@
           >返回</van-button
         >
         <van-button
-        v-if="answerRecruitId !='weekly-questions' && answerRecruitId !='special-questions'"
           class="exam-item-detial-button"
           type="primary"
           color="#0088e9"
@@ -23,6 +24,15 @@
           >再来一组</van-button
         >
       </div>
+      <div v-else class="exam-item-detial-button-box-single">
+        <van-button
+          class="exam-item-detial-button"
+          type="primary"
+          color="#0088e9"
+          @click="handleBackFun"
+          >返回</van-button
+        >
+      </div>
     </div>
   </div>
 </template>
@@ -121,6 +131,18 @@ export default {
         font-size: 0.65rem;
       }
     }
+    .exam-item-detial-button-box-single {
+      display: flex;
+      justify-content: center;
+      align-items: center;
+      margin-top: 0.5rem;
+      .exam-item-detial-button {
+        width: 48%;
+        height: auto;
+        padding: 0.5rem 0.5rem;
+        font-size: 0.65rem;
+      }
+    }
   }
 }
 </style>

+ 1 - 1
src/views/home/answer/page-answer-recruit.vue

@@ -702,7 +702,7 @@ export default {
       this.examQuestionList.forEach(item => {
         let isSure = this.getAnswerItemResultFun(item);
         if (isSure) {
-          result.grades += item.points; // 默认每题一分
+          result.grades += 1; // 默认每题一分
           result.num += 1;
         }
       });

+ 1 - 1
src/views/home/answer/through/through-question-doing.vue

@@ -497,7 +497,7 @@ export default {
       this.examQuestionList.forEach(item => {
         let isSure = this.getAnswerItemResultFun(item);
         if (isSure) {
-          result.grades += item.points; // 默认每题一分
+          result.grades += 1; // 默认每题一分
           result.num += 1;
         }
       });

+ 2 - 2
src/views/home/exam/page-exam-item-doing.vue

@@ -36,7 +36,7 @@
               {{ examQuestionList[answerIndex].typeTxt || "undefind" }}
             </div>
             <span class="exam-question-head-left-txt"
-              >{{ examQuestionList[answerIndex].grade || 1 }} 分</span
+              >{{ examQuestionList[answerIndex].points || 1 }} 分</span
             >
           </div>
           <div class="exam-question-head-right">
@@ -176,7 +176,7 @@ export default {
     //   Toast("正在考试中,无法退出");
     //   history.pushState(null, null, document.URL);
     // });
-    this.$refs.uploadUserInput.click(); // 调用拍照工具
+    // this.$refs.uploadUserInput.click(); // 调用拍照工具
     this.initDataFun(); // 初始化数据信息
   },
   created() {

+ 6 - 1
src/views/home/learn/page-learn-child.vue

@@ -197,12 +197,17 @@ export default {
       justify-content: space-between;
       align-items: center;
       .contentItemTitle {
-        text-align: center;
+        text-align: left;
         font-size: 0.65rem;
         color: #000;
         white-space: nowrap;
         text-overflow: ellipsis;
         overflow: hidden;
+        word-wrap:break-word;
+        white-space:pre-wrap;
+        display: -webkit-box;
+        -webkit-box-orient: ho;
+        -webkit-line-clamp:10;
       }
       .contentItemstates {
         font-size: 0.6rem;

+ 6 - 1
src/views/home/learn/page-learn-recommend.vue

@@ -146,12 +146,17 @@ export default {
       justify-content: space-between;
       align-items: center;
       .contentItemTitle {
-        text-align: center;
+        text-align: left;
         font-size: 0.65rem;
         color: #000;
         white-space: nowrap;
         text-overflow: ellipsis;
         overflow: hidden;
+        word-wrap:break-word;
+        white-space:pre-wrap;
+        display: -webkit-box;
+        -webkit-box-orient: ho;
+        -webkit-line-clamp:10;
       }
       .contentItemstates {
         font-size: 0.6rem;

+ 2 - 2
src/views/home/person/rank.vue

@@ -46,7 +46,7 @@
                   {{ item.nickName || "userName" + (index + 1) }}
                 </div>
                 <span class="contentItemTopRowChildPoints">
-                  {{ item.points || 0 }}
+                  {{ item.totalPoints || 0 }}
                 </span>
                 <span class="contentItemTopRowChildSteps">积分</span>
               </div>
@@ -68,7 +68,7 @@
                   <div>{{ item.nickName || "未知" }}</div>
                 </div>
                 <div class="userPonits">
-                  {{ item.points||0 }}
+                  {{ item.totalPoints||0 }}
                   <span>积分</span>
                 </div>
               </div>