club-info.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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-header clearfix" v-if="clubInfo.describe">
  12. <view class="pp"
  13. >描述:<text>{{ clubInfo.describe }}</text></view
  14. >
  15. </view>
  16. <view class="info-content clearfix">
  17. <view class="info-title">
  18. <view class="info-title-left">
  19. <view
  20. >机构资料:<text>{{ clubInfo.userIdentity === 2 ? '资质机构' : '普通机构' }}</text></view
  21. >
  22. </view>
  23. <view class="info-title-right">
  24. <view v-if="clubInfo.spType === 0">待分配销售</view>
  25. <view v-else>已分配销售:{{ saleName }}</view>
  26. </view>
  27. </view>
  28. <view class="info-main">
  29. <view class="info-h1">注册信息</view>
  30. <view class="info-p"
  31. >联系人:<text>{{ clubInfo.linkMan }}</text></view
  32. >
  33. <view class="info-p"
  34. >手机号:<text>{{ clubInfo.contractMobile }}</text></view
  35. >
  36. </view>
  37. <view class="info-main" v-if="clubInfo.userIdentity === 2">
  38. <view class="info-h1">升级信息</view>
  39. <view class="info-p"
  40. >机构名称:<text>{{ clubInfo.name }}</text></view
  41. >
  42. <view class="info-p"
  43. >机构简称:<text>{{ clubInfo.shortName }}</text></view
  44. >
  45. <view class="info-p"
  46. >邮箱:<text>{{ clubInfo.contractEmail }}</text></view
  47. >
  48. <view class="info-p"
  49. >联系地址:<text>{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text></view
  50. >
  51. <view class="info-p"
  52. >营业执照编号:<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">门头照:</view>
  57. <view class="info-img"><image :src="clubInfo.shopPhoto" alt=""/></view>
  58. <view class="info-p"
  59. >机构类型:<text>{{ clubInfo.firstClubType | FirstFormat }}</text></view
  60. >
  61. <view class="info-p">医疗许可证:</view>
  62. <view class="info-img"><image :src="clubInfo.medicalPracticeLicense" alt=""/></view>
  63. <view class="info-p"
  64. >科室:<text>{{ clubInfo.secondClubType | TwoFormat }}</text></view
  65. >
  66. <view class="info-p"
  67. >主营内容:<text>{{ clubInfo.mainProduct }}</text></view
  68. >
  69. </view>
  70. <view class="info-main">
  71. <view class="info-h1">其他信息</view>
  72. <view class="info-p" v-if="clubInfo.contractPhone"
  73. >固定电话:<text>{{ clubInfo.contractPhone }}</text></view
  74. >
  75. <view class="info-p" v-if="clubInfo.fax"
  76. >传真:<text>{{ clubInfo.fax }}</text></view
  77. >
  78. <view class="info-p" v-if="clubInfo.profile"
  79. >公司介绍:<text>{{ clubInfo.profile }}</text></view
  80. >
  81. </view>
  82. </view>
  83. </template>
  84. </view>
  85. </template>
  86. <script>
  87. import { mapState, mapMutations } from 'vuex'
  88. export default {
  89. data() {
  90. return {
  91. skeletonShow: true,
  92. clubId: 0,
  93. saleName: '',
  94. clubInfo:{}
  95. }
  96. },
  97. filters: {},
  98. onLoad(option) {
  99. this.clubId = option.clubId
  100. this.userClubRecordLinkage(this.clubId)
  101. },
  102. filters: {
  103. FirstFormat: function(type) {
  104. //处理金额
  105. let name = ''
  106. switch (type) {
  107. case 1:
  108. name = '医美'
  109. break
  110. case 2:
  111. name = '生美'
  112. break
  113. case 3:
  114. name = '项目公司'
  115. break
  116. case 4:
  117. name = '个人'
  118. break
  119. case 5:
  120. name = '其他'
  121. break
  122. }
  123. return name
  124. },
  125. TwoFormat: function(type) {
  126. //处理金额
  127. let text = ''
  128. switch (type) {
  129. case 1:
  130. text = '诊所'
  131. break
  132. case 2:
  133. text = '门诊'
  134. break
  135. case 3:
  136. text = '医院'
  137. break
  138. }
  139. return text
  140. }
  141. },
  142. methods: {
  143. userClubRecordLinkage() {
  144. //查询机构信息
  145. console.log('=========<查询机构信息>===========')
  146. this.SellerService.userClubRecordLinkage({ clubId: this.clubId })
  147. .then(response => {
  148. this.clubInfo = response.data.club
  149. this.saleName = response.data.saleName
  150. setTimeout(() => {
  151. this.skeletonShow = false
  152. }, 1000)
  153. })
  154. .catch(error => {
  155. this.isInvalid = true
  156. })
  157. }
  158. },
  159. onShow() {}
  160. }
  161. </script>
  162. <style lang="scss">
  163. page {
  164. height: auto;
  165. }
  166. .club-info {
  167. width: 100%;
  168. .info-header {
  169. width: 100%;
  170. height: auto;
  171. padding: 24rpx;
  172. float: left;
  173. box-sizing: border-box;
  174. background-color: #ffffff;
  175. .pp {
  176. width: 100%;
  177. font-size: 26rpx;
  178. line-height: 44rpx;
  179. font-weight: bold;
  180. color: #333333;
  181. text {
  182. font-size: 26rpx;
  183. color: #666666;
  184. font-weight: normal;
  185. line-height: 66rpx;
  186. }
  187. }
  188. }
  189. .info-content {
  190. width: 100%;
  191. height: auto;
  192. float: left;
  193. box-sizing: border-box;
  194. padding: 0 24rpx;
  195. background-color: #ffffff;
  196. .info-title {
  197. width: 100%;
  198. height: 68rpx;
  199. border-bottom: 1px solid #f0f0f0;
  200. .info-title-left {
  201. width: 50%;
  202. height: 68rpx;
  203. font-size: 30rpx;
  204. font-weight: bold;
  205. color: #333333;
  206. float: left;
  207. line-height: 68rpx;
  208. text {
  209. display: inline-block;
  210. padding: 0 16rpx;
  211. line-height: 40rpx;
  212. background-color: #fff2d5;
  213. font-size: 24rpx;
  214. border-radius: 20rpx;
  215. color: #e4aa43;
  216. text-align: center;
  217. margin-left: 16rpx;
  218. font-weight: normal;
  219. }
  220. }
  221. .info-title-right {
  222. width: 50%;
  223. height: 68rpx;
  224. float: right;
  225. line-height: 68rpx;
  226. font-size: 24rpx;
  227. color: #999999;
  228. text-align: right;
  229. }
  230. }
  231. .info-main {
  232. width: 100%;
  233. height: auto;
  234. .info-h1 {
  235. width: 100%;
  236. box-sizing: border-box;
  237. padding: 0 24rpx;
  238. position: relative;
  239. line-height: 80rpx;
  240. font-size: 30rpx;
  241. color: #333333;
  242. &:before {
  243. content: '';
  244. width: 6rpx;
  245. height: 24rpx;
  246. background-color: #e15616;
  247. position: absolute;
  248. left: 0;
  249. top: 22rpx;
  250. }
  251. }
  252. .info-p {
  253. width: 100%;
  254. box-sizing: border-box;
  255. padding: 0 24rpx;
  256. position: relative;
  257. line-height: 66rpx;
  258. font-size: 30rpx;
  259. color: #999999;
  260. text {
  261. color: #333333;
  262. }
  263. }
  264. .info-img {
  265. width: 200rpx;
  266. height: 200rpx;
  267. image {
  268. width: 200rpx;
  269. height: 200rpx;
  270. display: block;
  271. margin-left: 24rpx;
  272. border: 1px dashed #e2e2e2;
  273. }
  274. }
  275. }
  276. }
  277. }
  278. </style>