partnerDetail.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <view class="">
  3. <public-module></public-module>
  4. <view class="headers dis a-c j-start">
  5. <u-icon name="arrow-left" color="#333" size="38" @click="back"></u-icon>
  6. <text style="margin: auto;">管理人详情</text>
  7. </view>
  8. <view class="homeBackground"></view>
  9. <view class="intro dis a-c ">
  10. <image src="/static/image/my/wuxingb.png" mode=""></image>
  11. <view class="dis f-c ml-3">
  12. <text class="title">{{referrerInfo.userName}}</text>
  13. <text>{{referrerInfo.mobile}}</text>
  14. <view class="dis a-c">
  15. <text>推荐人:{{referrerInfo.referrerName}}</text>
  16. <view class="level dis a-c j-c ">
  17. {{referrerInfo.referrerGrade}}
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="body p-2" style="padding-top: 400rpx;">
  23. <view class="card mb-2" v-for="(item,index) in userlist" :key="index">
  24. <view class="card-title dis a-c j-s mb-2">
  25. <view class="dis a-c ">
  26. <view class="avatar">
  27. <image src="/static/image/my/wuxingb.png" mode=""></image>
  28. </view>
  29. <text class="name ml-1">{{item.userName}}</text>
  30. </view>
  31. <text>{{item.createTime}} &nbsp;加入</text>
  32. </view>
  33. <view class="card-data dis a-c j-s ">
  34. <view class="view dis f-c a-c ">
  35. <text>{{item.number}}</text>
  36. <text>{{item.gradeName}}</text>
  37. </view>
  38. <view class="view dis f-c a-c ">
  39. <text>{{item.premium}}</text>
  40. <text>保费</text>
  41. </view>
  42. <view class="view dis f-c a-c ">
  43. <text>{{item.commission}}</text>
  44. <text>我的佣金</text>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. referrerInfo: {}, //个人信息
  56. userlist: [],
  57. }
  58. },
  59. onLoad(options) {
  60. this.id = options.id;
  61. this.querydata();
  62. },
  63. methods: {
  64. back() {
  65. uni.navigateBack({
  66. delta: 1, // 返回的页面数,如果是1表示返回上一页
  67. success: function() {}
  68. });
  69. },
  70. async querydata() {
  71. let res = await this.$http.get('/newAppPartner/selectByIdList?id=' + this.id + '&startTime=' +
  72. this
  73. .startTime + '&endTime=' + this.endTime);
  74. if (res.code == '200') {
  75. this.referrerInfo = res.data.referrer;
  76. this.userlist = res.data.list;
  77. }
  78. },
  79. onReachBottom() {
  80. if (this.pageRequest.pageNum >= this.totalPages) return;
  81. this.status = 'loading';
  82. this.pageRequest.pageNum = ++this.pageRequest.pageNum;
  83. setTimeout(async () => {
  84. let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
  85. ...this.pageRequest,
  86. source: this.source
  87. });
  88. if (res.code == '200') {
  89. this.totalSize = res.data.totalSize;
  90. this.directLsit = [...this.directLsit, ...res.data.content];
  91. }
  92. if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
  93. else this.status = 'loading';
  94. }, 1000)
  95. },
  96. }
  97. }
  98. </script>
  99. <style lang="scss" scoped>
  100. .headers {
  101. position: fixed;
  102. top: 0;
  103. left: 0;
  104. height: auto;
  105. width: 100%;
  106. z-index: 999999;
  107. padding: 30rpx;
  108. padding-top: 50px;
  109. text {
  110. font-size: 36rpx;
  111. font-weight: bold;
  112. color: #000;
  113. }
  114. .right {
  115. position: absolute;
  116. right: 30rpx;
  117. image {
  118. width: 28rpx;
  119. height: 28rpx;
  120. margin-right: 4rpx;
  121. }
  122. text {
  123. font-weight: 400;
  124. color: #000;
  125. font-size: 24rpx;
  126. }
  127. }
  128. }
  129. //头部背景
  130. .homeBackground {
  131. position: fixed;
  132. top: 0;
  133. left: 0;
  134. z-index: 999;
  135. width: 100%;
  136. height: 176rpx;
  137. background: linear-gradient(180deg, #D1EFFE 0%, #FFFFFF 100%);
  138. border-bottom: 1rpx solid #f2f2f2;
  139. }
  140. .intro {
  141. position: fixed;
  142. top: 176rpx;
  143. left: 0;
  144. z-index: 999;
  145. width: 100%;
  146. padding: 25rpx 30rpx;
  147. box-sizing: border-box;
  148. background-color: #FFFFFF;
  149. image {
  150. width: 128rpx;
  151. height: 128rpx;
  152. }
  153. text {
  154. font-size: 28rpx;
  155. color: #666;
  156. }
  157. .title {
  158. font-size: 32rpx;
  159. color: #333;
  160. font-weight: bold;
  161. }
  162. .level {
  163. padding: 0 10rpx;
  164. box-sizing: border-box;
  165. font-size: 22rpx;
  166. color: #2D6DFF;
  167. border: 1rpx solid #2D6DFF;
  168. border-radius: 4rpx;
  169. margin-left: 20rpx;
  170. background: rgba(45, 109, 255, 0.1);
  171. }
  172. }
  173. //列表数据
  174. .card {
  175. background: #FFFFFF;
  176. border-radius: 10rpx;
  177. background-image: url("/static/card.png");
  178. background-size: 100% 100%;
  179. border-top: 1px solid;
  180. border-image: linear-gradient(270deg, rgba(45, 109, 255, 0), rgba(45, 109, 255, 1), rgba(45, 109, 255, 0)) 1 1;
  181. padding: 20rpx 30rpx 30rpx;
  182. .card-title {
  183. .avatar {
  184. width: 40rpx;
  185. height: 40rpx;
  186. border-radius: 50%;
  187. image {
  188. width: 100%;
  189. height: 100%;
  190. }
  191. }
  192. >text {
  193. font-size: 24rpx;
  194. color: #666;
  195. }
  196. .name {
  197. font-size: 30rpx;
  198. color: #333;
  199. font-weight: bold;
  200. }
  201. }
  202. .card-data {
  203. .view {
  204. width: 33.33%;
  205. text:first-child {
  206. font-size: 30rpx;
  207. color: #333;
  208. font-weight: bold;
  209. }
  210. text:last-child {
  211. font-size: 24rpx;
  212. color: #999;
  213. }
  214. }
  215. .view:nth-child(2) {
  216. border-left: 1rpx solid #eee;
  217. border-right: 1rpx solid #eee;
  218. }
  219. }
  220. }
  221. </style>