| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850 |
- !(function () {
- function e(e, t) {
- var n = Object.keys(e)
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e)
- t &&
- (r = r.filter(function (t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable
- })),
- n.push.apply(n, r)
- }
- return n
- }
- function t(t) {
- for (var r = 1; r < arguments.length; r++) {
- var i = null != arguments[r] ? arguments[r] : {}
- r % 2
- ? e(Object(i), !0).forEach(function (e) {
- n(t, e, i[e])
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i))
- : e(Object(i)).forEach(function (e) {
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, 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 r(e, t, n, r, i, a, o) {
- try {
- var s = e[a](o),
- c = s.value
- } catch (d) {
- return void n(d)
- }
- s.done ? t(c) : Promise.resolve(c).then(r, i)
- }
- function i(e) {
- return function () {
- var t = this,
- n = arguments
- return new Promise(function (i, a) {
- var o = e.apply(t, n)
- function s(e) {
- r(o, i, a, s, c, 'next', e)
- }
- function c(e) {
- r(o, i, a, s, c, 'throw', e)
- }
- s(void 0)
- })
- }
- }
- var a = document.createElement('style')
- ;(a.innerHTML =
- '._searchBand_spdri_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._subjectContainer_spdri_7{display:flex}._subjectContainer_spdri_7>span{flex-shrink:0;font-weight:500}._subjectContainer_spdri_7 ._tagSubject_spdri_14{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.21333rem;padding:.08rem .21333rem .05333rem;font-weight:500}._manageCell_spdri_21{padding:.4rem .34667rem}._manageCell_spdri_21 .van-cell__title{flex:1 auto;flex-basis:14%}._manageCell_spdri_21 ._teacherContent_spdri_28{display:flex;align-items:center;justify-content:space-between}._manageCell_spdri_21 ._teacherContent_spdri_28 ._content_spdri_33{width:1.86667rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._name_spdri_36{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:1.86667rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._classNum_spdri_43{text-align:center;width:1.6rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._num_spdri_47{font-size:.53333rem;font-weight:700;color:#f67146;font-family:DINA;line-height:.64rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._numText_spdri_54{padding-top:.08rem;font-size:.32rem;color:#333;line-height:.45333rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._messageImg_spdri_60{margin-top:.13333rem;width:.64rem;height:.64rem}._manageCell_spdri_21 ._avatarContainer_spdri_65{position:relative}._manageCell_spdri_21 ._avatarContainer_spdri_65 ._avatarType_spdri_68{position:absolute;left:.08rem;bottom:.05333rem;padding:0 .24rem}._manageCell_spdri_21 ._img_spdri_74{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_spdri_21 ._name_spdri_36{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._manageCell_spdri_21 ._phone_spdri_87{font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_spdri_21 ._status_spdri_92{font-size:.42667rem;font-weight:500;color:#333}._manageCell_spdri_21 ._frozen_spdri_97{color:#f44541}._codeContainer_spdri_100 ._codeImg_spdri_100{width:8.61333rem;height:12.4rem;background:url(./assets/download.275aac0e.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeContent_spdri_107{padding-left:.21333rem}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeTitle_spdri_110{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a;max-width:90%;padding-left:5%}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeName_spdri_120{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeQr_spdri_126{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_spdri_100 ._codeImg_spdri_100 ._codeQr_spdri_126 img{width:100%;height:100%}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeBtnText_spdri_139{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_spdri_100 ._codeImg_spdri_100 ._codeTips_spdri_149{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_spdri_100 ._close_spdri_157{position:absolute;top:.32rem;right:.4rem}._codeContainer_spdri_100 ._codeBottom_spdri_162{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_spdri_100 ._title_spdri_169{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_spdri_100 ._title_spdri_169 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_spdri_100 ._shareImg_spdri_184{width:1.25333rem;height:1.25333rem}._codeContainer_spdri_100 ._shareText_spdri_188{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n'),
- document.head.appendChild(a),
- System.register(
- [
- './index-legacy.57c73898.js',
- './index-legacy.cf09ad36.js',
- './index-legacy.b30008f0.js',
- './icon-call-message-legacy.418e09d8.js',
- './icon_teacher-legacy.07765f44.js',
- './icon-message-legacy.e6b4ca35.js',
- './index-legacy.1cf073d0.js',
- './index-legacy.cb8d2253.js',
- './index-legacy.ec34f3ff.js',
- './index-legacy.5d5123be.js',
- './index-legacy.cc7dc1ca.js',
- './index-legacy.3427fdb7.js',
- './index-legacy.118ddf1b.js',
- './index-legacy.f56477a8.js',
- './index-legacy.79ba2023.js',
- './index-legacy.698b918a.js',
- './index-legacy.80babe20.js',
- './use-tab-status-legacy.8668a42b.js',
- './Picker-legacy.a502fc12.js',
- './index-legacy.43317ab8.js',
- './index-legacy.bf0d95d4.js',
- './index-legacy.07eb86de.js'
- ],
- function (e) {
- 'use strict'
- var n,
- r,
- a,
- o,
- s,
- c,
- d,
- l,
- _,
- u,
- p,
- m,
- f,
- g,
- h,
- b,
- v,
- w,
- C,
- x,
- y,
- j,
- S,
- I,
- k,
- T,
- P,
- O,
- z,
- N,
- L
- return {
- setters: [
- function (e) {
- ;(n = e.d),
- (r = e.ag),
- (a = e.r),
- (o = e.$),
- (s = e.e),
- (c = e.b3),
- (d = e.c),
- (l = e.aj),
- (_ = e.a5),
- (u = e.q),
- (p = e.ak),
- (m = e.P),
- (f = e.al),
- (g = e.m),
- (h = e.g)
- },
- function (e) {
- b = e.O
- },
- function (e) {
- v = e.O
- },
- function (e) {
- ;(w = e.i), (C = e.a)
- },
- function (e) {
- x = e.i
- },
- function (e) {
- y = e.i
- },
- function (e) {
- j = e.O
- },
- function (e) {
- S = e.O
- },
- function (e) {
- I = e.L
- },
- function (e) {
- k = e.C
- },
- function (e) {
- T = e.C
- },
- function (e) {
- P = e.I
- },
- function (e) {
- O = e.T
- },
- function (e) {
- ;(z = e.G), (N = e.a)
- },
- function (e) {
- L = e.P
- },
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {}
- ],
- execute: function () {
- var B = {
- searchBand: '_searchBand_spdri_1',
- subjectContainer: '_subjectContainer_spdri_7',
- tagSubject: '_tagSubject_spdri_14',
- manageCell: '_manageCell_spdri_21',
- teacherContent: '_teacherContent_spdri_28',
- content: '_content_spdri_33',
- name: '_name_spdri_36',
- classNum: '_classNum_spdri_43',
- num: '_num_spdri_47',
- numText: '_numText_spdri_54',
- messageImg: '_messageImg_spdri_60',
- avatarContainer: '_avatarContainer_spdri_65',
- avatarType: '_avatarType_spdri_68',
- img: '_img_spdri_74',
- phone: '_phone_spdri_87',
- status: '_status_spdri_92',
- frozen: '_frozen_spdri_97',
- codeContainer: '_codeContainer_spdri_100',
- codeImg: '_codeImg_spdri_100',
- codeContent: '_codeContent_spdri_107',
- codeTitle: '_codeTitle_spdri_110',
- codeName: '_codeName_spdri_120',
- codeQr: '_codeQr_spdri_126',
- codeBtnText: '_codeBtnText_spdri_139',
- codeTips: '_codeTips_spdri_149',
- close: '_close_spdri_157',
- codeBottom: '_codeBottom_spdri_162',
- title: '_title_spdri_169',
- shareImg: '_shareImg_spdri_184',
- shareText: '_shareText_spdri_188'
- }
- function E(e) {
- return (
- 'function' == typeof e ||
- ('[object Object]' === Object.prototype.toString.call(e) && !f(e))
- )
- }
- e(
- 'default',
- n({
- name: 'companion-teacher',
- setup: function () {
- var e = r(),
- n = a({
- showMessage: !1,
- showPopover: !1,
- oPopover: !1,
- subjectList: [{ text: '全部声部', value: 'ALL' }],
- action: [
- { name: '解绑', id: !0 },
- { name: '绑定', id: !1, selected: !0 }
- ],
- list: [],
- listState: {
- dataShow: !0,
- loading: !1,
- finished: !1,
- refreshing: !1,
- height: 0
- },
- subjectText: '全部声部',
- statusText: '绑定',
- params: { keyword: null, delFlag: !1, subjectId: null, page: 1, rows: 20 },
- selectItem: {}
- }),
- f = (function () {
- var e = i(
- regeneratorRuntime.mark(function e() {
- var t, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.prev = 0),
- (e.next = 3),
- g.post('/api-school/subjectBasicConfig/page', {
- data: { page: 1, rows: 50 }
- })
- )
- case 3:
- ;(t = e.sent),
- (r = t.data),
- (r.rows || []).forEach(function (e) {
- n.subjectList.push({
- text: e.subjectName,
- value: e.subjectId
- })
- }),
- (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)
- }
- })(),
- R = (function () {
- var e = i(
- regeneratorRuntime.mark(function e() {
- var r, i, a
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.prev = 0),
- (e.next = 3),
- g.post('/api-school/teacher/page', {
- data: t(
- t({}, n.params),
- {},
- { schoolId: h.user.data.school.id }
- )
- })
- )
- case 3:
- if (
- ((r = e.sent),
- (n.listState.loading = !1),
- (n.listState.refreshing = !1),
- (i = r.data || {}),
- !(n.list.length > 0 && 1 === i.current))
- ) {
- e.next = 9
- break
- }
- return e.abrupt('return')
- case 9:
- ;(a = i.rows || []).forEach(function (e) {
- e.subjectNames = e.subjectName ? e.subjectName.split(',') : []
- }),
- (n.list = n.list.concat(a)),
- (n.listState.finished = i.current >= i.pages),
- (n.params.page = i.current + 1),
- (n.listState.dataShow = n.list.length > 0),
- (e.next = 22)
- break
- case 17:
- ;(e.prev = 17),
- (e.t0 = e.catch(0)),
- (n.listState.dataShow = !1),
- (n.listState.refreshing = !1),
- (n.listState.finished = !0)
- case 22:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 17]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- M = function () {
- ;(n.params.page = 1),
- (n.list = []),
- (n.listState.dataShow = !0),
- (n.listState.loading = !1),
- (n.listState.finished = !1),
- R()
- }
- o(
- i(
- regeneratorRuntime.mark(function e() {
- return regeneratorRuntime.wrap(function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- f(),
- R(),
- window.history.pushState(null, '', document.URL),
- window.addEventListener('popstate', D, !1)
- case 4:
- case 'end':
- return e.stop()
- }
- }, e)
- })
- )
- )
- var D = function () {
- s({ api: 'back' })
- }
- return (
- c(function () {
- window.removeEventListener('popstate', D)
- }),
- function () {
- var t
- return d('div', { class: !n.listState.dataShow && 'emptyRootContainer' }, [
- d(
- v,
- {
- position: 'top',
- onGetHeight: function (e) {
- n.listState.height = e
- }
- },
- {
- default: function () {
- return [
- d(
- l,
- { border: !1 },
- {
- right: function () {
- return d(
- _,
- {
- name: 'plus',
- size: 19,
- onClick: function () {
- e.push({
- path: 'save-share-image',
- query: { type: 'teacher' }
- })
- }
- },
- null
- )
- }
- }
- ),
- d(
- b,
- {
- placeholder: '请输入伴学老师姓名',
- class: 'searchGroupInput',
- onSearch: function (e) {
- ;(n.params.keyword = e), M()
- }
- },
- null
- ),
- d('div', { class: 'searchGroup' }, [
- d(
- 'div',
- {
- class: ['searchItem', n.showPopover && 'searchItem-active'],
- onClick: function () {
- return (n.showPopover = !0)
- }
- },
- [
- d('span', null, [n.subjectText]),
- d('i', { class: 'arrow' }, null)
- ]
- ),
- d(
- 'div',
- {
- class: ['searchItem', n.oPopover && 'searchItem-active'],
- onClick: function () {
- return (n.oPopover = !0)
- }
- },
- [
- d('span', null, [n.statusText]),
- d('i', { class: 'arrow' }, null)
- ]
- )
- ])
- ]
- }
- }
- ),
- n.listState.dataShow
- ? d(
- j,
- {
- modelValue: n.listState.refreshing,
- 'onUpdate:modelValue': function (e) {
- return (n.listState.refreshing = e)
- },
- onRefresh: M,
- style: {
- minHeight: 'calc(100vh - '.concat(n.listState.height, 'px)')
- }
- },
- {
- default: function () {
- return [
- d(
- I,
- {
- finished: n.listState.finished,
- finishedText: ' ',
- class: [B.liveList],
- onLoad: R,
- style: { paddingTop: '12px' },
- immediateCheck: !1
- },
- E(
- (t = n.list.map(function (t) {
- return d(
- k,
- {
- inset: !0,
- style: { marginBottom: '12px' },
- onClick: function () {
- return (function (t) {
- e.push({
- path: '/companion-teacher-detail',
- query: { id: t.id }
- })
- })(t)
- }
- },
- {
- default: function () {
- return [
- d(
- T,
- {
- center: !0,
- isLink: !0,
- class: B.manageCell,
- clickable: !1
- },
- {
- icon: function () {
- return d(
- 'div',
- { class: B.avatarContainer },
- [
- d(
- P,
- {
- class: B.img,
- src: t.avatar ? t.avatar : x,
- fit: 'cover'
- },
- null
- ),
- t.delFlag &&
- d(
- O,
- {
- class: B.avatarType,
- round: !0,
- color: '#F44541',
- textColor: '#fff'
- },
- {
- default: function () {
- return [u('解绑')]
- }
- }
- )
- ]
- )
- },
- title: function () {
- return d(
- 'div',
- { class: B.teacherContent },
- [
- d('div', { class: B.content }, [
- d(
- 'p',
- { class: [B.name, 'van-ellipsis'] },
- [t.nickname]
- )
- ])
- ]
- )
- },
- value: function () {
- return d(
- 'div',
- { class: B.teacherContent },
- [
- d('div', { class: B.classNum }, [
- d('p', { class: B.num }, [
- t.completedCourseScheduleNum || 0,
- u('/'),
- t.totalCourseScheduleNum || 0
- ]),
- d('p', { class: B.numText }, [
- u('课时')
- ])
- ]),
- d(
- 'div',
- {
- class: B.message,
- onClick: function (e) {
- e.stopPropagation(),
- e.preventDefault(),
- (n.showMessage = !0),
- (n.selectItem = t)
- }
- },
- [
- d(
- P,
- { class: B.messageImg, src: y },
- null
- )
- ]
- )
- ]
- )
- }
- }
- ),
- d(
- T,
- { center: !0 },
- {
- title: function () {
- return d(
- 'div',
- { class: B.subjectContainer },
- [
- d('span', null, [u('声部:')]),
- d(
- 'div',
- {
- style: {
- display: 'flex',
- alignItems: 'center',
- flexWrap: 'wrap'
- }
- },
- [
- t.subjectNames &&
- t.subjectNames.length > 0 &&
- t.subjectNames.map(function (e) {
- return d(
- O,
- {
- type: 'primary',
- class: B.tagSubject,
- color: '#FFE7DA',
- textColor: '#F67146'
- },
- E(e)
- ? e
- : {
- default: function () {
- return [e]
- }
- }
- )
- })
- ]
- )
- ]
- )
- }
- }
- )
- ]
- }
- }
- )
- }))
- )
- ? t
- : {
- default: function () {
- return [t]
- }
- }
- )
- ]
- }
- }
- )
- : d(p, { btnStatus: !1, tips: '暂无伴学老师' }, null),
- d(
- m,
- {
- show: n.showMessage,
- 'onUpdate:show': function (e) {
- return (n.showMessage = e)
- },
- position: 'bottom',
- style: { background: 'transparent' }
- },
- {
- default: function () {
- return [
- d('div', { class: B.codeContainer }, [
- d('div', { class: B.codeBottom }, [
- d(
- _,
- {
- name: 'cross',
- size: 22,
- class: B.close,
- color: '#666',
- onClick: function () {
- return (n.showMessage = !1)
- }
- },
- null
- ),
- d('h3', { class: B.title }, [
- d('i', null, null),
- u('联系方式')
- ]),
- d(
- z,
- { columnNum: 2, border: !1 },
- {
- default: function () {
- return [
- d(
- N,
- {
- onClick: function () {
- s({
- api: 'joinChatGroup',
- content: {
- type: 'single',
- id: n.selectItem.imUserId
- }
- }),
- (n.showMessage = !1)
- }
- },
- {
- icon: function () {
- return d(P, { class: B.shareImg, src: w }, null)
- },
- text: function () {
- return d('div', { class: B.shareText }, [
- u('发送消息')
- ])
- }
- }
- ),
- d(
- N,
- {
- onClick: function () {
- s({
- api: 'callPhone',
- content: { phone: n.selectItem.phone }
- }),
- (n.showMessage = !1)
- }
- },
- {
- icon: function () {
- return d(P, { class: B.shareImg, src: C }, null)
- },
- text: function () {
- return d('div', { class: B.shareText }, [
- u('拨打电话')
- ])
- }
- }
- )
- ]
- }
- }
- )
- ])
- ])
- ]
- }
- }
- ),
- d(
- S,
- {
- show: n.oPopover,
- 'onUpdate:show': function (e) {
- return (n.oPopover = e)
- },
- actions: n.action,
- onSelect: function (e) {
- n.action.forEach(function (e) {
- e.selected = !1
- }),
- (e.selected = !0),
- (n.statusText = e.name),
- (n.params.delFlag = 'ALL' === e.id ? null : e.id),
- (n.oPopover = !1),
- M()
- }
- },
- null
- ),
- d(
- m,
- {
- show: n.showPopover,
- 'onUpdate:show': function (e) {
- return (n.showPopover = e)
- },
- round: !0,
- position: 'bottom',
- class: 'popupBottomSearch'
- },
- {
- default: function () {
- return [
- d(
- L,
- {
- columns: n.subjectList,
- onCancel: function () {
- return (n.showPopover = !1)
- },
- onConfirm: function (e) {
- return (function (e) {
- ;(n.subjectText = e.selectedOptions[0].text),
- (n.params.subjectId =
- 'ALL' === e.selectedOptions[0].value
- ? null
- : e.selectedOptions[0].value),
- (n.showPopover = !1),
- M()
- })(e)
- }
- },
- null
- )
- ]
- }
- }
- )
- ])
- }
- )
- }
- })
- )
- }
- }
- }
- )
- })()
|