index.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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="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="cu-list box">
  31. <view class="cu-bar search bg-white">
  32. <view class="search-form round">
  33. <text class="cuIcon-search"></text>
  34. <input type="text" id="search-kwd" placeholder="请输入关键字" bindinput="inputAction" data-id="keyword" confirm-type="search" bindconfirm='search'></input>
  35. </view>
  36. <view class="action">
  37. <button class="cu-btn bg-green shadow-blur round" bindtap="search">搜索</button>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="cu-list menu-avatar">
  43. <view class="cu-item {{modalName=='move-box-'+ index?'move-cur':''}}" wx:for="{{lists}}" wx:key="id" bindtouchstart="ListTouchStart" bindtouchmove="ListTouchMove" bindtouchend="ListTouchEnd" data-target="move-box-{{index}}">
  44. <view class="cu-avatar lg round small-font {{colors[(index+1)%colors.length]}}" data-id="{{item.id}}" bindtap='editPwd'>{{item.name}}</view>
  45. <view class="content">
  46. <view class="text-grey text-cut">{{item.name}}</view>
  47. <view class="text-grey">{{item.account}}</view>
  48. <view class="text-gray text-sm text-cut">
  49. <text class="cuIcon-infofill text-red" bindtap='copyPwd' data-val="{{item.password}}">查看密码</text> - {{item.password}}</view>
  50. </view>
  51. <view class="action">
  52. <view class="text-grey text-xs">{{item.create_time}}</view>
  53. </view>
  54. <view class="move">
  55. <view class="bg-grey" data-id="{{item.id}}" data-name="{{item.name}}" bindtap='editPwd'>编辑</view>
  56. <view class="bg-red" data-id="{{item.id}}" data-name="{{item.name}}" bindtap='removePwd'>删除</view>
  57. </view>
  58. </view>
  59. <view class="cu-load bg-white {{!isLoad?'loading':'over'}} {{hiddenLoading?'hidden':'show'}}"></view>
  60. </view>
  61. <view class='padding middle-opt white'>操作指南:左滑编辑或删除数据</view>
  62. </scroll-view>
  63. <view class="usermotto" class="{{hiddenStatus?'hidden':'show'}}">
  64. <text class="user-motto font-18 white">{{motto}}</text>
  65. </view>
  66. </view>
  67. <view class="theme">
  68. <view class="cu-bar bg-white">
  69. <view class="action">
  70. <text class="cuIcon-title text-pink"></text> 点击图片设置成背景
  71. </view>
  72. </view>
  73. <swiper class="screen-swiper {{DotStyle?'square-dot':'round-dot'}}" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
  74. <swiper-item wx:for="{{swiperList}}" wx:key="id" data-src="{{item.url}}" bindtap='setToBackground'>
  75. <image src="{{item.url}}" mode="aspectFill" wx:if="{{item.type=='image'}}"></image>
  76. <video src="{{item.url}}" autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:if="{{item.type=='video'}}"></video>
  77. </swiper-item>
  78. </swiper>
  79. </view>
  80. <view class='padding tab-bottom bg-gray align-center text-center'>已经到底了</view>
  81. </home>
  82. <view class="cu-bar tabbar bg-white shadow foot">
  83. <view class="action" bindtap="NavChange" data-cur="passwd-note">
  84. <view class='cuIcon-cu-image'>
  85. <image src="/images/tabbar/component{{PageCur=='passwd-note'?'_cur':''}}.png"></image>
  86. </view>
  87. <view class="{{PageCur=='passwd-note'?'text-green':'text-gray'}}">我的密码</view>
  88. </view>
  89. <view class="action" bindtap="NavChange" data-cur="album">
  90. <view class='cuIcon-cu-image'>
  91. <image src="/images/tabbar/basics{{PageCur=='album'?'_cur':''}}.png"></image>
  92. </view>
  93. <view class="{{PageCur=='album'?'text-green':'text-gray'}}">相册</view>
  94. </view>
  95. <view class="action" bindtap="NavChange" data-cur="about">
  96. <view class='cuIcon-cu-image'>
  97. <image src="/images/tabbar/about{{PageCur=='about'?'_cur':''}}.png"></image>
  98. </view>
  99. <view class="{{PageCur=='about'?'text-green':'text-gray'}}">关于</view>
  100. </view>
  101. </view>