goods.wxml 7.5 KB

1
  1. <app-layout vue-id="0c2511bc-1" class="data-v-4c21f9a6" bind:__l="__l" vue-slots="{{['default']}}"><view class="all data-v-4c21f9a6"><view class="goods-head-box data-v-4c21f9a6"><app-goods-banner vue-id="{{('0c2511bc-2')+','+('0c2511bc-1')}}" pic-list="{{goods.pic_url}}" share="{{goods.share}}" goods_id="{{lottery_id}}" sign="lottery" video-url="{{goods.video_url}}" class="data-v-4c21f9a6" bind:__l="__l"></app-goods-banner><app-service vue-id="{{('0c2511bc-3')+','+('0c2511bc-1')}}" list="{{goods.services}}" class="data-v-4c21f9a6" bind:__l="__l"></app-service><view class="time main-center data-v-4c21f9a6"><block wx:if="{{user_log===null||user_log.status<=1}}"><view class="time-info dir-left-nowrap cross-center data-v-4c21f9a6"><icon class="icon data-v-4c21f9a6"></icon><block wx:if="{{new_status==2}}"><view class="data-v-4c21f9a6">距活动开始:</view></block><block wx:else><view class="data-v-4c21f9a6">距活动结束:</view></block><block wx:if="{{times.day>0||times.hour>0}}"><text class="data-v-4c21f9a6">{{times.day+"天"+times.hour+"小时"}}</text></block><block wx:if="{{times.day==0&&times.hour==0}}"><text class="data-v-4c21f9a6">{{times.minute+"分"+times.second+"秒"}}</text></block></view></block><block wx:else><view class="time-info time-error dir-left-nowrap cross-center data-v-4c21f9a6"><icon class="icon data-v-4c21f9a6"></icon><view class="data-v-4c21f9a6">活动已结束</view></view></block></view></view><block wx:if="{{goods}}"><view class="goods data-v-4c21f9a6"><view class="t-omit-three name data-v-4c21f9a6">{{goods.name}}</view><view class="dir-left-nowrap data-v-4c21f9a6"><view class="detail box-grow-1 data-v-4c21f9a6"><view class="dir-left-nowrap box-grow-0 data-v-4c21f9a6"><text class="data-v-4c21f9a6">共</text><text class="bold data-v-4c21f9a6">{{lottery.stock}}</text><text class="data-v-4c21f9a6">份</text><view class="num data-v-4c21f9a6">{{goods.num+"人参与"}}</view></view><view class="price dir-left-nowrap box-grow-0 data-v-4c21f9a6"><view class="box-grow-0 data-v-4c21f9a6">¥0</view><block wx:if="{{isUnderlinePrice}}"><view class="box-grow-0 del data-v-4c21f9a6">{{"售价¥"+goods.original_price}}</view></block></view></view><view data-event-opts="{{[['tap',[['shareClick',['$event']]]]]}}" class="share box-grow-0 cross-center dir-top-nowrap data-v-4c21f9a6" bindtap="__e"><icon class="icon data-v-4c21f9a6"></icon><view class="t-mini t-extra-small-color share data-v-4c21f9a6">分享</view></view><view class="data-v-4c21f9a6"><app-share-qr-code bind:input="__e" vue-id="{{('0c2511bc-4')+','+('0c2511bc-1')}}" url="{{poster+'&goods_id='+goods.id}}" value="{{shareShow}}" data-event-opts="{{[['^input',[['__set_model',['','shareShow','$event',[]]]]]]}}" class="data-v-4c21f9a6" bind:__l="__l"></app-share-qr-code></view></view></view></block><view class="lottery-attr data-v-4c21f9a6"><view class="box cross-center data-v-4c21f9a6"><view class="border box-grow-0 data-v-4c21f9a6">商品信息</view><view class="text dir-left-wrap t-omit data-v-4c21f9a6"><block wx:for="{{goods.attr_list}}" wx:for-item="value" wx:for-index="key" wx:key="key"><block class="data-v-4c21f9a6"><text class="data-v-4c21f9a6">{{value.attr_group_name+":"+value.attr_name}}</text></block></block></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-4c21f9a6" bindtap="__e"><image src="{{setting.cs_prompt_pic}}" mode="aspectFit" load-lazy="{{true}}" class="data-v-4c21f9a6"></image></view></block><view class="step cross-center dir-left-nowrap data-v-4c21f9a6"><view class="box-grow-1 data-v-4c21f9a6">抽奖流程</view><view data-event-opts="{{[['tap',[['rule',['$event']]]]]}}" class="cross-center data-v-4c21f9a6" bindtap="__e"><icon class="icon-right box-grow-0 data-v-4c21f9a6"></icon></view></view><view class="step-info dir-left-nowrap data-v-4c21f9a6"><block wx:for="{{rule_list}}" wx:for-item="v" wx:for-index="k" wx:key="k"><block class="data-v-4c21f9a6"><view class="box-grow-1 dir-left-nowrap main-center cross-center data-v-4c21f9a6"><view class="label data-v-4c21f9a6">{{v.key}}</view><text class="value data-v-4c21f9a6">{{v.value}}</text></view></block></block></view><block wx:if="{{lucky_list}}"><view class="dir-top-nowrap lucky-all data-v-4c21f9a6"><view class="box-grow-1 data-v-4c21f9a6">实时幸运码</view><view class="box-grow-1 friend data-v-4c21f9a6">邀请好友参与,额外获赠幸运码,提高中奖率哦!</view><block wx:if="{{lucky_list.length}}"><swiper class="{{['swiper data-v-4c21f9a6',lucky_list.length>1?'':'swiper-one']}}" display-multiple-items="{{lucky_list.length>1?2:1}}" vertical="true" autoplay="true" interval="2000" duration="500" circular="true"><block wx:for="{{lucky_list}}" wx:for-item="v" wx:for-index="k" wx:key="k"><block class="data-v-4c21f9a6"><swiper-item style="height:50%;" catchtouchmove="catchTouchMove" class="data-v-4c21f9a6"><view class="dir-left cross-center lucky-code data-v-4c21f9a6"><image class="box-grow-0 data-v-4c21f9a6" src="{{v.user.userInfo.avatar}}" load-lazy="{{true}}"></image><view class="box-grow-1 t-omit nickname data-v-4c21f9a6">{{v.user.nickname}}</view><view class="box-grow-0 font-normal data-v-4c21f9a6">{{v.lucky_num+"个幸运码"}}</view></view></swiper-item></block></block></swiper></block></view></block><view class="app-goods-marketing data-v-4c21f9a6"><app-goods-marketing vue-id="{{('0c2511bc-5')+','+('0c2511bc-1')}}" express="{{goods.express}}" class="data-v-4c21f9a6" bind:__l="__l"></app-goods-marketing></view><view class="goods-rule data-v-4c21f9a6">商品详情</view><view class="rule-info data-v-4c21f9a6"><app-rich-text vue-id="{{('0c2511bc-6')+','+('0c2511bc-1')}}" content="{{goods.detail}}" class="data-v-4c21f9a6" bind:__l="__l"></app-rich-text></view><view class="data-v-4c21f9a6"><app-empty-bottom vue-id="{{('0c2511bc-7')+','+('0c2511bc-1')}}" height="{{$root.m0}}" class="data-v-4c21f9a6" bind:__l="__l"></app-empty-bottom></view><view class="data-v-4c21f9a6"><app-iphone-x vue-id="{{('0c2511bc-8')+','+('0c2511bc-1')}}" class="data-v-4c21f9a6" bind:__l="__l" vue-slots="{{['empty-area']}}"><view class="bottom main-center cross-center data-v-4c21f9a6" slot="empty-area"><view data-event-opts="{{[['tap',[['buyNow',['$event']]]]]}}" class="bottom-first main-center cross-center data-v-4c21f9a6" bindtap="__e">直接购买</view><block wx:if="{{new_status==2}}"><view class="bottom-end main-center cross-center data-v-4c21f9a6">尚未开始</view></block><block wx:else><block wx:if="{{lottery.status==0}}"><view class="bottom-end main-center cross-center data-v-4c21f9a6">已关闭</view></block><block wx:else><block wx:if="{{user_log==null}}"><view data-event-opts="{{[['tap',[['subscribe',['$event']]]]]}}" class="bottom-second main-center cross-center data-v-4c21f9a6" bindtap="__e">立即抽奖</view></block><block wx:else><block wx:if="{{user_log.status<=1}}"><view class="bottom-end main-center cross-center data-v-4c21f9a6">已参与</view></block><block wx:else><view class="bottom-end main-center cross-center data-v-4c21f9a6">已结束</view></block></block></block></block></view></app-iphone-x></view></view><block wx:if="{{award_bg}}"><view class="main-center cross-center animation-model data-v-4c21f9a6"><view data-event-opts="{{[['tap',[['prize',['$event']]]]]}}" class="main-center detaill data-v-4c21f9a6" bindtap="__e"><view class="ani_box data-v-4c21f9a6" animation="{{animation_trans_lottery}}"><image src="{{appImg.lottery_box}}" class="data-v-4c21f9a6"></image></view></view><image class="boxbg data-v-4c21f9a6" src="{{appImg.lottery_boxbg}}"></image></view></block></app-layout>