quick-shop.wxml 5.3 KB

1
  1. <app-layout vue-id="1d116440-1" class="data-v-6408cd86" bind:__l="__l" vue-slots="{{['default']}}"><view class="app-quick-shop dir-left-nowrap data-v-6408cd86"><view class="app-left data-v-6408cd86" style="{{'height:'+('calc(100% - 136rpx - '+(tabbarbool?botHeight:0)+'rpx)')+';'}}"><scroll-view class="app-quick-scroll data-v-6408cd86" scroll-y="{{true}}"><block wx:for="{{classification}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['app-text','data-v-6408cd86',(activeIndex===index)?'app-active-bk':'']}}"><app-form-id bind:click="__e" vue-id="{{('1d116440-2-'+index)+','+('1d116440-1')}}" data-event-opts="{{[['^click',[['active',['$0',index],[[['classification','',index]]]]]]]}}" class="data-v-6408cd86" bind:__l="__l" vue-slots="{{['default']}}"><text class="app-text-text data-v-6408cd86">{{item.name}}</text></app-form-id></view></block></scroll-view><view class="app-cart data-v-6408cd86"><view data-event-opts="{{[['tap',[['pushSelectProduct']]]]}}" class="app-icon image-no-rep image-cover data-v-6408cd86" bindtap="__e"><app-jump-button vue-id="{{('1d116440-3')+','+('1d116440-1')}}" form="{{true}}" url="/pages/cart/cart" class="data-v-6408cd86" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{activeNum!=='0'||activeNum===0}}"><text class="app-active-num data-v-6408cd86" style="{{'background-color:'+(getTheme.background)+';'}}">{{activeNum}}</text></block></app-jump-button></view></view></view><view class="app-right data-v-6408cd86" style="{{'height:'+('calc(100% - '+(tabbarbool?botHeight:0)+'rpx)')+';'}}"><text class="app-active-name data-v-6408cd86">{{activeName}}</text><scroll-view class="app-scroll-right data-v-6408cd86" style="{{'height:'+('calc(100% - 102rpx)')+';'}}" scroll-y="{{true}}" scroll-top="{{scrollTop}}" data-event-opts="{{[['scrolltolower',[['scrolltolower',['$event']]]]]}}" bindscrolltolower="__e"><view class="app-request data-v-6408cd86"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="app-item-item data-v-6408cd86"><app-form-id vue-id="{{('1d116440-4-'+index)+','+('1d116440-1')}}" class="data-v-6408cd86" bind:__l="__l" vue-slots="{{['default']}}"><view class="app-item dir-left-nowrap cross-top data-v-6408cd86"><image class="app-image data-v-6408cd86" lazy-load="{{true}}" src="{{item.cover_pic}}" data-event-opts="{{[['tap',[['jumpGo',['$0'],[[['list','',index]]]]]]]}}" catchtap="__e"></image><block wx:if="{{item.goods_num===0&&appSetting.is_show_stock===1}}"><view class="out-dialog data-v-6408cd86"><image src="{{appSetting.is_use_stock=='1'?appImg.plugins_out:appSetting.sell_out_pic}}" class="data-v-6408cd86"></image></view></block><view class="app-content dir-top-nowrap main-left data-v-6408cd86"><view data-event-opts="{{[['tap',[['jumpGo',['$0'],[[['list','',index]]]]]]]}}" class="app-top data-v-6408cd86" catchtap="__e">{{''+item.name+''}}</view><view class="app-volume data-v-6408cd86">{{'销量 '+item.virtual_sales+''}}</view><view class="dir-top-nowrap data-v-6408cd86" style="padding:10rpx 0;"><block wx:if="{{item.is_level===1}}"><view class="data-v-6408cd86"><app-member-price vue-id="{{('1d116440-5-'+index)+','+('1d116440-4-'+index)}}" theme="{{getTheme}}" price="{{item.level_price}}" class="data-v-6408cd86" bind:__l="__l"></app-member-price></view></block><block wx:if="{{item.vip_card_appoint.discount}}"><app-sup-vip vue-id="{{('1d116440-6-'+index)+','+('1d116440-4-'+index)}}" is_vip_card_user="{{item.vip_card_appoint.is_vip_card_user}}" margin="4rpx 0 0" discount="{{item.vip_card_appoint.discount}}" class="data-v-6408cd86" bind:__l="__l"></app-sup-vip></block><view class="app-bottom dir-left-nowrap main-between data-v-6408cd86"><view class="data-v-6408cd86"><view class="app-price data-v-6408cd86" style="{{'color:'+(getTheme.color)+';'}}"><text class="app-symbol data-v-6408cd86">¥</text>{{''+item.price+''}}</view><block wx:if="{{isListUnderlinePrice==1}}"><view class="origin-price data-v-6408cd86">{{'¥'+item.original_price+''}}</view></block></view><block wx:if="{{item.use_attr===0&&item.goods_num>0}}"><app-add-subtract vue-id="{{('1d116440-7-'+index)+','+('1d116440-4-'+index)}}" item="{{item}}" theme="{{getTheme}}" total_num="{{item.total_num}}" data-event-opts="{{[['^changeNum',[['changeNum']]],['^subtract',[['subtract']]],['^add',[['add']]]]}}" bind:changeNum="__e" bind:subtract="__e" bind:add="__e" class="data-v-6408cd86" bind:__l="__l"></app-add-subtract></block><block wx:if="{{item.use_attr===1&&item.goods_num>0}}"><view class="app-button data-v-6408cd86"><view data-event-opts="{{[['tap',[['specification',['$0'],[[['list','',index]]]]]]]}}" class="but data-v-6408cd86" style="{{'background-color:'+(getTheme.background)+';'}}" bindtap="__e">选规格</view></view></block><block wx:if="{{item.use_attr===1&&item.total_num!==0}}"><view class="app-num data-v-6408cd86" style="{{'color:'+(getTheme.color)+';'}}">{{''+item.total_num+''}}</view></block></view></view></view></view></app-form-id></view></block></view></scroll-view></view><block wx:if="{{item.use_attr===1}}"><u-attr vue-id="{{('1d116440-8')+','+('1d116440-1')}}" goods="{{item}}" checked="{{checked}}" theme="{{getTheme}}" value="{{show}}" data-event-opts="{{[['^check',[['onAttr']]],['^cart',[['selectNumber']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:check="__e" bind:cart="__e" bind:input="__e" class="data-v-6408cd86" bind:__l="__l"></u-attr></block></view></app-layout>