index.wxml 1.1 KB

1
  1. <view class="content"><view class="one"><input type="text" placeholder="搜索名称" data-event-opts="{{[['blur',[['toInput',['$event']]]],['input',[['__set_model',['$0','name','$event',[]],['searchInfo']]]]]}}" value="{{searchInfo.name}}" bindblur="__e" bindinput="__e"/></view><view class="two"><scroll-view class="scroll-view" scroll-y="true" data-event-opts="{{[['scrolltolower',[['toPage',['$event']]]],['scroll',[['toScroll',['$event']]]]]}}" bindscrolltolower="__e" bindscroll="__e"><view class="list-scroll-view"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list"><view class="name"><text>{{index+1+"."}}</text><text>{{item.name}}</text></view><view class="other"><view class="other_1"><text>视频流:</text><text>{{item.path||'暂无视频流'}}</text></view></view><view class="btn"><button type="primary" size="mini" data-event-opts="{{[['tap',[['toPlay',['$0'],[[['list','',index]]]]]]]}}" bindtap="__e">播放视频</button></view></view></block></view></scroll-view></view><block wx:if="{{is_bottom}}"><view class="is_bottom"><text>到底了,嘻嘻!</text></view></block></view>