video.uvue 17.0 KB
Newer Older
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
1
<template>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
2 3 4 5 6 7 8 9 10 11 12 13
  <view class="uni-flex-item">
    <video class="video" ref="video" id="video" :header="header" :src=src :autoplay="autoplay" :loop="loop"
      :muted="muted" :initial-time="initialTime" :duration="duration" :controls="controls" :danmu-btn="danmuBtn"
      :enable-danmu="enableDanmu" :page-gesture="pageGesture" :direction="direction" :show-progress="showProgress"
      :show-fullscreen-btn="showFullscreenBtn" :show-play-btn="showPlayBtn" :show-center-play-btn="showCenterPlayBtn"
      :show-loading="showLoading" :enable-progress-gesture="enableProgressGesture" :object-fit="objectFit"
      :poster="poster" :show-mute-btn="showMuteBtn" :title="title" :enable-play-gesture="enablePlayGesture"
      :vslide-gesture="vslideGesture" :vslide-gesture-in-fullscreen="vslideGestureInFullscreen" :codec="codec"
      :http-cache="httpCache" :play-strategy="playStrategy" :danmu-list="danmuList" @play="onPlay" @pause="onPause"
      @ended="onEnded" @timeupdate="onTimeUpdate" @waiting="onWaiting" @error="onError" @progress="onProgress"
      @fullscreenclick="onFullScreenClick" @controlstoggle="onControlsToggle" @fullscreenchange="onFullScreenChange">
    </video>
雪洛's avatar
雪洛 已提交
14
    <scroll-view class="uni-padding-wrap uni-common-mt uni-flex-item">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
15
      <input class="input" placeholder="输入视频地址播放" @confirm="onSrcInputConfirm"></input>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
16
      <view class="uni-btn-v">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
17
        <navigator url="/pages/component/video/video-format">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
18
          <button type="primary" @click="pause">视频格式示例</button>
19
        </navigator>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
20
      </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
21 22 23
      <view class="uni-title">
        <text class="uni-title-text">API示例</text>
      </View>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
24
      <view class="uni-btn-v">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
        <button type="primary" @click="play">播放</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="pause">暂停</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="seek(pos)">跳转到指定位置</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="requestFullScreen(requestFullScreenOptions)">进入全屏</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="exitFullScreen">退出全屏</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="stop">停止</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="sendDanmu(danmu)">发送弹幕</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="playbackRate(rate)">设置倍速</button>
      </view>
      <view class="uni-title">
        <text class="uni-title-text">属性示例</text>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setSrc(_src)">设置播放资源</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
53
      </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
      <view class="uni-btn-v">
        <button type="primary" @click="setAutoplay()">设置是否自动播放(未播放时设置有效)</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setLoop()">设置是否循环播放(本次播放完成后生效)</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setMuted()">设置是否静音播放</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setInitialTime(_initialTime)">设置初始播放位置(本次播放完成后生效)</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setDuration(_duration)">设置视频时长(未播放时设置有效)</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setControls()">设置是否显示默认播放控件</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setDanmuBtn()">设置是否显示弹幕按钮</button>
      </view>
fxy060608's avatar
fxy060608 已提交
75
      <!-- #ifndef WEB -->
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
76 77 78
      <view class="uni-btn-v">
        <button type="primary" @click="setPageGesture()">非全屏模式下,设置是否开启亮度与音量调节手势</button>
      </view>
fxy060608's avatar
fxy060608 已提交
79
      <!-- #endif -->
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
      <view class="uni-btn-v">
        <button type="primary" @click="setDirection(_direction)">设置全屏时视频的方向</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setShowProgress()">设置是否显示进度条</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setShowFullscreenBtn()">设置是否显示全屏按钮</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setShowPlayBtn()">设置是否显示视频底部控制栏的播放按钮</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setShowCenterPlayBtn()">设置是否显示视频中间的播放按钮</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setShowLoading()">设置是否显示loading控件</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setEnableProgressGesture()">设置是否开启控制进度的手势</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setObjectFit(_objectFit)">设置视频大小与video容器大小不一致时,视频的表现形式</button>
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setPoster(_poster)">设置视频封面</button>
      </view>
      <view class="uni-btn-v">
108
        <button type="primary" @click="setShowMuteBtn()">设置是否显示静音按钮(仅限非 Web 平台)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
109 110
      </view>
      <view class="uni-btn-v">
111
        <button type="primary" @click="setTitle(_title)">设置视频标题(仅限非 Web 平台)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
112 113
      </view>
      <view class="uni-btn-v">
114
        <button type="primary" @click="setEnablePlayGesture()">设置是否开启播放手势(仅限非 Web 平台)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
115 116
      </view>
      <view class="uni-btn-v">
117
        <button type="primary" @click="setVslideGesture()">非全屏模式下,设置是否开启亮度与音量调节手势(仅限非 Web 平台)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
118 119
      </view>
      <view class="uni-btn-v">
120
        <button type="primary" @click="setVslideGestureInFullscreen()">全屏模式下,设置是否开启亮度与音量调节手势(仅限非 Web 平台)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
121 122
      </view>
      <view class="uni-btn-v">
123
        <button type="primary" @click="setCodec(_codec)">设置解码器(仅 App 平台,未播放时设置有效)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
124 125
      </view>
      <view class="uni-btn-v">
126
        <button type="primary" @click="setHttpCache()">设置是否对http、https视频源开启本地缓存(仅 App 平台,未播放时设置有效)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
127 128
      </view>
      <view class="uni-btn-v">
129
        <button type="primary" @click="setPlayStrategy(_playStrategy)">设置播放策略(仅 App 平台,未播放时设置有效)</button>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
130 131 132 133 134
      </view>
      <view class="uni-btn-v">
        <button type="primary" @click="setHeader(_header)">设置header</button>
      </view>
    </scroll-view>
lizhongyi_'s avatar
lizhongyi_ 已提交
135
    <video v-if="autoTest" :src="localSrc" @error="onError"></video>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
136
  </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
137 138
</template>

H
hdx 已提交
139
<script>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
140
  export default {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
141 142 143
    onReady() {
      this.videoContext = uni.createVideoContext('video', this);
    },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
144 145
    data() {
      return {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
146 147
        videoContext: null as VideoContext | null,
        // 属性
雪洛's avatar
雪洛 已提交
148
        src: "https://qiniu-web-assets.dcloud.net.cn/video/sample/2minute-demo.mp4",
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
149 150 151 152 153 154
        _src: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni-app-video-courses.mp4",
        autoplay: false,
        loop: false,
        muted: false,
        initialTime: 0,
        _initialTime: 6,
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
155
        duration: 0,
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
        _duration: 60,
        controls: true,
        danmuList: [{
          text: '要显示的文本',
          color: '#FF0000',
          time: 3
        }, {
          text: '要显示的文本2',
          color: '#31ff23',
          time: 5
        }, {
          text: '要显示的文本3',
          color: '#f13ef8',
          time: 7
        }, {
          text: '要显示的文本4',
          color: '#4972f8',
          time: 9
        }, {
          text: '要显示的文本5',
          color: '#000000',
          time: 11
        }] as Array<Danmu>,
        danmuBtn: false,
        enableDanmu: true,
        pageGesture: false,
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
182
        direction: -1,
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
        _direction: 0,
        requestFullScreenOptions: {
          direction: -90
        } as RequestFullScreenOptions,
        showProgress: true,
        showFullscreenBtn: true,
        showPlayBtn: true,
        showCenterPlayBtn: true,
        showLoading: true,
        enableProgressGesture: true,
        objectFit: "contain",
        _objectFit: "fill",
        poster: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni-android.png",
        _poster: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni-ios.png",
        showMuteBtn: false,
        title: "video-component",
        _title: "video-component video-component",
        enablePlayGesture: false,
        vslideGesture: false,
        vslideGestureInFullscreen: true,
        codec: "hardware",
        _codec: "software",
        httpCache: true,
        playStrategy: 0,
        _playStrategy: 2,
        header: {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
209 210 211
          'User-Agent': 'User-Agent test',
          'header': 'header test',
          'cookie': 'cookie test'
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
212 213
        } as UTSJSONObject,
        _header: {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
214 215 216
          'User-Agent': 'User-Agent test2',
          'header': 'header test2',
          'cookie': 'cookie test2'
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
217 218 219 220 221 222 223 224 225
        } as UTSJSONObject,
        // API
        pos: 10,
        rate: 1.5,
        danmu: {
          text: '要显示的文本',
          color: '#FF0000'
        } as Danmu,
        // 自动化测试
226
        autoTest: false,
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
227 228
        isPlaying: false,
        isPause: false,
229 230
        isError: false,
        localSrc: ''
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
231 232
      }
    },
雪洛's avatar
雪洛 已提交
233 234
    onLoad() {
    },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
235
    methods: {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
236 237 238 239 240 241 242
      // API
      play: function () {
        console.log("play");
        this.videoContext?.play();
      },
      pause: function () {
        console.log("pause");
雪洛's avatar
雪洛 已提交
243
        (uni.getElementById("video") as UniVideoElement).pause(); //as写法测试。注意id不对时as会崩溃
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
        // this.videoContext?.pause();
      },
      seek: function (pos : number) {
        console.log("seek -> " + pos);
        this.videoContext?.seek(pos);
      },
      requestFullScreen: function (options : RequestFullScreenOptions | null) {
        console.log("requestFullScreen -> " + options);
        this.videoContext?.requestFullScreen(options);
      },
      exitFullScreen: function () {
        console.log("exitFullScreen");
        this.videoContext?.exitFullScreen();
      },
      stop: function () {
        console.log("stop");
        uni.getElementById<UniVideoElement>("video")?.stop(); //泛型写法测试
        // this.videoContext?.stop();
      },
      sendDanmu: function (danmu : Danmu) {
        console.log("sendDanmu -> " + danmu);
        this.videoContext?.sendDanmu(danmu);
      },
      playbackRate: function (rate : number) {
        console.log("playbackRate -> " + rate);
        this.videoContext?.playbackRate(rate);
      },
      // 属性
      setSrc: function (src : string) {
        this.src = src;
        console.log("src -> " + this.src)
      },
      setAutoplay: function () {
        this.autoplay = !this.autoplay;
        console.log("autoplay -> " + this.autoplay)
      },
      setLoop: function () {
        this.loop = !this.loop;
        console.log("loop -> " + this.loop)
      },
      setMuted: function () {
        this.muted = !this.muted;
        console.log("muted -> " + this.muted)
      },
      setInitialTime: function (initialTime : number) {
        this.initialTime = initialTime;
        console.log("initialTime -> " + this.initialTime)
      },
      setDuration: function (duration : number) {
        this.duration = duration;
        console.log("duration -> " + this.duration)
      },
      setControls: function () {
        this.controls = !this.controls;
        console.log("controls -> " + this.controls)
      },
      setDanmuBtn: function () {
        this.danmuBtn = !this.danmuBtn;
        console.log("danmuBtn -> " + this.danmuBtn)
      },
      setPageGesture: function () {
        this.pageGesture = !this.pageGesture;
        console.log("pageGesture -> " + this.pageGesture)
      },
      setDirection: function (direction : number) {
        this.direction = direction;
        console.log("direction -> " + this.direction)
      },
      setShowProgress: function () {
        this.showProgress = !this.showProgress;
        console.log("showProgress -> " + this.showProgress)
      },
      setShowFullscreenBtn: function () {
        this.showFullscreenBtn = !this.showFullscreenBtn;
        console.log("showFullscreenBtn -> " + this.showFullscreenBtn)
      },
      setShowPlayBtn: function () {
        this.showPlayBtn = !this.showPlayBtn;
        console.log("showPlayBtn -> " + this.showPlayBtn)
      },
      setShowCenterPlayBtn: function () {
        this.showCenterPlayBtn = !this.showCenterPlayBtn;
        console.log("showCenterPlayBtn -> " + this.showCenterPlayBtn)
      },
      setShowLoading: function () {
        this.showLoading = !this.showLoading;
        console.log("showLoading -> " + this.showLoading)
      },
      setEnableProgressGesture: function () {
        this.enableProgressGesture = !this.enableProgressGesture;
        console.log("enableProgressGesture -> " + this.enableProgressGesture)
      },
      setObjectFit: function (objectFit : string) {
        this.objectFit = objectFit;
        console.log("objectFit -> " + this.objectFit)
      },
      setPoster: function (poster : string) {
        this.poster = poster;
        console.log("poster -> " + this.poster)
      },
      setShowMuteBtn: function () {
        this.showMuteBtn = !this.showMuteBtn;
        console.log("showMuteBtn -> " + this.showMuteBtn)
      },
      setTitle: function (title : string) {
        this.title = title;
        console.log("title -> " + this.title)
      },
      setEnablePlayGesture: function () {
        this.enablePlayGesture = !this.enablePlayGesture;
        console.log("enablePlayGesture -> " + this.enablePlayGesture)
      },
      setVslideGesture: function () {
        this.vslideGesture = !this.vslideGesture;
        console.log("vslideGesture -> " + this.vslideGesture)
      },
      setVslideGestureInFullscreen: function () {
        this.vslideGestureInFullscreen = !this.vslideGestureInFullscreen;
        console.log("vslideGestureInFullscreen -> " + this.vslideGestureInFullscreen)
      },
      setCodec: function (codec : string) {
        this.codec = codec;
        console.log("codec -> " + this.codec)
      },
      setHttpCache: function () {
        this.httpCache = !this.httpCache;
        console.log("httpCache -> " + this.httpCache)
      },
      setPlayStrategy: function (playStrategy : number) {
        this.playStrategy = playStrategy;
        console.log("playStrategy -> " + this.playStrategy)
      },
      setHeader: function (header : UTSJSONObject) {
        this.header = header;
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
378
        console.log("header -> " + JSON.stringify(this.header))
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
379 380
      },
      // 事件
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
381
      onPlay: function (res : UniEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
382 383 384 385
        console.log(res.type);
        this.isPlaying = true;
        this.isPause = false;
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
386
      onPause: function (res : UniEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
387 388 389 390
        console.log(res.type);
        this.isPlaying = false;
        this.isPause = true;
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
391
      onEnded: function (res : UniEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
392 393
        console.log(res.type);
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
394
      onTimeUpdate: function (res : UniVideoTimeUpdateEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
395 396
        console.log(res.type + " -> " + JSON.stringify(res.detail));
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
397
      onFullScreenChange: function (res : UniVideoFullScreenChangeEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
398 399
        console.log(res.type + " -> " + JSON.stringify(res.detail));
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
400
      onWaiting: function (res : UniEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
401 402
        console.log(res.type);
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
403
      onError: function (res : UniVideoErrorEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
404
        console.log(res.type + " -> " + JSON.stringify(res.detail));
405
        this.isError = true;
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
406
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
407
      onProgress: function (res : UniVideoProgressEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
408 409
        console.log(res.type + " -> " + JSON.stringify(res.detail));
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
410
      onFullScreenClick: function (res : UniVideoFullScreenClickEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
411 412
        console.log(res.type + " -> " + JSON.stringify(res.detail));
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
413
      onControlsToggle: function (res : UniVideoControlsToggleEvent) {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
414
        console.log(res.type + " -> " + JSON.stringify(res.detail));
415
      },
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
416 417 418
      onSrcInputConfirm(event : UniInputConfirmEvent) {
        this.src = event.detail.value;
      },
419 420 421 422 423 424 425 426 427 428 429 430
      // 自动化测试
      downloadSource() {
        uni.downloadFile({
          url: 'https://qiniu-web-assets.dcloud.net.cn/video/sample/2minute-demo.mp4',
          success: (res) => {
            this.localSrc = res.tempFilePath;
            this.autoTest = true;
          },
          fail: (_) => {
            this.isError = true;
          }
        })
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
431
      }
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
432 433
    }
  }
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
434 435 436
</script>

<style>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
437
  .video {
H
hdx 已提交
438 439
    width: 100%;
    height: 200px;
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
440
  }
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
441 442 443 444 445 446

  .input {
    height: 40px;
    background: #FFF;
    margin: 5px 0;
  }
447
</style>