index.wxml
2.41 KB
<view class="content"><view class="header"><view class="searchBar"><icon class="searchIcon" type="search" size="14"></icon><input class="searchIpt" placeholder="老花镜" confirm-type="search"/></view><view class="screenBar"><block wx:for="{{screenItems}}" wx:for-item="item" wx:for-index="__i0__" wx:key="current"><view data-event-opts="{{[['tap',[['onClickItem',['$0'],[[['screenItems','current',item.current,'current']]]]]]]}}" bindtap="__e"><block wx:if="{{item.current===2}}"><view data-event-opts="{{[['tap',[['dropDown',['$event']]]]]}}" class="{{['screenItem',(current===item.current)?'active':'']}}" bindtap="__e">{{''+item.text}}<icon type="info" size="14"></icon></view></block><block wx:if="{{item.current===4}}"><view data-event-opts="{{[['tap',[['showDrawer',['showRight']]]]]}}" class="{{['screenItem',(current===item.current)?'active':'']}}" bindtap="__e">{{''+item.text}}<icon type="info" size="14"></icon></view></block><block wx:if="{{item.current!==2&&item.current!==4}}"><view><view class="{{['screenItem',(current===item.current)?'active':'']}}">{{item.text}}</view></view></block></view></block></view></view><uni-drawer class="vue-ref" vue-id="8dd740cc-1" mask="true" maskClick="true" mode="right" width="{{320}}" data-ref="showRight" data-event-opts="{{[['^change',[['change',['$event','showRight']]]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="close"><view data-event-opts="{{[['tap',[['closeDrawer',['showRight']]]]]}}" bindtap="__e"><text class="word-btn-white">关闭</text></view></view></uni-drawer><view class="content-wrap"><view><h-mfilter-dropdown vue-id="8dd740cc-2" filterData="{{filterData}}" defaultSelected="{{filterDropdownValue}}" updateMenuName="{{true}}" dataFormat="Object" data-event-opts="{{[['^confirm',[['confirm']]]]}}" bind:confirm="__e" bind:__l="__l"></h-mfilter-dropdown><view class="place"></view><view class="goods-list"><view class="product-list"><block wx:for="{{goodsList}}" wx:for-item="goods" wx:for-index="__i1__" wx:key="goods_id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['goodsList','goods_id',goods.goods_id]]]]]]]}}" class="product" bindtap="__e"><image mode="widthFix" src="{{goods.img}}"></image><view class="name">{{goods.name}}</view><view class="info"><view class="price">{{goods.price}}</view><view class="slogan">{{goods.slogan}}</view></view></view></block></view><view class="loading-text">{{loadingText}}</view></view></view></view></view>