123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- import {
- d as g,
- b as m,
- a_ as l,
- c as t,
- F as d,
- O as f,
- b1 as h,
- a as c,
- aB as v,
- aC as o
- } from './index.1d0cc84f.js'
- import { C as p } from './index.b42087f4.js'
- import { P as y } from './index.cf4d47ea.js'
- import { I as x } from './index.37658c21.js'
- import { E as w, a as s } from './index2.07a0e1bf.js'
- import './index2.ba9e0a49.js'
- import './index2.6b7eb987.js'
- const E = '_liveClass_w1fih_1'
- var b = { liveClass: E },
- u = g({
- name: 'list',
- props: { groupStatus: { type: String, default: '' } },
- data() {
- return {
- pageInfo: { limit: 9, page: 1, total: 0, page_size: [9, 18, 36, 45] },
- list: [],
- loading: !1,
- dataShow: !1
- }
- },
- mounted() {
- this.getList()
- },
- methods: {
- async getList() {
- var e
- this.loading = !0
- try {
- const { data: a } = await m.post(
- '/api-website/courseGroup/queryPageCourseGroup',
- {
- data: {
- groupStatus: this.groupStatus,
- page: this.pageInfo.page,
- rows: this.pageInfo.limit,
- teacherId: (e = l.user.data) == null ? void 0 : e.userId
- }
- }
- )
- ;(this.list = a.rows || []),
- (this.pageInfo.total = a.total),
- a.total <= 0 && (this.dataShow = !0)
- } catch {}
- this.dataShow
- ? (this.loading = !1)
- : setTimeout(() => {
- this.loading = !1
- }, 200)
- }
- },
- render() {
- var e, a, i, r
- return t(d, null, [
- ((e = l.user.data) == null ? void 0 : e.entryFlag) &&
- ((a = l.user.data) == null ? void 0 : a.liveFlag)
- ? t(d, null, [
- t('div', { class: 'flex flex-wrap px-10' }, [
- t(
- w,
- {
- loading: this.loading,
- animated: !0,
- class: 'flex',
- count: 3
- },
- {
- default: () => [
- this.list.map(n =>
- t('div', { class: 'w-1/3 pt-8' }, [
- t(x, { item: n }, null)
- ])
- )
- ],
- template: () =>
- t('div', { class: 'w-1/3' }, [
- t(
- 'div',
- { class: 'flex flex-col pt-8 w-[262px] m-auto' },
- [
- t(
- s,
- {
- variant: 'image',
- style: { width: '100%', height: '175px' }
- },
- null
- ),
- t(
- 'div',
- {
- class:
- 'mx-2.5 py-3.5 border-b border-b-[#F2F2F2]'
- },
- [
- t(
- 'div',
- {
- class:
- 'text-lg leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis'
- },
- [t(s, { variant: 'h3' }, null)]
- ),
- t(
- 'div',
- { class: 'text-sm text-[#999] pt-2.5' },
- [
- t(
- s,
- { variant: 'p', style: { width: '50%' } },
- null
- )
- ]
- )
- ]
- ),
- t(
- 'div',
- { class: 'mx-2.5 py-4 flex items-center' },
- [
- t(
- s,
- {
- variant: 'circle',
- style: {
- width: '22px',
- height: '22px',
- marginRight: '5px'
- }
- },
- null
- ),
- t(
- s,
- { variant: 'p', style: { width: '20%' } },
- null
- ),
- t('p', { style: { width: '45%' } }, null),
- t(
- s,
- { variant: 'p', style: { width: '20%' } },
- null
- )
- ]
- )
- ]
- )
- ])
- }
- )
- ]),
- t(
- y,
- {
- total: this.pageInfo.total,
- page: this.pageInfo.page,
- 'onUpdate:page': n => (this.pageInfo.page = n),
- limit: this.pageInfo.limit,
- 'onUpdate:limit': n => (this.pageInfo.limit = n),
- pageSizes: this.pageInfo.page_size,
- pagination: this.getList
- },
- null
- ),
- this.dataShow && t(p, null, null)
- ])
- : (i = l.user.data) != null && i.entryFlag
- ? !((r = l.user.data) != null && r.liveFlag) &&
- t(
- p,
- {
- type: 'live',
- message:
- '\u60A8\u5C1A\u672A\u5F00\u901A\u76F4\u64AD\u670D\u52A1\uFF0C\u5F00\u901A\u540E\u5373\u53EF\u521B\u5EFA\u76F4\u64AD\u8BFE\u7A0B~',
- buttonVisibility: !1,
- buttonText: '\u7ACB\u5373\u5F00\u901A',
- onDetail: () => {
- this.$router.push('/teacherAuth')
- }
- },
- null
- )
- : t(
- p,
- {
- type: 'teacherCert',
- message:
- '\u60A8\u8FD8\u672A\u5B8C\u6210\u8FBE\u4EBA\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u540E\u624D\u53EF\u521B\u5EFA\u89C6\u9891\u8BFE\u54E6~',
- buttonVisibility: !0,
- buttonText: '\u53BB\u8BA4\u8BC1',
- onDetail: () => {
- this.$router.push('/teacherAuth')
- }
- },
- null
- )
- ])
- }
- }),
- P = g({
- name: 'live-class',
- data() {
- return { activeName: 'ING' }
- },
- render() {
- return t('div', { class: [b.liveClass, 'relative'] }, [
- t(
- f,
- {
- round: !0,
- type: 'primary',
- class: 'absolute right-11 top-4 z-10',
- onClick: () => {
- var e, a, i, r
- if (
- ((e = l.user.data) == null ? void 0 : e.entryFlag) &&
- ((a = l.user.data) == null ? void 0 : a.liveFlag)
- )
- this.$router.push({
- path: '/userInfo/liveOperation',
- query: { type: 'create' }
- })
- else {
- if (!((i = l.user.data) != null && i.entryFlag)) {
- h.error(
- '\u60A8\u8FD8\u672A\u5B8C\u6210\u8FBE\u4EBA\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u540E\u624D\u53EF\u521B\u5EFA\u89C6\u9891\u8BFE'
- )
- return
- }
- if (!((r = l.user.data) != null && r.liveFlag)) {
- h.error(
- '\u60A8\u5C1A\u672A\u5F00\u901A\u76F4\u64AD\u670D\u52A1\uFF0C\u5F00\u901A\u540E\u5373\u53EF\u521B\u5EFA\u76F4\u64AD\u8BFE\u7A0B'
- )
- return
- }
- }
- }
- },
- { default: () => [c('\u65B0\u5EFA\u76F4\u64AD\u8BFE')] }
- ),
- t(
- v,
- {
- modelValue: this.activeName,
- 'onUpdate:modelValue': e => (this.activeName = e)
- },
- {
- default: () => [
- t(
- o,
- { label: '\u8FDB\u884C\u4E2D', name: 'ING' },
- {
- default: () => [
- this.activeName === 'ING' &&
- t(u, { groupStatus: 'ING' }, null)
- ]
- }
- ),
- t(
- o,
- { label: '\u672A\u4E0A\u67B6', name: 'NOT_SALE' },
- {
- default: () => [
- this.activeName === 'NOT_SALE' &&
- t(u, { groupStatus: 'NOT_SALE' }, null)
- ]
- }
- ),
- t(
- o,
- { label: '\u9500\u552E\u4E2D', name: 'APPLY' },
- {
- default: () => [
- this.activeName === 'APPLY' &&
- t(u, { groupStatus: 'APPLY' }, null)
- ]
- }
- ),
- t(
- o,
- { label: '\u5DF2\u5B8C\u6210', name: 'COMPLETE' },
- {
- default: () => [
- this.activeName === 'COMPLETE' &&
- t(u, { groupStatus: 'COMPLETE' }, null)
- ]
- }
- ),
- t(
- o,
- { label: '\u5DF2\u53D6\u6D88', name: 'CANCEL' },
- {
- default: () => [
- this.activeName === 'CANCEL' &&
- t(u, { groupStatus: 'CANCEL' }, null)
- ]
- }
- )
- ]
- }
- )
- ])
- }
- })
- export { P as default }
|