小程序简单收缩菜单

时间:2020-09-23 12:00:53   收藏:0   阅读:52
      <view bindtap="bindIsDown" class="nav-Title" data-isdown="{{isDown}}"  >
        <text class="nav-titles">2222</text>
        <image src="../../image/exam/{{isDown==0?‘down‘:‘up‘}}.png"></image>
      </view>
      <view class="navCont" hidden="{{isDown==0?true:false}}">
        <view class="sidebar-Left" bindtap="bindIsDown">
          <view bindtap=change >
            <text>99999</text>
          </view>
        </view>
      </view>
  bindIsDown: function (t) {
    var that = this,
        e = t.currentTarget.dataset.isdown;
    e = 0 == e ? 1 : 0, that.setData({
        isDown: e
    });
},

  

原文:https://www.cnblogs.com/xzhce/p/13716731.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!