index-legacy.0e2cafe9.js 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228
  1. ;(function () {
  2. function _toConsumableArray(arr) {
  3. return (
  4. _arrayWithoutHoles(arr) ||
  5. _iterableToArray(arr) ||
  6. _unsupportedIterableToArray(arr) ||
  7. _nonIterableSpread()
  8. )
  9. }
  10. function _nonIterableSpread() {
  11. throw new TypeError(
  12. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  13. )
  14. }
  15. function _unsupportedIterableToArray(o, minLen) {
  16. if (!o) return
  17. if (typeof o === 'string') return _arrayLikeToArray(o, minLen)
  18. var n = Object.prototype.toString.call(o).slice(8, -1)
  19. if (n === 'Object' && o.constructor) n = o.constructor.name
  20. if (n === 'Map' || n === 'Set') return Array.from(o)
  21. if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
  22. return _arrayLikeToArray(o, minLen)
  23. }
  24. function _iterableToArray(iter) {
  25. if (
  26. (typeof Symbol !== 'undefined' && iter[Symbol.iterator] != null) ||
  27. iter['@@iterator'] != null
  28. )
  29. return Array.from(iter)
  30. }
  31. function _arrayWithoutHoles(arr) {
  32. if (Array.isArray(arr)) return _arrayLikeToArray(arr)
  33. }
  34. function _arrayLikeToArray(arr, len) {
  35. if (len == null || len > arr.length) len = arr.length
  36. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  37. arr2[i] = arr[i]
  38. }
  39. return arr2
  40. }
  41. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  42. try {
  43. var info = gen[key](arg)
  44. var value = info.value
  45. } catch (error) {
  46. reject(error)
  47. return
  48. }
  49. if (info.done) {
  50. resolve(value)
  51. } else {
  52. Promise.resolve(value).then(_next, _throw)
  53. }
  54. }
  55. function _asyncToGenerator(fn) {
  56. return function () {
  57. var self = this,
  58. args = arguments
  59. return new Promise(function (resolve, reject) {
  60. var gen = fn.apply(self, args)
  61. function _next(value) {
  62. asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value)
  63. }
  64. function _throw(err) {
  65. asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err)
  66. }
  67. _next(undefined)
  68. })
  69. }
  70. }
  71. var __vite_style__ = document.createElement('style')
  72. __vite_style__.innerHTML =
  73. '._roomHeader_13gb6_1{background:url(./assets/room_bg.498828a6.png) top center no-repeat;background-size:100%;overflow:hidden}._roomHeader_13gb6_1 .van-row{align-items:center}._countTimer_13gb6_9{padding:.85333rem .64rem .58667rem}._countTimer_13gb6_9 ._timer_13gb6_12{padding-left:.05333rem;font-size:.69333rem;font-weight:600;color:#333;padding-bottom:.26667rem}._countTimer_13gb6_9 ._timer_13gb6_12 span{color:#666;font-size:.37333rem}._countTimer_13gb6_9 ._title_13gb6_23{display:flex;align-items:center;font-size:.32rem;color:#333;line-height:.45333rem}._countTimer_13gb6_9 ._title_13gb6_23 img{width:.4rem;height:.4rem;margin-right:.13333rem}._chargeTimer_13gb6_35 .van-button__text{display:flex;align-items:center;font-weight:600}._chargeTimer_13gb6_35 .van-button__text img{margin-left:.05333rem;width:.26667rem;height:.26667rem}._studentList_13gb6_45{margin:0 .37333rem .4rem;background:#ffffff;border-radius:.26667rem;overflow:hidden}._studentCount_13gb6_51{font-size:.37333rem;font-weight:500;color:#333}._btnGroupInvite_13gb6_56{display:flex;align-items:center;justify-content:space-between;padding-bottom:.10667rem}._btnGroupInvite_13gb6_56 .van-button{width:48%;font-size:.37333rem;font-weight:500;color:#333!important}._btnGroupInvite_13gb6_56 .van-button img{margin-right:.21333rem;width:.53333rem;height:.53333rem}._btnGroupInvite_13gb6_56 .van-button__text{display:flex;align-items:center}._searchList_13gb6_77{display:flex;padding:.32rem .42667rem;background-color:#fff}._dataItem_13gb6_82{font-size:.37333rem;color:#333;padding-right:.64rem}._shareSection_115rh_1{width:8.13333rem;padding:.37333rem;background:url(./assets/share_bg.252c9956.png) center no-repeat #01C1B5;background-size:cover;overflow:hidden}._shareSection_115rh_1 ._img_115rh_8{width:1.44rem;height:1.44rem;border-radius:50%;margin-right:.32rem}._shareSection_115rh_1 ._name_115rh_14{font-size:.48rem;font-weight:500;color:#1a1a1a;line-height:.48rem;max-width:3.46667rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._shareSection_115rh_1 ._titleTips_115rh_24{padding-top:.13333rem;font-size:.37333rem;color:#8a8a8a;line-height:.48rem}._section_115rh_30{background:#ffffff;border-radius:.29333rem;overflow:hidden;padding:.37333rem .42667rem .53333rem}._txt_115rh_36{font-size:.42667rem;color:#333;line-height:1.5}._txt_115rh_36 span{font-size:.48rem;font-weight:500;color:#01C1B5}._teacherName_115rh_46{padding-top:.53333rem}._download_115rh_49{margin-top:.26667rem;display:flex;align-items:center;justify-content:space-between}._download_115rh_49 ._logo_115rh_55{font-size:.34667rem;color:#349784;line-height:.48rem}._download_115rh_49 ._logo_115rh_55 img{width:2.48rem;vertical-align:middle;margin-bottom:.29333rem}._download_115rh_49 ._qrcode_115rh_65{position:relative;width:2.02667rem;height:2.02667rem}._download_115rh_49 ._qrcode_115rh_65 ._qrcodeCanvas_115rh_70{width:100%!important;height:100%!important}._download_115rh_49 ._qrcode_115rh_65 ._qrcodeLogo_115rh_74{position:absolute;top:50%;left:50%;margin-left:-.21333rem;margin-top:-.21333rem;width:.42667rem;height:.42667rem;border-radius:.10667rem}._continue_115rh_84{position:absolute;right:.66667rem;top:.53333rem;z-index:2;background:rgba(0,0,0,.23);border-radius:.50667rem;font-size:.37333rem;color:#fff;background:linear-gradient(0deg,#01C1B5 0%,#32e8c6 100%);padding:.16rem .48rem}._label_v8pn1_1{margin-right:.21333rem;font-size:.37333rem}._label_v8pn1_1 .van-list__loading,._label_v8pn1_1 .van-list__finished-text,._label_v8pn1_1 .van-list__error-text{width:100%}._label_v8pn1_1 .iconfont-down{margin-left:.10667rem}._studentList_v8pn1_13{height:55vh;overflow:auto}._studentList_v8pn1_13 .van-checkbox{justify-content:flex-end}._btnGroup_v8pn1_20{padding:0 .53333rem .37333rem}._confirmTitle_yqlm2_1{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;padding:.58667rem .58667rem .32rem}._confirmTitle_yqlm2_1 ._timer_yqlm2_8{color:#01C1B5}._addTitle_yqlm2_11,._calc_yqlm2_12{font-size:.42667rem;color:#666;line-height:.58667rem;padding:.32rem .58667rem 0}._addTitle_yqlm2_11 span,._calc_yqlm2_12 span{color:var(--van-primary)}._addTitle_yqlm2_11 .student,._calc_yqlm2_12 .student{margin:0}._studentList_yqlm2_26{max-height:45vh;overflow:auto}._btnGroup_yqlm2_30{padding:.37333rem .53333rem}\n'
  74. document.head.appendChild(__vite_style__)
  75. System.register(
  76. [
  77. './title_timers-legacy.616e8b2e.js',
  78. './icon_name_active-legacy.e2b0189a.js',
  79. './icon_tips-legacy.b7861467.js',
  80. './index-legacy.fa4145a4.js',
  81. './index-legacy.595c24c3.js',
  82. './vendor-legacy.09f20d09.js',
  83. './index-legacy.637f35563.js',
  84. './index-legacy.f25f109a4.js',
  85. './index-legacy.f25f109a.js',
  86. './index-legacy.f25f109a6.js',
  87. './index-legacy.f25f109a11.js',
  88. './index-legacy.f25f109a7.js',
  89. './index-legacy.0bbb75e3.js',
  90. './browser-legacy.5a92c2a9.js',
  91. './icon_teacher-legacy.e765b7f7.js',
  92. './index-legacy.f72eae88.js',
  93. './organ-search-legacy.14a9ed93.js',
  94. './index-legacy.f25f109a13.js',
  95. './index-legacy.f25f109a14.js',
  96. './index-legacy.88d15645.js',
  97. './index-legacy.2d78ae68.js',
  98. './index-legacy.f25f109a8.js',
  99. './icon_timer2-legacy.b6c78faa.js',
  100. './index-legacy.9dfebfce.js',
  101. './index-legacy.f25f109a5.js',
  102. './index-legacy.f25f109a10.js',
  103. './index-legacy.f25f109a3.js',
  104. './icon_student-legacy.45be2fa9.js'
  105. ],
  106. function (exports) {
  107. 'use strict'
  108. var logo$1,
  109. __glob_11_0,
  110. __glob_11_1,
  111. __glob_11_4,
  112. __glob_11_5,
  113. __glob_11_6,
  114. __glob_11_7,
  115. __glob_11_8,
  116. __glob_11_10,
  117. __glob_11_11,
  118. __glob_11_13,
  119. __glob_11_14,
  120. __glob_11_15,
  121. __glob_11_16,
  122. __glob_11_17,
  123. __glob_11_18,
  124. __glob_11_19,
  125. __glob_11_2,
  126. __glob_11_3,
  127. __glob_11_9,
  128. __glob_11_12,
  129. ColHeader,
  130. postMessage,
  131. state,
  132. request,
  133. ColResult,
  134. formatterDate,
  135. defineComponent,
  136. createVNode,
  137. Fragment,
  138. createTextVNode,
  139. Cell,
  140. Toast,
  141. Icon,
  142. List,
  143. Checkbox,
  144. isVNode,
  145. Popup,
  146. Button,
  147. dayjs,
  148. Dialog,
  149. Row,
  150. Col,
  151. CellGroup,
  152. DatetimePicker,
  153. ActionSheet,
  154. Course,
  155. QRCode,
  156. html2canvas,
  157. iconLogo,
  158. IconAvator,
  159. ColSearch,
  160. OrganSearch,
  161. Student,
  162. useEventListener,
  163. useWindowScroll
  164. return {
  165. setters: [
  166. function (module) {
  167. logo$1 = module.l
  168. __glob_11_0 = module._
  169. __glob_11_1 = module.a
  170. __glob_11_4 = module.b
  171. __glob_11_5 = module.c
  172. __glob_11_6 = module.d
  173. __glob_11_7 = module.e
  174. __glob_11_8 = module.f
  175. __glob_11_10 = module.g
  176. __glob_11_11 = module.h
  177. __glob_11_13 = module.i
  178. __glob_11_14 = module.j
  179. __glob_11_15 = module.k
  180. __glob_11_16 = module.m
  181. __glob_11_17 = module.n
  182. __glob_11_18 = module.o
  183. __glob_11_19 = module.p
  184. },
  185. function (module) {
  186. __glob_11_2 = module._
  187. __glob_11_3 = module.a
  188. __glob_11_9 = module.b
  189. },
  190. function (module) {
  191. __glob_11_12 = module._
  192. },
  193. function (module) {
  194. ColHeader = module.C
  195. },
  196. function (module) {
  197. postMessage = module.p
  198. state = module.s
  199. request = module.r
  200. ColResult = module.C
  201. formatterDate = module.k
  202. },
  203. function (module) {
  204. defineComponent = module.d
  205. createVNode = module.a
  206. Fragment = module.F
  207. createTextVNode = module.j
  208. Cell = module.C
  209. Toast = module.T
  210. Icon = module.K
  211. List = module.M
  212. Checkbox = module.a5
  213. isVNode = module.x
  214. Popup = module.P
  215. Button = module.B
  216. dayjs = module.g
  217. Dialog = module.D
  218. Row = module.z
  219. Col = module.A
  220. CellGroup = module.y
  221. DatetimePicker = module.V
  222. ActionSheet = module.N
  223. },
  224. function () {},
  225. function () {},
  226. function () {},
  227. function () {},
  228. function () {},
  229. function () {},
  230. function (module) {
  231. Course = module.C
  232. },
  233. function (module) {
  234. QRCode = module.Q
  235. html2canvas = module.h
  236. iconLogo = module.i
  237. },
  238. function (module) {
  239. IconAvator = module.I
  240. },
  241. function (module) {
  242. ColSearch = module.C
  243. },
  244. function (module) {
  245. OrganSearch = module.O
  246. },
  247. function () {},
  248. function () {},
  249. function (module) {
  250. Student = module.S
  251. },
  252. function (module) {
  253. useEventListener = module.u
  254. useWindowScroll = module.a
  255. },
  256. function () {},
  257. function () {},
  258. function () {},
  259. function () {},
  260. function () {},
  261. function () {},
  262. function () {}
  263. ],
  264. execute: function execute() {
  265. var roomHeader = '_roomHeader_13gb6_1'
  266. var countTimer = '_countTimer_13gb6_9'
  267. var timer$1 = '_timer_13gb6_12'
  268. var title = '_title_13gb6_23'
  269. var chargeTimer = '_chargeTimer_13gb6_35'
  270. var studentList$2 = '_studentList_13gb6_45'
  271. var studentCount = '_studentCount_13gb6_51'
  272. var btnGroupInvite = '_btnGroupInvite_13gb6_56'
  273. var searchList = '_searchList_13gb6_77'
  274. var dataItem = '_dataItem_13gb6_82'
  275. var styles$3 = {
  276. roomHeader: roomHeader,
  277. countTimer: countTimer,
  278. timer: timer$1,
  279. title: title,
  280. chargeTimer: chargeTimer,
  281. studentList: studentList$2,
  282. studentCount: studentCount,
  283. btnGroupInvite: btnGroupInvite,
  284. searchList: searchList,
  285. dataItem: dataItem
  286. }
  287. var shareSection = '_shareSection_115rh_1'
  288. var img = '_img_115rh_8'
  289. var name = '_name_115rh_14'
  290. var titleTips = '_titleTips_115rh_24'
  291. var section = '_section_115rh_30'
  292. var txt = '_txt_115rh_36'
  293. var teacherName = '_teacherName_115rh_46'
  294. var download = '_download_115rh_49'
  295. var logo = '_logo_115rh_55'
  296. var qrcode = '_qrcode_115rh_65'
  297. var qrcodeCanvas = '_qrcodeCanvas_115rh_70'
  298. var qrcodeLogo = '_qrcodeLogo_115rh_74'
  299. var styles$2 = {
  300. shareSection: shareSection,
  301. img: img,
  302. name: name,
  303. titleTips: titleTips,
  304. section: section,
  305. txt: txt,
  306. teacherName: teacherName,
  307. download: download,
  308. logo: logo,
  309. qrcode: qrcode,
  310. qrcodeCanvas: qrcodeCanvas,
  311. qrcodeLogo: qrcodeLogo,
  312. continue: '_continue_115rh_84'
  313. }
  314. var Share = defineComponent({
  315. name: 'share',
  316. props: { teacherId: { type: Number } },
  317. data: function data() {
  318. return { qrCode: '', image: null }
  319. },
  320. mounted: function mounted() {
  321. var _this = this
  322. this.qrCode =
  323. location.origin +
  324. '/student/#/inviteTeacher?id=' +
  325. this.teacherId
  326. var canvas = document.getElementById('canvas')
  327. QRCode.toCanvas(
  328. canvas,
  329. this.qrCode,
  330. { margin: 1 },
  331. function (error) {
  332. if (error) console.log(error)
  333. console.log('success')
  334. }
  335. )
  336. this.$nextTick(
  337. /*#__PURE__*/ _asyncToGenerator(
  338. /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
  339. var container
  340. return regeneratorRuntime.wrap(function _callee$(_context) {
  341. while (1) {
  342. switch ((_context.prev = _context.next)) {
  343. case 0:
  344. container = document.getElementById(
  345. 'share-preview-container'
  346. )
  347. html2canvas(container, {
  348. allowTaint: true,
  349. useCORS: true
  350. }).then(function (canvas) {
  351. var url = canvas.toDataURL('image/png')
  352. _this.image = url
  353. })
  354. case 2:
  355. case 'end':
  356. return _context.stop()
  357. }
  358. }
  359. }, _callee)
  360. })
  361. )
  362. )
  363. },
  364. methods: {
  365. shareShow: function shareShow() {
  366. var _this2 = this
  367. return _asyncToGenerator(
  368. /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() {
  369. var image
  370. return regeneratorRuntime.wrap(function _callee2$(
  371. _context2
  372. ) {
  373. while (1) {
  374. switch ((_context2.prev = _context2.next)) {
  375. case 0:
  376. image = _this2.image
  377. if (image) {
  378. postMessage(
  379. {
  380. api: 'shareAchievements',
  381. content: {
  382. title: '我在酷乐秀使用小酷Ai练习乐器',
  383. desc: '酷乐秀小酷Ai帮助我自主练习乐器,真的太好用啦!每天都要坚持练习哦~',
  384. image: image,
  385. video: '',
  386. type: 'image'
  387. }
  388. },
  389. function (res) {
  390. if (res && res.content) {
  391. Toast(
  392. res.content.message ||
  393. (res.content.status
  394. ? '分享成功'
  395. : '分享失败')
  396. )
  397. }
  398. }
  399. )
  400. }
  401. case 2:
  402. case 'end':
  403. return _context2.stop()
  404. }
  405. }
  406. },
  407. _callee2)
  408. })
  409. )()
  410. }
  411. },
  412. render: function render() {
  413. var _this3 = this
  414. return createVNode(Fragment, null, [
  415. createVNode(
  416. 'div',
  417. {
  418. class: styles$2.continue,
  419. onClick: function onClick() {
  420. _this3.shareShow()
  421. }
  422. },
  423. [createTextVNode('\u5206\u4EAB')]
  424. ),
  425. createVNode(
  426. 'div',
  427. {
  428. class: styles$2.shareSection,
  429. id: 'share-preview-container'
  430. },
  431. [
  432. createVNode('div', { class: styles$2.section }, [
  433. createVNode(
  434. Cell,
  435. { center: true, border: false, style: { padding: 0 } },
  436. {
  437. icon: function icon() {
  438. return createVNode(
  439. 'img',
  440. {
  441. src: state.user.data.heardUrl
  442. ? state.user.data.heardUrl +
  443. '?time=' +
  444. new Date().valueOf()
  445. : IconAvator,
  446. class: styles$2.img,
  447. crossorigin: 'anonymous'
  448. },
  449. null
  450. )
  451. },
  452. title: function title() {
  453. return createVNode('div', null, [
  454. createVNode('p', { class: styles$2.name }, [
  455. state.user.data.username
  456. ]),
  457. createVNode('p', { class: styles$2.titleTips }, [
  458. createTextVNode(
  459. '\u9177\u4E50\u79C0\u5165\u9A7B\u8001\u5E08'
  460. )
  461. ])
  462. ])
  463. }
  464. }
  465. ),
  466. createVNode(
  467. 'p',
  468. { class: [styles$2.txt, styles$2.teacherName] },
  469. [
  470. createVNode('span', null, [state.user.data.username]),
  471. createTextVNode(
  472. '\u9080\u8BF7\u60A8\u52A0\u5165\u9177\u4E50\u79C0'
  473. )
  474. ]
  475. ),
  476. createVNode('p', { class: styles$2.txt }, [
  477. createTextVNode(
  478. '\u6765\u4E0E\u6211\u4E00\u8D77\u8E0F\u5165\u97F3\u4E50\u6BBF\u5802\u5427\uFF01'
  479. )
  480. ])
  481. ]),
  482. createVNode(
  483. 'div',
  484. { class: [styles$2.section, styles$2.download] },
  485. [
  486. createVNode('div', { class: styles$2.logo }, [
  487. createVNode('img', { src: logo$1 }, null),
  488. createVNode('p', null, [
  489. createTextVNode(
  490. '\u626B\u7801\u4E0B\u8F7D\u9177\u4E50\u79C0\u5F00\u542F\u5B66\u4E60\u4E4B\u65C5'
  491. )
  492. ])
  493. ]),
  494. createVNode('div', { class: styles$2.qrcode }, [
  495. createVNode(
  496. 'canvas',
  497. { id: 'canvas', class: styles$2.qrcodeCanvas },
  498. null
  499. ),
  500. createVNode(
  501. 'img',
  502. { src: iconLogo, class: styles$2.qrcodeLogo },
  503. null
  504. )
  505. ])
  506. ]
  507. )
  508. ]
  509. )
  510. ])
  511. }
  512. })
  513. var label = '_label_v8pn1_1'
  514. var studentList$1 = '_studentList_v8pn1_13'
  515. var btnGroup$1 = '_btnGroup_v8pn1_20'
  516. var styles$1 = {
  517. label: label,
  518. studentList: studentList$1,
  519. btnGroup: btnGroup$1
  520. }
  521. function _isSlot$1(s) {
  522. return (
  523. typeof s === 'function' ||
  524. (Object.prototype.toString.call(s) === '[object Object]' &&
  525. !isVNode(s))
  526. )
  527. }
  528. var StudentInfo = defineComponent({
  529. name: 'myStudent',
  530. props: {
  531. courseId: Number,
  532. onSubmit: { type: Function, default: function _default(item) {} }
  533. },
  534. data: function data() {
  535. return {
  536. searchStatus: false,
  537. openStatus: false,
  538. subjectList: [],
  539. list: [],
  540. dataShow: true, // 判断是否有数据
  541. loading: false,
  542. finished: false,
  543. params: {
  544. userName: '',
  545. subjectName: '全部声部',
  546. subjectId: null,
  547. page: 1,
  548. rows: 20
  549. },
  550. interfaceIds: [],
  551. userIdList: []
  552. }
  553. },
  554. mounted: function mounted() {
  555. var _this4 = this
  556. return _asyncToGenerator(
  557. /*#__PURE__*/ regeneratorRuntime.mark(function _callee3() {
  558. var res
  559. return regeneratorRuntime.wrap(
  560. function _callee3$(_context3) {
  561. while (1) {
  562. switch ((_context3.prev = _context3.next)) {
  563. case 0:
  564. _context3.prev = 0
  565. _context3.next = 3
  566. return request.get(
  567. '/api-teacher/subject/subjectSelect'
  568. )
  569. case 3:
  570. res = _context3.sent
  571. _this4.subjectList = res.data || []
  572. _context3.next = 9
  573. break
  574. case 7:
  575. _context3.prev = 7
  576. _context3.t0 = _context3['catch'](0)
  577. case 9:
  578. _context3.next = 11
  579. return _this4.getExistList()
  580. case 11:
  581. _context3.next = 13
  582. return _this4.getList()
  583. case 13:
  584. case 'end':
  585. return _context3.stop()
  586. }
  587. }
  588. },
  589. _callee3,
  590. null,
  591. [[0, 7]]
  592. )
  593. })
  594. )()
  595. },
  596. methods: {
  597. onSort: function onSort() {
  598. this.params.page = 1
  599. this.list = []
  600. this.dataShow = true // 判断是否有数据
  601. this.loading = false
  602. this.finished = false
  603. this.searchStatus = false
  604. this.getList()
  605. },
  606. onSearch: function onSearch(val) {
  607. this.params.userName = val
  608. this.onSort()
  609. },
  610. getExistList: function getExistList() {
  611. var _this5 = this
  612. return _asyncToGenerator(
  613. /*#__PURE__*/ regeneratorRuntime.mark(function _callee4() {
  614. var res, rows, userIdList
  615. return regeneratorRuntime.wrap(
  616. function _callee4$(_context4) {
  617. while (1) {
  618. switch ((_context4.prev = _context4.next)) {
  619. case 0:
  620. _context4.prev = 0
  621. _context4.next = 3
  622. return request.post(
  623. '/api-teacher/courseSchedule/selectStudent',
  624. {
  625. data: {
  626. courseId: _this5.courseId,
  627. page: 1,
  628. rows: 20
  629. }
  630. }
  631. )
  632. case 3:
  633. res = _context4.sent
  634. rows = res.data.rows || []
  635. userIdList = rows.map(function (item) {
  636. return item.userId
  637. })
  638. _this5.interfaceIds =
  639. _toConsumableArray(userIdList)
  640. _this5.userIdList = _toConsumableArray(userIdList)
  641. _context4.next = 12
  642. break
  643. case 10:
  644. _context4.prev = 10
  645. _context4.t0 = _context4['catch'](0)
  646. case 12:
  647. case 'end':
  648. return _context4.stop()
  649. }
  650. }
  651. },
  652. _callee4,
  653. null,
  654. [[0, 10]]
  655. )
  656. })
  657. )()
  658. },
  659. getList: function getList() {
  660. var _this6 = this
  661. return _asyncToGenerator(
  662. /*#__PURE__*/ regeneratorRuntime.mark(function _callee5() {
  663. var res, result, rows
  664. return regeneratorRuntime.wrap(
  665. function _callee5$(_context5) {
  666. while (1) {
  667. switch ((_context5.prev = _context5.next)) {
  668. case 0:
  669. _context5.prev = 0
  670. _context5.next = 3
  671. return request.post(
  672. '/api-teacher/courseSchedule/selectStudent',
  673. { data: _this6.params }
  674. )
  675. case 3:
  676. res = _context5.sent
  677. _this6.loading = false
  678. result = res.data || {} // 处理重复请求数据
  679. if (
  680. !(_this6.list.length > 0 && result.pageNo === 1)
  681. ) {
  682. _context5.next = 8
  683. break
  684. }
  685. return _context5.abrupt('return')
  686. case 8:
  687. rows = result.rows || []
  688. rows.forEach(function (n) {
  689. if (_this6.userIdList.includes(n.userId)) {
  690. n.checked = true
  691. } else {
  692. n.checked = false
  693. }
  694. })
  695. _this6.list = _this6.list.concat(rows || [])
  696. _this6.finished =
  697. result.pageNo >= result.totalPage
  698. _this6.params.page = result.pageNo + 1
  699. _this6.dataShow = _this6.list.length > 0
  700. _context5.next = 20
  701. break
  702. case 16:
  703. _context5.prev = 16
  704. _context5.t0 = _context5['catch'](0)
  705. _this6.dataShow = false
  706. _this6.finished = true
  707. case 20:
  708. case 'end':
  709. return _context5.stop()
  710. }
  711. }
  712. },
  713. _callee5,
  714. null,
  715. [[0, 16]]
  716. )
  717. })
  718. )()
  719. },
  720. equar: function equar(a, b) {
  721. // 判断数组的长度
  722. if (a.length !== b.length) {
  723. return false
  724. } else {
  725. // 循环遍历数组的值进行比较
  726. for (var i = 0; i < a.length; i++) {
  727. if (a[i] !== b[i]) {
  728. return false
  729. }
  730. }
  731. return true
  732. }
  733. },
  734. nextSubmit: function nextSubmit() {
  735. var _this7 = this
  736. if (this.userIdList.length <= 0) {
  737. return Toast('请至少选择一个学员')
  738. }
  739. if (this.equar(this.interfaceIds, this.userIdList)) {
  740. return Toast('您未调整学员')
  741. }
  742. var addStudentIds = this.userIdList.filter(function (item) {
  743. return !_this7.interfaceIds.includes(item) && item
  744. })
  745. var removeStudentIds = this.interfaceIds.filter(function (
  746. item
  747. ) {
  748. return !_this7.userIdList.includes(item) && item
  749. })
  750. console.log(addStudentIds, removeStudentIds)
  751. var addStudents = []
  752. var removeStudents = []
  753. this.list.forEach(function (item) {
  754. if (addStudentIds.includes(item.userId)) {
  755. addStudents.push(item)
  756. }
  757. if (removeStudentIds.includes(item.userId)) {
  758. removeStudents.push(item)
  759. }
  760. })
  761. console.log(addStudents, removeStudents)
  762. this.onSubmit({
  763. addStudents: addStudents,
  764. removeStudents: removeStudents,
  765. userIdList: this.userIdList
  766. })
  767. },
  768. onCheckbox: function onCheckbox(item) {
  769. if (!item.checked && this.userIdList.length >= 7) {
  770. return Toast('学生已达上限')
  771. }
  772. item.checked = !item.checked
  773. var isExist = this.userIdList.includes(item.userId)
  774. if (item.checked) {
  775. !isExist && this.userIdList.push(item.userId)
  776. } else {
  777. isExist &&
  778. this.userIdList.splice(
  779. this.userIdList.indexOf(item.userId),
  780. 1
  781. )
  782. }
  783. }
  784. },
  785. render: function render() {
  786. var _this8 = this
  787. var _slot
  788. return createVNode(Fragment, null, [
  789. createVNode(
  790. ColSearch,
  791. { placeholder: '请输入学员名称', onSearch: this.onSearch },
  792. {
  793. left: function left() {
  794. return createVNode(
  795. 'div',
  796. {
  797. class: styles$1.label,
  798. onClick: function onClick() {
  799. _this8.searchStatus = !_this8.searchStatus
  800. _this8.openStatus = !_this8.openStatus
  801. }
  802. },
  803. [
  804. _this8.params.subjectName,
  805. createVNode(
  806. Icon,
  807. {
  808. classPrefix: 'iconfont',
  809. name: 'down',
  810. size: 12,
  811. color: '#333'
  812. },
  813. null
  814. )
  815. ]
  816. )
  817. }
  818. }
  819. ),
  820. createVNode('div', { class: styles$1.studentList }, [
  821. this.dataShow
  822. ? createVNode(
  823. List,
  824. {
  825. loading: this.loading,
  826. 'onUpdate:loading': function onUpdateLoading($event) {
  827. return (_this8.loading = $event)
  828. },
  829. finished: this.finished,
  830. finishedText: ' ',
  831. class: ['mb12'],
  832. immediateCheck: false,
  833. onLoad: this.getList
  834. },
  835. _isSlot$1(
  836. (_slot = this.list.map(function (item) {
  837. return createVNode(
  838. Student,
  839. {
  840. item: {
  841. userName: item.userName,
  842. subjectName: item.subjectName,
  843. avatar: item.avatar
  844. },
  845. onClick: function onClick() {
  846. _this8.onCheckbox(item)
  847. }
  848. },
  849. {
  850. default: function _default() {
  851. return [
  852. createVNode(
  853. Checkbox,
  854. {
  855. modelValue: item.checked,
  856. 'onUpdate:modelValue':
  857. function onUpdateModelValue($event) {
  858. return (item.checked = $event)
  859. },
  860. name: item.userId,
  861. onClick: function onClick() {
  862. _this8.onCheckbox(item)
  863. }
  864. },
  865. null
  866. )
  867. ]
  868. }
  869. }
  870. )
  871. }))
  872. )
  873. ? _slot
  874. : {
  875. default: function _default() {
  876. return [_slot]
  877. }
  878. }
  879. )
  880. : createVNode(
  881. ColResult,
  882. {
  883. btnStatus: false,
  884. classImgSize: 'SMALL',
  885. tips: '暂无学员'
  886. },
  887. null
  888. )
  889. ]),
  890. createVNode(
  891. Popup,
  892. {
  893. show: this.searchStatus,
  894. position: 'bottom',
  895. round: true,
  896. closeable: true,
  897. 'safe-area-inset-bottom': true,
  898. onClose: function onClose() {
  899. return (_this8.searchStatus = false)
  900. },
  901. onClosed: function onClosed() {
  902. return (_this8.openStatus = false)
  903. }
  904. },
  905. {
  906. default: function _default() {
  907. return [
  908. _this8.openStatus &&
  909. createVNode(
  910. OrganSearch,
  911. {
  912. subjectList: _this8.subjectList,
  913. onSort: _this8.onSort,
  914. isReset: true,
  915. modelValue: _this8.params.subjectId,
  916. 'onUpdate:modelValue':
  917. function onUpdateModelValue($event) {
  918. return (_this8.params.subjectId = $event)
  919. },
  920. subjectName: _this8.params.subjectName,
  921. 'onUpdate:subjectName':
  922. function onUpdateSubjectName($event) {
  923. return (_this8.params.subjectName = $event)
  924. }
  925. },
  926. null
  927. )
  928. ]
  929. }
  930. }
  931. ),
  932. createVNode('div', { class: styles$1.btnGroup }, [
  933. createVNode(
  934. Button,
  935. {
  936. type: 'primary',
  937. round: true,
  938. block: true,
  939. onClick: this.nextSubmit
  940. },
  941. {
  942. default: function _default() {
  943. return [createTextVNode('\u4E0B\u4E00\u6B65')]
  944. }
  945. }
  946. )
  947. ])
  948. ])
  949. }
  950. })
  951. var confirmTitle = '_confirmTitle_yqlm2_1'
  952. var timer = '_timer_yqlm2_8'
  953. var addTitle = '_addTitle_yqlm2_11'
  954. var calc = '_calc_yqlm2_12'
  955. var studentList = '_studentList_yqlm2_26'
  956. var btnGroup = '_btnGroup_yqlm2_30'
  957. var styles = {
  958. confirmTitle: confirmTitle,
  959. timer: timer,
  960. addTitle: addTitle,
  961. calc: calc,
  962. studentList: studentList,
  963. btnGroup: btnGroup
  964. }
  965. var StudentConfirm = defineComponent({
  966. name: 'studentConfirm',
  967. props: {
  968. courseInfo: { type: Object, default: {} },
  969. studentObject: { type: Object, default: {} },
  970. onSubmit: { type: Function, default: function _default(item) {} }
  971. },
  972. computed: {
  973. timer: function timer() {
  974. var item = this.courseInfo
  975. return (
  976. dayjs(item.startTime).format('YYYY/MM/DD HH:mm') +
  977. ' ~ ' +
  978. dayjs(item.endTime).format('HH:mm')
  979. )
  980. },
  981. addStudents: function addStudents() {
  982. var addStudents = this.studentObject.addStudents
  983. return addStudents || []
  984. },
  985. removeStudents: function removeStudents() {
  986. var removeStudents = this.studentObject.removeStudents
  987. return removeStudents || []
  988. },
  989. calcTimer: function calcTimer() {
  990. var _this$studentObject = this.studentObject,
  991. addStudents = _this$studentObject.addStudents,
  992. removeStudents = _this$studentObject.removeStudents
  993. var _this$courseInfo = this.courseInfo,
  994. singleCourseTime = _this$courseInfo.singleCourseTime,
  995. studentCount = _this$courseInfo.studentCount
  996. var suffix = addStudents.length - removeStudents.length
  997. console.log(suffix, singleCourseTime, this.courseInfo)
  998. var type = suffix >= 0 ? 'add' : 'remove'
  999. console.log(
  1000. addStudents,
  1001. removeStudents,
  1002. 'addStudents',
  1003. suffix,
  1004. type,
  1005. studentCount
  1006. ) // n * (n -1) * 分钟数 * 课次数
  1007. // 总分钟数
  1008. var allMinutes = studentCount * singleCourseTime //
  1009. var reTime = Math.abs(
  1010. Math.abs(suffix + studentCount) * singleCourseTime
  1011. )
  1012. return { type: type, mins: Math.abs(allMinutes - reTime) }
  1013. }
  1014. },
  1015. render: function render() {
  1016. var _this9 = this
  1017. return createVNode('div', { class: styles.studentConfirm }, [
  1018. createVNode(
  1019. 'div',
  1020. { class: [styles.confirmTitle, 'van-hairline--bottom'] },
  1021. [
  1022. createVNode('p', null, [
  1023. createTextVNode('\u60A8\u5C06\u4E3A'),
  1024. this.courseInfo.groupName
  1025. ]),
  1026. createVNode('p', { class: styles.timer }, [this.timer])
  1027. ]
  1028. ),
  1029. createVNode('div', { class: styles.studentList }, [
  1030. this.addStudents.length > 0 &&
  1031. createVNode(Fragment, null, [
  1032. createVNode('p', { class: styles.addTitle }, [
  1033. createTextVNode('\u6DFB\u52A0\u5B66\u5458 '),
  1034. createVNode('span', null, [this.addStudents.length]),
  1035. createTextVNode(' \u540D')
  1036. ]),
  1037. this.addStudents.map(function (item) {
  1038. return createVNode(
  1039. Student,
  1040. { border: false, item: item },
  1041. null
  1042. )
  1043. })
  1044. ]),
  1045. this.removeStudents.length > 0 &&
  1046. createVNode(Fragment, null, [
  1047. createVNode('p', { class: styles.addTitle }, [
  1048. createTextVNode('\u79FB\u9664\u5B66\u5458 '),
  1049. createVNode('span', null, [this.removeStudents.length]),
  1050. createTextVNode(' \u540D')
  1051. ]),
  1052. this.removeStudents.map(function (item) {
  1053. return createVNode(
  1054. Student,
  1055. { border: false, item: item },
  1056. null
  1057. )
  1058. })
  1059. ])
  1060. ]),
  1061. createVNode('p', { class: styles.calc }, [
  1062. createTextVNode('\u8C03\u6574\u540E\u5C06'),
  1063. this.calcTimer.type === 'remove' ? '释放' : '冻结',
  1064. ' ',
  1065. createVNode('span', null, [this.calcTimer.mins]),
  1066. createTextVNode(' \u5206\u949F')
  1067. ]),
  1068. createVNode('div', { class: styles.btnGroup }, [
  1069. createVNode(
  1070. Button,
  1071. {
  1072. type: 'primary',
  1073. round: true,
  1074. block: true,
  1075. onClick: function onClick() {
  1076. var userIdList = _this9.studentObject.userIdList
  1077. _this9.onSubmit(userIdList)
  1078. }
  1079. },
  1080. {
  1081. default: function _default() {
  1082. return [createTextVNode('\u786E\u8BA4\u8C03\u6574')]
  1083. }
  1084. }
  1085. )
  1086. ])
  1087. ])
  1088. }
  1089. })
  1090. function _isSlot(s) {
  1091. return (
  1092. typeof s === 'function' ||
  1093. (Object.prototype.toString.call(s) === '[object Object]' &&
  1094. !isVNode(s))
  1095. )
  1096. }
  1097. var getAssetsHomeFile = exports(
  1098. 'getAssetsHomeFile',
  1099. function (fileName) {
  1100. var path = './images/'.concat(fileName)
  1101. var modules = {
  1102. './images/icon_arrow.png': __glob_11_0,
  1103. './images/icon_class_plan.png': __glob_11_1,
  1104. './images/icon_education.png': __glob_11_2,
  1105. './images/icon_education_active.png': __glob_11_3,
  1106. './images/icon_freeze_timer.png': __glob_11_4,
  1107. './images/icon_invite_student.png': __glob_11_5,
  1108. './images/icon_last_timer.png': __glob_11_6,
  1109. './images/icon_message.png': __glob_11_7,
  1110. './images/icon_music_account.png': __glob_11_8,
  1111. './images/icon_name_active.png': __glob_11_9,
  1112. './images/icon_num.png': __glob_11_10,
  1113. './images/icon_timers.png': __glob_11_11,
  1114. './images/icon_tips.png': __glob_11_12,
  1115. './images/logo.png': __glob_11_13,
  1116. './images/paino_bg.png': __glob_11_14,
  1117. './images/room_bg.png': __glob_11_15,
  1118. './images/select_timers.png': __glob_11_16,
  1119. './images/select_timers_bg.png': __glob_11_17,
  1120. './images/share_bg.png': __glob_11_18,
  1121. './images/title_timers.png': __glob_11_19
  1122. }
  1123. return modules[path].default
  1124. }
  1125. )
  1126. var index = exports(
  1127. 'default',
  1128. defineComponent({
  1129. name: 'PianoRoom',
  1130. data: function data() {
  1131. return {
  1132. shareStatus: false,
  1133. teacherId: 0,
  1134. typeStatus: false,
  1135. courseTxt: '所有课程',
  1136. actions: [
  1137. { name: '所有课程' },
  1138. { name: '未开始', status: 'NOT_START' },
  1139. { name: '进行中', status: 'ING' },
  1140. { name: '已完成', status: 'COMPLETE' },
  1141. { name: '已取消', status: 'CANCEL' }
  1142. ],
  1143. remain: { frozenTime: 0, remainTime: 0, studentCount: 0 },
  1144. list: [],
  1145. dataShow: true, // 判断是否有数据
  1146. loading: false,
  1147. finished: false,
  1148. monthTxt: dayjs().format('YYYY年MM月'),
  1149. month: new Date(),
  1150. params: {
  1151. status: '',
  1152. month: dayjs().format('YYYY-MM'),
  1153. page: 1,
  1154. rows: 20
  1155. },
  1156. timeShow: false,
  1157. timeUpdateStatus: false,
  1158. timeUpdateInfo: {},
  1159. timeUpdateTimer: new Date(),
  1160. studentStatus: false,
  1161. studentConfirm: false,
  1162. studentChangeObject: {},
  1163. background: 'transparent',
  1164. setLoading: false,
  1165. startClassTime: '',
  1166. endClassTime: '',
  1167. minDate: new Date()
  1168. }
  1169. },
  1170. mounted: function mounted() {
  1171. var _this10 = this
  1172. return _asyncToGenerator(
  1173. /*#__PURE__*/ regeneratorRuntime.mark(function _callee6() {
  1174. return regeneratorRuntime.wrap(function _callee6$(
  1175. _context6
  1176. ) {
  1177. while (1) {
  1178. switch ((_context6.prev = _context6.next)) {
  1179. case 0:
  1180. _context6.next = 2
  1181. return _this10._init()
  1182. case 2:
  1183. _context6.next = 4
  1184. return _this10.getBaseData()
  1185. case 4:
  1186. _context6.next = 6
  1187. return _this10.getList()
  1188. case 6:
  1189. useEventListener(
  1190. document,
  1191. 'scroll',
  1192. function (evt) {
  1193. var _useWindowScroll = useWindowScroll(),
  1194. y = _useWindowScroll.y
  1195. if (y.value > 45) {
  1196. _this10.background = '#fff'
  1197. } else {
  1198. _this10.background = 'transparent'
  1199. }
  1200. }
  1201. )
  1202. case 7:
  1203. case 'end':
  1204. return _context6.stop()
  1205. }
  1206. }
  1207. },
  1208. _callee6)
  1209. })
  1210. )()
  1211. },
  1212. methods: {
  1213. _init: function _init() {
  1214. var _this11 = this
  1215. return _asyncToGenerator(
  1216. /*#__PURE__*/ regeneratorRuntime.mark(function _callee7() {
  1217. var res,
  1218. _ref2,
  1219. frozenTime,
  1220. remainTime,
  1221. _studentCount,
  1222. teacherId
  1223. return regeneratorRuntime.wrap(
  1224. function _callee7$(_context7) {
  1225. while (1) {
  1226. switch ((_context7.prev = _context7.next)) {
  1227. case 0:
  1228. _context7.prev = 0
  1229. _context7.next = 3
  1230. return request.get(
  1231. '/api-teacher/courseSchedule/selectRemainTime'
  1232. )
  1233. case 3:
  1234. res = _context7.sent // console.log(res)
  1235. ;(_ref2 = res.data || {}),
  1236. (frozenTime = _ref2.frozenTime),
  1237. (remainTime = _ref2.remainTime),
  1238. (_studentCount = _ref2.studentCount),
  1239. (teacherId = _ref2.teacherId)
  1240. _this11.remain = {
  1241. frozenTime: frozenTime || 0,
  1242. remainTime: remainTime || 0,
  1243. studentCount: _studentCount || 0
  1244. }
  1245. _this11.teacherId = teacherId
  1246. _context7.next = 11
  1247. break
  1248. case 9:
  1249. _context7.prev = 9
  1250. _context7.t0 = _context7['catch'](0)
  1251. case 11:
  1252. case 'end':
  1253. return _context7.stop()
  1254. }
  1255. }
  1256. },
  1257. _callee7,
  1258. null,
  1259. [[0, 9]]
  1260. )
  1261. })
  1262. )()
  1263. },
  1264. getBaseData: function getBaseData() {
  1265. var _this12 = this
  1266. return _asyncToGenerator(
  1267. /*#__PURE__*/ regeneratorRuntime.mark(function _callee8() {
  1268. var result, tempResult, i, len
  1269. return regeneratorRuntime.wrap(
  1270. function _callee8$(_context8) {
  1271. while (1) {
  1272. switch ((_context8.prev = _context8.next)) {
  1273. case 0:
  1274. _context8.prev = 0
  1275. _context8.next = 3
  1276. return request.get(
  1277. '/api-teacher/sysConfig/queryByParamNameList',
  1278. {
  1279. params: {
  1280. paramNames:
  1281. 'course_start_setting,course_end_setting'
  1282. }
  1283. }
  1284. )
  1285. case 3:
  1286. result = _context8.sent
  1287. console.log(result)
  1288. tempResult = result.data
  1289. for (
  1290. i = 0, len = tempResult.length;
  1291. i < len;
  1292. i++
  1293. ) {
  1294. if (
  1295. tempResult[i].paramName ===
  1296. 'course_start_setting'
  1297. ) {
  1298. _this12.startClassTime = tempResult[i]
  1299. .paramValue
  1300. ? tempResult[i].paramValue.split(':')
  1301. : []
  1302. }
  1303. if (
  1304. tempResult[i].paramName ===
  1305. 'course_end_setting'
  1306. ) {
  1307. _this12.endClassTime = tempResult[i]
  1308. .paramValue
  1309. ? tempResult[i].paramValue.split(':')
  1310. : []
  1311. }
  1312. }
  1313. console.log(
  1314. _this12.startClassTime,
  1315. _this12.endClassTime
  1316. )
  1317. _context8.next = 12
  1318. break
  1319. case 10:
  1320. _context8.prev = 10
  1321. _context8.t0 = _context8['catch'](0)
  1322. case 12:
  1323. case 'end':
  1324. return _context8.stop()
  1325. }
  1326. }
  1327. },
  1328. _callee8,
  1329. null,
  1330. [[0, 10]]
  1331. )
  1332. })
  1333. )()
  1334. },
  1335. onSearch: function onSearch() {
  1336. this.dataShow = true
  1337. this.loading = false
  1338. this.finished = false
  1339. this.list = []
  1340. this.params.page = 1
  1341. this.getList()
  1342. },
  1343. onSelect: function onSelect(item) {
  1344. this.courseTxt = item.name
  1345. this.params.status = item.status || ''
  1346. this._init()
  1347. this.onSearch()
  1348. },
  1349. getList: function getList() {
  1350. var _this13 = this
  1351. return _asyncToGenerator(
  1352. /*#__PURE__*/ regeneratorRuntime.mark(function _callee9() {
  1353. var res, result
  1354. return regeneratorRuntime.wrap(
  1355. function _callee9$(_context9) {
  1356. while (1) {
  1357. switch ((_context9.prev = _context9.next)) {
  1358. case 0:
  1359. _context9.prev = 0
  1360. if (!_this13.setLoading) {
  1361. _context9.next = 3
  1362. break
  1363. }
  1364. return _context9.abrupt('return')
  1365. case 3:
  1366. _this13.setLoading = true
  1367. _context9.next = 6
  1368. return request.post(
  1369. '/api-teacher/courseSchedule/selectCourseList',
  1370. { data: _this13.params }
  1371. )
  1372. case 6:
  1373. res = _context9.sent
  1374. _this13.setLoading = false
  1375. _this13.loading = false
  1376. result = res.data || {} // 处理重复请求数据
  1377. if (
  1378. !(
  1379. _this13.list.length > 0 &&
  1380. result.pageNo === 1
  1381. )
  1382. ) {
  1383. _context9.next = 12
  1384. break
  1385. }
  1386. return _context9.abrupt('return')
  1387. case 12:
  1388. _this13.list = _this13.list.concat(
  1389. result.rows || []
  1390. )
  1391. _this13.finished =
  1392. result.pageNo >= result.totalPage
  1393. _this13.params.page = result.pageNo + 1
  1394. _this13.dataShow = _this13.list.length > 0
  1395. _context9.next = 22
  1396. break
  1397. case 18:
  1398. _context9.prev = 18
  1399. _context9.t0 = _context9['catch'](0)
  1400. _this13.dataShow = false
  1401. _this13.finished = true
  1402. case 22:
  1403. case 'end':
  1404. return _context9.stop()
  1405. }
  1406. }
  1407. },
  1408. _callee9,
  1409. null,
  1410. [[0, 18]]
  1411. )
  1412. })
  1413. )()
  1414. },
  1415. onCourseDelete: function onCourseDelete(item) {
  1416. var _this14 = this
  1417. return _asyncToGenerator(
  1418. /*#__PURE__*/ regeneratorRuntime.mark(function _callee11() {
  1419. return regeneratorRuntime.wrap(function _callee11$(
  1420. _context11
  1421. ) {
  1422. while (1) {
  1423. switch ((_context11.prev = _context11.next)) {
  1424. case 0:
  1425. try {
  1426. Dialog.confirm({
  1427. title: '提示',
  1428. message: '确定删除该课程吗?',
  1429. confirmButtonColor: 'var(--van-primary)'
  1430. }).then(
  1431. /*#__PURE__*/ _asyncToGenerator(
  1432. /*#__PURE__*/ regeneratorRuntime.mark(
  1433. function _callee10() {
  1434. return regeneratorRuntime.wrap(
  1435. function _callee10$(_context10) {
  1436. while (1) {
  1437. switch (
  1438. (_context10.prev =
  1439. _context10.next)
  1440. ) {
  1441. case 0:
  1442. _context10.next = 2
  1443. return request.post(
  1444. '/api-teacher/courseSchedule/deleteCourse',
  1445. {
  1446. data: {
  1447. courseId: item.courseId
  1448. }
  1449. }
  1450. )
  1451. case 2:
  1452. console.log('删除成功')
  1453. Toast('课程删除成功')
  1454. _this14._init()
  1455. _this14.onSearch()
  1456. case 6:
  1457. case 'end':
  1458. return _context10.stop()
  1459. }
  1460. }
  1461. },
  1462. _callee10
  1463. )
  1464. }
  1465. )
  1466. )
  1467. )
  1468. } catch (_unused7) {}
  1469. case 1:
  1470. case 'end':
  1471. return _context11.stop()
  1472. }
  1473. }
  1474. },
  1475. _callee11)
  1476. })
  1477. )()
  1478. },
  1479. onTimeUpdateChange: function onTimeUpdateChange(item) {
  1480. var _this15 = this
  1481. try {
  1482. Dialog.confirm({
  1483. title: '提示',
  1484. message: '确定调整该课程吗?',
  1485. confirmButtonColor: 'var(--van-primary)'
  1486. }).then(
  1487. /*#__PURE__*/ _asyncToGenerator(
  1488. /*#__PURE__*/ regeneratorRuntime.mark(
  1489. function _callee12() {
  1490. var _this15$timeUpdateInf,
  1491. courseId,
  1492. singleCourseTime,
  1493. startTime,
  1494. endTime
  1495. return regeneratorRuntime.wrap(function _callee12$(
  1496. _context12
  1497. ) {
  1498. while (1) {
  1499. switch ((_context12.prev = _context12.next)) {
  1500. case 0:
  1501. ;(_this15$timeUpdateInf =
  1502. _this15.timeUpdateInfo),
  1503. (courseId =
  1504. _this15$timeUpdateInf.courseId),
  1505. (singleCourseTime =
  1506. _this15$timeUpdateInf.singleCourseTime)
  1507. startTime = dayjs(item).format(
  1508. 'YYYY-MM-DD HH:mm:ss'
  1509. )
  1510. endTime = dayjs(item)
  1511. .add(singleCourseTime, 'minute')
  1512. .format('YYYY-MM-DD HH:mm:ss')
  1513. _context12.next = 5
  1514. return request.post(
  1515. '/api-teacher/courseSchedule/updateCourseTime',
  1516. {
  1517. data: {
  1518. courseId: courseId,
  1519. startTime: startTime,
  1520. endTime: endTime
  1521. }
  1522. }
  1523. )
  1524. case 5:
  1525. _this15.timeUpdateStatus = false
  1526. Toast('课程调整成功')
  1527. _this15.onSearch()
  1528. case 8:
  1529. case 'end':
  1530. return _context12.stop()
  1531. }
  1532. }
  1533. },
  1534. _callee12)
  1535. }
  1536. )
  1537. )
  1538. )
  1539. } catch (_unused8) {}
  1540. },
  1541. onStudentChange: function onStudentChange(item) {
  1542. var _this16 = this
  1543. return _asyncToGenerator(
  1544. /*#__PURE__*/ regeneratorRuntime.mark(function _callee14() {
  1545. var courseId
  1546. return regeneratorRuntime.wrap(
  1547. function _callee14$(_context14) {
  1548. while (1) {
  1549. switch ((_context14.prev = _context14.next)) {
  1550. case 0:
  1551. _context14.prev = 0
  1552. courseId = _this16.timeUpdateInfo.courseId
  1553. _context14.next = 4
  1554. return request.post(
  1555. '/api-teacher/courseSchedule/updateCourseStudent',
  1556. {
  1557. data: {
  1558. studentIds: item,
  1559. courseId: courseId
  1560. }
  1561. }
  1562. )
  1563. case 4:
  1564. _this16.studentConfirm = false
  1565. Toast('学生调整成功')
  1566. setTimeout(
  1567. /*#__PURE__*/ _asyncToGenerator(
  1568. /*#__PURE__*/ regeneratorRuntime.mark(
  1569. function _callee13() {
  1570. return regeneratorRuntime.wrap(
  1571. function _callee13$(_context13) {
  1572. while (1) {
  1573. switch (
  1574. (_context13.prev =
  1575. _context13.next)
  1576. ) {
  1577. case 0:
  1578. _context13.next = 2
  1579. return _this16._init()
  1580. case 2:
  1581. _this16.onSearch()
  1582. case 3:
  1583. case 'end':
  1584. return _context13.stop()
  1585. }
  1586. }
  1587. },
  1588. _callee13
  1589. )
  1590. }
  1591. )
  1592. ),
  1593. 1000
  1594. )
  1595. _context14.next = 11
  1596. break
  1597. case 9:
  1598. _context14.prev = 9
  1599. _context14.t0 = _context14['catch'](0)
  1600. case 11:
  1601. case 'end':
  1602. return _context14.stop()
  1603. }
  1604. }
  1605. },
  1606. _callee14,
  1607. null,
  1608. [[0, 9]]
  1609. )
  1610. })
  1611. )()
  1612. },
  1613. onTeacherAuth: function onTeacherAuth(callBack) {
  1614. // 是否达人认证
  1615. // 老师入驻状态 0、未申请 UNPAALY、未申请 DOING、审核中 PASS、通过 UNPASS、不通过,可用值:UNPAALY,DOING,PASS,UNPASS
  1616. var data = state.user.data
  1617. if (data.entryStatus === 'PASS') {
  1618. callBack && callBack()
  1619. } else if (data.entryStatus === 'DOING') {
  1620. Toast('认证审核中,请稍后再试')
  1621. } else {
  1622. this.$router.push('/teacherCert')
  1623. }
  1624. },
  1625. filterDate: function filterDate(type, options) {
  1626. var _this17 = this
  1627. var value = 0
  1628. if (this.$refs.datetime) {
  1629. var _picker$getValues$
  1630. var picker = this.$refs.datetime.getPicker()
  1631. value =
  1632. ((_picker$getValues$ = picker.getValues()[3]) === null ||
  1633. _picker$getValues$ === void 0
  1634. ? void 0
  1635. : _picker$getValues$.split('时')[0]) || 0
  1636. }
  1637. if (type == 'hour') {
  1638. return options.filter(function (option) {
  1639. return (
  1640. Number(_this17.startClassTime[0]) <= Number(option) &&
  1641. Number(_this17.endClassTime[0]) >= Number(option)
  1642. )
  1643. })
  1644. }
  1645. if (type === 'minute') {
  1646. return options.filter(function (option) {
  1647. return (
  1648. (Number(_this17.startClassTime[1]) <= Number(option) &&
  1649. Number(_this17.endClassTime[1]) >= Number(option)) ||
  1650. value != Number(_this17.endClassTime[0])
  1651. )
  1652. })
  1653. }
  1654. return options
  1655. }
  1656. },
  1657. render: function render() {
  1658. var _this18 = this
  1659. var _slot
  1660. return createVNode(Fragment, null, [
  1661. createVNode('div', { class: styles$3.roomHeader }, [
  1662. createVNode(
  1663. ColHeader,
  1664. {
  1665. background: this.background,
  1666. rightText: '课程记录',
  1667. onClickRight: function onClickRight() {
  1668. _this18.$router.push('/courseRecord')
  1669. },
  1670. border: false
  1671. },
  1672. null
  1673. ),
  1674. createVNode(
  1675. Row,
  1676. { class: styles$3.countTimer },
  1677. {
  1678. default: function _default() {
  1679. return [
  1680. createVNode(
  1681. Col,
  1682. { span: 9 },
  1683. {
  1684. default: function _default() {
  1685. return [
  1686. createVNode(
  1687. 'p',
  1688. { class: styles$3.timer },
  1689. [
  1690. _this18.remain.remainTime,
  1691. createVNode('span', null, [
  1692. createTextVNode('\u5206\u949F')
  1693. ])
  1694. ]
  1695. ),
  1696. createVNode(
  1697. 'p',
  1698. { class: styles$3.title },
  1699. [
  1700. createVNode(
  1701. 'img',
  1702. {
  1703. src: getAssetsHomeFile(
  1704. 'icon_last_timer.png'
  1705. )
  1706. },
  1707. null
  1708. ),
  1709. createVNode('span', null, [
  1710. createTextVNode(
  1711. '\u7434\u623F\u5269\u4F59\u65F6\u957F'
  1712. )
  1713. ])
  1714. ]
  1715. )
  1716. ]
  1717. }
  1718. }
  1719. ),
  1720. createVNode(
  1721. Col,
  1722. { span: 9 },
  1723. {
  1724. default: function _default() {
  1725. return [
  1726. createVNode(
  1727. 'p',
  1728. { class: styles$3.timer },
  1729. [
  1730. _this18.remain.frozenTime,
  1731. createVNode('span', null, [
  1732. createTextVNode('\u5206\u949F')
  1733. ])
  1734. ]
  1735. ),
  1736. createVNode(
  1737. 'p',
  1738. { class: styles$3.title },
  1739. [
  1740. createVNode(
  1741. 'img',
  1742. {
  1743. src: getAssetsHomeFile(
  1744. 'icon_freeze_timer.png'
  1745. )
  1746. },
  1747. null
  1748. ),
  1749. createVNode('span', null, [
  1750. createTextVNode(
  1751. '\u51BB\u7ED3\u65F6\u957F'
  1752. )
  1753. ])
  1754. ]
  1755. )
  1756. ]
  1757. }
  1758. }
  1759. ),
  1760. createVNode(
  1761. Col,
  1762. { span: 6 },
  1763. {
  1764. default: function _default() {
  1765. return [
  1766. createVNode(
  1767. Button,
  1768. {
  1769. type: 'primary',
  1770. round: true,
  1771. size: 'small',
  1772. class: styles$3.chargeTimer,
  1773. onClick: function onClick() {
  1774. _this18.onTeacherAuth(function () {
  1775. _this18.$router.push({
  1776. path: '/accountRechargeTimer'
  1777. })
  1778. })
  1779. }
  1780. },
  1781. {
  1782. default: function _default() {
  1783. return [
  1784. createTextVNode(
  1785. '\u65F6\u957F\u5145\u503C'
  1786. ),
  1787. createVNode(
  1788. 'img',
  1789. {
  1790. src: getAssetsHomeFile(
  1791. 'icon_arrow.png'
  1792. )
  1793. },
  1794. null
  1795. )
  1796. ]
  1797. }
  1798. }
  1799. )
  1800. ]
  1801. }
  1802. }
  1803. )
  1804. ]
  1805. }
  1806. }
  1807. ),
  1808. createVNode(
  1809. CellGroup,
  1810. { class: styles$3.studentList, border: false },
  1811. {
  1812. default: function _default() {
  1813. return [
  1814. createVNode(
  1815. Cell,
  1816. {
  1817. title: '\u6211\u7684\u5B66\u5458 '.concat(
  1818. _this18.remain.studentCount,
  1819. ' \u4EBA'
  1820. ),
  1821. titleClass: styles$3.studentCount,
  1822. isLink: true,
  1823. to: '/myStudent',
  1824. border: false
  1825. },
  1826. null
  1827. ),
  1828. createVNode(
  1829. Cell,
  1830. { valueClass: styles$3.btnGroupInvite },
  1831. {
  1832. default: function _default() {
  1833. return [
  1834. createVNode(
  1835. Button,
  1836. {
  1837. color: '#E0F7F3',
  1838. round: true,
  1839. block: true,
  1840. onClick: function onClick() {
  1841. _this18.onTeacherAuth(function () {
  1842. _this18.shareStatus = true
  1843. })
  1844. }
  1845. },
  1846. {
  1847. default: function _default() {
  1848. return [
  1849. createVNode(
  1850. 'img',
  1851. {
  1852. src: getAssetsHomeFile(
  1853. 'icon_invite_student.png'
  1854. )
  1855. },
  1856. null
  1857. ),
  1858. createTextVNode(
  1859. '\u9080\u8BF7\u5B66\u5458'
  1860. )
  1861. ]
  1862. }
  1863. }
  1864. ),
  1865. createVNode(
  1866. Button,
  1867. {
  1868. color: '#E0F7F3',
  1869. round: true,
  1870. block: true,
  1871. onClick: function onClick() {
  1872. _this18.onTeacherAuth(function () {
  1873. _this18.$router.push(
  1874. '/classArrangement'
  1875. )
  1876. })
  1877. }
  1878. },
  1879. {
  1880. default: function _default() {
  1881. return [
  1882. createVNode(
  1883. 'img',
  1884. {
  1885. src: getAssetsHomeFile(
  1886. 'icon_class_plan.png'
  1887. )
  1888. },
  1889. null
  1890. ),
  1891. createTextVNode('\u6392\u8BFE')
  1892. ]
  1893. }
  1894. }
  1895. )
  1896. ]
  1897. }
  1898. }
  1899. )
  1900. ]
  1901. }
  1902. }
  1903. )
  1904. ]),
  1905. createVNode('div', { class: styles$3.searchList }, [
  1906. createVNode(
  1907. 'div',
  1908. {
  1909. class: styles$3.dataItem,
  1910. onClick: function onClick() {
  1911. _this18.timeShow = true
  1912. }
  1913. },
  1914. [
  1915. this.monthTxt,
  1916. createVNode(
  1917. Icon,
  1918. {
  1919. classPrefix: 'iconfont',
  1920. name: 'down',
  1921. size: 8,
  1922. style: { marginLeft: '4px' },
  1923. color: '#CCCCCC'
  1924. },
  1925. null
  1926. )
  1927. ]
  1928. ),
  1929. createVNode(
  1930. 'div',
  1931. {
  1932. class: styles$3.dataItem,
  1933. onClick: function onClick() {
  1934. _this18.typeStatus = true
  1935. }
  1936. },
  1937. [
  1938. this.courseTxt,
  1939. createVNode(
  1940. Icon,
  1941. {
  1942. classPrefix: 'iconfont',
  1943. name: 'down',
  1944. size: 8,
  1945. style: { marginLeft: '4px' },
  1946. color: '#CCCCCC'
  1947. },
  1948. null
  1949. )
  1950. ]
  1951. )
  1952. ]),
  1953. this.dataShow
  1954. ? createVNode(
  1955. List,
  1956. {
  1957. loading: this.loading,
  1958. 'onUpdate:loading': function onUpdateLoading($event) {
  1959. return (_this18.loading = $event)
  1960. },
  1961. finished: this.finished,
  1962. finishedText: ' ',
  1963. class: [styles$3.liveList, 'mb12'],
  1964. immediateCheck: false,
  1965. onLoad: this.getList
  1966. },
  1967. _isSlot(
  1968. (_slot = this.list.map(function (item) {
  1969. return createVNode(
  1970. Course,
  1971. {
  1972. item: item,
  1973. operation:
  1974. item.status === 'NOT_START' ? true : false,
  1975. onCourseDelete: _this18.onCourseDelete,
  1976. onStudentAdjust: function onStudentAdjust(
  1977. item
  1978. ) {
  1979. _this18.timeUpdateInfo = item
  1980. _this18.studentStatus = true
  1981. },
  1982. onTimeAdjust: function onTimeAdjust(item) {
  1983. _this18.timeUpdateInfo = item
  1984. _this18.timeUpdateTimer = dayjs(
  1985. item.startTime
  1986. ).toDate()
  1987. _this18.timeUpdateStatus = true
  1988. }
  1989. },
  1990. null
  1991. )
  1992. }))
  1993. )
  1994. ? _slot
  1995. : {
  1996. default: function _default() {
  1997. return [_slot]
  1998. }
  1999. }
  2000. )
  2001. : createVNode(
  2002. ColResult,
  2003. {
  2004. btnStatus: false,
  2005. classImgSize: 'SMALL',
  2006. tips: '暂无课程'
  2007. },
  2008. null
  2009. ),
  2010. createVNode(
  2011. Popup,
  2012. {
  2013. position: 'bottom',
  2014. show: this.timeShow,
  2015. 'onUpdate:show': function onUpdateShow($event) {
  2016. return (_this18.timeShow = $event)
  2017. },
  2018. round: true
  2019. },
  2020. {
  2021. default: function _default() {
  2022. return [
  2023. createVNode('div', { class: styles$3.picker }, [
  2024. createVNode(
  2025. DatetimePicker,
  2026. {
  2027. modelValue: _this18.month,
  2028. 'onUpdate:modelValue':
  2029. function onUpdateModelValue($event) {
  2030. return (_this18.month = $event)
  2031. },
  2032. type: 'year-month',
  2033. formatter: formatterDate,
  2034. onConfirm: function onConfirm(item) {
  2035. _this18.monthTxt =
  2036. dayjs(item).format('YYYY年MM月')
  2037. _this18.params.month =
  2038. dayjs(item).format('YYYY-MM')
  2039. _this18.timeShow = false
  2040. _this18.onSearch()
  2041. },
  2042. onCancel: function onCancel() {
  2043. return (_this18.timeShow = false)
  2044. }
  2045. },
  2046. null
  2047. )
  2048. ])
  2049. ]
  2050. }
  2051. }
  2052. ),
  2053. createVNode(
  2054. Popup,
  2055. {
  2056. position: 'bottom',
  2057. show: this.timeUpdateStatus,
  2058. 'onUpdate:show': function onUpdateShow($event) {
  2059. return (_this18.timeUpdateStatus = $event)
  2060. },
  2061. round: true
  2062. },
  2063. {
  2064. default: function _default() {
  2065. return [
  2066. createVNode('div', { class: styles$3.picker }, [
  2067. createVNode(
  2068. DatetimePicker,
  2069. {
  2070. modelValue: _this18.timeUpdateTimer,
  2071. 'onUpdate:modelValue':
  2072. function onUpdateModelValue($event) {
  2073. return (_this18.timeUpdateTimer = $event)
  2074. },
  2075. type: 'datetime',
  2076. minDate: _this18.minDate,
  2077. formatter: formatterDate,
  2078. filter: _this18.filterDate,
  2079. ref: 'datetime',
  2080. onConfirm: function onConfirm(item) {
  2081. _this18.onTimeUpdateChange(item)
  2082. },
  2083. onCancel: function onCancel() {
  2084. return (_this18.timeUpdateStatus = false)
  2085. }
  2086. },
  2087. null
  2088. )
  2089. ])
  2090. ]
  2091. }
  2092. }
  2093. ),
  2094. createVNode(
  2095. ActionSheet,
  2096. {
  2097. show: this.typeStatus,
  2098. 'onUpdate:show': function onUpdateShow($event) {
  2099. return (_this18.typeStatus = $event)
  2100. },
  2101. actions: this.actions,
  2102. closeOnClickAction: true,
  2103. cancelText: '取消',
  2104. onSelect: this.onSelect,
  2105. onCancel: function onCancel() {
  2106. _this18.typeStatus = false
  2107. }
  2108. },
  2109. null
  2110. ),
  2111. createVNode(
  2112. Popup,
  2113. {
  2114. show: this.shareStatus,
  2115. 'onUpdate:show': function onUpdateShow($event) {
  2116. return (_this18.shareStatus = $event)
  2117. },
  2118. round: true
  2119. },
  2120. {
  2121. default: function _default() {
  2122. return [
  2123. createVNode(
  2124. Share,
  2125. { teacherId: _this18.teacherId },
  2126. null
  2127. )
  2128. ]
  2129. }
  2130. }
  2131. ),
  2132. createVNode(
  2133. Popup,
  2134. {
  2135. show: this.studentStatus,
  2136. 'onUpdate:show': function onUpdateShow($event) {
  2137. return (_this18.studentStatus = $event)
  2138. },
  2139. position: 'bottom',
  2140. round: true
  2141. },
  2142. {
  2143. default: function _default() {
  2144. return [
  2145. _this18.studentStatus &&
  2146. createVNode(
  2147. StudentInfo,
  2148. {
  2149. courseId: _this18.timeUpdateInfo.courseId,
  2150. onSubmit: function onSubmit(item) {
  2151. _this18.studentChangeObject = item
  2152. _this18.studentStatus = false
  2153. _this18.studentConfirm = true
  2154. }
  2155. },
  2156. null
  2157. )
  2158. ]
  2159. }
  2160. }
  2161. ),
  2162. createVNode(
  2163. Popup,
  2164. {
  2165. show: this.studentConfirm,
  2166. 'onUpdate:show': function onUpdateShow($event) {
  2167. return (_this18.studentConfirm = $event)
  2168. },
  2169. position: 'bottom',
  2170. round: true,
  2171. closeable: true
  2172. },
  2173. {
  2174. default: function _default() {
  2175. return [
  2176. createVNode(
  2177. StudentConfirm,
  2178. {
  2179. courseInfo: _this18.timeUpdateInfo,
  2180. studentObject: _this18.studentChangeObject,
  2181. onSubmit: (function () {
  2182. var _onSubmit = _asyncToGenerator(
  2183. /*#__PURE__*/ regeneratorRuntime.mark(
  2184. function _callee15(item) {
  2185. return regeneratorRuntime.wrap(
  2186. function _callee15$(_context15) {
  2187. while (1) {
  2188. switch (
  2189. (_context15.prev =
  2190. _context15.next)
  2191. ) {
  2192. case 0:
  2193. _context15.next = 2
  2194. return _this18.onStudentChange(
  2195. item
  2196. )
  2197. case 2:
  2198. case 'end':
  2199. return _context15.stop()
  2200. }
  2201. }
  2202. },
  2203. _callee15
  2204. )
  2205. }
  2206. )
  2207. )
  2208. function onSubmit(_x) {
  2209. return _onSubmit.apply(this, arguments)
  2210. }
  2211. return onSubmit
  2212. })()
  2213. },
  2214. null
  2215. )
  2216. ]
  2217. }
  2218. }
  2219. )
  2220. ])
  2221. }
  2222. })
  2223. )
  2224. }
  2225. }
  2226. }
  2227. )
  2228. })()