index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view>
  3. <view>
  4. <mescroll-item ref="MescrollItem" :i="index" :index="tabIndex" :height="height" v-for="(tab,index) in tabsList" :key="index">
  5. </mescroll-item>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import MescrollItem from "./module/mescrollUni-item.vue";
  11. import {
  12. getUserInfo,
  13. userEdit,
  14. getLogout
  15. } from '@/api/user.js';
  16. import {
  17. switchH5Login
  18. } from '@/api/api.js';
  19. import {
  20. toLogin
  21. } from '@/libs/login.js';
  22. import {
  23. mapGetters
  24. } from "vuex";
  25. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  26. // #ifdef MP
  27. import authorize from '@/components/Authorize';
  28. // #endif
  29. import colors from '@/mixins/color.js';
  30. export default {
  31. components: {
  32. MescrollItem,
  33. // #ifdef APP-PLUS
  34. appUpdate,
  35. // #endif
  36. // #ifdef MP
  37. authorize
  38. // #endif
  39. },
  40. mixins: [colors],
  41. data () {
  42. return {
  43. height:'',
  44. tabIndex:0,
  45. tabsList:[{name:"分销业绩"}]
  46. };
  47. },
  48. computed: mapGetters(['isLogin']),
  49. watch: {
  50. isLogin: {
  51. handler: function (newV, oldV) {
  52. if (newV) {
  53. }
  54. },
  55. deep: true
  56. }
  57. },
  58. onLoad () {
  59. },
  60. onShow(){
  61. let sysInfo = uni.getSystemInfoSync()
  62. this.height= sysInfo.windowHeight -(sysInfo.screenWidth/750) * (200) +'px';
  63. console.log(this.height)
  64. },
  65. methods: {
  66. swiperChange: function (e) {
  67. this.currentSwiper = e.detail.current
  68. }
  69. }
  70. }
  71. </script>
  72. <style scoped lang="scss">
  73. .cartcolor {
  74. color: var(--view-theme);
  75. border: 1px solid var(--view-theme);
  76. }
  77. .myclient_list {
  78. margin-top: 30rpx;
  79. width: 750rpx;
  80. height: 160rpx;
  81. padding: 30rpx;
  82. background: #FFFFFF;
  83. .myclient_list_name {
  84. margin-bottom: 15rpx;
  85. height: 44rpx;
  86. line-height: 44rpx;
  87. display: flex;
  88. justify-content: space-between;
  89. .name-l {
  90. height: 44rpx;
  91. font-size: 28rpx;
  92. font-weight: 500;
  93. color: #111111;
  94. line-height: 44rpx;
  95. }
  96. .name-r {
  97. height: 44rpx;
  98. font-size: 28rpx;
  99. font-weight: 500;
  100. color: #75BE00;
  101. line-height: 44rpx;
  102. }
  103. }
  104. .myclient_list_content {
  105. image {
  106. width: 24rpx;
  107. height: 24rpx;
  108. margin-right: 20rpx;
  109. }
  110. .phone {
  111. margin-bottom: 15rpx;
  112. height: 44rpx;
  113. font-size: 24rpx;
  114. font-weight: 400;
  115. color: #999999;
  116. line-height: 44rpx;
  117. }
  118. .time {
  119. height: 44rpx;
  120. font-size: 24rpx;
  121. font-weight: 400;
  122. color: #999999;
  123. line-height: 44rpx;
  124. }
  125. }
  126. }
  127. </style>