WINDOWS-7IFQK7E\EDY 2 years ago
parent
commit
b07acb2fc9
3 changed files with 19 additions and 11 deletions
  1. 11 0
      src/components.d.ts
  2. 6 9
      src/pages/stxkbzr/index.vue
  3. 2 2
      src/pages/stxkjsd/ckxq/index.vue

+ 11 - 0
src/components.d.ts

@@ -12,14 +12,25 @@ declare module '@vue/runtime-core' {
     RouterLink: typeof import('vue-router')['RouterLink']
     RouterView: typeof import('vue-router')['RouterView']
     VanButton: typeof import('vant/es')['Button']
+    VanCard: typeof import('vant/es')['Card']
     VanConfigProvider: typeof import('vant/es')['ConfigProvider']
     VanDropdownItem: typeof import('vant/es')['DropdownItem']
     VanDropdownMenu: typeof import('vant/es')['DropdownMenu']
+    VanGrid: typeof import('vant/es')['Grid']
+    VanGridItem: typeof import('vant/es')['GridItem']
     VanIcon: typeof import('vant/es')['Icon']
+    VanList: typeof import('vant/es')['List']
     VanNavBar: typeof import('vant/es')['NavBar']
+    VanPullRefresh: typeof import('vant/es')['PullRefresh']
     VanRate: typeof import('vant/es')['Rate']
+    VanSearch: typeof import('vant/es')['Search']
+    VanSwipe: typeof import('vant/es')['Swipe']
+    VanSwipeItem: typeof import('vant/es')['SwipeItem']
     VanTab: typeof import('vant/es')['Tab']
+    VanTabbar: typeof import('vant/es')['Tabbar']
+    VanTabbarItem: typeof import('vant/es')['TabbarItem']
     VanTabs: typeof import('vant/es')['Tabs']
+    VanTag: typeof import('vant/es')['Tag']
     VanUploader: typeof import('vant/es')['Uploader']
   }
 }

+ 6 - 9
src/pages/stxkbzr/index.vue

@@ -36,8 +36,8 @@
       <p>课程数量({{ week?.course?.length ?? 0 }})</p>
       <p>
         今日本班学生到校:
-        <span style="color: #003eee">{{ week?.course?.length ?? 0 }}</span
-        >/43
+        <span style="color: #003eee">{{ week.dmxx.xsqd }}</span
+        >/{{ week.dmxx.xszs }}
         <span @click="getYdm(), (toSignUp = true)">预报名</span>
       </p>
       <div class="class-list" v-for="c in week.course" :key="c">
@@ -75,10 +75,7 @@
       <h3>预点名</h3>
       <p>
         今日本班学生到校:
-        <span style="color: #003eee">{{
-          classDetail?.member?.length ?? 0
-        }}</span
-        >/30
+        <span style="color: #003eee">1</span>/2
       </p>
 
       <div class="students">
@@ -123,7 +120,7 @@
             <span></span>预点名情况:<span style="color: #003eee">{{
               classDetail?.dm?.ydmqk?.length ?? 0
             }}</span
-            >/43
+            >/{{ classDetail?.member?.length ?? 0 }}
           </p>
           <div v-for="(item, index) in newYdmqk" :key="index">
             {{ item.kkbm_s_realname }}
@@ -134,7 +131,7 @@
             <span></span>签到情况:<span style="color: #003eee">{{
               classDetail?.dm?.ydmqk?.length ?? 0
             }}</span
-            >/43
+            >/{{ classDetail?.member?.length ?? 0 }}
           </p>
           <div v-for="(item, index) in newQdqk" :key="index">
             {{ item.kkbm_s_realname }}
@@ -199,7 +196,7 @@ export default {
       });
     },
     onClickLeft() {
-      history.back();
+      this.history.back();
     },
     getWeek() {
       var day = new Date().getDay();

+ 2 - 2
src/pages/stxkjsd/ckxq/index.vue

@@ -43,7 +43,7 @@
               <span></span>预点名情况:<span style="color: #003eee">{{
                 classDetail?.dm?.ydmqk?.length ?? 0
               }}</span
-              >/43
+              >/{{ classDetail?.member?.length ?? 0 }}
             </p>
             <div v-for="(item, index) in newYdmqk" :key="index">
               {{ item.kkbm_s_realname }}
@@ -54,7 +54,7 @@
               <span></span>签到情况:<span style="color: #003eee">{{
                 classDetail?.dm?.ydmqk?.length ?? 0
               }}</span
-              >/43
+              >/{{ classDetail?.member?.length ?? 0 }}
             </p>
             <div v-for="(item, index) in newQdqk" :key="index">
               {{ item.kkbm_s_realname }}