myConnections.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="box">
  3. <view class="tabBob">
  4. <view class="tabline" @click="tabcl(1)">
  5. <view class="tabTxt" :class="{tabActive:tabindex==1}">一级人脉</view> <view class="tabkk" v-if="tabindex==1"></view>
  6. </view>
  7. <view class="tabline" @click="tabcl(2)">
  8. <view class="tabTxt" :class="{tabActive:tabindex==2}">二级人脉</view> <view class="tabkk" v-if="tabindex==2"></view>
  9. </view>
  10. <view class="tabline" @click="tabcl(3)">
  11. <view class="tabTxt" :class="{tabActive:tabindex==3}">三级人脉</view> <view class="tabkk" v-if="tabindex==3"></view>
  12. </view>
  13. </view>
  14. <view style="height: 100rpx;"></view>
  15. <view class="line" v-for="(item,index) in 3">
  16. <view class="linetop">
  17. <view class="name">李瑞</view>
  18. <view class="nickNameBox">
  19. <view class="nickName">E三级人脉</view>
  20. </view>
  21. </view>
  22. <view class="lineCOnt">
  23. <view class="lineline">
  24. <view class="lineContLeft">
  25. <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
  26. <view class="lineContLeftMs">17891011123</view>
  27. </view>
  28. <view class="lineTIme">2020-09-20 12:13:23</view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. components: {
  37. },
  38. data() {
  39. return {
  40. tabindex:1,
  41. themeColor:'',
  42. userInfo:'',
  43. }
  44. },
  45. onLoad(opt) {
  46. this.themeColor = uni.getStorageSync("themeColor");
  47. this.userInfo = uni.getStorageSync("userInfo");
  48. },
  49. onShow() {
  50. },
  51. methods: {
  52. tabcl(num){
  53. this.tabindex=num;
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="less">
  59. .box {
  60. width: 100vw;
  61. min-height: 100vh;
  62. background: #F4F5F7;
  63. }
  64. .tabBob{
  65. display: flex;
  66. justify-content: space-around;
  67. background: #FFFFFF;
  68. padding-bottom: 10rpx;
  69. width: 100%;
  70. position: fixed;
  71. left: 0;
  72. top: 0;
  73. }
  74. .nickNameBox{
  75. display: flex;
  76. font-size: 30rpx;
  77. font-family: PingFangSC-Medium, PingFang SC;
  78. font-weight: 500;
  79. color: #FF0000;
  80. line-height: 42rpx;
  81. }
  82. .tabTxt{
  83. padding-top: 23rpx;padding-bottom: 8rpx;
  84. }
  85. .tabActive{
  86. color: #FF0000 !important;
  87. }
  88. .tabkk{
  89. width: 40rpx;
  90. height: 4rpx;
  91. background: #FF0000;
  92. margin: 0 auto;
  93. }
  94. .nickName{
  95. font-weight: 400;
  96. color: #999999;
  97. font-size: 24rpx;
  98. line-height: 30rpx;
  99. padding-left: 10rpx;
  100. }
  101. .lineContLeftImg{
  102. width: 30rpx;
  103. height: 30rpx;
  104. margin-right: 10rpx;
  105. }
  106. .line{
  107. width: 702rpx;
  108. background: #FFFFFF;
  109. border-radius: 10rpx;
  110. margin-bottom: 20rpx;
  111. margin-left: 24rpx;
  112. }
  113. .linetop{
  114. display: flex;
  115. justify-content: space-between;
  116. font-size: 30rpx;
  117. padding: 20rpx;
  118. padding-bottom: 0;
  119. }
  120. .lineline{
  121. display: flex;
  122. justify-content: space-between;
  123. padding: 20rpx;
  124. font-weight: 400;
  125. color: #999999;
  126. font-size: 24rpx;
  127. line-height: 30rpx;
  128. }
  129. .lineContLeft{
  130. display: flex;
  131. }
  132. .name{
  133. font-weight: 500;
  134. color: #3C3C3C;
  135. }
  136. .amount{
  137. color: #FF0000;
  138. }
  139. .nickNameImg{
  140. width: 30rpx;
  141. height: 30rpx;
  142. }
  143. </style>