fenggu/pages/index/index.wxml

81 lines
2.6 KiB
Plaintext

<!--pages/index.wxml-->
<view class="container">
<scroll-view class="scroll-height" scroll-y='true' bindscrolltolower='loadChange' lower-threshold="1">
<view class="page-body">
<view class="page-section page-section-spacing swiper">
<swiper autoplay="true" interval="{{interval}}" duration="{{duration}}" circular="true"
current="{{swiperCurrent}}" bindchange="swiperChange">
<block wx:for="{{img_url}}" wx:key="index">
<swiper-item>
<view class="swiper-item">
<image src="{{item}}" mode="widthFix"></image>
</view>
</swiper-item>
</block>
</swiper>
</view>
<view class="dots">
<block wx:for="{{img_url}}" wx:key="unique">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
</block>
</view>
</view>
<!--内容-->
<view class="view-bg top40">
<view class="countdown">
<view class="names">
<text>距离投票结束还有</text>
</view>
<view class="time">
<text>{{day}}</text>天 <text>{{hou}}</text>时<text>{{min}}</text>分<text>{{sec}}</text>秒
</view>
<view class="tab">
<view class="list">
{{tab_number}}<text>人</text>
<text>参与者</text>
</view>
<view class="list">
{{tab_vote}}<text>票</text>
<text>投票数</text>
</view>
<view class="list">
{{tab_visit}}<text>次</text>
<text>访问量</text>
</view>
</view>
</view>
<!--规则-->
<view class="search">
<input type="text" class="search-int" bindconfirm='goSearch' placeholder="请输入选手姓名或作品编号" />
</view>
<!--作品列表-->
<view class="works">
<block wx:for="{{works_list}}" wx:key="index">
<view class="list">
<view class="img" bindtap='picture' data-id="{{item.ids}}">
<view class="id">{{item.ids}}<text>号</text></view>
<image mode="aspectFill" src="{{item.img}}"></image>
</view>
<view class="text">简介:{{item.text}}</view>
<view class="name " bindtap="personal" data-uid="{{item.uid}}" style="display: flex;justify-content: space-between;">
<view class="clips1">{{item.name}}</view> <text>{{item.number}}</text>
</view>
<button class="add" bindtap='vote' data-id="{{item.ids}}" data-index="{{index}}">投票</button>
</view>
</block>
</view>
</view>
<view style="padding:40rpx;text-align:center;font-size:24rpx;" wx:if="{{!forMore}}">没有更多内容</view>
<!--报名-->
<!--view class="signup" bindtap="sign">
我要报名
</view-->
<view class=" sign-rule" bindtap="rule">
活动规则
</view>
<!---->
</scroll-view>
</view>