echart-info.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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">采美信息技术有限公司</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">联系人:</text>{{ data.linkMan }}
  11. </view>
  12. <view class="echart-text">
  13. <text class="label">手机号:</text>{{ data.contractMobile }}
  14. </view>
  15. <view class="echart-text" v-if="data.linkManIdentity">
  16. <text class="label">联系人身份:</text>{{ data.linkManIdentity | linkManFormat }}
  17. </view>
  18. <view class="echart-text" v-if="data.firstClubType">
  19. <text class="label">机构类型:</text>{{ data.firstClubType | FirstFormat }}-{{ data.secondClubType | TwoFormat }}
  20. </view>
  21. <view class="echart-text" v-if="data.provincialAddress">
  22. <text class="label">地址:</text>{{ data.provincialAddress }}
  23. </view>
  24. <view class="echart-text">
  25. <text class="label">注册时间:</text> {{ data.addTime }}
  26. </view>
  27. <view class="echart-next">详情></view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import { mapState, mapMutations } from 'vuex'
  33. export default {
  34. props:{
  35. clubInfo:{
  36. type:Object,
  37. default:{}
  38. }
  39. },
  40. data() {
  41. return {
  42. data:{}
  43. }
  44. },
  45. created() {
  46. this.data = this.clubInfo
  47. },
  48. filters: {
  49. FirstFormat(value) {
  50. //处理格式
  51. const map = {
  52. 1: '医美',
  53. 2: '生美',
  54. 3: '项目公司',
  55. 4: '个人',
  56. 5: '其他'
  57. }
  58. return map[value]
  59. },
  60. TwoFormat(value) {
  61. if(!value){ return ''}
  62. const map = {
  63. 1: '诊所',
  64. 2: '门诊',
  65. 3: '医院',
  66. 4: '其他',
  67. 5: '美容院',
  68. 6: '养生馆',
  69. 7: '其他',
  70. }
  71. return map[value]
  72. },
  73. linkManFormat(value) {
  74. const map = {
  75. 1: '老板',
  76. 2: '采购',
  77. 3: '运营',
  78. 4: '其他'
  79. }
  80. return map[value]
  81. },
  82. statusFilters(value) {
  83. // 状态
  84. const map = {
  85. 1: '待审核',
  86. 90: '已上线',
  87. 92: '审核未通过'
  88. }
  89. return map[value]
  90. }
  91. },
  92. methods: {
  93. handleClubInfo(){
  94. this.$api.navigateTo(`/pages/seller/club/club-detail?userId=${this.data.userId}`)
  95. },
  96. },
  97. onShow() {}
  98. }
  99. </script>
  100. <style lang="scss">
  101. </style>