index.wxml 4.5 KB

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