Ver Fonte

新增预约考试人数展示

谢杰标 há 2 anos atrás
pai
commit
2d2501c445
2 ficheiros alterados com 15 adições e 3 exclusões
  1. 2 2
      common/config.js
  2. 13 1
      pages/learn/index.vue

+ 2 - 2
common/config.js

@@ -6,13 +6,13 @@ const test = {
   tenantId: "867735392558919680", //详粤云学堂
   appid: "wxd3c8ae80cf43a305",
 };
-const index = 0; // 测试环境
+// const index = 0; // 测试环境
 // const index = 1; // 祥粤云学堂
 // const index = 2 // 祥粤学堂
 // const index = 3 // 勘设云学堂
 // const index = 4 // 中正云学堂
 // const index = 5 // 山西云学堂
-// const index = 6 // 预发布
+const index = 6 // 预发布
 const set = [
   test,
   // 祥粤云学堂

+ 13 - 1
pages/learn/index.vue

@@ -397,7 +397,9 @@
                   v-if="item.examApplyGoodsList"
                   @click="appointment(item)"
                 >
-                  <view class="exam_word ones">预约考试</view>
+                  <view class="exam_word ones">{{
+                    item.subscribeSign == 4 ? "预约记录" : "预约考试"
+                  }}</view>
                 </view>
                 <view
                   class="box_appoint"
@@ -572,6 +574,12 @@
             >
               <view class="course_lefts">
                 <view class="course_title">{{ appoint.applyName }}</view>
+                <view
+                  style="color: #999999; margin-top: 10rpx; font-size: 24rpx"
+                >
+                  <text style="margin-right: 8rpx">预约人数</text>
+                  {{ appoint.subscribeNum }}/{{ appoint.applyNum }}
+                </view>
               </view>
               <view class="course_rights" @click="jumpTest(appoint)">
                 <view
@@ -1398,6 +1406,10 @@ export default {
       });
     },
     appointment(item) {
+      if (item.subscribeSign == 4) {
+        this.$navTo.togo("/pages2/exam/exam_appointment");
+        return;
+      }
       this.appointItemIndex = item;
       this.appointTestList = item.examApplyGoodsList;
       this.appointTestShow = true;