index-legacy.e70a45e3.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. !(function () {
  2. function e(e, t, n, i, r, o, a) {
  3. try {
  4. var s = e[o](a),
  5. c = s.value
  6. } catch (l) {
  7. return void n(l)
  8. }
  9. s.done ? t(c) : Promise.resolve(c).then(i, r)
  10. }
  11. function t(t) {
  12. return function () {
  13. var n = this,
  14. i = arguments
  15. return new Promise(function (r, o) {
  16. var a = t.apply(n, i)
  17. function s(t) {
  18. e(a, r, o, s, c, 'next', t)
  19. }
  20. function c(t) {
  21. e(a, r, o, s, c, 'throw', t)
  22. }
  23. s(void 0)
  24. })
  25. }
  26. }
  27. var n = document.createElement('style')
  28. ;(n.innerHTML =
  29. '._itemWrap_1vqpc_1{background-color:#fff;margin-bottom:.32rem;border-radius:.26667rem}._itemWrap_1vqpc_1 ._topWrap_1vqpc_6{padding:.4rem .34667rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1vqpc_1:nth-last-child(1) ._itemRight_1vqpc_14{border-bottom:none!important}._itemWrap_1vqpc_1 ._itemLeft_1vqpc_17{display:flex;flex-direction:row;align-items:center}._itemWrap_1vqpc_1 ._itemLeft_1vqpc_17 ._headerWrap_1vqpc_22{width:1.06667rem;height:1.06667rem;border-radius:50%;margin-right:.26667rem;overflow:hidden}._itemWrap_1vqpc_1 ._itemLeft_1vqpc_17 ._headerWrap_1vqpc_22 img{width:100%;height:100%}._itemWrap_1vqpc_1 ._itemRight_1vqpc_14{height:1.28rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-right:.34667rem;width:8.05333rem}._itemWrap_1vqpc_1 ._itemRight_1vqpc_14 ._infoWrap_1vqpc_42 p{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_1vqpc_1 ._itemRight_1vqpc_14 ._msgIcon_1vqpc_48{width:.64rem;height:.64rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52{display:flex;flex-direction:row;align-items:top;padding:.4rem .32rem;font-size:.37333rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52 p{width:1.28rem;padding-top:.05333rem;margin-bottom:.16rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52 ._statusTagWrap_1vqpc_68{width:7.06667rem;display:flex;flex-direction:row;align-items:top;flex-wrap:wrap;margin-top:.02667rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52 ._statusTagWrap_1vqpc_68 ._statusTag_1vqpc_68{font-size:.32rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;line-height:.50667rem;padding:.02667rem .21333rem;margin-right:.16rem;margin-bottom:.16rem;background:#ffe7da;border-radius:.10667rem}\n'),
  30. document.head.appendChild(n),
  31. System.register(
  32. [
  33. './index-legacy.57c73898.js',
  34. './index-legacy.b30008f0.js',
  35. './logo-legacy.56c05c44.js',
  36. './default-icon-legacy.59172ab1.js',
  37. './msg-icon-legacy.53a0c92f.js',
  38. './index-legacy.ec5d708a.js',
  39. './icon-call-message-legacy.418e09d8.js',
  40. './index-legacy.f56477a8.js',
  41. './index-legacy.3427fdb7.js'
  42. ],
  43. function (e) {
  44. 'use strict'
  45. var n, i, r, o, a, s, c, l, p, u, m, d, f, g, _, v, h, A, w, q, W, b, y, x, T, M, C
  46. return {
  47. setters: [
  48. function (e) {
  49. ;(n = e.d),
  50. (i = e.ag),
  51. (r = e.c),
  52. (o = e.q),
  53. (a = e.F),
  54. (s = e.r),
  55. (c = e.$),
  56. (l = e.aZ),
  57. (p = e.aj),
  58. (u = e.a5),
  59. (m = e.ak),
  60. (d = e.P),
  61. (f = e.e),
  62. (g = e.g),
  63. (_ = e.m),
  64. (v = e.o)
  65. },
  66. function (e) {
  67. h = e.O
  68. },
  69. function (e) {
  70. ;(A = e.s), (w = e.l)
  71. },
  72. function (e) {
  73. q = e.d
  74. },
  75. function (e) {
  76. W = e.m
  77. },
  78. function (e) {
  79. b = e.g
  80. },
  81. function (e) {
  82. ;(y = e.i), (x = e.a)
  83. },
  84. function (e) {
  85. ;(T = e.G), (M = e.a)
  86. },
  87. function (e) {
  88. C = e.I
  89. }
  90. ],
  91. execute: function () {
  92. var R = '_itemWrap_1vqpc_1',
  93. E = '_topWrap_1vqpc_6',
  94. U = '_itemRight_1vqpc_14',
  95. k = '_itemLeft_1vqpc_17',
  96. j = '_headerWrap_1vqpc_22',
  97. B = '_infoWrap_1vqpc_42',
  98. F = '_msgIcon_1vqpc_48',
  99. I = '_bottomWrap_1vqpc_52',
  100. N = '_statusTagWrap_1vqpc_68',
  101. Q = '_statusTag_1vqpc_68',
  102. L = n({
  103. props: ['item'],
  104. emits: ['toMsg'],
  105. name: 'teacher-item',
  106. setup: function (e, t) {
  107. var n = t.emit
  108. return (
  109. i(),
  110. function () {
  111. return r(a, null, [
  112. r(
  113. 'div',
  114. {
  115. class: R,
  116. onClick: function () {
  117. n('toMsg', e.item)
  118. }
  119. },
  120. [
  121. r('div', { class: E }, [
  122. r('div', { class: k }, [
  123. r('div', { class: j }, [
  124. r(
  125. 'img',
  126. { src: e.item.avatar ? e.item.avatar : q, alt: '' },
  127. null
  128. )
  129. ])
  130. ]),
  131. r('div', { class: U }, [
  132. r('div', { class: B }, [r('p', null, [e.item.nickname])]),
  133. r('img', { class: F, src: W, alt: '' }, null)
  134. ])
  135. ]),
  136. r('div', null, [
  137. r('div', { class: I }, [
  138. r('p', null, [o('声部:')]),
  139. r('div', { class: N }, [
  140. e.item.subjectName.split(',').map(function (e) {
  141. return r('div', { class: Q }, [e || '暂无声部'])
  142. })
  143. ])
  144. ])
  145. ])
  146. ]
  147. )
  148. ])
  149. }
  150. )
  151. }
  152. })
  153. e(
  154. 'default',
  155. n({
  156. name: 'school-detail',
  157. setup: function () {
  158. var e = i(),
  159. n = s({
  160. list: [],
  161. info: {},
  162. heightV: 0,
  163. scrollTop: 0,
  164. showMessage: !1,
  165. selectItem: {}
  166. }),
  167. q = (function () {
  168. var e = t(
  169. regeneratorRuntime.mark(function e() {
  170. var t, i, r
  171. return regeneratorRuntime.wrap(
  172. function (e) {
  173. for (;;)
  174. switch ((e.prev = e.next)) {
  175. case 0:
  176. return (
  177. (t = (g.user.data.schoolInfos || [])
  178. .map(function (e) {
  179. return e.id
  180. })
  181. .join(',')),
  182. (e.prev = 1),
  183. (e.next = 4),
  184. _.get('/api-school/school/detail/'.concat(t), {})
  185. )
  186. case 4:
  187. ;(i = e.sent), (r = i.data), (n.info = r), (e.next = 12)
  188. break
  189. case 9:
  190. ;(e.prev = 9), (e.t0 = e.catch(1)), v(e.t0.message)
  191. case 12:
  192. case 'end':
  193. return e.stop()
  194. }
  195. },
  196. e,
  197. null,
  198. [[1, 9]]
  199. )
  200. })
  201. )
  202. return function () {
  203. return e.apply(this, arguments)
  204. }
  205. })(),
  206. W = function () {
  207. e.push({ path: '/school-eidt', query: { page: 'type' } })
  208. },
  209. R = (function () {
  210. var e = t(
  211. regeneratorRuntime.mark(function e() {
  212. var t, i
  213. return regeneratorRuntime.wrap(
  214. function (e) {
  215. for (;;)
  216. switch ((e.prev = e.next)) {
  217. case 0:
  218. return (
  219. (e.prev = 0),
  220. (e.next = 3),
  221. _.post('/api-school/teacher/page', {
  222. data: { page: 1, rows: 9999, delFlag: !1 }
  223. })
  224. )
  225. case 3:
  226. ;(t = e.sent), (i = t.data), (n.list = i.rows), (e.next = 11)
  227. break
  228. case 8:
  229. ;(e.prev = 8), (e.t0 = e.catch(0)), v(e.t0.message)
  230. case 11:
  231. case 'end':
  232. return e.stop()
  233. }
  234. },
  235. e,
  236. null,
  237. [[0, 8]]
  238. )
  239. })
  240. )
  241. return function () {
  242. return e.apply(this, arguments)
  243. }
  244. })()
  245. c(function () {
  246. window.addEventListener('scroll', U), q(), R()
  247. }),
  248. l(function () {
  249. window.removeEventListener('scroll', U)
  250. })
  251. var E = function (e) {
  252. n.heightV = e
  253. },
  254. U = function () {
  255. var e =
  256. window.pageYOffset ||
  257. document.documentElement.scrollTop ||
  258. document.body.scrollTop ||
  259. 0
  260. n.scrollTop = e
  261. }
  262. return function () {
  263. return r(a, null, [
  264. r('div', { class: A.schoolWrap }, [
  265. r(
  266. h,
  267. { onGetHeight: E },
  268. {
  269. default: function () {
  270. return [
  271. r(
  272. p,
  273. {
  274. border: !1,
  275. background: n.heightV > n.scrollTop ? 'transparent' : '#fff'
  276. },
  277. {
  278. right: function () {
  279. return r(
  280. u,
  281. {
  282. style: { fontSize: '24px' },
  283. name: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA+JJREFUaEPtmU9oFFccx7+/mbUhVl3aiwjaXvYiOQQyY6iiFwWpf1qkkt1EvUmTeCzEUiO6b4UqVMWjRntU426oiNg/CHpoRTE7L5BDKBQ96BbES6WJJlSz85OxWTM7zmzerMnuRPOOM29mvp/f3zfvEeb5oHmuH+82QEtLy2oiOgpgI4BlNfbWKICbzNw7NDT0Z9C3Az3Q3NzcFIvFbtdBuFfr6OTk5Lrh4eERP4hAAMMwrgHYVmOrB33uZynl9rAATwF8GBGAZ1LKJWEB2P2AlLKmCW8YhtL3K4WQ0gvmykMLAKoWWPBAgAVUDfj+5oBpmluYuQ/AqirDqKBpWmc+n//N7/k594BhGA/fQnxJc0FK+ckCQDUWmAqhswBWVhtCRNRlWdavAd8fB9A4dW9cSum7KohyEjvG+XoK4JyUsnNeLSUAkGmanzuiLctyEr1sZVCCiawHVMMysgCcad8Gts8AZIPQTemsb65UDRCiDxQqJaufpfnILgN28Y/pJOa/SeR8+03VACH7QGC99wJwb8dyNNh5cFmDfEgi++msJvFcAHBf5yI8Gr0J8PrXYslJXt5N6Vz/rALMRQixSJ0B0FUulE6QuLQ/9E+96lpEtVrMNI9Fshug05551zFib6WBgWKkATjdsR5k3wDwgUvoPTTorXTg4pNK8FUn8UwWVb3PB9tXYRHnASyffobHoOlr6XC/71aK+911BeBv2hoR134HYLpE2QDvJJG7omKE+gKI1HkAu8uEEgtK5zIq4p05dQNg0d4D8HGP0CsQ2a8IYFeVQ6VGWBcAFqnNAH4BoLsARjA+sZZ+uDrmXPP0mcBGWHMAFm0JQLsL4GOX+H+go5UOZe+XrqmW8ZoC8LdfLsXixjsAmlzii9CxlQ5lr7vDKXIA7OSbSF0GsMOTtD2Uzp30Jm30ADLJNJiER+gFEtk9fhUnUgAskjsA+gmA5hIr8a+9gU4NTEQagI90NMEu3gFoqUvoY7ygNfT9pUJQvY+EB/jYro/wX3EQQMIl9DlY20SZ/luVmlXdAbitTUeT5tR6p+ZPj/9/D50dvYqj/gCi/TjAPR7xfZTOds8kfqqRKZ1PVOoDqkdMb/zzcibZAdAFsHupQrewYtlG6jr7IpFINMTj8fPM/AURNSgAjUop437zZuuQr6zVs0g9AODe8yzgubaGjvY/dkSYprmXmX9UEP5qChFdtixrZyiAkMesHoBkAaDSluMENH0DHb4oSwLCADDzk1gs9tng4OBfoQCcyYoH3T4hlNoChrOnowG8j0TWObJ9PRRDyDnovqHr+ndB4l95R9WNUZ23AFBvz7wEGz4uT68z61QAAAAASUVORK5CYII=',
  284. onClick: W
  285. },
  286. null
  287. )
  288. }
  289. }
  290. )
  291. ]
  292. }
  293. }
  294. ),
  295. r('div', { class: A.absWrap }, [
  296. r('div', { class: A.schoolMainTitle }, [
  297. r('div', { class: A.schoolMainLeft }, [
  298. r('img', { src: n.info.logo ? n.info.logo : w, alt: '' }, null)
  299. ]),
  300. r('div', { class: A.schoolMainRight }, [
  301. r('p', { class: A.schoolMainTitle }, [n.info.name]),
  302. r('p', { class: A.schoolMainSub }, [
  303. n.info.provinceName,
  304. n.info.cityName
  305. ])
  306. ])
  307. ]),
  308. r('div', { class: A.detailInfo }, [
  309. r('p', null, [
  310. r('span', null, [o('主管领导')]),
  311. n.info.emergencyContact
  312. ]),
  313. r('p', null, [
  314. r('span', null, [o('管理老师')]),
  315. n.info.educationalAdministrationUsername
  316. ]),
  317. r('p', null, [
  318. r('span', null, [o('学年制')]),
  319. b[n.info.schoolSystem],
  320. ' '
  321. ]),
  322. r('p', null, [r('span', null, [o('邮箱账号')]), n.info.email]),
  323. r('p', { class: A.flexP }, [
  324. r('span', null, [o('学校地址')]),
  325. o(' '),
  326. r('p', null, [n.info.address])
  327. ])
  328. ])
  329. ]),
  330. r('div', { class: [A.teacherList] }, [
  331. r('h2', { class: A.teacherTitle }, [
  332. r('div', { class: A.dot }, null),
  333. r('p', null, [o('伴学老师')])
  334. ]),
  335. n.list.length > 0
  336. ? r('div', null, [
  337. n.list.map(function (e) {
  338. return r(
  339. L,
  340. {
  341. item: e,
  342. onToMsg: function (e) {
  343. ;(n.selectItem = e), (n.showMessage = !0)
  344. }
  345. },
  346. null
  347. )
  348. })
  349. ])
  350. : r(m, { tips: '暂无伴学老师' }, null)
  351. ])
  352. ]),
  353. r(
  354. d,
  355. {
  356. show: n.showMessage,
  357. 'onUpdate:show': function (e) {
  358. return (n.showMessage = e)
  359. },
  360. position: 'bottom',
  361. style: { background: 'transparent' }
  362. },
  363. {
  364. default: function () {
  365. return [
  366. r('div', { class: A.codeContainer }, [
  367. r('div', { class: A.codeBottom }, [
  368. r(
  369. u,
  370. {
  371. name: 'cross',
  372. size: 22,
  373. class: A.close,
  374. color: '#666',
  375. onClick: function () {
  376. return (n.showMessage = !1)
  377. }
  378. },
  379. null
  380. ),
  381. r('h3', { class: A.title }, [r('i', null, null), o('联系方式')]),
  382. r(
  383. T,
  384. { columnNum: 2, border: !1 },
  385. {
  386. default: function () {
  387. return [
  388. r(
  389. M,
  390. {
  391. onClick: function () {
  392. f({
  393. api: 'joinChatGroup',
  394. content: {
  395. type: 'single',
  396. id: n.selectItem.imUserId
  397. }
  398. }),
  399. (n.showMessage = !1)
  400. }
  401. },
  402. {
  403. icon: function () {
  404. return r(C, { class: A.shareImg, src: y }, null)
  405. },
  406. text: function () {
  407. return r('div', { class: A.shareText }, [
  408. o('发送消息')
  409. ])
  410. }
  411. }
  412. ),
  413. r(
  414. M,
  415. {
  416. onClick: function () {
  417. f({
  418. api: 'callPhone',
  419. content: { phone: n.selectItem.phone }
  420. }),
  421. (n.showMessage = !1)
  422. }
  423. },
  424. {
  425. icon: function () {
  426. return r(C, { class: A.shareImg, src: x }, null)
  427. },
  428. text: function () {
  429. return r('div', { class: A.shareText }, [
  430. o('拨打电话')
  431. ])
  432. }
  433. }
  434. )
  435. ]
  436. }
  437. }
  438. )
  439. ])
  440. ])
  441. ]
  442. }
  443. }
  444. )
  445. ])
  446. }
  447. }
  448. })
  449. )
  450. }
  451. }
  452. }
  453. )
  454. })()