青蛙卖大米小程序2024-11-24
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
3.1 KiB

6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="推广明细" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="search">
  5. <uv-search
  6. placeholder="会员ID/昵称"
  7. bgColor="#fff"
  8. @search="getData"
  9. @custom="getData"
  10. v-model="queryParams.title"></uv-search>
  11. </view>
  12. <view class="top">
  13. <view class="top-text">
  14. <view>{{ total }}</view>
  15. <view>直推人数</view>
  16. </view>
  17. </view>
  18. <view class="cell">
  19. <!-- <view class="cell-top">推广明细</view> -->
  20. <view class="cell-box"
  21. :key="index"
  22. v-for="(item,index) in list">
  23. <view class="headImage">
  24. <image :src="item.headImage" mode="aspectFill"></image>
  25. </view>
  26. <view class="info">
  27. <view
  28. style="width: 300rpx;">
  29. <text>昵称</text>
  30. {{ item.nickName }}
  31. </view>
  32. <view style="display: flex;align-items: center;"
  33. @click="$utils.copyText(item.shareId)">
  34. <text>三只青蛙推荐官</text>
  35. {{ item.shareId && item.shareId.substring(0, 8) }}...
  36. <uv-icon name="empty-news" color="#aaa" size="40"></uv-icon>
  37. </view>
  38. </view>
  39. <view class="info">
  40. <view class="">
  41. <text>级别</text>
  42. 我的朋友
  43. </view>
  44. <view class="">
  45. <text>时间</text>
  46. {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import mixinsList from '@/mixins/list.js'
  55. export default {
  56. mixins : [mixinsList],
  57. data() {
  58. return {
  59. mixinsListApi : 'getFansPageList',
  60. vipType : ['普通会员', '黄金会员', '渠道商'],
  61. }
  62. },
  63. onLoad(e) {},
  64. methods: {
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .page {
  70. background-color: #F3F3F3;
  71. height: 100vh;
  72. .search {
  73. position: relative;
  74. background: #FFFFFF;
  75. margin: 20rpx;
  76. border-radius: 41rpx;
  77. padding: 10rpx 20rpx;
  78. display: flex;
  79. align-items: center;
  80. /deep/ .uv-search__action {
  81. background-color: $uni-color;
  82. color: #FFFFFF;
  83. padding: 10rpx 20rpx;
  84. border-radius: 30rpx;
  85. }
  86. }
  87. .top {
  88. display: flex;
  89. height: 200rpx;
  90. justify-content: center;
  91. align-items: center;
  92. color: #474747;
  93. .top-text {
  94. text-align: center;
  95. view:nth-child(1) {
  96. font-size: 78rpx;
  97. font-weight: 600;
  98. }
  99. view:nth-child(2) {
  100. font-size: 28rpx;
  101. }
  102. }
  103. }
  104. .cell {
  105. .cell-box{
  106. border-radius: 16rpx;
  107. margin: 20rpx;
  108. background-color: #FFFFFF;
  109. padding: 20rpx;
  110. display: flex;
  111. align-items: center;
  112. .headImage{
  113. width: 120rpx;
  114. height: 120rpx;
  115. margin-right: 20rpx;
  116. flex-shrink: 0;
  117. image{
  118. width: 100%;
  119. height: 100%;
  120. border-radius: 50%;
  121. }
  122. }
  123. .info{
  124. flex: 1;
  125. font-size: 22rpx;
  126. flex-shrink: 0;
  127. view{
  128. width: 240rpx;
  129. overflow:hidden; //超出的文本隐藏
  130. text-overflow:ellipsis; //溢出用省略号显示
  131. white-space:nowrap; //溢出不换行
  132. }
  133. text{
  134. font-weight: 900;
  135. color: #474747;
  136. }
  137. }
  138. }
  139. .cell-top {
  140. padding: 40rpx 34rpx;
  141. color: #474747;
  142. font-size: 34rpx;
  143. font-weight: 600;
  144. }
  145. }
  146. }
  147. </style>