Sfoglia il codice sorgente

1.fix:七大员(专业继教)提示

xiexaing 1 anno fa
parent
commit
cccb247485

+ 3 - 3
src/components/login/index.vue

@@ -353,15 +353,15 @@
               style="color: #f59a23; margin: 8px 5px 0 0"
             ></div>
             <div>
-              尊敬的用户:您购买的
+              尊敬的用户:您购买的课程
               <span v-for="item, index in checkTwoClassList" :key="index">
-                课程【{{ item.goodsName }}】有效期还剩 {{
+               【{{ item.gradeName }}】班级有效期还剩 {{
                 $tools.GetRTime(item.classEndTime) > 0
                   ? $tools.GetRTime(item.classEndTime)
                   : 0
                 }}天,请在
                 {{
-                  $tools.timestampToTime(item.classEndTime - 864000)
+                  $tools.timestampToTime(item.classEndTime, true, true)
                 }}前完成学习及考试,到期未完成学时清零,需重新学习。<br>
               </span>
             </div>

+ 18 - 9
src/pages/person-center/my-course/index.vue

@@ -105,7 +105,7 @@
                     </div>
                   </template>
                   <!-- v-else -->
-                  <template v-if="item.educationName != '考前培训'">
+                  <template v-else-if="item.educationName != '考前培训'">
                     学习状态:
                     <div class="note" v-if="item.periodStatus == 0">
                       学时审核不通过
@@ -117,7 +117,7 @@
                       学时待审核
                     </div>
                     <div
-                      class="note note--yellow"
+                      class="note note--yellow" 
                       v-else-if="item.periodStatus == 3"
                     >
                       审核中
@@ -628,7 +628,7 @@
                     : 0
                 }}
                 天, 请在{{
-                  $tools.timestampToTime(item.classEndTime - 864000, false)
+                  $tools.timestampToTime(item.classEndTime, false)
                 }}
                 前完成学习及考试,到期未完成学时将清零,需重新学习。
               </span>
@@ -646,7 +646,7 @@
                     : 0
                 }}
                 天, 请在{{
-                  $tools.timestampToTime(item.serviceEndTime - 864000, false)
+                  $tools.timestampToTime(item.serviceEndTime, false)
                 }}
                 前完成学习,避免课程过期作废,无法学习给您带来不便。
               </span>
@@ -655,17 +655,17 @@
             <div
               class="course-item__footer"
               style="color: red"
-              v-if="isTwoEducation(item)"
+              v-if="isMajorEducation(item)"
             >
-              <span v-if="item.sevenPushReason === '培训周期时间未到'">
+              <span v-if="item.sevenPushReason === '培训周期时间未到' && item.officialStatus != 1">
                 温馨提示:您{{
                   item.orderYear
-                }}年公路工程专业培训周期还没到,请在{{ $tools.timestampToTime(item.sevenPushDate - 864000) }}后再进行继教。
+                }}年{{ item.majorName }}专业培训周期还没到,请在{{ $tools.timestampToTime(item.sevenPushDate) }}后再进行继教。
               </span>
               <span v-if="item.sevenPushReason === '无相关专业专书'">
                 温馨提示:您当前的课程{{
                   item.orderYear
-                }}年公路工程专业,未能匹配到可继教证书,可前往住建证书官网查询。
+                }}年{{ item.majorName }}专业,未能匹配到可继教证书,可前往住建证书官网查询。
                 <span
                   style="color: #2f9aff; cursor: pointer"
                   @click="copy('https://rcgz.mohurd.gov.cn/Login/NetworkingSearch?type=2') "
@@ -676,7 +676,7 @@
               <span v-if="item.sevenPushReason === '无需2024继续教育'">
                 温馨提示:您{{
                   item.orderYear
-                }}年公路工程专业已完成继教,无需重复继教,可前往住建证书官网查询。
+                }}年{{ item.majorName }}专业已完成继教,无需重复继教,可前往住建证书官网查询。
                 <span
                   style="color: #2f9aff; cursor: pointer"
                   @click="copy('https://rcgz.mohurd.gov.cn/Login/NetworkingSearch?type=2')"
@@ -964,6 +964,15 @@ export default {
         );
       }
     },
+    // 公路专业(施工现场专业人员——继续教育)
+    isMajorEducation() {
+      return function(item) {
+        return (
+          item.projectName + item.educationName ===
+          "施工现场专业人员继续教育"
+        );
+      }
+    },
   },
   async mounted() {
     this.getUserInfo();