index.wxml 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <cu-custom>
  2. <view class="nav-content" slot="content">{{title}}</view>
  3. </cu-custom>
  4. <background background="{{background}}"></background>
  5. <about wx:if="{{PageCur=='about'}}" switchToLocalText="{{switchToLocalText}}"></about>
  6. <album wx:if="{{PageCur == 'album'}}" imgList="{{imgList}}" id="album"></album>
  7. <home wx:if="{{PageCur=='passwd-note'}}">
  8. <view class="container">
  9. <view class="userinfo">
  10. <button class="userinfo-avatar-unauth lg font-24 no-border" plain="true" wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo">
  11. <image src="/images/unlock.png"></image>
  12. </button>
  13. <block wx:else>
  14. <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
  15. <text class="userinfo-nickname white">{{userInfo.nickName}}</text>
  16. </block>
  17. </view>
  18. <scroll-view scroll-y="{{modalName==null}}" class="page {{modalName!=null?'show':''}}" wx:if="{{showLists}}" style="opacity:{{0.85}}">
  19. <view class="cu-list grid col-{{iconCls}}">
  20. <view class="cu-item" wx:for="{{iconList}}" wx:key="{{item.method}}" bindtap='clickItem' data-id="{{item.method}}">
  21. <view class="cuIcon-{{item.icon}} text-{{item.color}}" data-id="{{item.method}}">
  22. <view class="cu-tag badge" wx:if="{{item.badge!=0}}">
  23. <block wx:if="{{item.badge!=1}}">{{item.badge>99?"99+":item.badge}}</block>
  24. </view>
  25. </view>
  26. <text data-id="{{item.method}}">{{item.name}}</text>
  27. </view>
  28. </view>
  29. <view class="cu-bar bg-white solid-bottom margin-top">
  30. <view class="action">
  31. 已保存密码
  32. </view>
  33. </view>
  34. <view class="cu-list menu-avatar">
  35. <view class="cu-item {{modalName=='move-box-'+ index?'move-cur':''}}" wx:for="{{lists}}" wx:key bindtouchstart="ListTouchStart" bindtouchmove="ListTouchMove" bindtouchend="ListTouchEnd" data-target="move-box-{{index}}">
  36. <view class="cu-avatar lg round small-font {{colors[(index+1%colors.length)]}}" data-id="{{item.id}}" bindtap='editPwd'>{{item.name}}</view>
  37. <view class="content">
  38. <view class="text-grey">账户 - {{item.account}}</view>
  39. <view class="text-gray text-sm text-cut">
  40. <text class="cuIcon-infofill text-red" bindtap='copyPwd' data-val="{{item.password}}">查看密码</text> - {{item.password}}</view>
  41. </view>
  42. <view class="action">
  43. <view class="text-grey text-xs">{{item.create_time}}</view>
  44. </view>
  45. <view class="move">
  46. <view class="bg-grey" data-id="{{item.id}}" data-name="{{item.name}}" bindtap='editPwd'>编辑</view>
  47. <view class="bg-red" data-id="{{item.id}}" data-name="{{item.name}}" bindtap='removePwd'>删除</view>
  48. </view>
  49. </view>
  50. <view class="cu-load bg-white {{!isLoad?'loading':'over'}} {{hiddenLoading?'hidden':'show'}}"></view>
  51. </view>
  52. <view class='padding middle-opt white'>操作指南:左滑编辑或删除数据</view>
  53. </scroll-view>
  54. <view class="usermotto" class="{{hiddenStatus?'hidden':'show'}}">
  55. <text class="user-motto font-18 white">{{motto}}</text>
  56. </view>
  57. </view>
  58. <view class="theme">
  59. <view class="cu-bar bg-white">
  60. <view class="action">
  61. <text class="cuIcon-title text-pink"></text> 点击图片设置成背景
  62. </view>
  63. </view>
  64. <swiper class="screen-swiper {{DotStyle?'square-dot':'round-dot'}}" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
  65. <swiper-item wx:for="{{swiperList}}" wx:key data-src="{{item.url}}" bindtap='setToBackground'>
  66. <image src="{{item.url}}" mode="aspectFill" wx:if="{{item.type=='image'}}"></image>
  67. <video src="{{item.url}}" autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:if="{{item.type=='video'}}"></video>
  68. </swiper-item>
  69. </swiper>
  70. </view>
  71. <view class='padding tab-bottom bg-gray align-center text-center'>已经到底了</view>
  72. </home>
  73. <view class="cu-bar tabbar bg-white shadow foot">
  74. <view class="action" bindtap="NavChange" data-cur="passwd-note">
  75. <view class='cuIcon-cu-image'>
  76. <image src="/images/tabbar/component{{PageCur=='passwd-note'?'_cur':''}}.png"></image>
  77. </view>
  78. <view class="{{PageCur=='passwd-note'?'text-green':'text-gray'}}">我的密码</view>
  79. </view>
  80. <view class="action" bindtap="NavChange" data-cur="album">
  81. <view class='cuIcon-cu-image'>
  82. <image src="/images/tabbar/basics{{PageCur=='album'?'_cur':''}}.png"></image>
  83. </view>
  84. <view class="{{PageCur=='album'?'text-green':'text-gray'}}">相册</view>
  85. </view>
  86. <view class="action" bindtap="NavChange" data-cur="about">
  87. <view class='cuIcon-cu-image'>
  88. <image src="/images/tabbar/about{{PageCur=='about'?'_cur':''}}.png"></image>
  89. </view>
  90. <view class="{{PageCur=='about'?'text-green':'text-gray'}}">关于</view>
  91. </view>
  92. </view>