detail.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <template>
  2. <div class="page">
  3. <div class="page-top flex flex-col justify-center items-center">
  4. <!-- <img class="logo" :src="supplierInfo.logo" /> -->
  5. <!-- <div class="name mt-2" v-text="supplierInfo.shopName + '认证记录'"></div> -->
  6. <div class="name mt-2">认证记录</div>
  7. </div>
  8. <div class="page-content">
  9. <template v-if="clubInfo">
  10. <div class="page-title">机构认证</div>
  11. <div class="row">
  12. <div class="col">机构名称:</div>
  13. <div class="col">{{ clubInfo.authParty }}</div>
  14. </div>
  15. <div class="row">
  16. <div class="col">联系电话:</div>
  17. <div class="col">{{ clubInfo.mobile }}</div>
  18. </div>
  19. <div class="row">
  20. <div class="col">运营联系人:</div>
  21. <div class="col">{{ clubInfo.linkMan }}</div>
  22. </div>
  23. <div class="row">
  24. <div class="col">运营联系人手机号:</div>
  25. <div class="col">{{ clubInfo.linkMobile }}</div>
  26. </div>
  27. <div class="row">
  28. <div class="col">所在地区:</div>
  29. <div class="col">{{ clubInfo.area }}</div>
  30. </div>
  31. <div class="row">
  32. <div class="col">所在位置:</div>
  33. <div class="col">{{ clubInfo.address }}</div>
  34. </div>
  35. <div class="row">
  36. <div class="col max-width">logo:</div>
  37. <div class="col">
  38. <el-image
  39. v-if="clubInfo.logo"
  40. :src="clubInfo.logo"
  41. :preview-src-list="[clubInfo.logo]"
  42. >
  43. </el-image>
  44. <span v-else>暂无图片</span>
  45. </div>
  46. </div>
  47. <div class="row">
  48. <div class="col max-width">门头照:</div>
  49. <div class="col">
  50. <template
  51. v-if="clubInfo.bannerList && clubInfo.bannerList.length > 0"
  52. >
  53. <template v-for="(image, index) in clubInfo.bannerList">
  54. <el-image
  55. :key="index"
  56. :src="image"
  57. :preview-src-list="clubInfo.bannerList"
  58. />
  59. </template>
  60. </template>
  61. <span v-else>暂无图片</span>
  62. </div>
  63. </div>
  64. <div class="row">
  65. <div class="col">机构类型:</div>
  66. <div class="col">
  67. {{
  68. ['医美', '生美', '项目公司', '个人', '其他'][
  69. clubInfo.firstClubType - 1
  70. ]
  71. }}
  72. </div>
  73. </div>
  74. <div
  75. class="row"
  76. v-if="clubInfo.firstClubType === 1 || clubInfo.firstClubType === 2"
  77. >
  78. <div class="col">医美类型:</div>
  79. <div class="col">
  80. {{
  81. ['诊所', '门诊', '医院', '其他', '美容院', '养生馆', '其他'][
  82. clubInfo.secondClubType - 1
  83. ]
  84. }}
  85. </div>
  86. </div>
  87. <div class="row" v-if="clubInfo.firstClubType === 1">
  88. <div class="col max-width">医疗许可证:</div>
  89. <div class="col">
  90. <el-image
  91. v-if="clubInfo.medicalLicenseImage"
  92. :src="clubInfo.medicalLicenseImage"
  93. :preview-src-list="[clubInfo.medicalLicenseImage]"
  94. />
  95. <span v-else>暂无图片</span>
  96. </div>
  97. </div>
  98. <div class="row">
  99. <div class="col">员工人数:</div>
  100. <div class="col">{{ clubInfo.empNum }}</div>
  101. </div>
  102. <div class="row">
  103. <div class="col">状态:</div>
  104. <div class="col">
  105. <div class="status">
  106. <span class="success" v-if="clubInfo.auditStatus === 1"
  107. >认证成功</span
  108. >
  109. <span class="warning" v-else-if="clubInfo.auditStatus === 2"
  110. >认证中</span
  111. >
  112. <span class="danger" v-else>认证失败</span>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="row" v-if="clubInfo.auditStatus === 0">
  117. <div class="col">原因:</div>
  118. <div class="col">
  119. {{ clubInfo.invalidReason ? clubInfo.invalidReason : '暂无' }}
  120. </div>
  121. </div>
  122. <div class="control flex flex-col items-center">
  123. <div
  124. class="button edit flex justify-center items-center mb-2"
  125. @click="onEdit"
  126. v-if="clubInfo.auditStatus === 0"
  127. >
  128. 编辑
  129. </div>
  130. <div
  131. class="button search flex justify-center items-center"
  132. @click="onToDeviceList"
  133. >
  134. 查看认证设备
  135. </div>
  136. </div>
  137. </template>
  138. <template v-else>
  139. <SimpleEmpty name="icon-empty-club.png" description="暂无机构认证~" />
  140. </template>
  141. </div>
  142. </div>
  143. </template>
  144. <script>
  145. import SimpleEmpty from '@/components/SimpleEmpty'
  146. import { mapGetters } from 'vuex'
  147. export default {
  148. layout: 'app-ross',
  149. components: {
  150. SimpleEmpty,
  151. },
  152. data() {
  153. return {
  154. clubInfo: null,
  155. authId: '',
  156. }
  157. },
  158. computed: {
  159. ...mapGetters(['supplierInfo', 'routePrefix', 'clubUserId', 'userInfo']),
  160. },
  161. created() {
  162. this.fetchAuthDetail()
  163. },
  164. methods: {
  165. // 获取认证机构信息
  166. async fetchAuthDetail() {
  167. try {
  168. const result = await this.$http.api.fetchClubAuthInfo({
  169. clubUserId: this.clubUserId,
  170. })
  171. if (!result.data.auth) return
  172. this.authId = result.data.auth.authId
  173. const res = await this.$http.api.fetchClubAuthInfoData({
  174. authId: result.data.auth.authId,
  175. })
  176. this.clubInfo = res.data
  177. } catch (error) {
  178. console.log(error)
  179. }
  180. },
  181. onToDeviceList() {
  182. this.$router.push(
  183. `${this.routePrefix}/record/device?authId=${this.authId}`
  184. )
  185. },
  186. onEdit() {
  187. this.$router.push(`${this.routePrefix}/record/club/edit`)
  188. },
  189. },
  190. }
  191. </script>
  192. <style lang="scss" scoped>
  193. @media screen and (min-width: 768px) {
  194. .page {
  195. background: #fff;
  196. }
  197. .page-top {
  198. height: 360px;
  199. @include themify($themes) {
  200. background: themed('pc-banner-record-club');
  201. background-size: auto 360px;
  202. }
  203. .logo {
  204. display: block;
  205. width: 120px;
  206. height: 120px;
  207. border-radius: 50%;
  208. background: #fff;
  209. }
  210. .name {
  211. font-size: 30px;
  212. color: #fff;
  213. }
  214. }
  215. .page-content {
  216. width: 600px;
  217. margin: 0 auto;
  218. overflow: hidden;
  219. min-height: calc(100vh - 80px - 80px - 360px);
  220. box-sizing: border-box;
  221. padding-bottom: 40px;
  222. .page-title {
  223. font-size: 24px;
  224. font-weight: bold;
  225. text-align: center;
  226. padding: 40px 0;
  227. }
  228. .row {
  229. display: flex;
  230. justify-content: flex-start;
  231. align-items: flex-start;
  232. font-size: 18px;
  233. margin: 24px 0;
  234. .status {
  235. .success {
  236. color: #f3920d !important;
  237. }
  238. .warning {
  239. color: #1890ff !important;
  240. }
  241. .danger {
  242. color: #f94b4b !important;
  243. }
  244. }
  245. .col {
  246. &:first-child {
  247. white-space: nowrap;
  248. width: 170px;
  249. color: #666;
  250. text-align: right;
  251. flex-shrink: 0;
  252. }
  253. &:last-child {
  254. color: #282828;
  255. }
  256. }
  257. .el-image {
  258. width: 120px;
  259. height: 120px;
  260. margin-right: 12px;
  261. }
  262. }
  263. .control {
  264. margin-top: 62px;
  265. .button {
  266. width: 295px;
  267. height: 50px;
  268. cursor: pointer;
  269. &.edit {
  270. @include themify($themes) {
  271. border: 1px solid themed('color');
  272. color: themed('color');
  273. }
  274. }
  275. &.search {
  276. @include themify($themes) {
  277. background-color: themed('color');
  278. color: #fff;
  279. }
  280. }
  281. }
  282. }
  283. }
  284. }
  285. @media screen and (max-width: 768px) {
  286. .page {
  287. background: #fff;
  288. }
  289. .page-top {
  290. height: 46vw;
  291. @include themify($themes) {
  292. background: themed('h5-banner-record-club');
  293. background-size: auto 46vw;
  294. }
  295. .logo {
  296. display: block;
  297. width: 14.8vw;
  298. height: 14.8vw;
  299. border-radius: 50%;
  300. background: #fff;
  301. }
  302. .name {
  303. font-size: 4vw;
  304. color: #fff;
  305. }
  306. }
  307. .page-content {
  308. box-sizing: border-box;
  309. padding: 8vw 7.2vw;
  310. .page-title {
  311. font-size: 4.2vw;
  312. font-weight: bold;
  313. text-align: center;
  314. margin-bottom: 8vw;
  315. color: #282828;
  316. }
  317. .row {
  318. display: flex;
  319. justify-content: flex-start;
  320. align-items: flex-start;
  321. font-size: 3.4vw;
  322. margin-bottom: 5.6vw;
  323. flex-wrap: wrap;
  324. .status {
  325. .success {
  326. color: #f3920d !important;
  327. }
  328. .warning {
  329. color: #1890ff !important;
  330. }
  331. .danger {
  332. color: #f94b4b !important;
  333. }
  334. }
  335. .col {
  336. &:first-child {
  337. width: 17vw;
  338. color: #666;
  339. // text-align: right;
  340. &.max-width {
  341. width: 100% !important;
  342. margin-bottom: 2.6vw;
  343. }
  344. }
  345. &:last-child {
  346. color: #282828;
  347. }
  348. }
  349. .el-image {
  350. width: 25.6vw;
  351. height: 25.6vw;
  352. }
  353. }
  354. .control {
  355. margin-top: 22.8vw;
  356. .button {
  357. width: 100%;
  358. height: 12vw;
  359. cursor: pointer;
  360. &.edit {
  361. @include themify($themes) {
  362. border: 1px solid themed('color');
  363. color: themed('color');
  364. }
  365. }
  366. &.search {
  367. @include themify($themes) {
  368. background-color: themed('color');
  369. color: #fff;
  370. }
  371. }
  372. }
  373. }
  374. }
  375. }
  376. </style>