index.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="container main">
  3. <view class="zero">
  4. <view>图片上传</view>
  5. <view>
  6. <vanupload list="{{img_url}}" count="{{4}}" previewSize="{{80}}" bind:imgUpload="imgUpl" bind:imgDel="imgDel"></vanupload>
  7. </view>
  8. </view>
  9. <view class="zero">
  10. <view>dialog弹框</view>
  11. <view>
  12. <button type="primary" size="mini" bindtap="toDialog">打开弹框</button>
  13. </view>
  14. </view>
  15. <view class="zero">
  16. <view>选项卡</view>
  17. <view>
  18. <e-tabs tabs="{{tabs}}" bind:tabsChange="tabsChange"></e-tabs>
  19. <view wx:if="{{tabs.active=='a'}}" class="a">
  20. a
  21. </view>
  22. <view wx:elif="{{tabs.active=='b'}}" class="b">
  23. b
  24. </view>
  25. <view wx:elif="{{tabs.active=='c'}}" class="b">
  26. c
  27. </view>
  28. </view>
  29. </view>
  30. <view class="zero">
  31. <view>侧导航</view>
  32. <view>
  33. <van-sidebar active-key="{{ sidebar.active }}" bind:change="sidebarChange" custom-class="sidebar">
  34. <van-sidebar-item wx:for="{{sidebar.list}}" wx:key="item" title="{{item.title}}" disabled="{{item.disabled}}" />
  35. </van-sidebar>
  36. </view>
  37. </view>
  38. </view>
  39. </mobile-main>
  40. <e-dialog dialog="{{dialog}}" bind:toClose="toClose">
  41. <view slot="info">
  42. <view wx:if="{{dialog.type=='1'}}">
  43. 弹框
  44. </view>
  45. </view>
  46. </e-dialog>