companion-teacher-register-legacy.37a5770b.js 187 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559
  1. !(function () {
  2. function e(e, t) {
  3. var o = Object.keys(e)
  4. if (Object.getOwnPropertySymbols) {
  5. var n = Object.getOwnPropertySymbols(e)
  6. t &&
  7. (n = n.filter(function (t) {
  8. return Object.getOwnPropertyDescriptor(e, t).enumerable
  9. })),
  10. o.push.apply(o, n)
  11. }
  12. return o
  13. }
  14. function t(t) {
  15. for (var n = 1; n < arguments.length; n++) {
  16. var r = null != arguments[n] ? arguments[n] : {}
  17. n % 2
  18. ? e(Object(r), !0).forEach(function (e) {
  19. o(t, e, r[e])
  20. })
  21. : Object.getOwnPropertyDescriptors
  22. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
  23. : e(Object(r)).forEach(function (e) {
  24. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e))
  25. })
  26. }
  27. return t
  28. }
  29. function o(e, t, o) {
  30. return (
  31. t in e
  32. ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 })
  33. : (e[t] = o),
  34. e
  35. )
  36. }
  37. function n(e, t, o, n, r, i, a) {
  38. try {
  39. var c = e[i](a),
  40. s = c.value
  41. } catch (l) {
  42. return void o(l)
  43. }
  44. c.done ? t(s) : Promise.resolve(s).then(n, r)
  45. }
  46. function r(e) {
  47. return function () {
  48. var t = this,
  49. o = arguments
  50. return new Promise(function (r, i) {
  51. var a = e.apply(t, o)
  52. function c(e) {
  53. n(a, r, i, c, s, 'next', e)
  54. }
  55. function s(e) {
  56. n(a, r, i, c, s, 'throw', e)
  57. }
  58. c(void 0)
  59. })
  60. }
  61. }
  62. function i(e, t) {
  63. return (
  64. (function (e) {
  65. if (Array.isArray(e)) return e
  66. })(e) ||
  67. (function (e, t) {
  68. var o =
  69. null == e ? null : ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
  70. if (null == o) return
  71. var n,
  72. r,
  73. i = [],
  74. a = !0,
  75. c = !1
  76. try {
  77. for (
  78. o = o.call(e);
  79. !(a = (n = o.next()).done) && (i.push(n.value), !t || i.length !== t);
  80. a = !0
  81. );
  82. } catch (s) {
  83. ;(c = !0), (r = s)
  84. } finally {
  85. try {
  86. a || null == o.return || o.return()
  87. } finally {
  88. if (c) throw r
  89. }
  90. }
  91. return i
  92. })(e, t) ||
  93. a(e, t) ||
  94. (function () {
  95. throw new TypeError(
  96. 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  97. )
  98. })()
  99. )
  100. }
  101. function a(e, t) {
  102. if (e) {
  103. if ('string' == typeof e) return c(e, t)
  104. var o = Object.prototype.toString.call(e).slice(8, -1)
  105. return (
  106. 'Object' === o && e.constructor && (o = e.constructor.name),
  107. 'Map' === o || 'Set' === o
  108. ? Array.from(e)
  109. : 'Arguments' === o || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)
  110. ? c(e, t)
  111. : void 0
  112. )
  113. }
  114. }
  115. function c(e, t) {
  116. ;(null == t || t > e.length) && (t = e.length)
  117. for (var o = 0, n = new Array(t); o < t; o++) n[o] = e[o]
  118. return n
  119. }
  120. var s = document.createElement('style')
  121. ;(s.innerHTML =
  122. 'html,body,p,div,span{padding:0;margin:0;border:0}._van-field--error_1lnaq_10 ._van-field__control_1lnaq_10::-moz-placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._van-field--error_1lnaq_10 ._van-field__control_1lnaq_10,._van-field--error_1lnaq_10 ._van-field__control_1lnaq_10::placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._register_1lnaq_15{background:url(./assets/banner1.8945bb6c.png) no-repeat top center #f8f8f8;background-size:contain;max-width:20rem;margin:0 auto;min-height:100vh;overflow:hidden}._register_1lnaq_15 .van-cell{flex-direction:column;font-size:.42667rem;padding:.37333rem .34667rem}._register_1lnaq_15 .van-field__label{width:100%;margin-right:0;color:#333;font-size:.42667rem;font-weight:500}._register_1lnaq_15 .van-cell--required:before{left:.4rem}._register_1lnaq_15 .van-field__body{margin-top:.26667rem}._register_1lnaq_15 .van-form{margin-top:4.64rem;overflow:hidden}._register_1lnaq_15 .van-tag+.van-tag{margin-left:.21333rem}._banner_1lnaq_50,._banner_1lnaq_50 img{width:100%;font-size:0}._radioSection_1lnaq_55+._radioSection_1lnaq_55{margin-left:.32rem}._btn-submit_1lnaq_58{width:90%;margin:.53333rem auto}._system_1lnaq_62 h2{font-size:.48rem;font-weight:500;margin:.26667rem .64rem;color:#444}._system_1lnaq_62 ._van-cell--required_1lnaq_35:before{left:.66667rem}._cell-group_1lnaq_71{margin:0 .34667rem .37333rem;border-radius:.26667rem;padding-bottom:.26667rem}._top-tips_1lnaq_76{margin:.8rem .34667rem .53333rem;padding:.24rem .18667rem;background:#ffffff;border-radius:.26667rem;border:.13333rem solid #be93ff;font-size:.37333rem;font-weight:500;color:#724da9;line-height:.53333rem}._title_1lnaq_87{position:absolute;top:0;left:0;padding:3.06667rem .64rem 0;width:57%;font-size:.74667rem;font-weight:600;color:#fff;line-height:.90667rem;letter-spacing:.02667rem}._tips_1lnaq_101{font-size:.42667rem;font-weight:500;color:#fff;line-height:.58667rem;text-shadow:0 .02667rem .13333rem #ff5e20;display:flex;align-items:center}._tips_1lnaq_101 img{margin-right:.21333rem;width:.48rem;height:.48rem}._radioSection_1lnaq_55{position:relative}._radioItem_1lnaq_118{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._van-picker__confirm_1lnaq_126{color:#f67146!important}._stautsS_1lnaq_130{position:relative}._submit-container_1lnaq_133{padding:.53333rem .69333rem .69333rem;text-align:center}._icon-close_1lnaq_137{position:absolute;width:.69333rem;height:.69333rem;top:.32rem;right:.32rem}._submit-img_1lnaq_144{width:100%}._submit-title_1lnaq_147{font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._submit-o_1lnaq_153{padding-top:.26667rem;font-size:.4rem;font-weight:500;color:#333;line-height:.56rem}._submit-o_1lnaq_153 span{color:#f67146}._submit-tips_1lnaq_163{font-size:.37333rem;color:#777;line-height:.53333rem;padding-top:.13333rem;padding-bottom:.53333rem}._submit-container_1lnaq_133 ._van-button_1lnaq_170{font-size:.48rem;font-weight:500}._cell_title_1lnaq_174{margin:0 .34667rem .21333rem;display:inline-block;padding:.05333rem .16rem .08rem;background:#64a9ff;border-radius:.16rem;font-size:.4rem;font-weight:600;color:#fff}._protocol_1lnaq_184{display:flex;align-items:center;justify-content:center;font-size:.32rem;color:#aaa;line-height:.45333rem}._protocol_1lnaq_184 ._c_1lnaq_71{color:#f67146}._phoneTips_1lnaq_195{margin:.32rem .32rem .08rem;background:#ffebdd;border-radius:.16rem;font-size:.34667rem;color:#f67146;padding:.24rem .26667rem}._uploader-section_jyku5_1{margin:.26667rem 0;height:3.86667rem;border:.02667rem dashed #ccc;border-radius:.26667rem;box-sizing:border-box;position:relative}._uploader-section_jyku5_1 ._img-close_jyku5_9{position:absolute;top:.21333rem;right:.26667rem;z-index:99;font-size:.42667rem;background-color:#333;color:#fff;width:.58667rem;height:.58667rem;display:flex;justify-content:center;align-items:center;border-radius:50%}._uploader-section_jyku5_1 ._col-uploader_jyku5_24,._uploader-section_jyku5_1 .van-uploader{width:100%;height:100%;align-items:center;display:flex;justify-content:center}._uploader-section_jyku5_1 .van-uploader__wrapper,._uploader-section_jyku5_1 .van-uploader__input-wrapper{display:flex;align-items:center;justify-content:center;width:inherit;height:inherit}._uploader-section_jyku5_1 ._uploader_jyku5_1{display:flex;align-items:center;justify-content:center;flex-direction:column}._uploader-section_jyku5_1 ._uploader_jyku5_1 ._uploaderText_jyku5_52{font-size:.37333rem;color:#999;margin-top:.21333rem}._uploader-section_jyku5_1 ._uploadImg_jyku5_57{width:100%;height:100%;overflow:hidden}.vue-cropper[data-v-be5e5ddc]{position:relative;width:100%;height:100%;box-sizing:border-box;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;direction:ltr;touch-action:none;text-align:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-box[data-v-be5e5ddc],.cropper-box-canvas[data-v-be5e5ddc],.cropper-drag-box[data-v-be5e5ddc],.cropper-crop-box[data-v-be5e5ddc],.cropper-face[data-v-be5e5ddc]{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-box-canvas img[data-v-be5e5ddc]{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:none;max-width:none;max-height:none}.cropper-box[data-v-be5e5ddc]{overflow:hidden}.cropper-move[data-v-be5e5ddc]{cursor:move}.cropper-crop[data-v-be5e5ddc]{cursor:crosshair}.cropper-modal[data-v-be5e5ddc]{background:rgba(0,0,0,.5)}.cropper-view-box[data-v-be5e5ddc]{display:block;overflow:hidden;width:100%;height:100%;outline:.02667rem solid #39f;outline-color:rgba(51,153,255,.75);-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-view-box img[data-v-be5e5ddc]{-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:left;max-width:none;max-height:none}.cropper-face[data-v-be5e5ddc]{top:0;left:0;background-color:#fff;opacity:.1}.crop-info[data-v-be5e5ddc]{position:absolute;left:0;min-width:1.73333rem;text-align:center;color:#fff;line-height:.53333rem;background-color:rgba(0,0,0,.8);font-size:.32rem}.crop-line[data-v-be5e5ddc]{position:absolute;display:block;width:100%;height:100%;opacity:.1}.line-w[data-v-be5e5ddc]{top:-.08rem;left:0;height:.13333rem;cursor:n-resize}.line-a[data-v-be5e5ddc]{top:0;left:-.08rem;width:.13333rem;cursor:w-resize}.line-s[data-v-be5e5ddc]{bottom:-.08rem;left:0;height:.13333rem;cursor:s-resize}.line-d[data-v-be5e5ddc]{top:0;right:-.08rem;width:.13333rem;cursor:e-resize}.crop-point[data-v-be5e5ddc]{position:absolute;width:.21333rem;height:.21333rem;opacity:.75;background-color:#39f;border-radius:100%}.point1[data-v-be5e5ddc]{top:-.10667rem;left:-.10667rem;cursor:nw-resize}.point2[data-v-be5e5ddc]{top:-.13333rem;left:50%;margin-left:-.08rem;cursor:n-resize}.point3[data-v-be5e5ddc]{top:-.10667rem;right:-.10667rem;cursor:ne-resize}.point4[data-v-be5e5ddc]{top:50%;left:-.10667rem;margin-top:-.08rem;cursor:w-resize}.point5[data-v-be5e5ddc]{top:50%;right:-.10667rem;margin-top:-.08rem;cursor:e-resize}.point6[data-v-be5e5ddc]{bottom:-.13333rem;left:-.10667rem;cursor:sw-resize}.point7[data-v-be5e5ddc]{bottom:-.13333rem;left:50%;margin-left:-.08rem;cursor:s-resize}.point8[data-v-be5e5ddc]{bottom:-.13333rem;right:-.10667rem;cursor:se-resize}@media screen and (max-width: 500px){.crop-point[data-v-be5e5ddc]{position:absolute;width:.53333rem;height:.53333rem;opacity:.45;background-color:#39f;border-radius:100%}.point1[data-v-be5e5ddc]{top:-.26667rem;left:-.26667rem}.point2[data-v-be5e5ddc],.point4[data-v-be5e5ddc],.point5[data-v-be5e5ddc],.point7[data-v-be5e5ddc]{display:none}.point3[data-v-be5e5ddc]{top:-.26667rem;right:-.26667rem}.point4[data-v-be5e5ddc]{top:0;left:0}.point6[data-v-be5e5ddc]{bottom:-.26667rem;left:-.26667rem}.point8[data-v-be5e5ddc]{bottom:-.26667rem;right:-.26667rem}}._upbtn_15vje_1{width:100%;height:100%}._uploadWarper_15vje_5{position:absolute;left:0;right:0;top:0;bottom:0}._bg_15vje_12{position:fixed;top:0;height:100vh;width:100%;background-color:#000;left:0;z-index:1000001}._btn_15vje_21{height:8vw;padding:0;line-height:8vw;font-size:4vw;padding:0 3.5vw;border-radius:1.333vw;text-align:center}._btn1_15vje_33{height:8vw;line-height:8vw;font-size:4vw;padding:0 4vw;border-radius:1.333vw;text-align:center;background-color:#5b6e96}._img_15vje_44{height:8vw;width:8vw;position:absolute;left:calc(50% - 4vw);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAZrElEQVR4Xu1dCbBtRXVdC4SAoggOcR6CCkbjbOKAE2iBqAE0kRLFGUVxiCZGVAzOChogDpiIEAaljEMciBGHoFFU1ERRSo0WGnHAKaJoYrRiuVLr/75Vl/f/e+/0cPoMt3fVrff+f717WLvX7dN9du9NNGkINATWRYANm4ZAQ2B9BBpB2uxoCGyAQCNImx4NgUaQNgcaAmkItBUkDbemtSIINIKsiKHbMNMQaARJw61prQgCjSArYug2zDQEGkHScGtaK4JAI8iKGLoNMw2BRpA03JrWiiDQCFLR0JJ+B8A1wmf3pd8X/+eflivW+5D035pUQqARpDDQkvYEcEsAt1j6ufjdfyshlwJY+/n24v9I/qpEI60OoBEkYxZI2gnAvQAcAOA+gRClSJDRM3wBwPkAPgbgMyR/nFPZKus2gkRaX9KdAewLYD8ABwLYObKKIYp/CsAnTZZAmO8O0YkpttkIsonVJHmv8CAA+wdi3GqKhl7T53MBbPmQ/MEMxtPbEBpBtgOtpF0CKUwMf67bmwWGrfjnC6IEsvxy2O6Mr/VGkGATSTsAOGiJGDcen7l67ZEfuxarygd6bWlCla88QSTdBMATABweTp4mZL7euvpRAGf7Q/I3vbUygYpXliCSfPT6xEC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eET0r23S54zr3MyhBjYciVIcgSUZyi2kTxuxOvLk02R2DliLGyBFkiije5JonJMsSJ1+bTcvgSK0uMlSfIElH83sAkOTycDA0/LYfvwcoToxFkzSSU5ONVX856UPjcePh5WrUHXwXgdxiOnD+rdxk5KK7cHqQLWJJ2WSKKCXPdLnoTLOMAewtSzPaoNscujSCboCdp90AWu7DsC+BWOYCPQNePTwtSOId9kw0QaASJnB6S7OdkouwXPGN3jqyidvFLAHiluDg8Pl1YuwNTbq8RJMN6knYKV4DtOu6Ad3b92DOjylzVbwOwJ61jgZkQF5NcyduRuUC2TXopBLfd7JsgJsrCV8o/F7+XII/9tRYfxyH+t/D5Isnv9TSsla22rSAVTS/Jb/AdJM0f720Wvy//1BIBlsnwU5L+d5OKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCPw/JjUpXx7VFvoAAAAASUVORK5CYII=);background-size:100% 100%}._btndiv_15vje_53{height:13.333vw;color:#fff;justify-content:space-between;display:flex;align-items:center;padding:0 4vw;line-height:13.333vw;font-size:4vw;position:relative}._wrapper_15vje_64{height:calc(100vh - 21.333vw);padding:4vw}._wrapper_15vje_64 .crop-point{opacity:0;z-index:523}._wrapper_15vje_64 .cropper-view-box{outline:.02667rem solid #fff;border:.02667rem solid #fff}._wrapper_15vje_64 .vue-cropper{background-color:#000;background-image:none}\n'),
  123. document.head.appendChild(s),
  124. System.register(
  125. [
  126. './area-legacy.ab68f48a.js',
  127. './index-legacy.2ae28dc5.js',
  128. './validate-legacy.1c2c1454.js',
  129. './index-legacy.47d88c54.js',
  130. './index-legacy.d61b8a1f.js',
  131. './function-call-legacy.5d08d5e0.js',
  132. './index-legacy.97665c37.js',
  133. './index-legacy.26638f55.js',
  134. './index-legacy.261ae52e.js',
  135. './index-legacy.79fdf090.js',
  136. './index-legacy.ef15ba2a.js',
  137. './index-legacy.eea1c236.js',
  138. './index-legacy.13f9f10f.js',
  139. './index-legacy.1fccc4ce.js',
  140. './use-tab-status-legacy.17f6d490.js',
  141. './index-legacy.f900000d.js',
  142. './index-legacy.51e5b886.js'
  143. ],
  144. function (e) {
  145. 'use strict'
  146. var o,
  147. n,
  148. c,
  149. s,
  150. l,
  151. u,
  152. h,
  153. d,
  154. p,
  155. f,
  156. g,
  157. m,
  158. v,
  159. b,
  160. w,
  161. y,
  162. C,
  163. A,
  164. x,
  165. k,
  166. S,
  167. I,
  168. O,
  169. _,
  170. B,
  171. E,
  172. j,
  173. T,
  174. M,
  175. R,
  176. Y,
  177. z,
  178. X,
  179. q,
  180. H,
  181. N,
  182. W,
  183. D,
  184. L,
  185. F,
  186. Q,
  187. U
  188. return {
  189. setters: [
  190. function (e) {
  191. ;(o = e.a), (n = e.F)
  192. },
  193. function (e) {
  194. ;(c = e.d),
  195. (s = e.o),
  196. (l = e.a_),
  197. (u = e.a8),
  198. (h = e.ax),
  199. (d = e.a$),
  200. (p = e.b0),
  201. (f = e.b1),
  202. (g = e.b2),
  203. (m = e.b3),
  204. (v = e.k),
  205. (b = e.p),
  206. (w = e.j),
  207. (y = e.b4),
  208. (C = e.s),
  209. (A = e.g),
  210. (x = e.b5),
  211. (k = e.b6),
  212. (S = e.b7),
  213. (I = e.aR),
  214. (O = e.a2),
  215. (_ = e.b8),
  216. (B = e.R),
  217. (E = e.X),
  218. (j = e.B),
  219. (T = e.l),
  220. (M = e.F),
  221. (R = e.P)
  222. },
  223. function (e) {
  224. ;(Y = e.I), (z = e.c)
  225. },
  226. function (e) {
  227. X = e.U
  228. },
  229. function (e) {
  230. q = e.I
  231. },
  232. function (e) {
  233. H = e.a
  234. },
  235. function (e) {
  236. N = e.P
  237. },
  238. function (e) {
  239. W = e.C
  240. },
  241. function (e) {
  242. D = e.F
  243. },
  244. function (e) {
  245. ;(L = e.R), (F = e.a)
  246. },
  247. function (e) {
  248. Q = e.T
  249. },
  250. function (e) {
  251. U = e.C
  252. },
  253. function () {},
  254. function () {},
  255. function () {},
  256. function () {},
  257. function () {}
  258. ],
  259. execute: function () {
  260. var J = {
  261. 'van-field--error': '_van-field--error_1lnaq_10',
  262. 'van-field__control': '_van-field__control_1lnaq_10',
  263. register: '_register_1lnaq_15',
  264. banner: '_banner_1lnaq_50',
  265. radioSection: '_radioSection_1lnaq_55',
  266. 'btn-submit': '_btn-submit_1lnaq_58',
  267. system: '_system_1lnaq_62',
  268. 'van-cell--required': '_van-cell--required_1lnaq_35',
  269. 'cell-group': '_cell-group_1lnaq_71',
  270. 'top-tips': '_top-tips_1lnaq_76',
  271. title: '_title_1lnaq_87',
  272. tips: '_tips_1lnaq_101',
  273. radioItem: '_radioItem_1lnaq_118',
  274. 'van-picker__confirm': '_van-picker__confirm_1lnaq_126',
  275. stautsS: '_stautsS_1lnaq_130',
  276. 'submit-container': '_submit-container_1lnaq_133',
  277. 'icon-close': '_icon-close_1lnaq_137',
  278. 'submit-img': '_submit-img_1lnaq_144',
  279. 'submit-title': '_submit-title_1lnaq_147',
  280. 'submit-o': '_submit-o_1lnaq_153',
  281. 'submit-tips': '_submit-tips_1lnaq_163',
  282. 'van-button': '_van-button_1lnaq_170',
  283. cell_title: '_cell_title_1lnaq_174',
  284. protocol: '_protocol_1lnaq_184',
  285. c: '_c_1lnaq_71',
  286. phoneTips: '_phoneTips_1lnaq_195'
  287. },
  288. V = '_uploader-section_jyku5_1',
  289. P = '_img-close_jyku5_9',
  290. K = '_col-uploader_jyku5_24',
  291. G = '_uploader_jyku5_1',
  292. Z = '_uploaderText_jyku5_52',
  293. $ = '_uploadImg_jyku5_57',
  294. ee = {}
  295. ee.getData = function (e) {
  296. return new Promise(function (t, o) {
  297. var n = {}
  298. ;(function (e) {
  299. var t = null
  300. return new Promise(function (o, n) {
  301. if (e.src)
  302. if (/^data\:/i.test(e.src))
  303. (t = (function (e) {
  304. e = e.replace(/^data\:([^\;]+)\;base64,/gim, '')
  305. for (
  306. var t = atob(e),
  307. o = t.length,
  308. n = new ArrayBuffer(o),
  309. r = new Uint8Array(n),
  310. i = 0;
  311. i < o;
  312. i++
  313. )
  314. r[i] = t.charCodeAt(i)
  315. return n
  316. })(e.src)),
  317. o(t)
  318. else if (/^blob\:/i.test(e.src)) {
  319. var r = new FileReader()
  320. ;(r.onload = function (e) {
  321. ;(t = e.target.result), o(t)
  322. }),
  323. (function (e, t) {
  324. var o = new XMLHttpRequest()
  325. o.open('GET', e, !0),
  326. (o.responseType = 'blob'),
  327. (o.onload = function (e) {
  328. ;(200 != this.status && 0 !== this.status) || t(this.response)
  329. }),
  330. o.send()
  331. })(e.src, function (e) {
  332. r.readAsArrayBuffer(e)
  333. })
  334. } else {
  335. var i = new XMLHttpRequest()
  336. ;(i.onload = function () {
  337. if (200 != this.status && 0 !== this.status) throw 'Could not load image'
  338. ;(t = i.response), o(t), (i = null)
  339. }),
  340. i.open('GET', e.src, !0),
  341. (i.responseType = 'arraybuffer'),
  342. i.send(null)
  343. }
  344. else n('img error')
  345. })
  346. })(e)
  347. .then(function (e) {
  348. ;(n.arrayBuffer = e),
  349. (n.orientation = (function (e) {
  350. var t,
  351. o,
  352. n,
  353. r,
  354. i,
  355. a,
  356. c,
  357. s,
  358. l,
  359. u = new DataView(e),
  360. h = u.byteLength
  361. if (255 === u.getUint8(0) && 216 === u.getUint8(1))
  362. for (s = 2; s < h; ) {
  363. if (255 === u.getUint8(s) && 225 === u.getUint8(s + 1)) {
  364. a = s
  365. break
  366. }
  367. s++
  368. }
  369. a &&
  370. ((o = a + 10),
  371. 'Exif' ===
  372. (function (e, t, o) {
  373. var n,
  374. r = ''
  375. for (n = t, o += t; n < o; n++)
  376. r += String.fromCharCode(e.getUint8(n))
  377. return r
  378. })(u, a + 4, 4) &&
  379. ((r = 18761 === (i = u.getUint16(o))) || 19789 === i) &&
  380. 42 === u.getUint16(o + 2, r) &&
  381. (n = u.getUint32(o + 4, r)) >= 8 &&
  382. (c = o + n))
  383. if (c)
  384. for (h = u.getUint16(c, r), l = 0; l < h; l++)
  385. if (((s = c + 12 * l + 2), 274 === u.getUint16(s, r))) {
  386. ;(s += 8), (t = u.getUint16(s, r))
  387. break
  388. }
  389. return t
  390. })(e)),
  391. t(n)
  392. })
  393. .catch(function (e) {
  394. o(e)
  395. })
  396. })
  397. }
  398. var te = function (e, t) {
  399. var o,
  400. n = e.__vccOpts || e,
  401. r = (function (e, t) {
  402. var o = ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
  403. if (!o) {
  404. if (
  405. Array.isArray(e) ||
  406. (o = a(e)) ||
  407. (t && e && 'number' == typeof e.length)
  408. ) {
  409. o && (e = o)
  410. var n = 0,
  411. r = function () {}
  412. return {
  413. s: r,
  414. n: function () {
  415. return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] }
  416. },
  417. e: function (e) {
  418. throw e
  419. },
  420. f: r
  421. }
  422. }
  423. throw new TypeError(
  424. 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  425. )
  426. }
  427. var i,
  428. c = !0,
  429. s = !1
  430. return {
  431. s: function () {
  432. o = o.call(e)
  433. },
  434. n: function () {
  435. var e = o.next()
  436. return (c = e.done), e
  437. },
  438. e: function (e) {
  439. ;(s = !0), (i = e)
  440. },
  441. f: function () {
  442. try {
  443. c || null == o.return || o.return()
  444. } finally {
  445. if (s) throw i
  446. }
  447. }
  448. }
  449. })(t)
  450. try {
  451. for (r.s(); !(o = r.n()).done; ) {
  452. var c = i(o.value, 2),
  453. s = c[0],
  454. l = c[1]
  455. n[s] = l
  456. }
  457. } catch (u) {
  458. r.e(u)
  459. } finally {
  460. r.f()
  461. }
  462. return n
  463. },
  464. oe = c({
  465. data: function () {
  466. return {
  467. w: 0,
  468. h: 0,
  469. scale: 1,
  470. x: 0,
  471. y: 0,
  472. loading: !0,
  473. trueWidth: 0,
  474. trueHeight: 0,
  475. move: !0,
  476. moveX: 0,
  477. moveY: 0,
  478. crop: !1,
  479. cropping: !1,
  480. cropW: 0,
  481. cropH: 0,
  482. cropOldW: 0,
  483. cropOldH: 0,
  484. canChangeX: !1,
  485. canChangeY: !1,
  486. changeCropTypeX: 1,
  487. changeCropTypeY: 1,
  488. cropX: 0,
  489. cropY: 0,
  490. cropChangeX: 0,
  491. cropChangeY: 0,
  492. cropOffsertX: 0,
  493. cropOffsertY: 0,
  494. support: '',
  495. touches: [],
  496. touchNow: !1,
  497. rotate: 0,
  498. isIos: !1,
  499. orientation: 0,
  500. imgs: '',
  501. coe: 0.2,
  502. scaling: !1,
  503. scalingSet: '',
  504. coeStatus: '',
  505. isCanShow: !0
  506. }
  507. },
  508. props: {
  509. img: { type: [String, Blob, null, File], default: '' },
  510. outputSize: { type: Number, default: 1 },
  511. outputType: { type: String, default: 'jpeg' },
  512. info: { type: Boolean, default: !0 },
  513. canScale: { type: Boolean, default: !0 },
  514. autoCrop: { type: Boolean, default: !1 },
  515. autoCropWidth: { type: [Number, String], default: 0 },
  516. autoCropHeight: { type: [Number, String], default: 0 },
  517. fixed: { type: Boolean, default: !1 },
  518. fixedNumber: {
  519. type: Array,
  520. default: function () {
  521. return [1, 1]
  522. }
  523. },
  524. fixedBox: { type: Boolean, default: !1 },
  525. full: { type: Boolean, default: !1 },
  526. canMove: { type: Boolean, default: !0 },
  527. canMoveBox: { type: Boolean, default: !0 },
  528. original: { type: Boolean, default: !1 },
  529. centerBox: { type: Boolean, default: !1 },
  530. high: { type: Boolean, default: !0 },
  531. infoTrue: { type: Boolean, default: !1 },
  532. maxImgSize: { type: [Number, String], default: 2e3 },
  533. enlarge: { type: [Number, String], default: 1 },
  534. preW: { type: [Number, String], default: 0 },
  535. mode: { type: String, default: 'contain' },
  536. limitMinSize: {
  537. type: [Number, Array, String],
  538. default: function () {
  539. return 10
  540. }
  541. }
  542. },
  543. computed: {
  544. cropInfo: function () {
  545. var e = {}
  546. if (
  547. ((e.top = this.cropOffsertY > 21 ? '-21px' : '0px'),
  548. (e.width = this.cropW > 0 ? this.cropW : 0),
  549. (e.height = this.cropH > 0 ? this.cropH : 0),
  550. this.infoTrue)
  551. ) {
  552. var t = 1
  553. this.high && !this.full && (t = window.devicePixelRatio),
  554. (1 !== this.enlarge) & !this.full && (t = Math.abs(Number(this.enlarge))),
  555. (e.width = e.width * t),
  556. (e.height = e.height * t),
  557. this.full &&
  558. ((e.width = e.width / this.scale), (e.height = e.height / this.scale))
  559. }
  560. return (e.width = e.width.toFixed(0)), (e.height = e.height.toFixed(0)), e
  561. },
  562. isIE: function () {
  563. var e = !!window.ActiveXObject || 'ActiveXObject' in window
  564. return e
  565. },
  566. passive: function () {
  567. return this.isIE ? null : { passive: !1 }
  568. }
  569. },
  570. watch: {
  571. img: function () {
  572. this.checkedImg()
  573. },
  574. imgs: function (e) {
  575. '' !== e && this.reload()
  576. },
  577. cropW: function () {
  578. this.showPreview()
  579. },
  580. cropH: function () {
  581. this.showPreview()
  582. },
  583. cropOffsertX: function () {
  584. this.showPreview()
  585. },
  586. cropOffsertY: function () {
  587. this.showPreview()
  588. },
  589. scale: function (e, t) {
  590. this.showPreview()
  591. },
  592. x: function () {
  593. this.showPreview()
  594. },
  595. y: function () {
  596. this.showPreview()
  597. },
  598. autoCrop: function (e) {
  599. e && this.goAutoCrop()
  600. },
  601. autoCropWidth: function () {
  602. this.autoCrop && this.goAutoCrop()
  603. },
  604. autoCropHeight: function () {
  605. this.autoCrop && this.goAutoCrop()
  606. },
  607. mode: function () {
  608. this.checkedImg()
  609. },
  610. rotate: function () {
  611. this.showPreview(),
  612. (this.autoCrop || this.cropW > 0 || this.cropH > 0) &&
  613. this.goAutoCrop(this.cropW, this.cropH)
  614. }
  615. },
  616. methods: {
  617. getVersion: function (e) {
  618. for (
  619. var t = navigator.userAgent.split(' '), o = '', n = new RegExp(e, 'i'), r = 0;
  620. r < t.length;
  621. r++
  622. )
  623. n.test(t[r]) && (o = t[r])
  624. return o ? o.split('/')[1].split('.') : ['0', '0', '0']
  625. },
  626. checkOrientationImage: function (e, t, o, n) {
  627. var r = this
  628. if (this.getVersion('chrome')[0] >= 81) t = -1
  629. else if (this.getVersion('safari')[0] >= 605) {
  630. var i = this.getVersion('version')
  631. i[0] > 13 && i[1] > 1 && (t = -1)
  632. } else {
  633. var a = navigator.userAgent
  634. .toLowerCase()
  635. .match(/cpu iphone os (.*?) like mac os/)
  636. if (a) {
  637. var c = a[1]
  638. ;((c = c.split('_'))[0] > 13 || (c[0] >= 13 && c[1] >= 4)) && (t = -1)
  639. }
  640. }
  641. var s = document.createElement('canvas'),
  642. l = s.getContext('2d')
  643. switch ((l.save(), t)) {
  644. case 2:
  645. ;(s.width = o), (s.height = n), l.translate(o, 0), l.scale(-1, 1)
  646. break
  647. case 3:
  648. ;(s.width = o),
  649. (s.height = n),
  650. l.translate(o / 2, n / 2),
  651. l.rotate((180 * Math.PI) / 180),
  652. l.translate(-o / 2, -n / 2)
  653. break
  654. case 4:
  655. ;(s.width = o), (s.height = n), l.translate(0, n), l.scale(1, -1)
  656. break
  657. case 5:
  658. ;(s.height = o), (s.width = n), l.rotate(0.5 * Math.PI), l.scale(1, -1)
  659. break
  660. case 6:
  661. ;(s.width = n),
  662. (s.height = o),
  663. l.translate(n / 2, o / 2),
  664. l.rotate((90 * Math.PI) / 180),
  665. l.translate(-o / 2, -n / 2)
  666. break
  667. case 7:
  668. ;(s.height = o),
  669. (s.width = n),
  670. l.rotate(0.5 * Math.PI),
  671. l.translate(o, -n),
  672. l.scale(-1, 1)
  673. break
  674. case 8:
  675. ;(s.height = o),
  676. (s.width = n),
  677. l.translate(n / 2, o / 2),
  678. l.rotate((-90 * Math.PI) / 180),
  679. l.translate(-o / 2, -n / 2)
  680. break
  681. default:
  682. ;(s.width = o), (s.height = n)
  683. }
  684. l.drawImage(e, 0, 0, o, n),
  685. l.restore(),
  686. s.toBlob(
  687. function (e) {
  688. var t = URL.createObjectURL(e)
  689. URL.revokeObjectURL(r.imgs), (r.imgs = t)
  690. },
  691. 'image/' + this.outputType,
  692. 1
  693. )
  694. },
  695. checkedImg: function () {
  696. var e = this
  697. if (null === this.img || '' === this.img)
  698. return (this.imgs = ''), void this.clearCrop()
  699. ;(this.loading = !0), (this.scale = 1), (this.rotate = 0), this.clearCrop()
  700. var t = new Image()
  701. if (
  702. ((t.onload = function () {
  703. if ('' === e.img) return e.$emit('img-load', 'error'), !1
  704. var o = t.width,
  705. n = t.height
  706. ee.getData(t).then(function (r) {
  707. e.orientation = r.orientation || 1
  708. var i = Number(e.maxImgSize)
  709. !e.orientation && (o < i) & (n < i)
  710. ? (e.imgs = e.img)
  711. : (o > i && ((n = (n / o) * i), (o = i)),
  712. n > i && ((o = (o / n) * i), (n = i)),
  713. e.checkOrientationImage(t, e.orientation, o, n))
  714. })
  715. }),
  716. (t.onerror = function () {
  717. e.$emit('img-load', 'error')
  718. }),
  719. 'data' !== this.img.substr(0, 4) && (t.crossOrigin = ''),
  720. this.isIE)
  721. ) {
  722. var o = new XMLHttpRequest()
  723. ;(o.onload = function () {
  724. var e = URL.createObjectURL(this.response)
  725. t.src = e
  726. }),
  727. o.open('GET', this.img, !0),
  728. (o.responseType = 'blob'),
  729. o.send()
  730. } else t.src = this.img
  731. },
  732. startMove: function (e) {
  733. if ((e.preventDefault(), this.move && !this.crop)) {
  734. if (!this.canMove) return !1
  735. ;(this.moveX = ('clientX' in e ? e.clientX : e.touches[0].clientX) - this.x),
  736. (this.moveY = ('clientY' in e ? e.clientY : e.touches[0].clientY) - this.y),
  737. e.touches
  738. ? (window.addEventListener('touchmove', this.moveImg),
  739. window.addEventListener('touchend', this.leaveImg),
  740. 2 == e.touches.length &&
  741. ((this.touches = e.touches),
  742. window.addEventListener('touchmove', this.touchScale),
  743. window.addEventListener('touchend', this.cancelTouchScale)))
  744. : (window.addEventListener('mousemove', this.moveImg),
  745. window.addEventListener('mouseup', this.leaveImg)),
  746. this.$emit('imgMoving', { moving: !0, axis: this.getImgAxis() }),
  747. this.$emit('img-moving', { moving: !0, axis: this.getImgAxis() })
  748. } else
  749. (this.cropping = !0),
  750. window.addEventListener('mousemove', this.createCrop),
  751. window.addEventListener('mouseup', this.endCrop),
  752. window.addEventListener('touchmove', this.createCrop),
  753. window.addEventListener('touchend', this.endCrop),
  754. (this.cropOffsertX = e.offsetX
  755. ? e.offsetX
  756. : e.touches[0].pageX - this.$refs.cropper.offsetLeft),
  757. (this.cropOffsertY = e.offsetY
  758. ? e.offsetY
  759. : e.touches[0].pageY - this.$refs.cropper.offsetTop),
  760. (this.cropX = 'clientX' in e ? e.clientX : e.touches[0].clientX),
  761. (this.cropY = 'clientY' in e ? e.clientY : e.touches[0].clientY),
  762. (this.cropChangeX = this.cropOffsertX),
  763. (this.cropChangeY = this.cropOffsertY),
  764. (this.cropW = 0),
  765. (this.cropH = 0)
  766. },
  767. touchScale: function (e) {
  768. var t = this
  769. e.preventDefault()
  770. var o = this.scale,
  771. n = this.touches[0].clientX,
  772. r = this.touches[0].clientY,
  773. i = e.touches[0].clientX,
  774. a = e.touches[0].clientY,
  775. c = this.touches[1].clientX,
  776. s = this.touches[1].clientY,
  777. l = e.touches[1].clientX,
  778. u = e.touches[1].clientY,
  779. h = Math.sqrt(Math.pow(n - c, 2) + Math.pow(r - s, 2)),
  780. d = Math.sqrt(Math.pow(i - l, 2) + Math.pow(a - u, 2)) - h,
  781. p = 1,
  782. f =
  783. (p =
  784. (p =
  785. p / this.trueWidth > p / this.trueHeight
  786. ? p / this.trueHeight
  787. : p / this.trueWidth) > 0.1
  788. ? 0.1
  789. : p) * d
  790. if (!this.touchNow) {
  791. if (
  792. ((this.touchNow = !0),
  793. d > 0 ? (o += Math.abs(f)) : d < 0 && o > Math.abs(f) && (o -= Math.abs(f)),
  794. (this.touches = e.touches),
  795. setTimeout(function () {
  796. t.touchNow = !1
  797. }, 8),
  798. !this.checkoutImgAxis(this.x, this.y, o))
  799. )
  800. return !1
  801. this.scale = o
  802. }
  803. },
  804. cancelTouchScale: function (e) {
  805. window.removeEventListener('touchmove', this.touchScale)
  806. },
  807. moveImg: function (e) {
  808. var t = this
  809. if ((e.preventDefault(), e.touches && 2 === e.touches.length))
  810. return (
  811. (this.touches = e.touches),
  812. window.addEventListener('touchmove', this.touchScale),
  813. window.addEventListener('touchend', this.cancelTouchScale),
  814. window.removeEventListener('touchmove', this.moveImg),
  815. !1
  816. )
  817. var o,
  818. n,
  819. r = 'clientX' in e ? e.clientX : e.touches[0].clientX,
  820. i = 'clientY' in e ? e.clientY : e.touches[0].clientY
  821. ;(o = r - this.moveX),
  822. (n = i - this.moveY),
  823. this.$nextTick(function () {
  824. if (t.centerBox) {
  825. var e,
  826. r,
  827. i,
  828. a,
  829. c = t.getImgAxis(o, n, t.scale),
  830. s = t.getCropAxis(),
  831. l = t.trueHeight * t.scale,
  832. u = t.trueWidth * t.scale
  833. switch (t.rotate) {
  834. case 1:
  835. case -1:
  836. case 3:
  837. case -3:
  838. ;(e =
  839. t.cropOffsertX - (t.trueWidth * (1 - t.scale)) / 2 + (l - u) / 2),
  840. (r =
  841. t.cropOffsertY -
  842. (t.trueHeight * (1 - t.scale)) / 2 +
  843. (u - l) / 2),
  844. (i = e - l + t.cropW),
  845. (a = r - u + t.cropH)
  846. break
  847. default:
  848. ;(e = t.cropOffsertX - (t.trueWidth * (1 - t.scale)) / 2),
  849. (r = t.cropOffsertY - (t.trueHeight * (1 - t.scale)) / 2),
  850. (i = e - u + t.cropW),
  851. (a = r - l + t.cropH)
  852. }
  853. c.x1 >= s.x1 && (o = e),
  854. c.y1 >= s.y1 && (n = r),
  855. c.x2 <= s.x2 && (o = i),
  856. c.y2 <= s.y2 && (n = a)
  857. }
  858. ;(t.x = o),
  859. (t.y = n),
  860. t.$emit('imgMoving', { moving: !0, axis: t.getImgAxis() }),
  861. t.$emit('img-moving', { moving: !0, axis: t.getImgAxis() })
  862. })
  863. },
  864. leaveImg: function (e) {
  865. window.removeEventListener('mousemove', this.moveImg),
  866. window.removeEventListener('touchmove', this.moveImg),
  867. window.removeEventListener('mouseup', this.leaveImg),
  868. window.removeEventListener('touchend', this.leaveImg),
  869. this.$emit('imgMoving', { moving: !1, axis: this.getImgAxis() }),
  870. this.$emit('img-moving', { moving: !1, axis: this.getImgAxis() })
  871. },
  872. scaleImg: function () {
  873. this.canScale &&
  874. window.addEventListener(this.support, this.changeSize, this.passive)
  875. },
  876. cancelScale: function () {
  877. this.canScale && window.removeEventListener(this.support, this.changeSize)
  878. },
  879. changeSize: function (e) {
  880. var t = this
  881. e.preventDefault()
  882. var o = this.scale,
  883. n = e.deltaY || e.wheelDelta
  884. ;(n = navigator.userAgent.indexOf('Firefox') > 0 ? 30 * n : n),
  885. this.isIE && (n = -n)
  886. var r = this.coe,
  887. i =
  888. (r =
  889. r / this.trueWidth > r / this.trueHeight
  890. ? r / this.trueHeight
  891. : r / this.trueWidth) * n
  892. i < 0 ? (o += Math.abs(i)) : o > Math.abs(i) && (o -= Math.abs(i))
  893. var a = i < 0 ? 'add' : 'reduce'
  894. if (
  895. (a !== this.coeStatus && ((this.coeStatus = a), (this.coe = 0.2)),
  896. this.scaling ||
  897. (this.scalingSet = setTimeout(function () {
  898. ;(t.scaling = !1), (t.coe = t.coe += 0.01)
  899. }, 50)),
  900. (this.scaling = !0),
  901. !this.checkoutImgAxis(this.x, this.y, o))
  902. )
  903. return !1
  904. this.scale = o
  905. },
  906. changeScale: function (e) {
  907. var t = this.scale
  908. e = e || 1
  909. var o = 20
  910. if (
  911. ((e *= o =
  912. o / this.trueWidth > o / this.trueHeight
  913. ? o / this.trueHeight
  914. : o / this.trueWidth) > 0
  915. ? (t += Math.abs(e))
  916. : t > Math.abs(e) && (t -= Math.abs(e)),
  917. !this.checkoutImgAxis(this.x, this.y, t))
  918. )
  919. return !1
  920. this.scale = t
  921. },
  922. createCrop: function (e) {
  923. var t = this
  924. e.preventDefault()
  925. var o = 'clientX' in e ? e.clientX : e.touches ? e.touches[0].clientX : 0,
  926. n = 'clientY' in e ? e.clientY : e.touches ? e.touches[0].clientY : 0
  927. this.$nextTick(function () {
  928. var e = o - t.cropX,
  929. r = n - t.cropY
  930. if (
  931. (e > 0
  932. ? ((t.cropW = e + t.cropChangeX > t.w ? t.w - t.cropChangeX : e),
  933. (t.cropOffsertX = t.cropChangeX))
  934. : ((t.cropW =
  935. t.w - t.cropChangeX + Math.abs(e) > t.w
  936. ? t.cropChangeX
  937. : Math.abs(e)),
  938. (t.cropOffsertX = t.cropChangeX + e > 0 ? t.cropChangeX + e : 0)),
  939. t.fixed)
  940. ) {
  941. var i = (t.cropW / t.fixedNumber[0]) * t.fixedNumber[1]
  942. i + t.cropOffsertY > t.h
  943. ? ((t.cropH = t.h - t.cropOffsertY),
  944. (t.cropW = (t.cropH / t.fixedNumber[1]) * t.fixedNumber[0]),
  945. (t.cropOffsertX = e > 0 ? t.cropChangeX : t.cropChangeX - t.cropW))
  946. : (t.cropH = i),
  947. (t.cropOffsertY = t.cropOffsertY)
  948. } else r > 0 ? ((t.cropH = r + t.cropChangeY > t.h ? t.h - t.cropChangeY : r), (t.cropOffsertY = t.cropChangeY)) : ((t.cropH = t.h - t.cropChangeY + Math.abs(r) > t.h ? t.cropChangeY : Math.abs(r)), (t.cropOffsertY = t.cropChangeY + r > 0 ? t.cropChangeY + r : 0))
  949. })
  950. },
  951. changeCropSize: function (e, t, o, n, r) {
  952. e.preventDefault(),
  953. window.addEventListener('mousemove', this.changeCropNow),
  954. window.addEventListener('mouseup', this.changeCropEnd),
  955. window.addEventListener('touchmove', this.changeCropNow),
  956. window.addEventListener('touchend', this.changeCropEnd),
  957. (this.canChangeX = t),
  958. (this.canChangeY = o),
  959. (this.changeCropTypeX = n),
  960. (this.changeCropTypeY = r),
  961. (this.cropX = 'clientX' in e ? e.clientX : e.touches[0].clientX),
  962. (this.cropY = 'clientY' in e ? e.clientY : e.touches[0].clientY),
  963. (this.cropOldW = this.cropW),
  964. (this.cropOldH = this.cropH),
  965. (this.cropChangeX = this.cropOffsertX),
  966. (this.cropChangeY = this.cropOffsertY),
  967. this.fixed && this.canChangeX && this.canChangeY && (this.canChangeY = 0),
  968. this.$emit('change-crop-size', { width: this.cropW, height: this.cropH })
  969. },
  970. changeCropNow: function (e) {
  971. var t = this
  972. e.preventDefault()
  973. var o = 'clientX' in e ? e.clientX : e.touches ? e.touches[0].clientX : 0,
  974. n = 'clientY' in e ? e.clientY : e.touches ? e.touches[0].clientY : 0,
  975. r = this.w,
  976. i = this.h,
  977. a = 0,
  978. c = 0
  979. if (this.centerBox) {
  980. var s = this.getImgAxis(),
  981. l = s.x2,
  982. u = s.y2
  983. ;(a = s.x1 > 0 ? s.x1 : 0),
  984. (c = s.y1 > 0 ? s.y1 : 0),
  985. r > l && (r = l),
  986. i > u && (i = u)
  987. }
  988. this.$nextTick(function () {
  989. var e = o - t.cropX,
  990. s = n - t.cropY
  991. if (
  992. (t.canChangeX &&
  993. (1 === t.changeCropTypeX
  994. ? t.cropOldW - e > 0
  995. ? ((t.cropW =
  996. r - t.cropChangeX - e <= r - a
  997. ? t.cropOldW - e
  998. : t.cropOldW + t.cropChangeX - a),
  999. (t.cropOffsertX =
  1000. r - t.cropChangeX - e <= r - a ? t.cropChangeX + e : a))
  1001. : ((t.cropW =
  1002. Math.abs(e) + t.cropChangeX <= r
  1003. ? Math.abs(e) - t.cropOldW
  1004. : r - t.cropOldW - t.cropChangeX),
  1005. (t.cropOffsertX = t.cropChangeX + t.cropOldW))
  1006. : 2 === t.changeCropTypeX &&
  1007. (t.cropOldW + e > 0
  1008. ? ((t.cropW =
  1009. t.cropOldW + e + t.cropOffsertX <= r
  1010. ? t.cropOldW + e
  1011. : r - t.cropOffsertX),
  1012. (t.cropOffsertX = t.cropChangeX))
  1013. : ((t.cropW =
  1014. r - t.cropChangeX + Math.abs(e + t.cropOldW) <= r - a
  1015. ? Math.abs(e + t.cropOldW)
  1016. : t.cropChangeX - a),
  1017. (t.cropOffsertX =
  1018. r - t.cropChangeX + Math.abs(e + t.cropOldW) <= r - a
  1019. ? t.cropChangeX - Math.abs(e + t.cropOldW)
  1020. : a)))),
  1021. t.canChangeY &&
  1022. (1 === t.changeCropTypeY
  1023. ? t.cropOldH - s > 0
  1024. ? ((t.cropH =
  1025. i - t.cropChangeY - s <= i - c
  1026. ? t.cropOldH - s
  1027. : t.cropOldH + t.cropChangeY - c),
  1028. (t.cropOffsertY =
  1029. i - t.cropChangeY - s <= i - c ? t.cropChangeY + s : c))
  1030. : ((t.cropH =
  1031. Math.abs(s) + t.cropChangeY <= i
  1032. ? Math.abs(s) - t.cropOldH
  1033. : i - t.cropOldH - t.cropChangeY),
  1034. (t.cropOffsertY = t.cropChangeY + t.cropOldH))
  1035. : 2 === t.changeCropTypeY &&
  1036. (t.cropOldH + s > 0
  1037. ? ((t.cropH =
  1038. t.cropOldH + s + t.cropOffsertY <= i
  1039. ? t.cropOldH + s
  1040. : i - t.cropOffsertY),
  1041. (t.cropOffsertY = t.cropChangeY))
  1042. : ((t.cropH =
  1043. i - t.cropChangeY + Math.abs(s + t.cropOldH) <= i - c
  1044. ? Math.abs(s + t.cropOldH)
  1045. : t.cropChangeY - c),
  1046. (t.cropOffsertY =
  1047. i - t.cropChangeY + Math.abs(s + t.cropOldH) <= i - c
  1048. ? t.cropChangeY - Math.abs(s + t.cropOldH)
  1049. : c)))),
  1050. t.canChangeX && t.fixed)
  1051. ) {
  1052. var l = (t.cropW / t.fixedNumber[0]) * t.fixedNumber[1]
  1053. l + t.cropOffsertY > i
  1054. ? ((t.cropH = i - t.cropOffsertY),
  1055. (t.cropW = (t.cropH / t.fixedNumber[1]) * t.fixedNumber[0]))
  1056. : (t.cropH = l)
  1057. }
  1058. if (t.canChangeY && t.fixed) {
  1059. var u = (t.cropH / t.fixedNumber[1]) * t.fixedNumber[0]
  1060. u + t.cropOffsertX > r
  1061. ? ((t.cropW = r - t.cropOffsertX),
  1062. (t.cropH = (t.cropW / t.fixedNumber[0]) * t.fixedNumber[1]))
  1063. : (t.cropW = u)
  1064. }
  1065. })
  1066. },
  1067. checkCropLimitSize: function () {
  1068. this.cropW, this.cropH
  1069. var e = this.limitMinSize,
  1070. t = new Array()
  1071. return (t = Array.isArray[e] ? e : [e, e]), [parseFloat(t[0]), parseFloat(t[1])]
  1072. },
  1073. changeCropEnd: function (e) {
  1074. window.removeEventListener('mousemove', this.changeCropNow),
  1075. window.removeEventListener('mouseup', this.changeCropEnd),
  1076. window.removeEventListener('touchmove', this.changeCropNow),
  1077. window.removeEventListener('touchend', this.changeCropEnd)
  1078. },
  1079. endCrop: function () {
  1080. 0 === this.cropW && 0 === this.cropH && (this.cropping = !1),
  1081. window.removeEventListener('mousemove', this.createCrop),
  1082. window.removeEventListener('mouseup', this.endCrop),
  1083. window.removeEventListener('touchmove', this.createCrop),
  1084. window.removeEventListener('touchend', this.endCrop)
  1085. },
  1086. startCrop: function () {
  1087. this.crop = !0
  1088. },
  1089. stopCrop: function () {
  1090. this.crop = !1
  1091. },
  1092. clearCrop: function () {
  1093. ;(this.cropping = !1), (this.cropW = 0), (this.cropH = 0)
  1094. },
  1095. cropMove: function (e) {
  1096. if ((e.preventDefault(), !this.canMoveBox))
  1097. return (this.crop = !1), this.startMove(e), !1
  1098. if (e.touches && 2 === e.touches.length)
  1099. return (this.crop = !1), this.startMove(e), this.leaveCrop(), !1
  1100. window.addEventListener('mousemove', this.moveCrop),
  1101. window.addEventListener('mouseup', this.leaveCrop),
  1102. window.addEventListener('touchmove', this.moveCrop),
  1103. window.addEventListener('touchend', this.leaveCrop)
  1104. var t,
  1105. o,
  1106. n = 'clientX' in e ? e.clientX : e.touches[0].clientX,
  1107. r = 'clientY' in e ? e.clientY : e.touches[0].clientY
  1108. ;(t = n - this.cropOffsertX),
  1109. (o = r - this.cropOffsertY),
  1110. (this.cropX = t),
  1111. (this.cropY = o),
  1112. this.$emit('cropMoving', { moving: !0, axis: this.getCropAxis() }),
  1113. this.$emit('crop-moving', { moving: !0, axis: this.getCropAxis() })
  1114. },
  1115. moveCrop: function (e, t) {
  1116. var o = this,
  1117. n = 0,
  1118. r = 0
  1119. e &&
  1120. (e.preventDefault(),
  1121. (n = 'clientX' in e ? e.clientX : e.touches[0].clientX),
  1122. (r = 'clientY' in e ? e.clientY : e.touches[0].clientY)),
  1123. this.$nextTick(function () {
  1124. var e,
  1125. i,
  1126. a = n - o.cropX,
  1127. c = r - o.cropY
  1128. if (
  1129. (t && ((a = o.cropOffsertX), (c = o.cropOffsertY)),
  1130. (e = a <= 0 ? 0 : a + o.cropW > o.w ? o.w - o.cropW : a),
  1131. (i = c <= 0 ? 0 : c + o.cropH > o.h ? o.h - o.cropH : c),
  1132. o.centerBox)
  1133. ) {
  1134. var s = o.getImgAxis()
  1135. e <= s.x1 && (e = s.x1),
  1136. e + o.cropW > s.x2 && (e = s.x2 - o.cropW),
  1137. i <= s.y1 && (i = s.y1),
  1138. i + o.cropH > s.y2 && (i = s.y2 - o.cropH)
  1139. }
  1140. ;(o.cropOffsertX = e),
  1141. (o.cropOffsertY = i),
  1142. o.$emit('cropMoving', { moving: !0, axis: o.getCropAxis() }),
  1143. o.$emit('crop-moving', { moving: !0, axis: o.getCropAxis() })
  1144. })
  1145. },
  1146. getImgAxis: function (e, t, o) {
  1147. ;(e = e || this.x), (t = t || this.y), (o = o || this.scale)
  1148. var n = { x1: 0, x2: 0, y1: 0, y2: 0 },
  1149. r = this.trueWidth * o,
  1150. i = this.trueHeight * o
  1151. switch (this.rotate) {
  1152. case 0:
  1153. ;(n.x1 = e + (this.trueWidth * (1 - o)) / 2),
  1154. (n.x2 = n.x1 + this.trueWidth * o),
  1155. (n.y1 = t + (this.trueHeight * (1 - o)) / 2),
  1156. (n.y2 = n.y1 + this.trueHeight * o)
  1157. break
  1158. case 1:
  1159. case -1:
  1160. case 3:
  1161. case -3:
  1162. ;(n.x1 = e + (this.trueWidth * (1 - o)) / 2 + (r - i) / 2),
  1163. (n.x2 = n.x1 + this.trueHeight * o),
  1164. (n.y1 = t + (this.trueHeight * (1 - o)) / 2 + (i - r) / 2),
  1165. (n.y2 = n.y1 + this.trueWidth * o)
  1166. break
  1167. default:
  1168. ;(n.x1 = e + (this.trueWidth * (1 - o)) / 2),
  1169. (n.x2 = n.x1 + this.trueWidth * o),
  1170. (n.y1 = t + (this.trueHeight * (1 - o)) / 2),
  1171. (n.y2 = n.y1 + this.trueHeight * o)
  1172. }
  1173. return n
  1174. },
  1175. getCropAxis: function () {
  1176. var e = { x1: 0, x2: 0, y1: 0, y2: 0 }
  1177. return (
  1178. (e.x1 = this.cropOffsertX),
  1179. (e.x2 = e.x1 + this.cropW),
  1180. (e.y1 = this.cropOffsertY),
  1181. (e.y2 = e.y1 + this.cropH),
  1182. e
  1183. )
  1184. },
  1185. leaveCrop: function (e) {
  1186. window.removeEventListener('mousemove', this.moveCrop),
  1187. window.removeEventListener('mouseup', this.leaveCrop),
  1188. window.removeEventListener('touchmove', this.moveCrop),
  1189. window.removeEventListener('touchend', this.leaveCrop),
  1190. this.$emit('cropMoving', { moving: !1, axis: this.getCropAxis() }),
  1191. this.$emit('crop-moving', { moving: !1, axis: this.getCropAxis() })
  1192. },
  1193. getCropChecked: function (e) {
  1194. var t = this,
  1195. o = document.createElement('canvas'),
  1196. n = new Image(),
  1197. r = this.rotate,
  1198. i = this.trueWidth,
  1199. a = this.trueHeight,
  1200. c = this.cropOffsertX,
  1201. s = this.cropOffsertY
  1202. function l(e, t) {
  1203. ;(o.width = Math.round(e)), (o.height = Math.round(t))
  1204. }
  1205. ;(n.onload = function () {
  1206. if (0 !== t.cropW) {
  1207. var u = o.getContext('2d'),
  1208. h = 1
  1209. t.high & !t.full && (h = window.devicePixelRatio),
  1210. (1 !== t.enlarge) & !t.full && (h = Math.abs(Number(t.enlarge)))
  1211. var d = t.cropW * h,
  1212. p = t.cropH * h,
  1213. f = i * t.scale * h,
  1214. g = a * t.scale * h,
  1215. m = (t.x - c + (t.trueWidth * (1 - t.scale)) / 2) * h,
  1216. v = (t.y - s + (t.trueHeight * (1 - t.scale)) / 2) * h
  1217. switch ((l(d, p), u.save(), r)) {
  1218. case 0:
  1219. t.full
  1220. ? (l(d / t.scale, p / t.scale),
  1221. u.drawImage(n, m / t.scale, v / t.scale, f / t.scale, g / t.scale))
  1222. : u.drawImage(n, m, v, f, g)
  1223. break
  1224. case 1:
  1225. case -3:
  1226. t.full
  1227. ? (l(d / t.scale, p / t.scale),
  1228. (m = m / t.scale + (f / t.scale - g / t.scale) / 2),
  1229. (v = v / t.scale + (g / t.scale - f / t.scale) / 2),
  1230. u.rotate((90 * r * Math.PI) / 180),
  1231. u.drawImage(n, v, -m - g / t.scale, f / t.scale, g / t.scale))
  1232. : ((m += (f - g) / 2),
  1233. (v += (g - f) / 2),
  1234. u.rotate((90 * r * Math.PI) / 180),
  1235. u.drawImage(n, v, -m - g, f, g))
  1236. break
  1237. case 2:
  1238. case -2:
  1239. t.full
  1240. ? (l(d / t.scale, p / t.scale),
  1241. u.rotate((90 * r * Math.PI) / 180),
  1242. (m /= t.scale),
  1243. (v /= t.scale),
  1244. u.drawImage(
  1245. n,
  1246. -m - f / t.scale,
  1247. -v - g / t.scale,
  1248. f / t.scale,
  1249. g / t.scale
  1250. ))
  1251. : (u.rotate((90 * r * Math.PI) / 180),
  1252. u.drawImage(n, -m - f, -v - g, f, g))
  1253. break
  1254. case 3:
  1255. case -1:
  1256. t.full
  1257. ? (l(d / t.scale, p / t.scale),
  1258. (m = m / t.scale + (f / t.scale - g / t.scale) / 2),
  1259. (v = v / t.scale + (g / t.scale - f / t.scale) / 2),
  1260. u.rotate((90 * r * Math.PI) / 180),
  1261. u.drawImage(n, -v - f / t.scale, m, f / t.scale, g / t.scale))
  1262. : ((m += (f - g) / 2),
  1263. (v += (g - f) / 2),
  1264. u.rotate((90 * r * Math.PI) / 180),
  1265. u.drawImage(n, -v - f, m, f, g))
  1266. break
  1267. default:
  1268. t.full
  1269. ? (l(d / t.scale, p / t.scale),
  1270. u.drawImage(n, m / t.scale, v / t.scale, f / t.scale, g / t.scale))
  1271. : u.drawImage(n, m, v, f, g)
  1272. }
  1273. u.restore()
  1274. } else {
  1275. var b = i * t.scale,
  1276. w = a * t.scale,
  1277. y = o.getContext('2d')
  1278. switch ((y.save(), r)) {
  1279. case 0:
  1280. l(b, w), y.drawImage(n, 0, 0, b, w)
  1281. break
  1282. case 1:
  1283. case -3:
  1284. l(w, b), y.rotate((90 * r * Math.PI) / 180), y.drawImage(n, 0, -w, b, w)
  1285. break
  1286. case 2:
  1287. case -2:
  1288. l(b, w),
  1289. y.rotate((90 * r * Math.PI) / 180),
  1290. y.drawImage(n, -b, -w, b, w)
  1291. break
  1292. case 3:
  1293. case -1:
  1294. l(w, b), y.rotate((90 * r * Math.PI) / 180), y.drawImage(n, -b, 0, b, w)
  1295. break
  1296. default:
  1297. l(b, w), y.drawImage(n, 0, 0, b, w)
  1298. }
  1299. y.restore()
  1300. }
  1301. e(o)
  1302. }),
  1303. 'data' !== this.img.substr(0, 4) && (n.crossOrigin = 'Anonymous'),
  1304. (n.src = this.imgs)
  1305. },
  1306. getCropData: function (e) {
  1307. var t = this
  1308. this.getCropChecked(function (o) {
  1309. e(o.toDataURL('image/' + t.outputType, t.outputSize))
  1310. })
  1311. },
  1312. getCropBlob: function (e) {
  1313. var t = this
  1314. this.getCropChecked(function (o) {
  1315. o.toBlob(
  1316. function (t) {
  1317. return e(t)
  1318. },
  1319. 'image/' + t.outputType,
  1320. t.outputSize
  1321. )
  1322. })
  1323. },
  1324. showPreview: function () {
  1325. var e = this
  1326. if (!this.isCanShow) return !1
  1327. ;(this.isCanShow = !1),
  1328. setTimeout(function () {
  1329. e.isCanShow = !0
  1330. }, 16)
  1331. var t = this.cropW,
  1332. o = this.cropH,
  1333. n = this.scale,
  1334. r = {}
  1335. r.div = { width: ''.concat(t, 'px'), height: ''.concat(o, 'px') }
  1336. var i = (this.x - this.cropOffsertX) / n,
  1337. a = (this.y - this.cropOffsertY) / n
  1338. ;(r.w = t),
  1339. (r.h = o),
  1340. (r.url = this.imgs),
  1341. (r.img = {
  1342. width: ''.concat(this.trueWidth, 'px'),
  1343. height: ''.concat(this.trueHeight, 'px'),
  1344. transform: 'scale('
  1345. .concat(n, ')translate3d(')
  1346. .concat(i, 'px, ')
  1347. .concat(a, 'px, ')
  1348. .concat(0, 'px)rotateZ(')
  1349. .concat(90 * this.rotate, 'deg)')
  1350. }),
  1351. (r.html = '\n <div class="show-preview" style="width: '
  1352. .concat(r.w, 'px; height: ')
  1353. .concat(r.h, 'px,; overflow: hidden">\n <div style="width: ')
  1354. .concat(t, 'px; height: ')
  1355. .concat(o, 'px">\n <img src=')
  1356. .concat(r.url, ' style="width: ')
  1357. .concat(this.trueWidth, 'px; height: ')
  1358. .concat(this.trueHeight, 'px; transform:\n scale(')
  1359. .concat(n, ')translate3d(')
  1360. .concat(i, 'px, ')
  1361. .concat(a, 'px, ')
  1362. .concat(0, 'px)rotateZ(')
  1363. .concat(90 * this.rotate, 'deg)">\n </div>\n </div>')),
  1364. this.$emit('realTime', r),
  1365. this.$emit('real-time', r)
  1366. },
  1367. reload: function () {
  1368. var e = this,
  1369. t = new Image()
  1370. ;(t.onload = function () {
  1371. ;(e.w = parseFloat(window.getComputedStyle(e.$refs.cropper).width)),
  1372. (e.h = parseFloat(window.getComputedStyle(e.$refs.cropper).height)),
  1373. (e.trueWidth = t.width),
  1374. (e.trueHeight = t.height),
  1375. e.original ? (e.scale = 1) : (e.scale = e.checkedMode()),
  1376. e.$nextTick(function () {
  1377. ;(e.x =
  1378. -(e.trueWidth - e.trueWidth * e.scale) / 2 +
  1379. (e.w - e.trueWidth * e.scale) / 2),
  1380. (e.y =
  1381. -(e.trueHeight - e.trueHeight * e.scale) / 2 +
  1382. (e.h - e.trueHeight * e.scale) / 2),
  1383. (e.loading = !1),
  1384. e.autoCrop && e.goAutoCrop(),
  1385. e.$emit('img-load', 'success'),
  1386. e.$emit('imgLoad', 'success'),
  1387. setTimeout(function () {
  1388. e.showPreview()
  1389. }, 20)
  1390. })
  1391. }),
  1392. (t.onerror = function () {
  1393. e.$emit('imgLoad', 'error'), e.$emit('img-load', 'error')
  1394. }),
  1395. (t.src = this.imgs)
  1396. },
  1397. checkedMode: function () {
  1398. var e = 1,
  1399. t = (this.trueWidth, this.trueHeight),
  1400. o = this.mode.split(' ')
  1401. switch (o[0]) {
  1402. case 'contain':
  1403. this.trueWidth > this.w && (e = this.w / this.trueWidth),
  1404. this.trueHeight * e > this.h && (e = this.h / this.trueHeight)
  1405. break
  1406. case 'cover':
  1407. ;(t *= e = this.w / this.trueWidth) < this.h &&
  1408. (e = (t = this.h) / this.trueHeight)
  1409. break
  1410. default:
  1411. try {
  1412. var n = o[0]
  1413. if (-1 !== n.search('px')) {
  1414. n = n.replace('px', '')
  1415. var r = parseFloat(n) / this.trueWidth,
  1416. i = 1,
  1417. a = o[1]
  1418. ;-1 !== a.search('px') &&
  1419. ((a = a.replace('px', '')),
  1420. (i = (t = parseFloat(a)) / this.trueHeight)),
  1421. (e = Math.min(r, i))
  1422. }
  1423. if (
  1424. (-1 !== n.search('%') &&
  1425. ((n = n.replace('%', '')),
  1426. (e = ((parseFloat(n) / 100) * this.w) / this.trueWidth)),
  1427. 2 === o.length && 'auto' === n)
  1428. ) {
  1429. var c = o[1]
  1430. ;-1 !== c.search('px') &&
  1431. ((c = c.replace('px', '')),
  1432. (e = (t = parseFloat(c)) / this.trueHeight)),
  1433. -1 !== c.search('%') &&
  1434. ((c = c.replace('%', '')),
  1435. (e = (t = (parseFloat(c) / 100) * this.h) / this.trueHeight))
  1436. }
  1437. } catch (s) {
  1438. e = 1
  1439. }
  1440. }
  1441. return e
  1442. },
  1443. goAutoCrop: function (e, t) {
  1444. if ('' !== this.imgs && null !== this.imgs) {
  1445. this.clearCrop(), (this.cropping = !0)
  1446. var o = this.w,
  1447. n = this.h
  1448. if (this.centerBox) {
  1449. var r = Math.abs(this.rotate) % 2 > 0,
  1450. i = (r ? this.trueHeight : this.trueWidth) * this.scale,
  1451. a = (r ? this.trueWidth : this.trueHeight) * this.scale
  1452. ;(o = i < o ? i : o), (n = a < n ? a : n)
  1453. }
  1454. var c = e || parseFloat(this.autoCropWidth),
  1455. s = t || parseFloat(this.autoCropHeight)
  1456. ;(0 !== c && 0 !== s) || ((c = 0.8 * o), (s = 0.8 * n)),
  1457. (c = c > o ? o : c),
  1458. (s = s > n ? n : s),
  1459. this.fixed && (s = (c / this.fixedNumber[0]) * this.fixedNumber[1]),
  1460. s > this.h &&
  1461. (c = ((s = this.h) / this.fixedNumber[1]) * this.fixedNumber[0]),
  1462. this.changeCrop(c, s)
  1463. }
  1464. },
  1465. changeCrop: function (e, t) {
  1466. var o = this
  1467. if (this.centerBox) {
  1468. var n = this.getImgAxis()
  1469. e > n.x2 - n.x1 &&
  1470. (t = ((e = n.x2 - n.x1) / this.fixedNumber[0]) * this.fixedNumber[1]),
  1471. t > n.y2 - n.y1 &&
  1472. (e = ((t = n.y2 - n.y1) / this.fixedNumber[1]) * this.fixedNumber[0])
  1473. }
  1474. ;(this.cropW = e),
  1475. (this.cropH = t),
  1476. this.checkCropLimitSize(),
  1477. this.$nextTick(function () {
  1478. ;(o.cropOffsertX = (o.w - o.cropW) / 2),
  1479. (o.cropOffsertY = (o.h - o.cropH) / 2),
  1480. o.centerBox && o.moveCrop(null, !0)
  1481. })
  1482. },
  1483. refresh: function () {
  1484. var e = this
  1485. this.img,
  1486. (this.imgs = ''),
  1487. (this.scale = 1),
  1488. (this.crop = !1),
  1489. (this.rotate = 0),
  1490. (this.w = 0),
  1491. (this.h = 0),
  1492. (this.trueWidth = 0),
  1493. (this.trueHeight = 0),
  1494. this.clearCrop(),
  1495. this.$nextTick(function () {
  1496. e.checkedImg()
  1497. })
  1498. },
  1499. rotateLeft: function () {
  1500. this.rotate = this.rotate <= -3 ? 0 : this.rotate - 1
  1501. },
  1502. rotateRight: function () {
  1503. this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1
  1504. },
  1505. rotateClear: function () {
  1506. this.rotate = 0
  1507. },
  1508. checkoutImgAxis: function (e, t, o) {
  1509. ;(e = e || this.x), (t = t || this.y), (o = o || this.scale)
  1510. var n = !0
  1511. if (this.centerBox) {
  1512. var r = this.getImgAxis(e, t, o),
  1513. i = this.getCropAxis()
  1514. r.x1 >= i.x1 && (n = !1),
  1515. r.x2 <= i.x2 && (n = !1),
  1516. r.y1 >= i.y1 && (n = !1),
  1517. r.y2 <= i.y2 && (n = !1)
  1518. }
  1519. return n
  1520. }
  1521. },
  1522. mounted: function () {
  1523. this.support =
  1524. 'onwheel' in document.createElement('div')
  1525. ? 'wheel'
  1526. : void 0 !== document.onmousewheel
  1527. ? 'mousewheel'
  1528. : 'DOMMouseScroll'
  1529. var e = this,
  1530. t = navigator.userAgent
  1531. ;(this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)),
  1532. HTMLCanvasElement.prototype.toBlob ||
  1533. Object.defineProperty(HTMLCanvasElement.prototype, 'toBlob', {
  1534. value: function (t, o, n) {
  1535. for (
  1536. var r = atob(this.toDataURL(o, n).split(',')[1]),
  1537. i = r.length,
  1538. a = new Uint8Array(i),
  1539. c = 0;
  1540. c < i;
  1541. c++
  1542. )
  1543. a[c] = r.charCodeAt(c)
  1544. t(new Blob([a], { type: e.type || 'image/png' }))
  1545. }
  1546. }),
  1547. this.showPreview(),
  1548. this.checkedImg()
  1549. },
  1550. destroyed: function () {
  1551. window.removeEventListener('mousemove', this.moveCrop),
  1552. window.removeEventListener('mouseup', this.leaveCrop),
  1553. window.removeEventListener('touchmove', this.moveCrop),
  1554. window.removeEventListener('touchend', this.leaveCrop),
  1555. this.cancelScale()
  1556. }
  1557. }),
  1558. ne = { key: 0, class: 'cropper-box' },
  1559. re = ['src'],
  1560. ie = { class: 'cropper-view-box' },
  1561. ae = ['src'],
  1562. ce = { key: 1 }
  1563. var se = te(oe, [
  1564. [
  1565. 'render',
  1566. function (e, t, o, n, r, i) {
  1567. return (
  1568. s(),
  1569. l(
  1570. 'div',
  1571. {
  1572. class: 'vue-cropper',
  1573. ref: 'cropper',
  1574. onMouseover:
  1575. t[28] ||
  1576. (t[28] = function () {
  1577. return e.scaleImg && e.scaleImg.apply(e, arguments)
  1578. }),
  1579. onMouseout:
  1580. t[29] ||
  1581. (t[29] = function () {
  1582. return e.cancelScale && e.cancelScale.apply(e, arguments)
  1583. })
  1584. },
  1585. [
  1586. e.imgs
  1587. ? (s(),
  1588. l('div', ne, [
  1589. u(
  1590. d(
  1591. 'div',
  1592. {
  1593. class: 'cropper-box-canvas',
  1594. style: p({
  1595. width: e.trueWidth + 'px',
  1596. height: e.trueHeight + 'px',
  1597. transform:
  1598. 'scale(' +
  1599. e.scale +
  1600. ',' +
  1601. e.scale +
  1602. ') translate3d(' +
  1603. e.x / e.scale +
  1604. 'px,' +
  1605. e.y / e.scale +
  1606. 'px,0)rotateZ(' +
  1607. 90 * e.rotate +
  1608. 'deg)'
  1609. })
  1610. },
  1611. [
  1612. d(
  1613. 'img',
  1614. { src: e.imgs, alt: 'cropper-img', ref: 'cropperImg' },
  1615. null,
  1616. 8,
  1617. re
  1618. )
  1619. ],
  1620. 4
  1621. ),
  1622. [[h, !e.loading]]
  1623. )
  1624. ]))
  1625. : f('', !0),
  1626. d(
  1627. 'div',
  1628. {
  1629. class: g([
  1630. 'cropper-drag-box',
  1631. {
  1632. 'cropper-move': e.move && !e.crop,
  1633. 'cropper-crop': e.crop,
  1634. 'cropper-modal': e.cropping
  1635. }
  1636. ]),
  1637. onMousedown:
  1638. t[0] ||
  1639. (t[0] = function () {
  1640. return e.startMove && e.startMove.apply(e, arguments)
  1641. }),
  1642. onTouchstart:
  1643. t[1] ||
  1644. (t[1] = function () {
  1645. return e.startMove && e.startMove.apply(e, arguments)
  1646. })
  1647. },
  1648. null,
  1649. 34
  1650. ),
  1651. u(
  1652. d(
  1653. 'div',
  1654. {
  1655. class: 'cropper-crop-box',
  1656. style: p({
  1657. width: e.cropW + 'px',
  1658. height: e.cropH + 'px',
  1659. transform:
  1660. 'translate3d(' + e.cropOffsertX + 'px,' + e.cropOffsertY + 'px,0)'
  1661. })
  1662. },
  1663. [
  1664. d('span', ie, [
  1665. d(
  1666. 'img',
  1667. {
  1668. style: p({
  1669. width: e.trueWidth + 'px',
  1670. height: e.trueHeight + 'px',
  1671. transform:
  1672. 'scale(' +
  1673. e.scale +
  1674. ',' +
  1675. e.scale +
  1676. ') translate3d(' +
  1677. (e.x - e.cropOffsertX) / e.scale +
  1678. 'px,' +
  1679. (e.y - e.cropOffsertY) / e.scale +
  1680. 'px,0)rotateZ(' +
  1681. 90 * e.rotate +
  1682. 'deg)'
  1683. }),
  1684. src: e.imgs,
  1685. alt: 'cropper-img'
  1686. },
  1687. null,
  1688. 12,
  1689. ae
  1690. )
  1691. ]),
  1692. d(
  1693. 'span',
  1694. {
  1695. class: 'cropper-face cropper-move',
  1696. onMousedown:
  1697. t[2] ||
  1698. (t[2] = function () {
  1699. return e.cropMove && e.cropMove.apply(e, arguments)
  1700. }),
  1701. onTouchstart:
  1702. t[3] ||
  1703. (t[3] = function () {
  1704. return e.cropMove && e.cropMove.apply(e, arguments)
  1705. })
  1706. },
  1707. null,
  1708. 32
  1709. ),
  1710. e.info
  1711. ? (s(),
  1712. l(
  1713. 'span',
  1714. {
  1715. key: 0,
  1716. class: 'crop-info',
  1717. style: p({ top: e.cropInfo.top })
  1718. },
  1719. m(e.cropInfo.width) + ' × ' + m(e.cropInfo.height),
  1720. 5
  1721. ))
  1722. : f('', !0),
  1723. e.fixedBox
  1724. ? f('', !0)
  1725. : (s(),
  1726. l('span', ce, [
  1727. d(
  1728. 'span',
  1729. {
  1730. class: 'crop-line line-w',
  1731. onMousedown:
  1732. t[4] ||
  1733. (t[4] = function (t) {
  1734. return e.changeCropSize(t, !1, !0, 0, 1)
  1735. }),
  1736. onTouchstart:
  1737. t[5] ||
  1738. (t[5] = function (t) {
  1739. return e.changeCropSize(t, !1, !0, 0, 1)
  1740. })
  1741. },
  1742. null,
  1743. 32
  1744. ),
  1745. d(
  1746. 'span',
  1747. {
  1748. class: 'crop-line line-a',
  1749. onMousedown:
  1750. t[6] ||
  1751. (t[6] = function (t) {
  1752. return e.changeCropSize(t, !0, !1, 1, 0)
  1753. }),
  1754. onTouchstart:
  1755. t[7] ||
  1756. (t[7] = function (t) {
  1757. return e.changeCropSize(t, !0, !1, 1, 0)
  1758. })
  1759. },
  1760. null,
  1761. 32
  1762. ),
  1763. d(
  1764. 'span',
  1765. {
  1766. class: 'crop-line line-s',
  1767. onMousedown:
  1768. t[8] ||
  1769. (t[8] = function (t) {
  1770. return e.changeCropSize(t, !1, !0, 0, 2)
  1771. }),
  1772. onTouchstart:
  1773. t[9] ||
  1774. (t[9] = function (t) {
  1775. return e.changeCropSize(t, !1, !0, 0, 2)
  1776. })
  1777. },
  1778. null,
  1779. 32
  1780. ),
  1781. d(
  1782. 'span',
  1783. {
  1784. class: 'crop-line line-d',
  1785. onMousedown:
  1786. t[10] ||
  1787. (t[10] = function (t) {
  1788. return e.changeCropSize(t, !0, !1, 2, 0)
  1789. }),
  1790. onTouchstart:
  1791. t[11] ||
  1792. (t[11] = function (t) {
  1793. return e.changeCropSize(t, !0, !1, 2, 0)
  1794. })
  1795. },
  1796. null,
  1797. 32
  1798. ),
  1799. d(
  1800. 'span',
  1801. {
  1802. class: 'crop-point point1',
  1803. onMousedown:
  1804. t[12] ||
  1805. (t[12] = function (t) {
  1806. return e.changeCropSize(t, !0, !0, 1, 1)
  1807. }),
  1808. onTouchstart:
  1809. t[13] ||
  1810. (t[13] = function (t) {
  1811. return e.changeCropSize(t, !0, !0, 1, 1)
  1812. })
  1813. },
  1814. null,
  1815. 32
  1816. ),
  1817. d(
  1818. 'span',
  1819. {
  1820. class: 'crop-point point2',
  1821. onMousedown:
  1822. t[14] ||
  1823. (t[14] = function (t) {
  1824. return e.changeCropSize(t, !1, !0, 0, 1)
  1825. }),
  1826. onTouchstart:
  1827. t[15] ||
  1828. (t[15] = function (t) {
  1829. return e.changeCropSize(t, !1, !0, 0, 1)
  1830. })
  1831. },
  1832. null,
  1833. 32
  1834. ),
  1835. d(
  1836. 'span',
  1837. {
  1838. class: 'crop-point point3',
  1839. onMousedown:
  1840. t[16] ||
  1841. (t[16] = function (t) {
  1842. return e.changeCropSize(t, !0, !0, 2, 1)
  1843. }),
  1844. onTouchstart:
  1845. t[17] ||
  1846. (t[17] = function (t) {
  1847. return e.changeCropSize(t, !0, !0, 2, 1)
  1848. })
  1849. },
  1850. null,
  1851. 32
  1852. ),
  1853. d(
  1854. 'span',
  1855. {
  1856. class: 'crop-point point4',
  1857. onMousedown:
  1858. t[18] ||
  1859. (t[18] = function (t) {
  1860. return e.changeCropSize(t, !0, !1, 1, 0)
  1861. }),
  1862. onTouchstart:
  1863. t[19] ||
  1864. (t[19] = function (t) {
  1865. return e.changeCropSize(t, !0, !1, 1, 0)
  1866. })
  1867. },
  1868. null,
  1869. 32
  1870. ),
  1871. d(
  1872. 'span',
  1873. {
  1874. class: 'crop-point point5',
  1875. onMousedown:
  1876. t[20] ||
  1877. (t[20] = function (t) {
  1878. return e.changeCropSize(t, !0, !1, 2, 0)
  1879. }),
  1880. onTouchstart:
  1881. t[21] ||
  1882. (t[21] = function (t) {
  1883. return e.changeCropSize(t, !0, !1, 2, 0)
  1884. })
  1885. },
  1886. null,
  1887. 32
  1888. ),
  1889. d(
  1890. 'span',
  1891. {
  1892. class: 'crop-point point6',
  1893. onMousedown:
  1894. t[22] ||
  1895. (t[22] = function (t) {
  1896. return e.changeCropSize(t, !0, !0, 1, 2)
  1897. }),
  1898. onTouchstart:
  1899. t[23] ||
  1900. (t[23] = function (t) {
  1901. return e.changeCropSize(t, !0, !0, 1, 2)
  1902. })
  1903. },
  1904. null,
  1905. 32
  1906. ),
  1907. d(
  1908. 'span',
  1909. {
  1910. class: 'crop-point point7',
  1911. onMousedown:
  1912. t[24] ||
  1913. (t[24] = function (t) {
  1914. return e.changeCropSize(t, !1, !0, 0, 2)
  1915. }),
  1916. onTouchstart:
  1917. t[25] ||
  1918. (t[25] = function (t) {
  1919. return e.changeCropSize(t, !1, !0, 0, 2)
  1920. })
  1921. },
  1922. null,
  1923. 32
  1924. ),
  1925. d(
  1926. 'span',
  1927. {
  1928. class: 'crop-point point8',
  1929. onMousedown:
  1930. t[26] ||
  1931. (t[26] = function (t) {
  1932. return e.changeCropSize(t, !0, !0, 2, 2)
  1933. }),
  1934. onTouchstart:
  1935. t[27] ||
  1936. (t[27] = function (t) {
  1937. return e.changeCropSize(t, !0, !0, 2, 2)
  1938. })
  1939. },
  1940. null,
  1941. 32
  1942. )
  1943. ]))
  1944. ],
  1945. 4
  1946. ),
  1947. [[h, e.cropping]]
  1948. )
  1949. ],
  1950. 544
  1951. )
  1952. )
  1953. }
  1954. ],
  1955. ['__scopeId', 'data-v-be5e5ddc']
  1956. ])
  1957. 'undefined' != typeof window &&
  1958. window.Vue &&
  1959. window.Vue.createApp({}).component('VueCropper', se)
  1960. var le = '_upbtn_15vje_1',
  1961. ue = '_uploadWarper_15vje_5',
  1962. he = '_bg_15vje_12',
  1963. de = '_btn_15vje_21',
  1964. pe = '_img_15vje_44',
  1965. fe = '_btndiv_15vje_53',
  1966. ge = '_wrapper_15vje_64',
  1967. me = c({
  1968. name: 'o-cropper',
  1969. components: { VueCropper: se },
  1970. props: {
  1971. hideInput: { type: Boolean, default: !1 },
  1972. option: { type: Object },
  1973. onCancelTailor: { type: Function, default: function () {} },
  1974. getBase64Data: { type: Function, default: function () {} },
  1975. getBlob: { type: Function, default: function () {} },
  1976. getFile: { type: Function, default: function () {} },
  1977. imgOriginF: { type: Function, default: function () {} }
  1978. },
  1979. data: function () {
  1980. return {
  1981. img: '',
  1982. config: {
  1983. ceilbutton: !1,
  1984. outputSize: 1,
  1985. outputType: 'png',
  1986. info: !1,
  1987. canScale: !0,
  1988. autoCrop: !1,
  1989. autoCropWidth: 0,
  1990. autoCropHeight: 0,
  1991. fixed: !0,
  1992. fixedNumber: [1, 1],
  1993. full: !1,
  1994. fixedBox: !0,
  1995. canMove: !0,
  1996. canMoveBox: !1,
  1997. original: !1,
  1998. centerBox: !0,
  1999. high: !0,
  2000. infoTrue: !1,
  2001. maxImgSize: 2e3,
  2002. enlarge: 1,
  2003. mode: '100%',
  2004. cancelButtonText: '取消',
  2005. confirmButtonText: '确定',
  2006. cancelButtonBackgroundColor: '#606266',
  2007. confirmButtonBackgroundColor: '#ed594c',
  2008. cancelButtonTextColor: '#ffffff',
  2009. confirmButtonTextColor: '#ffffff'
  2010. }
  2011. }
  2012. },
  2013. mounted: function () {
  2014. this.config = Object.assign(this.config, this.option)
  2015. },
  2016. methods: {
  2017. addSlide: function () {
  2018. if (null == document.getElementById('vertical')) {
  2019. var e = document.getElementsByClassName('cropper-crop-box')[0],
  2020. t = document.createElement('div')
  2021. ;(t.id = 'vertical'),
  2022. (t.style.width = '1px'),
  2023. (t.style.height = '100%'),
  2024. (t.style.top = '0px'),
  2025. (t.style.left = '33%'),
  2026. (t.style.position = 'absolute'),
  2027. (t.style.backgroundColor = '#fff'),
  2028. (t.style.zIndex = '522'),
  2029. (t.style.opacity = '0.5')
  2030. var o = document.createElement('div')
  2031. ;(o.style.width = '1px'),
  2032. (o.style.height = '100%'),
  2033. (o.style.top = '0px'),
  2034. (o.style.right = '33%'),
  2035. (o.style.position = 'absolute'),
  2036. (o.style.backgroundColor = '#fff'),
  2037. (o.style.zIndex = '522'),
  2038. (o.style.opacity = '0.5')
  2039. var n = document.createElement('div')
  2040. ;(n.style.width = '100%'),
  2041. (n.style.height = '1px'),
  2042. (n.style.top = '33%'),
  2043. (n.style.left = '0px'),
  2044. (n.style.position = 'absolute'),
  2045. (n.style.backgroundColor = '#fff'),
  2046. (n.style.zIndex = '522'),
  2047. (n.style.opacity = '0.5')
  2048. var r = document.createElement('div')
  2049. ;(r.style.width = '100%'),
  2050. (r.style.height = '1px'),
  2051. (r.style.bottom = '33%'),
  2052. (r.style.left = '0px'),
  2053. (r.style.position = 'absolute'),
  2054. (r.style.backgroundColor = '#fff'),
  2055. (r.style.zIndex = '522'),
  2056. (r.style.opacity = '0.5')
  2057. var i = document.createElement('div')
  2058. ;(i.style.width = '30px'),
  2059. (i.style.height = '4px'),
  2060. (i.style.top = '-4px'),
  2061. (i.style.left = '-4px'),
  2062. (i.style.position = 'absolute'),
  2063. (i.style.backgroundColor = '#fff'),
  2064. (i.style.zIndex = '522'),
  2065. (i.style.opacity = '1')
  2066. var a = document.createElement('div')
  2067. ;(a.style.width = '4px'),
  2068. (a.style.height = '30px'),
  2069. (a.style.top = '-4px'),
  2070. (a.style.left = '-4px'),
  2071. (a.style.position = 'absolute'),
  2072. (a.style.backgroundColor = '#fff'),
  2073. (a.style.zIndex = '522'),
  2074. (a.style.opacity = '1')
  2075. var c = document.createElement('div')
  2076. ;(c.style.width = '30px'),
  2077. (c.style.height = '4px'),
  2078. (c.style.top = '-4px'),
  2079. (c.style.right = '-4px'),
  2080. (c.style.position = 'absolute'),
  2081. (c.style.backgroundColor = '#fff'),
  2082. (c.style.zIndex = '522'),
  2083. (c.style.opacity = '1')
  2084. var s = document.createElement('div')
  2085. ;(s.style.width = '4px'),
  2086. (s.style.height = '30px'),
  2087. (s.style.top = '-4px'),
  2088. (s.style.right = '-4px'),
  2089. (s.style.position = 'absolute'),
  2090. (s.style.backgroundColor = '#fff'),
  2091. (s.style.zIndex = '522'),
  2092. (s.style.opacity = '1')
  2093. var l = document.createElement('div')
  2094. ;(l.style.width = '30px'),
  2095. (l.style.height = '4px'),
  2096. (l.style.bottom = '-4px'),
  2097. (l.style.left = '-4px'),
  2098. (l.style.position = 'absolute'),
  2099. (l.style.backgroundColor = '#fff'),
  2100. (l.style.zIndex = '522'),
  2101. (l.style.opacity = '1')
  2102. var u = document.createElement('div')
  2103. ;(u.style.width = '4px'),
  2104. (u.style.height = '30px'),
  2105. (u.style.bottom = '-4px'),
  2106. (u.style.left = '-4px'),
  2107. (u.style.position = 'absolute'),
  2108. (u.style.backgroundColor = '#fff'),
  2109. (u.style.zIndex = '522'),
  2110. (u.style.opacity = '1')
  2111. var h = document.createElement('div')
  2112. ;(h.style.width = '30px'),
  2113. (h.style.height = '4px'),
  2114. (h.style.bottom = '-4px'),
  2115. (h.style.right = '-4px'),
  2116. (h.style.position = 'absolute'),
  2117. (h.style.backgroundColor = '#fff'),
  2118. (h.style.zIndex = '522'),
  2119. (h.style.opacity = '1')
  2120. var d = document.createElement('div')
  2121. ;(d.style.width = '4px'),
  2122. (d.style.height = '30px'),
  2123. (d.style.bottom = '-4px'),
  2124. (d.style.right = '-4px'),
  2125. (d.style.position = 'absolute'),
  2126. (d.style.backgroundColor = '#fff'),
  2127. (d.style.zIndex = '522'),
  2128. (d.style.opacity = '1'),
  2129. e.appendChild(t),
  2130. e.appendChild(o),
  2131. e.appendChild(n),
  2132. e.appendChild(r),
  2133. e.appendChild(i),
  2134. e.appendChild(a),
  2135. e.appendChild(c),
  2136. e.appendChild(s),
  2137. e.appendChild(l),
  2138. e.appendChild(u),
  2139. e.appendChild(h),
  2140. e.appendChild(d)
  2141. }
  2142. },
  2143. onLoadImg: function (e) {
  2144. return new Promise(function (t, o) {
  2145. var n = new FileReader()
  2146. n.readAsDataURL(e),
  2147. (n.onload = function (e) {
  2148. t(e.target.result)
  2149. })
  2150. })
  2151. },
  2152. loadFile: function (e) {
  2153. var t = this
  2154. if (!(e instanceof File)) throw new Error('Arguments file is not File')
  2155. this.onLoadImg(e).then(function (e) {
  2156. ;(t.img = e),
  2157. setTimeout(function () {
  2158. ;(t.config.autoCrop = !0), t.addSlide()
  2159. }, 10)
  2160. })
  2161. },
  2162. loadBase64: function (e) {
  2163. var t = this
  2164. if ('string' != typeof e) throw new Error('Arguments base64 is not string')
  2165. var o = e.split(',')
  2166. if (!/^data:image\/(.*?);base64$/.test(o[0]))
  2167. throw new Error('Arguments base64 MIME is not image/*')
  2168. if (!/^[\/]?([\da-zA-Z]+[\/+]+)*[\da-zA-Z]+([+=]{1,2}|[\/])?$/.test(o[1]))
  2169. throw new Error('Not standard base64')
  2170. ;(this.img = e),
  2171. setTimeout(function () {
  2172. ;(t.config.autoCrop = !0), t.addSlide()
  2173. }, 10)
  2174. },
  2175. rotating: function (e) {
  2176. this.$refs.cropper.rotateRight()
  2177. },
  2178. canceltailor: function () {
  2179. ;(this.img = ''), this.onCancelTailor()
  2180. },
  2181. tailoring: function () {
  2182. var e = this
  2183. this.$refs.cropper.getCropData(function (t) {
  2184. e.getBase64Data(t), e.getBlob(t), (e.img = ''), (e.config.autoCrop = !1)
  2185. }),
  2186. this.$refs.cropper.getCropBlob(function (t) {
  2187. e.getBase64Data(t), e.getBlob(t)
  2188. var o = { jpeg: 'jpg', png: 'png', webp: 'webp' }[e.config.outputType],
  2189. n = new Date().getTime(),
  2190. r = new File([t], ''.concat(n, '.').concat(o), {
  2191. type: 'image/'.concat(e.config.outputType)
  2192. })
  2193. e.getFile(r), (e.img = ''), (e.config.autoCrop = !1)
  2194. })
  2195. },
  2196. upPhoto: function (e) {
  2197. var t = this
  2198. return r(
  2199. regeneratorRuntime.mark(function o() {
  2200. var n
  2201. return regeneratorRuntime.wrap(function (o) {
  2202. for (;;)
  2203. switch ((o.prev = o.next)) {
  2204. case 0:
  2205. if (
  2206. ((n = e.target.files[0]),
  2207. (t.$refs.headInput.value = null),
  2208. null == n)
  2209. ) {
  2210. o.next = 9
  2211. break
  2212. }
  2213. return t.imgOriginF(n), (o.next = 6), t.onLoadImg(n)
  2214. case 6:
  2215. ;(t.img = o.sent),
  2216. (t.config.autoCrop = !0),
  2217. setTimeout(function () {
  2218. t.addSlide()
  2219. }, 20)
  2220. case 9:
  2221. case 'end':
  2222. return o.stop()
  2223. }
  2224. }, o)
  2225. })
  2226. )()
  2227. },
  2228. onCropMoving: function (e) {},
  2229. onImgMoving: function (e) {}
  2230. },
  2231. render: function () {
  2232. return v('div', { class: [le, ue] }, [
  2233. this.hideInput,
  2234. this.hideInput
  2235. ? null
  2236. : v(
  2237. 'input',
  2238. {
  2239. style: 'opacity: 0;',
  2240. class: le,
  2241. type: 'file',
  2242. accept: 'image/*',
  2243. onChange: this.upPhoto,
  2244. ref: 'headInput'
  2245. },
  2246. null
  2247. ),
  2248. '' != this.img
  2249. ? v('div', { class: he }, [
  2250. this.config.ceilbutton
  2251. ? v('div', { class: fe }, [
  2252. v(
  2253. 'div',
  2254. {
  2255. class: de,
  2256. onClick: this.canceltailor,
  2257. style: {
  2258. backgroundColor: this.config.cancelButtonBackgroundColor,
  2259. color: this.config.cancelButtonTextColor
  2260. }
  2261. },
  2262. [this.config.cancelButtonText]
  2263. ),
  2264. v('div', { class: pe, onClick: this.rotating }, null),
  2265. v(
  2266. 'div',
  2267. {
  2268. class: de,
  2269. onClick: this.tailoring,
  2270. style: {
  2271. backgroundColor: this.config.confirmButtonBackgroundColor,
  2272. color: this.config.confirmButtonTextColor
  2273. }
  2274. },
  2275. [this.config.confirmButtonText]
  2276. )
  2277. ])
  2278. : null,
  2279. v('div', { class: ge }, [
  2280. v(
  2281. se,
  2282. {
  2283. ref: 'cropper',
  2284. img: this.img,
  2285. outputSize: this.config.outputSize,
  2286. outputType: this.config.outputType,
  2287. info: this.config.info,
  2288. canScale: this.config.canScale,
  2289. autoCrop: this.config.autoCrop,
  2290. autoCropWidth: this.config.autoCropWidth,
  2291. autoCropHeight: this.config.autoCropHeight,
  2292. fixedBox: this.config.fixedBox,
  2293. fixed: this.config.fixed,
  2294. fixedNumber: this.config.fixedNumber,
  2295. full: this.config.full,
  2296. canMove: this.config.canMove,
  2297. canMoveBox: this.config.canMoveBox,
  2298. original: this.config.original,
  2299. centerBox: this.config.centerBox,
  2300. high: this.config.high,
  2301. infoTrue: this.config.infoTrue,
  2302. maxImgSize: this.config.maxImgSize,
  2303. enlarge: this.config.enlarge,
  2304. mode: this.config.mode,
  2305. onCropMoving: this.onCropMoving,
  2306. onImgMoving: this.onImgMoving
  2307. },
  2308. null
  2309. )
  2310. ]),
  2311. this.config.ceilbutton
  2312. ? null
  2313. : v('div', { class: fe }, [
  2314. v(
  2315. 'div',
  2316. {
  2317. class: de,
  2318. onClick: this.canceltailor,
  2319. style: {
  2320. backgroundColor: this.config.cancelButtonBackgroundColor,
  2321. color: this.config.cancelButtonTextColor
  2322. }
  2323. },
  2324. [this.config.cancelButtonText]
  2325. ),
  2326. v('div', { class: pe, onClick: this.rotating }, null),
  2327. v(
  2328. 'div',
  2329. {
  2330. class: de,
  2331. onClick: this.tailoring,
  2332. style: {
  2333. backgroundColor: this.config.confirmButtonBackgroundColor,
  2334. color: this.config.confirmButtonTextColor
  2335. }
  2336. },
  2337. [this.config.confirmButtonText]
  2338. )
  2339. ])
  2340. ])
  2341. : null
  2342. ])
  2343. }
  2344. }),
  2345. ve =
  2346. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4CAMAAAB6xg5AAAAAAXNSR0IArs4c6QAAAotQTFRFAAAA////gICA////qqqq////v7+/////zMzM////1dXV29vb39/f4+PjzMzM5ubm6Ojo1dXV29vb39/f5ubm3t7e4ODg4uLi4+Pj5OTk5eXl3d3d3t7e39/f4ODg2tra4eHh29vb4+Pj3d3d4+Pj3d3d3t7e39/f4ODg4eHh4eHh3d3d3t7e3t7e5OTk39/f4ODg3d3d4uLi4eHh4uLi3t7e4uLi39/f3Nzc4ODg3d3d39/f4ODg3d3d4ODg3d3d4eHh3t7e39/f39/f3Nzc4ODg3d3d4ODg3t7e3t7e39/f39/f3d3d4ODg3t7e39/f4ODg4ODg3t7e4eHh3t7e39/f3t7e4ODg3t7e39/f3d3d39/f39/f3t7e3t7e39/f3d3d3t7e3t7e4ODg3t7e3d3d3t7e3t7e3t7e3t7e3t7e3t7e39/f3d3d39/f3t7e3t7e4ODg3t7e3t7e39/f3t7e4ODg3d3d39/f39/f4ODg3t7e4ODg39/f39/f3d3d3t7e3t7e3t7e3d3d39/f3d3d39/f39/f3t7e3t7e3t7e3t7e39/f3d3d3t7e3t7e39/f39/f3t7e3t7e3t7e3d3d39/f3d3d39/f3t7e39/f39/f3t7e3t7e39/f3t7e3t7e3d3d3t7e3t7e39/f3t7e3d3d39/f3d3d39/f39/f3t7e39/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4AnuLa97dlIFLlMoZ2dSj5eAKkIBrEUx07GrqKVy7yItzBCZbSI0wDhG6+s4nq39GXGUoFIc0IYDmiCoXcGILiYlgFrUdgoA+1B9rgTwFLV8AaAI1btKAG9RyxEADqFaoQRg6sJoqwSADKz8qQRA8L/HcIujOIYRfRV1gSxD8biDdhG1RcoAV1H0+24n/RqB2mllAEs4quPreOV3FCrB7coA5BorB97g7reDWcHp54u6D+K4xISs4vvXd0zmbrOJYoApXGQjhdQrB5BPY538Qe+JCgD5M1fgn2YkqgDEcizQzj4k9x9RCSDk7+Gp7C70jD7QIl4iDWAYz66cvFzZQs3LAuTCBmjR6Ld05wA1GgFfbd9xrkbAKb7HGgHz+Tbf1OQvc+EBvh80+L/42U3aoHLV/ocGh1F3S7jVrsJtvrO0q9Nzcx88Umn46R2c/wEA2LVBpTpQcQAAAABJRU5ErkJggg==',
  2347. be = c({
  2348. name: 'col-upload',
  2349. props: {
  2350. modelValue: String,
  2351. tips: { type: String, default: '点击上传' },
  2352. deletable: { type: Boolean, default: !0 },
  2353. native: { type: Boolean, default: !1 },
  2354. cropper: { type: Boolean, default: !1 },
  2355. options: { type: Object, default: {} },
  2356. uploadSize: { type: Number, default: 5 },
  2357. onUploadChange: { type: Function, default: function (e) {} },
  2358. bucket: { type: String, default: 'daya' }
  2359. },
  2360. methods: {
  2361. nativeUpload: function () {
  2362. var e = this
  2363. b(
  2364. { api: 'chooseFile', content: { type: 'img', max: 1, bucket: this.bucket } },
  2365. function (t) {
  2366. console.log(t, 'fileUrl'), e.$emit('update:modelValue', t.fileUrl)
  2367. }
  2368. )
  2369. },
  2370. beforeRead: function (e) {
  2371. return (
  2372. console.log(e, 'beforeRead'),
  2373. !!(e.size / 1024 / 1024 < this.uploadSize) ||
  2374. (w('上传文件大小不能超过 '.concat(this.uploadSize, 'MB')), !1)
  2375. )
  2376. },
  2377. beforeDelete: function (e, t) {
  2378. return !0
  2379. },
  2380. afterRead: function (e, t) {
  2381. var o = this
  2382. return r(
  2383. regeneratorRuntime.mark(function t() {
  2384. return regeneratorRuntime.wrap(
  2385. function (t) {
  2386. for (;;)
  2387. switch ((t.prev = t.next)) {
  2388. case 0:
  2389. return (
  2390. (t.prev = 0),
  2391. (e.status = 'uploading'),
  2392. (e.message = '上传中...'),
  2393. (t.next = 5),
  2394. o.uploadFile(e.file)
  2395. )
  2396. case 5:
  2397. t.next = 11
  2398. break
  2399. case 7:
  2400. ;(t.prev = 7), (t.t0 = t.catch(0)), console.log(t.t0, '2323'), y()
  2401. case 11:
  2402. case 'end':
  2403. return t.stop()
  2404. }
  2405. },
  2406. t,
  2407. null,
  2408. [[0, 7]]
  2409. )
  2410. })
  2411. )()
  2412. },
  2413. onClose: function (e) {
  2414. this.$emit('update:modelValue', null),
  2415. this.onUploadChange(),
  2416. e.stopPropagation()
  2417. },
  2418. getFile: function (e) {
  2419. var t = this
  2420. return r(
  2421. regeneratorRuntime.mark(function o() {
  2422. return regeneratorRuntime.wrap(
  2423. function (o) {
  2424. for (;;)
  2425. switch ((o.prev = o.next)) {
  2426. case 0:
  2427. return (o.prev = 0), (o.next = 3), t.uploadFile(e)
  2428. case 3:
  2429. o.next = 7
  2430. break
  2431. case 5:
  2432. ;(o.prev = 5), (o.t0 = o.catch(0))
  2433. case 7:
  2434. case 'end':
  2435. return o.stop()
  2436. }
  2437. },
  2438. o,
  2439. null,
  2440. [[0, 5]]
  2441. )
  2442. })
  2443. )()
  2444. },
  2445. uploadFile: function (e) {
  2446. var t = this
  2447. return r(
  2448. regeneratorRuntime.mark(function o() {
  2449. var n, r, i, a, c, s, l, u, h
  2450. return regeneratorRuntime.wrap(
  2451. function (o) {
  2452. for (;;)
  2453. switch ((o.prev = o.next)) {
  2454. case 0:
  2455. return (
  2456. (o.prev = 0),
  2457. (n = C.platformApi + '/open/getUploadSign'),
  2458. (r = e.name || ''),
  2459. (i = r && r.replace(/ /gi, '_')),
  2460. (a = new Date().getTime() + i),
  2461. console.log(e),
  2462. (o.next = 8),
  2463. A.post(n, {
  2464. data: {
  2465. filename: i,
  2466. bucketName: t.bucket,
  2467. postData: {
  2468. filename: i,
  2469. acl: 'public-read',
  2470. key: a,
  2471. unknowValueField: []
  2472. }
  2473. }
  2474. })
  2475. )
  2476. case 8:
  2477. for (u in ((c = o.sent),
  2478. x.loading({
  2479. message: '加载中...',
  2480. forbidClick: !0,
  2481. loadingType: 'spinner',
  2482. duration: 0
  2483. }),
  2484. (s = {
  2485. policy: c.data.policy,
  2486. signature: c.data.signature,
  2487. key: a,
  2488. KSSAccessKeyId: c.data.kssAccessKeyId,
  2489. acl: 'public-read',
  2490. name: i
  2491. }),
  2492. (l = new FormData()),
  2493. s))
  2494. l.append(u, s[u])
  2495. return (
  2496. l.append('file', e, i),
  2497. (o.next = 16),
  2498. k(S(t.bucket), { method: 'POST', data: l })
  2499. )
  2500. case 16:
  2501. console.log(S(t.bucket) + a),
  2502. (h = S(t.bucket) + a),
  2503. x.clear(),
  2504. t.$emit('update:modelValue', h),
  2505. t.onUploadChange(h),
  2506. (o.next = 26)
  2507. break
  2508. case 23:
  2509. ;(o.prev = 23),
  2510. (o.t0 = o.catch(0)),
  2511. console.log(o.t0, 'uploadFile')
  2512. case 26:
  2513. case 'end':
  2514. return o.stop()
  2515. }
  2516. },
  2517. o,
  2518. null,
  2519. [[0, 23]]
  2520. )
  2521. })
  2522. )()
  2523. }
  2524. },
  2525. render: function () {
  2526. var e = this
  2527. return (
  2528. I(function () {
  2529. return e.modelValue
  2530. }),
  2531. v('div', { class: V }, [
  2532. this.modelValue && this.deletable
  2533. ? v(O, { name: 'cross', onClick: this.onClose, class: P }, null)
  2534. : null,
  2535. this.cropper && !this.native
  2536. ? v('div', { class: K }, [
  2537. this.modelValue
  2538. ? v(
  2539. q,
  2540. {
  2541. fit: 'cover',
  2542. position: 'center',
  2543. class: $,
  2544. src: this.modelValue
  2545. },
  2546. null
  2547. )
  2548. : v('div', { class: G }, [
  2549. v(O, { name: ve, size: '32' }, null),
  2550. v('p', { class: Z }, [this.tips])
  2551. ]),
  2552. v(me, { option: this.options, getFile: this.getFile }, null)
  2553. ])
  2554. : this.native
  2555. ? v(
  2556. 'div',
  2557. {
  2558. style: {
  2559. display: 'flex',
  2560. alignItems: 'center',
  2561. justifyContent: 'center',
  2562. height: '100%'
  2563. },
  2564. onClick: this.nativeUpload
  2565. },
  2566. [
  2567. this.modelValue
  2568. ? v(
  2569. q,
  2570. {
  2571. fit: 'cover',
  2572. position: 'center',
  2573. class: $,
  2574. src: this.modelValue
  2575. },
  2576. null
  2577. )
  2578. : v('div', { class: G }, [
  2579. v(O, { name: ve, size: '32' }, null),
  2580. v('p', { class: Z }, [this.tips])
  2581. ])
  2582. ]
  2583. )
  2584. : v(
  2585. X,
  2586. {
  2587. afterRead: this.afterRead,
  2588. beforeRead: this.beforeRead,
  2589. beforeDelete: this.beforeDelete
  2590. },
  2591. {
  2592. default: function () {
  2593. return e.modelValue
  2594. ? v(
  2595. q,
  2596. {
  2597. fit: 'cover',
  2598. position: 'center',
  2599. class: $,
  2600. src: e.modelValue
  2601. },
  2602. null
  2603. )
  2604. : v('div', { class: G }, [
  2605. v(O, { name: ve, size: '32' }, null),
  2606. v('p', { class: Z }, [e.tips])
  2607. ])
  2608. }
  2609. }
  2610. )
  2611. ])
  2612. )
  2613. }
  2614. })
  2615. e(
  2616. 'default',
  2617. c({
  2618. name: 'companion-teacher-register',
  2619. setup: function () {
  2620. var e = _(),
  2621. i = B({
  2622. showPicker: !1,
  2623. showSubject: !1,
  2624. submitStatus: !1,
  2625. showEducation: !1,
  2626. id: e.query.id,
  2627. name: e.query.name,
  2628. pattern: /^1(3|4|5|6|7|8|9)\d{9}$/,
  2629. columns: [],
  2630. pickerType: null,
  2631. selectSubjects: [],
  2632. forms: {
  2633. realName: '',
  2634. phone: null,
  2635. gender: 1,
  2636. idCardNo: null,
  2637. cityCode: null,
  2638. cityCodeName: '',
  2639. provinceCode: null,
  2640. subjectIds: [],
  2641. smsValidCode: '',
  2642. educationBackground: '',
  2643. graduateSchool: null,
  2644. idcardFrontImg: '',
  2645. idcardBackImg: ''
  2646. },
  2647. btnLoading: !1,
  2648. checkPhone: !1,
  2649. checked: !0,
  2650. columnSubject: [],
  2651. countDownStatus: !0,
  2652. countDownTime: 120,
  2653. countDownRef: null,
  2654. imgCodeStatus: !1
  2655. }),
  2656. a = (function () {
  2657. var e = r(
  2658. regeneratorRuntime.mark(function e() {
  2659. var o
  2660. return regeneratorRuntime.wrap(
  2661. function (e) {
  2662. for (;;)
  2663. switch ((e.prev = e.next)) {
  2664. case 0:
  2665. if (i.checked) {
  2666. e.next = 3
  2667. break
  2668. }
  2669. return w('请阅读并同意协议'), e.abrupt('return')
  2670. case 3:
  2671. return (
  2672. (i.btnLoading = !0),
  2673. (e.prev = 4),
  2674. (o = i.forms),
  2675. (e.next = 8),
  2676. A.post(
  2677. '/api-school/open/schoolTeacherStudent/registerTeacher',
  2678. {
  2679. data: t(
  2680. t({}, o),
  2681. {},
  2682. { subjectIds: o.subjectIds.join(','), schoolId: i.id }
  2683. )
  2684. }
  2685. )
  2686. )
  2687. case 8:
  2688. ;(i.submitStatus = !0), (e.next = 13)
  2689. break
  2690. case 11:
  2691. ;(e.prev = 11), (e.t0 = e.catch(4))
  2692. case 13:
  2693. i.btnLoading = !1
  2694. case 14:
  2695. case 'end':
  2696. return e.stop()
  2697. }
  2698. },
  2699. e,
  2700. null,
  2701. [[4, 11]]
  2702. )
  2703. })
  2704. )
  2705. return function () {
  2706. return e.apply(this, arguments)
  2707. }
  2708. })(),
  2709. c = function (e) {
  2710. var t = e.selectedOptions[1]
  2711. ;(i.forms.cityCode = t.code), (i.forms.cityCodeName = t.name)
  2712. var o = e.selectedOptions[0]
  2713. ;(i.forms.provinceCode = o.code), (i.showPicker = !1)
  2714. },
  2715. s = function (e) {
  2716. var t = e.selectedOptions[0],
  2717. o = !1
  2718. if (
  2719. (i.selectSubjects.forEach(function (e) {
  2720. e.value === t.value && (o = !0)
  2721. }),
  2722. o)
  2723. )
  2724. i.showSubject = !1
  2725. else {
  2726. i.selectSubjects.push(e.selectedOptions[0])
  2727. var n = []
  2728. i.selectSubjects.forEach(function (e) {
  2729. n.push(e.value)
  2730. }),
  2731. (i.forms.subjectIds = n),
  2732. (i.showSubject = !1)
  2733. }
  2734. },
  2735. l = function (e) {
  2736. var t = e.selectedOptions[0]
  2737. ;(i.forms.educationBackground = t.value), (i.showEducation = !1)
  2738. },
  2739. u = function () {
  2740. if (!z(i.forms.phone)) return w('请输入正确的手机号码')
  2741. i.imgCodeStatus = !0
  2742. },
  2743. h = function () {
  2744. i.countDownStatus = !1
  2745. var e = setInterval(function () {
  2746. ;(i.countDownTime = i.countDownTime - 1),
  2747. i.countDownTime <= 0 &&
  2748. ((i.countDownTime = 120), (i.countDownStatus = !0), clearInterval(e))
  2749. }, 1e3)
  2750. }
  2751. return (
  2752. E(
  2753. r(
  2754. regeneratorRuntime.mark(function e() {
  2755. var t, n, r, a, c
  2756. return regeneratorRuntime.wrap(
  2757. function (e) {
  2758. for (;;)
  2759. switch ((e.prev = e.next)) {
  2760. case 0:
  2761. return (
  2762. i.id || w('信息获取失败,请联系老师'),
  2763. (e.prev = 1),
  2764. (t = []),
  2765. o.forEach(function (e) {
  2766. var o = { name: e.name, code: e.code, areas: [] }
  2767. e.areas &&
  2768. e.areas.length > 0 &&
  2769. e.areas.forEach(function (e) {
  2770. o.areas.push({ name: e.name, code: e.code })
  2771. }),
  2772. t.push(o)
  2773. }),
  2774. (i.columns = t || []),
  2775. (e.next = 7),
  2776. A.post('/api-school/open/subject/page', {
  2777. data: { page: 1, rows: 50 }
  2778. })
  2779. )
  2780. case 7:
  2781. ;(n = e.sent),
  2782. (r = n.data),
  2783. (a = r.rows || []),
  2784. (c = []),
  2785. a.forEach(function (e) {
  2786. c.push({ text: e.name, value: e.id })
  2787. }),
  2788. (i.columnSubject = c),
  2789. (e.next = 18)
  2790. break
  2791. case 15:
  2792. ;(e.prev = 15),
  2793. (e.t0 = e.catch(1)),
  2794. H({
  2795. message: '信息获取失败,请联系老师',
  2796. theme: 'round-button',
  2797. confirmButtonColor: '#64A9FF'
  2798. })
  2799. case 18:
  2800. case 'end':
  2801. return e.stop()
  2802. }
  2803. },
  2804. e,
  2805. null,
  2806. [[1, 15]]
  2807. )
  2808. })
  2809. )
  2810. ),
  2811. function () {
  2812. return v('div', { class: J.register }, [
  2813. v('div', { class: J.title }, [
  2814. v('p', { class: J.tips }, [
  2815. v(
  2816. 'img',
  2817. {
  2818. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApVJREFUWEftl82rjVEUxn9PknC7mCEuKUJKSRkoIyUpwztBGbi+RtQt/gRRBkou7ogSZSIxMVEY+EgKRVKui5gQIhKP1m2/2k7nnPd8Stw1Ou8++13796691rPXFn+ZqRM8tmcDPyS9btdf20C2twKHAQN7JZ1qB6plINtzgePA+gqAy8AOSS9aAWsJyPZ24BDQW2PR98CgpOFmoZoCsj0fOAmsrVjoChC+qo0PSBppFKwhINsxbzdwAOjJnP8WCdsDKXLTsjkfgf3AMUmRZ3WtFMh2H3AaWFPh6RKwszJXbM8BTlTJravAJkmv6hE1AnQbWJk5edtINWXVNyN795akVS0D2Y7t+ZDyI/xcSFFpSG9szwKGgI0ZRI+kT7Wg6kbI9nTgXfZyn6TRsjzI/7c9D3iWjfVKiryqauNAoV2lEbI9OalunrwR0gnAog5v2eM49zKfIQV3krp/Gdsy25tTaZelRydyqNYaIQlnCqAQvaNlNEA3gXZJGqoG9BDYl+CmAuc6vGX9wOfk8yCwNP2uCXRN0pgqd7vsbV8HVv+7QLYXA9uA5ekr7wHDkqKSxqyeMHY0Qrb3AJEDEyuK4VvqhY78MSDbkZhnszOuskBDW/olne96hICXwBNgQaKIs63oqQeBaD/CngILQypqnWUd2TIgmq/7RYpE2Up6lLZnCRCyUZyRUdJR4lUP104BLQOikQ8blRQR+GW2owGLtiNsHRAJ3lWgqKiLacERSdFn50DPgbiRhG1IERsHGo9QEYFI4P8sh2zfAGZmQhe3jAcpJNEx5teWu8AUIM6wsK9AjOW2ApiUBkKfQodirLCbwPf0EBJSXMdDSN/IdultsmLBrj7+lUBbuvrJTTovvUo36a/t6T8B6vz6SJbFLFUAAAAASUVORK5CYII='
  2819. },
  2820. null
  2821. ),
  2822. v('span', null, [i.name])
  2823. ])
  2824. ]),
  2825. v(
  2826. n,
  2827. {
  2828. validateFirst: !0,
  2829. scrollToError: !0,
  2830. onSubmit: a,
  2831. ref: 'form',
  2832. class: J.form
  2833. },
  2834. {
  2835. default: function () {
  2836. return [
  2837. v(
  2838. W,
  2839. { inset: !0, class: J['cell-group'] },
  2840. {
  2841. default: function () {
  2842. return [
  2843. v(
  2844. D,
  2845. {
  2846. required: !0,
  2847. label: '真实姓名',
  2848. modelValue: i.forms.realName,
  2849. 'onUpdate:modelValue': function (e) {
  2850. return (i.forms.realName = e)
  2851. },
  2852. rules: [{ required: !0, message: '请填写真实姓名' }],
  2853. name: 'realName',
  2854. placeholder: '请填写真实姓名',
  2855. maxlength: '50'
  2856. },
  2857. null
  2858. ),
  2859. v(
  2860. D,
  2861. {
  2862. required: !0,
  2863. label: '手机号码',
  2864. modelValue: i.forms.phone,
  2865. 'onUpdate:modelValue': function (e) {
  2866. return (i.forms.phone = e)
  2867. },
  2868. rules: [{ required: !0, message: '请输入手机号码' }],
  2869. name: 'phone',
  2870. placeholder: '请输入手机号码'
  2871. },
  2872. null
  2873. ),
  2874. v(
  2875. D,
  2876. {
  2877. required: !0,
  2878. label: '验证码',
  2879. modelValue: i.forms.smsValidCode,
  2880. 'onUpdate:modelValue': function (e) {
  2881. return (i.forms.smsValidCode = e)
  2882. },
  2883. name: 'smsValidCode',
  2884. rules: [
  2885. {
  2886. required: !0,
  2887. message: '请选择声部',
  2888. trigger: 'onChange'
  2889. }
  2890. ],
  2891. placeholder: '请输入验证码'
  2892. },
  2893. {
  2894. button: function () {
  2895. return i.countDownStatus
  2896. ? v(
  2897. j,
  2898. {
  2899. type: 'primary',
  2900. round: !0,
  2901. size: 'small',
  2902. color: '#ff8057',
  2903. onClick: u
  2904. },
  2905. {
  2906. default: function () {
  2907. return [T('发送验证码')]
  2908. }
  2909. }
  2910. )
  2911. : v(
  2912. j,
  2913. {
  2914. type: 'default',
  2915. round: !0,
  2916. size: 'small',
  2917. disabled: !0,
  2918. style: { minWidth: '60px' },
  2919. onClick: u
  2920. },
  2921. {
  2922. default: function () {
  2923. return [i.countDownTime + 's']
  2924. }
  2925. }
  2926. )
  2927. }
  2928. }
  2929. ),
  2930. v('div', { class: J.phoneTips }, [
  2931. v(O, { name: 'warning', size: '16' }, null),
  2932. T('提示:手机号码将成为您管乐团管理端登录账号')
  2933. ]),
  2934. v(
  2935. D,
  2936. {
  2937. required: !0,
  2938. label: '身份证号码',
  2939. modelValue: i.forms.idCardNo,
  2940. 'onUpdate:modelValue': function (e) {
  2941. return (i.forms.idCardNo = e)
  2942. },
  2943. rules: [
  2944. { required: !0, message: '请输入身份证号' },
  2945. {
  2946. pattern:
  2947. /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  2948. message: '请输入正确的身份证号'
  2949. }
  2950. ],
  2951. name: 'idCardNo',
  2952. placeholder: '请输入身份证号码'
  2953. },
  2954. null
  2955. ),
  2956. v(
  2957. D,
  2958. {
  2959. required: !0,
  2960. label: '性别',
  2961. name: 'gender',
  2962. rules: [{ required: !0, message: '请选择性别' }]
  2963. },
  2964. {
  2965. input: function () {
  2966. return v(
  2967. L,
  2968. {
  2969. 'checked-color': '#FF8057',
  2970. modelValue: i.forms.gender,
  2971. 'onUpdate:modelValue': function (e) {
  2972. return (i.forms.gender = e)
  2973. },
  2974. direction: 'horizontal'
  2975. },
  2976. {
  2977. default: function () {
  2978. return [
  2979. v(
  2980. Q,
  2981. {
  2982. size: 'large',
  2983. type: 'primary',
  2984. plain: !(1 === i.forms.gender),
  2985. color: '#FF8057',
  2986. class: J.radioSection
  2987. },
  2988. {
  2989. default: function () {
  2990. return [
  2991. v(
  2992. F,
  2993. { class: J.radioItem, name: 1 },
  2994. null
  2995. ),
  2996. T('男')
  2997. ]
  2998. }
  2999. }
  3000. ),
  3001. v(
  3002. Q,
  3003. {
  3004. size: 'large',
  3005. type: 'primary',
  3006. plain: !(0 === i.forms.gender),
  3007. color: '#FF8057',
  3008. class: J.radioSection
  3009. },
  3010. {
  3011. default: function () {
  3012. return [
  3013. v(
  3014. F,
  3015. { class: J.radioItem, name: 0 },
  3016. null
  3017. ),
  3018. T('女')
  3019. ]
  3020. }
  3021. }
  3022. )
  3023. ]
  3024. }
  3025. }
  3026. )
  3027. }
  3028. }
  3029. ),
  3030. v(
  3031. D,
  3032. {
  3033. required: !0,
  3034. label: '身份证照片正面',
  3035. modelValue: i.forms.idcardFrontImg,
  3036. 'onUpdate:modelValue': function (e) {
  3037. return (i.forms.idcardFrontImg = e)
  3038. },
  3039. readonly: !0,
  3040. name: 'idcardFrontImg',
  3041. onClick: function () {
  3042. return (i.showPicker = !0)
  3043. },
  3044. rules: [
  3045. {
  3046. required: !0,
  3047. message: '请选择身份证照片正面',
  3048. trigger: 'onChange'
  3049. }
  3050. ],
  3051. placeholder: '请选择身份证照片正面'
  3052. },
  3053. {
  3054. input: function () {
  3055. return v(
  3056. be,
  3057. {
  3058. style: { width: '100%' },
  3059. tips: '上传身份证正面',
  3060. modelValue: i.forms.idcardFrontImg,
  3061. 'onUpdate:modelValue': function (e) {
  3062. return (i.forms.idcardFrontImg = e)
  3063. }
  3064. },
  3065. null
  3066. )
  3067. }
  3068. }
  3069. ),
  3070. v(
  3071. D,
  3072. {
  3073. required: !0,
  3074. label: '身份证照片反面',
  3075. modelValue: i.forms.idcardFrontImg,
  3076. 'onUpdate:modelValue': function (e) {
  3077. return (i.forms.idcardFrontImg = e)
  3078. },
  3079. readonly: !0,
  3080. name: 'idcardFrontImg',
  3081. onClick: function () {
  3082. return (i.showPicker = !0)
  3083. },
  3084. rules: [
  3085. {
  3086. required: !0,
  3087. message: '请选择身份证照片反面',
  3088. trigger: 'onChange'
  3089. }
  3090. ],
  3091. placeholder: '请选择身份证照片反面'
  3092. },
  3093. {
  3094. input: function () {
  3095. return v(
  3096. be,
  3097. {
  3098. style: { width: '100%' },
  3099. tips: '上传身份证正面',
  3100. modelValue: i.forms.idcardFrontImg,
  3101. 'onUpdate:modelValue': function (e) {
  3102. return (i.forms.idcardFrontImg = e)
  3103. }
  3104. },
  3105. null
  3106. )
  3107. }
  3108. }
  3109. ),
  3110. v(
  3111. D,
  3112. {
  3113. required: !0,
  3114. label: '学历',
  3115. modelValue: i.forms.educationBackground,
  3116. 'onUpdate:modelValue': function (e) {
  3117. return (i.forms.educationBackground = e)
  3118. },
  3119. readonly: !0,
  3120. name: 'educationBackground',
  3121. onClick: function () {
  3122. return (i.showEducation = !0)
  3123. },
  3124. rules: [
  3125. {
  3126. required: !0,
  3127. message: '请选择学历',
  3128. trigger: 'onChange'
  3129. }
  3130. ],
  3131. placeholder: '请选择学历'
  3132. },
  3133. {
  3134. 'right-icon': function () {
  3135. return v(
  3136. O,
  3137. {
  3138. name: 'arrow',
  3139. color: i.checkPhone ? '#aaa' : '#323233',
  3140. size: '16'
  3141. },
  3142. null
  3143. )
  3144. }
  3145. }
  3146. ),
  3147. v(
  3148. D,
  3149. {
  3150. required: !0,
  3151. label: '毕业学校',
  3152. modelValue: i.forms.graduateSchool,
  3153. 'onUpdate:modelValue': function (e) {
  3154. return (i.forms.graduateSchool = e)
  3155. },
  3156. rules: [{ required: !0, message: '请输入毕业学校' }],
  3157. name: 'graduateSchool',
  3158. placeholder: '请输入毕业学校'
  3159. },
  3160. null
  3161. ),
  3162. v(
  3163. D,
  3164. {
  3165. required: !0,
  3166. label: '所在城市',
  3167. modelValue: i.forms.cityCodeName,
  3168. 'onUpdate:modelValue': function (e) {
  3169. return (i.forms.cityCodeName = e)
  3170. },
  3171. readonly: !0,
  3172. name: 'cityCodeName',
  3173. onClick: function () {
  3174. return (i.showPicker = !0)
  3175. },
  3176. rules: [
  3177. {
  3178. required: !0,
  3179. message: '请选择所在城市',
  3180. trigger: 'onChange'
  3181. }
  3182. ],
  3183. placeholder: '请选择所在城市'
  3184. },
  3185. {
  3186. 'right-icon': function () {
  3187. return v(
  3188. O,
  3189. {
  3190. name: 'arrow',
  3191. color: i.checkPhone ? '#aaa' : '#323233',
  3192. size: '16'
  3193. },
  3194. null
  3195. )
  3196. }
  3197. }
  3198. ),
  3199. v(
  3200. D,
  3201. {
  3202. required: !0,
  3203. label: '声部(可多选)',
  3204. modelValue: i.forms.cityCodeName,
  3205. 'onUpdate:modelValue': function (e) {
  3206. return (i.forms.cityCodeName = e)
  3207. },
  3208. readonly: !0,
  3209. name: 'cityCodeName',
  3210. onClick: function () {
  3211. return (i.showSubject = !0)
  3212. },
  3213. rules: [
  3214. {
  3215. required: !0,
  3216. message: '请选择声部',
  3217. trigger: 'onChange'
  3218. }
  3219. ],
  3220. placeholder: '请选择声部'
  3221. },
  3222. {
  3223. 'right-icon': function () {
  3224. return v(
  3225. O,
  3226. {
  3227. name: 'arrow',
  3228. color: i.checkPhone ? '#aaa' : '#323233',
  3229. size: '16'
  3230. },
  3231. null
  3232. )
  3233. },
  3234. input: function () {
  3235. return v(M, null, [
  3236. i.forms.subjectIds.length <= 0
  3237. ? v(
  3238. 'div',
  3239. {
  3240. class: J.subjectPlaceholder,
  3241. style: 'color:#c8c9cc'
  3242. },
  3243. [T('请选择声部')]
  3244. )
  3245. : '',
  3246. i.forms.subjectIds.length > 0
  3247. ? v('div', null, [
  3248. i.selectSubjects.map(function (e, t) {
  3249. return v(
  3250. Q,
  3251. {
  3252. closeable: !0,
  3253. size: 'medium',
  3254. color: '#FF8057',
  3255. onClose: function () {
  3256. return (function (e, t) {
  3257. H({
  3258. title: '提示',
  3259. message: '您是否删除选中的声部',
  3260. confirmButtonColor: '#ff8057',
  3261. showCancelButton: !0
  3262. }).then(function () {
  3263. i.selectSubjects.splice(t, 1)
  3264. var e = []
  3265. i.selectSubjects.forEach(
  3266. function (t) {
  3267. e.push(t.value)
  3268. }
  3269. ),
  3270. (i.forms.subjectIds = e)
  3271. })
  3272. })(0, t)
  3273. }
  3274. },
  3275. {
  3276. default: function () {
  3277. return [e.text]
  3278. }
  3279. }
  3280. )
  3281. })
  3282. ])
  3283. : ''
  3284. ])
  3285. }
  3286. }
  3287. )
  3288. ]
  3289. }
  3290. }
  3291. ),
  3292. v('div', { class: J.protocol }, [
  3293. v(
  3294. U,
  3295. {
  3296. modelValue: i.checked,
  3297. 'onUpdate:modelValue': function (e) {
  3298. return (i.checked = e)
  3299. },
  3300. 'icon-size': '16',
  3301. style: 'margin-right: 6px',
  3302. 'checked-color': '#FF8057'
  3303. },
  3304. null
  3305. ),
  3306. v(
  3307. 'span',
  3308. {
  3309. onClick: function () {
  3310. i.checked = !i.checked
  3311. }
  3312. },
  3313. [T('请认真阅读并勾选')]
  3314. ),
  3315. v('span', { class: J.c }, [T('《乐团伴学指导注册协议》')])
  3316. ]),
  3317. v(
  3318. j,
  3319. {
  3320. size: 'large',
  3321. block: !0,
  3322. round: !0,
  3323. class: J['btn-submit'],
  3324. color: '#FF8057',
  3325. loading: i.btnLoading,
  3326. 'native-type': 'submit'
  3327. },
  3328. {
  3329. default: function () {
  3330. return [T('完成')]
  3331. }
  3332. }
  3333. )
  3334. ]
  3335. }
  3336. }
  3337. ),
  3338. v(
  3339. R,
  3340. {
  3341. show: i.showPicker,
  3342. 'onUpdate:show': function (e) {
  3343. return (i.showPicker = e)
  3344. },
  3345. position: 'bottom',
  3346. round: !0
  3347. },
  3348. {
  3349. default: function () {
  3350. return [
  3351. v(
  3352. N,
  3353. {
  3354. showToolbar: !0,
  3355. columns: i.columns,
  3356. onCancel: function () {
  3357. return (i.showPicker = !1)
  3358. },
  3359. onConfirm: c,
  3360. columnsFieldNames: {
  3361. text: 'name',
  3362. value: 'code',
  3363. children: 'areas'
  3364. }
  3365. },
  3366. null
  3367. )
  3368. ]
  3369. }
  3370. }
  3371. ),
  3372. v(
  3373. R,
  3374. {
  3375. show: i.showSubject,
  3376. 'onUpdate:show': function (e) {
  3377. return (i.showSubject = e)
  3378. },
  3379. position: 'bottom',
  3380. round: !0
  3381. },
  3382. {
  3383. default: function () {
  3384. return [
  3385. v(
  3386. N,
  3387. {
  3388. showToolbar: !0,
  3389. columns: i.columnSubject,
  3390. onCancel: function () {
  3391. return (i.showSubject = !1)
  3392. },
  3393. onConfirm: s
  3394. },
  3395. null
  3396. )
  3397. ]
  3398. }
  3399. }
  3400. ),
  3401. v(
  3402. R,
  3403. {
  3404. show: i.showSubject,
  3405. 'onUpdate:show': function (e) {
  3406. return (i.showSubject = e)
  3407. },
  3408. position: 'bottom',
  3409. round: !0
  3410. },
  3411. {
  3412. default: function () {
  3413. return [
  3414. v(
  3415. N,
  3416. {
  3417. showToolbar: !0,
  3418. columns: i.columnSubject,
  3419. onCancel: function () {
  3420. return (i.showSubject = !1)
  3421. },
  3422. onConfirm: s
  3423. },
  3424. null
  3425. )
  3426. ]
  3427. }
  3428. }
  3429. ),
  3430. v(
  3431. R,
  3432. {
  3433. show: i.showEducation,
  3434. 'onUpdate:show': function (e) {
  3435. return (i.showEducation = e)
  3436. },
  3437. position: 'bottom',
  3438. round: !0
  3439. },
  3440. {
  3441. default: function () {
  3442. return [
  3443. v(
  3444. N,
  3445. {
  3446. showToolbar: !0,
  3447. columns: [
  3448. { text: '专科', value: '专科' },
  3449. { text: '本科', value: '本科' },
  3450. { text: '硕士', value: '硕士' },
  3451. { text: '博士', value: '博士' },
  3452. { text: '其他', value: '其他' }
  3453. ],
  3454. onCancel: function () {
  3455. return (i.showEducation = !1)
  3456. },
  3457. onConfirm: l
  3458. },
  3459. null
  3460. )
  3461. ]
  3462. }
  3463. }
  3464. ),
  3465. v(
  3466. R,
  3467. {
  3468. show: i.submitStatus,
  3469. 'onUpdate:show': function (e) {
  3470. return (i.submitStatus = e)
  3471. },
  3472. round: !0,
  3473. style: 'width: 75%',
  3474. closeOnClickOverlay: !0
  3475. },
  3476. {
  3477. default: function () {
  3478. return [
  3479. v('div', { class: J.stautsS }, [
  3480. v(
  3481. 'img',
  3482. {
  3483. class: J['icon-close'],
  3484. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAA7dJREFUaEPdmk1oE0EUgN/bpUkxm20rHqvU4E9OLSI0/pxERFG8eOhNj3qooKDgwbMHoYJCe/Cqt4JeREEseLKagqg9xb9YtDelP7MTSVJ2n0zYlW2adGd/0obJcfPem/ftm33z3swgJPhbXV3dr2naCQAYBoCDRJRDRBMAsu4wFhExRCwDwGcAmHcc53VfX9/XpNzAuIY458OO41xCxDEi2h3FHiL+IqJpTdMeGYYxH8WGpxMZqFKpnLVt+zYAHIvjQAvdWV3X72QymRdR7IYGWllZOaxp2hQAFKIMGEKn6DjOeH9///sQOiANRERpzvldIroKAHqYQWLI2og4aRjGLUSsydiRAqpWq/vW1tamieiQjNGkZRDxQ09Pz1hvb++3INuBQIwx8Y08A4CdQcY6/P8SAJw3TXN2s3E2BeKcn7Zt+yki7uiws1LmieivrusXDMN42U6hLZCIDBG96hYYD0BAIeKpdpFqCSS+mXq9XuyCadYuEEupVKrQ6pvaAORms7fblQCk5h4AiERhGMbR5uy3AciyrPtEdE3W8HbKIeKDbDZ73e/DOiB30RRTbavWmbjvw3Ycp+BffNcBMcbebUEFEBeiWb9omuaRDbWcW5s9lxmNcw6Li4uQy+UglUrJqATK1Ot1KJfLMDg4CIZhBMr7BXRdP+fVfv8jxBh7I1tolkolWFhYgEwmA6Ojo5BOp0M50Cxcq9Vgbm4OKpUKDA0NQT6fD2tv1jTN40KpAbS8vDyi6/pHWSvibRaLxYYDcaH8MMJWoVCIFHVN00ZE69EAYoxNAMANWSAh1+xIlEglYcPn8z3TNG82gCzL+hmlOYvjUBzdVi9eNInZbHYPirYZEb+EiY5fNopjUXRk/COiA2hZ1mUieiij0E4mjINhZMP6hIhXBNAkEY2HVd4sU7VLFJ2EaWQ4xCkx5WYQ8WRcoKBE0WkYF2gGGWPfASCXBFA7KPHcW2fipvkAP8tiyv0mol1JAbWCEs+SWLOCfETEPwKoKlqGIOGw//unmNDtcGQa7olWQkkgtaaccklBubSt3MKqXOmjXHGqXPugZIPnnsJ9kq0Gur4Fd6OkziaJWzyKI0Z1trHcKKmz0SiAlNsKdlO4Opv1Aki54xQBpdSBl7cWKXUk6UFxzs/Ytv2kW85ZYx0a+yOlzLG+B6XUxQsPSqmrMf6iVZnLS82VuDLXy5rB3NO/i0lcALRt+/HAwIB0G9Oq3Qm8vCTbIwk5/xVNx3HyiLi31RVNIvqhaVqpE1c0/wHHpUliZEbjnQAAAABJRU5ErkJggg==',
  3485. onClick: function () {
  3486. return (i.submitStatus = !1)
  3487. }
  3488. },
  3489. null
  3490. ),
  3491. v(
  3492. 'img',
  3493. {
  3494. src: './assets/top-banner1.af55128a.png',
  3495. class: J['submit-img']
  3496. },
  3497. null
  3498. ),
  3499. v('div', { class: J['submit-container'] }, [
  3500. v('p', { class: J['submit-title'] }, [T('恭喜您已成功登记为')]),
  3501. v('p', { class: J['submit-o'] }, [
  3502. i.name,
  3503. T(' '),
  3504. v('span', null, [T('【伴学指导】')])
  3505. ]),
  3506. v('p', { class: J['submit-tips'] }, [
  3507. T('请下载管乐团管理端APP进行授课')
  3508. ]),
  3509. v(
  3510. j,
  3511. {
  3512. type: 'primary',
  3513. color: '#FF8057',
  3514. block: !0,
  3515. round: !0,
  3516. onClick: function () {
  3517. return (i.submitStatus = !1)
  3518. }
  3519. },
  3520. {
  3521. default: function () {
  3522. return [T('立即下载')]
  3523. }
  3524. }
  3525. )
  3526. ])
  3527. ])
  3528. ]
  3529. }
  3530. }
  3531. ),
  3532. i.imgCodeStatus
  3533. ? v(
  3534. Y,
  3535. {
  3536. value: i.imgCodeStatus,
  3537. 'onUpdate:value': function (e) {
  3538. return (i.imgCodeStatus = e)
  3539. },
  3540. phone: i.forms.phone,
  3541. onClose: function () {
  3542. i.imgCodeStatus = !1
  3543. },
  3544. onSendCode: h
  3545. },
  3546. null
  3547. )
  3548. : null
  3549. ])
  3550. }
  3551. )
  3552. }
  3553. })
  3554. )
  3555. }
  3556. }
  3557. }
  3558. )
  3559. })()