123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683 |
- var Pe = Object.defineProperty,
- Re = Object.defineProperties
- var qe = Object.getOwnPropertyDescriptors
- var X = Object.getOwnPropertySymbols
- var Me = Object.prototype.hasOwnProperty,
- Te = Object.prototype.propertyIsEnumerable
- var Z = (e, t, u) =>
- t in e
- ? Pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: u })
- : (e[t] = u),
- w = (e, t) => {
- for (var u in t || (t = {})) Me.call(t, u) && Z(e, u, t[u])
- if (X) for (var u of X(t)) Te.call(t, u) && Z(e, u, t[u])
- return e
- },
- N = (e, t) => Re(e, qe(t))
- import {
- i as Ye,
- _ as le,
- a as ue,
- b as se,
- c as re,
- d as oe,
- e as ne,
- f as ie,
- g as de,
- h as ce,
- j as me,
- k as be,
- l as pe,
- m as he,
- n as ge,
- o as fe,
- p as ve,
- q as Ce,
- r as xe,
- s as _e
- } from './teacher_main.59b5b960.js'
- import {
- aP as ye,
- U as z,
- a5 as He,
- a6 as Ke,
- j as k,
- aQ as Ee,
- ad as q,
- aR as J,
- aS as Q,
- aT as ee,
- e as W,
- q as P,
- aU as Xe,
- n as ke,
- w as Se,
- a8 as Ae,
- Y as Fe,
- d as S,
- aV as Be,
- s as M,
- t as E,
- B as Ie,
- C as Ve,
- z as y,
- A as s,
- at as we,
- _ as T,
- x as te,
- $,
- aW as L,
- v as F,
- aX as G,
- y as Y,
- F as Ne,
- a as p,
- a1 as De,
- G as R,
- H as Ze,
- p as Je,
- Z as Qe,
- J as et,
- au as je,
- r as tt,
- c as a,
- aY as H,
- aZ as x,
- ax as $e,
- N as j,
- O as I,
- a_ as B,
- a$ as at,
- b0 as lt,
- b1 as Le,
- b as U,
- b2 as ut,
- aO as st,
- b3 as rt,
- b4 as ot,
- aL as nt
- } from './index.1d0cc84f.js'
- import { C as it } from './index.9505fca5.js'
- import { E as dt, b as ct, a as mt } from './index2.ba9e0a49.js'
- import { E as bt, a as ae } from './index2.71359404.js'
- import { E as pt } from './index2.695c0652.js'
- import { C as O } from './index.4ca3083a.js'
- import './index2.6b7eb987.js'
- import './isSameOrBefore.aa5d7801.js'
- import './icon_upload.a3b9dc82.js'
- const ht = {
- modelValue: { type: Array, default: () => [] },
- disabled: Boolean,
- min: { type: Number, default: void 0 },
- max: { type: Number, default: void 0 },
- size: ye,
- id: { type: String, default: void 0 },
- label: { type: String, default: void 0 },
- fill: { type: String, default: void 0 },
- textColor: { type: String, default: void 0 },
- tag: { type: String, default: 'div' }
- },
- Ge = {
- modelValue: { type: [Number, String, Boolean], default: () => {} },
- label: { type: [String, Boolean, Number, Object] },
- indeterminate: Boolean,
- disabled: Boolean,
- checked: Boolean,
- name: { type: String, default: void 0 },
- trueLabel: { type: [String, Number], default: void 0 },
- falseLabel: { type: [String, Number], default: void 0 },
- id: { type: String, default: void 0 },
- controls: { type: String, default: void 0 },
- border: Boolean,
- size: ye,
- tabindex: [String, Number]
- },
- V = () => {
- const e = z(He, {}),
- t = z(Ke, {}),
- u = z('CheckboxGroup', {}),
- d = k(() => u && (u == null ? void 0 : u.name) === 'ElCheckboxGroup'),
- b = k(() => t.size)
- return {
- isGroup: d,
- checkboxGroup: u,
- elForm: e,
- elFormItemSize: b,
- elFormItem: t
- }
- },
- gt = (e, { elFormItem: t }) => {
- const { inputId: u, isLabeledByFormItem: d } = Ee(e, { formItemContext: t })
- return { isLabeledByFormItem: d, groupId: u }
- },
- ft = e => {
- const t = W(!1),
- { emit: u } = Fe(),
- { isGroup: d, checkboxGroup: b, elFormItem: g } = V(),
- h = W(!1)
- return {
- model: k({
- get() {
- var c, m
- return d.value
- ? (c = b.modelValue) == null
- ? void 0
- : c.value
- : (m = e.modelValue) != null
- ? m
- : t.value
- },
- set(c) {
- var m
- d.value && Array.isArray(c)
- ? ((h.value = b.max !== void 0 && c.length > b.max.value),
- h.value === !1 &&
- ((m = b == null ? void 0 : b.changeEvent) == null ||
- m.call(b, c)))
- : (u(q, c), (t.value = c))
- }
- }),
- isGroup: d,
- isLimitExceeded: h,
- elFormItem: g
- }
- },
- vt = (e, t, { model: u }) => {
- const { isGroup: d, checkboxGroup: b } = V(),
- g = W(!1),
- h = P(b == null ? void 0 : b.checkboxGroupSize, { prop: !0 }),
- v = k(() => {
- const r = u.value
- return Xe(r) === '[object Boolean]'
- ? r
- : Array.isArray(r)
- ? r.includes(e.label)
- : r != null
- ? r === e.trueLabel
- : !!r
- }),
- c = P(
- k(() => {
- var r
- return d.value
- ? (r = b == null ? void 0 : b.checkboxGroupSize) == null
- ? void 0
- : r.value
- : void 0
- })
- ),
- m = k(() => !!(t.default || e.label))
- return { isChecked: v, focus: g, size: h, checkboxSize: c, hasOwnLabel: m }
- },
- Ct = (e, { model: t, isChecked: u }) => {
- const { elForm: d, isGroup: b, checkboxGroup: g } = V(),
- h = k(() => {
- var c, m
- const r = (c = g.max) == null ? void 0 : c.value,
- _ = (m = g.min) == null ? void 0 : m.value
- return (
- (!!(r || _) && t.value.length >= r && !u.value) ||
- (t.value.length <= _ && u.value)
- )
- })
- return {
- isDisabled: k(() => {
- var c, m
- const r = e.disabled || (d == null ? void 0 : d.disabled)
- return (m = b.value
- ? ((c = g.disabled) == null ? void 0 : c.value) || r || h.value
- : r) != null
- ? m
- : !1
- }),
- isLimitDisabled: h
- }
- },
- xt = (e, { model: t }) => {
- function u() {
- Array.isArray(t.value) && !t.value.includes(e.label)
- ? t.value.push(e.label)
- : (t.value = e.trueLabel || !0)
- }
- e.checked && u()
- },
- _t = (
- e,
- {
- model: t,
- isLimitExceeded: u,
- hasOwnLabel: d,
- isDisabled: b,
- isLabeledByFormItem: g
- }
- ) => {
- const { elFormItem: h } = V(),
- { emit: v } = Fe()
- function c(i) {
- var o, n
- return i === e.trueLabel || i === !0
- ? (o = e.trueLabel) != null
- ? o
- : !0
- : (n = e.falseLabel) != null
- ? n
- : !1
- }
- function m(i, o) {
- v('change', c(i), o)
- }
- function r(i) {
- if (u.value) return
- const o = i.target
- v('change', c(o.checked), i)
- }
- async function _(i) {
- u.value ||
- (!d.value &&
- !b.value &&
- g.value &&
- ((t.value = c([!1, e.falseLabel].includes(t.value))),
- await ke(),
- m(t.value, i)))
- }
- return (
- Se(
- () => e.modelValue,
- () => {
- var i
- ;(i = h == null ? void 0 : h.validate) == null ||
- i.call(h, 'change').catch(o => Ae())
- }
- ),
- { handleChange: r, onClickRoot: _ }
- )
- },
- K = { [q]: e => J(e) || Q(e) || ee(e), change: e => J(e) || Q(e) || ee(e) },
- Ue = (e, t) => {
- const { model: u, isGroup: d, isLimitExceeded: b, elFormItem: g } = ft(e),
- {
- focus: h,
- size: v,
- isChecked: c,
- checkboxSize: m,
- hasOwnLabel: r
- } = vt(e, t, { model: u }),
- { isDisabled: _ } = Ct(e, { model: u, isChecked: c }),
- { inputId: i, isLabeledByFormItem: o } = Ee(e, {
- formItemContext: g,
- disableIdGeneration: r,
- disableIdManagement: d
- }),
- { handleChange: n, onClickRoot: f } = _t(e, {
- model: u,
- isLimitExceeded: b,
- hasOwnLabel: r,
- isDisabled: _,
- isLabeledByFormItem: o
- })
- return (
- xt(e, { model: u }),
- {
- elFormItem: g,
- inputId: i,
- isLabeledByFormItem: o,
- isChecked: c,
- isDisabled: _,
- isGroup: d,
- checkboxSize: m,
- hasOwnLabel: r,
- model: u,
- handleChange: n,
- onClickRoot: f,
- focus: h,
- size: v
- }
- )
- },
- yt = ['tabindex', 'role', 'aria-checked'],
- Et = [
- 'id',
- 'aria-hidden',
- 'name',
- 'tabindex',
- 'disabled',
- 'true-value',
- 'false-value'
- ],
- kt = ['id', 'aria-hidden', 'disabled', 'value', 'name', 'tabindex'],
- St = { name: 'ElCheckbox' },
- At = S(
- N(w({}, St), {
- props: Ge,
- emits: K,
- setup(e) {
- const t = e,
- u = Be(),
- {
- inputId: d,
- isLabeledByFormItem: b,
- isChecked: g,
- isDisabled: h,
- checkboxSize: v,
- hasOwnLabel: c,
- model: m,
- handleChange: r,
- onClickRoot: _,
- focus: i
- } = Ue(t, u),
- o = M('checkbox')
- return (n, f) => (
- E(),
- Ie(
- we(!s(c) && s(b) ? 'span' : 'label'),
- {
- class: y([
- s(o).b(),
- s(o).m(s(v)),
- s(o).is('disabled', s(h)),
- s(o).is('bordered', n.border),
- s(o).is('checked', s(g))
- ]),
- 'aria-controls': n.indeterminate ? n.controls : null,
- onClick: s(_)
- },
- {
- default: Ve(() => [
- te(
- 'span',
- {
- class: y([
- s(o).e('input'),
- s(o).is('disabled', s(h)),
- s(o).is('checked', s(g)),
- s(o).is('indeterminate', n.indeterminate),
- s(o).is('focus', s(i))
- ]),
- tabindex: n.indeterminate ? 0 : void 0,
- role: n.indeterminate ? 'checkbox' : void 0,
- 'aria-checked': n.indeterminate ? 'mixed' : void 0
- },
- [
- n.trueLabel || n.falseLabel
- ? $(
- (E(),
- F(
- 'input',
- {
- key: 0,
- id: s(d),
- 'onUpdate:modelValue':
- f[0] ||
- (f[0] = C => (G(m) ? (m.value = C) : null)),
- class: y(s(o).e('original')),
- type: 'checkbox',
- 'aria-hidden': n.indeterminate ? 'true' : 'false',
- name: n.name,
- tabindex: n.tabindex,
- disabled: s(h),
- 'true-value': n.trueLabel,
- 'false-value': n.falseLabel,
- onChange:
- f[1] || (f[1] = (...C) => s(r) && s(r)(...C)),
- onFocus: f[2] || (f[2] = C => (i.value = !0)),
- onBlur: f[3] || (f[3] = C => (i.value = !1))
- },
- null,
- 42,
- Et
- )),
- [[L, s(m)]]
- )
- : $(
- (E(),
- F(
- 'input',
- {
- key: 1,
- id: s(d),
- 'onUpdate:modelValue':
- f[4] ||
- (f[4] = C => (G(m) ? (m.value = C) : null)),
- class: y(s(o).e('original')),
- type: 'checkbox',
- 'aria-hidden': n.indeterminate ? 'true' : 'false',
- disabled: s(h),
- value: n.label,
- name: n.name,
- tabindex: n.tabindex,
- onChange:
- f[5] || (f[5] = (...C) => s(r) && s(r)(...C)),
- onFocus: f[6] || (f[6] = C => (i.value = !0)),
- onBlur: f[7] || (f[7] = C => (i.value = !1))
- },
- null,
- 42,
- kt
- )),
- [[L, s(m)]]
- ),
- te('span', { class: y(s(o).e('inner')) }, null, 2)
- ],
- 10,
- yt
- ),
- s(c)
- ? (E(),
- F(
- 'span',
- { key: 0, class: y(s(o).e('label')) },
- [
- Y(n.$slots, 'default'),
- n.$slots.default
- ? R('v-if', !0)
- : (E(), F(Ne, { key: 0 }, [p(De(n.label), 1)], 64))
- ],
- 2
- ))
- : R('v-if', !0)
- ]),
- _: 3
- },
- 8,
- ['class', 'aria-controls', 'onClick']
- )
- )
- }
- })
- )
- var Ft = T(At, [
- [
- '__file',
- '/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue'
- ]
- ])
- const Bt = ['name', 'tabindex', 'disabled', 'true-value', 'false-value'],
- It = ['name', 'tabindex', 'disabled', 'value'],
- Vt = { name: 'ElCheckboxButton' },
- wt = S(
- N(w({}, Vt), {
- props: Ge,
- emits: K,
- setup(e) {
- const t = e,
- u = Be(),
- {
- focus: d,
- isChecked: b,
- isDisabled: g,
- size: h,
- model: v,
- handleChange: c
- } = Ue(t, u),
- { checkboxGroup: m } = V(),
- r = M('checkbox'),
- _ = k(() => {
- var i, o, n, f
- const C =
- (o =
- (i = m == null ? void 0 : m.fill) == null ? void 0 : i.value) !=
- null
- ? o
- : ''
- return {
- backgroundColor: C,
- borderColor: C,
- color:
- (f =
- (n = m == null ? void 0 : m.textColor) == null
- ? void 0
- : n.value) != null
- ? f
- : '',
- boxShadow: C ? `-1px 0 0 0 ${C}` : void 0
- }
- })
- return (i, o) => (
- E(),
- F(
- 'label',
- {
- class: y([
- s(r).b('button'),
- s(r).bm('button', s(h)),
- s(r).is('disabled', s(g)),
- s(r).is('checked', s(b)),
- s(r).is('focus', s(d))
- ])
- },
- [
- i.trueLabel || i.falseLabel
- ? $(
- (E(),
- F(
- 'input',
- {
- key: 0,
- 'onUpdate:modelValue':
- o[0] || (o[0] = n => (G(v) ? (v.value = n) : null)),
- class: y(s(r).be('button', 'original')),
- type: 'checkbox',
- name: i.name,
- tabindex: i.tabindex,
- disabled: s(g),
- 'true-value': i.trueLabel,
- 'false-value': i.falseLabel,
- onChange: o[1] || (o[1] = (...n) => s(c) && s(c)(...n)),
- onFocus: o[2] || (o[2] = n => (d.value = !0)),
- onBlur: o[3] || (o[3] = n => (d.value = !1))
- },
- null,
- 42,
- Bt
- )),
- [[L, s(v)]]
- )
- : $(
- (E(),
- F(
- 'input',
- {
- key: 1,
- 'onUpdate:modelValue':
- o[4] || (o[4] = n => (G(v) ? (v.value = n) : null)),
- class: y(s(r).be('button', 'original')),
- type: 'checkbox',
- name: i.name,
- tabindex: i.tabindex,
- disabled: s(g),
- value: i.label,
- onChange: o[5] || (o[5] = (...n) => s(c) && s(c)(...n)),
- onFocus: o[6] || (o[6] = n => (d.value = !0)),
- onBlur: o[7] || (o[7] = n => (d.value = !1))
- },
- null,
- 42,
- It
- )),
- [[L, s(v)]]
- ),
- i.$slots.default || i.label
- ? (E(),
- F(
- 'span',
- {
- key: 2,
- class: y(s(r).be('button', 'inner')),
- style: Ze(s(b) ? s(_) : void 0)
- },
- [Y(i.$slots, 'default', {}, () => [p(De(i.label), 1)])],
- 6
- ))
- : R('v-if', !0)
- ],
- 2
- )
- )
- }
- })
- )
- var ze = T(wt, [
- [
- '__file',
- '/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue'
- ]
- ])
- const Nt = { name: 'ElCheckboxGroup' },
- Dt = S(
- N(w({}, Nt), {
- props: ht,
- emits: K,
- setup(e, { emit: t }) {
- const u = e,
- { elFormItem: d } = V(),
- { groupId: b, isLabeledByFormItem: g } = gt(u, { elFormItem: d }),
- h = P(),
- v = M('checkbox'),
- c = r => {
- t(q, r),
- ke(() => {
- t('change', r)
- })
- },
- m = k({
- get() {
- return u.modelValue
- },
- set(r) {
- c(r)
- }
- })
- return (
- Je(
- 'CheckboxGroup',
- N(w({ name: 'ElCheckboxGroup', modelValue: m }, Qe(u)), {
- checkboxGroupSize: h,
- changeEvent: c
- })
- ),
- Se(
- () => u.modelValue,
- () => {
- var r
- ;(r = d.validate) == null || r.call(d, 'change').catch(_ => Ae())
- }
- ),
- (r, _) => (
- E(),
- Ie(
- we(r.tag),
- {
- id: s(b),
- class: y(s(v).b('group')),
- role: 'group',
- 'aria-label': s(g) ? void 0 : r.label || 'checkbox-group',
- 'aria-labelledby': s(g) ? s(d).labelId : void 0
- },
- { default: Ve(() => [Y(r.$slots, 'default')]), _: 3 },
- 8,
- ['id', 'class', 'aria-label', 'aria-labelledby']
- )
- )
- )
- }
- })
- )
- var Oe = T(Dt, [
- [
- '__file',
- '/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue'
- ]
- ])
- const jt = et(Ft, { CheckboxButton: ze, CheckboxGroup: Oe })
- je(ze)
- je(Oe)
- const l = tt({
- authStatus: !1,
- nextStatus: !1,
- subjectList: [],
- active: 0,
- teacherInfo: {},
- teacherCert: {
- realName: '',
- idCardNo: '',
- gender: 1,
- birthdate: null,
- subjectId: [],
- introduction: '',
- graduateSchool: null,
- subject: null,
- gradCertificate: '',
- degreeCertificate: '',
- teacherCertificate: ''
- }
- }),
- $t = '_form_1owvt_1'
- var Lt = { form: $t }
- function Gt(e) {
- return (
- typeof e == 'function' ||
- (Object.prototype.toString.call(e) === '[object Object]' && !$e(e))
- )
- }
- var Ut = S({
- name: 'auth',
- render() {
- let e
- return (
- console.log(l.subjectList),
- a(
- H,
- {
- class: [Lt.form, 'mx-4 mt-7'],
- ref: 'form',
- size: 'large',
- model: l.teacherCert,
- labelPosition: 'left'
- },
- {
- default: () => [
- a(
- x,
- {
- label:
- '\u53EF\u6559\u6388\u58F0\u90E8\uFF08\u53EF\u591A\u9009\uFF09',
- labelWidth: '170px',
- prop: 'subjectId',
- rules: [
- {
- required: !0,
- message: '\u8BF7\u9009\u62E9\u53EF\u6559\u6388\u58F0\u90E8'
- }
- ]
- },
- {
- default: () => [
- a(
- dt,
- {
- multiple: !0,
- filterable: !0,
- modelValue: l.teacherCert.subjectId,
- 'onUpdate:modelValue': t => (l.teacherCert.subjectId = t),
- placeholder:
- '\u8BF7\u9009\u62E9\u53EF\u6559\u6388\u58F0\u90E8',
- class: 'w-full',
- multipleLimit: 5
- },
- Gt(
- (e = l.subjectList.map(t =>
- a(
- ct,
- { key: t.id, label: t.name },
- {
- default: () => [
- t.subjects &&
- t.subjects.map(u =>
- a(
- mt,
- { key: u.id, value: u.id, label: u.name },
- null
- )
- )
- ]
- }
- )
- ))
- )
- ? e
- : { default: () => [e] }
- )
- ]
- }
- ),
- a(
- x,
- { label: '\u4E2A\u4EBA\u7B80\u4ECB', labelWidth: '170px' },
- {
- default: () => [
- a(
- j,
- {
- placeholder:
- '\u4F8B\uFF1A\u6BD5\u4E1A\u4E8E\u4E2D\u56FD\u97F3\u4E50\u5B66\u9662\u957F\u7B1B\u4E13\u4E1A\uFF0C\u66FE\u83B7\u5F97\u4E2D\u56FD\u9752\u5E74\u7BA1\u4E50\u6F14\u594F\u5927\u8D5B\u4E00\u7B49\u5956\uFF0C\u5177\u67098\u5E74\u6559\u5B66\u7ECF\u9A8C\uFF0C\u80FD\u591F\u5C06\u4E13\u4E1A\u77E5\u8BC6\u901A\u8FC7\u7B80\u5355\u6613\u61C2\u7684\u65B9\u5F0F\u6559\u6388\u7ED9\u5B66\u5458\u3002',
- type: 'textarea',
- modelValue: l.teacherCert.introduction,
- 'onUpdate:modelValue': t =>
- (l.teacherCert.introduction = t),
- maxlength: '200',
- showWordLimit: !0,
- rows: 5
- },
- null
- )
- ]
- }
- ),
- a(x, null, {
- default: () => [
- a('div', { class: 'text-center w-full' }, [
- a(
- I,
- {
- class: '!w-40 !h-[38px]',
- onClick: () => {
- l.active = 0
- }
- },
- { default: () => [p('\u4E0A\u4E00\u6B65')] }
- ),
- a(
- I,
- {
- type: 'primary',
- class: '!w-40 !h-[38px]',
- onClick: () => {
- this.$refs.form.validate(async t => {
- t && (l.active = 2)
- })
- }
- },
- { default: () => [p('\u4E0B\u4E00\u6B65')] }
- )
- ])
- ]
- })
- ]
- }
- )
- )
- }
- })
- const zt = '_form_lsqru_1'
- var Ot = { form: zt },
- Wt = S({
- name: 'cert-info',
- data() {
- return { agreeStatus: !1 }
- },
- computed: {
- userAuth() {
- const e = B.user.data || {}
- return !!(e.idCardNo && e.realName)
- }
- },
- mounted() {
- if (this.userAuth) {
- const e = B.user.data || {}
- ;(l.teacherCert.realName = e.realName),
- (l.teacherCert.idCardNo = e.idCardNo),
- (l.teacherCert.gender = e.gender),
- (l.teacherCert.birthdate = at(e.birthdate).format('YYYY-MM-DD')),
- (this.agreeStatus = !0)
- }
- },
- methods: {
- onIdCardValidate() {
- const e = l.teacherCert.idCardNo
- if (!!e) {
- if (!lt(e || '')) return !1
- ;(l.teacherCert.birthdate = this.getBirth(e)),
- (l.teacherCert.gender = this.getSex(e))
- }
- },
- getBirth(e) {
- let t = ''
- return (
- e != null &&
- e != '' &&
- (e.length == 15
- ? (t = '19' + e.slice(6, 12))
- : e.length == 18 && (t = e.slice(6, 14)),
- (t = t.replace(/(.{4})(.{2})/, '$1-$2-'))),
- t
- )
- },
- getSex(e) {
- let t = 1
- return e && parseInt(e.slice(-2, -1)) % 2 == 1 ? (t = 1) : (t = 0), t
- },
- onSubmit() {
- try {
- this.$refs.certForm.validate(async e => {
- if (e) {
- if (!this.agreeStatus)
- return Le.error(
- '\u8BF7\u9605\u8BFB\u5E76\u540C\u610F\u534F\u8BAE'
- )
- if (!this.userAuth) {
- const t = l.teacherCert.realName,
- u = l.teacherCert.idCardNo
- await U.post('/api-auth/user/realNameAuth', {
- data: { realName: t, idCardNo: u, save: !0 }
- })
- }
- l.active = 1
- }
- })
- } catch {}
- }
- },
- render() {
- return (
- console.log(l.teacherCert),
- a(
- H,
- {
- ref: 'certForm',
- class: [Ot.form, 'mx-4 mt-7'],
- size: 'large',
- model: l.teacherCert,
- labelPosition: 'left'
- },
- {
- default: () => [
- a(
- x,
- {
- label: '\u771F\u5B9E\u59D3\u540D',
- labelWidth: '90px',
- prop: 'realName',
- rules: [
- {
- required: !0,
- message: '\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D'
- }
- ]
- },
- {
- default: () => [
- a(
- j,
- {
- modelValue: l.teacherCert.realName,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.realName = e),
- disabled: this.userAuth,
- placeholder:
- '\u8BF7\u8F93\u5165\u60A8\u7684\u771F\u5B9E\u59D3\u540D'
- },
- null
- )
- ]
- }
- ),
- a(
- x,
- {
- label: '\u8EAB\u4EFD\u8BC1\u53F7',
- labelWidth: '90px',
- prop: 'idCardNo',
- rules: [
- {
- required: !0,
- message: '\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7'
- },
- {
- pattern: this.userAuth
- ? ''
- : /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
- message:
- '\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7',
- trigger: 'blur'
- }
- ]
- },
- {
- default: () => [
- a(
- j,
- {
- modelValue: l.teacherCert.idCardNo,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.idCardNo = e),
- disabled: this.userAuth,
- onBlur: this.onIdCardValidate,
- placeholder:
- '\u8BF7\u8F93\u5165\u60A8\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801'
- },
- null
- )
- ]
- }
- ),
- a(
- x,
- {
- label: '\u6027\u522B',
- labelWidth: '90px',
- prop: 'gender',
- rules: [
- { required: !0, message: '\u8BF7\u9009\u62E9\u6027\u522B' }
- ]
- },
- {
- default: () => [
- a(
- bt,
- {
- modelValue: l.teacherCert.gender,
- 'onUpdate:modelValue': e => (l.teacherCert.gender = e),
- disabled: !0
- },
- {
- default: () => [
- a(
- ae,
- { label: 1, class: 'mr-3 w-24' },
- { default: () => [p('\u7537')] }
- ),
- a(
- ae,
- { label: 0, class: 'w-24' },
- { default: () => [p('\u5973')] }
- )
- ]
- }
- )
- ]
- }
- ),
- a(
- x,
- {
- label: '\u51FA\u751F\u65E5\u671F',
- labelWidth: '90px',
- prop: 'birthdate',
- rules: [
- {
- required: !0,
- message: '\u8BF7\u9009\u62E9\u51FA\u751F\u65E5\u671F'
- }
- ]
- },
- {
- default: () => [
- a(
- pt,
- {
- disabled: !0,
- modelValue: l.teacherCert.birthdate,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.birthdate = e),
- type: 'date',
- class: '!h-[38px] !w-full',
- placeholder:
- '\u8BF7\u9009\u62E9\u51FA\u751F\u65E5\u671F'
- },
- null
- )
- ]
- }
- ),
- a(x, null, {
- default: () => [
- a('div', { class: 'text-center w-full' }, [
- a(
- 'div',
- {
- class:
- 'text-[14px] text-[#999] flex items-center justify-center'
- },
- [
- a(
- 'div',
- {
- class:
- 'flex items-center justify-center cursor-pointer',
- onClick: () => {
- this.agreeStatus = !this.agreeStatus
- }
- },
- [
- a(
- 'div',
- {
- onClick: e => {
- e.stopPropagation()
- }
- },
- [
- a(
- jt,
- {
- modelValue: this.agreeStatus,
- 'onUpdate:modelValue': e =>
- (this.agreeStatus = e),
- class: '!mr-2 rounded-full overflow-hidden'
- },
- null
- )
- ]
- ),
- p('\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F'),
- a(
- 'a',
- {
- href: 'https://dev.colexiu.com/student/#/registerProtocol',
- class: 'text-[#2DC7AA]',
- target: '_blank'
- },
- [
- p(
- '\u300A\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B'
- )
- ]
- )
- ]
- )
- ]
- ),
- a(
- I,
- {
- type: 'primary',
- class: '!w-40 !h-[38px]',
- onClick: this.onSubmit
- },
- { default: () => [p('\u4E0B\u4E00\u6B65')] }
- )
- ])
- ]
- })
- ]
- }
- )
- )
- }
- })
- const Pt = '_form_1uabb_1'
- var Rt = { form: Pt }
- const We = e => {
- if (e === null) return null
- const t = Object.assign({}, e)
- return (
- Object.keys(t).forEach(
- u => (t[u] = typeof e[u] == 'object' ? We(e[u]) : e[u])
- ),
- Array.isArray(e) ? ((t.length = e.length), Array.from(t)) : t
- )
- }
- var qt = We,
- Mt = S({
- name: 'auth',
- data() {
- return { labelWidth: '140px', loading: !1, popupStatus: !1 }
- },
- methods: {
- onSubmit() {
- try {
- this.$refs.form.validate(async e => {
- if (e) {
- this.loading = !0
- const t = qt(l.teacherCert)
- ;(t.subjectId = t.subjectId.join(',')),
- await U.post('/api-website/teacherAuthEntryRecord/doApply', {
- data: t
- }),
- Le.success('\u63D0\u4EA4\u6210\u529F'),
- (this.loading = !1),
- (l.active = 0),
- (l.authStatus = !1),
- await ut()
- }
- })
- } catch {
- this.loading = !1
- }
- }
- },
- render() {
- return a(
- H,
- {
- class: [Rt.form, 'mx-4 mt-7'],
- ref: 'form',
- size: 'large',
- model: l.teacherCert,
- labelPosition: 'left'
- },
- {
- default: () => [
- a(
- x,
- {
- labelWidth: this.labelWidth,
- label: '\u6BD5\u4E1A\u9662\u6821\uFF08\u5FC5\u586B\uFF09',
- prop: 'graduateSchool',
- rules: [
- {
- required: !0,
- message:
- '\u8BF7\u8F93\u5165\u60A8\u7684\u6BD5\u4E1A\u9662\u6821'
- }
- ]
- },
- {
- default: () => [
- a(
- j,
- {
- modelValue: l.teacherCert.graduateSchool,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.graduateSchool = e),
- placeholder:
- '\u8BF7\u8F93\u5165\u60A8\u7684\u6BD5\u4E1A\u9662\u6821'
- },
- null
- )
- ]
- }
- ),
- a(
- x,
- {
- labelWidth: this.labelWidth,
- label: '\u4E13\u4E1A\uFF08\u9009\u586B\uFF09'
- },
- {
- default: () => [
- a(
- j,
- {
- modelValue: l.teacherCert.subject,
- 'onUpdate:modelValue': e => (l.teacherCert.subject = e),
- placeholder:
- '\u8BF7\u8F93\u5165\u60A8\u7684\u4E13\u4E1A\u540D\u79F0'
- },
- null
- )
- ]
- }
- ),
- a(
- x,
- {
- labelWidth: this.labelWidth,
- label: '\u6BD5\u4E1A\u8BC1\u4E66\uFF08\u9009\u586B\uFF09'
- },
- {
- default: () => [
- a(
- O,
- {
- modelValue: l.teacherCert.gradCertificate,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.gradCertificate = e),
- accept: '.png, .jpg'
- },
- null
- )
- ]
- }
- ),
- a(
- x,
- {
- labelWidth: this.labelWidth,
- label: '\u5B66\u4F4D\u8BC1\u4E66\uFF08\u9009\u586B\uFF09'
- },
- {
- default: () => [
- a(
- O,
- {
- modelValue: l.teacherCert.degreeCertificate,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.degreeCertificate = e),
- accept: '.png, .jpg'
- },
- null
- )
- ]
- }
- ),
- a(
- x,
- {
- labelWidth: this.labelWidth,
- label: '\u6559\u5E08\u8D44\u683C\u8BC1\uFF08\u9009\u586B\uFF09'
- },
- {
- default: () => [
- a(
- O,
- {
- modelValue: l.teacherCert.teacherCertificate,
- 'onUpdate:modelValue': e =>
- (l.teacherCert.teacherCertificate = e),
- accept: '.png, .jpg'
- },
- null
- )
- ]
- }
- ),
- a(x, null, {
- default: () => [
- a('div', { class: 'text-center w-full' }, [
- a(
- I,
- {
- class: '!w-40 !h-[38px]',
- onClick: () => {
- l.active = 1
- }
- },
- { default: () => [p('\u4E0A\u4E00\u6B65')] }
- ),
- a(
- I,
- {
- type: 'primary',
- class: '!w-40 !h-[38px]',
- onClick: this.onSubmit,
- loading: this.loading
- },
- { default: () => [p('\u63D0\u4EA4\u5BA1\u6838')] }
- )
- ])
- ]
- }),
- a(
- st,
- {
- modelValue: this.popupStatus,
- 'onUpdate:modelValue': e => (this.popupStatus = e),
- closeOnClickModal: !1,
- closeOnPressEscape: !1,
- showClose: !0
- },
- {
- default: () => [
- a('div', { class: 'p-8' }, [
- a('img', { src: Ye }, null),
- a(
- 'p',
- { class: 'text-center text-[#666] text-base -m-1 pb-6' },
- [
- p(
- '\u611F\u8C22\u60A8\u7684\u6559\u5B66\u70ED\u60C5\uFF0C\u5C0F\u9177\u5C06\u572824\u5C0F\u65F6\u5185'
- ),
- a('br', null, null),
- p(
- '\u5B8C\u6210\u5BA1\u6838\uFF0C\u8BF7\u7559\u610FAPP\u6D88\u606F\u53CA\u77ED\u4FE1\u83B7\u53D6'
- ),
- a('br', null, null),
- p('\u5BA1\u6838\u7ED3\u679C\u3002')
- ]
- ),
- a(
- I,
- {
- type: 'primary',
- class: 'w-full rounded-sm',
- style: { height: '38px' },
- onClick: () => {
- ;(this.popupStatus = !1),
- (l.active = 0),
- (l.authStatus = !1)
- }
- },
- { default: () => [p('\u6211\u77E5\u9053\u4E86')] }
- )
- ])
- ]
- }
- )
- ]
- }
- )
- }
- }),
- Tt = S({
- name: 'auth',
- data() {
- return { radio: '1' }
- },
- async mounted() {
- try {
- if (l.subjectList.length <= 0) {
- const d = await U.get('/api-website/open/subject/subjectSelect')
- l.subjectList = d.data || []
- }
- const e = await U.get(
- '/api-website/teacherAuthEntryRecord/getLastRecordByUserId'
- )
- l.teacherInfo = e.data || {}
- const t = e.data || {}
- l.teacherCert.introduction = t.introduction
- const u = t.subjectId ? t.subjectId.split(',') : []
- ;(l.teacherCert.subjectId = u.map(d => Number(d))),
- (l.teacherCert.graduateSchool = t.graduateSchool),
- (l.teacherCert.subject = t.subject),
- (l.teacherCert.gradCertificate = t.gradCertificate),
- (l.teacherCert.degreeCertificate = t.degreeCertificate),
- (l.teacherCert.teacherCertificate = t.teacherCertificate)
- } catch {}
- },
- render() {
- return a('div', { class: 'pt-12 px-72 pb-24' }, [
- a(it, { type: 'medium', active: l.active }, null),
- l.active === 0 && a(Wt, null, null),
- l.active === 1 && a(Ut, null, null),
- l.active === 2 && a(Mt, null, null)
- ])
- }
- })
- const Yt = '_musicAuth_1aysi_1',
- Ht = '_txt_1aysi_6',
- Kt = '_col_1aysi_24'
- var D = { musicAuth: Yt, txt: Ht, col: Kt }
- function Xt(e) {
- return (
- typeof e == 'function' ||
- (Object.prototype.toString.call(e) === '[object Object]' && !$e(e))
- )
- }
- const A = e => {
- const t = `../../../images/${e}`
- return {
- '../../../images/bg_bottom.png': le,
- '../../../images/bg_center.png': ue,
- '../../../images/bg_left_bottom.png': se,
- '../../../images/bg_right_center.png': re,
- '../../../images/bg_top.png': oe,
- '../../../images/icon_music.png': ne,
- '../../../images/icon_teacher_auth.png': ie,
- '../../../images/midi_money.png': de,
- '../../../images/midi_upload.png': ce,
- '../../../images/music_main.png': me,
- '../../../images/num1.png': be,
- '../../../images/num2.png': pe,
- '../../../images/num3.png': he,
- '../../../images/num4.png': ge,
- '../../../images/o1.png': fe,
- '../../../images/o2.png': ve,
- '../../../images/o3.png': Ce,
- '../../../images/o4.png': xe,
- '../../../images/teacher_main.png': _e
- }[t].default
- }
- var Zt = S({
- name: 'cert-info',
- computed: {
- auth() {
- var u
- let e = (u = B.user.data) == null ? void 0 : u.entryStatus,
- t = { text: '\u7ACB\u5373\u8BA4\u8BC1', status: !1 }
- switch (e) {
- case 'DOING':
- ;(t.text = '\u5BA1\u6838\u4E2D'), (t.status = !0)
- break
- case 'PASS':
- ;(t.text = '\u5DF2\u8BA4\u8BC1'), (t.status = !0)
- }
- return t
- },
- authStatus() {
- var t
- return (
- (((t = B.user.data) == null ? void 0 : t.entryStatus) || 0) === 'PASS'
- )
- }
- },
- data() {
- return {
- list: [
- {
- logo: A('o1.png'),
- num: A('num1.png'),
- title: '\u7EBF\u4E0A\u6388\u8BFE',
- desc: '\u8BA4\u8BC1\u6210\u4E3A\u9177\u4E50\u79C0\u8001\u5E08\u540E\uFF0C\u53EF\u8BBE\u7F6E\u60A8\u7684\u7A7A\u95F2\u65F6\u95F4\u4E3A\u5E73\u53F0\u4E2D\u7684\u6C42\u5B66\u8005\u8FDB\u884C1\u5BF91\u7684\u7EBF\u4E0A\u8BFE\u7A0B\u6307\u5BFC\u3002'
- },
- {
- logo: A('o2.png'),
- num: A('num2.png'),
- title: '\u4E2A\u4EBA\u98CE\u91C7\u5C55\u793A',
- desc: '\u53EF\u53D1\u5E03\u81EA\u5DF1\u7684\u4E13\u4E1A\u7ECF\u5386\u3001\u83B7\u5956\u8BB0\u5F55\u53CA\u97F3\u89C6\u9891\u8D44\u6599\u5BF9\u6C42\u5B66\u8005\u5C55\u793A\uFF0C\u8BA9\u5B66\u5458\u66F4\u52A0\u6DF1\u5165\u7684\u4E86\u89E3\u60A8\u7684\u4E13\u4E1A\u6280\u80FD\uFF0C\u4ECE\u800C\u63D0\u9AD8\u7EA6\u8BFE\u7387\u3002'
- },
- {
- logo: A('o3.png'),
- num: A('num3.png'),
- title: '\u66F2\u8C31\u4E0A\u4F20',
- desc: '\u53EF\u4E0A\u4F20\u60A8\u5236\u4F5C\u7684MIDI\u4E50\u8C31\u4E3A\u6C42\u5B66\u8005\u63D0\u4F9B\u5B66\u4E60\u66F2\u76EE\u7684\u9014\u5F84\uFF0C\u5E76\u4ECE\u4E2D\u83B7\u5F97\u6536\u76CA\u3002'
- },
- {
- logo: A('o4.png'),
- num: A('num4.png'),
- title: '\u6536\u76CA\u63D0\u73B0',
- desc: '\u5728\u60A8\u6388\u8BFE\u53CA\u4E0A\u4F20\u66F2\u8C31\u9500\u552E\u540E\uFF0C\u7ECF\u8FC7\u5E73\u53F0\u6838\u7B97\uFF0C\u5C06\u60A8\u83B7\u5F97\u7684\u6536\u76CA\u53D1\u653E\u81F3\u60A8\u7684\u4E2A\u4EBA\u8D26\u6237\u4E0B\uFF0C\u60A8\u53EF\u968F\u65F6\u5C06\u81EA\u5DF1\u83B7\u5F97\u7684\u6536\u76CA\u63D0\u73B0\u3002'
- }
- ]
- }
- },
- render() {
- let e
- return a('div', { class: [D.musicAuth, 'px-[138px]'] }, [
- a('div', { class: 'w-[388px] pt-24 pb-28' }, [
- a('div', { class: 'text-[28px] font-semibold pb-5' }, [
- p('\u9177\u4E50\u79C0\u57FA\u672C\u4ECB\u7ECD')
- ]),
- a('p', { class: [D.txt] }, [
- p(
- '\u9177\u4E50\u79C0\u662F\u4E00\u6B3E\u4E3A\u5668\u4E50\u5B66\u4E60\u8005\u63D0\u4F9B\u667A\u80FD\u966A\u7EC3\u53CA\u7EBF\u4E0A\u6388\u8BFE\u64AE'
- )
- ]),
- a('p', { class: [D.txt] }, [
- p(
- '\u5408\u7684\u4E50\u5668\u6559\u5B66\u5E73\u53F0\uFF0C\u5668\u4E50\u8001\u5E08\u53EF\u901A\u8FC7\u81EA\u8EAB\u7684\u4E13\u4E1A\u77E5\u8BC6\u4E3A'
- )
- ]),
- a('p', { class: [D.txt, 'inline-block'] }, [
- p('\u81EA\u5DF1\u5E26\u6765'),
- a('span', { class: 'font-semibold' }, [
- p('\u6388\u8BFE\u53CA\u66F2\u8C31\u9500\u552E\u6536\u76CA')
- ]),
- p('\u3002')
- ])
- ]),
- a('div', { class: 'pb-20' }, [
- a('h2', { class: 'text-2xl pb-11 text-center font-semibold' }, [
- p('\u8BA4\u8BC1\u6743\u76CA')
- ]),
- a(
- rt,
- { class: 'mb-24', gutter: 28 },
- Xt(
- (e = this.list.map(t =>
- a(
- ot,
- { span: 6, class: 'pr-3 !flex' },
- {
- default: () => [
- a(
- 'div',
- { class: [D.col, 'flex items-center flex-col p-4'] },
- [
- a(
- 'img',
- { class: 'w-[94px] h-[87px]', src: t.logo },
- null
- ),
- a(
- 'div',
- {
- class:
- 'flex items-center font-[18px] font-semibold pb-3 pt-5'
- },
- [
- a(
- 'img',
- { class: 'w-[30px] h-[22px] mr-1', src: t.num },
- null
- ),
- t.title
- ]
- ),
- a(
- 'p',
- {
- class:
- 'text-[14px] text-[#666] leading-6 text-justify'
- },
- [t.desc]
- )
- ]
- )
- ]
- }
- )
- ))
- )
- ? e
- : { default: () => [e] }
- ),
- !this.authStatus &&
- a(Ne, null, [
- a('h2', { class: 'text-2xl pb-10 text-center font-semibold' }, [
- p('\u9177\u4E50\u79C0\u6B22\u8FCE\u60A8\u7684\u52A0\u5165')
- ]),
- a('p', { class: 'text-lg text-center mb-10' }, [
- p(
- '\u5728\u827A\u672F\u7684\u6BBF\u5802\u4E2D\uFF0C\u4E3A\u4ED6\u4EBA\u7167\u4EAE\u524D\u8FDB\u7684\u9053\u8DEF\uFF0C\u7528\u81EA\u5DF1\u7684\u7ECF\u9A8C\u548C\u70B9\u62E8\uFF0C\u4F20\u64AD\u827A\u672F\u7684\u79CD\u5B50\uFF0C\u83B7\u53D6\u7855\u679C\u3002'
- )
- ]),
- a('div', { class: 'text-center' }, [
- a(
- I,
- {
- type: 'primary',
- class: 'rounded w-40 !h-[38px]',
- disabled: this.auth.status,
- onClick: () => {
- const t =
- document.documentElement.scrollTop ||
- document.body.scrollTop
- nt(t, 0), (l.nextStatus = !0)
- }
- },
- { default: () => [this.auth.text] }
- )
- ])
- ])
- ])
- ])
- }
- })
- const ia = e => {
- const t = `../images/${e}`
- return {
- '../images/bg_bottom.png': le,
- '../images/bg_center.png': ue,
- '../images/bg_left_bottom.png': se,
- '../images/bg_right_center.png': re,
- '../images/bg_top.png': oe,
- '../images/icon_music.png': ne,
- '../images/icon_teacher_auth.png': ie,
- '../images/midi_money.png': de,
- '../images/midi_upload.png': ce,
- '../images/music_main.png': me,
- '../images/num1.png': be,
- '../images/num2.png': pe,
- '../images/num3.png': he,
- '../images/num4.png': ge,
- '../images/o1.png': fe,
- '../images/o2.png': ve,
- '../images/o3.png': Ce,
- '../images/o4.png': xe,
- '../images/teacher_main.png': _e
- }[t].default
- }
- var da = S({
- name: 'teacherAuth',
- async mounted() {
- var e
- try {
- if (B.user.status !== 'login') return
- const t = ((e = B.user.data) == null ? void 0 : e.entryStatus) || 0
- l.authStatus = t === 'DOING' || t === 'PASS'
- } catch {}
- },
- computed: {
- authStatus() {
- var t
- const e = ((t = B.user.data) == null ? void 0 : t.entryStatus) || 0
- return e === 'DOING' || e === 'PASS'
- },
- userAuth() {
- const e = B.user.data || {}
- return !!(e.idCardNo && e.realName)
- }
- },
- render() {
- return a(
- 'div',
- {
- class:
- 'w-[1200px] mt-36 mb-[60px] bg-white min-h-full m-auto text-[#333]'
- },
- [this.authStatus || !l.nextStatus ? a(Zt, null, null) : a(Tt, null, null)]
- )
- }
- })
- export { da as default, ia as getAssetsHomeFile }
|