43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
|
|
<view class="container">
|
||
|
|
<view class="nav_left">
|
||
|
|
<block wx:for="{{navLeftItems}}" wx:for-index="index">
|
||
|
|
<view class="nav_left_items {{index==navindex?'active':''}}" bindtap="switchRightTab" data-id="{{index}}">{{item.header}}</view>
|
||
|
|
</block>
|
||
|
|
</view>
|
||
|
|
<view class="nav_right">
|
||
|
|
<view wx:if="{{categoryid>0&&navRightItems.length>0}}" style="width:100%;overflow-x: auto;">
|
||
|
|
<view style="width:200%;">
|
||
|
|
<view class="nav_right_item {{navindex0==-1?'active':''}}" bindtap="switchRightTab0" data-id="-1">
|
||
|
|
全部分类
|
||
|
|
</view>
|
||
|
|
<block wx:for="{{navRightItems}}" wx:for-index="index">
|
||
|
|
<view class="nav_right_item {{index==navindex0?'active':''}}" bindtap="switchRightTab0" data-id="{{index}}">
|
||
|
|
{{item.header}}
|
||
|
|
</view>
|
||
|
|
</block>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="clear"></view>
|
||
|
|
<view wx:if="{{products}}">
|
||
|
|
|
||
|
|
<view wx:for="{{products}}" class="brand_item" bindtap="ondetail" data-id="{{item._id}}">
|
||
|
|
|
||
|
|
<image src="{{item.image}}" class="pic"></image>
|
||
|
|
<view class="brand_item_cont">
|
||
|
|
|
||
|
|
<text class="name">{{item.name}}</text>
|
||
|
|
<view class="price">
|
||
|
|
<!--<text class="marketprice">¥{{item.scje}}</text>-->
|
||
|
|
<text class="ourprice">¥{{item.hyje}}</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
|
||
|
|
</view>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</view>
|
||
|
|
|
||
|
|
<view wx:else>暂无数据</view>
|
||
|
|
</view>
|
||
|
|
</view>
|