detail.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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. @include useTheme() {
  196. background: #fff;
  197. .page-top {
  198. height: 360px;
  199. background: fetch('pc-banner-record-club');
  200. background-size: auto 360px;
  201. .logo {
  202. display: block;
  203. width: 120px;
  204. height: 120px;
  205. border-radius: 50%;
  206. background: #fff;
  207. }
  208. .name {
  209. font-size: 30px;
  210. color: #fff;
  211. }
  212. }
  213. .page-content {
  214. width: 600px;
  215. margin: 0 auto;
  216. overflow: hidden;
  217. min-height: calc(100vh - 80px - 80px - 360px);
  218. box-sizing: border-box;
  219. padding-bottom: 40px;
  220. .page-title {
  221. font-size: 24px;
  222. font-weight: bold;
  223. text-align: center;
  224. padding: 40px 0;
  225. }
  226. .row {
  227. display: flex;
  228. justify-content: flex-start;
  229. align-items: flex-start;
  230. font-size: 18px;
  231. margin: 24px 0;
  232. .status {
  233. .success {
  234. color: #f3920d !important;
  235. }
  236. .warning {
  237. color: #1890ff !important;
  238. }
  239. .danger {
  240. color: #f94b4b !important;
  241. }
  242. }
  243. .col {
  244. &:first-child {
  245. white-space: nowrap;
  246. width: 170px;
  247. color: #666;
  248. text-align: right;
  249. flex-shrink: 0;
  250. }
  251. &:last-child {
  252. color: #282828;
  253. }
  254. }
  255. .el-image {
  256. width: 120px;
  257. height: 120px;
  258. margin-right: 12px;
  259. }
  260. }
  261. .control {
  262. margin-top: 62px;
  263. .button {
  264. width: 295px;
  265. height: 50px;
  266. cursor: pointer;
  267. &.edit {
  268. border: 1px solid fetch('color');
  269. color: fetch('color');
  270. }
  271. &.search {
  272. background-color: fetch('color');
  273. color: #fff;
  274. }
  275. }
  276. }
  277. }
  278. }
  279. }
  280. }
  281. @media screen and (max-width: 768px) {
  282. .page {
  283. @include useTheme() {
  284. background: #fff;
  285. .page-top {
  286. height: 46vw;
  287. background: fetch('h5-banner-record-club');
  288. background-size: auto 46vw;
  289. .logo {
  290. display: block;
  291. width: 14.8vw;
  292. height: 14.8vw;
  293. border-radius: 50%;
  294. background: #fff;
  295. }
  296. .name {
  297. font-size: 4vw;
  298. color: #fff;
  299. }
  300. }
  301. .page-content {
  302. box-sizing: border-box;
  303. padding: 8vw 7.2vw;
  304. .page-title {
  305. font-size: 4.2vw;
  306. font-weight: bold;
  307. text-align: center;
  308. margin-bottom: 8vw;
  309. color: #282828;
  310. }
  311. .row {
  312. display: flex;
  313. justify-content: flex-start;
  314. align-items: flex-start;
  315. font-size: 3.4vw;
  316. margin-bottom: 5.6vw;
  317. flex-wrap: wrap;
  318. .status {
  319. .success {
  320. color: #f3920d !important;
  321. }
  322. .warning {
  323. color: #1890ff !important;
  324. }
  325. .danger {
  326. color: #f94b4b !important;
  327. }
  328. }
  329. .col {
  330. &:first-child {
  331. width: 17vw;
  332. color: #666;
  333. // text-align: right;
  334. &.max-width {
  335. width: 100% !important;
  336. margin-bottom: 2.6vw;
  337. }
  338. }
  339. &:last-child {
  340. color: #282828;
  341. }
  342. }
  343. .el-image {
  344. width: 25.6vw;
  345. height: 25.6vw;
  346. }
  347. }
  348. .control {
  349. margin-top: 22.8vw;
  350. .button {
  351. width: 100%;
  352. height: 12vw;
  353. cursor: pointer;
  354. &.edit {
  355. border: 1px solid fetch('color');
  356. color: fetch('color');
  357. }
  358. &.search {
  359. background-color: fetch('color');
  360. color: #fff;
  361. }
  362. }
  363. }
  364. }
  365. }
  366. }
  367. }
  368. </style>