index-legacy.bf445a09.js 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  1. !(function () {
  2. function t(e) {
  3. return (
  4. (t =
  5. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  6. ? function (t) {
  7. return typeof t
  8. }
  9. : function (t) {
  10. return t &&
  11. 'function' == typeof Symbol &&
  12. t.constructor === Symbol &&
  13. t !== Symbol.prototype
  14. ? 'symbol'
  15. : typeof t
  16. }),
  17. t(e)
  18. )
  19. }
  20. function e() {
  21. 'use strict'
  22. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ e =
  23. function () {
  24. return r
  25. }
  26. var r = {},
  27. n = Object.prototype,
  28. o = n.hasOwnProperty,
  29. i = 'function' == typeof Symbol ? Symbol : {},
  30. a = i.iterator || '@@iterator',
  31. u = i.asyncIterator || '@@asyncIterator',
  32. l = i.toStringTag || '@@toStringTag'
  33. function c(t, e, r) {
  34. return (
  35. Object.defineProperty(t, e, {
  36. value: r,
  37. enumerable: !0,
  38. configurable: !0,
  39. writable: !0
  40. }),
  41. t[e]
  42. )
  43. }
  44. try {
  45. c({}, '')
  46. } catch (O) {
  47. c = function (t, e, r) {
  48. return (t[e] = r)
  49. }
  50. }
  51. function s(t, e, r, n) {
  52. var o = e && e.prototype instanceof p ? e : p,
  53. i = Object.create(o.prototype),
  54. a = new S(n || [])
  55. return (
  56. (i._invoke = (function (t, e, r) {
  57. var n = 'suspendedStart'
  58. return function (o, i) {
  59. if ('executing' === n)
  60. throw new Error('Generator is already running')
  61. if ('completed' === n) {
  62. if ('throw' === o) throw i
  63. return I()
  64. }
  65. for (r.method = o, r.arg = i; ; ) {
  66. var a = r.delegate
  67. if (a) {
  68. var u = L(a, r)
  69. if (u) {
  70. if (u === h) continue
  71. return u
  72. }
  73. }
  74. if ('next' === r.method) r.sent = r._sent = r.arg
  75. else if ('throw' === r.method) {
  76. if ('suspendedStart' === n) throw ((n = 'completed'), r.arg)
  77. r.dispatchException(r.arg)
  78. } else 'return' === r.method && r.abrupt('return', r.arg)
  79. n = 'executing'
  80. var l = f(t, e, r)
  81. if ('normal' === l.type) {
  82. if (
  83. ((n = r.done ? 'completed' : 'suspendedYield'), l.arg === h)
  84. )
  85. continue
  86. return { value: l.arg, done: r.done }
  87. }
  88. 'throw' === l.type &&
  89. ((n = 'completed'), (r.method = 'throw'), (r.arg = l.arg))
  90. }
  91. }
  92. })(t, r, a)),
  93. i
  94. )
  95. }
  96. function f(t, e, r) {
  97. try {
  98. return { type: 'normal', arg: t.call(e, r) }
  99. } catch (O) {
  100. return { type: 'throw', arg: O }
  101. }
  102. }
  103. r.wrap = s
  104. var h = {}
  105. function p() {}
  106. function d() {}
  107. function v() {}
  108. var g = {}
  109. c(g, a, function () {
  110. return this
  111. })
  112. var y = Object.getPrototypeOf,
  113. m = y && y(y(N([])))
  114. m && m !== n && o.call(m, a) && (g = m)
  115. var w = (v.prototype = p.prototype = Object.create(g))
  116. function x(t) {
  117. ;['next', 'throw', 'return'].forEach(function (e) {
  118. c(t, e, function (t) {
  119. return this._invoke(e, t)
  120. })
  121. })
  122. }
  123. function b(e, r) {
  124. function n(i, a, u, l) {
  125. var c = f(e[i], e, a)
  126. if ('throw' !== c.type) {
  127. var s = c.arg,
  128. h = s.value
  129. return h && 'object' == t(h) && o.call(h, '__await')
  130. ? r.resolve(h.__await).then(
  131. function (t) {
  132. n('next', t, u, l)
  133. },
  134. function (t) {
  135. n('throw', t, u, l)
  136. }
  137. )
  138. : r.resolve(h).then(
  139. function (t) {
  140. ;(s.value = t), u(s)
  141. },
  142. function (t) {
  143. return n('throw', t, u, l)
  144. }
  145. )
  146. }
  147. l(c.arg)
  148. }
  149. var i
  150. this._invoke = function (t, e) {
  151. function o() {
  152. return new r(function (r, o) {
  153. n(t, e, r, o)
  154. })
  155. }
  156. return (i = i ? i.then(o, o) : o())
  157. }
  158. }
  159. function L(t, e) {
  160. var r = t.iterator[e.method]
  161. if (void 0 === r) {
  162. if (((e.delegate = null), 'throw' === e.method)) {
  163. if (
  164. t.iterator.return &&
  165. ((e.method = 'return'),
  166. (e.arg = void 0),
  167. L(t, e),
  168. 'throw' === e.method)
  169. )
  170. return h
  171. ;(e.method = 'throw'),
  172. (e.arg = new TypeError(
  173. "The iterator does not provide a 'throw' method"
  174. ))
  175. }
  176. return h
  177. }
  178. var n = f(r, t.iterator, e.arg)
  179. if ('throw' === n.type)
  180. return (e.method = 'throw'), (e.arg = n.arg), (e.delegate = null), h
  181. var o = n.arg
  182. return o
  183. ? o.done
  184. ? ((e[t.resultName] = o.value),
  185. (e.next = t.nextLoc),
  186. 'return' !== e.method && ((e.method = 'next'), (e.arg = void 0)),
  187. (e.delegate = null),
  188. h)
  189. : o
  190. : ((e.method = 'throw'),
  191. (e.arg = new TypeError('iterator result is not an object')),
  192. (e.delegate = null),
  193. h)
  194. }
  195. function _(t) {
  196. var e = { tryLoc: t[0] }
  197. 1 in t && (e.catchLoc = t[1]),
  198. 2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
  199. this.tryEntries.push(e)
  200. }
  201. function E(t) {
  202. var e = t.completion || {}
  203. ;(e.type = 'normal'), delete e.arg, (t.completion = e)
  204. }
  205. function S(t) {
  206. ;(this.tryEntries = [{ tryLoc: 'root' }]),
  207. t.forEach(_, this),
  208. this.reset(!0)
  209. }
  210. function N(t) {
  211. if (t) {
  212. var e = t[a]
  213. if (e) return e.call(t)
  214. if ('function' == typeof t.next) return t
  215. if (!isNaN(t.length)) {
  216. var r = -1,
  217. n = function e() {
  218. for (; ++r < t.length; )
  219. if (o.call(t, r)) return (e.value = t[r]), (e.done = !1), e
  220. return (e.value = void 0), (e.done = !0), e
  221. }
  222. return (n.next = n)
  223. }
  224. }
  225. return { next: I }
  226. }
  227. function I() {
  228. return { value: void 0, done: !0 }
  229. }
  230. return (
  231. (d.prototype = v),
  232. c(w, 'constructor', v),
  233. c(v, 'constructor', d),
  234. (d.displayName = c(v, l, 'GeneratorFunction')),
  235. (r.isGeneratorFunction = function (t) {
  236. var e = 'function' == typeof t && t.constructor
  237. return (
  238. !!e && (e === d || 'GeneratorFunction' === (e.displayName || e.name))
  239. )
  240. }),
  241. (r.mark = function (t) {
  242. return (
  243. Object.setPrototypeOf
  244. ? Object.setPrototypeOf(t, v)
  245. : ((t.__proto__ = v), c(t, l, 'GeneratorFunction')),
  246. (t.prototype = Object.create(w)),
  247. t
  248. )
  249. }),
  250. (r.awrap = function (t) {
  251. return { __await: t }
  252. }),
  253. x(b.prototype),
  254. c(b.prototype, u, function () {
  255. return this
  256. }),
  257. (r.AsyncIterator = b),
  258. (r.async = function (t, e, n, o, i) {
  259. void 0 === i && (i = Promise)
  260. var a = new b(s(t, e, n, o), i)
  261. return r.isGeneratorFunction(e)
  262. ? a
  263. : a.next().then(function (t) {
  264. return t.done ? t.value : a.next()
  265. })
  266. }),
  267. x(w),
  268. c(w, l, 'Generator'),
  269. c(w, a, function () {
  270. return this
  271. }),
  272. c(w, 'toString', function () {
  273. return '[object Generator]'
  274. }),
  275. (r.keys = function (t) {
  276. var e = []
  277. for (var r in t) e.push(r)
  278. return (
  279. e.reverse(),
  280. function r() {
  281. for (; e.length; ) {
  282. var n = e.pop()
  283. if (n in t) return (r.value = n), (r.done = !1), r
  284. }
  285. return (r.done = !0), r
  286. }
  287. )
  288. }),
  289. (r.values = N),
  290. (S.prototype = {
  291. constructor: S,
  292. reset: function (t) {
  293. if (
  294. ((this.prev = 0),
  295. (this.next = 0),
  296. (this.sent = this._sent = void 0),
  297. (this.done = !1),
  298. (this.delegate = null),
  299. (this.method = 'next'),
  300. (this.arg = void 0),
  301. this.tryEntries.forEach(E),
  302. !t)
  303. )
  304. for (var e in this)
  305. 't' === e.charAt(0) &&
  306. o.call(this, e) &&
  307. !isNaN(+e.slice(1)) &&
  308. (this[e] = void 0)
  309. },
  310. stop: function () {
  311. this.done = !0
  312. var t = this.tryEntries[0].completion
  313. if ('throw' === t.type) throw t.arg
  314. return this.rval
  315. },
  316. dispatchException: function (t) {
  317. if (this.done) throw t
  318. var e = this
  319. function r(r, n) {
  320. return (
  321. (a.type = 'throw'),
  322. (a.arg = t),
  323. (e.next = r),
  324. n && ((e.method = 'next'), (e.arg = void 0)),
  325. !!n
  326. )
  327. }
  328. for (var n = this.tryEntries.length - 1; n >= 0; --n) {
  329. var i = this.tryEntries[n],
  330. a = i.completion
  331. if ('root' === i.tryLoc) return r('end')
  332. if (i.tryLoc <= this.prev) {
  333. var u = o.call(i, 'catchLoc'),
  334. l = o.call(i, 'finallyLoc')
  335. if (u && l) {
  336. if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
  337. if (this.prev < i.finallyLoc) return r(i.finallyLoc)
  338. } else if (u) {
  339. if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
  340. } else {
  341. if (!l)
  342. throw new Error('try statement without catch or finally')
  343. if (this.prev < i.finallyLoc) return r(i.finallyLoc)
  344. }
  345. }
  346. }
  347. },
  348. abrupt: function (t, e) {
  349. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  350. var n = this.tryEntries[r]
  351. if (
  352. n.tryLoc <= this.prev &&
  353. o.call(n, 'finallyLoc') &&
  354. this.prev < n.finallyLoc
  355. ) {
  356. var i = n
  357. break
  358. }
  359. }
  360. i &&
  361. ('break' === t || 'continue' === t) &&
  362. i.tryLoc <= e &&
  363. e <= i.finallyLoc &&
  364. (i = null)
  365. var a = i ? i.completion : {}
  366. return (
  367. (a.type = t),
  368. (a.arg = e),
  369. i
  370. ? ((this.method = 'next'), (this.next = i.finallyLoc), h)
  371. : this.complete(a)
  372. )
  373. },
  374. complete: function (t, e) {
  375. if ('throw' === t.type) throw t.arg
  376. return (
  377. 'break' === t.type || 'continue' === t.type
  378. ? (this.next = t.arg)
  379. : 'return' === t.type
  380. ? ((this.rval = this.arg = t.arg),
  381. (this.method = 'return'),
  382. (this.next = 'end'))
  383. : 'normal' === t.type && e && (this.next = e),
  384. h
  385. )
  386. },
  387. finish: function (t) {
  388. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  389. var r = this.tryEntries[e]
  390. if (r.finallyLoc === t)
  391. return this.complete(r.completion, r.afterLoc), E(r), h
  392. }
  393. },
  394. catch: function (t) {
  395. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  396. var r = this.tryEntries[e]
  397. if (r.tryLoc === t) {
  398. var n = r.completion
  399. if ('throw' === n.type) {
  400. var o = n.arg
  401. E(r)
  402. }
  403. return o
  404. }
  405. }
  406. throw new Error('illegal catch attempt')
  407. },
  408. delegateYield: function (t, e, r) {
  409. return (
  410. (this.delegate = { iterator: N(t), resultName: e, nextLoc: r }),
  411. 'next' === this.method && (this.arg = void 0),
  412. h
  413. )
  414. }
  415. }),
  416. r
  417. )
  418. }
  419. function r(t, e, r, n, o, i, a) {
  420. try {
  421. var u = t[i](a),
  422. l = u.value
  423. } catch (c) {
  424. return void r(c)
  425. }
  426. u.done ? e(l) : Promise.resolve(l).then(n, o)
  427. }
  428. var n = document.createElement('style')
  429. ;(n.innerHTML =
  430. '._liveClass_w1fih_1 .el-tabs__nav-wrap{padding-left:2.75rem;padding-right:2.75rem}._liveClass_w1fih_1 .el-tabs__item{font-size:1rem;line-height:1.5rem;color:#666;height:64px;line-height:64px;padding:0 42px}._liveClass_w1fih_1 .el-tabs__nav-wrap:after{height:1px;background:#eeeeee}\n'),
  431. document.head.appendChild(n),
  432. System.register(
  433. [
  434. './index-legacy.5524926d.js',
  435. './index-legacy.568e8c08.js',
  436. './index-legacy.c66b915f.js',
  437. './index-legacy.d01a43c0.js',
  438. './index2-legacy.d9c63cd8.js',
  439. './index2-legacy.439446f2.js',
  440. './index2-legacy.ef013f4d.js'
  441. ],
  442. function (t) {
  443. 'use strict'
  444. var n, o, i, a, u, l, c, s, f, h, p, d, v, g, y
  445. return {
  446. setters: [
  447. function (t) {
  448. ;(n = t.d),
  449. (o = t.b),
  450. (i = t.aZ),
  451. (a = t.c),
  452. (u = t.F),
  453. (l = t.N),
  454. (c = t.b0),
  455. (s = t.a),
  456. (f = t.aA),
  457. (h = t.aB)
  458. },
  459. function (t) {
  460. p = t.C
  461. },
  462. function (t) {
  463. d = t.P
  464. },
  465. function (t) {
  466. v = t.I
  467. },
  468. function (t) {
  469. ;(g = t.E), (y = t.a)
  470. },
  471. function () {},
  472. function () {}
  473. ],
  474. execute: function () {
  475. var m = '_liveClass_w1fih_1',
  476. w = n({
  477. name: 'list',
  478. props: { groupStatus: { type: String, default: '' } },
  479. data: function () {
  480. return {
  481. pageInfo: {
  482. limit: 9,
  483. page: 1,
  484. total: 0,
  485. page_size: [9, 18, 36, 45]
  486. },
  487. list: [],
  488. loading: !1,
  489. dataShow: !1
  490. }
  491. },
  492. mounted: function () {
  493. this.getList()
  494. },
  495. methods: {
  496. getList: function () {
  497. var t,
  498. n = this
  499. return ((t = e().mark(function t() {
  500. var r, a, u
  501. return e().wrap(
  502. function (t) {
  503. for (;;)
  504. switch ((t.prev = t.next)) {
  505. case 0:
  506. return (
  507. (n.loading = !0),
  508. (t.prev = 1),
  509. (t.next = 4),
  510. o.post(
  511. '/api-website/courseGroup/queryPageCourseGroup',
  512. {
  513. data: {
  514. groupStatus: n.groupStatus,
  515. page: n.pageInfo.page,
  516. rows: n.pageInfo.limit,
  517. teacherId:
  518. null === (r = i.user.data) ||
  519. void 0 === r
  520. ? void 0
  521. : r.userId
  522. }
  523. }
  524. )
  525. )
  526. case 4:
  527. ;(a = t.sent),
  528. (u = a.data),
  529. (n.list = u.rows || []),
  530. (n.pageInfo.total = u.total),
  531. u.total <= 0 && (n.dataShow = !0),
  532. (t.next = 13)
  533. break
  534. case 11:
  535. ;(t.prev = 11), (t.t0 = t.catch(1))
  536. case 13:
  537. n.dataShow
  538. ? (n.loading = !1)
  539. : setTimeout(function () {
  540. n.loading = !1
  541. }, 200)
  542. case 14:
  543. case 'end':
  544. return t.stop()
  545. }
  546. },
  547. t,
  548. null,
  549. [[1, 11]]
  550. )
  551. })),
  552. function () {
  553. var e = this,
  554. n = arguments
  555. return new Promise(function (o, i) {
  556. var a = t.apply(e, n)
  557. function u(t) {
  558. r(a, o, i, u, l, 'next', t)
  559. }
  560. function l(t) {
  561. r(a, o, i, u, l, 'throw', t)
  562. }
  563. u(void 0)
  564. })
  565. })()
  566. }
  567. },
  568. render: function () {
  569. var t,
  570. e,
  571. r,
  572. n,
  573. o = this
  574. return a(u, null, [
  575. null !== (t = i.user.data) &&
  576. void 0 !== t &&
  577. t.entryFlag &&
  578. null !== (e = i.user.data) &&
  579. void 0 !== e &&
  580. e.liveFlag
  581. ? a(u, null, [
  582. a('div', { class: 'flex flex-wrap px-10' }, [
  583. a(
  584. g,
  585. {
  586. loading: this.loading,
  587. animated: !0,
  588. class: 'flex',
  589. count: 3
  590. },
  591. {
  592. default: function () {
  593. return [
  594. o.list.map(function (t) {
  595. return a('div', { class: 'w-1/3 pt-8' }, [
  596. a(
  597. v,
  598. { class: 'cursor-pointer', item: t },
  599. null
  600. )
  601. ])
  602. })
  603. ]
  604. },
  605. template: function () {
  606. return a('div', { class: 'w-1/3' }, [
  607. a(
  608. 'div',
  609. {
  610. class:
  611. 'flex flex-col pt-8 w-[262px] m-auto'
  612. },
  613. [
  614. a(
  615. y,
  616. {
  617. variant: 'image',
  618. style: {
  619. width: '100%',
  620. height: '175px'
  621. }
  622. },
  623. null
  624. ),
  625. a(
  626. 'div',
  627. {
  628. class:
  629. 'mx-2.5 py-3.5 border-b border-b-[#F2F2F2]'
  630. },
  631. [
  632. a(
  633. 'div',
  634. {
  635. class:
  636. 'text-lg leading-none font-medium whitespace-nowrap overflow-hidden text-ellipsis'
  637. },
  638. [a(y, { variant: 'h3' }, null)]
  639. ),
  640. a(
  641. 'div',
  642. {
  643. class:
  644. 'text-sm text-[#999] pt-2.5'
  645. },
  646. [
  647. a(
  648. y,
  649. {
  650. variant: 'p',
  651. style: { width: '50%' }
  652. },
  653. null
  654. )
  655. ]
  656. )
  657. ]
  658. ),
  659. a(
  660. 'div',
  661. {
  662. class:
  663. 'mx-2.5 py-4 flex items-center'
  664. },
  665. [
  666. a(
  667. y,
  668. {
  669. variant: 'circle',
  670. style: {
  671. width: '22px',
  672. height: '22px',
  673. marginRight: '5px'
  674. }
  675. },
  676. null
  677. ),
  678. a(
  679. y,
  680. {
  681. variant: 'p',
  682. style: { width: '20%' }
  683. },
  684. null
  685. ),
  686. a(
  687. 'p',
  688. { style: { width: '45%' } },
  689. null
  690. ),
  691. a(
  692. y,
  693. {
  694. variant: 'p',
  695. style: { width: '20%' }
  696. },
  697. null
  698. )
  699. ]
  700. )
  701. ]
  702. )
  703. ])
  704. }
  705. }
  706. )
  707. ]),
  708. a(
  709. d,
  710. {
  711. total: this.pageInfo.total,
  712. page: this.pageInfo.page,
  713. 'onUpdate:page': function (t) {
  714. return (o.pageInfo.page = t)
  715. },
  716. limit: this.pageInfo.limit,
  717. 'onUpdate:limit': function (t) {
  718. return (o.pageInfo.limit = t)
  719. },
  720. pageSizes: this.pageInfo.page_size,
  721. pagination: this.getList
  722. },
  723. null
  724. ),
  725. this.dataShow && a(p, null, null)
  726. ])
  727. : null !== (r = i.user.data) &&
  728. void 0 !== r &&
  729. r.entryFlag
  730. ? !(
  731. null !== (n = i.user.data) &&
  732. void 0 !== n &&
  733. n.liveFlag
  734. ) &&
  735. a(
  736. p,
  737. {
  738. type: 'live',
  739. message:
  740. '您尚未开通直播服务,开通后即可创建直播课程~',
  741. buttonVisibility: !1,
  742. buttonText: '立即开通',
  743. onDetail: function () {
  744. o.$router.push('/teacherAuth')
  745. }
  746. },
  747. null
  748. )
  749. : a(
  750. p,
  751. {
  752. type: 'teacherCert',
  753. message:
  754. '您还未完成达人认证,认证后才可创建视频课哦~',
  755. buttonVisibility: !0,
  756. buttonText: '去认证',
  757. onDetail: function () {
  758. o.$router.push('/teacherAuth')
  759. }
  760. },
  761. null
  762. )
  763. ])
  764. }
  765. })
  766. t(
  767. 'default',
  768. n({
  769. name: 'live-class',
  770. data: function () {
  771. return { activeName: 'ING' }
  772. },
  773. render: function () {
  774. var t = this
  775. return a('div', { class: [m, 'relative'] }, [
  776. a(
  777. l,
  778. {
  779. round: !0,
  780. type: 'primary',
  781. class: 'absolute right-11 top-4 z-10',
  782. onClick: function () {
  783. var e, r
  784. if (
  785. null !== (e = i.user.data) &&
  786. void 0 !== e &&
  787. e.enableFlag &&
  788. null !== (r = i.user.data) &&
  789. void 0 !== r &&
  790. r.liveFlag
  791. )
  792. t.$router.push({
  793. path: '/userInfo/liveOperation',
  794. query: { type: 'create' }
  795. })
  796. else {
  797. var n, o
  798. if (
  799. null === (n = i.user.data) ||
  800. void 0 === n ||
  801. !n.enableFlag
  802. )
  803. return void c.error(
  804. '您还未完成达人认证,认证后才可创建视频课'
  805. )
  806. if (
  807. null === (o = i.user.data) ||
  808. void 0 === o ||
  809. !o.liveFlag
  810. )
  811. return void c.error(
  812. '您尚未开通直播服务,开通后即可创建直播课程'
  813. )
  814. }
  815. }
  816. },
  817. {
  818. default: function () {
  819. return [s('新建直播课')]
  820. }
  821. }
  822. ),
  823. a(
  824. f,
  825. {
  826. modelValue: this.activeName,
  827. 'onUpdate:modelValue': function (e) {
  828. return (t.activeName = e)
  829. }
  830. },
  831. {
  832. default: function () {
  833. return [
  834. a(
  835. h,
  836. { label: '进行中', name: 'ING' },
  837. {
  838. default: function () {
  839. return [
  840. 'ING' === t.activeName &&
  841. a(w, { groupStatus: 'ING' }, null)
  842. ]
  843. }
  844. }
  845. ),
  846. a(
  847. h,
  848. { label: '未上架', name: 'NOT_SALE' },
  849. {
  850. default: function () {
  851. return [
  852. 'NOT_SALE' === t.activeName &&
  853. a(w, { groupStatus: 'NOT_SALE' }, null)
  854. ]
  855. }
  856. }
  857. ),
  858. a(
  859. h,
  860. { label: '销售中', name: 'APPLY' },
  861. {
  862. default: function () {
  863. return [
  864. 'APPLY' === t.activeName &&
  865. a(w, { groupStatus: 'APPLY' }, null)
  866. ]
  867. }
  868. }
  869. ),
  870. a(
  871. h,
  872. { label: '已完成', name: 'COMPLETE' },
  873. {
  874. default: function () {
  875. return [
  876. 'COMPLETE' === t.activeName &&
  877. a(w, { groupStatus: 'COMPLETE' }, null)
  878. ]
  879. }
  880. }
  881. ),
  882. a(
  883. h,
  884. { label: '已取消', name: 'CANCEL' },
  885. {
  886. default: function () {
  887. return [
  888. 'CANCEL' === t.activeName &&
  889. a(w, { groupStatus: 'CANCEL' }, null)
  890. ]
  891. }
  892. }
  893. )
  894. ]
  895. }
  896. }
  897. )
  898. ])
  899. }
  900. })
  901. )
  902. }
  903. }
  904. }
  905. )
  906. })()