mine.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. (function() {
  2. Vue.component('doctor-mine', {
  3. template: `<div class="container-fluid chahua-bg mt20">
  4. <div class="chahua container clearfix">
  5. <div class="fl my-count c-border">
  6. <h1>我的账户</h1>
  7. <ul class="list">
  8. <li v-for="(name, index) in list" :key="index" @click="setCon(index)" class="" :class="{'li-active': index == mineIndex}">{{name}}</li>
  9. </ul>
  10. </div>
  11. <div class="fl my-detail c-border">
  12. <div class="con1 pt40" v-if="mineIndex == 0">
  13. <per-info></per-info>
  14. </div>
  15. <div class="con2" v-if="mineIndex == 1">
  16. <safe-setting></safe-setting>
  17. </div>
  18. <div class="con3 pl30" v-if="mineIndex == 2">
  19. <device-reback></device-reback>
  20. </div>
  21. </div>
  22. </div>
  23. </div>`,
  24. props: [],
  25. data: function() {
  26. return {
  27. list: ["个人信息", "安全设置", "意见反馈"],
  28. mineIndex: 0,
  29. info: null,
  30. myPhoto: null
  31. }
  32. },
  33. methods: {
  34. setCon: function(index) {
  35. this.mineIndex = index
  36. }
  37. }
  38. })
  39. })()