Browse Source

道路视频选择方式修改

JXDS18FUJT 2 years ago
parent
commit
6665527f80
3 changed files with 47 additions and 18 deletions
  1. 11 2
      src/otherPages/examRoadVideo/index.vue
  2. 2 1
      src/pages.json
  3. 34 15
      src/pages/teacherVideo/index.vue

+ 11 - 2
src/otherPages/examRoadVideo/index.vue

@@ -174,13 +174,23 @@ export default {
     getExamCityAndProviceName(e) {
       this.provinceShow = false;
       this.province = e.detail.value;
+      this.city = {
+        cityId: "",
+        city: "",
+      };
       uni.setStorageSync("roadExamProvince", e.detail.value);
       api.exam
         .studentExamInfoCityProviceId(e.detail.value.provinceId)
         .then((res) => {
           this.examCityList = res.data;
         });
-      console.log(e);
+      api.exam
+        .studentExamInfoList({
+          ...this.province,
+        })
+        .then((res) => {
+          this.examRoomList = res.rows;
+        });
     },
   },
   onLoad(query) {
@@ -271,7 +281,6 @@ export default {
   .list {
     width: 100%;
     background: #edf4ff;
-    height: 1200rpx;
     box-shadow: 0px 6rpx 12rpx 2rpx rgba(0, 0, 0, 0.1);
 
     border-radius: 20rpx 20rpx 20rpx 20rpx;

+ 2 - 1
src/pages.json

@@ -523,7 +523,8 @@
       "van-sidebar-item": "wxcomponents/vant/sidebar-item/index",
       "van-grid": "wxcomponents/vant/grid/index",
       "van-grid-item": "wxcomponents/vant/grid-item/index",
-      "van-nav-bar": "wxcomponents/vant/nav-bar/index"
+      "van-nav-bar": "wxcomponents/vant/nav-bar/index",
+      "van-action-sheet":"wxcomponents/vant/action-sheet/index"
     }
   },
   "condition": {

+ 34 - 15
src/pages/teacherVideo/index.vue

@@ -54,10 +54,18 @@
     </view>
     <view class="care" :style="careVisible ? '' : 'display:none'">
       <view class="dialog">
+        <view class="title">请先关注公众号</view>
         <official-account></official-account>
-        <view @click="()=>{
-          careVisible=false
-          }" class="confirm"> 关闭</view>
+        <view
+          @click="
+            () => {
+              careVisible = false;
+            }
+          "
+          class="confirm"
+        >
+          关闭</view
+        >
       </view>
     </view>
 
@@ -127,7 +135,6 @@ export default {
       }
     },
     onLoad(query) {
-    
       this.query = query;
     },
   },
@@ -153,22 +160,34 @@ export default {
   justify-content: center;
   align-items: center;
   align-content: center;
+
   .dialog {
     width: 300px;
-    height: calc(84px + 72rpx);
+    height: calc(84px + 144rpx);
     background: #fff;
     border-radius: 16rpx;
     overflow: hidden;
-  }
-  .confirm {
-    width: 100%;
-    height: 72rpx;
-    text-align: center;
-    font-size: 40rpx;
-    line-height: 72rpx;
-    color: #ee0a24;
-    background: #fff;
-    letter-spacing:15px;
+    .title {
+      width: 100%;
+      height: 72rpx;
+      text-align: center;
+      font-size: 32rpx;
+      line-height: 72rpx;
+      color: #333;
+      background: #fff;
+   
+      font-weight: bold;
+    }
+    .confirm {
+      width: 100%;
+      height: 72rpx;
+      text-align: center;
+      font-size: 40rpx;
+      line-height: 72rpx;
+      color: #ee0a24;
+      background: #fff;
+      letter-spacing: 15px;
+    }
   }
 }
 .road {