text3.wxml 3.6 KB
<view><u-navbar vue-id="504f701c-1" leftText="返回" title="88888" safeAreaInsetTop="{{true}}" bgColor="{{bgColor}}" placeholder="{{true}}" bind:__l="__l" vue-slots="{{['left']}}"><view class="u-nav-slot" slot="left"><image style="width:32rpx;height:32rpx;" src="/static/ic-back.png" mode data-event-opts="{{[['tap',[['toIndex']]]]}}" bindtap="__e"></image><u-search vue-id="{{('504f701c-2')+','+('504f701c-1')}}" animation="{{false}}" placeholder="请输入商品名称" showAction="{{false}}" bgColor="{{bg}}" value="{{keywords}}" data-event-opts="{{[['^search',[['search']]],['^focus',[['focus']]],['^input',[['__set_model',['','keywords','$event',[]]]]]]}}" bind:search="__e" bind:focus="__e" bind:input="__e" bind:__l="__l"></u-search></view></u-navbar><block wx:if="{{cate==1}}"><view class="two"><view class="cate"><u-tabs vue-id="504f701c-3" list="{{list1}}" lineColor="#641BFD" lineWidth="40" data-event-opts="{{[['^click',[['click']]]]}}" bind:click="__e" bind:__l="__l"></u-tabs></view><view style="padding:0 10rpx;"><custom-waterfalls-flow class="vue-ref" vue-id="504f701c-4" value="{{data.list}}" column="{{column}}" columnSpace="{{1.5}}" seat="{{2}}" data-ref="waterfallsFlowRef" data-event-opts="{{[['^wapperClick',[['wapperClick']]],['^imageClick',[['imageClick']]],['^loaded',[['loaded']]]]}}" bind:wapperClick="__e" bind:imageClick="__e" bind:loaded="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{data.list5}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item" slot="slot{{index}}"><view class="title">{{item.title}}</view><view class="bot2"><view class="dianzan"><image src="../../static/ic_hot.png" mode></image><view class="name">张三</view></view><view class="xinxin"><image src="../../static/ic_hot.png" mode></image><view class="shuliang">152</view></view></view></view></block></custom-waterfalls-flow></view></view></block><block wx:if="{{cate==0}}"><view class="mainBox"><block wx:if="{{historyList.length}}"><view class="history"><view class="histop"><view class="topleft">历史搜索</view><image src="../../static/ic_trash.png" mode data-event-opts="{{[['tap',[['delHistroy',['$event']]]]]}}" bindtap="__e"></image></view><view class="hisbot"><block wx:for="{{historyList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tohis',['$0'],[[['historyList','',index]]]]]]]}}" bindtap="__e">{{item}}</view></block></view></view></block><view class="hotsearch"><view class="hot"><image src="/static/ic_hot.png" mode></image>热门搜索</view><view class="hotlist"><view class="leftlist"><block wx:for="{{hotlist1}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view data-event-opts="{{[['tap',[['hot',['$0'],[[['hotlist1','',idx]]]]]]]}}" class="listitem" bindtap="__e"><view class="index" style="{{'background:'+(idx==0?'#F33F2E':idx==1?'#F4B740':idx==2?'#A3B4E0':'#C8C9CC')+';'}}">{{''+(idx+1)+''}}</view><view class="listtext">{{item.name}}</view></view></block></view><view class="line"></view><view data-event-opts="{{[['tap',[['hot',['$0'],['item']]]]]}}" class="rightlist" bindtap="__e"><block wx:for="{{hotlist2}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view class="listitem"><view class="index">{{idx+6}}</view><view class="listtext">{{item.name}}</view></view></block></view></view></view></view></block><u-modal vue-id="504f701c-5" show="{{show}}" title="提示" content="您确定要删除历史记录吗?删除后不可恢复" showCancelButton="{{true}}" data-event-opts="{{[['^cancel',[['cancelDel']]],['^confirm',[['confirmDel']]]]}}" bind:cancel="__e" bind:confirm="__e" bind:__l="__l"></u-modal></view>