practice-setting-legacy.7a20a5f0.js 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866
  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. function ownKeys(object, enumerableOnly) {
  72. var keys = Object.keys(object)
  73. if (Object.getOwnPropertySymbols) {
  74. var symbols = Object.getOwnPropertySymbols(object)
  75. enumerableOnly &&
  76. (symbols = symbols.filter(function (sym) {
  77. return Object.getOwnPropertyDescriptor(object, sym).enumerable
  78. })),
  79. keys.push.apply(keys, symbols)
  80. }
  81. return keys
  82. }
  83. function _objectSpread(target) {
  84. for (var i = 1; i < arguments.length; i++) {
  85. var source = null != arguments[i] ? arguments[i] : {}
  86. i % 2
  87. ? ownKeys(Object(source), !0).forEach(function (key) {
  88. _defineProperty(target, key, source[key])
  89. })
  90. : Object.getOwnPropertyDescriptors
  91. ? Object.defineProperties(
  92. target,
  93. Object.getOwnPropertyDescriptors(source)
  94. )
  95. : ownKeys(Object(source)).forEach(function (key) {
  96. Object.defineProperty(
  97. target,
  98. key,
  99. Object.getOwnPropertyDescriptor(source, key)
  100. )
  101. })
  102. }
  103. return target
  104. }
  105. function _defineProperty(obj, key, value) {
  106. if (key in obj) {
  107. Object.defineProperty(obj, key, {
  108. value: value,
  109. enumerable: true,
  110. configurable: true,
  111. writable: true
  112. })
  113. } else {
  114. obj[key] = value
  115. }
  116. return obj
  117. }
  118. var __vite_style__ = document.createElement('style')
  119. __vite_style__.innerHTML =
  120. '._select_kcj91_1{padding:0 .32rem;height:.64rem}._tag-list_kcj91_5{margin-top:.32rem}._tag-list_kcj91_5 .van-tag{margin-right:.16rem;margin-bottom:.16rem}._radio-group_kcj91_12,._checkbox-group_kcj91_13{display:flex;flex-wrap:wrap;margin-top:.37333rem}._radio-group_kcj91_12 ._radio_kcj91_12:first-child .van-radio__label,._checkbox-group_kcj91_13 ._radio_kcj91_12:first-child .van-radio__label,._radio-group_kcj91_12 ._checkbox_kcj91_13:first-child .van-checked__label,._checkbox-group_kcj91_13 ._checkbox_kcj91_13:first-child .van-checked__label{margin-left:0}._radio_kcj91_12 .van-radio__icon{display:none}._checkbox-group_kcj91_13{padding-bottom:.32rem}._radio-group_kcj91_12 .van-tag--large{width:2.50667rem;height:.8rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio-group_kcj91_12 .van-tag{box-sizing:border-box}._radio-group_kcj91_12 .van-tag--default{color:var(--van-tag-text-default-color)}._radio-group_kcj91_12 .van-tag--primary{background-color:var(--tag-bg-color)}._checkbox_kcj91_13{margin-bottom:.13333rem}._checkbox_kcj91_13 .van-checkbox__icon{display:none}._timer_vlxou_1{background:#f6f8f9;min-height:100vh;overflow:hidden;padding:0 .37333rem}._tips_vlxou_7{margin:.32rem 0;padding:.4rem .32rem;background:#ffffff;border-radius:.26667rem}._tips_vlxou_7 ._tipsTitle_vlxou_13{font-size:.48rem;font-weight:500;color:#000;line-height:.66667rem}._tips_vlxou_7 ._tipsTime_vlxou_19{padding-top:.10667rem;font-size:.37333rem;color:#ff9e5a;line-height:.58667rem}._tips_vlxou_7 ._tipsTime_vlxou_19 span{font-weight:600}._timerContainer_vlxou_28{background:#ffffff;border-radius:.26667rem;padding:.37333rem .13333rem .24rem}._timerContainer_vlxou_28 .van-col{margin-bottom:.13333rem}._tag_vlxou_36{height:.74667rem;background:#eff6f5;border-radius:.10667rem;font-size:.37333rem;font-weight:500;color:#01C1B5;display:flex;align-items:center;justify-content:center}._active_vlxou_47{background:#01C1B5;color:#fff}._select_vlxou_51{color:#fff!important;background:#ffb752}\n'
  121. document.head.appendChild(__vite_style__)
  122. System.register(
  123. [
  124. './index-legacy.c1757005.js',
  125. './index-legacy.9696b334.js',
  126. './index-legacy.535e160e.js',
  127. './index-legacy.595c24c3.js',
  128. './vendor-legacy.09f20d09.js',
  129. './index-legacy.637f35565.js',
  130. './index-legacy.f25f109a14.js',
  131. './index-legacy.f25f109a10.js',
  132. './index-legacy.f25f109a3.js',
  133. './index-legacy.f25f109a.js',
  134. './index-legacy.f25f109a5.js',
  135. './index-legacy.f25f109a7.js',
  136. './index-legacy.f25f109a13.js',
  137. './toolsValidate-legacy.b90c63da.js',
  138. './index-legacy.637f35563.js',
  139. './index-legacy.f25f109a2.js',
  140. './checkbox_default-legacy.88950e5d.js',
  141. './index-legacy.c75fe8a2.js'
  142. ],
  143. function (exports) {
  144. 'use strict'
  145. var ColFieldGroup,
  146. ColField,
  147. SubjectModel,
  148. ColPopup,
  149. request,
  150. postMessage,
  151. commonjsGlobal,
  152. defineComponent,
  153. dayjs,
  154. createVNode,
  155. createTextVNode,
  156. Row,
  157. Col,
  158. Sticky,
  159. Button,
  160. Toast,
  161. Form,
  162. RadioGroup,
  163. Radio,
  164. Tag,
  165. isVNode,
  166. CheckboxGroup,
  167. Checkbox,
  168. Dialog,
  169. Field,
  170. ActionSheet,
  171. verifyNumberIntegerAndFloat
  172. return {
  173. setters: [
  174. function (module) {
  175. ColFieldGroup = module.C
  176. ColField = module.a
  177. },
  178. function (module) {
  179. SubjectModel = module.S
  180. },
  181. function (module) {
  182. ColPopup = module.C
  183. },
  184. function (module) {
  185. request = module.r
  186. postMessage = module.p
  187. },
  188. function (module) {
  189. commonjsGlobal = module.a2
  190. defineComponent = module.d
  191. dayjs = module.g
  192. createVNode = module.a
  193. createTextVNode = module.j
  194. Row = module.z
  195. Col = module.A
  196. Sticky = module.S
  197. Button = module.B
  198. Toast = module.T
  199. Form = module.aa
  200. RadioGroup = module.ac
  201. Radio = module.ad
  202. Tag = module.U
  203. isVNode = module.x
  204. CheckboxGroup = module.a4
  205. Checkbox = module.a5
  206. Dialog = module.D
  207. Field = module.G
  208. ActionSheet = module.N
  209. },
  210. function () {},
  211. function () {},
  212. function () {},
  213. function () {},
  214. function () {},
  215. function () {},
  216. function () {},
  217. function () {},
  218. function (module) {
  219. verifyNumberIntegerAndFloat = module.v
  220. },
  221. function () {},
  222. function () {},
  223. function () {},
  224. function () {}
  225. ],
  226. execute: function execute() {
  227. var select$1 = '_select_kcj91_1'
  228. var radio = '_radio_kcj91_12'
  229. var checkbox = '_checkbox_kcj91_13'
  230. var styles$1 = {
  231. select: select$1,
  232. 'tag-list': '_tag-list_kcj91_5',
  233. 'radio-group': '_radio-group_kcj91_12',
  234. 'checkbox-group': '_checkbox-group_kcj91_13',
  235. radio: radio,
  236. checkbox: checkbox
  237. }
  238. var timer = '_timer_vlxou_1'
  239. var tips = '_tips_vlxou_7'
  240. var tipsTitle = '_tipsTitle_vlxou_13'
  241. var tipsTime = '_tipsTime_vlxou_19'
  242. var timerContainer = '_timerContainer_vlxou_28'
  243. var tag = '_tag_vlxou_36'
  244. var active = '_active_vlxou_47'
  245. var select = '_select_vlxou_51'
  246. var styles = {
  247. timer: timer,
  248. tips: tips,
  249. tipsTitle: tipsTitle,
  250. tipsTime: tipsTime,
  251. timerContainer: timerContainer,
  252. tag: tag,
  253. active: active,
  254. select: select
  255. }
  256. var isSameOrBefore$1 = { exports: {} }
  257. ;(function (module, exports) {
  258. !(function (e, i) {
  259. module.exports = i()
  260. })(commonjsGlobal, function () {
  261. return function (e, i) {
  262. i.prototype.isSameOrBefore = function (e, i) {
  263. return this.isSame(e, i) || this.isBefore(e, i)
  264. }
  265. }
  266. })
  267. })(isSameOrBefore$1)
  268. var isSameOrBefore = isSameOrBefore$1.exports
  269. var customParseFormat$1 = { exports: {} }
  270. ;(function (module, exports) {
  271. !(function (e, t) {
  272. module.exports = t()
  273. })(commonjsGlobal, function () {
  274. var e = {
  275. LTS: 'h:mm:ss A',
  276. LT: 'h:mm A',
  277. L: 'MM/DD/YYYY',
  278. LL: 'MMMM D, YYYY',
  279. LLL: 'MMMM D, YYYY h:mm A',
  280. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  281. },
  282. t =
  283. /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,
  284. n = /\d\d/,
  285. r = /\d\d?/,
  286. i = /\d*[^-_:/,()\s\d]+/,
  287. o = {},
  288. s = function s(e) {
  289. return (e = +e) + (e > 68 ? 1900 : 2e3)
  290. }
  291. var a = function a(e) {
  292. return function (t) {
  293. this[e] = +t
  294. }
  295. },
  296. f = [
  297. /[+-]\d\d:?(\d\d)?|Z/,
  298. function (e) {
  299. ;(this.zone || (this.zone = {})).offset = (function (e) {
  300. if (!e) return 0
  301. if ('Z' === e) return 0
  302. var t = e.match(/([+-]|\d\d)/g),
  303. n = 60 * t[1] + (+t[2] || 0)
  304. return 0 === n ? 0 : '+' === t[0] ? -n : n
  305. })(e)
  306. }
  307. ],
  308. h = function h(e) {
  309. var t = o[e]
  310. return t && (t.indexOf ? t : t.s.concat(t.f))
  311. },
  312. u = function u(e, t) {
  313. var n,
  314. r = o.meridiem
  315. if (r) {
  316. for (var i = 1; i <= 24; i += 1) {
  317. if (e.indexOf(r(i, 0, t)) > -1) {
  318. n = i > 12
  319. break
  320. }
  321. }
  322. } else n = e === (t ? 'pm' : 'PM')
  323. return n
  324. },
  325. d = {
  326. A: [
  327. i,
  328. function (e) {
  329. this.afternoon = u(e, !1)
  330. }
  331. ],
  332. a: [
  333. i,
  334. function (e) {
  335. this.afternoon = u(e, !0)
  336. }
  337. ],
  338. S: [
  339. /\d/,
  340. function (e) {
  341. this.milliseconds = 100 * +e
  342. }
  343. ],
  344. SS: [
  345. n,
  346. function (e) {
  347. this.milliseconds = 10 * +e
  348. }
  349. ],
  350. SSS: [
  351. /\d{3}/,
  352. function (e) {
  353. this.milliseconds = +e
  354. }
  355. ],
  356. s: [r, a('seconds')],
  357. ss: [r, a('seconds')],
  358. m: [r, a('minutes')],
  359. mm: [r, a('minutes')],
  360. H: [r, a('hours')],
  361. h: [r, a('hours')],
  362. HH: [r, a('hours')],
  363. hh: [r, a('hours')],
  364. D: [r, a('day')],
  365. DD: [n, a('day')],
  366. Do: [
  367. i,
  368. function (e) {
  369. var t = o.ordinal,
  370. n = e.match(/\d+/)
  371. if (((this.day = n[0]), t))
  372. for (var r = 1; r <= 31; r += 1) {
  373. t(r).replace(/\[|\]/g, '') === e && (this.day = r)
  374. }
  375. }
  376. ],
  377. M: [r, a('month')],
  378. MM: [n, a('month')],
  379. MMM: [
  380. i,
  381. function (e) {
  382. var t = h('months'),
  383. n =
  384. (
  385. h('monthsShort') ||
  386. t.map(function (e) {
  387. return e.slice(0, 3)
  388. })
  389. ).indexOf(e) + 1
  390. if (n < 1) throw new Error()
  391. this.month = n % 12 || n
  392. }
  393. ],
  394. MMMM: [
  395. i,
  396. function (e) {
  397. var t = h('months').indexOf(e) + 1
  398. if (t < 1) throw new Error()
  399. this.month = t % 12 || t
  400. }
  401. ],
  402. Y: [/[+-]?\d+/, a('year')],
  403. YY: [
  404. n,
  405. function (e) {
  406. this.year = s(e)
  407. }
  408. ],
  409. YYYY: [/\d{4}/, a('year')],
  410. Z: f,
  411. ZZ: f
  412. }
  413. function c(n) {
  414. var r, i
  415. ;(r = n), (i = o && o.formats)
  416. for (
  417. var s = (n = r.replace(
  418. /(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,
  419. function (t, n, r) {
  420. var o = r && r.toUpperCase()
  421. return (
  422. n ||
  423. i[r] ||
  424. e[r] ||
  425. i[o].replace(
  426. /(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,
  427. function (e, t, n) {
  428. return t || n.slice(1)
  429. }
  430. )
  431. )
  432. }
  433. )).match(t),
  434. a = s.length,
  435. f = 0;
  436. f < a;
  437. f += 1
  438. ) {
  439. var h = s[f],
  440. u = d[h],
  441. c = u && u[0],
  442. l = u && u[1]
  443. s[f] = l ? { regex: c, parser: l } : h.replace(/^\[|\]$/g, '')
  444. }
  445. return function (e) {
  446. for (var t = {}, n = 0, r = 0; n < a; n += 1) {
  447. var i = s[n]
  448. if ('string' == typeof i) r += i.length
  449. else {
  450. var o = i.regex,
  451. f = i.parser,
  452. h = e.slice(r),
  453. u = o.exec(h)[0]
  454. f.call(t, u), (e = e.replace(u, ''))
  455. }
  456. }
  457. return (
  458. (function (e) {
  459. var t = e.afternoon
  460. if (void 0 !== t) {
  461. var n = e.hours
  462. t
  463. ? n < 12 && (e.hours += 12)
  464. : 12 === n && (e.hours = 0),
  465. delete e.afternoon
  466. }
  467. })(t),
  468. t
  469. )
  470. }
  471. }
  472. return function (e, t, n) {
  473. ;(n.p.customParseFormat = !0),
  474. e && e.parseTwoDigitYear && (s = e.parseTwoDigitYear)
  475. var r = t.prototype,
  476. i = r.parse
  477. r.parse = function (e) {
  478. var t = e.date,
  479. r = e.utc,
  480. s = e.args
  481. this.$u = r
  482. var a = s[1]
  483. if ('string' == typeof a) {
  484. var f = !0 === s[2],
  485. h = !0 === s[3],
  486. u = f || h,
  487. d = s[2]
  488. h && (d = s[2]),
  489. (o = this.$locale()),
  490. !f && d && (o = n.Ls[d]),
  491. (this.$d = (function (e, t, n) {
  492. try {
  493. if (['x', 'X'].indexOf(t) > -1)
  494. return new Date(('X' === t ? 1e3 : 1) * e)
  495. var r = c(t)(e),
  496. i = r.year,
  497. o = r.month,
  498. s = r.day,
  499. a = r.hours,
  500. f = r.minutes,
  501. h = r.seconds,
  502. u = r.milliseconds,
  503. d = r.zone,
  504. l = new Date(),
  505. m = s || (i || o ? 1 : l.getDate()),
  506. M = i || l.getFullYear(),
  507. Y = 0
  508. ;(i && !o) || (Y = o > 0 ? o - 1 : l.getMonth())
  509. var p = a || 0,
  510. v = f || 0,
  511. D = h || 0,
  512. g = u || 0
  513. return d
  514. ? new Date(
  515. Date.UTC(
  516. M,
  517. Y,
  518. m,
  519. p,
  520. v,
  521. D,
  522. g + 60 * d.offset * 1e3
  523. )
  524. )
  525. : n
  526. ? new Date(Date.UTC(M, Y, m, p, v, D, g))
  527. : new Date(M, Y, m, p, v, D, g)
  528. } catch (e) {
  529. return new Date('')
  530. }
  531. })(t, a, r)),
  532. this.init(),
  533. d && !0 !== d && (this.$L = this.locale(d).$L),
  534. u && t != this.format(a) && (this.$d = new Date('')),
  535. (o = {})
  536. } else if (a instanceof Array)
  537. for (var l = a.length, m = 1; m <= l; m += 1) {
  538. s[1] = a[m - 1]
  539. var M = n.apply(this, s)
  540. if (M.isValid()) {
  541. ;(this.$d = M.$d), (this.$L = M.$L), this.init()
  542. break
  543. }
  544. m === l && (this.$d = new Date(''))
  545. }
  546. else i.call(this, e)
  547. }
  548. }
  549. })
  550. })(customParseFormat$1)
  551. var customParseFormat = customParseFormat$1.exports
  552. dayjs.extend(customParseFormat)
  553. dayjs.extend(isSameOrBefore)
  554. var Timer = defineComponent({
  555. name: 'timer',
  556. props: {
  557. timerObject: {
  558. // 传入的数据
  559. type: Object,
  560. default: {}
  561. },
  562. onChoice: {
  563. // 点击选择时间
  564. type: Function,
  565. default: function _default(item) {}
  566. },
  567. courseMinutes: {
  568. // 课程时长
  569. type: Number,
  570. default: 25
  571. },
  572. freeMinutes: {
  573. // 空余时长
  574. type: Number,
  575. default: 5
  576. },
  577. startSetting: {
  578. // 开始设置时间
  579. type: String,
  580. default: '08:00'
  581. },
  582. endSetting: {
  583. // 结束设置时间
  584. type: String,
  585. default: '18:00'
  586. }
  587. },
  588. data: function data() {
  589. return {
  590. timerList: [],
  591. list: [],
  592. weekList: [
  593. '周一',
  594. '周二',
  595. '周三',
  596. '周四',
  597. '周五',
  598. '周六',
  599. '周日'
  600. ],
  601. weekType: [
  602. 'monday',
  603. 'tuesday',
  604. 'wednesday',
  605. 'thursday',
  606. 'friday',
  607. 'saturday',
  608. 'sunday'
  609. ]
  610. }
  611. },
  612. mounted: function mounted() {
  613. this.list = this.timerInit(
  614. this.startSetting,
  615. this.endSetting,
  616. this.courseMinutes + this.freeMinutes || 30
  617. )
  618. console.log(this.endSetting)
  619. },
  620. methods: {
  621. timerInit: function timerInit(startTime, endTime, space) {
  622. var start = dayjs(startTime, 'HH:mm')
  623. var end = dayjs(endTime, 'HH:mm')
  624. var timerList = [] // 生成一天的时间段
  625. while (start.add(space, 'minute').isSameOrBefore(dayjs(end))) {
  626. var item = {
  627. startTime: start.format('HH:mm'),
  628. endTime: start.add(space, 'minute').format('HH:mm'),
  629. status: false
  630. } // 一周
  631. timerList.push(item)
  632. start = start.add(space, 'minute')
  633. }
  634. var list = [] // 生成一周的时间段
  635. timerList.forEach(function (item) {
  636. var weekList = []
  637. for (var i = 0; i < 7; i++) {
  638. weekList.push(_objectSpread({}, item))
  639. }
  640. list.push(weekList)
  641. })
  642. var tempList = this._initData(list)
  643. return tempList
  644. },
  645. _initData: function _initData(list) {
  646. // 回显数据
  647. var weekType = this.weekType
  648. var timerObject = this.timerObject
  649. list.forEach(function (item) {
  650. item.forEach(function (slot, slotIndex) {
  651. var dayList = timerObject[weekType[slotIndex]]
  652. var startTime = dayjs(slot.startTime, 'HH:mm').format(
  653. 'HH:mm:ss'
  654. )
  655. var isExist =
  656. dayList === null || dayList === void 0
  657. ? void 0
  658. : dayList.some(function (course) {
  659. return course.startTime === startTime
  660. })
  661. isExist && (slot.status = true)
  662. })
  663. })
  664. return list
  665. },
  666. btnStatus: function btnStatus(index, type) {
  667. if (type === 'row') {
  668. return this.list.every(function (item) {
  669. return item[index].status
  670. })
  671. }
  672. if (type == 'col') {
  673. return this.list[index].every(function (item) {
  674. return item.status
  675. })
  676. }
  677. },
  678. choice: function choice(index, type, status) {
  679. if (type === 'row') {
  680. this.list.forEach(function (item, i) {
  681. var type = !status ? true : false
  682. item[index].status = type
  683. })
  684. }
  685. if (type == 'col') {
  686. this.list[index].forEach(function (item, i) {
  687. var type = !status ? true : false
  688. item.status = type
  689. })
  690. }
  691. },
  692. onSubmit: function onSubmit() {
  693. var _this = this
  694. var list = this.list
  695. var weekList = {
  696. monday: [],
  697. tuesday: [],
  698. wednesday: [],
  699. thursday: [],
  700. friday: [],
  701. saturday: [],
  702. sunday: []
  703. }
  704. var weekType = this.weekType
  705. var status = false
  706. list.forEach(function (item, i) {
  707. item.forEach(function (times, j) {
  708. if (times.status) {
  709. status = true
  710. weekList[weekType[j]].push({
  711. startTime: dayjs(times.startTime, 'HH:mm').format(
  712. 'HH:mm:ss'
  713. ),
  714. endTime: dayjs(times.endTime, 'HH:mm')
  715. .subtract(_this.freeMinutes, 'minute')
  716. .format('HH:mm:ss')
  717. })
  718. }
  719. })
  720. })
  721. this.onChoice && this.onChoice(weekList, status)
  722. }
  723. },
  724. render: function render() {
  725. var _this2 = this
  726. return createVNode('div', { class: styles.timer }, [
  727. createVNode('div', { class: styles.tips }, [
  728. createVNode('div', { class: styles.tipsTitle }, [
  729. createTextVNode(
  730. '\u8BF7\u9009\u62E9\u966A\u7EC3\u5F00\u59CB\u65F6\u95F4'
  731. )
  732. ]),
  733. createVNode('div', { class: styles.tipsTime }, [
  734. createTextVNode(
  735. '\u966A\u7EC3\u8BFE\u5355\u8BFE\u65F6\u65F6\u957F\u4E3A '
  736. ),
  737. createVNode('span', null, [this.courseMinutes]),
  738. createTextVNode(' \u5206\u949F')
  739. ])
  740. ]),
  741. createVNode('div', { class: [styles.timerContainer, 'mb12'] }, [
  742. createVNode(
  743. Row,
  744. { gutter: 5 },
  745. {
  746. default: function _default() {
  747. return [
  748. createVNode(Col, { span: 3 }, null),
  749. _this2.weekList.map(function (item) {
  750. return createVNode(
  751. Col,
  752. { span: 3 },
  753. {
  754. default: function _default() {
  755. return [
  756. createVNode('span', { class: styles.tag }, [
  757. item
  758. ])
  759. ]
  760. }
  761. }
  762. )
  763. })
  764. ]
  765. }
  766. }
  767. ),
  768. createVNode(
  769. Row,
  770. { gutter: 5 },
  771. {
  772. default: function _default() {
  773. return [
  774. createVNode(Col, { span: 3 }, null),
  775. _this2.weekList.map(function (item, index) {
  776. return createVNode(
  777. Col,
  778. { span: 3 },
  779. {
  780. default: function _default() {
  781. return [
  782. createVNode(
  783. 'span',
  784. {
  785. class: [
  786. styles.tag,
  787. _this2.btnStatus(index, 'row') &&
  788. styles.active
  789. ],
  790. onClick: function onClick() {
  791. return _this2.choice(
  792. index,
  793. 'row',
  794. _this2.btnStatus(index, 'row')
  795. )
  796. },
  797. title: item
  798. },
  799. [createTextVNode('\u5168\u9009')]
  800. )
  801. ]
  802. }
  803. }
  804. )
  805. })
  806. ]
  807. }
  808. }
  809. ),
  810. this.list.map(function (item, index) {
  811. return createVNode(
  812. Row,
  813. { gutter: 5 },
  814. {
  815. default: function _default() {
  816. return [
  817. createVNode(
  818. Col,
  819. { span: 3 },
  820. {
  821. default: function _default() {
  822. return [
  823. createVNode(
  824. 'span',
  825. {
  826. class: [
  827. styles.tag,
  828. _this2.btnStatus(index, 'col') &&
  829. styles.active
  830. ],
  831. onClick: function onClick() {
  832. return _this2.choice(
  833. index,
  834. 'col',
  835. _this2.btnStatus(index, 'col')
  836. )
  837. }
  838. },
  839. [createTextVNode('\u5168\u9009')]
  840. )
  841. ]
  842. }
  843. }
  844. ),
  845. item.map(function (week) {
  846. return createVNode(
  847. Col,
  848. { span: 3 },
  849. {
  850. default: function _default() {
  851. return [
  852. createVNode(
  853. 'span',
  854. {
  855. class: [
  856. styles.tag,
  857. week.status && styles.select
  858. ],
  859. title: week,
  860. style: { color: '#333333' },
  861. onClick: function onClick() {
  862. return (week.status = !week.status)
  863. }
  864. },
  865. [week.startTime]
  866. )
  867. ]
  868. }
  869. }
  870. )
  871. })
  872. ]
  873. }
  874. }
  875. )
  876. })
  877. ]),
  878. createVNode(
  879. Sticky,
  880. { offsetBottom: 0, position: 'bottom' },
  881. {
  882. default: function _default() {
  883. return [
  884. createVNode('div', { class: 'btnGroup' }, [
  885. createVNode(
  886. Button,
  887. {
  888. block: true,
  889. round: true,
  890. type: 'primary',
  891. onClick: _this2.onSubmit
  892. },
  893. {
  894. default: function _default() {
  895. return [createTextVNode('\u786E\u5B9A')]
  896. }
  897. }
  898. )
  899. ])
  900. ]
  901. }
  902. }
  903. )
  904. ])
  905. }
  906. })
  907. function _isSlot(s) {
  908. return (
  909. typeof s === 'function' ||
  910. (Object.prototype.toString.call(s) === '[object Object]' &&
  911. !isVNode(s))
  912. )
  913. }
  914. var practiceSetting = exports(
  915. 'default',
  916. defineComponent({
  917. name: 'PracticeSetting',
  918. data: function data() {
  919. return {
  920. subjectList: [],
  921. chargeTypeArr: { 0: '否', 1: '是' },
  922. classTimeStatus: false,
  923. subjectStatus: false,
  924. timerStatus: false,
  925. timeSetting: {
  926. courseMinutes: 25,
  927. freeMinutes: 5,
  928. startSetting: '08:00',
  929. endSetting: '18:00'
  930. },
  931. timerObject: {},
  932. form: {
  933. enableFlag: 1,
  934. courseMinutes: null,
  935. freeMinutes: 0,
  936. subjectIdTemp: '',
  937. subjectId: [],
  938. subjectPrice: [],
  939. skipHolidayFlag: 1,
  940. setting: ''
  941. },
  942. minutes: [],
  943. rate: 0
  944. }
  945. },
  946. computed: {
  947. choiceSubjectId: function choiceSubjectId() {
  948. var form = this.form
  949. var ids = form.subjectIdTemp
  950. ? form.subjectIdTemp.split(',')
  951. : []
  952. return (
  953. ids.map(function (item) {
  954. return Number(item)
  955. }) || []
  956. )
  957. }
  958. },
  959. mounted: function mounted() {
  960. var _this3 = this
  961. return _asyncToGenerator(
  962. /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
  963. var config,
  964. configData,
  965. teacher,
  966. setting,
  967. sr,
  968. tempIds,
  969. tempPrices,
  970. subjectPrice,
  971. to
  972. return regeneratorRuntime.wrap(
  973. function _callee$(_context) {
  974. while (1) {
  975. switch ((_context.prev = _context.next)) {
  976. case 0:
  977. _context.prev = 0
  978. _context.next = 3
  979. return request.get(
  980. '/api-teacher/sysConfig/queryByParamNameList',
  981. {
  982. params: {
  983. paramNames:
  984. 'practice_times_setting,practice_service_fee,course_start_setting,course_end_setting'
  985. }
  986. }
  987. )
  988. case 3:
  989. config = _context.sent
  990. configData = config.data || []
  991. configData.forEach(function (item) {
  992. if (
  993. item.paramName === 'practice_times_setting'
  994. ) {
  995. var mins = item.paramValue
  996. ? JSON.parse(item.paramValue)
  997. : []
  998. var tempArr = []
  999. mins.forEach(function (item) {
  1000. tempArr.push(
  1001. _objectSpread(
  1002. _objectSpread({}, item),
  1003. {},
  1004. { name: item.courseMinutes }
  1005. )
  1006. )
  1007. })
  1008. _this3.minutes = [].concat(tempArr)
  1009. }
  1010. if (item.paramName === 'practice_service_fee') {
  1011. _this3.rate = item.paramValue
  1012. }
  1013. if (item.paramName === 'course_start_setting') {
  1014. _this3.timeSetting.startSetting =
  1015. item.paramValue
  1016. }
  1017. if (item.paramName === 'course_end_setting') {
  1018. _this3.timeSetting.endSetting =
  1019. item.paramValue
  1020. }
  1021. }) //
  1022. _context.next = 8
  1023. return request.post(
  1024. '/api-teacher/teacher/querySubject'
  1025. )
  1026. case 8:
  1027. teacher = _context.sent
  1028. _this3.subjectList = teacher.data || [] // 获取课程设置
  1029. _context.next = 12
  1030. return request.post(
  1031. '/api-teacher/teacherFreeTime/getDetail',
  1032. { data: { defaultFlag: 1 } }
  1033. )
  1034. case 12:
  1035. setting = _context.sent
  1036. sr = setting.data
  1037. if (sr) {
  1038. _this3.timeSetting.courseMinutes =
  1039. sr.courseMinutes
  1040. _this3.timeSetting.freeMinutes = sr.freeMinutes
  1041. _this3.timerObject = {
  1042. monday: sr.monday
  1043. ? JSON.parse(sr.monday)
  1044. : [],
  1045. tuesday: sr.tuesday
  1046. ? JSON.parse(sr.tuesday)
  1047. : [],
  1048. wednesday: sr.wednesday
  1049. ? JSON.parse(sr.wednesday)
  1050. : [],
  1051. thursday: sr.thursday
  1052. ? JSON.parse(sr.thursday)
  1053. : [],
  1054. friday: sr.friday
  1055. ? JSON.parse(sr.friday)
  1056. : [],
  1057. saturday: sr.saturday
  1058. ? JSON.parse(sr.saturday)
  1059. : [],
  1060. sunday: sr.sunday ? JSON.parse(sr.sunday) : []
  1061. }
  1062. tempIds = []
  1063. tempPrices = []
  1064. subjectPrice = sr.subjectPrice || []
  1065. subjectPrice.forEach(function (item) {
  1066. tempIds.push(item.subjectId)
  1067. tempPrices.push({
  1068. subjectId: item.subjectId,
  1069. subjectPrice: item.subjectPrice,
  1070. subjectName: item.subjectName
  1071. })
  1072. })
  1073. to = _this3.timerObject
  1074. _this3.form = {
  1075. enableFlag: sr.enableFlag,
  1076. courseMinutes: sr.courseMinutes,
  1077. freeMinutes: sr.freeMinutes,
  1078. subjectIdTemp: tempIds.join(','),
  1079. subjectId: tempIds,
  1080. subjectPrice: tempPrices,
  1081. skipHolidayFlag: sr.skipHolidayFlag,
  1082. setting:
  1083. to.monday.length > 0 ||
  1084. to.tuesday.length > 0 ||
  1085. to.wednesday.length > 0 ||
  1086. to.thursday.length > 0 ||
  1087. to.friday.length > 0 ||
  1088. to.saturday.length > 0 ||
  1089. to.sunday.length > 0
  1090. ? '已设置'
  1091. : ''
  1092. }
  1093. }
  1094. _context.next = 19
  1095. break
  1096. case 17:
  1097. _context.prev = 17
  1098. _context.t0 = _context['catch'](0)
  1099. case 19:
  1100. case 'end':
  1101. return _context.stop()
  1102. }
  1103. }
  1104. },
  1105. _callee,
  1106. null,
  1107. [[0, 17]]
  1108. )
  1109. })
  1110. )()
  1111. },
  1112. methods: {
  1113. onSelect: function onSelect(item) {
  1114. // 如果分钟数不同,则清空
  1115. if (this.form.courseMinutes !== item.courseMinutes) {
  1116. this.timerObject = {}
  1117. this.form.setting = ''
  1118. }
  1119. this.form.courseMinutes = item.courseMinutes
  1120. this.form.freeMinutes = item.freeMinutes
  1121. },
  1122. onTimer: function onTimer() {
  1123. var _this4 = this
  1124. return _asyncToGenerator(
  1125. /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() {
  1126. var form
  1127. return regeneratorRuntime.wrap(
  1128. function _callee2$(_context2) {
  1129. while (1) {
  1130. switch ((_context2.prev = _context2.next)) {
  1131. case 0:
  1132. _context2.prev = 0
  1133. form = _this4.form
  1134. if (form.courseMinutes) {
  1135. _context2.next = 5
  1136. break
  1137. }
  1138. Toast('请选择单课时时长')
  1139. return _context2.abrupt('return')
  1140. case 5:
  1141. _this4.timeSetting.courseMinutes = Number(
  1142. form.courseMinutes
  1143. )
  1144. _this4.timeSetting.freeMinutes = Number(
  1145. form.freeMinutes
  1146. )
  1147. _this4.timerStatus = true
  1148. _context2.next = 12
  1149. break
  1150. case 10:
  1151. _context2.prev = 10
  1152. _context2.t0 = _context2['catch'](0)
  1153. case 12:
  1154. case 'end':
  1155. return _context2.stop()
  1156. }
  1157. }
  1158. },
  1159. _callee2,
  1160. null,
  1161. [[0, 10]]
  1162. )
  1163. })
  1164. )()
  1165. },
  1166. onChoiceTimer: function onChoiceTimer(item, status) {
  1167. this.form.setting = status ? '已设置' : ''
  1168. this.timerObject = item
  1169. this.timerStatus = false
  1170. },
  1171. onChoice: function onChoice(item) {
  1172. console.log(item)
  1173. var tempItem = item || []
  1174. this.form.subjectId = tempItem
  1175. this.form.subjectIdTemp = tempItem.join(',') || ''
  1176. var subjectPriceList = _toConsumableArray(
  1177. this.form.subjectPrice
  1178. )
  1179. tempItem.forEach(function (item) {
  1180. var index = subjectPriceList.findIndex(function (subject) {
  1181. return subject.subjectId === item
  1182. })
  1183. if (index === -1) {
  1184. subjectPriceList.push({
  1185. subjectId: item,
  1186. subjectPrice: null,
  1187. subjectName: ''
  1188. })
  1189. }
  1190. })
  1191. var temp = []
  1192. subjectPriceList.forEach(function (item) {
  1193. var isExist = tempItem.some(function (subjectId) {
  1194. return subjectId === item.subjectId
  1195. })
  1196. isExist && temp.push(item)
  1197. })
  1198. this.form.subjectPrice = temp
  1199. this.subjectStatus = false
  1200. },
  1201. getSubjectName: function getSubjectName(id) {
  1202. var subject = this.subjectList.find(function (item) {
  1203. return item.id === id
  1204. })
  1205. return subject ? subject.name : ''
  1206. },
  1207. onFormatter: function onFormatter(val) {
  1208. return verifyNumberIntegerAndFloat(val)
  1209. },
  1210. onSubmit: function onSubmit() {
  1211. var _this5 = this
  1212. return _asyncToGenerator(
  1213. /*#__PURE__*/ regeneratorRuntime.mark(function _callee3() {
  1214. var form
  1215. return regeneratorRuntime.wrap(
  1216. function _callee3$(_context3) {
  1217. while (1) {
  1218. switch ((_context3.prev = _context3.next)) {
  1219. case 0:
  1220. _context3.prev = 0
  1221. form = _this5.form
  1222. form.subjectPrice.forEach(function (item) {
  1223. item.subjectName = _this5.getSubjectName(
  1224. item.subjectId
  1225. )
  1226. })
  1227. _context3.next = 5
  1228. return request.post(
  1229. '/api-teacher/teacherFreeTime/upSet',
  1230. {
  1231. data: _objectSpread(
  1232. _objectSpread({}, form),
  1233. _this5.timerObject
  1234. )
  1235. }
  1236. )
  1237. case 5:
  1238. Toast('设置成功')
  1239. setTimeout(function () {
  1240. postMessage({ api: 'back', content: {} })
  1241. }, 500)
  1242. _context3.next = 11
  1243. break
  1244. case 9:
  1245. _context3.prev = 9
  1246. _context3.t0 = _context3['catch'](0)
  1247. case 11:
  1248. case 'end':
  1249. return _context3.stop()
  1250. }
  1251. }
  1252. },
  1253. _callee3,
  1254. null,
  1255. [[0, 9]]
  1256. )
  1257. })
  1258. )()
  1259. }
  1260. },
  1261. render: function render() {
  1262. var _this6 = this
  1263. var _slot, _slot3, _slot4, _slot5
  1264. return createVNode(
  1265. Form,
  1266. { style: { paddingTop: '15px' }, onSubmit: this.onSubmit },
  1267. {
  1268. default: function _default() {
  1269. return [
  1270. createVNode(ColFieldGroup, null, {
  1271. default: function _default() {
  1272. return [
  1273. createVNode(
  1274. ColField,
  1275. {
  1276. title: '是否开启陪练课',
  1277. required: true,
  1278. border: false
  1279. },
  1280. {
  1281. default: function _default() {
  1282. return [
  1283. createVNode(
  1284. RadioGroup,
  1285. {
  1286. class: styles$1['radio-group'],
  1287. modelValue: _this6.form.enableFlag,
  1288. 'onUpdate:modelValue':
  1289. function onUpdateModelValue(val) {
  1290. return (_this6.form.enableFlag =
  1291. val)
  1292. }
  1293. },
  1294. _isSlot(
  1295. (_slot = ['1', '0'].map(function (
  1296. item
  1297. ) {
  1298. var isActive =
  1299. Number(item) ===
  1300. Number(_this6.form.enableFlag)
  1301. var type = isActive
  1302. ? 'primary'
  1303. : 'default'
  1304. return createVNode(
  1305. Radio,
  1306. {
  1307. class: styles$1.radio,
  1308. name: item
  1309. },
  1310. {
  1311. default: function _default() {
  1312. return [
  1313. createVNode(
  1314. Tag,
  1315. {
  1316. size: 'large',
  1317. plain: isActive,
  1318. type: type
  1319. },
  1320. {
  1321. default:
  1322. function _default() {
  1323. return [
  1324. _this6
  1325. .chargeTypeArr[
  1326. item
  1327. ]
  1328. ]
  1329. }
  1330. }
  1331. )
  1332. ]
  1333. }
  1334. }
  1335. )
  1336. }))
  1337. )
  1338. ? _slot
  1339. : {
  1340. default: function _default() {
  1341. return [_slot]
  1342. }
  1343. }
  1344. )
  1345. ]
  1346. }
  1347. }
  1348. ),
  1349. createVNode(
  1350. ColField,
  1351. { title: '可教授乐器', required: true },
  1352. {
  1353. default: function _default() {
  1354. return [
  1355. _this6.form.subjectPrice &&
  1356. _this6.form.subjectPrice.length > 0 &&
  1357. createVNode(
  1358. CheckboxGroup,
  1359. {
  1360. modelValue: _this6.form.subjectId,
  1361. class: styles$1['checkbox-group'],
  1362. disabled: true,
  1363. onClick: function onClick() {
  1364. _this6.subjectStatus = true
  1365. }
  1366. },
  1367. _isSlot(
  1368. (_slot3 =
  1369. _this6.form.subjectPrice.map(
  1370. function (item) {
  1371. var _slot2
  1372. return createVNode(
  1373. Checkbox,
  1374. {
  1375. class: styles$1.checkbox
  1376. },
  1377. {
  1378. default:
  1379. function _default() {
  1380. return [
  1381. createVNode(
  1382. Tag,
  1383. {
  1384. plain: true,
  1385. type: 'primary',
  1386. round: true,
  1387. closeable: true,
  1388. size: 'large',
  1389. style: {
  1390. backgroundColor:
  1391. '#E9FFF8'
  1392. },
  1393. onClick:
  1394. function onClick(
  1395. e
  1396. ) {
  1397. e.stopPropagation()
  1398. e.preventDefault()
  1399. },
  1400. onClose:
  1401. function onClose(
  1402. e
  1403. ) {
  1404. e.stopPropagation()
  1405. e.preventDefault()
  1406. Dialog.confirm(
  1407. {
  1408. title:
  1409. '提示',
  1410. message:
  1411. '您是否要删除选择的乐器?',
  1412. confirmButtonColor:
  1413. 'var(--van-primary)'
  1414. }
  1415. ).then(
  1416. function () {
  1417. var index =
  1418. _this6.form.subjectId.indexOf(
  1419. item.subjectId
  1420. )
  1421. if (
  1422. index !==
  1423. -1
  1424. ) {
  1425. _this6.form.subjectId.splice(
  1426. index,
  1427. 1
  1428. )
  1429. }
  1430. var index2 =
  1431. _this6.form.subjectPrice.findIndex(
  1432. function (
  1433. subject
  1434. ) {
  1435. return (
  1436. subject.subjectId ===
  1437. item.subjectId
  1438. )
  1439. }
  1440. )
  1441. if (
  1442. index2 !==
  1443. -1
  1444. ) {
  1445. _this6.form.subjectPrice.splice(
  1446. index2,
  1447. 1
  1448. )
  1449. }
  1450. _this6.form.subjectIdTemp =
  1451. _this6.form.subjectId.join(
  1452. ','
  1453. )
  1454. }
  1455. )
  1456. }
  1457. },
  1458. _isSlot(
  1459. (_slot2 =
  1460. _this6.getSubjectName(
  1461. item.subjectId
  1462. ))
  1463. )
  1464. ? _slot2
  1465. : {
  1466. default:
  1467. function _default() {
  1468. return [
  1469. _slot2
  1470. ]
  1471. }
  1472. }
  1473. )
  1474. ]
  1475. }
  1476. }
  1477. )
  1478. }
  1479. ))
  1480. )
  1481. ? _slot3
  1482. : {
  1483. default: function _default() {
  1484. return [_slot3]
  1485. }
  1486. }
  1487. ),
  1488. !_this6.form.subjectPrice.length &&
  1489. createVNode(
  1490. Field,
  1491. {
  1492. modelValue:
  1493. _this6.form.subjectIdTemp,
  1494. 'onUpdate:modelValue':
  1495. function onUpdateModelValue(
  1496. $event
  1497. ) {
  1498. return (_this6.form.subjectIdTemp =
  1499. $event)
  1500. },
  1501. name: 'courseMinutes',
  1502. readonly: true,
  1503. onClick: function onClick() {
  1504. _this6.subjectStatus = true
  1505. },
  1506. rules: [
  1507. {
  1508. required: true,
  1509. message: '请选择可教授乐器'
  1510. }
  1511. ],
  1512. placeholder: '请选择可教授乐器'
  1513. },
  1514. null
  1515. )
  1516. ]
  1517. }
  1518. }
  1519. ),
  1520. createVNode(
  1521. ColField,
  1522. { title: '单课时时长', required: true },
  1523. {
  1524. default: function _default() {
  1525. return [
  1526. createVNode(
  1527. Field,
  1528. {
  1529. modelValue: _this6.form.courseMinutes,
  1530. 'onUpdate:modelValue':
  1531. function onUpdateModelValue(
  1532. $event
  1533. ) {
  1534. return (_this6.form.courseMinutes =
  1535. $event)
  1536. },
  1537. name: 'courseMinutes',
  1538. readonly: true,
  1539. isLink: true,
  1540. onClick: function onClick() {
  1541. _this6.classTimeStatus = true
  1542. },
  1543. rules: [
  1544. {
  1545. required: true,
  1546. message: '请选择单课时时长'
  1547. }
  1548. ],
  1549. placeholder: '请选择单课时时长'
  1550. },
  1551. {
  1552. button: function button() {
  1553. return createVNode('span', null, [
  1554. createTextVNode('\u5206\u949F')
  1555. ])
  1556. }
  1557. }
  1558. )
  1559. ]
  1560. }
  1561. }
  1562. )
  1563. ]
  1564. }
  1565. }),
  1566. _this6.form.subjectPrice &&
  1567. _this6.form.subjectPrice.length > 0 &&
  1568. createVNode(
  1569. ColFieldGroup,
  1570. null,
  1571. _isSlot(
  1572. (_slot4 = _this6.form.subjectPrice.map(function (
  1573. item
  1574. ) {
  1575. return createVNode(
  1576. ColField,
  1577. {
  1578. title: ''.concat(
  1579. _this6.getSubjectName(item.subjectId),
  1580. '\u58F0\u90E8\u966A\u7EC3\u4EF7\u683C'
  1581. ),
  1582. required: true
  1583. },
  1584. {
  1585. default: function _default() {
  1586. return [
  1587. createVNode(
  1588. Field,
  1589. {
  1590. modelValue: item.subjectPrice,
  1591. 'onUpdate:modelValue':
  1592. function onUpdateModelValue(
  1593. $event
  1594. ) {
  1595. return (item.subjectPrice =
  1596. $event)
  1597. },
  1598. name: 'singleMins',
  1599. type: 'number',
  1600. labelWidth: 'auto',
  1601. label: ''.concat(
  1602. _this6.form.courseMinutes || 0,
  1603. '\u5206\u949F / '
  1604. ),
  1605. rules: [
  1606. {
  1607. required: true,
  1608. message:
  1609. '\u8BF7\u9009\u62E9\u58F0\u90E8\u966A\u7EC3\u4EF7\u683C'
  1610. }
  1611. ],
  1612. formatter: _this6.onFormatter,
  1613. maxlength: 8,
  1614. placeholder:
  1615. '\u8BF7\u9009\u62E9\u58F0\u90E8\u966A\u7EC3\u4EF7\u683C'
  1616. },
  1617. {
  1618. button: function button() {
  1619. return createVNode('span', null, [
  1620. createTextVNode('\u5143')
  1621. ])
  1622. }
  1623. }
  1624. )
  1625. ]
  1626. }
  1627. }
  1628. )
  1629. }))
  1630. )
  1631. ? _slot4
  1632. : {
  1633. default: function _default() {
  1634. return [_slot4]
  1635. }
  1636. }
  1637. ),
  1638. createVNode(ColFieldGroup, null, {
  1639. default: function _default() {
  1640. return [
  1641. createVNode(
  1642. ColField,
  1643. { title: '可陪练时间段' },
  1644. {
  1645. default: function _default() {
  1646. return [
  1647. createVNode(
  1648. Field,
  1649. {
  1650. modelValue: _this6.form.setting,
  1651. name: 'singleMins',
  1652. readonly: true,
  1653. isLink: true,
  1654. onClick: _this6.onTimer,
  1655. placeholder: '未设置'
  1656. },
  1657. null
  1658. )
  1659. ]
  1660. }
  1661. }
  1662. )
  1663. ]
  1664. }
  1665. }),
  1666. createVNode(ColFieldGroup, null, {
  1667. default: function _default() {
  1668. return [
  1669. createVNode(
  1670. ColField,
  1671. {
  1672. required: true,
  1673. title: '是否跳过节假日',
  1674. border: false
  1675. },
  1676. {
  1677. default: function _default() {
  1678. return [
  1679. createVNode(
  1680. RadioGroup,
  1681. {
  1682. class: styles$1['radio-group'],
  1683. modelValue:
  1684. _this6.form.skipHolidayFlag,
  1685. 'onUpdate:modelValue':
  1686. function onUpdateModelValue(val) {
  1687. return (_this6.form.skipHolidayFlag =
  1688. val)
  1689. }
  1690. },
  1691. _isSlot(
  1692. (_slot5 = ['1', '0'].map(function (
  1693. item
  1694. ) {
  1695. var isActive =
  1696. Number(item) ===
  1697. Number(
  1698. _this6.form.skipHolidayFlag
  1699. )
  1700. var type = isActive
  1701. ? 'primary'
  1702. : 'default'
  1703. return createVNode(
  1704. Radio,
  1705. {
  1706. class: styles$1.radio,
  1707. name: item
  1708. },
  1709. {
  1710. default: function _default() {
  1711. return [
  1712. createVNode(
  1713. Tag,
  1714. {
  1715. size: 'large',
  1716. plain: isActive,
  1717. type: type
  1718. },
  1719. {
  1720. default:
  1721. function _default() {
  1722. return [
  1723. _this6
  1724. .chargeTypeArr[
  1725. item
  1726. ]
  1727. ]
  1728. }
  1729. }
  1730. )
  1731. ]
  1732. }
  1733. }
  1734. )
  1735. }))
  1736. )
  1737. ? _slot5
  1738. : {
  1739. default: function _default() {
  1740. return [_slot5]
  1741. }
  1742. }
  1743. )
  1744. ]
  1745. }
  1746. }
  1747. )
  1748. ]
  1749. }
  1750. }),
  1751. createVNode(
  1752. Sticky,
  1753. { offsetBottom: 0, position: 'bottom' },
  1754. {
  1755. default: function _default() {
  1756. return [
  1757. createVNode('div', { class: 'btnGroup' }, [
  1758. createVNode(
  1759. Button,
  1760. {
  1761. block: true,
  1762. round: true,
  1763. type: 'primary',
  1764. 'native-type': 'submit'
  1765. },
  1766. {
  1767. default: function _default() {
  1768. return [createTextVNode('\u63D0\u4EA4')]
  1769. }
  1770. }
  1771. )
  1772. ])
  1773. ]
  1774. }
  1775. }
  1776. ),
  1777. createVNode(
  1778. ColPopup,
  1779. {
  1780. modelValue: _this6.subjectStatus,
  1781. 'onUpdate:modelValue': function onUpdateModelValue(
  1782. $event
  1783. ) {
  1784. return (_this6.subjectStatus = $event)
  1785. },
  1786. destroy: true
  1787. },
  1788. {
  1789. default: function _default() {
  1790. return [
  1791. createVNode(
  1792. SubjectModel,
  1793. {
  1794. max: 5,
  1795. single: true,
  1796. subjectList: _this6.subjectList,
  1797. choiceSubjectIds: _this6.choiceSubjectId,
  1798. onChoice: _this6.onChoice
  1799. },
  1800. null
  1801. )
  1802. ]
  1803. }
  1804. }
  1805. ),
  1806. createVNode(
  1807. ColPopup,
  1808. {
  1809. modelValue: _this6.timerStatus,
  1810. 'onUpdate:modelValue': function onUpdateModelValue(
  1811. $event
  1812. ) {
  1813. return (_this6.timerStatus = $event)
  1814. },
  1815. destroy: true
  1816. },
  1817. {
  1818. default: function _default() {
  1819. return [
  1820. createVNode(
  1821. Timer,
  1822. {
  1823. onChoice: _this6.onChoiceTimer,
  1824. timerObject: _this6.timerObject,
  1825. courseMinutes: Number(
  1826. _this6.timeSetting.courseMinutes
  1827. ),
  1828. freeMinutes: Number(
  1829. _this6.timeSetting.freeMinutes
  1830. ),
  1831. startSetting:
  1832. _this6.timeSetting.startSetting,
  1833. endSetting: _this6.timeSetting.endSetting
  1834. },
  1835. null
  1836. )
  1837. ]
  1838. }
  1839. }
  1840. ),
  1841. createVNode(
  1842. ActionSheet,
  1843. {
  1844. show: _this6.classTimeStatus,
  1845. 'onUpdate:show': function onUpdateShow($event) {
  1846. return (_this6.classTimeStatus = $event)
  1847. },
  1848. actions: _this6.minutes,
  1849. cancelText: '取消',
  1850. closeOnClickAction: true,
  1851. onSelect: _this6.onSelect
  1852. },
  1853. null
  1854. )
  1855. ]
  1856. }
  1857. }
  1858. )
  1859. }
  1860. })
  1861. )
  1862. }
  1863. }
  1864. }
  1865. )
  1866. })()