耽美漫画

wxml:

<view class=”{{showset2 == 1?’nav_caidan’:’nav_caidan2′}} cb”>
<viewclass=”m_nav1″>
   <navigatorclass=’img_rongqi’url=”/pages/index/index”>首页</navigator>
   <navigatorclass=’img_rongqi’url=”/pages/index/index”>明星</navigator>
   <navigatorclass=’img_rongqi’url=”/pages/index/index”>萌女</navigator>
</view>
<viewclass=”more_hot”bindtap=’showset2’id='{{showset2}}’>
   {{showset2 == 1?’展开’:’收回’}}
  </view>
</view>
js:
data: {
showset2:1
},
showset2: function (e) {
var isshow2 = e.currentTarget.id
this.setData({
showset2: isshow2 == 1 ? 0 : 1
})
},