yaofang/pages/article/article.wxml

40 lines
2.5 KiB
Plaintext

<view wx:if="{{isProduct}}">
<view class="_div bookPage body xk_main_page">
<view class="_div x-search search">
<view class="_div x-search">
<input bindinput="__e" class="_input x-search " data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '','word','$event',[] ] ] ] ] ]}}" placeholder="请输入搜索" type="text" value="{{word}}"></input>
<view bindtap="__e" class="searchTabItem searchTabItemFocus" data-event-opts="{{[ [ 'tap',[ ['doSearch'] ] ] ]}}" style="padding:3px 8px;">搜索</view>
</view>
<view class="_i x-search"></view>
</view>
<view class="searchTab">
<view bindtap="__e" class="{{['','searchTabItem',tag==key?'searchTabItemFocus':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'focus',[key] ] ] ] ]}}" wx:for="{{categoryList}}" wx:for-index="key">{{item}}</view>
<view style="clear:both;"></view>
<view class="_ul result">
<view class="_li bookPage" wx:for="{{$root.l0}}" wx:for-index="__i0__">
<view class="uni-flex uni-row x-item" wx:if="{{!item.$orig.ad_id}}">
<view class="image-content flex-item">
<image mode="aspectFill" src="{{item.$orig.face}}" style="width:80px;height:80px;background-color:#eeeeee;" wx:if="{{item.$orig.face}}"></image>
</view>
<view bindtap="__e" class="flex-item instroduce" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/article/detail?id='+item.$orig.id] ] ] ] ]}}">
<view>
<text style="color:#94674b;margin-left:10rpx;">{{item.$orig.title+''}}</text>
</view>
<view>
<text style="margin-left:10rpx;">{{item.$orig.introduce+''}}</text>
</view>
</view>
</view>
<xad bind:__l="__l" vueId="{{'9fa026dc-1-'+__i0__}}" x_common_ad="{{item.$orig}}" x_cp_ad="{{item.a0}}" wx:if="{{item.$orig.ad_id}}"></xad>
</view>
</view>
</view>
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="9fa026dc-2"></xpop>
<view style="height:100px;"></view>
<boot-nav bind:__l="__l" nav="article" vueId="9fa026dc-3"></boot-nav>
</view>
<view class="xk_ad_0">
<xad bind:__l="__l" vueId="9fa026dc-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
</view>
</view>