password.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--pages/password/password.wxml-->
  2. <cu-custom isBack="true">
  3. <view class="nav-content" slot="backText">返回</view>
  4. <view class="nav-content" slot="content">{{title}}</view>
  5. </cu-custom>
  6. <background background="{{background}}"></background>
  7. <view style="opacity:{{0.85}}">
  8. <form>
  9. <view class="cu-form-group margin-top">
  10. <view class="title">名称</view>
  11. <input name="name" id="name" placeholder="名称,用于识别和搜索" bindinput="inputAction" data-id="name" value='{{name}}'>{{name}}</input>
  12. </view>
  13. <view class="cu-form-group">
  14. <view class="title">账户</view>
  15. <input name="account" id="account" placeholder="账户名称" bindinput="inputAction" data-id="account" value='{{account}}'></input>
  16. </view>
  17. <view class='cu-form-group'>
  18. <view class='title'>密码长度</view>
  19. <text class='cuIcon-triangledownfill bigTriangle text-orange' bindtap="minusLength"></text>
  20. <input class='text-center' type='text' placeholder="密码长度" bindinput="inputAction" id="passwordLength" data-id="passwordLength" value="{{passwordLength}}" disabled='disabled'></input>
  21. <text class='cuIcon-triangleupfill bigTriangle text-orange' bindtap="addLength"></text>
  22. </view>
  23. <view class="cu-form-group">
  24. <view class="title">密码</view>
  25. <input name="password" id="password" placeholder="密码,将会通过公钥加密存储到服务器" bindinput="inputAction" data-id="password" value='{{password}}'></input>
  26. <text class="cuIcon-refresh text-orange" bindtap='randPassword'></text>
  27. </view>
  28. <view class="cu-form-group">
  29. <view class="title">链接</view>
  30. <input name="link" id="link" placeholder="网站链接" bindinput="inputAction" data-id="link" value='{{link}}'></input>
  31. </view>
  32. <view class="cu-form-group">
  33. <textarea name="note" id="note" maxlength="-1" disabled="{{modalName!=null}}" bindinput="textareaAInput" placeholder="备注" bindinput="inputAction" data-id="note" value='{{note}}'></textarea>
  34. </view>
  35. <view class="cu-form-group margin-top grid col-2 padding-sm">
  36. <view class="cu-item" bindtap='getBack'>
  37. <button class="cu-btn block line-orange lg bg-blue">
  38. <text class="cuIcon-close"></text>取消</button>
  39. </view>
  40. <view class="cu-item" bindtap='submitPassword'>
  41. <button class="cu-btn block line-orange lg bg-blue">
  42. <text class="cuIcon-post"></text> 保存 </button>
  43. </view>
  44. </view>
  45. </form>
  46. </view>