detail.wxml 9.0 KB

1
  1. <app-layout vue-id="1e764c6c-1" class="data-v-21f5dde0" bind:__l="__l" vue-slots="{{['default']}}"><view class="bg data-v-21f5dde0"><block wx:if="{{!list.status}}"><view class="no-content data-v-21f5dde0">暂无记录</view></block><block wx:if="{{list&&list.status}}"><view class="head-bg data-v-21f5dde0" style="{{'background-image:'+('url('+lotteryConfig.app_image.bg_pic+')')+';'}}"><block wx:if="{{list.status==='1'&&list.lottery.join_min_num-num>0}}"><view class="dir-left-nowrap detail-head-a main-center data-v-21f5dde0"><icon class="icon-march data-v-21f5dde0" type="{{true}}"></icon><view class="dir-top-nowrap main-center data-v-21f5dde0"><view class="text-success data-v-21f5dde0">{{"还差"+(list.lottery.join_min_num-num)+"人即可开奖"}}</view><view class="text-time data-v-21f5dde0">{{list.time}}</view></view></view><view class="main-center cross-center detail-lucky data-v-21f5dde0">{{"您的幸运码为"+list.lucky_code}}</view></block><block wx:if="{{list.status==='1'&&list.lottery.join_min_num-num<=0}}"><view class="dir-left-nowrap detail-head-a main-center data-v-21f5dde0"><icon class="icon-wait data-v-21f5dde0" type="{{true}}"></icon><view class="dir-top-nowrap main-center data-v-21f5dde0"><view class="text-success data-v-21f5dde0">参加成功,等待开奖</view><view class="text-time data-v-21f5dde0">{{list.time}}</view></view></view><view class="main-center cross-center detail-lucky data-v-21f5dde0">{{"您的幸运码为"+list.lucky_code}}</view></block><block wx:if="{{list.status==='2'&&list.lottery.type!=2}}"><view class="dir-left-nowrap detail-head-b main-center data-v-21f5dde0"><icon class="icon-error data-v-21f5dde0" type="{{true}}"></icon><view class="dir-top-nowrap main-center text-winning data-v-21f5dde0">很遗憾,您未中奖</view></view><view data-event-opts="{{[['tap',[['prize',['$event']]]]]}}" class="cross-center main-center dir-left-nowrap detail-lucky data-v-21f5dde0" bindtap="__e"><view class="data-v-21f5dde0">查看我的幸运码</view><icon class="icon-arrow-right-white data-v-21f5dde0" type="{{true}}"></icon></view></block><block wx:if="{{list.status==='2'&&list.lottery.type==2}}"><view class="dir-left-nowrap detail-head-b main-center data-v-21f5dde0"><icon class="icon-people data-v-21f5dde0" type="{{true}}"></icon><view class="dir-top-nowrap main-center text-winning data-v-21f5dde0">人数未到,开奖失败</view></view></block><block wx:if="{{list.status==='3'||list.status==='4'}}"><view class="dir-left-nowrap detail-head-b main-center data-v-21f5dde0"><icon class="icon-winning data-v-21f5dde0" type="{{true}}"></icon><view class="dir-top-nowrap main-center data-v-21f5dde0"><view class="text-winning data-v-21f5dde0">恭喜你,中奖啦!</view><view class="text-code data-v-21f5dde0">{{"中奖幸运码为 "+list.lucky_code}}</view></view></view><view data-event-opts="{{[['tap',[['prize',['$event']]]]]}}" class="cross-center main-center dir-left-nowrap detail-lucky data-v-21f5dde0" bindtap="__e"><view class="data-v-21f5dde0">查看我的幸运码</view><icon class="icon-arrow-right-white data-v-21f5dde0" type="{{true}}"></icon></view></block></view></block><block wx:if="{{list&&list.goods}}"><view class="detail-box data-v-21f5dde0" style="{{'background:'+('linear-gradient('+lotteryConfig.config.bg_color+', '+(lotteryConfig.config.bg_color_type==='gradient'?lotteryConfig.config.bg_gradient_color:lotteryConfig.config.bg_color)+')')+';'}}"><view class="detail-center-a data-v-21f5dde0"><view data-event-opts="{{[['tap',[['navGoods',['$event']]]]]}}" class="dir-left-nowrap goods data-v-21f5dde0" bindtap="__e"><image class="box-grow-0 data-v-21f5dde0" src="{{list.goods.goodsWarehouse.cover_pic}}" load-lazy="{{true}}"></image><view class="dir-top-nowrap goods-center data-v-21f5dde0"><view class="{{['t-omit-three','goods-name','data-v-21f5dde0',list.lottery.join_min_num>0?'limit':'']}}" data-limit="{{list.lottery.join_min_num+'人起抽'}}">{{''+list.goods.goodsWarehouse.name+''}}</view><view class="attr-text dir-left-wrap t-omit data-v-21f5dde0"><block wx:for="{{list.attr.attr_list}}" wx:for-item="value" wx:for-index="key" wx:key="key"><block class="data-v-21f5dde0"><text class="data-v-21f5dde0">{{value.attr_group_name+":"+value.attr_name}}</text></block></block></view><view class="stock data-v-21f5dde0">共<text class="data-v-21f5dde0">{{list.lottery.stock}}</text>份</view><view class="dir-left-nowrap cross-center data-v-21f5dde0"><view class="box-grow-0 price data-v-21f5dde0">免费</view><view class="box-grow-1 original-price data-v-21f5dde0">{{"¥"+list.goods.price}}</view></view></view></view><block wx:if="{{setting.cs_status===1&&setting.cs_prompt_pic}}"><view data-event-opts="{{[['tap',[['qrcode',['$event']]]]]}}" class="lottery-share data-v-21f5dde0" bindtap="__e"><image src="{{setting.cs_prompt_pic}}" mode="aspectFit" load-lazy="{{true}}" class="data-v-21f5dde0"></image></view></block><block wx:if="{{list.status==1}}"><view class="dir-left-nowrap cross-center people data-v-21f5dde0"><view class="dir-top-nowrap box-grow-1 data-v-21f5dde0"><view class="text data-v-21f5dde0">邀请好友参与,增加中奖概率哦!</view><view class="ok data-v-21f5dde0">已成功邀请<text class="data-v-21f5dde0">{{list.parent_num}}</text>位好友</view></view><view data-event-opts="{{[['tap',[['prize',['$event']]]]]}}" class="box-grow-0 dir-left-nowrap cross-center jt data-v-21f5dde0" bindtap="__e"><view class="text data-v-21f5dde0">详情</view><icon class="icon-arrow-right data-v-21f5dde0" type="{{true}}"></icon></view></view><view class="dir-left-nowrap main-center t-small open data-v-21f5dde0"><view class="share data-v-21f5dde0"><view data-event-opts="{{[['tap',[['moreLottery',['$event']]]]]}}" class="more-lottery a data-v-21f5dde0" bindtap="__e">参与更多抽奖</view></view><app-jump-button vue-id="{{('1e764c6c-2')+','+('1e764c6c-1')}}" open_type="share" class="data-v-21f5dde0" bind:__l="__l" vue-slots="{{['default']}}"><app-button vue-id="{{('1e764c6c-3')+','+('1e764c6c-2')}}" font-size="28" background="#ff4544" color="#ffffff" height="72" width="300" round="{{true}}" class="data-v-21f5dde0" bind:__l="__l" vue-slots="{{['default']}}">邀请好友参与</app-button></app-jump-button></view></block><block wx:else><block wx:if="{{list.status==2}}"><view class="main-center open data-v-21f5dde0"><view data-event-opts="{{[['tap',[['moreLottery',['$event']]]]]}}" class="more-lottery b data-v-21f5dde0" bindtap="__e">参与更多抽奖</view></view></block><block wx:else><block wx:if="{{list.status==3||list.status==4}}"><view class="dir-left-nowrap main-center t-small open data-v-21f5dde0"><view class="share data-v-21f5dde0"><app-button vue-id="{{('1e764c6c-4')+','+('1e764c6c-1')}}" font-size="28" background="#FFFFFF" color="#ff4544" height="72" width="300" round="{{true}}" data-event-opts="{{[['^click',[['moreLottery']]]]}}" bind:click="__e" class="data-v-21f5dde0" bind:__l="__l" vue-slots="{{['default']}}">参与更多抽奖</app-button></view><block wx:if="{{list.status==3}}"><app-button vue-id="{{('1e764c6c-5')+','+('1e764c6c-1')}}" font-size="28" background="#ff4544" color="#ffffff" height="72" width="300" round="{{true}}" data-event-opts="{{[['^click',[['submit']]]]}}" bind:click="__e" class="data-v-21f5dde0" bind:__l="__l" vue-slots="{{['default']}}">立即兑换</app-button></block><block wx:if="{{list.status==4}}"><app-button vue-id="{{('1e764c6c-6')+','+('1e764c6c-1')}}" font-size="28" background="#cdcdcd" color="#ffffff" height="72" width="300" round="{{true}}" disabled="{{true}}" class="data-v-21f5dde0" bind:__l="__l" vue-slots="{{['default']}}">已兑换</app-button></block></view></block></block></block><block wx:if="{{list.status==2&&list.lottery.type==2||list.status==1}}"><view class="user-list data-v-21f5dde0"><view class="user data-v-21f5dde0">{{"已有"+num+"人参与"}}</view><view class="flex-wrap data-v-21f5dde0"><block wx:for="{{user_list}}" wx:for-item="v" wx:for-index="k" wx:key="k"><block class="data-v-21f5dde0"><image class="box-grow-0 data-v-21f5dde0" src="{{v.user.userInfo.avatar}}"></image></block></block></view><block wx:if="{{num>30}}"><view class="t-medium end data-v-21f5dde0">仅显示最近参与30人</view></block></view></block><block wx:else><view class="detail-suc data-v-21f5dde0"><view class="main-center cross-center people data-v-21f5dde0">{{"已有"+num+"人参与 "+list.ok_num+"人中奖"}}</view><view class="father data-v-21f5dde0"><block wx:for="{{user_list}}" wx:for-item="v" wx:for-index="k" wx:key="k"><view class="dir-left-nowrap cross-center user-winning-list data-v-21f5dde0"><image class="box-grow-0 data-v-21f5dde0" src="{{v.user.userInfo.avatar}}"></image><view class="box-grow-1 data-v-21f5dde0">{{v.user.nickname}}</view><view class="dir-top-nowrap box-grow-0 main-right right data-v-21f5dde0"><view class="main-right text-num data-v-21f5dde0">{{v.lucky_code}}</view><view class="main-right text-code data-v-21f5dde0">幸运码</view></view></view></block></view><block wx:if="{{list.ok_num>3&&!args}}"><view data-event-opts="{{[['tap',[['userload',['$event']]]]]}}" class="load data-v-21f5dde0" bindtap="__e">加载更多</view></block></view></block></view></view></block></view></app-layout>