riku
2022-09-19 47e86f543415585ab1e1b2b1ed1d98830817a1be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<wxs module="utils">
  var join = function (a, b) {
    return a + b
  };
  var isNotSlot = function (v) {
    return typeof v !== 'string'
  }
  module.exports = {
    join: join,
    isNotSlot: isNotSlot
  }
</wxs>
 
<view wx:if="{{mask}}" class="fyui-mask {{show ? '' : 'fyui-mask_hidden'}} {{maskClass}}" bindtap="closeActionSheet"></view>
<view class="fyui-sidebar {{show ? 'fyui-sidebar_toggle' : ''}} {{extClass}}">
  <view class="fyui-sidebar__menu">
    <block wx:for="{{menus}}" wx:key="index"> 
      <view class="{{index == tempSelectedIndex[0] ? 'selected' : ''}}" bindtap="chooseMenu" data-index="{{index}}">{{item.name}}</view>
    </block>
  </view>
  <view class="fyui-sidebar__content">
    <block wx:for="{{items[tempSelectedIndex[0]]}}" wx:key="index">
      <view class="{{index == tempSelectedIndex[1] ? 'selected' : ''}}" bindtap="chooseItem" data-index="{{index}}">{{item.name}}</view>
    </block>
  </view>
  <view class="fyui-sidebar__check">
    <!-- <mp-icon bindtap="submit" icon="done" size="{{30}}" color="white" extClass="fyui-sidebar__check_btn"></mp-icon>
    <mp-icon bindtap="closeActionSheet" icon="close" size="{{30}}" color="white" extClass="fyui-sidebar__check_btn"></mp-icon> -->
    <view class="submit" bindtap="submit">确定</view>
    <view class="submit submit_cancel" bindtap="closeActionSheet">取消</view>
  </view>
</view>