index.wxml 5.3 KB

1
  1. <app-layout vue-id="793cf41a-1" overflow="{{false}}" class="data-v-61242973" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{hasActivity&&activityLoading}}"><view class="search dir-left-nowrap main-between cross-center data-v-61242973"><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="input dir-left-nowrap main-center cross-center data-v-61242973" bindtap="__e"><view class="search-icon data-v-61242973"></view><view class="text data-v-61242973">搜索</view></view><view data-event-opts="{{[['tap',[['setSwitch',['$event']]]]]}}" class="icon data-v-61242973" bindtap="__e"><image class="icon-img data-v-61242973" src="{{style_switch?'../image/list-2.png':'../image/list-1.png'}}"></image></view></view><view class="{{['rule','data-v-61242973',is_fixed?'rule-fixed':'rule-no-fixed']}}" style="{{'background:'+(getTheme.background_gradient_l)+';'}}" id="rule"><view class="rule-top dir-left-nowrap main-between cross-top data-v-61242973"><view class="icon data-v-61242973"></view><view class="text data-v-61242973"><block wx:if="{{rule_type===1}}"><block wx:for="{{rule}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-61242973">{{'满'+item.min_money+(item.discount_type==='1'?'减'+item.cut:'打'+item.discount+'折')+(index!==rule.length-1?', ':'')+''}}</block></block></block><block wx:else><block wx:if="{{rule_type===2}}">{{'每满'+rule.min_money+"减"+rule.cut+''}}</block></block></view></view><view class="dir-left-nowrap main-between data-v-61242973"><view class="time dir-left-nowrap cross-center data-v-61242973"><view class="time-icon data-v-61242973"></view><view class="time-text data-v-61242973">{{"距离活动结束仅剩:"+time_str.day+"天"+time_str.hou+"时"+time_str.min+"分"}}</view></view><view data-event-opts="{{[['tap',[['goRouter',['$event']]]]]}}" class="rule-text data-v-61242973" bindtap="__e">活动规则</view></view></view><scroll-view class="cats dir-left-nowrap data-v-61242973" scroll-x="{{true}}" id="cats"><block wx:for="{{cats}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['active',['$0'],[[['cats','',index]]]]]]]}}" class="{{['cats-item','data-v-61242973',item.active===true?'cats-item-active':'cats-item-no']}}" style="{{'background-color:'+(item.active===true?getTheme.background:'')+';'}}" bindtap="__e">{{''+item.name+''}}</view></block></scroll-view><view class="data-v-61242973"><block wx:if="{{style_switch}}"><u-water-fall bind:input="__e" vue-id="{{('793cf41a-2')+','+('793cf41a-1')}}" theme="{{getTheme}}" data-ref="waterFall" value="{{flowList}}" data-event-opts="{{[['^input',[['__set_model',['','flowList','$event',[]]]]]]}}" class="data-v-61242973 vue-ref" bind:__l="__l"></u-water-fall></block><block wx:else><block wx:for="{{flowList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['routeGood',['$0'],[[['flowList','',index]]]]]]]}}" class="goods-item dir-left-nowrap data-v-61242973" bindtap="__e"><image class="goods-pic data-v-61242973" src="{{item.cover_pic}}"></image><view class="goods-cont dir-top-nowrap main-between data-v-61242973"><view class="data-v-61242973"><view class="goods-name t-omit-two data-v-61242973">{{''+item.name}}</view><block wx:if="{{item.is_level==1&&item.is_negotiable!=1}}"><view class="goods-vip data-v-61242973"><app-member-price vue-id="{{('793cf41a-3-'+index)+','+('793cf41a-1')}}" price="{{item.level_price}}" theme="{{getTheme}}" class="data-v-61242973" bind:__l="__l"></app-member-price></view></block><block wx:if="{{item.vip_card_appoint.discount}}"><view class="goods-vip data-v-61242973"><app-sup-vip vue-id="{{('793cf41a-4-'+index)+','+('793cf41a-1')}}" discount="{{item.vip_card_appoint.discount}}" is_vip_card_user="{{item.vip_card_appoint.is_vip_card_user}}" class="data-v-61242973" bind:__l="__l"></app-sup-vip></view></block></view><view class="dir-left-nowrap main-between data-v-61242973"><view class="data-v-61242973"><view class="price data-v-61242973" style="{{'color:'+(getTheme.color)+';'}}">{{item.price_content}}</view><view class="sales data-v-61242973">{{item.sales}}</view></view><block wx:if="{{item.goods_stock!==0}}"><view data-event-opts="{{[['tap',[['buyProduct',['$0'],[[['flowList','',index]]]]]]]}}" class="{{['data-v-61242973','app-button-icon-cart box-grow-0 app-button-icon']}}" style="{{'background-color:'+(getTheme.background)+';'}}" catchtap="__e"></view></block></view></view></view></block></block><block wx:if="{{bottomLoading}}"><view class="u-loading-list data-v-61242973">加载中...</view></block></view><block wx:if="{{!loading&&flowList.length===0}}"><view class="no-empty main-center data-v-61242973"><app-no-goods vue-id="{{('793cf41a-5')+','+('793cf41a-1')}}" title="该分类下无相关内容哦~" background="#f7f7f7" class="data-v-61242973" bind:__l="__l"></app-no-goods></view></block></block><block wx:else><block wx:if="{{!hasActivity&&activityLoading}}"><view class="no-empty main-center data-v-61242973"><app-no-goods vue-id="{{('793cf41a-6')+','+('793cf41a-1')}}" title="暂无满减商品" background="#f7f7f7" class="data-v-61242973" bind:__l="__l"></app-no-goods></view></block></block><app-attr vue-id="{{('793cf41a-7')+','+('793cf41a-1')}}" goods="{{goods}}" attrGroupList="{{goods.attr_groups}}" theme="{{getTheme}}" show="{{attrShow}}" class="data-v-61242973" bind:__l="__l"></app-attr></app-layout>