Mine.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="content">
  3. <view v-if="pageDisplay==1">
  4. <view v-if="toggleid==12">
  5. <mine ref="r1"></mine>
  6. </view>
  7. <view v-if="toggleid==13">
  8. <chatindex ref="r1"></chatindex>
  9. </view>
  10. </view>
  11. <view v-if="pageDisplay==2">
  12. <addressBook></addressBook>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import res from '../../common/data.json';
  18. import drawer from '../../components/drawer/threeLineDrawer.vue'
  19. import plusDrawer from '../../components/drawer/plusDrawer.vue';
  20. import addressBook from '../../components/mine/addressBook/addressBook.vue';
  21. import mine from '../../components/mine/Mine.vue';
  22. import chatindex from '../../components/mine/chat/Chatindex.vue';
  23. export default {
  24. components: {
  25. mine: mine,
  26. chatindex: chatindex,
  27. addressBook: addressBook
  28. },
  29. data: function() {
  30. return {
  31. pageDisplay: 1,
  32. toggleid: 12, //12我的主页,13聊天通讯,默认12
  33. badge: 22,
  34. inconList: ["form", "favor", "question", "edit"],
  35. modalName: null,
  36. leftNavigationtitle: '我的功能分组',
  37. buttonHeight: '',
  38. address: '',
  39. drawerList: [{
  40. "name": "聊天通讯"
  41. }, ],
  42. plusDrawerList: [],
  43. }
  44. },
  45. created: function() {
  46. //uni.setStorageSync('im_show','1');
  47. },
  48. onShow() {
  49. },
  50. methods: {
  51. }
  52. };
  53. </script>
  54. <style>
  55. body {
  56. font-family: '方正兰亭细黑_GBK';
  57. font-size: 20px;
  58. color: silver;
  59. background: #000;
  60. }
  61. @font-face {
  62. font-family: '方正兰亭细黑_GBK';
  63. src: url(../../static/fzltxh.TTF);
  64. }
  65. page {
  66. background-color: #1f1f1f;
  67. font-family: '方正兰亭细黑_GBK';
  68. overflow-x: hidden;
  69. }
  70. .top {
  71. width: 100%;
  72. height: 130upx;
  73. padding-top: 5upx;
  74. background-color: #1f1f1f;
  75. position: fixed;
  76. top: 0px;
  77. left: 0px;
  78. z-index: 100;
  79. }
  80. .threeLine {
  81. width: 50px;
  82. height: 45px;
  83. float: left;
  84. }
  85. .text {
  86. width: calc(100% - 100px);
  87. height: 45px;
  88. float: left;
  89. user-select: text;
  90. -webkit-user-select: text;
  91. -moz-user-select: text;
  92. -ms-user-select: text;
  93. color: silver;
  94. line-height: 45px;
  95. margin-top: 11px;
  96. font-size: 18px;
  97. }
  98. .notice {
  99. width: 50px;
  100. height: 45px;
  101. float: left;
  102. }
  103. .plus {
  104. width: 30px;
  105. height: 45px;
  106. float: right;
  107. color: white;
  108. font-size: 35px;
  109. line-height: 45px;
  110. text-align: right;
  111. margin-right: 2.5%;
  112. }
  113. .textWindpowerstation {
  114. width: 180px;
  115. height: 45px;
  116. float: left;
  117. text-align: center;
  118. margin-left: 18px;
  119. }
  120. .cu-btn {
  121. width: 80%;
  122. height: 40px;
  123. margin-left: 10%;
  124. margin-top: 25px;
  125. }
  126. </style>