index.wxml 1.08 KB
<view class="container">
    <view class="ticket-number">取票号:{{ticketCode}}</view>
    <view class="ticket-content">
        <image src="../../../static/images/left_arraw@3x.png" class="left-slide" bindtap="leftSlide"></image>

        <swiper class="scroll-box" wx:if="{{data.length > 0}}" bindchange="swiperChange" current="{{swiperCurrent}}">
            <block wx:for="{{ticketList}}" wx:for-item="tickect" wx:key="index">
                <swiper-item>
                    <view class="card">
                      <image src="{{tickect.qr_image}}" class="qr-image" style="opacity: {{tickect.is_sign==='Y' ? '0.4;' : ''}}"></image>
                      <view wx:if="{{tickect.is_sign==='Y'}}" class="already-used">已取票</view>
                    </view>
                </swiper-item>
            </block>
        </swiper>

        <image src="../../../static/images/right_arraw@3x.png" class="right-slide" bindtap="rightSlide"></image>

    </view>
    <view class="ticket-title">{{title}}</view>
    <view class="ticket-index">{{swiperCurrent+1}}/{{ticketList.length}}</view>

</view>