security-setting.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. (function() {
  2. Vue.component('security-setting', {
  3. template: `<div class="container ptb20 ">
  4. <div class="row w3-row">
  5. <left-menu :code="code"></left-menu>
  6. <div class="pl251" >
  7. <div class="bgc-fff c-border ptb30" style="height: 706px;">
  8. <div id="security">
  9. <div class="w3-row pl30">
  10. <div class="w3-col" style="width:60px;"><img src="../../../images/icon_wodezhanghu.png" width="43" height="50" /></div>
  11. <div class="w3-rest pl10 pb35 c-border-b pr30">
  12. <div class="w3-col mt15" style="width:117px;float: right;"><button class="btn btn-default btn-block" type="button" @click="changePassword()">修 改</button></div>
  13. <div class="w3-rest">
  14. <div class="c-f20 ">登陆密码</div>
  15. <div class="c-f14 c-909090 mt15 ">建议您定期更改密码,设置安全性高的密码可以使账号更安全</div>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="w3-row pl30 pt30">
  20. <div class="w3-col" style="width:60px; "><img src="../../../images/icon_wodezhanghu.png " width="43 " height="50 " /></div>
  21. <div class="w3-rest pl10 pb35 c-border-b pr30">
  22. <div class="w3-col mt15 " style="width:117px;float: right; "><button class="btn btn-default btn-block " type="button" @click="changePhone()">更 改</button></div>
  23. <div class="w3-rest">
  24. <div class="c-f20 ">安全手机 180****1111</div>
  25. <div class="c-f14 c-909090 mt15 ">安全手机可以用于登录账号,重置密码或者其他安全验证</div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <change-password></change-password>
  31. <change-phone></change-phone>
  32. </div>
  33. </div>
  34. </div>`,
  35. props: [],
  36. data: function() {
  37. return {
  38. code: "securitySetting",
  39. }
  40. },
  41. mounted: function() {
  42. },
  43. methods: {
  44. changePassword: function() {
  45. $("#security").addClass("hidden")
  46. $("#password").removeClass("hidden")
  47. },
  48. changePhone: function() {
  49. $("#security").addClass("hidden")
  50. $("#phone").removeClass("hidden")
  51. },
  52. },
  53. })
  54. })()