change-password.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. (function() {
  2. Vue.component('change-password', {
  3. template: `<div id="password" class="pl30 hidden">
  4. <div class="pb10 c-border-b c-f20">
  5. 修改密码
  6. </div>
  7. <form id="passwordForm" class="" onsubmit="return false">
  8. <div class="w3-row mt25 form-group">
  9. <div class="w3-col c-f16 m5 c-t-right c-909090" style="width:80px;">旧密码</div>
  10. <div class="w3-rest pl15">
  11. <input type="password" class="form-control" style="width:310px;" name="oldpassword" autocomplete="off">
  12. </div>
  13. </div>
  14. <div class="w3-row mt25 form-group">
  15. <div class="w3-col c-f16 m5 c-t-right c-909090" style="width:80px;">新密码</div>
  16. <div class="w3-rest pl15">
  17. <input type="password" class="form-control" style="width:310px;" name="newpassword" autocomplete="off">
  18. </div>
  19. </div>
  20. <div class="w3-row mt25 form-group">
  21. <div class="w3-col c-f16 m5 c-t-right c-909090" style="width:80px;">确认密码</div>
  22. <div class="w3-rest pl15">
  23. <input type="password" class="form-control" style="width:310px;" name="confirm_password" autocomplete="off">
  24. </div>
  25. </div>
  26. <div class="c-t-center mt50">
  27. <button type="submit" class="btn btn-theme c-f16" style="width:144px;height: 50px;" @click="changePassword()">确 定</button>
  28. <button type="button" class="btn btn-default c-f16 ml20" style="width:144px;height: 50px;" @click="gotosetting()">取 消</button>
  29. </div>
  30. </form>
  31. </div>`,
  32. props: [],
  33. data: function() {
  34. return {
  35. }
  36. },
  37. mounted: function() {
  38. },
  39. methods: {
  40. gotosetting: function() {
  41. $("#password").addClass("hidden")
  42. $("#security").removeClass("hidden")
  43. },
  44. changePassword:function(){
  45. }
  46. },
  47. })
  48. })()