password.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <checkbox-group bindchange="checkboxAction">
  26. <checkbox name="combin" value="smallLetter" checked="checked"></checkbox> 字母
  27. <checkbox name="combin" value="bigLetter" checked="checked"></checkbox> 大写
  28. <checkbox name="combin" value="alpha" checked="checked"></checkbox> 数字
  29. <checkbox name="combin" value="specialChars" checked="checked"></checkbox> 特殊字符
  30. </checkbox-group>
  31. </view>
  32. <view class="cu-form-group">
  33. <view class="title">密码</view>
  34. <input name="password" id="password" placeholder="密码,将会通过公钥加密存储到服务器" bindinput="inputAction" data-id="password" value='{{password}}'></input>
  35. <text class="cuIcon-refresh text-orange" bindtap='randPassword'></text>
  36. </view>
  37. <view class="cu-form-group">
  38. <view class="title">链接</view>
  39. <input name="link" id="link" placeholder="网站链接" bindinput="inputAction" data-id="link" value='{{link}}'></input>
  40. </view>
  41. <view class="cu-form-group">
  42. <textarea name="note" id="note" maxlength="-1" disabled="{{modalName!=null}}" bindinput="textareaAInput" placeholder="备注" bindinput="inputAction" data-id="note" value='{{note}}'></textarea>
  43. </view>
  44. <view class="cu-form-group margin-top grid col-2 padding-sm">
  45. <view class="cu-item" bindtap='getBack'>
  46. <button class="cu-btn block line-orange lg bg-blue">
  47. <text class="cuIcon-close"></text>取消</button>
  48. </view>
  49. <view class="cu-item" bindtap='submitPassword'>
  50. <button class="cu-btn block line-orange lg bg-blue">
  51. <text class="cuIcon-post"></text> 保存 </button>
  52. </view>
  53. </view>
  54. </form>
  55. </view>