meng1111
meng1111
  • 发布:2020-10-28 22:43
  • 更新:2020-10-28 22:43
  • 阅读:507

swiper

分类:uni-app
<template> <div class="page" :style="{ height: height }"> <div class="swiper" :style="containerStyle"> <block v-for="(item, index) in videoList" :key="index"> <video-new class="video" video_id="item.video_id" nickname="item.nickname" video_describe="item.video_describe" cover_url="item.cover_url" video_url="item.video_url" dianzan="item.dianzan" is_dianzan="item.is_dianzan" pinglun="item.pinglun" zhuanfa="item.zhuanfa" height="height" width="width" play="item.flag" index="index" cur_index="cur_index" style="{ height: height, width: width }" ></video-new>
</block>
</div>
<cover-view
class="cover-view-marks" style="{ height: height, width: width }" @click.stop="clickVideo"
@touchmove="ListTouchMove"
@touchend.stop="ListTouchEnd"
@touchstart="ListTouchStart">
</cover-view>
<cover-view class="wrapper" :style="{ width: width }">
<cover-view class="title-center" :style="{ width: width }">
<text class="title" :class="video_type == 'recommend' ? 'active-title' : ''" @click="switchTtype('recommend')">推荐</text>
<text class="title" :class="video_type == 'follow' ? 'active-title' : ''" @click="switchTtype('follow')">关注</text>
</cover-view>
</cover-view>
</div>
</template>

这不是使用swiper,而是使用div(class名为swiper)啊?

2020-10-28 22:43 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复