index.wxml 5.4 KB

1
  1. <view class="app-layout data-v-065d4b22"><app-layout vue-id="53da599a-1" haveBackground="{{false}}" class="data-v-065d4b22" bind:__l="__l" vue-slots="{{['default']}}"><view class="scratch data-v-065d4b22"><view class="bg data-v-065d4b22" style="{{'background-image:'+('url('+setting.bg_pic+')')+';'}}"></view><view class="scratch-head data-v-065d4b22"><view data-event-opts="{{[['tap',[['rules',['$event']]]]]}}" class="s-h data-v-065d4b22" bindtap="__e">规则</view><view data-event-opts="{{[['tap',[['share',['$event']]]]]}}" class="s-h data-v-065d4b22" bindtap="__e">分享</view><app-share-qr-code-poster vue-id="{{('53da599a-2')+','+('53da599a-1')}}" url="{{poster}}" title="生成海报" value="{{shareShow}}" data-event-opts="{{[['^share',[['hShareAppMessage']]],['^input',[['__set_model',['','shareShow','$event',[]]]]]]}}" bind:share="__e" bind:input="__e" class="data-v-065d4b22" bind:__l="__l"></app-share-qr-code-poster></view><view class="scratch-oppty data-v-065d4b22"><view class="data-v-065d4b22">您还有<text class="data-v-065d4b22">{{oppty}}</text>次抽奖机会</view></view><view class="container data-v-065d4b22"><image class="image-bg-a data-v-065d4b22" src="/static/image/scratch_border_bg.png" load-lazy="{{true}}"></image><image class="image-bg-b data-v-065d4b22" id="frame" src="/static/image/scratch_border.png" load-lazy="{{true}}"></image><block wx:if="{{is_integral}}"><view class="data-v-065d4b22"><image class="image-bg-b data-v-065d4b22" src="/static/image/scratch_hide.png" load-lazy="{{true}}"></image><view data-event-opts="{{[['tap',[['register',['$event']]]]]}}" class="image-bg-c data-v-065d4b22" bindtap="__e">{{setting.deplete_integral_num+"积分刮一次"}}</view></view></block><block wx:else><view class="integral-show data-v-065d4b22"><view class="scratch-award main-center data-v-065d4b22" hidden="{{shareShow||userLoginShow}}"><block wx:if="{{is_start}}"><canvas class="scratch-canvas data-v-065d4b22" id="scratch" canvas-id="scratch" disable-scroll="{{true}}" data-event-opts="{{[['touchstart',[['touchStart',['$event']]]],['touchmove',[['touchMove',['$event']]]],['touchend',[['touchEnd',['$event']]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"></canvas></block><block wx:if="{{is_name}}"><view class="award-name data-v-065d4b22"><text class="data-v-065d4b22">{{list?list.name:''}}</text><block wx:if="{{oppty>0}}"><app-button vue-id="{{('53da599a-3')+','+('53da599a-1')}}" background="#f05525" height="80" width="400" border-color="#f05525" color="#FFFFFF" font-size="32" round="{{true}}" data-event-opts="{{[['^click',[['onStart']]]]}}" bind:click="__e" class="data-v-065d4b22" bind:__l="__l" vue-slots="{{['default']}}">再刮一次</app-button></block><block wx:if="{{oppty==0}}"><app-button vue-id="{{('53da599a-4')+','+('53da599a-1')}}" background="#cdcdcd" height="80" width="400" border-color="#cdcdcd" color="#FFFFFF" font-size="32" round="{{true}}" data-event-opts="{{[['^click',[['onStart']]]]}}" bind:click="__e" class="data-v-065d4b22" bind:__l="__l" vue-slots="{{['default']}}">再刮一次</app-button></block></view></block></view></view></block></view><view class="dir-left-nowrap main-center cross-center end data-v-065d4b22"><view data-event-opts="{{[['tap',[['home',['$event']]]]]}}" class="dir-left-nowrap cross-center box-grow-0 left data-v-065d4b22" bindtap="__e"><icon class="end-icon home data-v-065d4b22" type="{{true}}"></icon><view class="data-v-065d4b22">回到首页</view></view><view data-event-opts="{{[['tap',[['prize',['$event']]]]]}}" class="dir-left-nowrap cross-center box-grow-0 data-v-065d4b22" bindtap="__e"><view class="data-v-065d4b22">我的中奖记录</view><icon class="end-icon price data-v-065d4b22" type="{{true}}"></icon></view></view><view class="prize data-v-065d4b22"><view class="dir-left-nowrap cross-center main-center data-v-065d4b22"><view class="line data-v-065d4b22"></view><view class="text data-v-065d4b22">中奖名单</view><view class="line data-v-065d4b22"></view></view><swiper class="scratch-swiper data-v-065d4b22" duration="500" vertical="true" autoplay="false"><swiper-item class="data-v-065d4b22"><block wx:for="{{logs}}" wx:for-item="v" wx:for-index="__i0__" wx:key="id"><block class="data-v-065d4b22"><view class="scratch-item data-v-065d4b22">{{v.create_time+" "+v.user+" "+v.name}}</view></block></block></swiper-item></swiper></view></view><block wx:if="{{is_award}}"><view class="data-v-065d4b22"><view class="act-modal data-v-065d4b22"><view class="act-modal-bg data-v-065d4b22"></view><view class="act-modal-pic cross-center main-center data-v-065d4b22"><view class="success main-center data-v-065d4b22"><icon class="image-bg data-v-065d4b22" style="{{'background-image:'+('url('+appImg.scratch_win+')')+';'}}" type="{{true}}"></icon><view class="dir-top-nowrap name main-center data-v-065d4b22"><view class="data-v-065d4b22">恭喜获得</view><text class="main-center data-v-065d4b22">{{list.name}}</text></view></view><view class="act-modal-end dir-top-nowrap cross-center main-center data-v-065d4b22"><app-button vue-id="{{('53da599a-5')+','+('53da599a-1')}}" height="72" width="320" color="#FFFFFF" background="#f05525" border-color="#f05525" round="{{true}}" data-event-opts="{{[['^click',[['onStart']]]]}}" bind:click="__e" class="data-v-065d4b22" bind:__l="__l" vue-slots="{{['default']}}">再刮一次</app-button><view class="act-zh data-v-065d4b22">奖品已放入您的账号</view></view></view></view></view></block></app-layout></view>