poster.wxml 5.7 KB

1
  1. <app-layout vue-id="4cf2236a-1" class="data-v-7cc108b5" bind:__l="__l" vue-slots="{{['default']}}"><view class="poster-goods data-v-7cc108b5"><view class="head data-v-7cc108b5" id="head"><view class="poster main-center cross-center data-v-7cc108b5" style="{{(cStyle)}}"><block wx:if="{{selectForm}}"><view class="{{['data-v-7cc108b5','style-'+selectForm.style]}}"><image class="activity-bg data-v-7cc108b5" src="{{bg}}"></image><view class="middleman-tip dir-left-nowrap cross-center data-v-7cc108b5"><image class="middleman-avatar data-v-7cc108b5" src="{{middleman.avatar}}"></image><view class="data-v-7cc108b5">{{"我在"+address+middleman.location+"发现了一个超划算的团购!"}}</view></view><view class="{{['goods-list','data-v-7cc108b5','number-'+activity.goods_list.length]}}"><block wx:for="{{activity.goods_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['goods','data-v-7cc108b5',activity.goods_list.length>2?'dir-left-nowrap':'dir-top-nowrap']}}"><image class="goods-cover data-v-7cc108b5" src="{{item.cover_pic}}"></image><view class="{{['goods-info','data-v-7cc108b5',activity.goods_list.length>2?'':'dir-top-nowrap main-center']}}"><view class="t-omit-two data-v-7cc108b5">{{item.name}}</view><block wx:if="{{item.price}}"><view class="data-v-7cc108b5"><view class="goods-price data-v-7cc108b5">{{"¥"+item.price}}</view><view class="goods-original-price data-v-7cc108b5">{{"¥"+item.original_price}}</view></view></block></view></view></block></view><view class="{{['cross-center','activity','data-v-7cc108b5',selectForm.style==1?'dir-right-nowrap':'dir-left-nowrap']}}"><view class="activity-qrcode main-center cross-center data-v-7cc108b5"><image src="{{activity.qrcode}}" class="data-v-7cc108b5"></image></view><view class="activity-info data-v-7cc108b5"><view class="dir-left-nowrap cross-center data-v-7cc108b5"><view class="data-v-7cc108b5">团长:</view><image class="activity-avatar data-v-7cc108b5" src="{{middleman.avatar}}"></image><view class="data-v-7cc108b5">{{middleman.nickname}}</view></view><view class="dir-left-nowrap cross-center data-v-7cc108b5">{{'结束时间:'+activity.end_at+''}}</view><view class="dir-left-nowrap cross-center data-v-7cc108b5">{{'提货地址:'+address+middleman.detail+''}}</view></view></view></view></block></view></view><view class="setting data-v-7cc108b5"><view class="dir-left-nowrap line data-v-7cc108b5"><view class="box-grow-0 main-center cross-center label data-v-7cc108b5"><icon style="{{'background-color:'+(getTheme.background)+';'}}" type="{{true}}" class="data-v-7cc108b5"></icon><text class="data-v-7cc108b5">样式</text></view><view class="dir-left-wrap box-grow-1 data-v-7cc108b5"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="key" wx:key="key"><block wx:if="{{item.g0!==-1}}"><view data-event-opts="{{[['tap',[['changeStyle',['$0'],[[['styleList','',key,'value']]]]]]]}}" class="{{['style-input','main-center','cross-center','data-v-7cc108b5',item.$orig.value==selectForm.style?'active':'']}}" style="{{'border-color:'+(item.$orig.value==selectForm.style?getTheme.border:'')+';'}}" bindtap="__e"><text class="data-v-7cc108b5">{{item.$orig.label}}</text><block wx:if="{{item.$orig.value==selectForm.style}}"><icon class="icon-active data-v-7cc108b5" style="{{'background-color:'+(getTheme.background)+';'}}" type="{{true}}"></icon></block></view></block></block></view></view><view class="dir-left-nowrap line data-v-7cc108b5" style="margin-bottom:5rpx;"><view class="box-grow-0 main-center cross-center label data-v-7cc108b5"><icon style="{{'background-color:'+(getTheme.background)+';'}}" type="{{true}}" class="data-v-7cc108b5"></icon><text class="data-v-7cc108b5">类型</text></view><view class="dir-left-wrap box-grow-1 data-v-7cc108b5"><block wx:for="{{typeList}}" wx:for-item="item" wx:for-index="key" wx:key="key"><view data-event-opts="{{[['tap',[['changeType',['$0'],[[['typeList','',key,'value']]]]]]]}}" class="{{['style-input','dir-left-nowrap','main-center','cross-center','data-v-7cc108b5',item.value==selectForm.type?'active':'']}}" style="{{'border-color:'+(item.value==selectForm.type?getTheme.border:'')+';'}}" bindtap="__e"><block wx:if="{{item.value===1}}"><view class="type-pure data-v-7cc108b5"></view></block><block wx:if="{{item.value===2}}"><view class="type-gradient data-v-7cc108b5"></view></block><text class="data-v-7cc108b5">{{item.label}}</text><block wx:if="{{item.value==selectForm.type}}"><icon class="icon-active data-v-7cc108b5" style="{{'background-color:'+(getTheme.background)+';'}}" type="{{true}}"></icon></block></view></block></view></view><block wx:if="{{selectForm&&selectForm.type==1}}"><view class="dir-left-nowrap line data-v-7cc108b5"><view class="box-grow-0 main-center cross-center label data-v-7cc108b5" style="margin-top:19rpx;"><icon style="{{'background-color:'+(getTheme.background)+';'}}" type="{{true}}" class="data-v-7cc108b5"></icon><text class="data-v-7cc108b5">颜色</text></view><view class="dir-left-wrap box-grow-1 data-v-7cc108b5"><scroll-view class="app-scroll data-v-7cc108b5" scroll-x="{{true}}" enable-flex="true"><block wx:for="{{config.color}}" wx:for-item="color" wx:for-index="key" wx:key="key"><view data-event-opts="{{[['tap',[['changeColor',['$0'],[[['config.color','',key]]]]]]]}}" class="color-bg data-v-7cc108b5" style="{{'background:'+(''+color)+';'}}" bindtap="__e"><block wx:if="{{color==selectForm.color}}"><icon class="icon-active data-v-7cc108b5" style="{{'background-color:'+(getTheme.background)+';'}}" type="{{true}}"></icon></block></view></block></scroll-view></view></view></block><view data-event-opts="{{[['tap',[['submitSave',['$event']]]]]}}" class="button main-center cross-center data-v-7cc108b5" style="{{'background-color:'+(getTheme.background)+';'}}" bindtap="__e">保存图片</view></view></view></app-layout>