password.wxml 2.3 KB

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