浏览代码

修复三力测试无法滚动的问题

JXDS18FUJT 1 年之前
父节点
当前提交
8319940dcd
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/otherPages/threeExam/index.vue

+ 5 - 5
src/otherPages/threeExam/index.vue

@@ -312,7 +312,7 @@
             </view>
           </view>
           <view class="problem-body">
-            <view class="problem-listBody">
+            <scroll-view scroll-y class="problem-listBody">
               <view class="problem-listItem" :key="index" @click="() => {
                  problemListIndex=index
                 }
@@ -325,7 +325,7 @@
   }">
                 {{ index + 1 }}
               </view>
-            </view>
+            </scroll-view>
           </view>
           <view class="problem-bottom">
             <!-- <view @click="
@@ -679,13 +679,13 @@ export default {
     height: 480rpx;
     padding-top: 30rpx;
     overflow-y: scroll;
-    -webkit-overflow-scrolling: touch;
+
 
     .problem-listBody {
       display: inline-block;
       overflow-y: scroll;
-      -webkit-overflow-scrolling: touch;
-
+      height: 440rpx;
+  
       .problem-listItem {
         display: inline-block;
         width: 99rpx;