zhaoxiaohai před 3 roky
rodič
revize
c6a14aa1fe
2 změnil soubory, kde provedl 9 přidání a 2 odebrání
  1. 1 1
      pages/college/detail.wxml
  2. 8 1
      pages/college/index.js

+ 1 - 1
pages/college/detail.wxml

@@ -1,4 +1,4 @@
-<video class="header" autoplay src="{{currentVideo.url}}" poster='{{detailData.cover}}' />
+<video class="header" src="{{currentVideo.url}}" poster='{{detailData.cover}}' />
 <!-- 简介 -->
 <navigator url="#" class="brief bsae-box">
     <view class="first-line">

+ 8 - 1
pages/college/index.js

@@ -1,5 +1,6 @@
 const getHeight = require("../../utils/getRheRemainingHeight");
 const _Http = getApp().globalData.http;
+let dowmCount = null;
 Page({
 
     /**
@@ -91,10 +92,16 @@ Page({
     startSearch({
         detail
     }) {
+        clearTimeout(dowmCount);
+
         this.setData({
             "content.where.condition": detail.trim()
         })
-        this.selectList(true);
+
+        dowmCount = setTimeout(() => {
+            this.selectList(true);
+        }, 500);
+
     },
 
     /* 关闭搜索 */