index.wxml 3.8 KB

1
  1. <app-layout vue-id="1e1e1278-1" class="data-v-1daa2601" bind:__l="__l" vue-slots="{{['default']}}"><app-swiper vue-id="{{('1e1e1278-2')+','+('1e1e1278-1')}}" height="280" list="{{banner_list}}" class="data-v-1daa2601" bind:__l="__l"></app-swiper><block wx:if="{{setting.cs_status===1&&setting.cs_prompt_pic}}"><view data-event-opts="{{[['tap',[['qrcode',['$event']]]]]}}" class="lottery-share data-v-1daa2601" bindtap="__e"><image src="{{setting.cs_prompt_pic}}" mode="aspectFit" load-lazy="{{true}}" class="data-v-1daa2601"></image></view></block><view class="dir-top-nowrap bottom data-v-1daa2601"><block wx:for="{{list}}" wx:for-item="v" wx:for-index="k" wx:key="k"><view class="lottery cross-center data-v-1daa2601"><view class="lottery-image box-grow-0 data-v-1daa2601"><view class="data-v-1daa2601">{{v.lottery_log_count+"人参与"}}</view><image src="{{v.cover_pic}}" load-lazy="{{true}}" class="data-v-1daa2601"></image></view><view data-event-opts="{{[['tap',[['goods',['$0'],[[['list','',k]]]]]]]}}" class="dir-top-nowrap lottery-desc box-grow-1 data-v-1daa2601" bindtap="__e"><view class="box-grow-0 goods-name t-omit-two data-v-1daa2601">{{v.goods_name}}</view><view class="box-grow-1 dir-left cross-center activity data-v-1daa2601"><icon class="activity-icon data-v-1daa2601"></icon><block wx:if="{{v.new_status==2}}"><text class="data-v-1daa2601">距活动开始:</text></block><block wx:else><text class="data-v-1daa2601">距活动结束:</text></block><block wx:if="{{times[k].day>0||times[k].hour>0}}"><text class="data-v-1daa2601"><text class="red data-v-1daa2601">{{times[k].day}}</text><text class="data-v-1daa2601">天</text><text class="red data-v-1daa2601">{{times[k].hour}}</text><text class="data-v-1daa2601">小时</text></text></block><block wx:if="{{times[k].day==0&&times[k].hour==0}}"><text class="data-v-1daa2601"><text class="red data-v-1daa2601">{{times[k].minute}}</text><text class="data-v-1daa2601">分</text><text class="red data-v-1daa2601">{{times[k].second}}</text><text class="data-v-1daa2601">秒</text></text></block></view><view class="stock box-grow-0 data-v-1daa2601">{{"共"+v.stock+"份"}}</view><view class="dir-left-nowrap cross-center box-grow-0 end data-v-1daa2601"><view class="price box-grow-1 dir-left-nowrap data-v-1daa2601"><view class="currency data-v-1daa2601">¥0</view><view class="original data-v-1daa2601">{{"原价¥"+v.price}}</view></view><view class="price box-grow-0 data-v-1daa2601"><block wx:if="{{v.new_status==2}}"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" catchtap="__e" class="data-v-1daa2601"><app-button vue-id="{{('1e1e1278-3-'+k)+','+('1e1e1278-1')}}" height="56" font-size="28" color="#FFFFFF" round="{{true}}" background="#cdcdcd" width="164" disabled="{{true}}" class="data-v-1daa2601" bind:__l="__l" vue-slots="{{['default']}}">尚未开始</app-button></view></block><block wx:else><block wx:if="{{v.new_status==1}}"><app-button vue-id="{{('1e1e1278-4-'+k)+','+('1e1e1278-1')}}" height="56" font-size="28" color="#FFFFFF" round="{{true}}" background="#cdcdcd" width="164" disabled="{{true}}" class="data-v-1daa2601" bind:__l="__l" vue-slots="{{['default']}}">已参与</app-button></block><block wx:else><view data-event-opts="{{[['tap',[['detail',['$0'],[[['list','',k,'id']]]]]]]}}" catchtap="__e" class="data-v-1daa2601"><app-button vue-id="{{('1e1e1278-5-'+k)+','+('1e1e1278-1')}}" height="56" font-size="28" color="#FFFFFF" background="#ff4544" width="164" round="{{true}}" class="data-v-1daa2601" bind:__l="__l" vue-slots="{{['default']}}">立即抽奖</app-button></view></block></block></view></view></view></view></block><block wx:if="{{load}}"><app-load-text vue-id="{{('1e1e1278-6')+','+('1e1e1278-1')}}" class="data-v-1daa2601" bind:__l="__l"></app-load-text></block></view><common-buttom vue-id="{{('1e1e1278-7')+','+('1e1e1278-1')}}" status="index" class="data-v-1daa2601" bind:__l="__l"></common-buttom></app-layout>