statisticsDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <!-- 头部信息Start -->
  6. <view class="headers " :style="headerStyle">
  7. <view class="dis a-c j-start " style="padding: 0 15px;">
  8. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  9. <text style="margin: auto;">统计</text>
  10. <!-- <view class="headers-right">
  11. <image @click="weChatService" src="/static/image/my/kefu.png" mode="">
  12. </image>
  13. <text>客服</text>
  14. </view> -->
  15. </view>
  16. </view>
  17. <view class="body-box" >
  18. <view class="teamStatistics " v-if="directLsit.length>0">
  19. <view class="statisticsTitle">
  20. <view>姓名</view>
  21. <view>级别</view>
  22. <view>发展人数</view>
  23. </view>
  24. <block v-for="(item, index) in directLsit" :key="index">
  25. <view>
  26. <view class="statisticsContent ">
  27. <view>{{ item.userName }}</view>
  28. <view>{{chineseNumbers[item.level]}}级合伙人</view>
  29. <view>{{ item.deptManNum }}</view>
  30. </view>
  31. </view>
  32. </block>
  33. <!-- <o-empty v-if="directLsit.length==0" /> -->
  34. </view>
  35. <o-empty v-else />
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. option: {},
  44. supportStaffUrl: '',
  45. headerStyle: {
  46. backgroundColor: 'transparent',
  47. backgroundImage: 'url("/static/beijing (2).png")',
  48. backgroundSize: 'cover',
  49. backgroundPosition: '',
  50. boxShadow: ''
  51. // 其他样式属性...
  52. },
  53. chineseNumbers:[ '零', '一', '二', '三', '四', '五', '六', '七', '八', '九'],
  54. directLsit: []
  55. }
  56. },
  57. onLoad(e) {
  58. let partnerIds= JSON.parse(decodeURIComponent(e.key));
  59. this.queryData(partnerIds)
  60. },
  61. methods: {
  62. back() {
  63. uni.navigateBack({
  64. delta: 1, // 返回的页面数,如果是1表示返回上一页
  65. success: function() {}
  66. });
  67. },
  68. //点击跳转企业微信客服
  69. weChatService() {
  70. uni.share({
  71. provider: "weixin",
  72. openCustomerServiceChat: true,
  73. customerUrl: this.supportStaffUrl, //企业微信地址
  74. corpid: 'wwfe67d19509d43ec5', //企业id
  75. success: (res) => { },
  76. fail: (err) => { }
  77. });
  78. },
  79. async queryData(partnerIds) {
  80. let res = await this.$http.post('/APPPartner/getLevelPartnerInfo', partnerIds);
  81. if (res.code == '200') {
  82. this.directLsit = res.data
  83. }
  84. }
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .headers {
  90. position: fixed;
  91. top: 0;
  92. left: 0;
  93. width: 100%;
  94. z-index: 999999;
  95. padding-top: 40px;
  96. height: 85px;
  97. text{
  98. font-size: 18px;
  99. font-weight: bold;
  100. }
  101. }
  102. .body-box {
  103. background: #ffffff;
  104. margin: 100px 15px 15px 15px
  105. }
  106. .statistics-title {
  107. font-size: 16px;
  108. color: #333333;
  109. }
  110. .statistics-title::before {
  111. content: " ";
  112. display: inline-block;
  113. width: 4px;
  114. height: 12px;
  115. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  116. border-radius: 5px 5px 5px 5px;
  117. margin-right: 4px;
  118. margin-top: 2px;
  119. }
  120. .search-data {
  121. color: #666666;
  122. border: 1px solid #EEEEEE;
  123. .active {
  124. color: #FFFFFF;
  125. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  126. }
  127. text {
  128. padding: 5px 6px;
  129. border-left: 1px solid #EEEEEE;
  130. }
  131. text:first-child {
  132. border-left: none
  133. }
  134. }
  135. .statistics-number {
  136. margin: 10px 10px 20px 10px;
  137. background: #FBFBFB;
  138. border-radius: 4px 4px 4px 4px;
  139. text-align: center;
  140. padding: 15px 0;
  141. overflow: hidden;
  142. view {
  143. width: 33.33%;
  144. float: left;
  145. }
  146. text {
  147. display: block;
  148. }
  149. text:first-child {
  150. font-size: 25px;
  151. color: #333333;
  152. }
  153. text:last-child {
  154. font-size: 13px;
  155. color: #999999;
  156. }
  157. }
  158. .statistics-type {
  159. text-align: center;
  160. text {
  161. display: inline-block;
  162. width: 80px;
  163. height: 30px;
  164. line-height: 30px;
  165. text-align: center;
  166. font-size: 16px;
  167. color: #666666;
  168. background: #F4F4F4;
  169. }
  170. .selected {
  171. color: #FFFFFF;
  172. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  173. }
  174. // text:first-child{
  175. // color: #FFFFFF;
  176. // background: linear-gradient( 132deg, #2DD9FF 0%, #2D6DFF 100%);
  177. // }
  178. }
  179. .partner-type {
  180. margin: 10px;
  181. width: 97%;
  182. overflow: hidden;
  183. white-space: nowrap;
  184. text {
  185. display: inline-block;
  186. border-radius: 14px 14px 14px 14px;
  187. font-size: 14px;
  188. color: #666666;
  189. padding: 1px 10px;
  190. background: #F4F4F4;
  191. margin-right: 8px;
  192. }
  193. .selected {
  194. color: #FFFFFF;
  195. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  196. }
  197. }
  198. .teamStatistics {
  199. background: #FFFFFF;
  200. // box-shadow: 0px 4px 10px 0px #DAE3F4;
  201. // border-radius: 2px 2px 2px 2px;
  202. border: 1px solid #C8D8FF;
  203. }
  204. .statisticsContent {
  205. box-sizing: border-box;
  206. height: 70upx;
  207. text-align: center;
  208. line-height: 70upx;
  209. font-size: 26rpx;
  210. color: #666666;
  211. display: flex;
  212. flex-wrap: nowrap;
  213. justify-content: space-around;
  214. view {
  215. text-align: center;
  216. line-height: 70upx;
  217. width: 25%;
  218. font-size: 12px;
  219. }
  220. image {
  221. display: inline-block;
  222. width: 21px;
  223. height: 21px;
  224. vertical-align: middle;
  225. }
  226. }
  227. .statisticsTitle {
  228. display: flex;
  229. flex-wrap: nowrap;
  230. justify-content: space-around;
  231. height: 70upx;
  232. box-sizing: border-box;
  233. line-height: 70upx;
  234. font-size: 24rpx;
  235. color: #232832;
  236. background: linear-gradient(180deg, #DAE0EE 0%, #E9ECF4 100%);
  237. // border-radius: 6px 6px 0 0;
  238. view {
  239. text-align: center;
  240. line-height: 35px;
  241. color: #2D6DFF;
  242. width: 25%;
  243. font-size: 12px;
  244. }
  245. }
  246. .charts-box {
  247. width: 100%;
  248. height: 300px;
  249. }
  250. </style>