club-detail.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <view class="container club-info">
  3. <tui-skeleton
  4. v-if="skeletonShow"
  5. backgroundColor="#fafafa"
  6. borderRadius="10rpx"
  7. :isLoading="true"
  8. :loadingType="5"
  9. ></tui-skeleton>
  10. <template v-else>
  11. <view class="info-content clearfix">
  12. <view class="info-main border">
  13. <view class="info-p"
  14. >机构名称:<text>{{ clubInfo.name }}</text></view
  15. >
  16. <view class="info-p"
  17. >状态:<text
  18. class="info-h1-tag"
  19. :class="{
  20. orange: clubInfo.status == 1,
  21. grey: clubInfo.status == 90,
  22. warn: clubInfo.status == 92
  23. }"
  24. >
  25. {{ clubInfo.status | statusFilters }}
  26. </text></view
  27. >
  28. <view class="info-p"
  29. >机构级别:<text>{{ clubInfo.userIdentity === 2 ? '资质机构' : '个人机构' }}</text></view
  30. >
  31. <view class="info-p"
  32. >机构类型:<text
  33. >{{ clubInfo.firstClubType | FirstFormat }}-{{ clubInfo.secondClubType | TwoFormat }}</text
  34. ></view
  35. >
  36. <view class="info-p"
  37. >联系人:<text>{{ clubInfo.linkMan }}</text></view
  38. >
  39. <view class="info-p"
  40. >手机号:<text>{{ clubInfo.contractMobile }}</text></view
  41. >
  42. <view class="info-p"
  43. >联系人身份:<text>{{ clubInfo.linkManIdentity | linkManFormat }}</text></view
  44. >
  45. <view class="info-p"
  46. >注册时间:<text>{{ clubInfo.addTime }}</text></view
  47. >
  48. <view class="info-p"
  49. >联系地址:<text>{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text></view
  50. >
  51. <view class="info-p"
  52. v-if="clubInfo.socialCreditCode" >营业执照编号:<text>{{ clubInfo.socialCreditCode }}</text></view
  53. >
  54. <view class="info-p">营业执照:</view>
  55. <view class="info-img"><image :src="clubInfo.businessLicense" alt=""/></view>
  56. <view class="info-p" v-if="clubInfo.medicalPracticeLicense">医疗许可证:</view>
  57. <view class="info-img" v-if="clubInfo.medicalPracticeLicense"
  58. ><image :src="clubInfo.medicalPracticeLicense" alt=""
  59. /></view>
  60. </view>
  61. <view class="info-main">
  62. <view class="info-p"
  63. v-if="clubInfo.shortName">机构简称:<text>{{ clubInfo.shortName }}</text></view
  64. >
  65. <view class="info-p"
  66. v-if="clubInfo.contractEmail">邮箱:<text>{{ clubInfo.contractEmail }}</text></view
  67. >
  68. <view class="info-p" v-if="clubInfo.shopPhoto">门头照:</view>
  69. <view class="info-img" v-if="clubInfo.shopPhoto"><image :src="clubInfo.shopPhoto" alt=""/></view>
  70. <view class="info-p"
  71. >主营内容:<text>{{ clubInfo.mainProduct }}</text></view
  72. >
  73. <template v-if="clubInfo.contractPhone || clubInfo.fax || clubInfo.profile">
  74. <view class="info-p" v-if="clubInfo.contractPhone"
  75. >固定电话:<text>{{ clubInfo.contractPhone ? clubInfo.contractPhone : '无' }}</text></view
  76. >
  77. <view class="info-p" v-if="clubInfo.fax"
  78. >传真:<text>{{ clubInfo.fax ? clubInfo.fax : '无' }}</text></view
  79. >
  80. <view class="info-p" v-if="clubInfo.profile"
  81. >公司介绍:<text>{{ clubInfo.profile ? clubInfo.profile : '无' }}</text></view
  82. >
  83. </template>
  84. </view>
  85. </view>
  86. </template>
  87. </view>
  88. </template>
  89. <script>
  90. import { mapState, mapMutations } from 'vuex'
  91. import authorize from '@/common/config/authorize.js'
  92. import wxLogin from '@/common/config/wxLogin.js'
  93. export default {
  94. data() {
  95. return {
  96. skeletonShow: true,
  97. clubInfo: {},
  98. isSellerpopup: false
  99. }
  100. },
  101. onLoad(option) {
  102. wxLogin.wxLoginAuthorize()
  103. this.userClubRecordLinkage({ userId: option.userId })
  104. },
  105. filters: {
  106. FirstFormat(value) {
  107. //处理格式
  108. const map = {
  109. 1: '医美',
  110. 2: '生美',
  111. 3: '项目公司',
  112. 4: '个人',
  113. 5: '其他'
  114. }
  115. return map[value]
  116. },
  117. TwoFormat(value) {
  118. const map = {
  119. 1: '诊所',
  120. 2: '门诊',
  121. 3: '医院',
  122. 4: '其他',
  123. 5: '美容院',
  124. 6: '养生馆',
  125. 7: '其他',
  126. }
  127. return map[value]
  128. },
  129. linkManFormat(value) {
  130. const map = {
  131. 1: '老板',
  132. 2: '采购',
  133. 3: '运营',
  134. 4: '其他'
  135. }
  136. return map[value]
  137. },
  138. statusFilters(value) {
  139. // 状态
  140. const map = {
  141. 1: '待审核',
  142. 90: '已上线',
  143. 92: '审核未通过'
  144. }
  145. return map[value]
  146. }
  147. },
  148. computed: {
  149. ...mapState(['isManage'])
  150. },
  151. methods: {
  152. async userClubRecordLinkage(param) {
  153. //查询机构信息
  154. const userInfo = await this.$api.getStorage()
  155. this.UserService.OrganizationUpdateModifyInfo(param)
  156. .then(response => {
  157. this.clubInfo = response.data.club
  158. setTimeout(() => {
  159. this.skeletonShow = false
  160. }, 1000)
  161. })
  162. .catch(error => {
  163. this.isInvalid = true
  164. })
  165. }
  166. },
  167. onShow() {}
  168. }
  169. </script>
  170. <style lang="scss">
  171. page {
  172. height: auto;
  173. }
  174. .club-info {
  175. width: 100%;
  176. .info-content {
  177. width: 100%;
  178. height: auto;
  179. float: left;
  180. box-sizing: border-box;
  181. .info-main {
  182. width: 100%;
  183. height: auto;
  184. padding: 24rpx 0;
  185. margin-bottom: 24rpx;
  186. &.border{
  187. border-bottom: 30rpx solid #F5F5F5;
  188. }
  189. .info-h1 {
  190. width: 100%;
  191. box-sizing: border-box;
  192. padding: 0 24rpx;
  193. position: relative;
  194. line-height: 80rpx;
  195. font-size: 30rpx;
  196. color: #333333;
  197. &:before {
  198. content: '';
  199. width: 6rpx;
  200. height: 24rpx;
  201. background-color: #FF5B00;
  202. position: absolute;
  203. left: 0;
  204. top: 30rpx;
  205. }
  206. }
  207. .info-p {
  208. width: 100%;
  209. box-sizing: border-box;
  210. padding: 0 24rpx;
  211. position: relative;
  212. line-height: 66rpx;
  213. font-size: 30rpx;
  214. color: #999999;
  215. .info-h1-tag {
  216. display: inline-block;
  217. padding: 0 16rpx;
  218. line-height: 40rpx;
  219. background-color: #fff2d5;
  220. font-size: 24rpx;
  221. border-radius: 20rpx;
  222. color: #ffffff;
  223. text-align: center;
  224. margin-left: 16rpx;
  225. &.orange {
  226. background-color: #fff2d5;
  227. color: #e4aa43;
  228. }
  229. &.grey {
  230. background-color: #0db26d;
  231. }
  232. &.warn {
  233. background-color: #f94b4b;
  234. }
  235. }
  236. text {
  237. color: #333333;
  238. }
  239. }
  240. .info-img {
  241. width: 200rpx;
  242. height: 200rpx;
  243. image {
  244. width: 200rpx;
  245. height: 200rpx;
  246. display: block;
  247. margin-left: 24rpx;
  248. border: 1px dashed #e2e2e2;
  249. }
  250. }
  251. }
  252. }
  253. }
  254. </style>