change-phone.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. (function() {
  2. Vue.component('change-phone', {
  3. template: `<div id="phone" class="pl30 hidden">
  4. <div class="pb10 c-border-b c-f20">
  5. 更改安全手机
  6. </div>
  7. <form id="phoneForm" 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="text" class="form-control" style="width:310px;" name="phone" autocomplete="off">
  12. </div>
  13. </div>
  14. <div class="c-t-center mt50">
  15. <button type="submit" class="btn btn-theme c-f16" style="width:144px;height: 50px;" @click="changePhone()">确 定</button>
  16. <button type="button" class="btn btn-default c-f16 ml20" style="width:144px;height: 50px;" @click="gotosetting()">取 消</button>
  17. </div>
  18. </form>
  19. </div>`,
  20. props: [],
  21. data: function() {
  22. return {
  23. }
  24. },
  25. mounted: function() {
  26. },
  27. methods: {
  28. gotosetting: function() {
  29. $("#phone").addClass("hidden")
  30. $("#security").removeClass("hidden")
  31. },
  32. changePhone:function(){
  33. }
  34. },
  35. })
  36. })()