!(function () { function e(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e) t && (o = o.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable })), n.push.apply(n, o) } return n } function t(t) { for (var o = 1; o < arguments.length; o++) { var r = null != arguments[o] ? arguments[o] : {} o % 2 ? e(Object(r), !0).forEach(function (e) { n(t, e, r[e]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : e(Object(r)).forEach(function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) }) } return t } function n(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e ) } function o(e, t, n, o, r, a, l) { try { var c = e[a](l), i = c.value } catch (s) { return void n(s) } c.done ? t(i) : Promise.resolve(i).then(o, r) } function r(e) { return function () { var t = this, n = arguments return new Promise(function (r, a) { var l = e.apply(t, n) function c(e) { o(l, r, a, c, i, 'next', e) } function i(e) { o(l, r, a, c, i, 'throw', e) } c(void 0) }) } } var a = document.createElement('style') ;(a.innerHTML = '._searchBand_p2lg0_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._manageCell_p2lg0_7{padding:.4rem .34667rem}._manageCell_p2lg0_7 .van-cell__title{flex:1 auto;flex-basis:48%}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14{display:flex;align-items:center;justify-content:space-between}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14 ._content_p2lg0_19{width:1.86667rem}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14 ._name_p2lg0_22{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:1.86667rem}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14 ._classNum_p2lg0_29{text-align:center;width:1.6rem}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14 ._num_p2lg0_33{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14 ._numText_p2lg0_39{font-size:.32rem;color:#333;line-height:.45333rem}._manageCell_p2lg0_7 ._teacherContent_p2lg0_14 ._messageImg_p2lg0_44{margin-top:.13333rem;width:.64rem;height:.64rem}._manageCell_p2lg0_7 ._img_p2lg0_49{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_p2lg0_7 ._name_p2lg0_22{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._manageCell_p2lg0_7 ._phone_p2lg0_62{font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_p2lg0_7 ._status_p2lg0_67{font-size:.42667rem;font-weight:500;color:#333}._manageCell_p2lg0_7 ._frozen_p2lg0_72{color:#f44541}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75{width:8.61333rem;height:12.4rem;background:url(./assets/download.275aac0e.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeContent_p2lg0_82{padding-left:.21333rem}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeTitle_p2lg0_85{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeName_p2lg0_93{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeQr_p2lg0_99{margin:.61333rem auto 0;width:6.16rem;height:6.16rem;padding:.26667rem;background:linear-gradient(180deg,#ffffff 0%,#ffffff 100%);border-radius:.29333rem;overflow:hidden}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeQr_p2lg0_99 img{width:100%;height:100%}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeBtnText_p2lg0_112{margin:.4rem auto 0;display:inline-block;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_p2lg0_75 ._codeImg_p2lg0_75 ._codeTips_p2lg0_122{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_p2lg0_75 ._close_p2lg0_130{position:absolute;top:.32rem;right:.4rem}._codeContainer_p2lg0_75 ._codeBottom_p2lg0_135{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_p2lg0_75 ._title_p2lg0_142{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_p2lg0_75 ._title_p2lg0_142 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_p2lg0_75 ._shareImg_p2lg0_157{width:1.25333rem;height:1.25333rem}._codeContainer_p2lg0_75 ._shareText_p2lg0_161{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n'), document.head.appendChild(a), System.register( [ './index-legacy.c52b7cbb.js', './index-legacy.a7e7ca32.js', './index-legacy.fb25da3a.js', './index-legacy.4e7f0184.js', './icon-message-legacy.a5fad892.js', './icon_teacher-legacy.42ba77b1.js', './index-legacy.2ae28dc5.js', './index-legacy.ca3a829d.js', './index-legacy.d11fa8f4.js', './index-legacy.9fb17640.js', './index-legacy.51e5b886.js', './index-legacy.d61b8a1f.js', './index-legacy.ef15ba2a.js', './index-legacy.f657fbb5.js', './index-legacy.97665c37.js', './index-legacy.261ae52e.js', './use-tab-status-legacy.17f6d490.js', './index-legacy.1fccc4ce.js', './index-legacy.13f9f10f.js', './index-legacy.f900000d.js' ], function (e) { 'use strict' var n, o, a, l, c, i, s, u, _, d, g, p, m, f, h, b, w, v, x, C, y, j, I, k, T, S, O, P, N, z, B, L, Q return { setters: [ function (e) { n = e.O }, function (e) { ;(o = e.O), (a = e.i), (l = e.a) }, function (e) { c = e.O }, function (e) { i = e.O }, function (e) { ;(s = e.i), (u = e.a), (_ = e.b) }, function (e) { d = e.i }, function (e) { ;(g = e.d), (p = e.aQ), (m = e.R), (f = e.X), (h = e.s), (b = e.k), (w = e.a2), (v = e.l), (x = e.be), (C = e.P), (y = e.p), (j = e.F), (I = e.ad), (k = e.g) }, function (e) { T = e.a }, function (e) { S = e.A }, function (e) { O = e.L }, function (e) { P = e.C }, function (e) { N = e.I }, function (e) { z = e.T }, function (e) { ;(B = e.G), (L = e.a) }, function (e) { Q = e.P }, function () {}, function () {}, function () {}, function () {}, function () {} ], execute: function () { var A = { searchBand: '_searchBand_p2lg0_1', manageCell: '_manageCell_p2lg0_7', teacherContent: '_teacherContent_p2lg0_14', content: '_content_p2lg0_19', name: '_name_p2lg0_22', classNum: '_classNum_p2lg0_29', num: '_num_p2lg0_33', numText: '_numText_p2lg0_39', messageImg: '_messageImg_p2lg0_44', img: '_img_p2lg0_49', phone: '_phone_p2lg0_62', status: '_status_p2lg0_67', frozen: '_frozen_p2lg0_72', codeContainer: '_codeContainer_p2lg0_75', codeImg: '_codeImg_p2lg0_75', codeContent: '_codeContent_p2lg0_82', codeTitle: '_codeTitle_p2lg0_85', codeName: '_codeName_p2lg0_93', codeQr: '_codeQr_p2lg0_99', codeBtnText: '_codeBtnText_p2lg0_112', codeTips: '_codeTips_p2lg0_122', close: '_close_p2lg0_130', codeBottom: '_codeBottom_p2lg0_135', title: '_title_p2lg0_142', shareImg: '_shareImg_p2lg0_157', shareText: '_shareText_p2lg0_161' } function M(e) { return ( 'function' == typeof e || ('[object Object]' === Object.prototype.toString.call(e) && !I(e)) ) } e( 'default', g({ name: 'companion-teacher', setup: function () { var e = p(), g = m({ showMessage: !1, showPopover: !1, oPopover: !1, showQrcode: !1, schoolName: null, schoolId: null, url: null, subjectList: [], list: [], listState: { dataShow: !0, loading: !1, finished: !1 }, subjectText: '全部声部', statusText: '状态', params: { keyword: null, status: null, subjectId: null, page: 1, rows: 20 }, selectItem: {} }), I = (function () { var e = r( regeneratorRuntime.mark(function e() { var t, n return regeneratorRuntime.wrap( function (e) { for (;;) switch ((e.prev = e.next)) { case 0: return ( (e.prev = 0), (e.next = 3), k.post('/api-school/subject/page', { data: { page: 1, rows: 50 } }) ) case 3: ;(t = e.sent), (n = t.data), (n.rows || []).forEach(function (e) { g.subjectList.push({ text: e.name, value: e.id }) }), (e.next = 11) break case 9: ;(e.prev = 9), (e.t0 = e.catch(0)) case 11: case 'end': return e.stop() } }, e, null, [[0, 9]] ) }) ) return function () { return e.apply(this, arguments) } })(), E = (function () { var e = r( regeneratorRuntime.mark(function e(t) { var n return regeneratorRuntime.wrap( function (e) { for (;;) switch ((e.prev = e.next)) { case 0: return ( (e.prev = 0), (e.next = 3), k.get('/api-school/schoolStaff/detail/' + t) ) case 3: ;(n = e.sent), console.log(n, 'res'), (g.schoolName = n.data.schoolName), (g.schoolId = n.data.schoolId), (g.url = location.origin + '/orchestra-school/#/companion-teacher-register?id=' + n.data.schoolId + '&name=' + n.data.schoolName), (e.next = 12) break case 10: ;(e.prev = 10), (e.t0 = e.catch(0)) case 12: case 'end': return e.stop() } }, e, null, [[0, 10]] ) }) ) return function (t) { return e.apply(this, arguments) } })(), D = (function () { var e = r( regeneratorRuntime.mark(function e() { var n, o, r return regeneratorRuntime.wrap( function (e) { for (;;) switch ((e.prev = e.next)) { case 0: return ( (e.prev = 0), (e.next = 3), k.post('/api-school/teacher/page', { data: t( t({}, g.params), {}, { schoolId: h.user.data.school.id } ) }) ) case 3: if ( ((n = e.sent), (g.listState.loading = !1), (o = n.data || {}), !(g.list.length > 0 && 1 === o.current)) ) { e.next = 8 break } return e.abrupt('return') case 8: ;(r = o.rows || []).forEach(function (e) { e.subjectNames = e.subjectName ? e.subjectName.split(',') : [] }), (g.list = g.list.concat(r)), (g.listState.finished = o.current >= o.pages), (g.params.page = o.current + 1), (g.listState.dataShow = g.list.length > 0), (e.next = 20) break case 16: ;(e.prev = 16), (e.t0 = e.catch(0)), (g.listState.dataShow = !1), (g.listState.finished = !0) case 20: case 'end': return e.stop() } }, e, null, [[0, 16]] ) }) ) return function () { return e.apply(this, arguments) } })(), R = function () { ;(g.params.page = 1), (g.list = []), (g.listState.dataShow = !0), (g.listState.loading = !1), (g.listState.finished = !1), D() } return ( f(function () { E(h.user.data.id), I(), D() }), function () { var t return b(j, null, [ b( i, { position: 'top' }, { default: function () { return [ b( n, { border: !1 }, { right: function () { return b( w, { name: 'plus', size: 19, onClick: function () { return (g.showQrcode = !0) } }, null ) } } ), b( c, { placeholder: '请输入伴学指导姓名', inputBackground: 'white', background: '#f6f8f9', onSearch: function (e) { ;(g.params.keyword = e), R() } }, null ), b( 'div', { style: { padding: '12px 13px 16px', background: '#F8F8F8' } }, [ b( 'div', { class: A.searchBand, onClick: function () { return (g.showPopover = !0) } }, [ g.subjectText, v(' '), b( w, { name: g.showPopover ? 'arrow-up' : 'arrow-down' }, null ) ] ), b( 'div', { class: A.searchBand, style: 'margin-left: 16px', onClick: function () { return (g.oPopover = !0) } }, [ g.statusText, v(' '), b(w, { name: g.oPopover ? 'arrow-up' : 'arrow-down' }, null) ] ) ] ) ] } } ), g.listState.dataShow ? b( O, { loading: g.listState.loading, 'onUpdate:loading': function (e) { return (g.listState.loading = e) }, finished: g.listState.finished, finishedText: ' ', class: [A.liveList], onLoad: D, immediateCheck: !1 }, M( (t = g.list.map(function (t) { return b( P, { center: !0, isLink: !0, class: A.manageCell, onClick: function () { return (function (t) { e.push({ path: '/companion-teacher-detail', query: { id: t.id } }) })(t) } }, { icon: function () { return b( N, { class: A.img, src: t.avatar ? t.avatar : d }, null ) }, title: function () { return b('div', { class: A.teacherContent }, [ b('div', { class: A.content }, [ b('p', { class: [A.name, 'van-ellipsis'] }, [ t.nickname ]), b('p', { class: A.subjects }, [ t.subjectNames && t.subjectNames.length > 0 && t.subjectNames.map(function (e) { return b( z, { type: 'primary' }, M(e) ? e : { default: function () { return [e] } } ) }) ]) ]), b('div', { class: A.classNum }, [ b('p', { class: A.num }, [ t.completedCourseScheduleNum || 0, v('/'), t.totalCourseScheduleNum || 0 ]), b('p', { class: A.numText }, [v('课时')]) ]), b( 'div', { class: A.message, onClick: function (e) { e.stopPropagation(), e.preventDefault(), (g.showMessage = !0), (g.selectItem = t) } }, [b(N, { class: A.messageImg, src: s }, null)] ) ]) }, value: function () { return b( 'span', { class: [A.status, 'LOCKED' === t.status ? A.frozen : ''] }, [T[t.status]] ) } } ) })) ) ? t : { default: function () { return [t] } } ) : b( x, { btnStatus: !1, classImgSize: 'SMALL', tips: '暂无伴学指导' }, null ), b( C, { show: g.showQrcode, 'onUpdate:show': function (e) { return (g.showQrcode = e) }, position: 'bottom', style: { background: 'transparent' }, safeAreaInsetBottom: !0 }, { default: function () { return [ b('div', { class: A.codeContainer }, [ b('div', { class: A.codeImg }, [ b('div', { class: A.codeContent }, [ b('h2', { class: A.codeTitle }, [g.schoolName]), b('div', { class: A.codeName }, [ v('邀请您成为乐团伴学指导') ]), b('div', { class: A.codeQr }, [ b(o, { text: g.url, size: '100%' }, null) ]), b('div', { style: { textAlign: 'center' } }, [ b('span', { class: A.codeBtnText }, [ v('扫描上方二维码完成资料填写') ]) ]), b('div', { class: A.codeTips }, [ v('二维码将在两小时后失效,请及时登记') ]) ]) ]), b('div', { class: A.codeBottom }, [ b( w, { name: 'cross', size: 22, class: A.close, color: '#666', onClick: function () { return (g.showQrcode = !1) } }, null ), b('h3', { class: A.title }, [ b('i', null, null), v('分享方式') ]), b( B, { columnNum: 2, border: !1 }, { default: function () { return [ b(L, null, { icon: function () { return b(N, { class: A.shareImg, src: a }, null) }, text: function () { return b('div', { class: A.shareText }, [ v('保存图片') ]) } }), b(L, null, { icon: function () { return b(N, { class: A.shareImg, src: l }, null) }, text: function () { return b('div', { class: A.shareText }, [v('微信')]) } }) ] } } ) ]) ]) ] } } ), b( C, { show: g.showMessage, 'onUpdate:show': function (e) { return (g.showMessage = e) }, position: 'bottom', style: { background: 'transparent' }, safeAreaInsetBottom: !0 }, { default: function () { return [ b('div', { class: A.codeContainer }, [ b('div', { class: A.codeBottom }, [ b( w, { name: 'cross', size: 22, class: A.close, color: '#666', onClick: function () { return (g.showMessage = !1) } }, null ), b('h3', { class: A.title }, [ b('i', null, null), v('联系方式') ]), b( B, { columnNum: 2, border: !1 }, { default: function () { return [ b( L, { onClick: function () { y({ api: 'joinChatGroup', content: { type: 'single', id: g.selectItem.id } }), (g.showMessage = !1) } }, { icon: function () { return b(N, { class: A.shareImg, src: u }, null) }, text: function () { return b('div', { class: A.shareText }, [ v('发送消息') ]) } } ), b( L, { onClick: function () { y({ api: 'callPhone', content: { id: g.selectItem.phone } }), (g.showMessage = !1) } }, { icon: function () { return b(N, { class: A.shareImg, src: _ }, null) }, text: function () { return b('div', { class: A.shareText }, [ v('拨打电话') ]) } } ) ] } } ) ]) ]) ] } } ), b( S, { show: g.oPopover, 'onUpdate:show': function (e) { return (g.oPopover = e) }, cancelText: '取消', actions: [ { name: '全部', id: 'ALL' }, { name: '注销', id: 'CANCEL' }, { name: '冻结', id: 'LOCKED' }, { name: '正常', id: 'ACTIVATION' } ], onSelect: function (e) { ;(g.statusText = e.name), (g.params.status = 'ALL' === e.id ? null : e.id), (g.oPopover = !1), R() } }, null ), b( C, { show: g.showPopover, 'onUpdate:show': function (e) { return (g.showPopover = e) }, round: !0, position: 'bottom' }, { default: function () { return [ b( Q, { columns: g.subjectList, onCancel: function () { return (g.showPopover = !1) }, onConfirm: function (e) { return (function (e) { ;(g.subjectText = e.selectedOptions[0].text), (g.params.subjectId = e.selectedOptions[0].value), (g.showPopover = !1), R() })(e) } }, null ) ] } } ) ]) } ) } }) ) } } } ) })()