Commit 45d14fa1 by 谢中龙

修改分类商品列表

parent c15a27d8
......@@ -80,6 +80,7 @@ wxService.page({
// 切换tab
switchTab(e){
console.log(e)
this.data.form.order = '';
this.setData({
currentTab: e.currentTarget.dataset.type,
'form.sortType': e.currentTarget.dataset.type
......
......@@ -3,7 +3,8 @@
<view class="pro-nav-wrap">
<view class="nav-list">
<block wx:for="{{navTab}}" wx:key="{{index}}">
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}"
bindtap="switchTab" data-type="{{item.type}}">{{item.name}}
<!-- <image mode="widthFix" src="{{}}"></image> -->
</view>
</block>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment