echart-info.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view class="echart-content">
  3. <view class="echart-title">
  4. <view class="e-icon e1"><text class="iconfont icon-gongsi"></text></view>
  5. <view class="e-name">{{ data.name }}</view>
  6. <view class="e-start">{{ data.status | statusFilters }}</view>
  7. </view>
  8. <view class="echart-main clearfix" @click="handleClubInfo">
  9. <view class="echart-text">
  10. <text class="label">机构ID:</text>{{ data.clubId ? data.clubId :'' }}
  11. </view>
  12. <view class="echart-text">
  13. <text class="label">联系人:</text>{{ data.linkMan ? data.linkMan :'无' }}
  14. </view>
  15. <view class="echart-text" v-if="data.customerGender">
  16. <text class="label">性别:</text>
  17. {{ data.customerGender === 0 ? '男' :'女' }}
  18. </view>
  19. <view class="echart-text" v-if="data.customerAge">
  20. <text class="label">年龄:</text>{{ data.customerAge}}
  21. </view>
  22. <view class="echart-text" v-if="data.contractMobile">
  23. <text class="label">手机号:</text>{{ data.contractMobile }}
  24. </view>
  25. <view class="echart-text" v-if="data.linkManIdentity">
  26. <text class="label">联系人身份:</text>{{ data.linkManIdentity | linkManFormat }}
  27. </view>
  28. <view class="echart-text" v-if="data.addTime">
  29. <text class="label">注册时间:</text> {{ data.addTime }}
  30. </view>
  31. <view class="echart-text" v-if="data.customerValue">
  32. <text class="label">客户价值:</text>
  33. {{ data.customerValue }}
  34. </view>
  35. <view class="echart-text" v-if="data.activeState">
  36. <text class="label">活跃状态:</text>
  37. {{ data.activeState }}
  38. </view>
  39. <view class="echart-text" v-if="data.number">
  40. <text class="label">资料完整度:</text>
  41. {{ data.number }}%
  42. </view>
  43. <view class="echart-text" v-if="data.customerSource">
  44. <text class="label">客户来源:</text>
  45. {{ data.customerSource | sourceActionsFilters }}
  46. </view>
  47. <view class="echart-text">
  48. <text class="label">机构级别:</text>
  49. {{ useInfo.userIdentity === 2 ? '资质机构' : '普通机构' }}
  50. </view>
  51. <view class="echart-text" v-if="data.firstClubType">
  52. <text class="label">机构类型:</text>
  53. {{ data.firstClubType | FirstFormat }}-{{ data.secondClubType | TwoFormat }}
  54. </view>
  55. <view class="echart-text">
  56. <text class="label">入群状态:</text>
  57. {{ data.groupAddition === 0 ? '已入群' : '未入群' }}
  58. </view>
  59. <view class="echart-text" v-if="data.wx">
  60. <text class="label">微信触达:</text>
  61. {{ data.wx}}
  62. </view>
  63. <view class="echart-text" v-if="data.mob">
  64. <text class="label">电话触达:</text>
  65. {{ data.mob }}
  66. </view>
  67. <view class="echart-text" v-if="data.provincialAddress">
  68. <text class="label">地址:</text>{{ data.provincialAddress }}
  69. </view>
  70. <view class="echart-next">详情></view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. import { mapState, mapMutations } from 'vuex'
  76. export default {
  77. props:{
  78. clubInfo:{
  79. type:Object,
  80. default:{}
  81. },
  82. clubUserInfo:{
  83. type:Object,
  84. default:{}
  85. }
  86. },
  87. data() {
  88. return {
  89. data:{},
  90. useInfo:{}
  91. }
  92. },
  93. created() {
  94. this.data = this.clubInfo
  95. this.useInfo = this.clubUserInfo
  96. },
  97. filters: {
  98. FirstFormat(value) {
  99. //处理格式
  100. const map = {
  101. 1: '医美',
  102. 2: '生美',
  103. 3: '项目公司',
  104. 4: '个人',
  105. 5: '其他'
  106. }
  107. return map[value]
  108. },
  109. TwoFormat(value) {
  110. if(!value){ return ''}
  111. const map = {
  112. 1: '诊所',
  113. 2: '门诊',
  114. 3: '医院',
  115. 4: '其他',
  116. 5: '美容院',
  117. 6: '养生馆',
  118. 7: '其他',
  119. }
  120. return map[value]
  121. },
  122. linkManFormat(value) {
  123. const map = {
  124. 1: '老板',
  125. 2: '采购',
  126. 3: '运营',
  127. 4: '其他'
  128. }
  129. return map[value]
  130. },
  131. statusFilters(value) {
  132. // 状态
  133. const map = {
  134. 1: '待审核',
  135. 90: '已上线',
  136. 92: '审核未通过'
  137. }
  138. return map[value]
  139. },
  140. sourceActionsFilters(value) {
  141. // 客户来源
  142. const map = {
  143. 0: '网站',
  144. 1: '小程序',
  145. 2: '公众号',
  146. 3: '小红书',
  147. 4: '微博',
  148. 5: '搜狐',
  149. 6: '其他'
  150. }
  151. return map[value]
  152. }
  153. },
  154. methods: {
  155. handleClubInfo(){
  156. this.$api.navigateTo(`/pages/seller/club/club-detail?userId=${this.data.userId}`)
  157. },
  158. },
  159. onShow() {}
  160. }
  161. </script>
  162. <style lang="scss">
  163. </style>