per-info.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. (function() {
  2. Vue.component('per-info', {
  3. template: `<div>
  4. <div class="c-t-center">
  5. <div>
  6. <div :class="{\'img-add\': !myPhoto}" class="c-vam c-inline-block c-position-r">
  7. <input id="myPhoto" type="file" @change="uploadImg()" ref="codeImg" style="width: 100px; height: 100px;" class="c-vam c-inline-block type-hide" accept="image/jpg,image/jpeg,image/png">
  8. <img style="width: 100px; height: 100px; position: absolute; top: 0; z-index: -1;" class="c-vam c-inline-block" :src="myPhoto" v-show="myPhoto" />
  9. </div>
  10. </div>
  11. <label for="myPhoto" class="mt10 mb25 c-888">修改头像</label>
  12. </div>
  13. <div class="detail-info">
  14. <p class="form-group clearfix">
  15. <label class="fl form-label">姓&emsp;&emsp;名</label>
  16. <input class="fl form-control" placeholder="输入姓名" />
  17. </p>
  18. <p class="form-group clearfix">
  19. <label class="fl form-label">医生专长</label>
  20. <input class="fl form-control" placeholder="医生专长" />
  21. </p>
  22. <p class="form-group clearfix">
  23. <label class="fl form-label">手机号码</label>
  24. <input class="fl form-control" readonly="true" placeholder="" />
  25. </p>
  26. <p class="form-group clearfix">
  27. <label class="fl form-label">身份证号</label>
  28. <input class="fl form-control" readonly="true" placeholder="" />
  29. </p>
  30. <p class="form-group clearfix">
  31. <label class="fl form-label">机构部门</label>
  32. <input class="fl form-control" readonly="true" placeholder="" />
  33. </p>
  34. <p class="form-group clearfix">
  35. <label class="fl form-label">办公电话</label>
  36. <input class="fl form-control" placeholder="办公电话" />
  37. </p>
  38. <p class="form-group clearfix">
  39. <label class="fl form-label">医生主页</label>
  40. <input class="fl form-control" placeholder="医生主页" />
  41. </p>
  42. </div>
  43. <div class="pt10">
  44. <span class="btn" @click="saveMyInfo()">保&emsp;存</span>
  45. </div>
  46. </div>`,
  47. props: [],
  48. data: function() {
  49. return {
  50. info: null,
  51. myPhoto: null,
  52. }
  53. },
  54. methods: {
  55. saveMyInfo: function() {
  56. }
  57. }
  58. })
  59. })()