Commit 45d14fa1 by 谢中龙

修改分类商品列表

parent c15a27d8
...@@ -80,6 +80,7 @@ wxService.page({ ...@@ -80,6 +80,7 @@ wxService.page({
// 切换tab // 切换tab
switchTab(e){ switchTab(e){
console.log(e) console.log(e)
this.data.form.order = '';
this.setData({ this.setData({
currentTab: e.currentTarget.dataset.type, currentTab: e.currentTarget.dataset.type,
'form.sortType': e.currentTarget.dataset.type 'form.sortType': e.currentTarget.dataset.type
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<view class="pro-nav-wrap"> <view class="pro-nav-wrap">
<view class="nav-list"> <view class="nav-list">
<block wx:for="{{navTab}}" wx:key="{{index}}"> <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> --> <!-- <image mode="widthFix" src="{{}}"></image> -->
</view> </view>
</block> </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