echart-info.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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-text" v-if="data.firstTime">
  71. <text class="label">首次咨询时间:</text> {{ data.firstTime }}
  72. </view>
  73. <view class="echart-text" v-if="data.recentlyTime">
  74. <text class="label">最近咨询时间:</text> {{ data.recentlyTime }}
  75. </view>
  76. <view class="echart-next">详情></view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. import { mapState, mapMutations } from 'vuex'
  82. export default {
  83. props:{
  84. clubInfo:{
  85. type:Object,
  86. default:{}
  87. },
  88. clubUserInfo:{
  89. type:Object,
  90. default:{}
  91. }
  92. },
  93. data() {
  94. return {
  95. data:{},
  96. useInfo:{}
  97. }
  98. },
  99. created() {
  100. this.data = this.clubInfo
  101. this.useInfo = this.clubUserInfo
  102. },
  103. filters: {
  104. FirstFormat(value) {
  105. //处理格式
  106. const map = {
  107. 1: '医美',
  108. 2: '生美',
  109. 3: '项目公司',
  110. 4: '个人',
  111. 5: '其他'
  112. }
  113. return map[value]
  114. },
  115. TwoFormat(value) {
  116. if(!value){ return ''}
  117. const map = {
  118. 1: '诊所',
  119. 2: '门诊',
  120. 3: '医院',
  121. 4: '其他',
  122. 5: '美容院',
  123. 6: '养生馆',
  124. 7: '其他',
  125. }
  126. return map[value]
  127. },
  128. linkManFormat(value) {
  129. const map = {
  130. 1: '老板',
  131. 2: '采购',
  132. 3: '运营',
  133. 4: '其他'
  134. }
  135. return map[value]
  136. },
  137. statusFilters(value) {
  138. // 状态
  139. const map = {
  140. 1: '待审核',
  141. 90: '已上线',
  142. 92: '审核未通过'
  143. }
  144. return map[value]
  145. },
  146. sourceActionsFilters(value) {
  147. // 客户来源
  148. const map = {
  149. 0: '网站',
  150. 1: '小程序',
  151. 2: '公众号',
  152. 3: '小红书',
  153. 4: '微博',
  154. 5: '搜狐',
  155. 6: '其他'
  156. }
  157. return map[value]
  158. }
  159. },
  160. methods: {
  161. handleClubInfo(){
  162. this.$api.navigateTo(`/pages/seller/club/club-detail?userId=${this.data.userId}`)
  163. },
  164. },
  165. onShow() {}
  166. }
  167. </script>
  168. <style lang="scss">
  169. </style>