vendor.js 636 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);
  10. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
  11. var realAtob;
  12. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  13. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14. if (typeof atob !== 'function') {
  15. realAtob = function realAtob(str) {
  16. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  17. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  18. // Adding the padding if missing, for semplicity
  19. str += '=='.slice(2 - (str.length & 3));
  20. var bitmap;var result = '';var r1;var r2;var i = 0;
  21. for (; i < str.length;) {
  22. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  23. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  24. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  25. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  26. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  27. }
  28. return result;
  29. };
  30. } else {
  31. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  32. realAtob = atob;
  33. }
  34. function b64DecodeUnicode(str) {
  35. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  36. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  37. }).join(''));
  38. }
  39. function getCurrentUserInfo() {
  40. var token = wx.getStorageSync('uni_id_token') || '';
  41. var tokenArr = token.split('.');
  42. if (!token || tokenArr.length !== 3) {
  43. return {
  44. uid: null,
  45. role: [],
  46. permission: [],
  47. tokenExpired: 0 };
  48. }
  49. var userInfo;
  50. try {
  51. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  52. } catch (error) {
  53. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  54. }
  55. userInfo.tokenExpired = userInfo.exp * 1000;
  56. delete userInfo.exp;
  57. delete userInfo.iat;
  58. return userInfo;
  59. }
  60. function uniIdMixin(Vue) {
  61. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  62. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  63. return role.indexOf(roleId) > -1;
  64. };
  65. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  66. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  67. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  68. };
  69. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  70. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  71. return tokenExpired > Date.now();
  72. };
  73. }
  74. var _toString = Object.prototype.toString;
  75. var hasOwnProperty = Object.prototype.hasOwnProperty;
  76. function isFn(fn) {
  77. return typeof fn === 'function';
  78. }
  79. function isStr(str) {
  80. return typeof str === 'string';
  81. }
  82. function isPlainObject(obj) {
  83. return _toString.call(obj) === '[object Object]';
  84. }
  85. function hasOwn(obj, key) {
  86. return hasOwnProperty.call(obj, key);
  87. }
  88. function noop() {}
  89. /**
  90. * Create a cached version of a pure function.
  91. */
  92. function cached(fn) {
  93. var cache = Object.create(null);
  94. return function cachedFn(str) {
  95. var hit = cache[str];
  96. return hit || (cache[str] = fn(str));
  97. };
  98. }
  99. /**
  100. * Camelize a hyphen-delimited string.
  101. */
  102. var camelizeRE = /-(\w)/g;
  103. var camelize = cached(function (str) {
  104. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  105. });
  106. function sortObject(obj) {
  107. var sortObj = {};
  108. if (isPlainObject(obj)) {
  109. Object.keys(obj).sort().forEach(function (key) {
  110. sortObj[key] = obj[key];
  111. });
  112. }
  113. return !Object.keys(sortObj) ? obj : sortObj;
  114. }
  115. var HOOKS = [
  116. 'invoke',
  117. 'success',
  118. 'fail',
  119. 'complete',
  120. 'returnValue'];
  121. var globalInterceptors = {};
  122. var scopedInterceptors = {};
  123. function mergeHook(parentVal, childVal) {
  124. var res = childVal ?
  125. parentVal ?
  126. parentVal.concat(childVal) :
  127. Array.isArray(childVal) ?
  128. childVal : [childVal] :
  129. parentVal;
  130. return res ?
  131. dedupeHooks(res) :
  132. res;
  133. }
  134. function dedupeHooks(hooks) {
  135. var res = [];
  136. for (var i = 0; i < hooks.length; i++) {
  137. if (res.indexOf(hooks[i]) === -1) {
  138. res.push(hooks[i]);
  139. }
  140. }
  141. return res;
  142. }
  143. function removeHook(hooks, hook) {
  144. var index = hooks.indexOf(hook);
  145. if (index !== -1) {
  146. hooks.splice(index, 1);
  147. }
  148. }
  149. function mergeInterceptorHook(interceptor, option) {
  150. Object.keys(option).forEach(function (hook) {
  151. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  152. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  153. }
  154. });
  155. }
  156. function removeInterceptorHook(interceptor, option) {
  157. if (!interceptor || !option) {
  158. return;
  159. }
  160. Object.keys(option).forEach(function (hook) {
  161. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  162. removeHook(interceptor[hook], option[hook]);
  163. }
  164. });
  165. }
  166. function addInterceptor(method, option) {
  167. if (typeof method === 'string' && isPlainObject(option)) {
  168. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  169. } else if (isPlainObject(method)) {
  170. mergeInterceptorHook(globalInterceptors, method);
  171. }
  172. }
  173. function removeInterceptor(method, option) {
  174. if (typeof method === 'string') {
  175. if (isPlainObject(option)) {
  176. removeInterceptorHook(scopedInterceptors[method], option);
  177. } else {
  178. delete scopedInterceptors[method];
  179. }
  180. } else if (isPlainObject(method)) {
  181. removeInterceptorHook(globalInterceptors, method);
  182. }
  183. }
  184. function wrapperHook(hook) {
  185. return function (data) {
  186. return hook(data) || data;
  187. };
  188. }
  189. function isPromise(obj) {
  190. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  191. }
  192. function queue(hooks, data) {
  193. var promise = false;
  194. for (var i = 0; i < hooks.length; i++) {
  195. var hook = hooks[i];
  196. if (promise) {
  197. promise = Promise.resolve(wrapperHook(hook));
  198. } else {
  199. var res = hook(data);
  200. if (isPromise(res)) {
  201. promise = Promise.resolve(res);
  202. }
  203. if (res === false) {
  204. return {
  205. then: function then() {} };
  206. }
  207. }
  208. }
  209. return promise || {
  210. then: function then(callback) {
  211. return callback(data);
  212. } };
  213. }
  214. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  215. ['success', 'fail', 'complete'].forEach(function (name) {
  216. if (Array.isArray(interceptor[name])) {
  217. var oldCallback = options[name];
  218. options[name] = function callbackInterceptor(res) {
  219. queue(interceptor[name], res).then(function (res) {
  220. /* eslint-disable no-mixed-operators */
  221. return isFn(oldCallback) && oldCallback(res) || res;
  222. });
  223. };
  224. }
  225. });
  226. return options;
  227. }
  228. function wrapperReturnValue(method, returnValue) {
  229. var returnValueHooks = [];
  230. if (Array.isArray(globalInterceptors.returnValue)) {
  231. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  232. }
  233. var interceptor = scopedInterceptors[method];
  234. if (interceptor && Array.isArray(interceptor.returnValue)) {
  235. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  236. }
  237. returnValueHooks.forEach(function (hook) {
  238. returnValue = hook(returnValue) || returnValue;
  239. });
  240. return returnValue;
  241. }
  242. function getApiInterceptorHooks(method) {
  243. var interceptor = Object.create(null);
  244. Object.keys(globalInterceptors).forEach(function (hook) {
  245. if (hook !== 'returnValue') {
  246. interceptor[hook] = globalInterceptors[hook].slice();
  247. }
  248. });
  249. var scopedInterceptor = scopedInterceptors[method];
  250. if (scopedInterceptor) {
  251. Object.keys(scopedInterceptor).forEach(function (hook) {
  252. if (hook !== 'returnValue') {
  253. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  254. }
  255. });
  256. }
  257. return interceptor;
  258. }
  259. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  260. var interceptor = getApiInterceptorHooks(method);
  261. if (interceptor && Object.keys(interceptor).length) {
  262. if (Array.isArray(interceptor.invoke)) {
  263. var res = queue(interceptor.invoke, options);
  264. return res.then(function (options) {
  265. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  266. });
  267. } else {
  268. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  269. }
  270. }
  271. return api.apply(void 0, [options].concat(params));
  272. }
  273. var promiseInterceptor = {
  274. returnValue: function returnValue(res) {
  275. if (!isPromise(res)) {
  276. return res;
  277. }
  278. return new Promise(function (resolve, reject) {
  279. res.then(function (res) {
  280. if (res[0]) {
  281. reject(res[0]);
  282. } else {
  283. resolve(res[1]);
  284. }
  285. });
  286. });
  287. } };
  288. var SYNC_API_RE =
  289. /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo/;
  290. var CONTEXT_API_RE = /^create|Manager$/;
  291. // Context例外情况
  292. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  293. // 同步例外情况
  294. var ASYNC_API = ['createBLEConnection'];
  295. var CALLBACK_API_RE = /^on|^off/;
  296. function isContextApi(name) {
  297. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  298. }
  299. function isSyncApi(name) {
  300. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  301. }
  302. function isCallbackApi(name) {
  303. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  304. }
  305. function handlePromise(promise) {
  306. return promise.then(function (data) {
  307. return [null, data];
  308. }).
  309. catch(function (err) {return [err];});
  310. }
  311. function shouldPromise(name) {
  312. if (
  313. isContextApi(name) ||
  314. isSyncApi(name) ||
  315. isCallbackApi(name))
  316. {
  317. return false;
  318. }
  319. return true;
  320. }
  321. /* eslint-disable no-extend-native */
  322. if (!Promise.prototype.finally) {
  323. Promise.prototype.finally = function (callback) {
  324. var promise = this.constructor;
  325. return this.then(
  326. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  327. function (reason) {return promise.resolve(callback()).then(function () {
  328. throw reason;
  329. });});
  330. };
  331. }
  332. function promisify(name, api) {
  333. if (!shouldPromise(name)) {
  334. return api;
  335. }
  336. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  337. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  338. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  339. }
  340. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  341. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  342. success: resolve,
  343. fail: reject })].concat(
  344. params));
  345. })));
  346. };
  347. }
  348. var EPS = 1e-4;
  349. var BASE_DEVICE_WIDTH = 750;
  350. var isIOS = false;
  351. var deviceWidth = 0;
  352. var deviceDPR = 0;
  353. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  354. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  355. deviceWidth = windowWidth;
  356. deviceDPR = pixelRatio;
  357. isIOS = platform === 'ios';
  358. }
  359. function upx2px(number, newDeviceWidth) {
  360. if (deviceWidth === 0) {
  361. checkDeviceWidth();
  362. }
  363. number = Number(number);
  364. if (number === 0) {
  365. return 0;
  366. }
  367. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  368. if (result < 0) {
  369. result = -result;
  370. }
  371. result = Math.floor(result + EPS);
  372. if (result === 0) {
  373. if (deviceDPR === 1 || !isIOS) {
  374. result = 1;
  375. } else {
  376. result = 0.5;
  377. }
  378. }
  379. return number < 0 ? -result : result;
  380. }
  381. var LOCALE_ZH_HANS = 'zh-Hans';
  382. var LOCALE_ZH_HANT = 'zh-Hant';
  383. var LOCALE_EN = 'en';
  384. var LOCALE_FR = 'fr';
  385. var LOCALE_ES = 'es';
  386. var messages = {};
  387. var locale;
  388. {
  389. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  390. }
  391. function initI18nMessages() {
  392. if (!isEnableLocale()) {
  393. return;
  394. }
  395. var localeKeys = Object.keys(__uniConfig.locales);
  396. if (localeKeys.length) {
  397. localeKeys.forEach(function (locale) {
  398. var curMessages = messages[locale];
  399. var userMessages = __uniConfig.locales[locale];
  400. if (curMessages) {
  401. Object.assign(curMessages, userMessages);
  402. } else {
  403. messages[locale] = userMessages;
  404. }
  405. });
  406. }
  407. }
  408. initI18nMessages();
  409. var i18n = (0, _uniI18n.initVueI18n)(
  410. locale,
  411. {});
  412. var t = i18n.t;
  413. var i18nMixin = i18n.mixin = {
  414. beforeCreate: function beforeCreate() {var _this = this;
  415. var unwatch = i18n.i18n.watchLocale(function () {
  416. _this.$forceUpdate();
  417. });
  418. this.$once('hook:beforeDestroy', function () {
  419. unwatch();
  420. });
  421. },
  422. methods: {
  423. $$t: function $$t(key, values) {
  424. return t(key, values);
  425. } } };
  426. var setLocale = i18n.setLocale;
  427. var getLocale = i18n.getLocale;
  428. function initAppLocale(Vue, appVm, locale) {
  429. var state = Vue.observable({
  430. locale: locale || i18n.getLocale() });
  431. var localeWatchers = [];
  432. appVm.$watchLocale = function (fn) {
  433. localeWatchers.push(fn);
  434. };
  435. Object.defineProperty(appVm, '$locale', {
  436. get: function get() {
  437. return state.locale;
  438. },
  439. set: function set(v) {
  440. state.locale = v;
  441. localeWatchers.forEach(function (watch) {return watch(v);});
  442. } });
  443. }
  444. function isEnableLocale() {
  445. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  446. }
  447. function include(str, parts) {
  448. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  449. }
  450. function startsWith(str, parts) {
  451. return parts.find(function (part) {return str.indexOf(part) === 0;});
  452. }
  453. function normalizeLocale(locale, messages) {
  454. if (!locale) {
  455. return;
  456. }
  457. locale = locale.trim().replace(/_/g, '-');
  458. if (messages && messages[locale]) {
  459. return locale;
  460. }
  461. locale = locale.toLowerCase();
  462. if (locale === 'chinese') {
  463. // 支付宝
  464. return LOCALE_ZH_HANS;
  465. }
  466. if (locale.indexOf('zh') === 0) {
  467. if (locale.indexOf('-hans') > -1) {
  468. return LOCALE_ZH_HANS;
  469. }
  470. if (locale.indexOf('-hant') > -1) {
  471. return LOCALE_ZH_HANT;
  472. }
  473. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  474. return LOCALE_ZH_HANT;
  475. }
  476. return LOCALE_ZH_HANS;
  477. }
  478. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  479. if (lang) {
  480. return lang;
  481. }
  482. }
  483. // export function initI18n() {
  484. // const localeKeys = Object.keys(__uniConfig.locales || {})
  485. // if (localeKeys.length) {
  486. // localeKeys.forEach((locale) =>
  487. // i18n.add(locale, __uniConfig.locales[locale])
  488. // )
  489. // }
  490. // }
  491. function getLocale$1() {
  492. // 优先使用 $locale
  493. var app = getApp({
  494. allowDefault: true });
  495. if (app && app.$vm) {
  496. return app.$vm.$locale;
  497. }
  498. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  499. }
  500. function setLocale$1(locale) {
  501. var app = getApp();
  502. if (!app) {
  503. return false;
  504. }
  505. var oldLocale = app.$vm.$locale;
  506. if (oldLocale !== locale) {
  507. app.$vm.$locale = locale;
  508. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  509. locale: locale });});
  510. return true;
  511. }
  512. return false;
  513. }
  514. var onLocaleChangeCallbacks = [];
  515. function onLocaleChange(fn) {
  516. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  517. onLocaleChangeCallbacks.push(fn);
  518. }
  519. }
  520. if (typeof global !== 'undefined') {
  521. global.getLocale = getLocale$1;
  522. }
  523. var interceptors = {
  524. promiseInterceptor: promiseInterceptor };
  525. var baseApi = /*#__PURE__*/Object.freeze({
  526. __proto__: null,
  527. upx2px: upx2px,
  528. getLocale: getLocale$1,
  529. setLocale: setLocale$1,
  530. onLocaleChange: onLocaleChange,
  531. addInterceptor: addInterceptor,
  532. removeInterceptor: removeInterceptor,
  533. interceptors: interceptors });
  534. function findExistsPageIndex(url) {
  535. var pages = getCurrentPages();
  536. var len = pages.length;
  537. while (len--) {
  538. var page = pages[len];
  539. if (page.$page && page.$page.fullPath === url) {
  540. return len;
  541. }
  542. }
  543. return -1;
  544. }
  545. var redirectTo = {
  546. name: function name(fromArgs) {
  547. if (fromArgs.exists === 'back' && fromArgs.delta) {
  548. return 'navigateBack';
  549. }
  550. return 'redirectTo';
  551. },
  552. args: function args(fromArgs) {
  553. if (fromArgs.exists === 'back' && fromArgs.url) {
  554. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  555. if (existsPageIndex !== -1) {
  556. var delta = getCurrentPages().length - 1 - existsPageIndex;
  557. if (delta > 0) {
  558. fromArgs.delta = delta;
  559. }
  560. }
  561. }
  562. } };
  563. var previewImage = {
  564. args: function args(fromArgs) {
  565. var currentIndex = parseInt(fromArgs.current);
  566. if (isNaN(currentIndex)) {
  567. return;
  568. }
  569. var urls = fromArgs.urls;
  570. if (!Array.isArray(urls)) {
  571. return;
  572. }
  573. var len = urls.length;
  574. if (!len) {
  575. return;
  576. }
  577. if (currentIndex < 0) {
  578. currentIndex = 0;
  579. } else if (currentIndex >= len) {
  580. currentIndex = len - 1;
  581. }
  582. if (currentIndex > 0) {
  583. fromArgs.current = urls[currentIndex];
  584. fromArgs.urls = urls.filter(
  585. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  586. } else {
  587. fromArgs.current = urls[0];
  588. }
  589. return {
  590. indicator: false,
  591. loop: false };
  592. } };
  593. var UUID_KEY = '__DC_STAT_UUID';
  594. var deviceId;
  595. function useDeviceId(result) {
  596. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  597. if (!deviceId) {
  598. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  599. wx.setStorage({
  600. key: UUID_KEY,
  601. data: deviceId });
  602. }
  603. result.deviceId = deviceId;
  604. }
  605. function addSafeAreaInsets(result) {
  606. if (result.safeArea) {
  607. var safeArea = result.safeArea;
  608. result.safeAreaInsets = {
  609. top: safeArea.top,
  610. left: safeArea.left,
  611. right: result.windowWidth - safeArea.right,
  612. bottom: result.screenHeight - safeArea.bottom };
  613. }
  614. }
  615. function populateParameters(result) {var _result$brand =
  616. result.brand,brand = _result$brand === void 0 ? '' : _result$brand,_result$model = result.model,model = _result$model === void 0 ? '' : _result$model,_result$system = result.system,system = _result$system === void 0 ? '' : _result$system,_result$language = result.language,language = _result$language === void 0 ? '' : _result$language,theme = result.theme,version = result.version,platform = result.platform,fontSizeSetting = result.fontSizeSetting,SDKVersion = result.SDKVersion,pixelRatio = result.pixelRatio,deviceOrientation = result.deviceOrientation;
  617. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  618. // osName osVersion
  619. var osName = '';
  620. var osVersion = '';
  621. {
  622. osName = system.split(' ')[0] || '';
  623. osVersion = system.split(' ')[1] || '';
  624. }
  625. var hostVersion = version;
  626. // deviceType
  627. var deviceType = getGetDeviceType(result, model);
  628. // deviceModel
  629. var deviceBrand = getDeviceBrand(brand);
  630. // hostName
  631. var _hostName = getHostName(result);
  632. // deviceOrientation
  633. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  634. // devicePixelRatio
  635. var _devicePixelRatio = pixelRatio;
  636. // SDKVersion
  637. var _SDKVersion = SDKVersion;
  638. // hostLanguage
  639. var hostLanguage = language.replace(/_/g, '-');
  640. // wx.getAccountInfoSync
  641. var parameters = {
  642. appId: "__UNI__474F381",
  643. appName: "随心购",
  644. appVersion: "1.3.3",
  645. appVersionCode: "133",
  646. appLanguage: getAppLanguage(hostLanguage),
  647. uniCompileVersion: "3.4.18",
  648. uniRuntimeVersion: "3.4.18",
  649. uniPlatform: undefined || "mp-weixin",
  650. deviceBrand: deviceBrand,
  651. deviceModel: model,
  652. deviceType: deviceType,
  653. devicePixelRatio: _devicePixelRatio,
  654. deviceOrientation: _deviceOrientation,
  655. osName: osName.toLocaleLowerCase(),
  656. osVersion: osVersion,
  657. hostTheme: theme,
  658. hostVersion: hostVersion,
  659. hostLanguage: hostLanguage,
  660. hostName: _hostName,
  661. hostSDKVersion: _SDKVersion,
  662. hostFontSizeSetting: fontSizeSetting,
  663. windowTop: 0,
  664. windowBottom: 0,
  665. // TODO
  666. osLanguage: undefined,
  667. osTheme: undefined,
  668. ua: undefined,
  669. hostPackageName: undefined,
  670. browserName: undefined,
  671. browserVersion: undefined };
  672. Object.assign(result, parameters);
  673. }
  674. function getGetDeviceType(result, model) {
  675. var deviceType = result.deviceType || 'phone';
  676. {
  677. var deviceTypeMaps = {
  678. ipad: 'pad',
  679. windows: 'pc',
  680. mac: 'pc' };
  681. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  682. var _model = model.toLocaleLowerCase();
  683. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  684. var _m = deviceTypeMapsKeys[index];
  685. if (_model.indexOf(_m) !== -1) {
  686. deviceType = deviceTypeMaps[_m];
  687. break;
  688. }
  689. }
  690. }
  691. return deviceType;
  692. }
  693. function getDeviceBrand(brand) {
  694. var deviceBrand = brand;
  695. if (deviceBrand) {
  696. deviceBrand = brand.toLocaleLowerCase();
  697. }
  698. return deviceBrand;
  699. }
  700. function getAppLanguage(defaultLanguage) {
  701. return getLocale$1 ?
  702. getLocale$1() :
  703. defaultLanguage;
  704. }
  705. function getHostName(result) {
  706. var _platform = 'WeChat';
  707. var _hostName = result.hostName || _platform; // mp-jd
  708. {
  709. if (result.environment) {
  710. _hostName = result.environment;
  711. } else if (result.host && result.host.env) {
  712. _hostName = result.host.env;
  713. }
  714. }
  715. return _hostName;
  716. }
  717. var getSystemInfo = {
  718. returnValue: function returnValue(result) {
  719. useDeviceId(result);
  720. addSafeAreaInsets(result);
  721. populateParameters(result);
  722. } };
  723. var showActionSheet = {
  724. args: function args(fromArgs) {
  725. if (typeof fromArgs === 'object') {
  726. fromArgs.alertText = fromArgs.title;
  727. }
  728. } };
  729. var getAppBaseInfo = {
  730. returnValue: function returnValue(result) {var _result =
  731. result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
  732. var _hostName = getHostName(result);
  733. var hostLanguage = language.replace('_', '-');
  734. result = sortObject(Object.assign(result, {
  735. appId: "__UNI__474F381",
  736. appName: "随心购",
  737. appVersion: "1.3.3",
  738. appVersionCode: "133",
  739. appLanguage: getAppLanguage(hostLanguage),
  740. hostVersion: version,
  741. hostLanguage: hostLanguage,
  742. hostName: _hostName,
  743. hostSDKVersion: SDKVersion,
  744. hostTheme: theme }));
  745. } };
  746. var getDeviceInfo = {
  747. returnValue: function returnValue(result) {var _result2 =
  748. result,brand = _result2.brand,model = _result2.model;
  749. var deviceType = getGetDeviceType(result, model);
  750. var deviceBrand = getDeviceBrand(brand);
  751. useDeviceId(result);
  752. result = sortObject(Object.assign(result, {
  753. deviceType: deviceType,
  754. deviceBrand: deviceBrand,
  755. deviceModel: model }));
  756. } };
  757. var getWindowInfo = {
  758. returnValue: function returnValue(result) {
  759. addSafeAreaInsets(result);
  760. result = sortObject(Object.assign(result, {
  761. windowTop: 0,
  762. windowBottom: 0 }));
  763. } };
  764. // import navigateTo from 'uni-helpers/navigate-to'
  765. var protocols = {
  766. redirectTo: redirectTo,
  767. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  768. previewImage: previewImage,
  769. getSystemInfo: getSystemInfo,
  770. getSystemInfoSync: getSystemInfo,
  771. showActionSheet: showActionSheet,
  772. getAppBaseInfo: getAppBaseInfo,
  773. getDeviceInfo: getDeviceInfo,
  774. getWindowInfo: getWindowInfo };
  775. var todos = [
  776. 'vibrate',
  777. 'preloadPage',
  778. 'unPreloadPage',
  779. 'loadSubPackage'];
  780. var canIUses = [];
  781. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  782. function processCallback(methodName, method, returnValue) {
  783. return function (res) {
  784. return method(processReturnValue(methodName, res, returnValue));
  785. };
  786. }
  787. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  788. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  789. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  790. if (isFn(argsOption)) {
  791. argsOption = argsOption(fromArgs, toArgs) || {};
  792. }
  793. for (var key in fromArgs) {
  794. if (hasOwn(argsOption, key)) {
  795. var keyOption = argsOption[key];
  796. if (isFn(keyOption)) {
  797. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  798. }
  799. if (!keyOption) {// 不支持的参数
  800. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  801. } else if (isStr(keyOption)) {// 重写参数 key
  802. toArgs[keyOption] = fromArgs[key];
  803. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  804. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  805. }
  806. } else if (CALLBACKS.indexOf(key) !== -1) {
  807. if (isFn(fromArgs[key])) {
  808. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  809. }
  810. } else {
  811. if (!keepFromArgs) {
  812. toArgs[key] = fromArgs[key];
  813. }
  814. }
  815. }
  816. return toArgs;
  817. } else if (isFn(fromArgs)) {
  818. fromArgs = processCallback(methodName, fromArgs, returnValue);
  819. }
  820. return fromArgs;
  821. }
  822. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  823. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  824. res = protocols.returnValue(methodName, res);
  825. }
  826. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  827. }
  828. function wrapper(methodName, method) {
  829. if (hasOwn(protocols, methodName)) {
  830. var protocol = protocols[methodName];
  831. if (!protocol) {// 暂不支持的 api
  832. return function () {
  833. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  834. };
  835. }
  836. return function (arg1, arg2) {// 目前 api 最多两个参数
  837. var options = protocol;
  838. if (isFn(protocol)) {
  839. options = protocol(arg1);
  840. }
  841. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  842. var args = [arg1];
  843. if (typeof arg2 !== 'undefined') {
  844. args.push(arg2);
  845. }
  846. if (isFn(options.name)) {
  847. methodName = options.name(arg1);
  848. } else if (isStr(options.name)) {
  849. methodName = options.name;
  850. }
  851. var returnValue = wx[methodName].apply(wx, args);
  852. if (isSyncApi(methodName)) {// 同步 api
  853. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  854. }
  855. return returnValue;
  856. };
  857. }
  858. return method;
  859. }
  860. var todoApis = Object.create(null);
  861. var TODOS = [
  862. 'onTabBarMidButtonTap',
  863. 'subscribePush',
  864. 'unsubscribePush',
  865. 'onPush',
  866. 'offPush',
  867. 'share'];
  868. function createTodoApi(name) {
  869. return function todoApi(_ref)
  870. {var fail = _ref.fail,complete = _ref.complete;
  871. var res = {
  872. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  873. isFn(fail) && fail(res);
  874. isFn(complete) && complete(res);
  875. };
  876. }
  877. TODOS.forEach(function (name) {
  878. todoApis[name] = createTodoApi(name);
  879. });
  880. var providers = {
  881. oauth: ['weixin'],
  882. share: ['weixin'],
  883. payment: ['wxpay'],
  884. push: ['weixin'] };
  885. function getProvider(_ref2)
  886. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  887. var res = false;
  888. if (providers[service]) {
  889. res = {
  890. errMsg: 'getProvider:ok',
  891. service: service,
  892. provider: providers[service] };
  893. isFn(success) && success(res);
  894. } else {
  895. res = {
  896. errMsg: 'getProvider:fail service not found' };
  897. isFn(fail) && fail(res);
  898. }
  899. isFn(complete) && complete(res);
  900. }
  901. var extraApi = /*#__PURE__*/Object.freeze({
  902. __proto__: null,
  903. getProvider: getProvider });
  904. var getEmitter = function () {
  905. var Emitter;
  906. return function getUniEmitter() {
  907. if (!Emitter) {
  908. Emitter = new _vue.default();
  909. }
  910. return Emitter;
  911. };
  912. }();
  913. function apply(ctx, method, args) {
  914. return ctx[method].apply(ctx, args);
  915. }
  916. function $on() {
  917. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  918. }
  919. function $off() {
  920. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  921. }
  922. function $once() {
  923. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  924. }
  925. function $emit() {
  926. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  927. }
  928. var eventApi = /*#__PURE__*/Object.freeze({
  929. __proto__: null,
  930. $on: $on,
  931. $off: $off,
  932. $once: $once,
  933. $emit: $emit });
  934. /**
  935. * 框架内 try-catch
  936. */
  937. /**
  938. * 开发者 try-catch
  939. */
  940. function tryCatch(fn) {
  941. return function () {
  942. try {
  943. return fn.apply(fn, arguments);
  944. } catch (e) {
  945. // TODO
  946. console.error(e);
  947. }
  948. };
  949. }
  950. function getApiCallbacks(params) {
  951. var apiCallbacks = {};
  952. for (var name in params) {
  953. var param = params[name];
  954. if (isFn(param)) {
  955. apiCallbacks[name] = tryCatch(param);
  956. delete params[name];
  957. }
  958. }
  959. return apiCallbacks;
  960. }
  961. var cid;
  962. var cidErrMsg;
  963. function normalizePushMessage(message) {
  964. try {
  965. return JSON.parse(message);
  966. } catch (e) {}
  967. return message;
  968. }
  969. function invokePushCallback(
  970. args)
  971. {
  972. if (args.type === 'clientId') {
  973. cid = args.cid;
  974. cidErrMsg = args.errMsg;
  975. invokeGetPushCidCallbacks(cid, args.errMsg);
  976. } else if (args.type === 'pushMsg') {
  977. onPushMessageCallbacks.forEach(function (callback) {
  978. callback({
  979. type: 'receive',
  980. data: normalizePushMessage(args.message) });
  981. });
  982. } else if (args.type === 'click') {
  983. onPushMessageCallbacks.forEach(function (callback) {
  984. callback({
  985. type: 'click',
  986. data: normalizePushMessage(args.message) });
  987. });
  988. }
  989. }
  990. var getPushCidCallbacks = [];
  991. function invokeGetPushCidCallbacks(cid, errMsg) {
  992. getPushCidCallbacks.forEach(function (callback) {
  993. callback(cid, errMsg);
  994. });
  995. getPushCidCallbacks.length = 0;
  996. }
  997. function getPushClientid(args) {
  998. if (!isPlainObject(args)) {
  999. args = {};
  1000. }var _getApiCallbacks =
  1001. getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
  1002. var hasSuccess = isFn(success);
  1003. var hasFail = isFn(fail);
  1004. var hasComplete = isFn(complete);
  1005. getPushCidCallbacks.push(function (cid, errMsg) {
  1006. var res;
  1007. if (cid) {
  1008. res = {
  1009. errMsg: 'getPushClientid:ok',
  1010. cid: cid };
  1011. hasSuccess && success(res);
  1012. } else {
  1013. res = {
  1014. errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') };
  1015. hasFail && fail(res);
  1016. }
  1017. hasComplete && complete(res);
  1018. });
  1019. if (typeof cid !== 'undefined') {
  1020. Promise.resolve().then(function () {return invokeGetPushCidCallbacks(cid, cidErrMsg);});
  1021. }
  1022. }
  1023. var onPushMessageCallbacks = [];
  1024. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1025. var onPushMessage = function onPushMessage(fn) {
  1026. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1027. onPushMessageCallbacks.push(fn);
  1028. }
  1029. };
  1030. var offPushMessage = function offPushMessage(fn) {
  1031. if (!fn) {
  1032. onPushMessageCallbacks.length = 0;
  1033. } else {
  1034. var index = onPushMessageCallbacks.indexOf(fn);
  1035. if (index > -1) {
  1036. onPushMessageCallbacks.splice(index, 1);
  1037. }
  1038. }
  1039. };
  1040. var api = /*#__PURE__*/Object.freeze({
  1041. __proto__: null,
  1042. getPushClientid: getPushClientid,
  1043. onPushMessage: onPushMessage,
  1044. offPushMessage: offPushMessage,
  1045. invokePushCallback: invokePushCallback });
  1046. var MPPage = Page;
  1047. var MPComponent = Component;
  1048. var customizeRE = /:/g;
  1049. var customize = cached(function (str) {
  1050. return camelize(str.replace(customizeRE, '-'));
  1051. });
  1052. function initTriggerEvent(mpInstance) {
  1053. var oldTriggerEvent = mpInstance.triggerEvent;
  1054. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  1055. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  1056. };
  1057. try {
  1058. // 京东小程序 triggerEvent 为只读
  1059. mpInstance.triggerEvent = newTriggerEvent;
  1060. } catch (error) {
  1061. mpInstance._triggerEvent = newTriggerEvent;
  1062. }
  1063. }
  1064. function initHook(name, options, isComponent) {
  1065. var oldHook = options[name];
  1066. if (!oldHook) {
  1067. options[name] = function () {
  1068. initTriggerEvent(this);
  1069. };
  1070. } else {
  1071. options[name] = function () {
  1072. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  1073. return oldHook.apply(this, args);
  1074. };
  1075. }
  1076. }
  1077. if (!MPPage.__$wrappered) {
  1078. MPPage.__$wrappered = true;
  1079. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1080. initHook('onLoad', options);
  1081. return MPPage(options);
  1082. };
  1083. Page.after = MPPage.after;
  1084. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1085. initHook('created', options);
  1086. return MPComponent(options);
  1087. };
  1088. }
  1089. var PAGE_EVENT_HOOKS = [
  1090. 'onPullDownRefresh',
  1091. 'onReachBottom',
  1092. 'onAddToFavorites',
  1093. 'onShareTimeline',
  1094. 'onShareAppMessage',
  1095. 'onPageScroll',
  1096. 'onResize',
  1097. 'onTabItemTap'];
  1098. function initMocks(vm, mocks) {
  1099. var mpInstance = vm.$mp[vm.mpType];
  1100. mocks.forEach(function (mock) {
  1101. if (hasOwn(mpInstance, mock)) {
  1102. vm[mock] = mpInstance[mock];
  1103. }
  1104. });
  1105. }
  1106. function hasHook(hook, vueOptions) {
  1107. if (!vueOptions) {
  1108. return true;
  1109. }
  1110. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1111. return true;
  1112. }
  1113. vueOptions = vueOptions.default || vueOptions;
  1114. if (isFn(vueOptions)) {
  1115. if (isFn(vueOptions.extendOptions[hook])) {
  1116. return true;
  1117. }
  1118. if (vueOptions.super &&
  1119. vueOptions.super.options &&
  1120. Array.isArray(vueOptions.super.options[hook])) {
  1121. return true;
  1122. }
  1123. return false;
  1124. }
  1125. if (isFn(vueOptions[hook])) {
  1126. return true;
  1127. }
  1128. var mixins = vueOptions.mixins;
  1129. if (Array.isArray(mixins)) {
  1130. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  1131. }
  1132. }
  1133. function initHooks(mpOptions, hooks, vueOptions) {
  1134. hooks.forEach(function (hook) {
  1135. if (hasHook(hook, vueOptions)) {
  1136. mpOptions[hook] = function (args) {
  1137. return this.$vm && this.$vm.__call_hook(hook, args);
  1138. };
  1139. }
  1140. });
  1141. }
  1142. function initVueComponent(Vue, vueOptions) {
  1143. vueOptions = vueOptions.default || vueOptions;
  1144. var VueComponent;
  1145. if (isFn(vueOptions)) {
  1146. VueComponent = vueOptions;
  1147. } else {
  1148. VueComponent = Vue.extend(vueOptions);
  1149. }
  1150. vueOptions = VueComponent.options;
  1151. return [VueComponent, vueOptions];
  1152. }
  1153. function initSlots(vm, vueSlots) {
  1154. if (Array.isArray(vueSlots) && vueSlots.length) {
  1155. var $slots = Object.create(null);
  1156. vueSlots.forEach(function (slotName) {
  1157. $slots[slotName] = true;
  1158. });
  1159. vm.$scopedSlots = vm.$slots = $slots;
  1160. }
  1161. }
  1162. function initVueIds(vueIds, mpInstance) {
  1163. vueIds = (vueIds || '').split(',');
  1164. var len = vueIds.length;
  1165. if (len === 1) {
  1166. mpInstance._$vueId = vueIds[0];
  1167. } else if (len === 2) {
  1168. mpInstance._$vueId = vueIds[0];
  1169. mpInstance._$vuePid = vueIds[1];
  1170. }
  1171. }
  1172. function initData(vueOptions, context) {
  1173. var data = vueOptions.data || {};
  1174. var methods = vueOptions.methods || {};
  1175. if (typeof data === 'function') {
  1176. try {
  1177. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1178. } catch (e) {
  1179. if (Object({"VUE_APP_NAME":"随心购","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1180. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1181. }
  1182. }
  1183. } else {
  1184. try {
  1185. // 对 data 格式化
  1186. data = JSON.parse(JSON.stringify(data));
  1187. } catch (e) {}
  1188. }
  1189. if (!isPlainObject(data)) {
  1190. data = {};
  1191. }
  1192. Object.keys(methods).forEach(function (methodName) {
  1193. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1194. data[methodName] = methods[methodName];
  1195. }
  1196. });
  1197. return data;
  1198. }
  1199. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1200. function createObserver(name) {
  1201. return function observer(newVal, oldVal) {
  1202. if (this.$vm) {
  1203. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1204. }
  1205. };
  1206. }
  1207. function initBehaviors(vueOptions, initBehavior) {
  1208. var vueBehaviors = vueOptions.behaviors;
  1209. var vueExtends = vueOptions.extends;
  1210. var vueMixins = vueOptions.mixins;
  1211. var vueProps = vueOptions.props;
  1212. if (!vueProps) {
  1213. vueOptions.props = vueProps = [];
  1214. }
  1215. var behaviors = [];
  1216. if (Array.isArray(vueBehaviors)) {
  1217. vueBehaviors.forEach(function (behavior) {
  1218. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1219. if (behavior === 'uni://form-field') {
  1220. if (Array.isArray(vueProps)) {
  1221. vueProps.push('name');
  1222. vueProps.push('value');
  1223. } else {
  1224. vueProps.name = {
  1225. type: String,
  1226. default: '' };
  1227. vueProps.value = {
  1228. type: [String, Number, Boolean, Array, Object, Date],
  1229. default: '' };
  1230. }
  1231. }
  1232. });
  1233. }
  1234. if (isPlainObject(vueExtends) && vueExtends.props) {
  1235. behaviors.push(
  1236. initBehavior({
  1237. properties: initProperties(vueExtends.props, true) }));
  1238. }
  1239. if (Array.isArray(vueMixins)) {
  1240. vueMixins.forEach(function (vueMixin) {
  1241. if (isPlainObject(vueMixin) && vueMixin.props) {
  1242. behaviors.push(
  1243. initBehavior({
  1244. properties: initProperties(vueMixin.props, true) }));
  1245. }
  1246. });
  1247. }
  1248. return behaviors;
  1249. }
  1250. function parsePropType(key, type, defaultValue, file) {
  1251. // [String]=>String
  1252. if (Array.isArray(type) && type.length === 1) {
  1253. return type[0];
  1254. }
  1255. return type;
  1256. }
  1257. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1258. var properties = {};
  1259. if (!isBehavior) {
  1260. properties.vueId = {
  1261. type: String,
  1262. value: '' };
  1263. // 用于字节跳动小程序模拟抽象节点
  1264. properties.generic = {
  1265. type: Object,
  1266. value: null };
  1267. // scopedSlotsCompiler auto
  1268. properties.scopedSlotsCompiler = {
  1269. type: String,
  1270. value: '' };
  1271. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1272. type: null,
  1273. value: [],
  1274. observer: function observer(newVal, oldVal) {
  1275. var $slots = Object.create(null);
  1276. newVal.forEach(function (slotName) {
  1277. $slots[slotName] = true;
  1278. });
  1279. this.setData({
  1280. $slots: $slots });
  1281. } };
  1282. }
  1283. if (Array.isArray(props)) {// ['title']
  1284. props.forEach(function (key) {
  1285. properties[key] = {
  1286. type: null,
  1287. observer: createObserver(key) };
  1288. });
  1289. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  1290. Object.keys(props).forEach(function (key) {
  1291. var opts = props[key];
  1292. if (isPlainObject(opts)) {// title:{type:String,default:''}
  1293. var value = opts.default;
  1294. if (isFn(value)) {
  1295. value = value();
  1296. }
  1297. opts.type = parsePropType(key, opts.type);
  1298. properties[key] = {
  1299. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1300. value: value,
  1301. observer: createObserver(key) };
  1302. } else {// content:String
  1303. var type = parsePropType(key, opts);
  1304. properties[key] = {
  1305. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1306. observer: createObserver(key) };
  1307. }
  1308. });
  1309. }
  1310. return properties;
  1311. }
  1312. function wrapper$1(event) {
  1313. // TODO 又得兼容 mpvue 的 mp 对象
  1314. try {
  1315. event.mp = JSON.parse(JSON.stringify(event));
  1316. } catch (e) {}
  1317. event.stopPropagation = noop;
  1318. event.preventDefault = noop;
  1319. event.target = event.target || {};
  1320. if (!hasOwn(event, 'detail')) {
  1321. event.detail = {};
  1322. }
  1323. if (hasOwn(event, 'markerId')) {
  1324. event.detail = typeof event.detail === 'object' ? event.detail : {};
  1325. event.detail.markerId = event.markerId;
  1326. }
  1327. if (isPlainObject(event.detail)) {
  1328. event.target = Object.assign({}, event.target, event.detail);
  1329. }
  1330. return event;
  1331. }
  1332. function getExtraValue(vm, dataPathsArray) {
  1333. var context = vm;
  1334. dataPathsArray.forEach(function (dataPathArray) {
  1335. var dataPath = dataPathArray[0];
  1336. var value = dataPathArray[2];
  1337. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  1338. var propPath = dataPathArray[1];
  1339. var valuePath = dataPathArray[3];
  1340. var vFor;
  1341. if (Number.isInteger(dataPath)) {
  1342. vFor = dataPath;
  1343. } else if (!dataPath) {
  1344. vFor = context;
  1345. } else if (typeof dataPath === 'string' && dataPath) {
  1346. if (dataPath.indexOf('#s#') === 0) {
  1347. vFor = dataPath.substr(3);
  1348. } else {
  1349. vFor = vm.__get_value(dataPath, context);
  1350. }
  1351. }
  1352. if (Number.isInteger(vFor)) {
  1353. context = value;
  1354. } else if (!propPath) {
  1355. context = vFor[value];
  1356. } else {
  1357. if (Array.isArray(vFor)) {
  1358. context = vFor.find(function (vForItem) {
  1359. return vm.__get_value(propPath, vForItem) === value;
  1360. });
  1361. } else if (isPlainObject(vFor)) {
  1362. context = Object.keys(vFor).find(function (vForKey) {
  1363. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1364. });
  1365. } else {
  1366. console.error('v-for 暂不支持循环数据:', vFor);
  1367. }
  1368. }
  1369. if (valuePath) {
  1370. context = vm.__get_value(valuePath, context);
  1371. }
  1372. }
  1373. });
  1374. return context;
  1375. }
  1376. function processEventExtra(vm, extra, event) {
  1377. var extraObj = {};
  1378. if (Array.isArray(extra) && extra.length) {
  1379. /**
  1380. *[
  1381. * ['data.items', 'data.id', item.data.id],
  1382. * ['metas', 'id', meta.id]
  1383. *],
  1384. *[
  1385. * ['data.items', 'data.id', item.data.id],
  1386. * ['metas', 'id', meta.id]
  1387. *],
  1388. *'test'
  1389. */
  1390. extra.forEach(function (dataPath, index) {
  1391. if (typeof dataPath === 'string') {
  1392. if (!dataPath) {// model,prop.sync
  1393. extraObj['$' + index] = vm;
  1394. } else {
  1395. if (dataPath === '$event') {// $event
  1396. extraObj['$' + index] = event;
  1397. } else if (dataPath === 'arguments') {
  1398. if (event.detail && event.detail.__args__) {
  1399. extraObj['$' + index] = event.detail.__args__;
  1400. } else {
  1401. extraObj['$' + index] = [event];
  1402. }
  1403. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1404. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1405. } else {
  1406. extraObj['$' + index] = vm.__get_value(dataPath);
  1407. }
  1408. }
  1409. } else {
  1410. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1411. }
  1412. });
  1413. }
  1414. return extraObj;
  1415. }
  1416. function getObjByArray(arr) {
  1417. var obj = {};
  1418. for (var i = 1; i < arr.length; i++) {
  1419. var element = arr[i];
  1420. obj[element[0]] = element[1];
  1421. }
  1422. return obj;
  1423. }
  1424. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1425. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1426. if (isCustom) {// 自定义事件
  1427. isCustomMPEvent = event.currentTarget &&
  1428. event.currentTarget.dataset &&
  1429. event.currentTarget.dataset.comType === 'wx';
  1430. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1431. if (isCustomMPEvent) {
  1432. return [event];
  1433. }
  1434. return event.detail.__args__ || event.detail;
  1435. }
  1436. }
  1437. var extraObj = processEventExtra(vm, extra, event);
  1438. var ret = [];
  1439. args.forEach(function (arg) {
  1440. if (arg === '$event') {
  1441. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1442. ret.push(event.target.value);
  1443. } else {
  1444. if (isCustom && !isCustomMPEvent) {
  1445. ret.push(event.detail.__args__[0]);
  1446. } else {// wxcomponent 组件或内置组件
  1447. ret.push(event);
  1448. }
  1449. }
  1450. } else {
  1451. if (Array.isArray(arg) && arg[0] === 'o') {
  1452. ret.push(getObjByArray(arg));
  1453. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1454. ret.push(extraObj[arg]);
  1455. } else {
  1456. ret.push(arg);
  1457. }
  1458. }
  1459. });
  1460. return ret;
  1461. }
  1462. var ONCE = '~';
  1463. var CUSTOM = '^';
  1464. function isMatchEventType(eventType, optType) {
  1465. return eventType === optType ||
  1466. optType === 'regionchange' && (
  1467. eventType === 'begin' ||
  1468. eventType === 'end');
  1469. }
  1470. function getContextVm(vm) {
  1471. var $parent = vm.$parent;
  1472. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1473. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1474. $parent = $parent.$parent;
  1475. }
  1476. return $parent && $parent.$parent;
  1477. }
  1478. function handleEvent(event) {var _this2 = this;
  1479. event = wrapper$1(event);
  1480. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1481. var dataset = (event.currentTarget || event.target).dataset;
  1482. if (!dataset) {
  1483. return console.warn('事件信息不存在');
  1484. }
  1485. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1486. if (!eventOpts) {
  1487. return console.warn('事件信息不存在');
  1488. }
  1489. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1490. var eventType = event.type;
  1491. var ret = [];
  1492. eventOpts.forEach(function (eventOpt) {
  1493. var type = eventOpt[0];
  1494. var eventsArray = eventOpt[1];
  1495. var isCustom = type.charAt(0) === CUSTOM;
  1496. type = isCustom ? type.slice(1) : type;
  1497. var isOnce = type.charAt(0) === ONCE;
  1498. type = isOnce ? type.slice(1) : type;
  1499. if (eventsArray && isMatchEventType(eventType, type)) {
  1500. eventsArray.forEach(function (eventArray) {
  1501. var methodName = eventArray[0];
  1502. if (methodName) {
  1503. var handlerCtx = _this2.$vm;
  1504. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1505. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1506. }
  1507. if (methodName === '$emit') {
  1508. handlerCtx.$emit.apply(handlerCtx,
  1509. processEventArgs(
  1510. _this2.$vm,
  1511. event,
  1512. eventArray[1],
  1513. eventArray[2],
  1514. isCustom,
  1515. methodName));
  1516. return;
  1517. }
  1518. var handler = handlerCtx[methodName];
  1519. if (!isFn(handler)) {
  1520. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1521. }
  1522. if (isOnce) {
  1523. if (handler.once) {
  1524. return;
  1525. }
  1526. handler.once = true;
  1527. }
  1528. var params = processEventArgs(
  1529. _this2.$vm,
  1530. event,
  1531. eventArray[1],
  1532. eventArray[2],
  1533. isCustom,
  1534. methodName);
  1535. params = Array.isArray(params) ? params : [];
  1536. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1537. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1538. // eslint-disable-next-line no-sparse-arrays
  1539. params = params.concat([,,,,,,,,,, event]);
  1540. }
  1541. ret.push(handler.apply(handlerCtx, params));
  1542. }
  1543. });
  1544. }
  1545. });
  1546. if (
  1547. eventType === 'input' &&
  1548. ret.length === 1 &&
  1549. typeof ret[0] !== 'undefined')
  1550. {
  1551. return ret[0];
  1552. }
  1553. }
  1554. var eventChannels = {};
  1555. var eventChannelStack = [];
  1556. function getEventChannel(id) {
  1557. if (id) {
  1558. var eventChannel = eventChannels[id];
  1559. delete eventChannels[id];
  1560. return eventChannel;
  1561. }
  1562. return eventChannelStack.shift();
  1563. }
  1564. var hooks = [
  1565. 'onShow',
  1566. 'onHide',
  1567. 'onError',
  1568. 'onPageNotFound',
  1569. 'onThemeChange',
  1570. 'onUnhandledRejection'];
  1571. function initEventChannel() {
  1572. _vue.default.prototype.getOpenerEventChannel = function () {
  1573. // 微信小程序使用自身getOpenerEventChannel
  1574. {
  1575. return this.$scope.getOpenerEventChannel();
  1576. }
  1577. };
  1578. var callHook = _vue.default.prototype.__call_hook;
  1579. _vue.default.prototype.__call_hook = function (hook, args) {
  1580. if (hook === 'onLoad' && args && args.__id__) {
  1581. this.__eventChannel__ = getEventChannel(args.__id__);
  1582. delete args.__id__;
  1583. }
  1584. return callHook.call(this, hook, args);
  1585. };
  1586. }
  1587. function initScopedSlotsParams() {
  1588. var center = {};
  1589. var parents = {};
  1590. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1591. var has = center[vueId];
  1592. if (!has) {
  1593. parents[vueId] = this;
  1594. this.$on('hook:destroyed', function () {
  1595. delete parents[vueId];
  1596. });
  1597. }
  1598. return has;
  1599. };
  1600. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1601. var data = center[vueId];
  1602. if (data) {
  1603. var object = data[name] || {};
  1604. return key ? object[key] : object;
  1605. } else {
  1606. parents[vueId] = this;
  1607. this.$on('hook:destroyed', function () {
  1608. delete parents[vueId];
  1609. });
  1610. }
  1611. };
  1612. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1613. var vueIds = this.$options.propsData.vueId;
  1614. if (vueIds) {
  1615. var vueId = vueIds.split(',')[0];
  1616. var object = center[vueId] = center[vueId] || {};
  1617. object[name] = value;
  1618. if (parents[vueId]) {
  1619. parents[vueId].$forceUpdate();
  1620. }
  1621. }
  1622. };
  1623. _vue.default.mixin({
  1624. destroyed: function destroyed() {
  1625. var propsData = this.$options.propsData;
  1626. var vueId = propsData && propsData.vueId;
  1627. if (vueId) {
  1628. delete center[vueId];
  1629. delete parents[vueId];
  1630. }
  1631. } });
  1632. }
  1633. function parseBaseApp(vm, _ref3)
  1634. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1635. initEventChannel();
  1636. {
  1637. initScopedSlotsParams();
  1638. }
  1639. if (vm.$options.store) {
  1640. _vue.default.prototype.$store = vm.$options.store;
  1641. }
  1642. uniIdMixin(_vue.default);
  1643. _vue.default.prototype.mpHost = "mp-weixin";
  1644. _vue.default.mixin({
  1645. beforeCreate: function beforeCreate() {
  1646. if (!this.$options.mpType) {
  1647. return;
  1648. }
  1649. this.mpType = this.$options.mpType;
  1650. this.$mp = _defineProperty({
  1651. data: {} },
  1652. this.mpType, this.$options.mpInstance);
  1653. this.$scope = this.$options.mpInstance;
  1654. delete this.$options.mpType;
  1655. delete this.$options.mpInstance;
  1656. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1657. var app = getApp();
  1658. if (app.$vm && app.$vm.$i18n) {
  1659. this._i18n = app.$vm.$i18n;
  1660. }
  1661. }
  1662. if (this.mpType !== 'app') {
  1663. initRefs(this);
  1664. initMocks(this, mocks);
  1665. }
  1666. } });
  1667. var appOptions = {
  1668. onLaunch: function onLaunch(args) {
  1669. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1670. return;
  1671. }
  1672. {
  1673. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1674. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1675. }
  1676. }
  1677. this.$vm = vm;
  1678. this.$vm.$mp = {
  1679. app: this };
  1680. this.$vm.$scope = this;
  1681. // vm 上也挂载 globalData
  1682. this.$vm.globalData = this.globalData;
  1683. this.$vm._isMounted = true;
  1684. this.$vm.__call_hook('mounted', args);
  1685. this.$vm.__call_hook('onLaunch', args);
  1686. } };
  1687. // 兼容旧版本 globalData
  1688. appOptions.globalData = vm.$options.globalData || {};
  1689. // 将 methods 中的方法挂在 getApp() 中
  1690. var methods = vm.$options.methods;
  1691. if (methods) {
  1692. Object.keys(methods).forEach(function (name) {
  1693. appOptions[name] = methods[name];
  1694. });
  1695. }
  1696. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  1697. initHooks(appOptions, hooks);
  1698. return appOptions;
  1699. }
  1700. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1701. function findVmByVueId(vm, vuePid) {
  1702. var $children = vm.$children;
  1703. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1704. for (var i = $children.length - 1; i >= 0; i--) {
  1705. var childVm = $children[i];
  1706. if (childVm.$scope._$vueId === vuePid) {
  1707. return childVm;
  1708. }
  1709. }
  1710. // 反向递归查找
  1711. var parentVm;
  1712. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1713. parentVm = findVmByVueId($children[_i], vuePid);
  1714. if (parentVm) {
  1715. return parentVm;
  1716. }
  1717. }
  1718. }
  1719. function initBehavior(options) {
  1720. return Behavior(options);
  1721. }
  1722. function isPage() {
  1723. return !!this.route;
  1724. }
  1725. function initRelation(detail) {
  1726. this.triggerEvent('__l', detail);
  1727. }
  1728. function selectAllComponents(mpInstance, selector, $refs) {
  1729. var components = mpInstance.selectAllComponents(selector);
  1730. components.forEach(function (component) {
  1731. var ref = component.dataset.ref;
  1732. $refs[ref] = component.$vm || component;
  1733. {
  1734. if (component.dataset.vueGeneric === 'scoped') {
  1735. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1736. selectAllComponents(scopedComponent, selector, $refs);
  1737. });
  1738. }
  1739. }
  1740. });
  1741. }
  1742. function initRefs(vm) {
  1743. var mpInstance = vm.$scope;
  1744. Object.defineProperty(vm, '$refs', {
  1745. get: function get() {
  1746. var $refs = {};
  1747. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1748. // TODO 暂不考虑 for 中的 scoped
  1749. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1750. forComponents.forEach(function (component) {
  1751. var ref = component.dataset.ref;
  1752. if (!$refs[ref]) {
  1753. $refs[ref] = [];
  1754. }
  1755. $refs[ref].push(component.$vm || component);
  1756. });
  1757. return $refs;
  1758. } });
  1759. }
  1760. function handleLink(event) {var _ref4 =
  1761. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1762. var parentVm;
  1763. if (vuePid) {
  1764. parentVm = findVmByVueId(this.$vm, vuePid);
  1765. }
  1766. if (!parentVm) {
  1767. parentVm = this.$vm;
  1768. }
  1769. vueOptions.parent = parentVm;
  1770. }
  1771. function parseApp(vm) {
  1772. return parseBaseApp(vm, {
  1773. mocks: mocks,
  1774. initRefs: initRefs });
  1775. }
  1776. function createApp(vm) {
  1777. App(parseApp(vm));
  1778. return vm;
  1779. }
  1780. var encodeReserveRE = /[!'()*]/g;
  1781. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1782. var commaRE = /%2C/g;
  1783. // fixed encodeURIComponent which is more conformant to RFC3986:
  1784. // - escapes [!'()*]
  1785. // - preserve commas
  1786. var encode = function encode(str) {return encodeURIComponent(str).
  1787. replace(encodeReserveRE, encodeReserveReplacer).
  1788. replace(commaRE, ',');};
  1789. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1790. var res = obj ? Object.keys(obj).map(function (key) {
  1791. var val = obj[key];
  1792. if (val === undefined) {
  1793. return '';
  1794. }
  1795. if (val === null) {
  1796. return encodeStr(key);
  1797. }
  1798. if (Array.isArray(val)) {
  1799. var result = [];
  1800. val.forEach(function (val2) {
  1801. if (val2 === undefined) {
  1802. return;
  1803. }
  1804. if (val2 === null) {
  1805. result.push(encodeStr(key));
  1806. } else {
  1807. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1808. }
  1809. });
  1810. return result.join('&');
  1811. }
  1812. return encodeStr(key) + '=' + encodeStr(val);
  1813. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1814. return res ? "?".concat(res) : '';
  1815. }
  1816. function parseBaseComponent(vueComponentOptions)
  1817. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1818. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1819. var options = _objectSpread({
  1820. multipleSlots: true,
  1821. addGlobalClass: true },
  1822. vueOptions.options || {});
  1823. {
  1824. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1825. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1826. Object.assign(options, vueOptions['mp-weixin'].options);
  1827. }
  1828. }
  1829. var componentOptions = {
  1830. options: options,
  1831. data: initData(vueOptions, _vue.default.prototype),
  1832. behaviors: initBehaviors(vueOptions, initBehavior),
  1833. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1834. lifetimes: {
  1835. attached: function attached() {
  1836. var properties = this.properties;
  1837. var options = {
  1838. mpType: isPage.call(this) ? 'page' : 'component',
  1839. mpInstance: this,
  1840. propsData: properties };
  1841. initVueIds(properties.vueId, this);
  1842. // 处理父子关系
  1843. initRelation.call(this, {
  1844. vuePid: this._$vuePid,
  1845. vueOptions: options });
  1846. // 初始化 vue 实例
  1847. this.$vm = new VueComponent(options);
  1848. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1849. initSlots(this.$vm, properties.vueSlots);
  1850. // 触发首次 setData
  1851. this.$vm.$mount();
  1852. },
  1853. ready: function ready() {
  1854. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1855. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1856. if (this.$vm) {
  1857. this.$vm._isMounted = true;
  1858. this.$vm.__call_hook('mounted');
  1859. this.$vm.__call_hook('onReady');
  1860. }
  1861. },
  1862. detached: function detached() {
  1863. this.$vm && this.$vm.$destroy();
  1864. } },
  1865. pageLifetimes: {
  1866. show: function show(args) {
  1867. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1868. },
  1869. hide: function hide() {
  1870. this.$vm && this.$vm.__call_hook('onPageHide');
  1871. },
  1872. resize: function resize(size) {
  1873. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1874. } },
  1875. methods: {
  1876. __l: handleLink,
  1877. __e: handleEvent } };
  1878. // externalClasses
  1879. if (vueOptions.externalClasses) {
  1880. componentOptions.externalClasses = vueOptions.externalClasses;
  1881. }
  1882. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1883. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1884. componentOptions.methods[callMethod] = function (args) {
  1885. return this.$vm[callMethod](args);
  1886. };
  1887. });
  1888. }
  1889. if (isPage) {
  1890. return componentOptions;
  1891. }
  1892. return [componentOptions, VueComponent];
  1893. }
  1894. function parseComponent(vueComponentOptions) {
  1895. return parseBaseComponent(vueComponentOptions, {
  1896. isPage: isPage,
  1897. initRelation: initRelation });
  1898. }
  1899. var hooks$1 = [
  1900. 'onShow',
  1901. 'onHide',
  1902. 'onUnload'];
  1903. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1904. function parseBasePage(vuePageOptions, _ref6)
  1905. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1906. var pageOptions = parseComponent(vuePageOptions);
  1907. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1908. pageOptions.methods.onLoad = function (query) {
  1909. this.options = query;
  1910. var copyQuery = Object.assign({}, query);
  1911. delete copyQuery.__id__;
  1912. this.$page = {
  1913. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1914. this.$vm.$mp.query = query; // 兼容 mpvue
  1915. this.$vm.__call_hook('onLoad', query);
  1916. };
  1917. return pageOptions;
  1918. }
  1919. function parsePage(vuePageOptions) {
  1920. return parseBasePage(vuePageOptions, {
  1921. isPage: isPage,
  1922. initRelation: initRelation });
  1923. }
  1924. function createPage(vuePageOptions) {
  1925. {
  1926. return Component(parsePage(vuePageOptions));
  1927. }
  1928. }
  1929. function createComponent(vueOptions) {
  1930. {
  1931. return Component(parseComponent(vueOptions));
  1932. }
  1933. }
  1934. function createSubpackageApp(vm) {
  1935. var appOptions = parseApp(vm);
  1936. var app = getApp({
  1937. allowDefault: true });
  1938. vm.$scope = app;
  1939. var globalData = app.globalData;
  1940. if (globalData) {
  1941. Object.keys(appOptions.globalData).forEach(function (name) {
  1942. if (!hasOwn(globalData, name)) {
  1943. globalData[name] = appOptions.globalData[name];
  1944. }
  1945. });
  1946. }
  1947. Object.keys(appOptions).forEach(function (name) {
  1948. if (!hasOwn(app, name)) {
  1949. app[name] = appOptions[name];
  1950. }
  1951. });
  1952. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1953. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1954. vm.__call_hook('onShow', args);
  1955. });
  1956. }
  1957. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1958. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1959. vm.__call_hook('onHide', args);
  1960. });
  1961. }
  1962. if (isFn(appOptions.onLaunch)) {
  1963. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1964. vm.__call_hook('onLaunch', args);
  1965. }
  1966. return vm;
  1967. }
  1968. function createPlugin(vm) {
  1969. var appOptions = parseApp(vm);
  1970. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1971. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1972. vm.__call_hook('onShow', args);
  1973. });
  1974. }
  1975. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1976. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1977. vm.__call_hook('onHide', args);
  1978. });
  1979. }
  1980. if (isFn(appOptions.onLaunch)) {
  1981. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1982. vm.__call_hook('onLaunch', args);
  1983. }
  1984. return vm;
  1985. }
  1986. todos.forEach(function (todoApi) {
  1987. protocols[todoApi] = false;
  1988. });
  1989. canIUses.forEach(function (canIUseApi) {
  1990. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1991. canIUseApi;
  1992. if (!wx.canIUse(apiName)) {
  1993. protocols[canIUseApi] = false;
  1994. }
  1995. });
  1996. var uni = {};
  1997. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1998. uni = new Proxy({}, {
  1999. get: function get(target, name) {
  2000. if (hasOwn(target, name)) {
  2001. return target[name];
  2002. }
  2003. if (baseApi[name]) {
  2004. return baseApi[name];
  2005. }
  2006. if (api[name]) {
  2007. return promisify(name, api[name]);
  2008. }
  2009. {
  2010. if (extraApi[name]) {
  2011. return promisify(name, extraApi[name]);
  2012. }
  2013. if (todoApis[name]) {
  2014. return promisify(name, todoApis[name]);
  2015. }
  2016. }
  2017. if (eventApi[name]) {
  2018. return eventApi[name];
  2019. }
  2020. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  2021. return;
  2022. }
  2023. return promisify(name, wrapper(name, wx[name]));
  2024. },
  2025. set: function set(target, name, value) {
  2026. target[name] = value;
  2027. return true;
  2028. } });
  2029. } else {
  2030. Object.keys(baseApi).forEach(function (name) {
  2031. uni[name] = baseApi[name];
  2032. });
  2033. {
  2034. Object.keys(todoApis).forEach(function (name) {
  2035. uni[name] = promisify(name, todoApis[name]);
  2036. });
  2037. Object.keys(extraApi).forEach(function (name) {
  2038. uni[name] = promisify(name, todoApis[name]);
  2039. });
  2040. }
  2041. Object.keys(eventApi).forEach(function (name) {
  2042. uni[name] = eventApi[name];
  2043. });
  2044. Object.keys(api).forEach(function (name) {
  2045. uni[name] = promisify(name, api[name]);
  2046. });
  2047. Object.keys(wx).forEach(function (name) {
  2048. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2049. uni[name] = promisify(name, wrapper(name, wx[name]));
  2050. }
  2051. });
  2052. }
  2053. wx.createApp = createApp;
  2054. wx.createPage = createPage;
  2055. wx.createComponent = createComponent;
  2056. wx.createSubpackageApp = createSubpackageApp;
  2057. wx.createPlugin = createPlugin;
  2058. var uni$1 = uni;var _default =
  2059. uni$1;exports.default = _default;
  2060. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2061. /***/ }),
  2062. /***/ 109:
  2063. /*!**********************************************!*\
  2064. !*** D:/2022/7/hqshop/api/functionalUnit.js ***!
  2065. \**********************************************/
  2066. /*! no static exports found */
  2067. /***/ (function(module, exports, __webpack_require__) {
  2068. "use strict";
  2069. Object.defineProperty(exports, "__esModule", { value: true });exports.getCouponsList = getCouponsList;exports.setCoupons = setCoupons;exports.couponsOrder = couponsOrder;exports.integrallist = integrallist;exports.signList = signList;exports.integral = integral;exports.signUser = signUser;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  2070. //获取优惠券列表
  2071. function getCouponsList(data, types) {
  2072. //优惠券状态 0全部 1未使用 2已使用
  2073. return (0, _request.default)({
  2074. url: '/api/coupons/user/' + types,
  2075. method: 'get',
  2076. data: data });
  2077. }
  2078. //领取优惠券
  2079. function setCoupons(data) {
  2080. return (0, _request.default)({
  2081. url: '/api/coupon/receive',
  2082. method: 'post',
  2083. data: data });
  2084. }
  2085. //获取可使用优惠券
  2086. function couponsOrder(data, price) {
  2087. return (0, _request.default)({
  2088. url: '/api/coupons/order/' + price,
  2089. method: 'get',
  2090. data: data });
  2091. }
  2092. // 积分列表
  2093. function integrallist(data) {
  2094. return (0, _request.default)({
  2095. url: '/api/integral/list',
  2096. method: 'get',
  2097. data: data });
  2098. }
  2099. // 获取签到列表
  2100. function signList(data) {
  2101. return (0, _request.default)({
  2102. url: '/api/sign/list',
  2103. method: 'get',
  2104. data: data });
  2105. }
  2106. // 点击签到
  2107. function integral(data) {
  2108. return (0, _request.default)({
  2109. url: '/api/sign/integral',
  2110. method: 'post',
  2111. data: data });
  2112. }
  2113. // 签到信息
  2114. function signUser(data) {
  2115. return (0, _request.default)({
  2116. url: '/api/sign/user',
  2117. method: 'post',
  2118. data: data });
  2119. }
  2120. /***/ }),
  2121. /***/ 118:
  2122. /*!*************************************!*\
  2123. !*** D:/2022/7/hqshop/api/login.js ***!
  2124. \*************************************/
  2125. /*! no static exports found */
  2126. /***/ (function(module, exports, __webpack_require__) {
  2127. "use strict";
  2128. Object.defineProperty(exports, "__esModule", { value: true });exports.login = login;exports.register = register;exports.verify = verify;exports.getUserInfo = getUserInfo;exports.loginMobile = loginMobile;exports.bangding = bangding;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  2129. // 登录
  2130. function login(data) {
  2131. return (0, _request.default)({
  2132. url: '/api/login',
  2133. method: 'post',
  2134. data: data });
  2135. }
  2136. // 注册
  2137. function register(data) {
  2138. return (0, _request.default)({
  2139. url: '/api/register',
  2140. method: 'post',
  2141. data: data });
  2142. }
  2143. // 验证码
  2144. function verify(data) {
  2145. // type=register为注册
  2146. // type=login为登录
  2147. return (0, _request.default)({
  2148. url: '/api/register/verify',
  2149. method: 'post',
  2150. data: data });
  2151. }
  2152. // 获取用户信息
  2153. function getUserInfo(data) {
  2154. return (0, _request.default)({
  2155. url: '/api/userinfo',
  2156. method: 'get',
  2157. data: data });
  2158. }
  2159. // 短信登录
  2160. function loginMobile(data) {
  2161. return (0, _request.default)({
  2162. url: '/api/login/mobile',
  2163. method: 'post',
  2164. data: data });
  2165. }
  2166. //绑定手机号
  2167. function bangding(data) {
  2168. return (0, _request.default)({
  2169. url: '/api/binding',
  2170. method: 'POST',
  2171. data: data });
  2172. }
  2173. /***/ }),
  2174. /***/ 127:
  2175. /*!************************************!*\
  2176. !*** D:/2022/7/hqshop/api/user.js ***!
  2177. \************************************/
  2178. /*! no static exports found */
  2179. /***/ (function(module, exports, __webpack_require__) {
  2180. "use strict";
  2181. Object.defineProperty(exports, "__esModule", { value: true });exports.orderData = orderData;exports.getUserInfo = getUserInfo;exports.spreadBanner = spreadBanner;exports.getAddressList = getAddressList;exports.addressEdit = addressEdit;exports.addressDel = addressDel;exports.setAddressDefault = setAddressDefault;exports.getCartList = getCartList;exports.getCartNum = getCartNum;exports.cartDel = cartDel;exports.getcollectList = getcollectList;exports.delcollect = delcollect;exports.coral = coral;exports.transfer_accounts = transfer_accounts;exports.getSpreadPeople = getSpreadPeople;exports.gwjfhz = gwjfhz;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  2182. // 订单统计信息
  2183. function orderData(data) {
  2184. return (0, _request.default)({
  2185. url: '/api/order/data',
  2186. method: 'get',
  2187. data: data });
  2188. }
  2189. // 获取用户信息
  2190. function getUserInfo(data) {
  2191. return (0, _request.default)({
  2192. url: '/api/userinfo',
  2193. method: 'get',
  2194. data: data });
  2195. }
  2196. // 用户分享图
  2197. function spreadBanner(data) {
  2198. return (0, _request.default)({
  2199. url: '/api/spread/banner',
  2200. method: 'get',
  2201. data: data });
  2202. }
  2203. // 获取地址列表
  2204. function getAddressList(data) {
  2205. return (0, _request.default)({
  2206. url: '/api/address/list',
  2207. method: 'get',
  2208. data: data });
  2209. }
  2210. // 修改地址
  2211. function addressEdit(data) {
  2212. return (0, _request.default)({
  2213. url: '/api/address/edit',
  2214. method: 'post',
  2215. data: data });
  2216. }
  2217. // 删除地址
  2218. function addressDel(data) {
  2219. return (0, _request.default)({
  2220. url: '/api/address/del',
  2221. method: 'post',
  2222. data: data });
  2223. }
  2224. // 设为默认地址
  2225. function setAddressDefault(data) {
  2226. return (0, _request.default)({
  2227. url: '/api/address/default/set',
  2228. method: 'post',
  2229. data: data });
  2230. }
  2231. // 购物车列表
  2232. function getCartList(data) {
  2233. return (0, _request.default)({
  2234. url: '/api/cart/list',
  2235. method: 'get',
  2236. data: data });
  2237. }
  2238. // 修改购物车数量
  2239. function getCartNum(data) {
  2240. return (0, _request.default)({
  2241. url: '/api/cart/num',
  2242. method: 'post',
  2243. data: data });
  2244. }
  2245. //删除购物车
  2246. function cartDel(data) {
  2247. return (0, _request.default)({
  2248. url: '/api/cart/del',
  2249. method: 'post',
  2250. data: data });
  2251. }
  2252. //获取收藏夹列表
  2253. function getcollectList(data) {
  2254. return (0, _request.default)({
  2255. url: '/api/collect/user',
  2256. method: 'get',
  2257. data: data });
  2258. }
  2259. // 取消收藏
  2260. function delcollect(data) {
  2261. return (0, _request.default)({
  2262. url: '/api/collect/del',
  2263. method: 'post',
  2264. data: data });
  2265. }
  2266. // 兑换
  2267. function coral(data) {
  2268. return (0, _request.default)({
  2269. url: '/api/change/coral',
  2270. method: 'post',
  2271. data: data });
  2272. }
  2273. // transfer_accounts
  2274. function transfer_accounts(data) {
  2275. return (0, _request.default)({
  2276. url: '/api/dow_user',
  2277. method: 'post',
  2278. data: data });
  2279. }
  2280. // 推广的人数
  2281. function getSpreadPeople(data) {
  2282. return (0, _request.default)({
  2283. url: '/api/spread/people',
  2284. method: 'post',
  2285. data: data });
  2286. }
  2287. // 购物积分互转
  2288. function gwjfhz(data) {
  2289. return (0, _request.default)({
  2290. url: '/api/points',
  2291. method: 'post',
  2292. data: data });
  2293. }
  2294. /***/ }),
  2295. /***/ 136:
  2296. /*!**************************************!*\
  2297. !*** D:/2022/7/hqshop/api/wallet.js ***!
  2298. \**************************************/
  2299. /*! no static exports found */
  2300. /***/ (function(module, exports, __webpack_require__) {
  2301. "use strict";
  2302. Object.defineProperty(exports, "__esModule", { value: true });exports.spreadCommission = spreadCommission;exports.userBalance = userBalance;exports.extractCash = extractCash;exports.extractBank = extractBank;exports.rechargeRoutine = rechargeRoutine;exports.aliInfo = aliInfo;exports.bankInfo = bankInfo;exports.setAliInfo = setAliInfo;exports.setBankInfo = setBankInfo;exports.balance = balance;exports.auction = auction;exports.pay_list = pay_list;exports.sp_final_list = sp_final_list;exports.top_ticket_list = top_ticket_list;exports.aid_val_list = aid_val_list;exports.moneyChong = moneyChong;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  2303. // 获取用户消费记录
  2304. function spreadCommission(data, state) {
  2305. return (0, _request.default)({
  2306. url: '/api/spread/commission/' + state,
  2307. method: 'get',
  2308. data: data });
  2309. }
  2310. // 获取账户余额
  2311. function userBalance(data) {
  2312. return (0, _request.default)({
  2313. url: '/api/user/balance',
  2314. method: 'get',
  2315. data: data });
  2316. }
  2317. // 提现
  2318. function extractCash(data) {
  2319. return (0, _request.default)({
  2320. url: '/api/extract/cash',
  2321. method: 'post',
  2322. data: data });
  2323. }
  2324. // 提现信息
  2325. function extractBank(data) {
  2326. return (0, _request.default)({
  2327. url: '/api/extract/bank',
  2328. method: 'get',
  2329. data: data });
  2330. }
  2331. // 小程序充值
  2332. function rechargeRoutine(data) {
  2333. return (0, _request.default)({
  2334. url: '/api/recharge/routine',
  2335. method: 'post',
  2336. data: data });
  2337. }
  2338. // 获取提现支付宝账号
  2339. function aliInfo(data) {
  2340. return (0, _request.default)({
  2341. url: '/api/ali/info',
  2342. method: 'get',
  2343. data: data });
  2344. }
  2345. //获取默认银行卡账号
  2346. function bankInfo(data) {
  2347. return (0, _request.default)({
  2348. url: '/api/bank/info',
  2349. method: 'get',
  2350. data: data });
  2351. }
  2352. // 保存提现支付宝账号
  2353. function setAliInfo(data) {
  2354. return (0, _request.default)({
  2355. url: '/api/ali/edit',
  2356. method: 'post',
  2357. data: data });
  2358. }
  2359. //保存默认银行卡账号
  2360. function setBankInfo(data) {
  2361. return (0, _request.default)({
  2362. url: '/api/bank/edit',
  2363. method: 'post',
  2364. data: data });
  2365. }
  2366. // 账户余额
  2367. function balance(data) {
  2368. return (0, _request.default)({
  2369. url: '/api/user/balance',
  2370. method: 'get',
  2371. data: data });
  2372. }
  2373. //保存收款信息
  2374. function auction(data) {
  2375. return (0, _request.default)({
  2376. url: '/api/auction/pay',
  2377. method: 'post',
  2378. data: data });
  2379. }
  2380. //获取收款信息
  2381. function pay_list(data) {
  2382. return (0, _request.default)({
  2383. url: '/api/auction/pay_list',
  2384. method: 'get',
  2385. data: data });
  2386. }
  2387. //获取购物积分详情
  2388. function sp_final_list(data) {
  2389. return (0, _request.default)({
  2390. url: '/api/sp_final_list/list',
  2391. method: 'get',
  2392. data: data });
  2393. }
  2394. //获取提货券详情
  2395. function top_ticket_list(data) {
  2396. return (0, _request.default)({
  2397. url: '/api/top_ticket_list/list',
  2398. method: 'get',
  2399. data: data });
  2400. }
  2401. //获取提货券详情
  2402. function aid_val_list(data) {
  2403. return (0, _request.default)({
  2404. url: '/api/aid_val_list/list',
  2405. method: 'get',
  2406. data: data });
  2407. }
  2408. //充值金额
  2409. function moneyChong(data) {
  2410. return (0, _request.default)({
  2411. url: '/api/recharge/index',
  2412. method: 'get',
  2413. data: data });
  2414. }
  2415. /***/ }),
  2416. /***/ 14:
  2417. /*!**********************************************************************************************************!*\
  2418. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  2419. \**********************************************************************************************************/
  2420. /*! exports provided: default */
  2421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2422. "use strict";
  2423. __webpack_require__.r(__webpack_exports__);
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  2425. /* globals __VUE_SSR_CONTEXT__ */
  2426. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  2427. // This module is a runtime utility for cleaner component module output and will
  2428. // be included in the final webpack user bundle.
  2429. function normalizeComponent (
  2430. scriptExports,
  2431. render,
  2432. staticRenderFns,
  2433. functionalTemplate,
  2434. injectStyles,
  2435. scopeId,
  2436. moduleIdentifier, /* server only */
  2437. shadowMode, /* vue-cli only */
  2438. components, // fixed by xxxxxx auto components
  2439. renderjs // fixed by xxxxxx renderjs
  2440. ) {
  2441. // Vue.extend constructor export interop
  2442. var options = typeof scriptExports === 'function'
  2443. ? scriptExports.options
  2444. : scriptExports
  2445. // fixed by xxxxxx auto components
  2446. if (components) {
  2447. if (!options.components) {
  2448. options.components = {}
  2449. }
  2450. var hasOwn = Object.prototype.hasOwnProperty
  2451. for (var name in components) {
  2452. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  2453. options.components[name] = components[name]
  2454. }
  2455. }
  2456. }
  2457. // fixed by xxxxxx renderjs
  2458. if (renderjs) {
  2459. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  2460. this[renderjs.__module] = this
  2461. });
  2462. (options.mixins || (options.mixins = [])).push(renderjs)
  2463. }
  2464. // render functions
  2465. if (render) {
  2466. options.render = render
  2467. options.staticRenderFns = staticRenderFns
  2468. options._compiled = true
  2469. }
  2470. // functional template
  2471. if (functionalTemplate) {
  2472. options.functional = true
  2473. }
  2474. // scopedId
  2475. if (scopeId) {
  2476. options._scopeId = 'data-v-' + scopeId
  2477. }
  2478. var hook
  2479. if (moduleIdentifier) { // server build
  2480. hook = function (context) {
  2481. // 2.3 injection
  2482. context =
  2483. context || // cached call
  2484. (this.$vnode && this.$vnode.ssrContext) || // stateful
  2485. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  2486. // 2.2 with runInNewContext: true
  2487. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  2488. context = __VUE_SSR_CONTEXT__
  2489. }
  2490. // inject component styles
  2491. if (injectStyles) {
  2492. injectStyles.call(this, context)
  2493. }
  2494. // register component module identifier for async chunk inferrence
  2495. if (context && context._registeredComponents) {
  2496. context._registeredComponents.add(moduleIdentifier)
  2497. }
  2498. }
  2499. // used by ssr in case component is cached and beforeCreate
  2500. // never gets called
  2501. options._ssrRegister = hook
  2502. } else if (injectStyles) {
  2503. hook = shadowMode
  2504. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  2505. : injectStyles
  2506. }
  2507. if (hook) {
  2508. if (options.functional) {
  2509. // for template-only hot-reload because in that case the render fn doesn't
  2510. // go through the normalizer
  2511. options._injectStyles = hook
  2512. // register for functioal component in vue file
  2513. var originalRender = options.render
  2514. options.render = function renderWithStyleInjection (h, context) {
  2515. hook.call(context)
  2516. return originalRender(h, context)
  2517. }
  2518. } else {
  2519. // inject component registration as beforeCreate hook
  2520. var existing = options.beforeCreate
  2521. options.beforeCreate = existing
  2522. ? [].concat(existing, hook)
  2523. : [hook]
  2524. }
  2525. }
  2526. return {
  2527. exports: scriptExports,
  2528. options: options
  2529. }
  2530. }
  2531. /***/ }),
  2532. /***/ 15:
  2533. /*!******************************************!*\
  2534. !*** D:/2022/7/hqshop/uview-ui/index.js ***!
  2535. \******************************************/
  2536. /*! no static exports found */
  2537. /***/ (function(module, exports, __webpack_require__) {
  2538. "use strict";
  2539. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  2540. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 16));
  2541. var _request = _interopRequireDefault(__webpack_require__(/*! ./libs/request */ 17));
  2542. var _queryParams = _interopRequireDefault(__webpack_require__(/*! ./libs/function/queryParams.js */ 21));
  2543. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/function/route.js */ 22));
  2544. var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFormat.js */ 26));
  2545. var _timeFrom = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFrom.js */ 27));
  2546. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 28));
  2547. var _guid = _interopRequireDefault(__webpack_require__(/*! ./libs/function/guid.js */ 29));
  2548. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/function/color.js */ 30));
  2549. var _type2icon = _interopRequireDefault(__webpack_require__(/*! ./libs/function/type2icon.js */ 31));
  2550. var _randomArray = _interopRequireDefault(__webpack_require__(/*! ./libs/function/randomArray.js */ 32));
  2551. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepClone.js */ 19));
  2552. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepMerge.js */ 18));
  2553. var _addUnit = _interopRequireDefault(__webpack_require__(/*! ./libs/function/addUnit.js */ 33));
  2554. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 20));
  2555. var _random = _interopRequireDefault(__webpack_require__(/*! ./libs/function/random.js */ 34));
  2556. var _trim = _interopRequireDefault(__webpack_require__(/*! ./libs/function/trim.js */ 35));
  2557. var _toast = _interopRequireDefault(__webpack_require__(/*! ./libs/function/toast.js */ 36));
  2558. var _getParent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/getParent.js */ 37));
  2559. var _$parent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/$parent.js */ 38));
  2560. var _sys = __webpack_require__(/*! ./libs/function/sys.js */ 39);
  2561. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 40));
  2562. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 41));
  2563. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 42));
  2564. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 43));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // 引入全局mixin
  2565. // 引入关于是否mixin集成小程序分享的配置
  2566. // import wxshare from './libs/mixin/mpShare.js'
  2567. // 全局挂载引入http相关请求拦截插件
  2568. function wranning(str) {// 开发环境进行信息输出,主要是一些报错信息
  2569. // 这个环境的来由是在程序编写时候,点击hx编辑器运行调试代码的时候,详见:
  2570. // https://uniapp.dcloud.io/frame?id=%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e5%92%8c%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83
  2571. if (true) {console.warn(str);}} // 尝试判断在根目录的/store中是否有$u.mixin.js,此文件uView默认为需要挂在到全局的vuex的state变量
  2572. // HX2.6.11版本,放到try中,控制台依然会警告,暂时不用此方式,
  2573. // let vuexStore = {};
  2574. // try {
  2575. // vuexStore = require("@/store/$u.mixin.js");
  2576. // } catch (e) {
  2577. // //TODO handle the exception
  2578. // }
  2579. // post类型对象参数转为get类型url参数
  2580. var $u = { queryParams: _queryParams.default, route: _route.default, timeFormat: _timeFormat.default, date: _timeFormat.default, // 另名date
  2581. timeFrom: _timeFrom.default, colorGradient: _colorGradient.default.colorGradient, colorToRgba: _colorGradient.default.colorToRgba, guid: _guid.default, color: _color.default, sys: _sys.sys, os: _sys.os, type2icon: _type2icon.default, randomArray: _randomArray.default, wranning: wranning, get: _request.default.get,
  2582. post: _request.default.post,
  2583. put: _request.default.put,
  2584. 'delete': _request.default.delete,
  2585. hexToRgb: _colorGradient.default.hexToRgb,
  2586. rgbToHex: _colorGradient.default.rgbToHex,
  2587. test: _test.default,
  2588. random: _random.default,
  2589. deepClone: _deepClone.default,
  2590. deepMerge: _deepMerge.default,
  2591. getParent: _getParent.default,
  2592. $parent: _$parent.default,
  2593. addUnit: _addUnit.default,
  2594. trim: _trim.default,
  2595. type: ['primary', 'success', 'error', 'warning', 'info'],
  2596. http: _request.default,
  2597. toast: _toast.default,
  2598. config: _config.default, // uView配置信息相关,比如版本号
  2599. zIndex: _zIndex.default,
  2600. debounce: _debounce.default,
  2601. throttle: _throttle.default };
  2602. // $u挂载到uni对象上
  2603. uni.$u = $u;
  2604. var install = function install(Vue) {
  2605. Vue.mixin(_mixin.default);
  2606. if (Vue.prototype.openShare) {
  2607. Vue.mixin(mpShare);
  2608. }
  2609. // Vue.mixin(vuexStore);
  2610. // 时间格式化,同时两个名称,date和timeFormat
  2611. Vue.filter('timeFormat', function (timestamp, format) {
  2612. return (0, _timeFormat.default)(timestamp, format);
  2613. });
  2614. Vue.filter('date', function (timestamp, format) {
  2615. return (0, _timeFormat.default)(timestamp, format);
  2616. });
  2617. // 将多久以前的方法,注入到全局过滤器
  2618. Vue.filter('timeFrom', function (timestamp, format) {
  2619. return (0, _timeFrom.default)(timestamp, format);
  2620. });
  2621. Vue.prototype.$u = $u;
  2622. };var _default =
  2623. {
  2624. install: install };exports.default = _default;
  2625. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2626. /***/ }),
  2627. /***/ 16:
  2628. /*!*****************************************************!*\
  2629. !*** D:/2022/7/hqshop/uview-ui/libs/mixin/mixin.js ***!
  2630. \*****************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  2634. data: function data() {
  2635. return {};
  2636. },
  2637. onLoad: function onLoad() {
  2638. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  2639. this.$u.getRect = this.$uGetRect;
  2640. },
  2641. methods: {
  2642. // 查询节点信息
  2643. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  2644. // 解决办法为在组件根部再套一个没有任何作用的view元素
  2645. $uGetRect: function $uGetRect(selector, all) {var _this = this;
  2646. return new Promise(function (resolve) {
  2647. uni.createSelectorQuery().
  2648. in(_this)[all ? 'selectAll' : 'select'](selector).
  2649. boundingClientRect(function (rect) {
  2650. if (all && Array.isArray(rect) && rect.length) {
  2651. resolve(rect);
  2652. }
  2653. if (!all && rect) {
  2654. resolve(rect);
  2655. }
  2656. }).
  2657. exec();
  2658. });
  2659. },
  2660. getParentData: function getParentData() {var _this2 = this;var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  2661. // 避免在created中去定义parent变量
  2662. if (!this.parent) this.parent = false;
  2663. // 这里的本质原理是,通过获取父组件实例(也即u-radio-group的this)
  2664. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  2665. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  2666. this.parent = this.$u.$parent.call(this, parentName);
  2667. if (this.parent) {
  2668. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  2669. Object.keys(this.parentData).map(function (key) {
  2670. _this2.parentData[key] = _this2.parent[key];
  2671. });
  2672. }
  2673. },
  2674. // 阻止事件冒泡
  2675. preventEvent: function preventEvent(e) {
  2676. e && e.stopPropagation && e.stopPropagation();
  2677. } },
  2678. onReachBottom: function onReachBottom() {
  2679. uni.$emit('uOnReachBottom');
  2680. },
  2681. beforeDestroy: function beforeDestroy() {var _this3 = this;
  2682. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  2683. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  2684. if (this.parent && uni.$u.test.array(this.parent.children)) {
  2685. // 组件销毁时,移除父组件中的children数组中对应的实例
  2686. var childrenList = this.parent.children;
  2687. childrenList.map(function (child, index) {
  2688. // 如果相等,则移除
  2689. if (child === _this3) {
  2690. childrenList.splice(index, 1);
  2691. }
  2692. });
  2693. }
  2694. } };
  2695. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2696. /***/ }),
  2697. /***/ 161:
  2698. /*!*************************************!*\
  2699. !*** D:/2022/7/hqshop/api/order.js ***!
  2700. \*************************************/
  2701. /*! no static exports found */
  2702. /***/ (function(module, exports, __webpack_require__) {
  2703. "use strict";
  2704. Object.defineProperty(exports, "__esModule", { value: true });exports.confirm = confirm;exports.couponsOrder = couponsOrder;exports.getCouponsList = getCouponsList;exports.order_comment = order_comment;exports.product = product;exports.express_query = express_query;exports.upload = upload;exports.orderList = orderList;exports.orderDetail = orderDetail;exports.orderCancel = orderCancel;exports.orderDel = orderDel;exports.refund = refund;exports.refundReason = refundReason;exports.orderTake = orderTake;exports.orderPay = orderPay;exports.createOrderkey = createOrderkey;exports.computedOrderkey = computedOrderkey;exports.user_auction_order = user_auction_order;exports.seller = seller;exports.up_image = up_image;exports.cancel = cancel;exports.untreated = untreated;var _request = _interopRequireWildcard(__webpack_require__(/*! @/utils/request */ 51));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  2705. // 订单确认
  2706. function confirm(data) {
  2707. return (0, _request.default)({
  2708. url: '/api/order/confirm',
  2709. method: 'post',
  2710. data: data });
  2711. }
  2712. //获取可使用优惠券
  2713. function couponsOrder(data, price) {
  2714. return (0, _request.default)({
  2715. url: '/api/coupons/order/' + price,
  2716. method: 'get',
  2717. data: data });
  2718. }
  2719. //获取优惠券列表
  2720. function getCouponsList(data, types) {
  2721. //优惠券状态 0全部 1未使用 2已使用
  2722. return (0, _request.default)({
  2723. url: '/api/coupons/user/' + types,
  2724. method: 'get',
  2725. data: data });
  2726. }
  2727. //提交评论
  2728. function order_comment(data) {
  2729. return (0, _request.default)({
  2730. url: '/api/order/comment',
  2731. method: 'post',
  2732. data: data });
  2733. }
  2734. //订单产品信息
  2735. function product(data) {
  2736. return (0, _request.default)({
  2737. url: '/api/order/product',
  2738. method: 'post',
  2739. data: data });
  2740. }
  2741. // 快递查询
  2742. function express_query(data) {
  2743. return (0, _request.default)({
  2744. url: '/api/order/express_query',
  2745. method: 'get',
  2746. data: data });
  2747. }
  2748. //上传图片
  2749. function upload(data) {
  2750. return (0, _request.upFilse)({
  2751. url: '/api/upload/image',
  2752. method: 'post',
  2753. data: data });
  2754. }
  2755. // 订单列表
  2756. function orderList(data) {
  2757. return (0, _request.default)({
  2758. url: '/api/order/list',
  2759. method: 'get',
  2760. data: data });
  2761. }
  2762. // 订单详细
  2763. function orderDetail(data, orderid) {
  2764. return (0, _request.default)({
  2765. url: '/api/order/detail/' + orderid,
  2766. method: 'get',
  2767. data: data });
  2768. }
  2769. // 取消订单
  2770. function orderCancel(data) {
  2771. return (0, _request.default)({
  2772. url: '/api/order/cancel',
  2773. method: 'post',
  2774. data: data });
  2775. }
  2776. // 删除订单
  2777. function orderDel(data) {
  2778. return (0, _request.default)({
  2779. url: '/api/order/del',
  2780. method: 'get',
  2781. data: data });
  2782. }
  2783. // 申请退款
  2784. function refund(data) {
  2785. return (0, _request.default)({
  2786. url: '/api/order/refund/verify',
  2787. method: 'post',
  2788. data: data });
  2789. }
  2790. // 退款理由列表
  2791. function refundReason(data) {
  2792. return (0, _request.default)({
  2793. url: '/api/order/refund/reason',
  2794. method: 'get',
  2795. data: data });
  2796. }
  2797. // 确认收货
  2798. function orderTake(data) {
  2799. return (0, _request.default)({
  2800. url: '/api/order/take',
  2801. method: 'post',
  2802. data: data });
  2803. }
  2804. // 订单支付
  2805. function orderPay(data) {
  2806. return (0, _request.default)({
  2807. url: '/api/order/pay',
  2808. method: 'post',
  2809. data: data });
  2810. }
  2811. // 创建订单
  2812. function createOrderkey(data, key) {
  2813. return (0, _request.default)({
  2814. url: '/api/order/create/' + key,
  2815. method: 'post',
  2816. data: data });
  2817. }
  2818. // 统计订单金额
  2819. function computedOrderkey(data) {
  2820. return (0, _request.default)({
  2821. url: '/api/order/computed/' + data.orderkey,
  2822. method: 'post',
  2823. data: data });
  2824. }
  2825. //买单订单列表
  2826. function user_auction_order(data) {
  2827. return (0, _request.default)({
  2828. url: '/api/user_auction_order',
  2829. method: 'get',
  2830. data: data });
  2831. }
  2832. //卖单订单列表
  2833. function seller(data) {
  2834. return (0, _request.default)({
  2835. url: '/api/seller',
  2836. method: 'get',
  2837. data: data });
  2838. }
  2839. // 上传成功
  2840. function up_image(data) {
  2841. return (0, _request.default)({
  2842. url: '/api/auction/up_image',
  2843. method: 'post',
  2844. data: data });
  2845. }
  2846. // 取消挂售
  2847. function cancel(data) {
  2848. return (0, _request.default)({
  2849. url: '/api/auction/cancel',
  2850. method: 'post',
  2851. data: data });
  2852. }
  2853. //判断是否有新订单
  2854. function untreated(data) {
  2855. return (0, _request.default)({
  2856. url: '/api/auction/untreated',
  2857. method: 'get',
  2858. data: data });
  2859. }
  2860. /***/ }),
  2861. /***/ 17:
  2862. /*!*******************************************************!*\
  2863. !*** D:/2022/7/hqshop/uview-ui/libs/request/index.js ***!
  2864. \*******************************************************/
  2865. /*! no static exports found */
  2866. /***/ (function(module, exports, __webpack_require__) {
  2867. "use strict";
  2868. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ../function/deepMerge */ 18));
  2869. var _test = _interopRequireDefault(__webpack_require__(/*! ../function/test */ 20));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var
  2870. Request = /*#__PURE__*/function () {_createClass(Request, [{ key: "setConfig",
  2871. // 设置全局默认配置
  2872. value: function setConfig(customConfig) {
  2873. // 深度合并对象,否则会造成对象深层属性丢失
  2874. this.config = (0, _deepMerge.default)(this.config, customConfig);
  2875. }
  2876. // 主要请求部分
  2877. }, { key: "request", value: function request() {var _this = this;var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2878. // 检查请求拦截
  2879. if (this.interceptor.request && typeof this.interceptor.request === 'function') {
  2880. var tmpConfig = {};
  2881. var interceptorRequest = this.interceptor.request(options);
  2882. if (interceptorRequest === false) {
  2883. // 返回一个处于pending状态中的Promise,来取消原promise,避免进入then()回调
  2884. return new Promise(function () {});
  2885. }
  2886. this.options = interceptorRequest;
  2887. }
  2888. options.dataType = options.dataType || this.config.dataType;
  2889. options.responseType = options.responseType || this.config.responseType;
  2890. options.url = options.url || '';
  2891. options.params = options.params || {};
  2892. options.header = Object.assign({}, this.config.header, options.header);
  2893. options.method = options.method || this.config.method;
  2894. return new Promise(function (resolve, reject) {
  2895. options.complete = function (response) {
  2896. // 请求返回后,隐藏loading(如果请求返回快的话,可能会没有loading)
  2897. uni.hideLoading();
  2898. // 清除定时器,如果请求回来了,就无需loading
  2899. clearTimeout(_this.config.timer);
  2900. _this.config.timer = null;
  2901. // 判断用户对拦截返回数据的要求,如果originalData为true,返回所有的数据(response)到拦截器,否则只返回response.data
  2902. if (_this.config.originalData) {
  2903. // 判断是否存在拦截器
  2904. if (_this.interceptor.response && typeof _this.interceptor.response === 'function') {
  2905. var resInterceptors = _this.interceptor.response(response);
  2906. // 如果拦截器不返回false,就将拦截器返回的内容给this.$u.post的then回调
  2907. if (resInterceptors !== false) {
  2908. resolve(resInterceptors);
  2909. } else {
  2910. // 如果拦截器返回false,意味着拦截器定义者认为返回有问题,直接接入catch回调
  2911. reject(response);
  2912. }
  2913. } else {
  2914. // 如果要求返回原始数据,就算没有拦截器,也返回最原始的数据
  2915. resolve(response);
  2916. }
  2917. } else {
  2918. if (response.statusCode == 200) {
  2919. if (_this.interceptor.response && typeof _this.interceptor.response === 'function') {
  2920. var _resInterceptors = _this.interceptor.response(response.data);
  2921. if (_resInterceptors !== false) {
  2922. resolve(_resInterceptors);
  2923. } else {
  2924. reject(response.data);
  2925. }
  2926. } else {
  2927. // 如果不是返回原始数据(originalData=false),且没有拦截器的情况下,返回纯数据给then回调
  2928. resolve(response.data);
  2929. }
  2930. } else {
  2931. // 不返回原始数据的情况下,服务器状态码不为200,modal弹框提示
  2932. // if(response.errMsg) {
  2933. // uni.showModal({
  2934. // title: response.errMsg
  2935. // });
  2936. // }
  2937. reject(response);
  2938. }
  2939. }
  2940. };
  2941. // 判断用户传递的URL是否/开头,如果不是,加上/,这里使用了uView的test.js验证库的url()方法
  2942. options.url = _test.default.url(options.url) ? options.url : _this.config.baseUrl + (options.url.indexOf('/') == 0 ?
  2943. options.url : '/' + options.url);
  2944. // 是否显示loading
  2945. // 加一个是否已有timer定时器的判断,否则有两个同时请求的时候,后者会清除前者的定时器id
  2946. // 而没有清除前者的定时器,导致前者超时,一直显示loading
  2947. if (_this.config.showLoading && !_this.config.timer) {
  2948. _this.config.timer = setTimeout(function () {
  2949. uni.showLoading({
  2950. title: _this.config.loadingText,
  2951. mask: _this.config.loadingMask });
  2952. _this.config.timer = null;
  2953. }, _this.config.loadingTime);
  2954. }
  2955. uni.request(options);
  2956. });
  2957. // .catch(res => {
  2958. // // 如果返回reject(),不让其进入this.$u.post().then().catch()后面的catct()
  2959. // // 因为很多人都会忘了写后面的catch(),导致报错捕获不到catch
  2960. // return new Promise(()=>{});
  2961. // })
  2962. } }]);
  2963. function Request() {var _this2 = this;_classCallCheck(this, Request);
  2964. this.config = {
  2965. baseUrl: '', // 请求的根域名
  2966. // 默认的请求头
  2967. header: {},
  2968. method: 'POST',
  2969. // 设置为json,返回后uni.request会对数据进行一次JSON.parse
  2970. dataType: 'json',
  2971. // 此参数无需处理,因为5+和支付宝小程序不支持,默认为text即可
  2972. responseType: 'text',
  2973. showLoading: true, // 是否显示请求中的loading
  2974. loadingText: '请求中...',
  2975. loadingTime: 800, // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
  2976. timer: null, // 定时器
  2977. originalData: false, // 是否在拦截器中返回服务端的原始数据,见文档说明
  2978. loadingMask: true // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
  2979. };
  2980. // 拦截器
  2981. this.interceptor = {
  2982. // 请求前的拦截
  2983. request: null,
  2984. // 请求后的拦截
  2985. response: null };
  2986. // get请求
  2987. this.get = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  2988. return _this2.request({
  2989. method: 'GET',
  2990. url: url,
  2991. header: header,
  2992. data: data });
  2993. };
  2994. // post请求
  2995. this.post = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  2996. return _this2.request({
  2997. url: url,
  2998. method: 'POST',
  2999. header: header,
  3000. data: data });
  3001. };
  3002. // put请求,不支持支付宝小程序(HX2.6.15)
  3003. this.put = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  3004. return _this2.request({
  3005. url: url,
  3006. method: 'PUT',
  3007. header: header,
  3008. data: data });
  3009. };
  3010. // delete请求,不支持支付宝和头条小程序(HX2.6.15)
  3011. this.delete = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  3012. return _this2.request({
  3013. url: url,
  3014. method: 'DELETE',
  3015. header: header,
  3016. data: data });
  3017. };
  3018. }return Request;}();var _default =
  3019. new Request();exports.default = _default;
  3020. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3021. /***/ }),
  3022. /***/ 170:
  3023. /*!**********************************!*\
  3024. !*** D:/2022/7/hqshop/api/wx.js ***!
  3025. \**********************************/
  3026. /*! no static exports found */
  3027. /***/ (function(module, exports, __webpack_require__) {
  3028. "use strict";
  3029. Object.defineProperty(exports, "__esModule", { value: true });exports.wechatMpAuth = wechatMpAuth;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  3030. // 微信code地址
  3031. function wechatMpAuth(data) {
  3032. return (0, _request.default)({
  3033. url: '/api/wechat/mp_auth',
  3034. method: 'post',
  3035. data: data });
  3036. }
  3037. /***/ }),
  3038. /***/ 18:
  3039. /*!************************************************************!*\
  3040. !*** D:/2022/7/hqshop/uview-ui/libs/function/deepMerge.js ***!
  3041. \************************************************************/
  3042. /*! no static exports found */
  3043. /***/ (function(module, exports, __webpack_require__) {
  3044. "use strict";
  3045. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./deepClone */ 19));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  3046. // JS对象深度合并
  3047. function deepMerge() {var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3048. target = (0, _deepClone.default)(target);
  3049. if (typeof target !== 'object' || typeof source !== 'object') return false;
  3050. for (var prop in source) {
  3051. if (!source.hasOwnProperty(prop)) continue;
  3052. if (prop in target) {
  3053. if (typeof target[prop] !== 'object') {
  3054. target[prop] = source[prop];
  3055. } else {
  3056. if (typeof source[prop] !== 'object') {
  3057. target[prop] = source[prop];
  3058. } else {
  3059. if (target[prop].concat && source[prop].concat) {
  3060. target[prop] = target[prop].concat(source[prop]);
  3061. } else {
  3062. target[prop] = deepMerge(target[prop], source[prop]);
  3063. }
  3064. }
  3065. }
  3066. } else {
  3067. target[prop] = source[prop];
  3068. }
  3069. }
  3070. return target;
  3071. }var _default =
  3072. deepMerge;exports.default = _default;
  3073. /***/ }),
  3074. /***/ 19:
  3075. /*!************************************************************!*\
  3076. !*** D:/2022/7/hqshop/uview-ui/libs/function/deepClone.js ***!
  3077. \************************************************************/
  3078. /*! no static exports found */
  3079. /***/ (function(module, exports, __webpack_require__) {
  3080. "use strict";
  3081. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 判断arr是否为一个数组,返回一个bool值
  3082. function isArray(arr) {
  3083. return Object.prototype.toString.call(arr) === '[object Array]';
  3084. }
  3085. // 深度克隆
  3086. function deepClone(obj) {
  3087. // 对常见的“非”值,直接返回原来值
  3088. if ([null, undefined, NaN, false].includes(obj)) return obj;
  3089. if (typeof obj !== "object" && typeof obj !== 'function') {
  3090. //原始类型直接返回
  3091. return obj;
  3092. }
  3093. var o = isArray(obj) ? [] : {};
  3094. for (var i in obj) {
  3095. if (obj.hasOwnProperty(i)) {
  3096. o[i] = typeof obj[i] === "object" ? deepClone(obj[i]) : obj[i];
  3097. }
  3098. }
  3099. return o;
  3100. }var _default =
  3101. deepClone;exports.default = _default;
  3102. /***/ }),
  3103. /***/ 2:
  3104. /*!***********************************!*\
  3105. !*** (webpack)/buildin/global.js ***!
  3106. \***********************************/
  3107. /*! no static exports found */
  3108. /***/ (function(module, exports) {
  3109. var g;
  3110. // This works in non-strict mode
  3111. g = (function() {
  3112. return this;
  3113. })();
  3114. try {
  3115. // This works if eval is allowed (see CSP)
  3116. g = g || new Function("return this")();
  3117. } catch (e) {
  3118. // This works if the window reference is available
  3119. if (typeof window === "object") g = window;
  3120. }
  3121. // g can still be undefined, but nothing to do about it...
  3122. // We return undefined, instead of nothing here, so it's
  3123. // easier to handle this case. if(!global) { ...}
  3124. module.exports = g;
  3125. /***/ }),
  3126. /***/ 20:
  3127. /*!*******************************************************!*\
  3128. !*** D:/2022/7/hqshop/uview-ui/libs/function/test.js ***!
  3129. \*******************************************************/
  3130. /*! no static exports found */
  3131. /***/ (function(module, exports, __webpack_require__) {
  3132. "use strict";
  3133. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  3134. * 验证电子邮箱格式
  3135. */
  3136. function email(value) {
  3137. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  3138. }
  3139. /**
  3140. * 验证手机格式
  3141. */
  3142. function mobile(value) {
  3143. return /^1[3-9]\d{9}$/.test(value);
  3144. }
  3145. /**
  3146. * 验证URL格式
  3147. */
  3148. function url(value) {
  3149. return /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(value);
  3150. }
  3151. /**
  3152. * 验证日期格式
  3153. */
  3154. function date(value) {
  3155. return !/Invalid|NaN/.test(new Date(value).toString());
  3156. }
  3157. /**
  3158. * 验证ISO类型的日期格式
  3159. */
  3160. function dateISO(value) {
  3161. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  3162. }
  3163. /**
  3164. * 验证十进制数字
  3165. */
  3166. function number(value) {
  3167. return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);
  3168. }
  3169. /**
  3170. * 验证整数
  3171. */
  3172. function digits(value) {
  3173. return /^\d+$/.test(value);
  3174. }
  3175. /**
  3176. * 验证身份证号码
  3177. */
  3178. function idCard(value) {
  3179. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(
  3180. value);
  3181. }
  3182. /**
  3183. * 是否车牌号
  3184. */
  3185. function carNo(value) {
  3186. // 新能源车牌
  3187. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  3188. // 旧车牌
  3189. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  3190. if (value.length === 7) {
  3191. return creg.test(value);
  3192. } else if (value.length === 8) {
  3193. return xreg.test(value);
  3194. } else {
  3195. return false;
  3196. }
  3197. }
  3198. /**
  3199. * 金额,只允许2位小数
  3200. */
  3201. function amount(value) {
  3202. //金额,只允许保留两位小数
  3203. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  3204. }
  3205. /**
  3206. * 中文
  3207. */
  3208. function chinese(value) {
  3209. var reg = /^[\u4e00-\u9fa5]+$/gi;
  3210. return reg.test(value);
  3211. }
  3212. /**
  3213. * 只能输入字母
  3214. */
  3215. function letter(value) {
  3216. return /^[a-zA-Z]*$/.test(value);
  3217. }
  3218. /**
  3219. * 只能是字母或者数字
  3220. */
  3221. function enOrNum(value) {
  3222. //英文或者数字
  3223. var reg = /^[0-9a-zA-Z]*$/g;
  3224. return reg.test(value);
  3225. }
  3226. /**
  3227. * 验证是否包含某个值
  3228. */
  3229. function contains(value, param) {
  3230. return value.indexOf(param) >= 0;
  3231. }
  3232. /**
  3233. * 验证一个值范围[min, max]
  3234. */
  3235. function range(value, param) {
  3236. return value >= param[0] && value <= param[1];
  3237. }
  3238. /**
  3239. * 验证一个长度范围[min, max]
  3240. */
  3241. function rangeLength(value, param) {
  3242. return value.length >= param[0] && value.length <= param[1];
  3243. }
  3244. /**
  3245. * 是否固定电话
  3246. */
  3247. function landline(value) {
  3248. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  3249. return reg.test(value);
  3250. }
  3251. /**
  3252. * 判断是否为空
  3253. */
  3254. function empty(value) {
  3255. switch (typeof value) {
  3256. case 'undefined':
  3257. return true;
  3258. case 'string':
  3259. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  3260. break;
  3261. case 'boolean':
  3262. if (!value) return true;
  3263. break;
  3264. case 'number':
  3265. if (0 === value || isNaN(value)) return true;
  3266. break;
  3267. case 'object':
  3268. if (null === value || value.length === 0) return true;
  3269. for (var i in value) {
  3270. return false;
  3271. }
  3272. return true;}
  3273. return false;
  3274. }
  3275. /**
  3276. * 是否json字符串
  3277. */
  3278. function jsonString(value) {
  3279. if (typeof value == 'string') {
  3280. try {
  3281. var obj = JSON.parse(value);
  3282. if (typeof obj == 'object' && obj) {
  3283. return true;
  3284. } else {
  3285. return false;
  3286. }
  3287. } catch (e) {
  3288. return false;
  3289. }
  3290. }
  3291. return false;
  3292. }
  3293. /**
  3294. * 是否数组
  3295. */
  3296. function array(value) {
  3297. if (typeof Array.isArray === "function") {
  3298. return Array.isArray(value);
  3299. } else {
  3300. return Object.prototype.toString.call(value) === "[object Array]";
  3301. }
  3302. }
  3303. /**
  3304. * 是否对象
  3305. */
  3306. function object(value) {
  3307. return Object.prototype.toString.call(value) === '[object Object]';
  3308. }
  3309. /**
  3310. * 是否短信验证码
  3311. */
  3312. function code(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  3313. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  3314. }var _default =
  3315. {
  3316. email: email,
  3317. mobile: mobile,
  3318. url: url,
  3319. date: date,
  3320. dateISO: dateISO,
  3321. number: number,
  3322. digits: digits,
  3323. idCard: idCard,
  3324. carNo: carNo,
  3325. amount: amount,
  3326. chinese: chinese,
  3327. letter: letter,
  3328. enOrNum: enOrNum,
  3329. contains: contains,
  3330. range: range,
  3331. rangeLength: rangeLength,
  3332. empty: empty,
  3333. isEmpty: empty,
  3334. jsonString: jsonString,
  3335. landline: landline,
  3336. object: object,
  3337. array: array,
  3338. code: code };exports.default = _default;
  3339. /***/ }),
  3340. /***/ 21:
  3341. /*!**************************************************************!*\
  3342. !*** D:/2022/7/hqshop/uview-ui/libs/function/queryParams.js ***!
  3343. \**************************************************************/
  3344. /*! no static exports found */
  3345. /***/ (function(module, exports, __webpack_require__) {
  3346. "use strict";
  3347. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  3348. * 对象转url参数
  3349. * @param {*} data,对象
  3350. * @param {*} isPrefix,是否自动加上"?"
  3351. */
  3352. function queryParams() {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  3353. var prefix = isPrefix ? '?' : '';
  3354. var _result = [];
  3355. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';var _loop = function _loop(
  3356. key) {
  3357. var value = data[key];
  3358. // 去掉为空的参数
  3359. if (['', undefined, null].indexOf(value) >= 0) {
  3360. return "continue";
  3361. }
  3362. // 如果值为数组,另行处理
  3363. if (value.constructor === Array) {
  3364. // e.g. {ids: [1, 2, 3]}
  3365. switch (arrayFormat) {
  3366. case 'indices':
  3367. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  3368. for (var i = 0; i < value.length; i++) {
  3369. _result.push(key + '[' + i + ']=' + value[i]);
  3370. }
  3371. break;
  3372. case 'brackets':
  3373. // 结果: ids[]=1&ids[]=2&ids[]=3
  3374. value.forEach(function (_value) {
  3375. _result.push(key + '[]=' + _value);
  3376. });
  3377. break;
  3378. case 'repeat':
  3379. // 结果: ids=1&ids=2&ids=3
  3380. value.forEach(function (_value) {
  3381. _result.push(key + '=' + _value);
  3382. });
  3383. break;
  3384. case 'comma':
  3385. // 结果: ids=1,2,3
  3386. var commaStr = "";
  3387. value.forEach(function (_value) {
  3388. commaStr += (commaStr ? "," : "") + _value;
  3389. });
  3390. _result.push(key + '=' + commaStr);
  3391. break;
  3392. default:
  3393. value.forEach(function (_value) {
  3394. _result.push(key + '[]=' + _value);
  3395. });}
  3396. } else {
  3397. _result.push(key + '=' + value);
  3398. }};for (var key in data) {var _ret = _loop(key);if (_ret === "continue") continue;
  3399. }
  3400. return _result.length ? prefix + _result.join('&') : '';
  3401. }var _default =
  3402. queryParams;exports.default = _default;
  3403. /***/ }),
  3404. /***/ 22:
  3405. /*!********************************************************!*\
  3406. !*** D:/2022/7/hqshop/uview-ui/libs/function/route.js ***!
  3407. \********************************************************/
  3408. /*! no static exports found */
  3409. /***/ (function(module, exports, __webpack_require__) {
  3410. "use strict";
  3411. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 23));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;} /**
  3412. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  3413. * 并且带有路由拦截功能
  3414. */var
  3415. Router = /*#__PURE__*/function () {
  3416. function Router() {_classCallCheck(this, Router);
  3417. // 原始属性定义
  3418. this.config = {
  3419. type: 'navigateTo',
  3420. url: '',
  3421. delta: 1, // navigateBack页面后退时,回退的层数
  3422. params: {}, // 传递的参数
  3423. animationType: 'pop-in', // 窗口动画,只在APP有效
  3424. animationDuration: 300, // 窗口动画持续时间,单位毫秒,只在APP有效
  3425. intercept: false // 是否需要拦截
  3426. };
  3427. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  3428. // 这里在构造函数中进行this绑定
  3429. this.route = this.route.bind(this);
  3430. }
  3431. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  3432. _createClass(Router, [{ key: "addRootPath", value: function addRootPath(url) {
  3433. return url[0] === '/' ? url : "/".concat(url);
  3434. }
  3435. // 整合路由参数
  3436. }, { key: "mixinParam", value: function mixinParam(url, params) {
  3437. url = url && this.addRootPath(url);
  3438. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  3439. // 如果有url中有get参数,转换后无需带上"?"
  3440. var query = '';
  3441. if (/.*\/.*\?.*=.*/.test(url)) {
  3442. // object对象转为get类型的参数
  3443. query = uni.$u.queryParams(params, false);
  3444. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  3445. return url += "&" + query;
  3446. } else {
  3447. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  3448. query = uni.$u.queryParams(params);
  3449. return url += query;
  3450. }
  3451. }
  3452. // 对外的方法名称
  3453. }, { key: "route", value: function () {var _route = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var options,params,mergeConfig,isNext,_args = arguments;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  3454. // 合并用户的配置和内部的默认配置
  3455. mergeConfig = {};
  3456. if (typeof options === 'string') {
  3457. // 如果options为字符串,则为route(url, params)的形式
  3458. mergeConfig.url = this.mixinParam(options, params);
  3459. mergeConfig.type = 'navigateTo';
  3460. } else {
  3461. mergeConfig = uni.$u.deepClone(options, this.config);
  3462. // 否则正常使用mergeConfig中的url和params进行拼接
  3463. mergeConfig.url = this.mixinParam(options.url, options.params);
  3464. }
  3465. if (params.intercept) {
  3466. this.config.intercept = params.intercept;
  3467. }
  3468. // params参数也带给拦截器
  3469. mergeConfig.params = params;
  3470. // 合并内外部参数
  3471. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  3472. // 判断用户是否定义了拦截器
  3473. if (!(typeof uni.$u.routeIntercept === 'function')) {_context.next = 14;break;}_context.next = 10;return (
  3474. new Promise(function (resolve, reject) {
  3475. uni.$u.routeIntercept(mergeConfig, resolve);
  3476. }));case 10:isNext = _context.sent;
  3477. // 如果isNext为true,则执行路由跳转
  3478. isNext && this.openPage(mergeConfig);_context.next = 15;break;case 14:
  3479. this.openPage(mergeConfig);case 15:case "end":return _context.stop();}}}, _callee, this);}));function route() {return _route.apply(this, arguments);}return route;}()
  3480. // 执行路由跳转
  3481. }, { key: "openPage", value: function openPage(config) {
  3482. // 解构参数
  3483. var
  3484. url =
  3485. config.url,type = config.type,delta = config.delta,animationType = config.animationType,animationDuration = config.animationDuration;
  3486. if (config.type == 'navigateTo' || config.type == 'to') {
  3487. uni.navigateTo({
  3488. url: url,
  3489. animationType: animationType,
  3490. animationDuration: animationDuration });
  3491. }
  3492. if (config.type == 'redirectTo' || config.type == 'redirect') {
  3493. uni.redirectTo({
  3494. url: url });
  3495. }
  3496. if (config.type == 'switchTab' || config.type == 'tab') {
  3497. uni.switchTab({
  3498. url: url });
  3499. }
  3500. if (config.type == 'reLaunch' || config.type == 'launch') {
  3501. uni.reLaunch({
  3502. url: url });
  3503. }
  3504. if (config.type == 'navigateBack' || config.type == 'back') {
  3505. uni.navigateBack({
  3506. delta: delta });
  3507. }
  3508. } }]);return Router;}();var _default =
  3509. new Router().route;exports.default = _default;
  3510. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3511. /***/ }),
  3512. /***/ 23:
  3513. /*!**********************************************************!*\
  3514. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  3515. \**********************************************************/
  3516. /*! no static exports found */
  3517. /***/ (function(module, exports, __webpack_require__) {
  3518. module.exports = __webpack_require__(/*! regenerator-runtime */ 24);
  3519. /***/ }),
  3520. /***/ 24:
  3521. /*!************************************************************!*\
  3522. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  3523. \************************************************************/
  3524. /*! no static exports found */
  3525. /***/ (function(module, exports, __webpack_require__) {
  3526. /**
  3527. * Copyright (c) 2014-present, Facebook, Inc.
  3528. *
  3529. * This source code is licensed under the MIT license found in the
  3530. * LICENSE file in the root directory of this source tree.
  3531. */
  3532. // This method of obtaining a reference to the global object needs to be
  3533. // kept identical to the way it is obtained in runtime.js
  3534. var g = (function() {
  3535. return this || (typeof self === "object" && self);
  3536. })() || Function("return this")();
  3537. // Use `getOwnPropertyNames` because not all browsers support calling
  3538. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  3539. var hadRuntime = g.regeneratorRuntime &&
  3540. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  3541. // Save the old regeneratorRuntime in case it needs to be restored later.
  3542. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  3543. // Force reevalutation of runtime.js.
  3544. g.regeneratorRuntime = undefined;
  3545. module.exports = __webpack_require__(/*! ./runtime */ 25);
  3546. if (hadRuntime) {
  3547. // Restore the original runtime.
  3548. g.regeneratorRuntime = oldRuntime;
  3549. } else {
  3550. // Remove the global property added by runtime.js.
  3551. try {
  3552. delete g.regeneratorRuntime;
  3553. } catch(e) {
  3554. g.regeneratorRuntime = undefined;
  3555. }
  3556. }
  3557. /***/ }),
  3558. /***/ 25:
  3559. /*!*****************************************************!*\
  3560. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  3561. \*****************************************************/
  3562. /*! no static exports found */
  3563. /***/ (function(module, exports) {
  3564. /**
  3565. * Copyright (c) 2014-present, Facebook, Inc.
  3566. *
  3567. * This source code is licensed under the MIT license found in the
  3568. * LICENSE file in the root directory of this source tree.
  3569. */
  3570. !(function(global) {
  3571. "use strict";
  3572. var Op = Object.prototype;
  3573. var hasOwn = Op.hasOwnProperty;
  3574. var undefined; // More compressible than void 0.
  3575. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  3576. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  3577. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  3578. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  3579. var inModule = typeof module === "object";
  3580. var runtime = global.regeneratorRuntime;
  3581. if (runtime) {
  3582. if (inModule) {
  3583. // If regeneratorRuntime is defined globally and we're in a module,
  3584. // make the exports object identical to regeneratorRuntime.
  3585. module.exports = runtime;
  3586. }
  3587. // Don't bother evaluating the rest of this file if the runtime was
  3588. // already defined globally.
  3589. return;
  3590. }
  3591. // Define the runtime globally (as expected by generated code) as either
  3592. // module.exports (if we're in a module) or a new, empty object.
  3593. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  3594. function wrap(innerFn, outerFn, self, tryLocsList) {
  3595. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  3596. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  3597. var generator = Object.create(protoGenerator.prototype);
  3598. var context = new Context(tryLocsList || []);
  3599. // The ._invoke method unifies the implementations of the .next,
  3600. // .throw, and .return methods.
  3601. generator._invoke = makeInvokeMethod(innerFn, self, context);
  3602. return generator;
  3603. }
  3604. runtime.wrap = wrap;
  3605. // Try/catch helper to minimize deoptimizations. Returns a completion
  3606. // record like context.tryEntries[i].completion. This interface could
  3607. // have been (and was previously) designed to take a closure to be
  3608. // invoked without arguments, but in all the cases we care about we
  3609. // already have an existing method we want to call, so there's no need
  3610. // to create a new function object. We can even get away with assuming
  3611. // the method takes exactly one argument, since that happens to be true
  3612. // in every case, so we don't have to touch the arguments object. The
  3613. // only additional allocation required is the completion record, which
  3614. // has a stable shape and so hopefully should be cheap to allocate.
  3615. function tryCatch(fn, obj, arg) {
  3616. try {
  3617. return { type: "normal", arg: fn.call(obj, arg) };
  3618. } catch (err) {
  3619. return { type: "throw", arg: err };
  3620. }
  3621. }
  3622. var GenStateSuspendedStart = "suspendedStart";
  3623. var GenStateSuspendedYield = "suspendedYield";
  3624. var GenStateExecuting = "executing";
  3625. var GenStateCompleted = "completed";
  3626. // Returning this object from the innerFn has the same effect as
  3627. // breaking out of the dispatch switch statement.
  3628. var ContinueSentinel = {};
  3629. // Dummy constructor functions that we use as the .constructor and
  3630. // .constructor.prototype properties for functions that return Generator
  3631. // objects. For full spec compliance, you may wish to configure your
  3632. // minifier not to mangle the names of these two functions.
  3633. function Generator() {}
  3634. function GeneratorFunction() {}
  3635. function GeneratorFunctionPrototype() {}
  3636. // This is a polyfill for %IteratorPrototype% for environments that
  3637. // don't natively support it.
  3638. var IteratorPrototype = {};
  3639. IteratorPrototype[iteratorSymbol] = function () {
  3640. return this;
  3641. };
  3642. var getProto = Object.getPrototypeOf;
  3643. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  3644. if (NativeIteratorPrototype &&
  3645. NativeIteratorPrototype !== Op &&
  3646. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  3647. // This environment has a native %IteratorPrototype%; use it instead
  3648. // of the polyfill.
  3649. IteratorPrototype = NativeIteratorPrototype;
  3650. }
  3651. var Gp = GeneratorFunctionPrototype.prototype =
  3652. Generator.prototype = Object.create(IteratorPrototype);
  3653. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  3654. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  3655. GeneratorFunctionPrototype[toStringTagSymbol] =
  3656. GeneratorFunction.displayName = "GeneratorFunction";
  3657. // Helper for defining the .next, .throw, and .return methods of the
  3658. // Iterator interface in terms of a single ._invoke method.
  3659. function defineIteratorMethods(prototype) {
  3660. ["next", "throw", "return"].forEach(function(method) {
  3661. prototype[method] = function(arg) {
  3662. return this._invoke(method, arg);
  3663. };
  3664. });
  3665. }
  3666. runtime.isGeneratorFunction = function(genFun) {
  3667. var ctor = typeof genFun === "function" && genFun.constructor;
  3668. return ctor
  3669. ? ctor === GeneratorFunction ||
  3670. // For the native GeneratorFunction constructor, the best we can
  3671. // do is to check its .name property.
  3672. (ctor.displayName || ctor.name) === "GeneratorFunction"
  3673. : false;
  3674. };
  3675. runtime.mark = function(genFun) {
  3676. if (Object.setPrototypeOf) {
  3677. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  3678. } else {
  3679. genFun.__proto__ = GeneratorFunctionPrototype;
  3680. if (!(toStringTagSymbol in genFun)) {
  3681. genFun[toStringTagSymbol] = "GeneratorFunction";
  3682. }
  3683. }
  3684. genFun.prototype = Object.create(Gp);
  3685. return genFun;
  3686. };
  3687. // Within the body of any async function, `await x` is transformed to
  3688. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  3689. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  3690. // meant to be awaited.
  3691. runtime.awrap = function(arg) {
  3692. return { __await: arg };
  3693. };
  3694. function AsyncIterator(generator) {
  3695. function invoke(method, arg, resolve, reject) {
  3696. var record = tryCatch(generator[method], generator, arg);
  3697. if (record.type === "throw") {
  3698. reject(record.arg);
  3699. } else {
  3700. var result = record.arg;
  3701. var value = result.value;
  3702. if (value &&
  3703. typeof value === "object" &&
  3704. hasOwn.call(value, "__await")) {
  3705. return Promise.resolve(value.__await).then(function(value) {
  3706. invoke("next", value, resolve, reject);
  3707. }, function(err) {
  3708. invoke("throw", err, resolve, reject);
  3709. });
  3710. }
  3711. return Promise.resolve(value).then(function(unwrapped) {
  3712. // When a yielded Promise is resolved, its final value becomes
  3713. // the .value of the Promise<{value,done}> result for the
  3714. // current iteration.
  3715. result.value = unwrapped;
  3716. resolve(result);
  3717. }, function(error) {
  3718. // If a rejected Promise was yielded, throw the rejection back
  3719. // into the async generator function so it can be handled there.
  3720. return invoke("throw", error, resolve, reject);
  3721. });
  3722. }
  3723. }
  3724. var previousPromise;
  3725. function enqueue(method, arg) {
  3726. function callInvokeWithMethodAndArg() {
  3727. return new Promise(function(resolve, reject) {
  3728. invoke(method, arg, resolve, reject);
  3729. });
  3730. }
  3731. return previousPromise =
  3732. // If enqueue has been called before, then we want to wait until
  3733. // all previous Promises have been resolved before calling invoke,
  3734. // so that results are always delivered in the correct order. If
  3735. // enqueue has not been called before, then it is important to
  3736. // call invoke immediately, without waiting on a callback to fire,
  3737. // so that the async generator function has the opportunity to do
  3738. // any necessary setup in a predictable way. This predictability
  3739. // is why the Promise constructor synchronously invokes its
  3740. // executor callback, and why async functions synchronously
  3741. // execute code before the first await. Since we implement simple
  3742. // async functions in terms of async generators, it is especially
  3743. // important to get this right, even though it requires care.
  3744. previousPromise ? previousPromise.then(
  3745. callInvokeWithMethodAndArg,
  3746. // Avoid propagating failures to Promises returned by later
  3747. // invocations of the iterator.
  3748. callInvokeWithMethodAndArg
  3749. ) : callInvokeWithMethodAndArg();
  3750. }
  3751. // Define the unified helper method that is used to implement .next,
  3752. // .throw, and .return (see defineIteratorMethods).
  3753. this._invoke = enqueue;
  3754. }
  3755. defineIteratorMethods(AsyncIterator.prototype);
  3756. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  3757. return this;
  3758. };
  3759. runtime.AsyncIterator = AsyncIterator;
  3760. // Note that simple async functions are implemented on top of
  3761. // AsyncIterator objects; they just return a Promise for the value of
  3762. // the final result produced by the iterator.
  3763. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  3764. var iter = new AsyncIterator(
  3765. wrap(innerFn, outerFn, self, tryLocsList)
  3766. );
  3767. return runtime.isGeneratorFunction(outerFn)
  3768. ? iter // If outerFn is a generator, return the full iterator.
  3769. : iter.next().then(function(result) {
  3770. return result.done ? result.value : iter.next();
  3771. });
  3772. };
  3773. function makeInvokeMethod(innerFn, self, context) {
  3774. var state = GenStateSuspendedStart;
  3775. return function invoke(method, arg) {
  3776. if (state === GenStateExecuting) {
  3777. throw new Error("Generator is already running");
  3778. }
  3779. if (state === GenStateCompleted) {
  3780. if (method === "throw") {
  3781. throw arg;
  3782. }
  3783. // Be forgiving, per 25.3.3.3.3 of the spec:
  3784. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  3785. return doneResult();
  3786. }
  3787. context.method = method;
  3788. context.arg = arg;
  3789. while (true) {
  3790. var delegate = context.delegate;
  3791. if (delegate) {
  3792. var delegateResult = maybeInvokeDelegate(delegate, context);
  3793. if (delegateResult) {
  3794. if (delegateResult === ContinueSentinel) continue;
  3795. return delegateResult;
  3796. }
  3797. }
  3798. if (context.method === "next") {
  3799. // Setting context._sent for legacy support of Babel's
  3800. // function.sent implementation.
  3801. context.sent = context._sent = context.arg;
  3802. } else if (context.method === "throw") {
  3803. if (state === GenStateSuspendedStart) {
  3804. state = GenStateCompleted;
  3805. throw context.arg;
  3806. }
  3807. context.dispatchException(context.arg);
  3808. } else if (context.method === "return") {
  3809. context.abrupt("return", context.arg);
  3810. }
  3811. state = GenStateExecuting;
  3812. var record = tryCatch(innerFn, self, context);
  3813. if (record.type === "normal") {
  3814. // If an exception is thrown from innerFn, we leave state ===
  3815. // GenStateExecuting and loop back for another invocation.
  3816. state = context.done
  3817. ? GenStateCompleted
  3818. : GenStateSuspendedYield;
  3819. if (record.arg === ContinueSentinel) {
  3820. continue;
  3821. }
  3822. return {
  3823. value: record.arg,
  3824. done: context.done
  3825. };
  3826. } else if (record.type === "throw") {
  3827. state = GenStateCompleted;
  3828. // Dispatch the exception by looping back around to the
  3829. // context.dispatchException(context.arg) call above.
  3830. context.method = "throw";
  3831. context.arg = record.arg;
  3832. }
  3833. }
  3834. };
  3835. }
  3836. // Call delegate.iterator[context.method](context.arg) and handle the
  3837. // result, either by returning a { value, done } result from the
  3838. // delegate iterator, or by modifying context.method and context.arg,
  3839. // setting context.delegate to null, and returning the ContinueSentinel.
  3840. function maybeInvokeDelegate(delegate, context) {
  3841. var method = delegate.iterator[context.method];
  3842. if (method === undefined) {
  3843. // A .throw or .return when the delegate iterator has no .throw
  3844. // method always terminates the yield* loop.
  3845. context.delegate = null;
  3846. if (context.method === "throw") {
  3847. if (delegate.iterator.return) {
  3848. // If the delegate iterator has a return method, give it a
  3849. // chance to clean up.
  3850. context.method = "return";
  3851. context.arg = undefined;
  3852. maybeInvokeDelegate(delegate, context);
  3853. if (context.method === "throw") {
  3854. // If maybeInvokeDelegate(context) changed context.method from
  3855. // "return" to "throw", let that override the TypeError below.
  3856. return ContinueSentinel;
  3857. }
  3858. }
  3859. context.method = "throw";
  3860. context.arg = new TypeError(
  3861. "The iterator does not provide a 'throw' method");
  3862. }
  3863. return ContinueSentinel;
  3864. }
  3865. var record = tryCatch(method, delegate.iterator, context.arg);
  3866. if (record.type === "throw") {
  3867. context.method = "throw";
  3868. context.arg = record.arg;
  3869. context.delegate = null;
  3870. return ContinueSentinel;
  3871. }
  3872. var info = record.arg;
  3873. if (! info) {
  3874. context.method = "throw";
  3875. context.arg = new TypeError("iterator result is not an object");
  3876. context.delegate = null;
  3877. return ContinueSentinel;
  3878. }
  3879. if (info.done) {
  3880. // Assign the result of the finished delegate to the temporary
  3881. // variable specified by delegate.resultName (see delegateYield).
  3882. context[delegate.resultName] = info.value;
  3883. // Resume execution at the desired location (see delegateYield).
  3884. context.next = delegate.nextLoc;
  3885. // If context.method was "throw" but the delegate handled the
  3886. // exception, let the outer generator proceed normally. If
  3887. // context.method was "next", forget context.arg since it has been
  3888. // "consumed" by the delegate iterator. If context.method was
  3889. // "return", allow the original .return call to continue in the
  3890. // outer generator.
  3891. if (context.method !== "return") {
  3892. context.method = "next";
  3893. context.arg = undefined;
  3894. }
  3895. } else {
  3896. // Re-yield the result returned by the delegate method.
  3897. return info;
  3898. }
  3899. // The delegate iterator is finished, so forget it and continue with
  3900. // the outer generator.
  3901. context.delegate = null;
  3902. return ContinueSentinel;
  3903. }
  3904. // Define Generator.prototype.{next,throw,return} in terms of the
  3905. // unified ._invoke helper method.
  3906. defineIteratorMethods(Gp);
  3907. Gp[toStringTagSymbol] = "Generator";
  3908. // A Generator should always return itself as the iterator object when the
  3909. // @@iterator function is called on it. Some browsers' implementations of the
  3910. // iterator prototype chain incorrectly implement this, causing the Generator
  3911. // object to not be returned from this call. This ensures that doesn't happen.
  3912. // See https://github.com/facebook/regenerator/issues/274 for more details.
  3913. Gp[iteratorSymbol] = function() {
  3914. return this;
  3915. };
  3916. Gp.toString = function() {
  3917. return "[object Generator]";
  3918. };
  3919. function pushTryEntry(locs) {
  3920. var entry = { tryLoc: locs[0] };
  3921. if (1 in locs) {
  3922. entry.catchLoc = locs[1];
  3923. }
  3924. if (2 in locs) {
  3925. entry.finallyLoc = locs[2];
  3926. entry.afterLoc = locs[3];
  3927. }
  3928. this.tryEntries.push(entry);
  3929. }
  3930. function resetTryEntry(entry) {
  3931. var record = entry.completion || {};
  3932. record.type = "normal";
  3933. delete record.arg;
  3934. entry.completion = record;
  3935. }
  3936. function Context(tryLocsList) {
  3937. // The root entry object (effectively a try statement without a catch
  3938. // or a finally block) gives us a place to store values thrown from
  3939. // locations where there is no enclosing try statement.
  3940. this.tryEntries = [{ tryLoc: "root" }];
  3941. tryLocsList.forEach(pushTryEntry, this);
  3942. this.reset(true);
  3943. }
  3944. runtime.keys = function(object) {
  3945. var keys = [];
  3946. for (var key in object) {
  3947. keys.push(key);
  3948. }
  3949. keys.reverse();
  3950. // Rather than returning an object with a next method, we keep
  3951. // things simple and return the next function itself.
  3952. return function next() {
  3953. while (keys.length) {
  3954. var key = keys.pop();
  3955. if (key in object) {
  3956. next.value = key;
  3957. next.done = false;
  3958. return next;
  3959. }
  3960. }
  3961. // To avoid creating an additional object, we just hang the .value
  3962. // and .done properties off the next function object itself. This
  3963. // also ensures that the minifier will not anonymize the function.
  3964. next.done = true;
  3965. return next;
  3966. };
  3967. };
  3968. function values(iterable) {
  3969. if (iterable) {
  3970. var iteratorMethod = iterable[iteratorSymbol];
  3971. if (iteratorMethod) {
  3972. return iteratorMethod.call(iterable);
  3973. }
  3974. if (typeof iterable.next === "function") {
  3975. return iterable;
  3976. }
  3977. if (!isNaN(iterable.length)) {
  3978. var i = -1, next = function next() {
  3979. while (++i < iterable.length) {
  3980. if (hasOwn.call(iterable, i)) {
  3981. next.value = iterable[i];
  3982. next.done = false;
  3983. return next;
  3984. }
  3985. }
  3986. next.value = undefined;
  3987. next.done = true;
  3988. return next;
  3989. };
  3990. return next.next = next;
  3991. }
  3992. }
  3993. // Return an iterator with no values.
  3994. return { next: doneResult };
  3995. }
  3996. runtime.values = values;
  3997. function doneResult() {
  3998. return { value: undefined, done: true };
  3999. }
  4000. Context.prototype = {
  4001. constructor: Context,
  4002. reset: function(skipTempReset) {
  4003. this.prev = 0;
  4004. this.next = 0;
  4005. // Resetting context._sent for legacy support of Babel's
  4006. // function.sent implementation.
  4007. this.sent = this._sent = undefined;
  4008. this.done = false;
  4009. this.delegate = null;
  4010. this.method = "next";
  4011. this.arg = undefined;
  4012. this.tryEntries.forEach(resetTryEntry);
  4013. if (!skipTempReset) {
  4014. for (var name in this) {
  4015. // Not sure about the optimal order of these conditions:
  4016. if (name.charAt(0) === "t" &&
  4017. hasOwn.call(this, name) &&
  4018. !isNaN(+name.slice(1))) {
  4019. this[name] = undefined;
  4020. }
  4021. }
  4022. }
  4023. },
  4024. stop: function() {
  4025. this.done = true;
  4026. var rootEntry = this.tryEntries[0];
  4027. var rootRecord = rootEntry.completion;
  4028. if (rootRecord.type === "throw") {
  4029. throw rootRecord.arg;
  4030. }
  4031. return this.rval;
  4032. },
  4033. dispatchException: function(exception) {
  4034. if (this.done) {
  4035. throw exception;
  4036. }
  4037. var context = this;
  4038. function handle(loc, caught) {
  4039. record.type = "throw";
  4040. record.arg = exception;
  4041. context.next = loc;
  4042. if (caught) {
  4043. // If the dispatched exception was caught by a catch block,
  4044. // then let that catch block handle the exception normally.
  4045. context.method = "next";
  4046. context.arg = undefined;
  4047. }
  4048. return !! caught;
  4049. }
  4050. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4051. var entry = this.tryEntries[i];
  4052. var record = entry.completion;
  4053. if (entry.tryLoc === "root") {
  4054. // Exception thrown outside of any try block that could handle
  4055. // it, so set the completion value of the entire function to
  4056. // throw the exception.
  4057. return handle("end");
  4058. }
  4059. if (entry.tryLoc <= this.prev) {
  4060. var hasCatch = hasOwn.call(entry, "catchLoc");
  4061. var hasFinally = hasOwn.call(entry, "finallyLoc");
  4062. if (hasCatch && hasFinally) {
  4063. if (this.prev < entry.catchLoc) {
  4064. return handle(entry.catchLoc, true);
  4065. } else if (this.prev < entry.finallyLoc) {
  4066. return handle(entry.finallyLoc);
  4067. }
  4068. } else if (hasCatch) {
  4069. if (this.prev < entry.catchLoc) {
  4070. return handle(entry.catchLoc, true);
  4071. }
  4072. } else if (hasFinally) {
  4073. if (this.prev < entry.finallyLoc) {
  4074. return handle(entry.finallyLoc);
  4075. }
  4076. } else {
  4077. throw new Error("try statement without catch or finally");
  4078. }
  4079. }
  4080. }
  4081. },
  4082. abrupt: function(type, arg) {
  4083. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4084. var entry = this.tryEntries[i];
  4085. if (entry.tryLoc <= this.prev &&
  4086. hasOwn.call(entry, "finallyLoc") &&
  4087. this.prev < entry.finallyLoc) {
  4088. var finallyEntry = entry;
  4089. break;
  4090. }
  4091. }
  4092. if (finallyEntry &&
  4093. (type === "break" ||
  4094. type === "continue") &&
  4095. finallyEntry.tryLoc <= arg &&
  4096. arg <= finallyEntry.finallyLoc) {
  4097. // Ignore the finally entry if control is not jumping to a
  4098. // location outside the try/catch block.
  4099. finallyEntry = null;
  4100. }
  4101. var record = finallyEntry ? finallyEntry.completion : {};
  4102. record.type = type;
  4103. record.arg = arg;
  4104. if (finallyEntry) {
  4105. this.method = "next";
  4106. this.next = finallyEntry.finallyLoc;
  4107. return ContinueSentinel;
  4108. }
  4109. return this.complete(record);
  4110. },
  4111. complete: function(record, afterLoc) {
  4112. if (record.type === "throw") {
  4113. throw record.arg;
  4114. }
  4115. if (record.type === "break" ||
  4116. record.type === "continue") {
  4117. this.next = record.arg;
  4118. } else if (record.type === "return") {
  4119. this.rval = this.arg = record.arg;
  4120. this.method = "return";
  4121. this.next = "end";
  4122. } else if (record.type === "normal" && afterLoc) {
  4123. this.next = afterLoc;
  4124. }
  4125. return ContinueSentinel;
  4126. },
  4127. finish: function(finallyLoc) {
  4128. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4129. var entry = this.tryEntries[i];
  4130. if (entry.finallyLoc === finallyLoc) {
  4131. this.complete(entry.completion, entry.afterLoc);
  4132. resetTryEntry(entry);
  4133. return ContinueSentinel;
  4134. }
  4135. }
  4136. },
  4137. "catch": function(tryLoc) {
  4138. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4139. var entry = this.tryEntries[i];
  4140. if (entry.tryLoc === tryLoc) {
  4141. var record = entry.completion;
  4142. if (record.type === "throw") {
  4143. var thrown = record.arg;
  4144. resetTryEntry(entry);
  4145. }
  4146. return thrown;
  4147. }
  4148. }
  4149. // The context.catch method must only be called with a location
  4150. // argument that corresponds to a known catch block.
  4151. throw new Error("illegal catch attempt");
  4152. },
  4153. delegateYield: function(iterable, resultName, nextLoc) {
  4154. this.delegate = {
  4155. iterator: values(iterable),
  4156. resultName: resultName,
  4157. nextLoc: nextLoc
  4158. };
  4159. if (this.method === "next") {
  4160. // Deliberately forget the last sent value so that we don't
  4161. // accidentally pass it on to the delegate.
  4162. this.arg = undefined;
  4163. }
  4164. return ContinueSentinel;
  4165. }
  4166. };
  4167. })(
  4168. // In sloppy mode, unbound `this` refers to the global object, fallback to
  4169. // Function constructor if we're in global strict mode. That is sadly a form
  4170. // of indirect eval which violates Content Security Policy.
  4171. (function() {
  4172. return this || (typeof self === "object" && self);
  4173. })() || Function("return this")()
  4174. );
  4175. /***/ }),
  4176. /***/ 251:
  4177. /*!***********************************!*\
  4178. !*** D:/2022/7/hqshop/api/set.js ***!
  4179. \***********************************/
  4180. /*! no static exports found */
  4181. /***/ (function(module, exports, __webpack_require__) {
  4182. "use strict";
  4183. Object.defineProperty(exports, "__esModule", { value: true });exports.userEdit = userEdit;exports.logout = logout;exports.registerReset = registerReset;exports.binding = binding;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  4184. // 修改用户信息
  4185. function userEdit(data) {
  4186. return (0, _request.default)({
  4187. url: '/api/user/edit',
  4188. method: 'post',
  4189. data: data });
  4190. }
  4191. //退出登录
  4192. function logout(data) {
  4193. return (0, _request.default)({
  4194. url: '/api/logout',
  4195. method: 'get',
  4196. data: data });
  4197. }
  4198. //修改密码
  4199. function registerReset(data) {
  4200. return (0, _request.default)({
  4201. url: '/api/register/reset',
  4202. method: 'post',
  4203. data: data });
  4204. }
  4205. //绑定手机
  4206. function binding(data) {
  4207. return (0, _request.default)({
  4208. url: '/api/binding',
  4209. method: 'post',
  4210. data: data });
  4211. }
  4212. /***/ }),
  4213. /***/ 26:
  4214. /*!*************************************************************!*\
  4215. !*** D:/2022/7/hqshop/uview-ui/libs/function/timeFormat.js ***!
  4216. \*************************************************************/
  4217. /*! no static exports found */
  4218. /***/ (function(module, exports, __webpack_require__) {
  4219. "use strict";
  4220. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  4221. // 所以这里做一个兼容polyfill的兼容处理
  4222. if (!String.prototype.padStart) {
  4223. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  4224. String.prototype.padStart = function (maxLength) {var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  4225. if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError(
  4226. 'fillString must be String');
  4227. var str = this;
  4228. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  4229. if (str.length >= maxLength) return String(str);
  4230. var fillLength = maxLength - str.length,
  4231. times = Math.ceil(fillLength / fillString.length);
  4232. while (times >>= 1) {
  4233. fillString += fillString;
  4234. if (times === 1) {
  4235. fillString += fillString;
  4236. }
  4237. }
  4238. return fillString.slice(0, fillLength) + str;
  4239. };
  4240. }
  4241. // 其他更多是格式化有如下:
  4242. // yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
  4243. function timeFormat() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var fmt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  4244. // 如果为null,则格式化当前时间
  4245. if (!dateTime) dateTime = Number(new Date());
  4246. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  4247. if (dateTime.toString().length == 10) dateTime *= 1000;
  4248. var date = new Date(dateTime);
  4249. var ret;
  4250. var opt = {
  4251. "y+": date.getFullYear().toString(), // 年
  4252. "m+": (date.getMonth() + 1).toString(), // 月
  4253. "d+": date.getDate().toString(), // 日
  4254. "h+": date.getHours().toString(), // 时
  4255. "M+": date.getMinutes().toString(), // 分
  4256. "s+": date.getSeconds().toString() // 秒
  4257. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  4258. };
  4259. for (var k in opt) {
  4260. ret = new RegExp("(" + k + ")").exec(fmt);
  4261. if (ret) {
  4262. fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0"));
  4263. };
  4264. };
  4265. return fmt;
  4266. }var _default =
  4267. timeFormat;exports.default = _default;
  4268. /***/ }),
  4269. /***/ 27:
  4270. /*!***********************************************************!*\
  4271. !*** D:/2022/7/hqshop/uview-ui/libs/function/timeFrom.js ***!
  4272. \***********************************************************/
  4273. /*! no static exports found */
  4274. /***/ (function(module, exports, __webpack_require__) {
  4275. "use strict";
  4276. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ../../libs/function/timeFormat.js */ 26));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  4277. /**
  4278. * 时间戳转为多久之前
  4279. * @param String timestamp 时间戳
  4280. * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  4281. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  4282. */
  4283. function timeFrom() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  4284. // 如果为null,则格式化当前时间
  4285. if (!dateTime) dateTime = Number(new Date());
  4286. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  4287. if (dateTime.toString().length == 10) dateTime *= 1000;
  4288. var timestamp = +new Date(Number(dateTime));
  4289. var timer = (Number(new Date()) - timestamp) / 1000;
  4290. // 如果小于5分钟,则返回"刚刚",其他以此类推
  4291. var tips = '';
  4292. switch (true) {
  4293. case timer < 300:
  4294. tips = '刚刚';
  4295. break;
  4296. case timer >= 300 && timer < 3600:
  4297. tips = parseInt(timer / 60) + '分钟前';
  4298. break;
  4299. case timer >= 3600 && timer < 86400:
  4300. tips = parseInt(timer / 3600) + '小时前';
  4301. break;
  4302. case timer >= 86400 && timer < 2592000:
  4303. tips = parseInt(timer / 86400) + '天前';
  4304. break;
  4305. default:
  4306. // 如果format为false,则无论什么时间戳,都显示xx之前
  4307. if (format === false) {
  4308. if (timer >= 2592000 && timer < 365 * 86400) {
  4309. tips = parseInt(timer / (86400 * 30)) + '个月前';
  4310. } else {
  4311. tips = parseInt(timer / (86400 * 365)) + '年前';
  4312. }
  4313. } else {
  4314. tips = (0, _timeFormat.default)(timestamp, format);
  4315. }}
  4316. return tips;
  4317. }var _default =
  4318. timeFrom;exports.default = _default;
  4319. /***/ }),
  4320. /***/ 28:
  4321. /*!****************************************************************!*\
  4322. !*** D:/2022/7/hqshop/uview-ui/libs/function/colorGradient.js ***!
  4323. \****************************************************************/
  4324. /*! no static exports found */
  4325. /***/ (function(module, exports, __webpack_require__) {
  4326. "use strict";
  4327. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4328. * 求两个颜色之间的渐变值
  4329. * @param {string} startColor 开始的颜色
  4330. * @param {string} endColor 结束的颜色
  4331. * @param {number} step 颜色等分的份额
  4332. * */
  4333. function colorGradient() {var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  4334. var startRGB = hexToRgb(startColor, false); //转换为rgb数组模式
  4335. var startR = startRGB[0];
  4336. var startG = startRGB[1];
  4337. var startB = startRGB[2];
  4338. var endRGB = hexToRgb(endColor, false);
  4339. var endR = endRGB[0];
  4340. var endG = endRGB[1];
  4341. var endB = endRGB[2];
  4342. var sR = (endR - startR) / step; //总差值
  4343. var sG = (endG - startG) / step;
  4344. var sB = (endB - startB) / step;
  4345. var colorArr = [];
  4346. for (var i = 0; i < step; i++) {
  4347. //计算每一步的hex值
  4348. var hex = rgbToHex('rgb(' + Math.round(sR * i + startR) + ',' + Math.round(sG * i + startG) + ',' + Math.round(sB *
  4349. i + startB) + ')');
  4350. colorArr.push(hex);
  4351. }
  4352. return colorArr;
  4353. }
  4354. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  4355. function hexToRgb(sColor) {var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  4356. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  4357. sColor = sColor.toLowerCase();
  4358. if (sColor && reg.test(sColor)) {
  4359. if (sColor.length === 4) {
  4360. var sColorNew = "#";
  4361. for (var i = 1; i < 4; i += 1) {
  4362. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  4363. }
  4364. sColor = sColorNew;
  4365. }
  4366. //处理六位的颜色值
  4367. var sColorChange = [];
  4368. for (var _i = 1; _i < 7; _i += 2) {
  4369. sColorChange.push(parseInt("0x" + sColor.slice(_i, _i + 2)));
  4370. }
  4371. if (!str) {
  4372. return sColorChange;
  4373. } else {
  4374. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  4375. }
  4376. } else if (/^(rgb|RGB)/.test(sColor)) {
  4377. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  4378. return arr.map(function (val) {return Number(val);});
  4379. } else {
  4380. return sColor;
  4381. }
  4382. };
  4383. // 将rgb表示方式转换为hex表示方式
  4384. function rgbToHex(rgb) {
  4385. var _this = rgb;
  4386. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  4387. if (/^(rgb|RGB)/.test(_this)) {
  4388. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  4389. var strHex = "#";
  4390. for (var i = 0; i < aColor.length; i++) {
  4391. var hex = Number(aColor[i]).toString(16);
  4392. hex = String(hex).length == 1 ? 0 + '' + hex : hex; // 保证每个rgb的值为2位
  4393. if (hex === "0") {
  4394. hex += hex;
  4395. }
  4396. strHex += hex;
  4397. }
  4398. if (strHex.length !== 7) {
  4399. strHex = _this;
  4400. }
  4401. return strHex;
  4402. } else if (reg.test(_this)) {
  4403. var aNum = _this.replace(/#/, "").split("");
  4404. if (aNum.length === 6) {
  4405. return _this;
  4406. } else if (aNum.length === 3) {
  4407. var numHex = "#";
  4408. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  4409. numHex += aNum[_i2] + aNum[_i2];
  4410. }
  4411. return numHex;
  4412. }
  4413. } else {
  4414. return _this;
  4415. }
  4416. }
  4417. /**
  4418. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  4419. * sHex为传入的十六进制的色值
  4420. * alpha为rgba的透明度
  4421. */
  4422. function colorToRgba(color) {var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.3;
  4423. color = rgbToHex(color);
  4424. // 十六进制颜色值的正则表达式
  4425. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  4426. /* 16进制颜色转为RGB格式 */
  4427. var sColor = color.toLowerCase();
  4428. if (sColor && reg.test(sColor)) {
  4429. if (sColor.length === 4) {
  4430. var sColorNew = '#';
  4431. for (var i = 1; i < 4; i += 1) {
  4432. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  4433. }
  4434. sColor = sColorNew;
  4435. }
  4436. // 处理六位的颜色值
  4437. var sColorChange = [];
  4438. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  4439. sColorChange.push(parseInt('0x' + sColor.slice(_i3, _i3 + 2)));
  4440. }
  4441. // return sColorChange.join(',')
  4442. return 'rgba(' + sColorChange.join(',') + ',' + alpha + ')';
  4443. } else
  4444. {
  4445. return sColor;
  4446. }
  4447. }var _default =
  4448. {
  4449. colorGradient: colorGradient,
  4450. hexToRgb: hexToRgb,
  4451. rgbToHex: rgbToHex,
  4452. colorToRgba: colorToRgba };exports.default = _default;
  4453. /***/ }),
  4454. /***/ 29:
  4455. /*!*******************************************************!*\
  4456. !*** D:/2022/7/hqshop/uview-ui/libs/function/guid.js ***!
  4457. \*******************************************************/
  4458. /*! no static exports found */
  4459. /***/ (function(module, exports, __webpack_require__) {
  4460. "use strict";
  4461. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4462. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  4463. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  4464. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  4465. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  4466. * v-for的时候,推荐使用后端返回的id而不是循环的index
  4467. * @param {Number} len uuid的长度
  4468. * @param {Boolean} firstU 将返回的首字母置为"u"
  4469. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  4470. */
  4471. function guid() {var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  4472. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  4473. var uuid = [];
  4474. radix = radix || chars.length;
  4475. if (len) {
  4476. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  4477. for (var i = 0; i < len; i++) {uuid[i] = chars[0 | Math.random() * radix];}
  4478. } else {
  4479. var r;
  4480. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  4481. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  4482. uuid[14] = '4';
  4483. for (var _i = 0; _i < 36; _i++) {
  4484. if (!uuid[_i]) {
  4485. r = 0 | Math.random() * 16;
  4486. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  4487. }
  4488. }
  4489. }
  4490. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  4491. if (firstU) {
  4492. uuid.shift();
  4493. return 'u' + uuid.join('');
  4494. } else {
  4495. return uuid.join('');
  4496. }
  4497. }var _default =
  4498. guid;exports.default = _default;
  4499. /***/ }),
  4500. /***/ 3:
  4501. /*!*************************************************************!*\
  4502. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  4503. \*************************************************************/
  4504. /*! no static exports found */
  4505. /***/ (function(module, exports, __webpack_require__) {
  4506. "use strict";
  4507. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  4508. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  4509. var defaultDelimiters = ['{', '}'];var
  4510. BaseFormatter = /*#__PURE__*/function () {
  4511. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  4512. this._caches = Object.create(null);
  4513. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  4514. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  4515. if (!values) {
  4516. return [message];
  4517. }
  4518. var tokens = this._caches[message];
  4519. if (!tokens) {
  4520. tokens = parse(message, delimiters);
  4521. this._caches[message] = tokens;
  4522. }
  4523. return compile(tokens, values);
  4524. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  4525. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  4526. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  4527. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  4528. var tokens = [];
  4529. var position = 0;
  4530. var text = '';
  4531. while (position < format.length) {
  4532. var char = format[position++];
  4533. if (char === startDelimiter) {
  4534. if (text) {
  4535. tokens.push({ type: 'text', value: text });
  4536. }
  4537. text = '';
  4538. var sub = '';
  4539. char = format[position++];
  4540. while (char !== undefined && char !== endDelimiter) {
  4541. sub += char;
  4542. char = format[position++];
  4543. }
  4544. var isClosed = char === endDelimiter;
  4545. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  4546. 'list' :
  4547. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  4548. 'named' :
  4549. 'unknown';
  4550. tokens.push({ value: sub, type: type });
  4551. }
  4552. // else if (char === '%') {
  4553. // // when found rails i18n syntax, skip text capture
  4554. // if (format[position] !== '{') {
  4555. // text += char
  4556. // }
  4557. // }
  4558. else {
  4559. text += char;
  4560. }
  4561. }
  4562. text && tokens.push({ type: 'text', value: text });
  4563. return tokens;
  4564. }
  4565. function compile(tokens, values) {
  4566. var compiled = [];
  4567. var index = 0;
  4568. var mode = isArray(values) ?
  4569. 'list' :
  4570. isObject(values) ?
  4571. 'named' :
  4572. 'unknown';
  4573. if (mode === 'unknown') {
  4574. return compiled;
  4575. }
  4576. while (index < tokens.length) {
  4577. var token = tokens[index];
  4578. switch (token.type) {
  4579. case 'text':
  4580. compiled.push(token.value);
  4581. break;
  4582. case 'list':
  4583. compiled.push(values[parseInt(token.value, 10)]);
  4584. break;
  4585. case 'named':
  4586. if (mode === 'named') {
  4587. compiled.push(values[token.value]);
  4588. } else
  4589. {
  4590. if (true) {
  4591. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  4592. }
  4593. }
  4594. break;
  4595. case 'unknown':
  4596. if (true) {
  4597. console.warn("Detect 'unknown' type of token!");
  4598. }
  4599. break;}
  4600. index++;
  4601. }
  4602. return compiled;
  4603. }
  4604. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  4605. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  4606. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  4607. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  4608. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  4609. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4610. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  4611. var defaultFormatter = new BaseFormatter();
  4612. function include(str, parts) {
  4613. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  4614. }
  4615. function startsWith(str, parts) {
  4616. return parts.find(function (part) {return str.indexOf(part) === 0;});
  4617. }
  4618. function normalizeLocale(locale, messages) {
  4619. if (!locale) {
  4620. return;
  4621. }
  4622. locale = locale.trim().replace(/_/g, '-');
  4623. if (messages && messages[locale]) {
  4624. return locale;
  4625. }
  4626. locale = locale.toLowerCase();
  4627. if (locale.indexOf('zh') === 0) {
  4628. if (locale.indexOf('-hans') > -1) {
  4629. return LOCALE_ZH_HANS;
  4630. }
  4631. if (locale.indexOf('-hant') > -1) {
  4632. return LOCALE_ZH_HANT;
  4633. }
  4634. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  4635. return LOCALE_ZH_HANT;
  4636. }
  4637. return LOCALE_ZH_HANS;
  4638. }
  4639. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  4640. if (lang) {
  4641. return lang;
  4642. }
  4643. }var
  4644. I18n = /*#__PURE__*/function () {
  4645. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  4646. this.locale = LOCALE_EN;
  4647. this.fallbackLocale = LOCALE_EN;
  4648. this.message = {};
  4649. this.messages = {};
  4650. this.watchers = [];
  4651. if (fallbackLocale) {
  4652. this.fallbackLocale = fallbackLocale;
  4653. }
  4654. this.formater = formater || defaultFormatter;
  4655. this.messages = messages || {};
  4656. this.setLocale(locale || LOCALE_EN);
  4657. if (watcher) {
  4658. this.watchLocale(watcher);
  4659. }
  4660. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  4661. locale) {var _this = this;
  4662. var oldLocale = this.locale;
  4663. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  4664. if (!this.messages[this.locale]) {
  4665. // 可能初始化时不存在
  4666. this.messages[this.locale] = {};
  4667. }
  4668. this.message = this.messages[this.locale];
  4669. // 仅发生变化时,通知
  4670. if (oldLocale !== this.locale) {
  4671. this.watchers.forEach(function (watcher) {
  4672. watcher(_this.locale, oldLocale);
  4673. });
  4674. }
  4675. } }, { key: "getLocale", value: function getLocale()
  4676. {
  4677. return this.locale;
  4678. } }, { key: "watchLocale", value: function watchLocale(
  4679. fn) {var _this2 = this;
  4680. var index = this.watchers.push(fn) - 1;
  4681. return function () {
  4682. _this2.watchers.splice(index, 1);
  4683. };
  4684. } }, { key: "add", value: function add(
  4685. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  4686. var curMessages = this.messages[locale];
  4687. if (curMessages) {
  4688. if (override) {
  4689. Object.assign(curMessages, message);
  4690. } else
  4691. {
  4692. Object.keys(message).forEach(function (key) {
  4693. if (!hasOwn(curMessages, key)) {
  4694. curMessages[key] = message[key];
  4695. }
  4696. });
  4697. }
  4698. } else
  4699. {
  4700. this.messages[locale] = message;
  4701. }
  4702. } }, { key: "f", value: function f(
  4703. message, values, delimiters) {
  4704. return this.formater.interpolate(message, values, delimiters).join('');
  4705. } }, { key: "t", value: function t(
  4706. key, locale, values) {
  4707. var message = this.message;
  4708. if (typeof locale === 'string') {
  4709. locale = normalizeLocale(locale, this.messages);
  4710. locale && (message = this.messages[locale]);
  4711. } else
  4712. {
  4713. values = locale;
  4714. }
  4715. if (!hasOwn(message, key)) {
  4716. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  4717. return key;
  4718. }
  4719. return this.formater.interpolate(message[key], values).join('');
  4720. } }]);return I18n;}();exports.I18n = I18n;
  4721. function watchAppLocale(appVm, i18n) {
  4722. // 需要保证 watch 的触发在组件渲染之前
  4723. if (appVm.$watchLocale) {
  4724. // vue2
  4725. appVm.$watchLocale(function (newLocale) {
  4726. i18n.setLocale(newLocale);
  4727. });
  4728. } else
  4729. {
  4730. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  4731. i18n.setLocale(newLocale);
  4732. });
  4733. }
  4734. }
  4735. function getDefaultLocale() {
  4736. if (typeof uni !== 'undefined' && uni.getLocale) {
  4737. return uni.getLocale();
  4738. }
  4739. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  4740. if (typeof global !== 'undefined' && global.getLocale) {
  4741. return global.getLocale();
  4742. }
  4743. return LOCALE_EN;
  4744. }
  4745. function initVueI18n(locale) {var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;var watcher = arguments.length > 3 ? arguments[3] : undefined;
  4746. // 兼容旧版本入参
  4747. if (typeof locale !== 'string') {var _ref4 =
  4748. [
  4749. messages,
  4750. locale];locale = _ref4[0];messages = _ref4[1];
  4751. }
  4752. if (typeof locale !== 'string') {
  4753. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  4754. locale = getDefaultLocale();
  4755. }
  4756. if (typeof fallbackLocale !== 'string') {
  4757. fallbackLocale =
  4758. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  4759. LOCALE_EN;
  4760. }
  4761. var i18n = new I18n({
  4762. locale: locale,
  4763. fallbackLocale: fallbackLocale,
  4764. messages: messages,
  4765. watcher: watcher });
  4766. var _t = function t(key, values) {
  4767. if (typeof getApp !== 'function') {
  4768. // app view
  4769. /* eslint-disable no-func-assign */
  4770. _t = function t(key, values) {
  4771. return i18n.t(key, values);
  4772. };
  4773. } else
  4774. {
  4775. var isWatchedAppLocale = false;
  4776. _t = function t(key, values) {
  4777. var appVm = getApp().$vm;
  4778. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  4779. // options: {
  4780. // type: Array,
  4781. // default () {
  4782. // return [{
  4783. // icon: 'shop',
  4784. // text: t("uni-goods-nav.options.shop"),
  4785. // }, {
  4786. // icon: 'cart',
  4787. // text: t("uni-goods-nav.options.cart")
  4788. // }]
  4789. // }
  4790. // },
  4791. if (appVm) {
  4792. // 触发响应式
  4793. appVm.$locale;
  4794. if (!isWatchedAppLocale) {
  4795. isWatchedAppLocale = true;
  4796. watchAppLocale(appVm, i18n);
  4797. }
  4798. }
  4799. return i18n.t(key, values);
  4800. };
  4801. }
  4802. return _t(key, values);
  4803. };
  4804. return {
  4805. i18n: i18n,
  4806. f: function f(message, values, delimiters) {
  4807. return i18n.f(message, values, delimiters);
  4808. },
  4809. t: function t(key, values) {
  4810. return _t(key, values);
  4811. },
  4812. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  4813. return i18n.add(locale, message, override);
  4814. },
  4815. watch: function watch(fn) {
  4816. return i18n.watchLocale(fn);
  4817. },
  4818. getLocale: function getLocale() {
  4819. return i18n.getLocale();
  4820. },
  4821. setLocale: function setLocale(newLocale) {
  4822. return i18n.setLocale(newLocale);
  4823. } };
  4824. }
  4825. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  4826. var formater;
  4827. function hasI18nJson(jsonObj, delimiters) {
  4828. if (!formater) {
  4829. formater = new BaseFormatter();
  4830. }
  4831. return walkJsonObj(jsonObj, function (jsonObj, key) {
  4832. var value = jsonObj[key];
  4833. if (isString(value)) {
  4834. if (isI18nStr(value, delimiters)) {
  4835. return true;
  4836. }
  4837. } else
  4838. {
  4839. return hasI18nJson(value, delimiters);
  4840. }
  4841. });
  4842. }
  4843. function parseI18nJson(jsonObj, values, delimiters) {
  4844. if (!formater) {
  4845. formater = new BaseFormatter();
  4846. }
  4847. walkJsonObj(jsonObj, function (jsonObj, key) {
  4848. var value = jsonObj[key];
  4849. if (isString(value)) {
  4850. if (isI18nStr(value, delimiters)) {
  4851. jsonObj[key] = compileStr(value, values, delimiters);
  4852. }
  4853. } else
  4854. {
  4855. parseI18nJson(value, values, delimiters);
  4856. }
  4857. });
  4858. return jsonObj;
  4859. }
  4860. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  4861. if (!isI18nStr(jsonStr, delimiters)) {
  4862. return jsonStr;
  4863. }
  4864. if (!formater) {
  4865. formater = new BaseFormatter();
  4866. }
  4867. var localeValues = [];
  4868. Object.keys(locales).forEach(function (name) {
  4869. if (name !== locale) {
  4870. localeValues.push({
  4871. locale: name,
  4872. values: locales[name] });
  4873. }
  4874. });
  4875. localeValues.unshift({ locale: locale, values: locales[locale] });
  4876. try {
  4877. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  4878. }
  4879. catch (e) {}
  4880. return jsonStr;
  4881. }
  4882. function isI18nStr(value, delimiters) {
  4883. return value.indexOf(delimiters[0]) > -1;
  4884. }
  4885. function compileStr(value, values, delimiters) {
  4886. return formater.interpolate(value, values, delimiters).join('');
  4887. }
  4888. function compileValue(jsonObj, key, localeValues, delimiters) {
  4889. var value = jsonObj[key];
  4890. if (isString(value)) {
  4891. // 存在国际化
  4892. if (isI18nStr(value, delimiters)) {
  4893. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  4894. if (localeValues.length > 1) {
  4895. // 格式化国际化语言
  4896. var valueLocales = jsonObj[key + 'Locales'] = {};
  4897. localeValues.forEach(function (localValue) {
  4898. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  4899. });
  4900. }
  4901. }
  4902. } else
  4903. {
  4904. compileJsonObj(value, localeValues, delimiters);
  4905. }
  4906. }
  4907. function compileJsonObj(jsonObj, localeValues, delimiters) {
  4908. walkJsonObj(jsonObj, function (jsonObj, key) {
  4909. compileValue(jsonObj, key, localeValues, delimiters);
  4910. });
  4911. return jsonObj;
  4912. }
  4913. function walkJsonObj(jsonObj, walk) {
  4914. if (isArray(jsonObj)) {
  4915. for (var i = 0; i < jsonObj.length; i++) {
  4916. if (walk(jsonObj, i)) {
  4917. return true;
  4918. }
  4919. }
  4920. } else
  4921. if (isObject(jsonObj)) {
  4922. for (var key in jsonObj) {
  4923. if (walk(jsonObj, key)) {
  4924. return true;
  4925. }
  4926. }
  4927. }
  4928. return false;
  4929. }
  4930. function resolveLocale(locales) {
  4931. return function (locale) {
  4932. if (!locale) {
  4933. return locale;
  4934. }
  4935. locale = normalizeLocale(locale) || locale;
  4936. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  4937. };
  4938. }
  4939. function resolveLocaleChain(locale) {
  4940. var chain = [];
  4941. var tokens = locale.split('-');
  4942. while (tokens.length) {
  4943. chain.push(tokens.join('-'));
  4944. tokens.pop();
  4945. }
  4946. return chain;
  4947. }
  4948. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  4949. /***/ }),
  4950. /***/ 30:
  4951. /*!********************************************************!*\
  4952. !*** D:/2022/7/hqshop/uview-ui/libs/function/color.js ***!
  4953. \********************************************************/
  4954. /*! no static exports found */
  4955. /***/ (function(module, exports, __webpack_require__) {
  4956. "use strict";
  4957. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  4958. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  4959. var color = {
  4960. primary: "#2979ff",
  4961. primaryDark: "#2b85e4",
  4962. primaryDisabled: "#a0cfff",
  4963. primaryLight: "#ecf5ff",
  4964. bgColor: "#f3f4f6",
  4965. info: "#909399",
  4966. infoDark: "#82848a",
  4967. infoDisabled: "#c8c9cc",
  4968. infoLight: "#f4f4f5",
  4969. warning: "#ff9900",
  4970. warningDark: "#f29100",
  4971. warningDisabled: "#fcbd71",
  4972. warningLight: "#fdf6ec",
  4973. error: "#fa3534",
  4974. errorDark: "#dd6161",
  4975. errorDisabled: "#fab6b6",
  4976. errorLight: "#fef0f0",
  4977. success: "#19be6b",
  4978. successDark: "#18b566",
  4979. successDisabled: "#71d5a1",
  4980. successLight: "#dbf1e1",
  4981. mainColor: "#303133",
  4982. contentColor: "#606266",
  4983. tipsColor: "#909399",
  4984. lightColor: "#c0c4cc",
  4985. borderColor: "#e4e7ed" };var _default =
  4986. color;exports.default = _default;
  4987. /***/ }),
  4988. /***/ 31:
  4989. /*!************************************************************!*\
  4990. !*** D:/2022/7/hqshop/uview-ui/libs/function/type2icon.js ***!
  4991. \************************************************************/
  4992. /*! no static exports found */
  4993. /***/ (function(module, exports, __webpack_require__) {
  4994. "use strict";
  4995. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4996. * 根据主题type值,获取对应的图标
  4997. * @param String type 主题名称,primary|info|error|warning|success
  4998. * @param String fill 是否使用fill填充实体的图标
  4999. */
  5000. function type2icon() {var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  5001. // 如果非预置值,默认为success
  5002. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  5003. var iconName = '';
  5004. // 目前(2019-12-12),info和primary使用同一个图标
  5005. switch (type) {
  5006. case 'primary':
  5007. iconName = 'info-circle';
  5008. break;
  5009. case 'info':
  5010. iconName = 'info-circle';
  5011. break;
  5012. case 'error':
  5013. iconName = 'close-circle';
  5014. break;
  5015. case 'warning':
  5016. iconName = 'error-circle';
  5017. break;
  5018. case 'success':
  5019. iconName = 'checkmark-circle';
  5020. break;
  5021. default:
  5022. iconName = 'checkmark-circle';}
  5023. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  5024. if (fill) iconName += '-fill';
  5025. return iconName;
  5026. }var _default =
  5027. type2icon;exports.default = _default;
  5028. /***/ }),
  5029. /***/ 32:
  5030. /*!**************************************************************!*\
  5031. !*** D:/2022/7/hqshop/uview-ui/libs/function/randomArray.js ***!
  5032. \**************************************************************/
  5033. /*! no static exports found */
  5034. /***/ (function(module, exports, __webpack_require__) {
  5035. "use strict";
  5036. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 打乱数组
  5037. function randomArray() {var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  5038. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  5039. return array.sort(function () {return Math.random() - 0.5;});
  5040. }var _default =
  5041. randomArray;exports.default = _default;
  5042. /***/ }),
  5043. /***/ 322:
  5044. /*!******************************************!*\
  5045. !*** D:/2022/7/hqshop/utils/rocessor.js ***!
  5046. \******************************************/
  5047. /*! no static exports found */
  5048. /***/ (function(module, exports, __webpack_require__) {
  5049. "use strict";
  5050. Object.defineProperty(exports, "__esModule", { value: true });exports.isCardNo = isCardNo;exports.getMoneyStyle = getMoneyStyle;exports.timeComputed = timeComputed;exports.openMap = openMap;exports.getTime = getTime; //身份证验证
  5051. function isCardNo(card) {
  5052. // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
  5053. var reg =
  5054. /(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;
  5055. if (reg.test(card) === false) {
  5056. console.log(card);
  5057. return false;
  5058. }
  5059. return true;
  5060. }
  5061. // 金额显示变化
  5062. function getMoneyStyle() {var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  5063. if (typeof value == 'string') {
  5064. value = (+value).toFixed(2);
  5065. }
  5066. if (typeof value == 'number') {
  5067. value = value.toFixed(2);
  5068. }
  5069. // 将字符串转为数组
  5070. var n = value.split("");
  5071. // 反转数组并复制循环处理
  5072. var arr = n.reverse().map(function (e, ind, ar) {
  5073. // 判断当前下标是否为3的整数倍数且不为最后一个下标
  5074. if (ind % 3 == 0 && ind / 3 > 1 && ind != ar.length) {
  5075. return e + ',';
  5076. } else {
  5077. return e;
  5078. }
  5079. });
  5080. // 反转数组回复原来排序并合并回字符串
  5081. arr = arr.reverse().join('');
  5082. return arr;
  5083. }
  5084. // 倒计时计算
  5085. // 计算倒计时时间
  5086. function timeComputed(time) {
  5087. // 获取当前时间
  5088. var actTime = new Date().getTime();
  5089. console.log(actTime);
  5090. // 获取到期时间
  5091. var stopTime = time * 1000 - actTime;
  5092. var over = false;
  5093. // 判断是否小于0
  5094. if (stopTime < 0) {
  5095. over = true;
  5096. stopTime = stopTime * -1;
  5097. }
  5098. var day = Math.floor(stopTime / 1000 / 60 / 60 / 24); //获取剩余天数
  5099. var hours = Math.floor(stopTime / 1000 / 60 / 60 % 24); //获取剩余小时数
  5100. var minutes = Math.floor(stopTime / 1000 / 60 % 60); //获取分钟
  5101. var seconds = Math.floor(stopTime / 1000 % 60); //获取秒数
  5102. return {
  5103. over: over,
  5104. hours: hours, //倒计时小时数
  5105. minutes: minutes, //倒计时分钟数
  5106. seconds: seconds, //倒计时秒数
  5107. day: day //倒计时天数
  5108. };
  5109. }
  5110. // 调用打开地图方法
  5111. function openMap(e) {
  5112. var that = this;
  5113. return new Promise(function (resolve, reject) {
  5114. wx.getSetting({
  5115. success: function success(res) {
  5116. //这里判断是否有地位权限
  5117. if (!res.authSetting['scope.userLocation']) {
  5118. wx.showModal({
  5119. title: '提示',
  5120. content: '请求获取位置权限',
  5121. success: function success(res) {
  5122. if (res.confirm == false) {
  5123. // 授权失败
  5124. reject();
  5125. return false;
  5126. }
  5127. wx.openSetting({
  5128. success: function success(res) {
  5129. //如果再次拒绝则返回页面并提示
  5130. if (!res.authSetting['scope.userLocation']) {
  5131. wx.showToast({
  5132. title: '此功能需获取位置信息,请重新设置',
  5133. duration: 3000,
  5134. icon: 'none' });
  5135. } else {
  5136. //允许授权,调用地图
  5137. resolve();
  5138. }
  5139. } });
  5140. } });
  5141. } else {
  5142. //如果有定位权限,调用地图
  5143. resolve();
  5144. }
  5145. } });
  5146. });
  5147. }
  5148. //时间戳转换成时间
  5149. function getTime(time) {
  5150. var num = 13 - (time + '').length;
  5151. var l = 1; //倍数
  5152. for (var i = 0; i < num; i++) {
  5153. l += '0';
  5154. }
  5155. // 重新解析为数字
  5156. l = parseInt(l);
  5157. var date = new Date(parseInt(time) * l);
  5158. var year = date.getFullYear();
  5159. var mon = date.getMonth() + 1;
  5160. var day = date.getDate();
  5161. var hours = date.getHours();
  5162. var minu = date.getMinutes();
  5163. var sec = date.getSeconds();
  5164. return year + '-' + mon + '-' + day + ' ' + hours + ':' + minu + ':' + sec;
  5165. }
  5166. /***/ }),
  5167. /***/ 33:
  5168. /*!**********************************************************!*\
  5169. !*** D:/2022/7/hqshop/uview-ui/libs/function/addUnit.js ***!
  5170. \**********************************************************/
  5171. /*! no static exports found */
  5172. /***/ (function(module, exports, __webpack_require__) {
  5173. "use strict";
  5174. Object.defineProperty(exports, "__esModule", { value: true });exports.default = addUnit;var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 20));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  5175. // 添加单位,如果有rpx,%,px等单位结尾或者值为auto,直接返回,否则加上rpx单位结尾
  5176. function addUnit() {var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rpx';
  5177. value = String(value);
  5178. // 用uView内置验证规则中的number判断是否为数值
  5179. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  5180. }
  5181. /***/ }),
  5182. /***/ 34:
  5183. /*!*********************************************************!*\
  5184. !*** D:/2022/7/hqshop/uview-ui/libs/function/random.js ***!
  5185. \*********************************************************/
  5186. /*! no static exports found */
  5187. /***/ (function(module, exports, __webpack_require__) {
  5188. "use strict";
  5189. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function random(min, max) {
  5190. if (min >= 0 && max > 0 && max >= min) {
  5191. var gab = max - min + 1;
  5192. return Math.floor(Math.random() * gab + min);
  5193. } else {
  5194. return 0;
  5195. }
  5196. }var _default =
  5197. random;exports.default = _default;
  5198. /***/ }),
  5199. /***/ 35:
  5200. /*!*******************************************************!*\
  5201. !*** D:/2022/7/hqshop/uview-ui/libs/function/trim.js ***!
  5202. \*******************************************************/
  5203. /*! no static exports found */
  5204. /***/ (function(module, exports, __webpack_require__) {
  5205. "use strict";
  5206. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function trim(str) {var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  5207. if (pos == 'both') {
  5208. return str.replace(/^\s+|\s+$/g, "");
  5209. } else if (pos == "left") {
  5210. return str.replace(/^\s*/, '');
  5211. } else if (pos == 'right') {
  5212. return str.replace(/(\s*$)/g, "");
  5213. } else if (pos == 'all') {
  5214. return str.replace(/\s+/g, "");
  5215. } else {
  5216. return str;
  5217. }
  5218. }var _default =
  5219. trim;exports.default = _default;
  5220. /***/ }),
  5221. /***/ 36:
  5222. /*!********************************************************!*\
  5223. !*** D:/2022/7/hqshop/uview-ui/libs/function/toast.js ***!
  5224. \********************************************************/
  5225. /*! no static exports found */
  5226. /***/ (function(module, exports, __webpack_require__) {
  5227. "use strict";
  5228. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function toast(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1500;
  5229. uni.showToast({
  5230. title: title,
  5231. icon: 'none',
  5232. duration: duration });
  5233. }var _default =
  5234. toast;exports.default = _default;
  5235. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  5236. /***/ }),
  5237. /***/ 37:
  5238. /*!************************************************************!*\
  5239. !*** D:/2022/7/hqshop/uview-ui/libs/function/getParent.js ***!
  5240. \************************************************************/
  5241. /*! no static exports found */
  5242. /***/ (function(module, exports, __webpack_require__) {
  5243. "use strict";
  5244. Object.defineProperty(exports, "__esModule", { value: true });exports.default = getParent; // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  5245. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  5246. function getParent(name, keys) {
  5247. var parent = this.$parent;
  5248. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  5249. while (parent) {
  5250. // 父组件
  5251. if (parent.$options.name !== name) {
  5252. // 如果组件的name不相等,继续上一级寻找
  5253. parent = parent.$parent;
  5254. } else {var _ret = function () {
  5255. var data = {};
  5256. // 判断keys是否数组,如果传过来的是一个数组,那么直接使用数组元素值当做键值去父组件寻找
  5257. if (Array.isArray(keys)) {
  5258. keys.map(function (val) {
  5259. data[val] = parent[val] ? parent[val] : '';
  5260. });
  5261. } else {
  5262. // 历遍传过来的对象参数
  5263. for (var i in keys) {
  5264. // 如果子组件有此值则用,无此值则用父组件的值
  5265. // 判断是否空数组,如果是,则用父组件的值,否则用子组件的值
  5266. if (Array.isArray(keys[i])) {
  5267. if (keys[i].length) {
  5268. data[i] = keys[i];
  5269. } else {
  5270. data[i] = parent[i];
  5271. }
  5272. } else if (keys[i].constructor === Object) {
  5273. // 判断是否对象,如果是对象,且有属性,那么使用子组件的值,否则使用父组件的值
  5274. if (Object.keys(keys[i]).length) {
  5275. data[i] = keys[i];
  5276. } else {
  5277. data[i] = parent[i];
  5278. }
  5279. } else {
  5280. // 只要子组件有传值,即使是false值,也是“传值”了,也需要覆盖父组件的同名参数
  5281. data[i] = keys[i] || keys[i] === false ? keys[i] : parent[i];
  5282. }
  5283. }
  5284. }
  5285. return { v: data };}();if (typeof _ret === "object") return _ret.v;
  5286. }
  5287. }
  5288. return {};
  5289. }
  5290. /***/ }),
  5291. /***/ 38:
  5292. /*!**********************************************************!*\
  5293. !*** D:/2022/7/hqshop/uview-ui/libs/function/$parent.js ***!
  5294. \**********************************************************/
  5295. /*! no static exports found */
  5296. /***/ (function(module, exports, __webpack_require__) {
  5297. "use strict";
  5298. Object.defineProperty(exports, "__esModule", { value: true });exports.default = $parent; // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  5299. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  5300. // 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  5301. // 值(默认为undefined),就是查找最顶层的$parent
  5302. function $parent() {var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  5303. var parent = this.$parent;
  5304. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  5305. while (parent) {
  5306. // 父组件
  5307. if (parent.$options && parent.$options.name !== name) {
  5308. // 如果组件的name不相等,继续上一级寻找
  5309. parent = parent.$parent;
  5310. } else {
  5311. return parent;
  5312. }
  5313. }
  5314. return false;
  5315. }
  5316. /***/ }),
  5317. /***/ 39:
  5318. /*!******************************************************!*\
  5319. !*** D:/2022/7/hqshop/uview-ui/libs/function/sys.js ***!
  5320. \******************************************************/
  5321. /*! no static exports found */
  5322. /***/ (function(module, exports, __webpack_require__) {
  5323. "use strict";
  5324. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.os = os;exports.sys = sys;function os() {
  5325. return uni.getSystemInfoSync().platform;
  5326. };
  5327. function sys() {
  5328. return uni.getSystemInfoSync();
  5329. }
  5330. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  5331. /***/ }),
  5332. /***/ 4:
  5333. /*!******************************************************************************************!*\
  5334. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  5335. \******************************************************************************************/
  5336. /*! exports provided: default */
  5337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5338. "use strict";
  5339. __webpack_require__.r(__webpack_exports__);
  5340. /* WEBPACK VAR INJECTION */(function(global) {/*!
  5341. * Vue.js v2.6.11
  5342. * (c) 2014-2022 Evan You
  5343. * Released under the MIT License.
  5344. */
  5345. /* */
  5346. var emptyObject = Object.freeze({});
  5347. // These helpers produce better VM code in JS engines due to their
  5348. // explicitness and function inlining.
  5349. function isUndef (v) {
  5350. return v === undefined || v === null
  5351. }
  5352. function isDef (v) {
  5353. return v !== undefined && v !== null
  5354. }
  5355. function isTrue (v) {
  5356. return v === true
  5357. }
  5358. function isFalse (v) {
  5359. return v === false
  5360. }
  5361. /**
  5362. * Check if value is primitive.
  5363. */
  5364. function isPrimitive (value) {
  5365. return (
  5366. typeof value === 'string' ||
  5367. typeof value === 'number' ||
  5368. // $flow-disable-line
  5369. typeof value === 'symbol' ||
  5370. typeof value === 'boolean'
  5371. )
  5372. }
  5373. /**
  5374. * Quick object check - this is primarily used to tell
  5375. * Objects from primitive values when we know the value
  5376. * is a JSON-compliant type.
  5377. */
  5378. function isObject (obj) {
  5379. return obj !== null && typeof obj === 'object'
  5380. }
  5381. /**
  5382. * Get the raw type string of a value, e.g., [object Object].
  5383. */
  5384. var _toString = Object.prototype.toString;
  5385. function toRawType (value) {
  5386. return _toString.call(value).slice(8, -1)
  5387. }
  5388. /**
  5389. * Strict object type check. Only returns true
  5390. * for plain JavaScript objects.
  5391. */
  5392. function isPlainObject (obj) {
  5393. return _toString.call(obj) === '[object Object]'
  5394. }
  5395. function isRegExp (v) {
  5396. return _toString.call(v) === '[object RegExp]'
  5397. }
  5398. /**
  5399. * Check if val is a valid array index.
  5400. */
  5401. function isValidArrayIndex (val) {
  5402. var n = parseFloat(String(val));
  5403. return n >= 0 && Math.floor(n) === n && isFinite(val)
  5404. }
  5405. function isPromise (val) {
  5406. return (
  5407. isDef(val) &&
  5408. typeof val.then === 'function' &&
  5409. typeof val.catch === 'function'
  5410. )
  5411. }
  5412. /**
  5413. * Convert a value to a string that is actually rendered.
  5414. */
  5415. function toString (val) {
  5416. return val == null
  5417. ? ''
  5418. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  5419. ? JSON.stringify(val, null, 2)
  5420. : String(val)
  5421. }
  5422. /**
  5423. * Convert an input value to a number for persistence.
  5424. * If the conversion fails, return original string.
  5425. */
  5426. function toNumber (val) {
  5427. var n = parseFloat(val);
  5428. return isNaN(n) ? val : n
  5429. }
  5430. /**
  5431. * Make a map and return a function for checking if a key
  5432. * is in that map.
  5433. */
  5434. function makeMap (
  5435. str,
  5436. expectsLowerCase
  5437. ) {
  5438. var map = Object.create(null);
  5439. var list = str.split(',');
  5440. for (var i = 0; i < list.length; i++) {
  5441. map[list[i]] = true;
  5442. }
  5443. return expectsLowerCase
  5444. ? function (val) { return map[val.toLowerCase()]; }
  5445. : function (val) { return map[val]; }
  5446. }
  5447. /**
  5448. * Check if a tag is a built-in tag.
  5449. */
  5450. var isBuiltInTag = makeMap('slot,component', true);
  5451. /**
  5452. * Check if an attribute is a reserved attribute.
  5453. */
  5454. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  5455. /**
  5456. * Remove an item from an array.
  5457. */
  5458. function remove (arr, item) {
  5459. if (arr.length) {
  5460. var index = arr.indexOf(item);
  5461. if (index > -1) {
  5462. return arr.splice(index, 1)
  5463. }
  5464. }
  5465. }
  5466. /**
  5467. * Check whether an object has the property.
  5468. */
  5469. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5470. function hasOwn (obj, key) {
  5471. return hasOwnProperty.call(obj, key)
  5472. }
  5473. /**
  5474. * Create a cached version of a pure function.
  5475. */
  5476. function cached (fn) {
  5477. var cache = Object.create(null);
  5478. return (function cachedFn (str) {
  5479. var hit = cache[str];
  5480. return hit || (cache[str] = fn(str))
  5481. })
  5482. }
  5483. /**
  5484. * Camelize a hyphen-delimited string.
  5485. */
  5486. var camelizeRE = /-(\w)/g;
  5487. var camelize = cached(function (str) {
  5488. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  5489. });
  5490. /**
  5491. * Capitalize a string.
  5492. */
  5493. var capitalize = cached(function (str) {
  5494. return str.charAt(0).toUpperCase() + str.slice(1)
  5495. });
  5496. /**
  5497. * Hyphenate a camelCase string.
  5498. */
  5499. var hyphenateRE = /\B([A-Z])/g;
  5500. var hyphenate = cached(function (str) {
  5501. return str.replace(hyphenateRE, '-$1').toLowerCase()
  5502. });
  5503. /**
  5504. * Simple bind polyfill for environments that do not support it,
  5505. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  5506. * since native bind is now performant enough in most browsers.
  5507. * But removing it would mean breaking code that was able to run in
  5508. * PhantomJS 1.x, so this must be kept for backward compatibility.
  5509. */
  5510. /* istanbul ignore next */
  5511. function polyfillBind (fn, ctx) {
  5512. function boundFn (a) {
  5513. var l = arguments.length;
  5514. return l
  5515. ? l > 1
  5516. ? fn.apply(ctx, arguments)
  5517. : fn.call(ctx, a)
  5518. : fn.call(ctx)
  5519. }
  5520. boundFn._length = fn.length;
  5521. return boundFn
  5522. }
  5523. function nativeBind (fn, ctx) {
  5524. return fn.bind(ctx)
  5525. }
  5526. var bind = Function.prototype.bind
  5527. ? nativeBind
  5528. : polyfillBind;
  5529. /**
  5530. * Convert an Array-like object to a real Array.
  5531. */
  5532. function toArray (list, start) {
  5533. start = start || 0;
  5534. var i = list.length - start;
  5535. var ret = new Array(i);
  5536. while (i--) {
  5537. ret[i] = list[i + start];
  5538. }
  5539. return ret
  5540. }
  5541. /**
  5542. * Mix properties into target object.
  5543. */
  5544. function extend (to, _from) {
  5545. for (var key in _from) {
  5546. to[key] = _from[key];
  5547. }
  5548. return to
  5549. }
  5550. /**
  5551. * Merge an Array of Objects into a single Object.
  5552. */
  5553. function toObject (arr) {
  5554. var res = {};
  5555. for (var i = 0; i < arr.length; i++) {
  5556. if (arr[i]) {
  5557. extend(res, arr[i]);
  5558. }
  5559. }
  5560. return res
  5561. }
  5562. /* eslint-disable no-unused-vars */
  5563. /**
  5564. * Perform no operation.
  5565. * Stubbing args to make Flow happy without leaving useless transpiled code
  5566. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  5567. */
  5568. function noop (a, b, c) {}
  5569. /**
  5570. * Always return false.
  5571. */
  5572. var no = function (a, b, c) { return false; };
  5573. /* eslint-enable no-unused-vars */
  5574. /**
  5575. * Return the same value.
  5576. */
  5577. var identity = function (_) { return _; };
  5578. /**
  5579. * Check if two values are loosely equal - that is,
  5580. * if they are plain objects, do they have the same shape?
  5581. */
  5582. function looseEqual (a, b) {
  5583. if (a === b) { return true }
  5584. var isObjectA = isObject(a);
  5585. var isObjectB = isObject(b);
  5586. if (isObjectA && isObjectB) {
  5587. try {
  5588. var isArrayA = Array.isArray(a);
  5589. var isArrayB = Array.isArray(b);
  5590. if (isArrayA && isArrayB) {
  5591. return a.length === b.length && a.every(function (e, i) {
  5592. return looseEqual(e, b[i])
  5593. })
  5594. } else if (a instanceof Date && b instanceof Date) {
  5595. return a.getTime() === b.getTime()
  5596. } else if (!isArrayA && !isArrayB) {
  5597. var keysA = Object.keys(a);
  5598. var keysB = Object.keys(b);
  5599. return keysA.length === keysB.length && keysA.every(function (key) {
  5600. return looseEqual(a[key], b[key])
  5601. })
  5602. } else {
  5603. /* istanbul ignore next */
  5604. return false
  5605. }
  5606. } catch (e) {
  5607. /* istanbul ignore next */
  5608. return false
  5609. }
  5610. } else if (!isObjectA && !isObjectB) {
  5611. return String(a) === String(b)
  5612. } else {
  5613. return false
  5614. }
  5615. }
  5616. /**
  5617. * Return the first index at which a loosely equal value can be
  5618. * found in the array (if value is a plain object, the array must
  5619. * contain an object of the same shape), or -1 if it is not present.
  5620. */
  5621. function looseIndexOf (arr, val) {
  5622. for (var i = 0; i < arr.length; i++) {
  5623. if (looseEqual(arr[i], val)) { return i }
  5624. }
  5625. return -1
  5626. }
  5627. /**
  5628. * Ensure a function is called only once.
  5629. */
  5630. function once (fn) {
  5631. var called = false;
  5632. return function () {
  5633. if (!called) {
  5634. called = true;
  5635. fn.apply(this, arguments);
  5636. }
  5637. }
  5638. }
  5639. var ASSET_TYPES = [
  5640. 'component',
  5641. 'directive',
  5642. 'filter'
  5643. ];
  5644. var LIFECYCLE_HOOKS = [
  5645. 'beforeCreate',
  5646. 'created',
  5647. 'beforeMount',
  5648. 'mounted',
  5649. 'beforeUpdate',
  5650. 'updated',
  5651. 'beforeDestroy',
  5652. 'destroyed',
  5653. 'activated',
  5654. 'deactivated',
  5655. 'errorCaptured',
  5656. 'serverPrefetch'
  5657. ];
  5658. /* */
  5659. var config = ({
  5660. /**
  5661. * Option merge strategies (used in core/util/options)
  5662. */
  5663. // $flow-disable-line
  5664. optionMergeStrategies: Object.create(null),
  5665. /**
  5666. * Whether to suppress warnings.
  5667. */
  5668. silent: false,
  5669. /**
  5670. * Show production mode tip message on boot?
  5671. */
  5672. productionTip: "development" !== 'production',
  5673. /**
  5674. * Whether to enable devtools
  5675. */
  5676. devtools: "development" !== 'production',
  5677. /**
  5678. * Whether to record perf
  5679. */
  5680. performance: false,
  5681. /**
  5682. * Error handler for watcher errors
  5683. */
  5684. errorHandler: null,
  5685. /**
  5686. * Warn handler for watcher warns
  5687. */
  5688. warnHandler: null,
  5689. /**
  5690. * Ignore certain custom elements
  5691. */
  5692. ignoredElements: [],
  5693. /**
  5694. * Custom user key aliases for v-on
  5695. */
  5696. // $flow-disable-line
  5697. keyCodes: Object.create(null),
  5698. /**
  5699. * Check if a tag is reserved so that it cannot be registered as a
  5700. * component. This is platform-dependent and may be overwritten.
  5701. */
  5702. isReservedTag: no,
  5703. /**
  5704. * Check if an attribute is reserved so that it cannot be used as a component
  5705. * prop. This is platform-dependent and may be overwritten.
  5706. */
  5707. isReservedAttr: no,
  5708. /**
  5709. * Check if a tag is an unknown element.
  5710. * Platform-dependent.
  5711. */
  5712. isUnknownElement: no,
  5713. /**
  5714. * Get the namespace of an element
  5715. */
  5716. getTagNamespace: noop,
  5717. /**
  5718. * Parse the real tag name for the specific platform.
  5719. */
  5720. parsePlatformTagName: identity,
  5721. /**
  5722. * Check if an attribute must be bound using property, e.g. value
  5723. * Platform-dependent.
  5724. */
  5725. mustUseProp: no,
  5726. /**
  5727. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  5728. * This will significantly reduce performance if set to false.
  5729. */
  5730. async: true,
  5731. /**
  5732. * Exposed for legacy reasons
  5733. */
  5734. _lifecycleHooks: LIFECYCLE_HOOKS
  5735. });
  5736. /* */
  5737. /**
  5738. * unicode letters used for parsing html tags, component names and property paths.
  5739. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  5740. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  5741. */
  5742. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  5743. /**
  5744. * Check if a string starts with $ or _
  5745. */
  5746. function isReserved (str) {
  5747. var c = (str + '').charCodeAt(0);
  5748. return c === 0x24 || c === 0x5F
  5749. }
  5750. /**
  5751. * Define a property.
  5752. */
  5753. function def (obj, key, val, enumerable) {
  5754. Object.defineProperty(obj, key, {
  5755. value: val,
  5756. enumerable: !!enumerable,
  5757. writable: true,
  5758. configurable: true
  5759. });
  5760. }
  5761. /**
  5762. * Parse simple path.
  5763. */
  5764. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  5765. function parsePath (path) {
  5766. if (bailRE.test(path)) {
  5767. return
  5768. }
  5769. var segments = path.split('.');
  5770. return function (obj) {
  5771. for (var i = 0; i < segments.length; i++) {
  5772. if (!obj) { return }
  5773. obj = obj[segments[i]];
  5774. }
  5775. return obj
  5776. }
  5777. }
  5778. /* */
  5779. // can we use __proto__?
  5780. var hasProto = '__proto__' in {};
  5781. // Browser environment sniffing
  5782. var inBrowser = typeof window !== 'undefined';
  5783. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  5784. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  5785. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  5786. var isIE = UA && /msie|trident/.test(UA);
  5787. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  5788. var isEdge = UA && UA.indexOf('edge/') > 0;
  5789. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  5790. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  5791. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  5792. var isPhantomJS = UA && /phantomjs/.test(UA);
  5793. var isFF = UA && UA.match(/firefox\/(\d+)/);
  5794. // Firefox has a "watch" function on Object.prototype...
  5795. var nativeWatch = ({}).watch;
  5796. if (inBrowser) {
  5797. try {
  5798. var opts = {};
  5799. Object.defineProperty(opts, 'passive', ({
  5800. get: function get () {
  5801. }
  5802. })); // https://github.com/facebook/flow/issues/285
  5803. window.addEventListener('test-passive', null, opts);
  5804. } catch (e) {}
  5805. }
  5806. // this needs to be lazy-evaled because vue may be required before
  5807. // vue-server-renderer can set VUE_ENV
  5808. var _isServer;
  5809. var isServerRendering = function () {
  5810. if (_isServer === undefined) {
  5811. /* istanbul ignore if */
  5812. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  5813. // detect presence of vue-server-renderer and avoid
  5814. // Webpack shimming the process
  5815. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  5816. } else {
  5817. _isServer = false;
  5818. }
  5819. }
  5820. return _isServer
  5821. };
  5822. // detect devtools
  5823. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  5824. /* istanbul ignore next */
  5825. function isNative (Ctor) {
  5826. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  5827. }
  5828. var hasSymbol =
  5829. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  5830. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  5831. var _Set;
  5832. /* istanbul ignore if */ // $flow-disable-line
  5833. if (typeof Set !== 'undefined' && isNative(Set)) {
  5834. // use native Set when available.
  5835. _Set = Set;
  5836. } else {
  5837. // a non-standard Set polyfill that only works with primitive keys.
  5838. _Set = /*@__PURE__*/(function () {
  5839. function Set () {
  5840. this.set = Object.create(null);
  5841. }
  5842. Set.prototype.has = function has (key) {
  5843. return this.set[key] === true
  5844. };
  5845. Set.prototype.add = function add (key) {
  5846. this.set[key] = true;
  5847. };
  5848. Set.prototype.clear = function clear () {
  5849. this.set = Object.create(null);
  5850. };
  5851. return Set;
  5852. }());
  5853. }
  5854. /* */
  5855. var warn = noop;
  5856. var tip = noop;
  5857. var generateComponentTrace = (noop); // work around flow check
  5858. var formatComponentName = (noop);
  5859. if (true) {
  5860. var hasConsole = typeof console !== 'undefined';
  5861. var classifyRE = /(?:^|[-_])(\w)/g;
  5862. var classify = function (str) { return str
  5863. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  5864. .replace(/[-_]/g, ''); };
  5865. warn = function (msg, vm) {
  5866. var trace = vm ? generateComponentTrace(vm) : '';
  5867. if (config.warnHandler) {
  5868. config.warnHandler.call(null, msg, vm, trace);
  5869. } else if (hasConsole && (!config.silent)) {
  5870. console.error(("[Vue warn]: " + msg + trace));
  5871. }
  5872. };
  5873. tip = function (msg, vm) {
  5874. if (hasConsole && (!config.silent)) {
  5875. console.warn("[Vue tip]: " + msg + (
  5876. vm ? generateComponentTrace(vm) : ''
  5877. ));
  5878. }
  5879. };
  5880. formatComponentName = function (vm, includeFile) {
  5881. if (vm.$root === vm) {
  5882. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  5883. return ('') + vm.$options.__file
  5884. }
  5885. return '<Root>'
  5886. }
  5887. var options = typeof vm === 'function' && vm.cid != null
  5888. ? vm.options
  5889. : vm._isVue
  5890. ? vm.$options || vm.constructor.options
  5891. : vm;
  5892. var name = options.name || options._componentTag;
  5893. var file = options.__file;
  5894. if (!name && file) {
  5895. var match = file.match(/([^/\\]+)\.vue$/);
  5896. name = match && match[1];
  5897. }
  5898. return (
  5899. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  5900. (file && includeFile !== false ? (" at " + file) : '')
  5901. )
  5902. };
  5903. var repeat = function (str, n) {
  5904. var res = '';
  5905. while (n) {
  5906. if (n % 2 === 1) { res += str; }
  5907. if (n > 1) { str += str; }
  5908. n >>= 1;
  5909. }
  5910. return res
  5911. };
  5912. generateComponentTrace = function (vm) {
  5913. if (vm._isVue && vm.$parent) {
  5914. var tree = [];
  5915. var currentRecursiveSequence = 0;
  5916. while (vm && vm.$options.name !== 'PageBody') {
  5917. if (tree.length > 0) {
  5918. var last = tree[tree.length - 1];
  5919. if (last.constructor === vm.constructor) {
  5920. currentRecursiveSequence++;
  5921. vm = vm.$parent;
  5922. continue
  5923. } else if (currentRecursiveSequence > 0) {
  5924. tree[tree.length - 1] = [last, currentRecursiveSequence];
  5925. currentRecursiveSequence = 0;
  5926. }
  5927. }
  5928. !vm.$options.isReserved && tree.push(vm);
  5929. vm = vm.$parent;
  5930. }
  5931. return '\n\nfound in\n\n' + tree
  5932. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  5933. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  5934. : formatComponentName(vm))); })
  5935. .join('\n')
  5936. } else {
  5937. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  5938. }
  5939. };
  5940. }
  5941. /* */
  5942. var uid = 0;
  5943. /**
  5944. * A dep is an observable that can have multiple
  5945. * directives subscribing to it.
  5946. */
  5947. var Dep = function Dep () {
  5948. this.id = uid++;
  5949. this.subs = [];
  5950. };
  5951. Dep.prototype.addSub = function addSub (sub) {
  5952. this.subs.push(sub);
  5953. };
  5954. Dep.prototype.removeSub = function removeSub (sub) {
  5955. remove(this.subs, sub);
  5956. };
  5957. Dep.prototype.depend = function depend () {
  5958. if (Dep.SharedObject.target) {
  5959. Dep.SharedObject.target.addDep(this);
  5960. }
  5961. };
  5962. Dep.prototype.notify = function notify () {
  5963. // stabilize the subscriber list first
  5964. var subs = this.subs.slice();
  5965. if ( true && !config.async) {
  5966. // subs aren't sorted in scheduler if not running async
  5967. // we need to sort them now to make sure they fire in correct
  5968. // order
  5969. subs.sort(function (a, b) { return a.id - b.id; });
  5970. }
  5971. for (var i = 0, l = subs.length; i < l; i++) {
  5972. subs[i].update();
  5973. }
  5974. };
  5975. // The current target watcher being evaluated.
  5976. // This is globally unique because only one watcher
  5977. // can be evaluated at a time.
  5978. // fixed by xxxxxx (nvue shared vuex)
  5979. /* eslint-disable no-undef */
  5980. Dep.SharedObject = {};
  5981. Dep.SharedObject.target = null;
  5982. Dep.SharedObject.targetStack = [];
  5983. function pushTarget (target) {
  5984. Dep.SharedObject.targetStack.push(target);
  5985. Dep.SharedObject.target = target;
  5986. Dep.target = target;
  5987. }
  5988. function popTarget () {
  5989. Dep.SharedObject.targetStack.pop();
  5990. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  5991. Dep.target = Dep.SharedObject.target;
  5992. }
  5993. /* */
  5994. var VNode = function VNode (
  5995. tag,
  5996. data,
  5997. children,
  5998. text,
  5999. elm,
  6000. context,
  6001. componentOptions,
  6002. asyncFactory
  6003. ) {
  6004. this.tag = tag;
  6005. this.data = data;
  6006. this.children = children;
  6007. this.text = text;
  6008. this.elm = elm;
  6009. this.ns = undefined;
  6010. this.context = context;
  6011. this.fnContext = undefined;
  6012. this.fnOptions = undefined;
  6013. this.fnScopeId = undefined;
  6014. this.key = data && data.key;
  6015. this.componentOptions = componentOptions;
  6016. this.componentInstance = undefined;
  6017. this.parent = undefined;
  6018. this.raw = false;
  6019. this.isStatic = false;
  6020. this.isRootInsert = true;
  6021. this.isComment = false;
  6022. this.isCloned = false;
  6023. this.isOnce = false;
  6024. this.asyncFactory = asyncFactory;
  6025. this.asyncMeta = undefined;
  6026. this.isAsyncPlaceholder = false;
  6027. };
  6028. var prototypeAccessors = { child: { configurable: true } };
  6029. // DEPRECATED: alias for componentInstance for backwards compat.
  6030. /* istanbul ignore next */
  6031. prototypeAccessors.child.get = function () {
  6032. return this.componentInstance
  6033. };
  6034. Object.defineProperties( VNode.prototype, prototypeAccessors );
  6035. var createEmptyVNode = function (text) {
  6036. if ( text === void 0 ) text = '';
  6037. var node = new VNode();
  6038. node.text = text;
  6039. node.isComment = true;
  6040. return node
  6041. };
  6042. function createTextVNode (val) {
  6043. return new VNode(undefined, undefined, undefined, String(val))
  6044. }
  6045. // optimized shallow clone
  6046. // used for static nodes and slot nodes because they may be reused across
  6047. // multiple renders, cloning them avoids errors when DOM manipulations rely
  6048. // on their elm reference.
  6049. function cloneVNode (vnode) {
  6050. var cloned = new VNode(
  6051. vnode.tag,
  6052. vnode.data,
  6053. // #7975
  6054. // clone children array to avoid mutating original in case of cloning
  6055. // a child.
  6056. vnode.children && vnode.children.slice(),
  6057. vnode.text,
  6058. vnode.elm,
  6059. vnode.context,
  6060. vnode.componentOptions,
  6061. vnode.asyncFactory
  6062. );
  6063. cloned.ns = vnode.ns;
  6064. cloned.isStatic = vnode.isStatic;
  6065. cloned.key = vnode.key;
  6066. cloned.isComment = vnode.isComment;
  6067. cloned.fnContext = vnode.fnContext;
  6068. cloned.fnOptions = vnode.fnOptions;
  6069. cloned.fnScopeId = vnode.fnScopeId;
  6070. cloned.asyncMeta = vnode.asyncMeta;
  6071. cloned.isCloned = true;
  6072. return cloned
  6073. }
  6074. /*
  6075. * not type checking this file because flow doesn't play well with
  6076. * dynamically accessing methods on Array prototype
  6077. */
  6078. var arrayProto = Array.prototype;
  6079. var arrayMethods = Object.create(arrayProto);
  6080. var methodsToPatch = [
  6081. 'push',
  6082. 'pop',
  6083. 'shift',
  6084. 'unshift',
  6085. 'splice',
  6086. 'sort',
  6087. 'reverse'
  6088. ];
  6089. /**
  6090. * Intercept mutating methods and emit events
  6091. */
  6092. methodsToPatch.forEach(function (method) {
  6093. // cache original method
  6094. var original = arrayProto[method];
  6095. def(arrayMethods, method, function mutator () {
  6096. var args = [], len = arguments.length;
  6097. while ( len-- ) args[ len ] = arguments[ len ];
  6098. var result = original.apply(this, args);
  6099. var ob = this.__ob__;
  6100. var inserted;
  6101. switch (method) {
  6102. case 'push':
  6103. case 'unshift':
  6104. inserted = args;
  6105. break
  6106. case 'splice':
  6107. inserted = args.slice(2);
  6108. break
  6109. }
  6110. if (inserted) { ob.observeArray(inserted); }
  6111. // notify change
  6112. ob.dep.notify();
  6113. return result
  6114. });
  6115. });
  6116. /* */
  6117. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  6118. /**
  6119. * In some cases we may want to disable observation inside a component's
  6120. * update computation.
  6121. */
  6122. var shouldObserve = true;
  6123. function toggleObserving (value) {
  6124. shouldObserve = value;
  6125. }
  6126. /**
  6127. * Observer class that is attached to each observed
  6128. * object. Once attached, the observer converts the target
  6129. * object's property keys into getter/setters that
  6130. * collect dependencies and dispatch updates.
  6131. */
  6132. var Observer = function Observer (value) {
  6133. this.value = value;
  6134. this.dep = new Dep();
  6135. this.vmCount = 0;
  6136. def(value, '__ob__', this);
  6137. if (Array.isArray(value)) {
  6138. if (hasProto) {
  6139. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  6140. if(value.push !== value.__proto__.push){
  6141. copyAugment(value, arrayMethods, arrayKeys);
  6142. } else {
  6143. protoAugment(value, arrayMethods);
  6144. }
  6145. }
  6146. } else {
  6147. copyAugment(value, arrayMethods, arrayKeys);
  6148. }
  6149. this.observeArray(value);
  6150. } else {
  6151. this.walk(value);
  6152. }
  6153. };
  6154. /**
  6155. * Walk through all properties and convert them into
  6156. * getter/setters. This method should only be called when
  6157. * value type is Object.
  6158. */
  6159. Observer.prototype.walk = function walk (obj) {
  6160. var keys = Object.keys(obj);
  6161. for (var i = 0; i < keys.length; i++) {
  6162. defineReactive$$1(obj, keys[i]);
  6163. }
  6164. };
  6165. /**
  6166. * Observe a list of Array items.
  6167. */
  6168. Observer.prototype.observeArray = function observeArray (items) {
  6169. for (var i = 0, l = items.length; i < l; i++) {
  6170. observe(items[i]);
  6171. }
  6172. };
  6173. // helpers
  6174. /**
  6175. * Augment a target Object or Array by intercepting
  6176. * the prototype chain using __proto__
  6177. */
  6178. function protoAugment (target, src) {
  6179. /* eslint-disable no-proto */
  6180. target.__proto__ = src;
  6181. /* eslint-enable no-proto */
  6182. }
  6183. /**
  6184. * Augment a target Object or Array by defining
  6185. * hidden properties.
  6186. */
  6187. /* istanbul ignore next */
  6188. function copyAugment (target, src, keys) {
  6189. for (var i = 0, l = keys.length; i < l; i++) {
  6190. var key = keys[i];
  6191. def(target, key, src[key]);
  6192. }
  6193. }
  6194. /**
  6195. * Attempt to create an observer instance for a value,
  6196. * returns the new observer if successfully observed,
  6197. * or the existing observer if the value already has one.
  6198. */
  6199. function observe (value, asRootData) {
  6200. if (!isObject(value) || value instanceof VNode) {
  6201. return
  6202. }
  6203. var ob;
  6204. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  6205. ob = value.__ob__;
  6206. } else if (
  6207. shouldObserve &&
  6208. !isServerRendering() &&
  6209. (Array.isArray(value) || isPlainObject(value)) &&
  6210. Object.isExtensible(value) &&
  6211. !value._isVue
  6212. ) {
  6213. ob = new Observer(value);
  6214. }
  6215. if (asRootData && ob) {
  6216. ob.vmCount++;
  6217. }
  6218. return ob
  6219. }
  6220. /**
  6221. * Define a reactive property on an Object.
  6222. */
  6223. function defineReactive$$1 (
  6224. obj,
  6225. key,
  6226. val,
  6227. customSetter,
  6228. shallow
  6229. ) {
  6230. var dep = new Dep();
  6231. var property = Object.getOwnPropertyDescriptor(obj, key);
  6232. if (property && property.configurable === false) {
  6233. return
  6234. }
  6235. // cater for pre-defined getter/setters
  6236. var getter = property && property.get;
  6237. var setter = property && property.set;
  6238. if ((!getter || setter) && arguments.length === 2) {
  6239. val = obj[key];
  6240. }
  6241. var childOb = !shallow && observe(val);
  6242. Object.defineProperty(obj, key, {
  6243. enumerable: true,
  6244. configurable: true,
  6245. get: function reactiveGetter () {
  6246. var value = getter ? getter.call(obj) : val;
  6247. if (Dep.SharedObject.target) { // fixed by xxxxxx
  6248. dep.depend();
  6249. if (childOb) {
  6250. childOb.dep.depend();
  6251. if (Array.isArray(value)) {
  6252. dependArray(value);
  6253. }
  6254. }
  6255. }
  6256. return value
  6257. },
  6258. set: function reactiveSetter (newVal) {
  6259. var value = getter ? getter.call(obj) : val;
  6260. /* eslint-disable no-self-compare */
  6261. if (newVal === value || (newVal !== newVal && value !== value)) {
  6262. return
  6263. }
  6264. /* eslint-enable no-self-compare */
  6265. if ( true && customSetter) {
  6266. customSetter();
  6267. }
  6268. // #7981: for accessor properties without setter
  6269. if (getter && !setter) { return }
  6270. if (setter) {
  6271. setter.call(obj, newVal);
  6272. } else {
  6273. val = newVal;
  6274. }
  6275. childOb = !shallow && observe(newVal);
  6276. dep.notify();
  6277. }
  6278. });
  6279. }
  6280. /**
  6281. * Set a property on an object. Adds the new property and
  6282. * triggers change notification if the property doesn't
  6283. * already exist.
  6284. */
  6285. function set (target, key, val) {
  6286. if ( true &&
  6287. (isUndef(target) || isPrimitive(target))
  6288. ) {
  6289. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  6290. }
  6291. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6292. target.length = Math.max(target.length, key);
  6293. target.splice(key, 1, val);
  6294. return val
  6295. }
  6296. if (key in target && !(key in Object.prototype)) {
  6297. target[key] = val;
  6298. return val
  6299. }
  6300. var ob = (target).__ob__;
  6301. if (target._isVue || (ob && ob.vmCount)) {
  6302. true && warn(
  6303. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  6304. 'at runtime - declare it upfront in the data option.'
  6305. );
  6306. return val
  6307. }
  6308. if (!ob) {
  6309. target[key] = val;
  6310. return val
  6311. }
  6312. defineReactive$$1(ob.value, key, val);
  6313. ob.dep.notify();
  6314. return val
  6315. }
  6316. /**
  6317. * Delete a property and trigger change if necessary.
  6318. */
  6319. function del (target, key) {
  6320. if ( true &&
  6321. (isUndef(target) || isPrimitive(target))
  6322. ) {
  6323. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  6324. }
  6325. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6326. target.splice(key, 1);
  6327. return
  6328. }
  6329. var ob = (target).__ob__;
  6330. if (target._isVue || (ob && ob.vmCount)) {
  6331. true && warn(
  6332. 'Avoid deleting properties on a Vue instance or its root $data ' +
  6333. '- just set it to null.'
  6334. );
  6335. return
  6336. }
  6337. if (!hasOwn(target, key)) {
  6338. return
  6339. }
  6340. delete target[key];
  6341. if (!ob) {
  6342. return
  6343. }
  6344. ob.dep.notify();
  6345. }
  6346. /**
  6347. * Collect dependencies on array elements when the array is touched, since
  6348. * we cannot intercept array element access like property getters.
  6349. */
  6350. function dependArray (value) {
  6351. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  6352. e = value[i];
  6353. e && e.__ob__ && e.__ob__.dep.depend();
  6354. if (Array.isArray(e)) {
  6355. dependArray(e);
  6356. }
  6357. }
  6358. }
  6359. /* */
  6360. /**
  6361. * Option overwriting strategies are functions that handle
  6362. * how to merge a parent option value and a child option
  6363. * value into the final value.
  6364. */
  6365. var strats = config.optionMergeStrategies;
  6366. /**
  6367. * Options with restrictions
  6368. */
  6369. if (true) {
  6370. strats.el = strats.propsData = function (parent, child, vm, key) {
  6371. if (!vm) {
  6372. warn(
  6373. "option \"" + key + "\" can only be used during instance " +
  6374. 'creation with the `new` keyword.'
  6375. );
  6376. }
  6377. return defaultStrat(parent, child)
  6378. };
  6379. }
  6380. /**
  6381. * Helper that recursively merges two data objects together.
  6382. */
  6383. function mergeData (to, from) {
  6384. if (!from) { return to }
  6385. var key, toVal, fromVal;
  6386. var keys = hasSymbol
  6387. ? Reflect.ownKeys(from)
  6388. : Object.keys(from);
  6389. for (var i = 0; i < keys.length; i++) {
  6390. key = keys[i];
  6391. // in case the object is already observed...
  6392. if (key === '__ob__') { continue }
  6393. toVal = to[key];
  6394. fromVal = from[key];
  6395. if (!hasOwn(to, key)) {
  6396. set(to, key, fromVal);
  6397. } else if (
  6398. toVal !== fromVal &&
  6399. isPlainObject(toVal) &&
  6400. isPlainObject(fromVal)
  6401. ) {
  6402. mergeData(toVal, fromVal);
  6403. }
  6404. }
  6405. return to
  6406. }
  6407. /**
  6408. * Data
  6409. */
  6410. function mergeDataOrFn (
  6411. parentVal,
  6412. childVal,
  6413. vm
  6414. ) {
  6415. if (!vm) {
  6416. // in a Vue.extend merge, both should be functions
  6417. if (!childVal) {
  6418. return parentVal
  6419. }
  6420. if (!parentVal) {
  6421. return childVal
  6422. }
  6423. // when parentVal & childVal are both present,
  6424. // we need to return a function that returns the
  6425. // merged result of both functions... no need to
  6426. // check if parentVal is a function here because
  6427. // it has to be a function to pass previous merges.
  6428. return function mergedDataFn () {
  6429. return mergeData(
  6430. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  6431. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  6432. )
  6433. }
  6434. } else {
  6435. return function mergedInstanceDataFn () {
  6436. // instance merge
  6437. var instanceData = typeof childVal === 'function'
  6438. ? childVal.call(vm, vm)
  6439. : childVal;
  6440. var defaultData = typeof parentVal === 'function'
  6441. ? parentVal.call(vm, vm)
  6442. : parentVal;
  6443. if (instanceData) {
  6444. return mergeData(instanceData, defaultData)
  6445. } else {
  6446. return defaultData
  6447. }
  6448. }
  6449. }
  6450. }
  6451. strats.data = function (
  6452. parentVal,
  6453. childVal,
  6454. vm
  6455. ) {
  6456. if (!vm) {
  6457. if (childVal && typeof childVal !== 'function') {
  6458. true && warn(
  6459. 'The "data" option should be a function ' +
  6460. 'that returns a per-instance value in component ' +
  6461. 'definitions.',
  6462. vm
  6463. );
  6464. return parentVal
  6465. }
  6466. return mergeDataOrFn(parentVal, childVal)
  6467. }
  6468. return mergeDataOrFn(parentVal, childVal, vm)
  6469. };
  6470. /**
  6471. * Hooks and props are merged as arrays.
  6472. */
  6473. function mergeHook (
  6474. parentVal,
  6475. childVal
  6476. ) {
  6477. var res = childVal
  6478. ? parentVal
  6479. ? parentVal.concat(childVal)
  6480. : Array.isArray(childVal)
  6481. ? childVal
  6482. : [childVal]
  6483. : parentVal;
  6484. return res
  6485. ? dedupeHooks(res)
  6486. : res
  6487. }
  6488. function dedupeHooks (hooks) {
  6489. var res = [];
  6490. for (var i = 0; i < hooks.length; i++) {
  6491. if (res.indexOf(hooks[i]) === -1) {
  6492. res.push(hooks[i]);
  6493. }
  6494. }
  6495. return res
  6496. }
  6497. LIFECYCLE_HOOKS.forEach(function (hook) {
  6498. strats[hook] = mergeHook;
  6499. });
  6500. /**
  6501. * Assets
  6502. *
  6503. * When a vm is present (instance creation), we need to do
  6504. * a three-way merge between constructor options, instance
  6505. * options and parent options.
  6506. */
  6507. function mergeAssets (
  6508. parentVal,
  6509. childVal,
  6510. vm,
  6511. key
  6512. ) {
  6513. var res = Object.create(parentVal || null);
  6514. if (childVal) {
  6515. true && assertObjectType(key, childVal, vm);
  6516. return extend(res, childVal)
  6517. } else {
  6518. return res
  6519. }
  6520. }
  6521. ASSET_TYPES.forEach(function (type) {
  6522. strats[type + 's'] = mergeAssets;
  6523. });
  6524. /**
  6525. * Watchers.
  6526. *
  6527. * Watchers hashes should not overwrite one
  6528. * another, so we merge them as arrays.
  6529. */
  6530. strats.watch = function (
  6531. parentVal,
  6532. childVal,
  6533. vm,
  6534. key
  6535. ) {
  6536. // work around Firefox's Object.prototype.watch...
  6537. if (parentVal === nativeWatch) { parentVal = undefined; }
  6538. if (childVal === nativeWatch) { childVal = undefined; }
  6539. /* istanbul ignore if */
  6540. if (!childVal) { return Object.create(parentVal || null) }
  6541. if (true) {
  6542. assertObjectType(key, childVal, vm);
  6543. }
  6544. if (!parentVal) { return childVal }
  6545. var ret = {};
  6546. extend(ret, parentVal);
  6547. for (var key$1 in childVal) {
  6548. var parent = ret[key$1];
  6549. var child = childVal[key$1];
  6550. if (parent && !Array.isArray(parent)) {
  6551. parent = [parent];
  6552. }
  6553. ret[key$1] = parent
  6554. ? parent.concat(child)
  6555. : Array.isArray(child) ? child : [child];
  6556. }
  6557. return ret
  6558. };
  6559. /**
  6560. * Other object hashes.
  6561. */
  6562. strats.props =
  6563. strats.methods =
  6564. strats.inject =
  6565. strats.computed = function (
  6566. parentVal,
  6567. childVal,
  6568. vm,
  6569. key
  6570. ) {
  6571. if (childVal && "development" !== 'production') {
  6572. assertObjectType(key, childVal, vm);
  6573. }
  6574. if (!parentVal) { return childVal }
  6575. var ret = Object.create(null);
  6576. extend(ret, parentVal);
  6577. if (childVal) { extend(ret, childVal); }
  6578. return ret
  6579. };
  6580. strats.provide = mergeDataOrFn;
  6581. /**
  6582. * Default strategy.
  6583. */
  6584. var defaultStrat = function (parentVal, childVal) {
  6585. return childVal === undefined
  6586. ? parentVal
  6587. : childVal
  6588. };
  6589. /**
  6590. * Validate component names
  6591. */
  6592. function checkComponents (options) {
  6593. for (var key in options.components) {
  6594. validateComponentName(key);
  6595. }
  6596. }
  6597. function validateComponentName (name) {
  6598. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  6599. warn(
  6600. 'Invalid component name: "' + name + '". Component names ' +
  6601. 'should conform to valid custom element name in html5 specification.'
  6602. );
  6603. }
  6604. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  6605. warn(
  6606. 'Do not use built-in or reserved HTML elements as component ' +
  6607. 'id: ' + name
  6608. );
  6609. }
  6610. }
  6611. /**
  6612. * Ensure all props option syntax are normalized into the
  6613. * Object-based format.
  6614. */
  6615. function normalizeProps (options, vm) {
  6616. var props = options.props;
  6617. if (!props) { return }
  6618. var res = {};
  6619. var i, val, name;
  6620. if (Array.isArray(props)) {
  6621. i = props.length;
  6622. while (i--) {
  6623. val = props[i];
  6624. if (typeof val === 'string') {
  6625. name = camelize(val);
  6626. res[name] = { type: null };
  6627. } else if (true) {
  6628. warn('props must be strings when using array syntax.');
  6629. }
  6630. }
  6631. } else if (isPlainObject(props)) {
  6632. for (var key in props) {
  6633. val = props[key];
  6634. name = camelize(key);
  6635. res[name] = isPlainObject(val)
  6636. ? val
  6637. : { type: val };
  6638. }
  6639. } else if (true) {
  6640. warn(
  6641. "Invalid value for option \"props\": expected an Array or an Object, " +
  6642. "but got " + (toRawType(props)) + ".",
  6643. vm
  6644. );
  6645. }
  6646. options.props = res;
  6647. }
  6648. /**
  6649. * Normalize all injections into Object-based format
  6650. */
  6651. function normalizeInject (options, vm) {
  6652. var inject = options.inject;
  6653. if (!inject) { return }
  6654. var normalized = options.inject = {};
  6655. if (Array.isArray(inject)) {
  6656. for (var i = 0; i < inject.length; i++) {
  6657. normalized[inject[i]] = { from: inject[i] };
  6658. }
  6659. } else if (isPlainObject(inject)) {
  6660. for (var key in inject) {
  6661. var val = inject[key];
  6662. normalized[key] = isPlainObject(val)
  6663. ? extend({ from: key }, val)
  6664. : { from: val };
  6665. }
  6666. } else if (true) {
  6667. warn(
  6668. "Invalid value for option \"inject\": expected an Array or an Object, " +
  6669. "but got " + (toRawType(inject)) + ".",
  6670. vm
  6671. );
  6672. }
  6673. }
  6674. /**
  6675. * Normalize raw function directives into object format.
  6676. */
  6677. function normalizeDirectives (options) {
  6678. var dirs = options.directives;
  6679. if (dirs) {
  6680. for (var key in dirs) {
  6681. var def$$1 = dirs[key];
  6682. if (typeof def$$1 === 'function') {
  6683. dirs[key] = { bind: def$$1, update: def$$1 };
  6684. }
  6685. }
  6686. }
  6687. }
  6688. function assertObjectType (name, value, vm) {
  6689. if (!isPlainObject(value)) {
  6690. warn(
  6691. "Invalid value for option \"" + name + "\": expected an Object, " +
  6692. "but got " + (toRawType(value)) + ".",
  6693. vm
  6694. );
  6695. }
  6696. }
  6697. /**
  6698. * Merge two option objects into a new one.
  6699. * Core utility used in both instantiation and inheritance.
  6700. */
  6701. function mergeOptions (
  6702. parent,
  6703. child,
  6704. vm
  6705. ) {
  6706. if (true) {
  6707. checkComponents(child);
  6708. }
  6709. if (typeof child === 'function') {
  6710. child = child.options;
  6711. }
  6712. normalizeProps(child, vm);
  6713. normalizeInject(child, vm);
  6714. normalizeDirectives(child);
  6715. // Apply extends and mixins on the child options,
  6716. // but only if it is a raw options object that isn't
  6717. // the result of another mergeOptions call.
  6718. // Only merged options has the _base property.
  6719. if (!child._base) {
  6720. if (child.extends) {
  6721. parent = mergeOptions(parent, child.extends, vm);
  6722. }
  6723. if (child.mixins) {
  6724. for (var i = 0, l = child.mixins.length; i < l; i++) {
  6725. parent = mergeOptions(parent, child.mixins[i], vm);
  6726. }
  6727. }
  6728. }
  6729. var options = {};
  6730. var key;
  6731. for (key in parent) {
  6732. mergeField(key);
  6733. }
  6734. for (key in child) {
  6735. if (!hasOwn(parent, key)) {
  6736. mergeField(key);
  6737. }
  6738. }
  6739. function mergeField (key) {
  6740. var strat = strats[key] || defaultStrat;
  6741. options[key] = strat(parent[key], child[key], vm, key);
  6742. }
  6743. return options
  6744. }
  6745. /**
  6746. * Resolve an asset.
  6747. * This function is used because child instances need access
  6748. * to assets defined in its ancestor chain.
  6749. */
  6750. function resolveAsset (
  6751. options,
  6752. type,
  6753. id,
  6754. warnMissing
  6755. ) {
  6756. /* istanbul ignore if */
  6757. if (typeof id !== 'string') {
  6758. return
  6759. }
  6760. var assets = options[type];
  6761. // check local registration variations first
  6762. if (hasOwn(assets, id)) { return assets[id] }
  6763. var camelizedId = camelize(id);
  6764. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  6765. var PascalCaseId = capitalize(camelizedId);
  6766. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  6767. // fallback to prototype chain
  6768. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  6769. if ( true && warnMissing && !res) {
  6770. warn(
  6771. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  6772. options
  6773. );
  6774. }
  6775. return res
  6776. }
  6777. /* */
  6778. function validateProp (
  6779. key,
  6780. propOptions,
  6781. propsData,
  6782. vm
  6783. ) {
  6784. var prop = propOptions[key];
  6785. var absent = !hasOwn(propsData, key);
  6786. var value = propsData[key];
  6787. // boolean casting
  6788. var booleanIndex = getTypeIndex(Boolean, prop.type);
  6789. if (booleanIndex > -1) {
  6790. if (absent && !hasOwn(prop, 'default')) {
  6791. value = false;
  6792. } else if (value === '' || value === hyphenate(key)) {
  6793. // only cast empty string / same name to boolean if
  6794. // boolean has higher priority
  6795. var stringIndex = getTypeIndex(String, prop.type);
  6796. if (stringIndex < 0 || booleanIndex < stringIndex) {
  6797. value = true;
  6798. }
  6799. }
  6800. }
  6801. // check default value
  6802. if (value === undefined) {
  6803. value = getPropDefaultValue(vm, prop, key);
  6804. // since the default value is a fresh copy,
  6805. // make sure to observe it.
  6806. var prevShouldObserve = shouldObserve;
  6807. toggleObserving(true);
  6808. observe(value);
  6809. toggleObserving(prevShouldObserve);
  6810. }
  6811. if (
  6812. true
  6813. ) {
  6814. assertProp(prop, key, value, vm, absent);
  6815. }
  6816. return value
  6817. }
  6818. /**
  6819. * Get the default value of a prop.
  6820. */
  6821. function getPropDefaultValue (vm, prop, key) {
  6822. // no default, return undefined
  6823. if (!hasOwn(prop, 'default')) {
  6824. return undefined
  6825. }
  6826. var def = prop.default;
  6827. // warn against non-factory defaults for Object & Array
  6828. if ( true && isObject(def)) {
  6829. warn(
  6830. 'Invalid default value for prop "' + key + '": ' +
  6831. 'Props with type Object/Array must use a factory function ' +
  6832. 'to return the default value.',
  6833. vm
  6834. );
  6835. }
  6836. // the raw prop value was also undefined from previous render,
  6837. // return previous default value to avoid unnecessary watcher trigger
  6838. if (vm && vm.$options.propsData &&
  6839. vm.$options.propsData[key] === undefined &&
  6840. vm._props[key] !== undefined
  6841. ) {
  6842. return vm._props[key]
  6843. }
  6844. // call factory function for non-Function types
  6845. // a value is Function if its prototype is function even across different execution context
  6846. return typeof def === 'function' && getType(prop.type) !== 'Function'
  6847. ? def.call(vm)
  6848. : def
  6849. }
  6850. /**
  6851. * Assert whether a prop is valid.
  6852. */
  6853. function assertProp (
  6854. prop,
  6855. name,
  6856. value,
  6857. vm,
  6858. absent
  6859. ) {
  6860. if (prop.required && absent) {
  6861. warn(
  6862. 'Missing required prop: "' + name + '"',
  6863. vm
  6864. );
  6865. return
  6866. }
  6867. if (value == null && !prop.required) {
  6868. return
  6869. }
  6870. var type = prop.type;
  6871. var valid = !type || type === true;
  6872. var expectedTypes = [];
  6873. if (type) {
  6874. if (!Array.isArray(type)) {
  6875. type = [type];
  6876. }
  6877. for (var i = 0; i < type.length && !valid; i++) {
  6878. var assertedType = assertType(value, type[i]);
  6879. expectedTypes.push(assertedType.expectedType || '');
  6880. valid = assertedType.valid;
  6881. }
  6882. }
  6883. if (!valid) {
  6884. warn(
  6885. getInvalidTypeMessage(name, value, expectedTypes),
  6886. vm
  6887. );
  6888. return
  6889. }
  6890. var validator = prop.validator;
  6891. if (validator) {
  6892. if (!validator(value)) {
  6893. warn(
  6894. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  6895. vm
  6896. );
  6897. }
  6898. }
  6899. }
  6900. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  6901. function assertType (value, type) {
  6902. var valid;
  6903. var expectedType = getType(type);
  6904. if (simpleCheckRE.test(expectedType)) {
  6905. var t = typeof value;
  6906. valid = t === expectedType.toLowerCase();
  6907. // for primitive wrapper objects
  6908. if (!valid && t === 'object') {
  6909. valid = value instanceof type;
  6910. }
  6911. } else if (expectedType === 'Object') {
  6912. valid = isPlainObject(value);
  6913. } else if (expectedType === 'Array') {
  6914. valid = Array.isArray(value);
  6915. } else {
  6916. valid = value instanceof type;
  6917. }
  6918. return {
  6919. valid: valid,
  6920. expectedType: expectedType
  6921. }
  6922. }
  6923. /**
  6924. * Use function string name to check built-in types,
  6925. * because a simple equality check will fail when running
  6926. * across different vms / iframes.
  6927. */
  6928. function getType (fn) {
  6929. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  6930. return match ? match[1] : ''
  6931. }
  6932. function isSameType (a, b) {
  6933. return getType(a) === getType(b)
  6934. }
  6935. function getTypeIndex (type, expectedTypes) {
  6936. if (!Array.isArray(expectedTypes)) {
  6937. return isSameType(expectedTypes, type) ? 0 : -1
  6938. }
  6939. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  6940. if (isSameType(expectedTypes[i], type)) {
  6941. return i
  6942. }
  6943. }
  6944. return -1
  6945. }
  6946. function getInvalidTypeMessage (name, value, expectedTypes) {
  6947. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  6948. " Expected " + (expectedTypes.map(capitalize).join(', '));
  6949. var expectedType = expectedTypes[0];
  6950. var receivedType = toRawType(value);
  6951. var expectedValue = styleValue(value, expectedType);
  6952. var receivedValue = styleValue(value, receivedType);
  6953. // check if we need to specify expected value
  6954. if (expectedTypes.length === 1 &&
  6955. isExplicable(expectedType) &&
  6956. !isBoolean(expectedType, receivedType)) {
  6957. message += " with value " + expectedValue;
  6958. }
  6959. message += ", got " + receivedType + " ";
  6960. // check if we need to specify received value
  6961. if (isExplicable(receivedType)) {
  6962. message += "with value " + receivedValue + ".";
  6963. }
  6964. return message
  6965. }
  6966. function styleValue (value, type) {
  6967. if (type === 'String') {
  6968. return ("\"" + value + "\"")
  6969. } else if (type === 'Number') {
  6970. return ("" + (Number(value)))
  6971. } else {
  6972. return ("" + value)
  6973. }
  6974. }
  6975. function isExplicable (value) {
  6976. var explicitTypes = ['string', 'number', 'boolean'];
  6977. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  6978. }
  6979. function isBoolean () {
  6980. var args = [], len = arguments.length;
  6981. while ( len-- ) args[ len ] = arguments[ len ];
  6982. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  6983. }
  6984. /* */
  6985. function handleError (err, vm, info) {
  6986. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  6987. // See: https://github.com/vuejs/vuex/issues/1505
  6988. pushTarget();
  6989. try {
  6990. if (vm) {
  6991. var cur = vm;
  6992. while ((cur = cur.$parent)) {
  6993. var hooks = cur.$options.errorCaptured;
  6994. if (hooks) {
  6995. for (var i = 0; i < hooks.length; i++) {
  6996. try {
  6997. var capture = hooks[i].call(cur, err, vm, info) === false;
  6998. if (capture) { return }
  6999. } catch (e) {
  7000. globalHandleError(e, cur, 'errorCaptured hook');
  7001. }
  7002. }
  7003. }
  7004. }
  7005. }
  7006. globalHandleError(err, vm, info);
  7007. } finally {
  7008. popTarget();
  7009. }
  7010. }
  7011. function invokeWithErrorHandling (
  7012. handler,
  7013. context,
  7014. args,
  7015. vm,
  7016. info
  7017. ) {
  7018. var res;
  7019. try {
  7020. res = args ? handler.apply(context, args) : handler.call(context);
  7021. if (res && !res._isVue && isPromise(res) && !res._handled) {
  7022. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  7023. // issue #9511
  7024. // avoid catch triggering multiple times when nested calls
  7025. res._handled = true;
  7026. }
  7027. } catch (e) {
  7028. handleError(e, vm, info);
  7029. }
  7030. return res
  7031. }
  7032. function globalHandleError (err, vm, info) {
  7033. if (config.errorHandler) {
  7034. try {
  7035. return config.errorHandler.call(null, err, vm, info)
  7036. } catch (e) {
  7037. // if the user intentionally throws the original error in the handler,
  7038. // do not log it twice
  7039. if (e !== err) {
  7040. logError(e, null, 'config.errorHandler');
  7041. }
  7042. }
  7043. }
  7044. logError(err, vm, info);
  7045. }
  7046. function logError (err, vm, info) {
  7047. if (true) {
  7048. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7049. }
  7050. /* istanbul ignore else */
  7051. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  7052. console.error(err);
  7053. } else {
  7054. throw err
  7055. }
  7056. }
  7057. /* */
  7058. var callbacks = [];
  7059. var pending = false;
  7060. function flushCallbacks () {
  7061. pending = false;
  7062. var copies = callbacks.slice(0);
  7063. callbacks.length = 0;
  7064. for (var i = 0; i < copies.length; i++) {
  7065. copies[i]();
  7066. }
  7067. }
  7068. // Here we have async deferring wrappers using microtasks.
  7069. // In 2.5 we used (macro) tasks (in combination with microtasks).
  7070. // However, it has subtle problems when state is changed right before repaint
  7071. // (e.g. #6813, out-in transitions).
  7072. // Also, using (macro) tasks in event handler would cause some weird behaviors
  7073. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  7074. // So we now use microtasks everywhere, again.
  7075. // A major drawback of this tradeoff is that there are some scenarios
  7076. // where microtasks have too high a priority and fire in between supposedly
  7077. // sequential events (e.g. #4521, #6690, which have workarounds)
  7078. // or even between bubbling of the same event (#6566).
  7079. var timerFunc;
  7080. // The nextTick behavior leverages the microtask queue, which can be accessed
  7081. // via either native Promise.then or MutationObserver.
  7082. // MutationObserver has wider support, however it is seriously bugged in
  7083. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  7084. // completely stops working after triggering a few times... so, if native
  7085. // Promise is available, we will use it:
  7086. /* istanbul ignore next, $flow-disable-line */
  7087. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  7088. var p = Promise.resolve();
  7089. timerFunc = function () {
  7090. p.then(flushCallbacks);
  7091. // In problematic UIWebViews, Promise.then doesn't completely break, but
  7092. // it can get stuck in a weird state where callbacks are pushed into the
  7093. // microtask queue but the queue isn't being flushed, until the browser
  7094. // needs to do some other work, e.g. handle a timer. Therefore we can
  7095. // "force" the microtask queue to be flushed by adding an empty timer.
  7096. if (isIOS) { setTimeout(noop); }
  7097. };
  7098. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  7099. isNative(MutationObserver) ||
  7100. // PhantomJS and iOS 7.x
  7101. MutationObserver.toString() === '[object MutationObserverConstructor]'
  7102. )) {
  7103. // Use MutationObserver where native Promise is not available,
  7104. // e.g. PhantomJS, iOS7, Android 4.4
  7105. // (#6466 MutationObserver is unreliable in IE11)
  7106. var counter = 1;
  7107. var observer = new MutationObserver(flushCallbacks);
  7108. var textNode = document.createTextNode(String(counter));
  7109. observer.observe(textNode, {
  7110. characterData: true
  7111. });
  7112. timerFunc = function () {
  7113. counter = (counter + 1) % 2;
  7114. textNode.data = String(counter);
  7115. };
  7116. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  7117. // Fallback to setImmediate.
  7118. // Technically it leverages the (macro) task queue,
  7119. // but it is still a better choice than setTimeout.
  7120. timerFunc = function () {
  7121. setImmediate(flushCallbacks);
  7122. };
  7123. } else {
  7124. // Fallback to setTimeout.
  7125. timerFunc = function () {
  7126. setTimeout(flushCallbacks, 0);
  7127. };
  7128. }
  7129. function nextTick (cb, ctx) {
  7130. var _resolve;
  7131. callbacks.push(function () {
  7132. if (cb) {
  7133. try {
  7134. cb.call(ctx);
  7135. } catch (e) {
  7136. handleError(e, ctx, 'nextTick');
  7137. }
  7138. } else if (_resolve) {
  7139. _resolve(ctx);
  7140. }
  7141. });
  7142. if (!pending) {
  7143. pending = true;
  7144. timerFunc();
  7145. }
  7146. // $flow-disable-line
  7147. if (!cb && typeof Promise !== 'undefined') {
  7148. return new Promise(function (resolve) {
  7149. _resolve = resolve;
  7150. })
  7151. }
  7152. }
  7153. /* */
  7154. /* not type checking this file because flow doesn't play well with Proxy */
  7155. var initProxy;
  7156. if (true) {
  7157. var allowedGlobals = makeMap(
  7158. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  7159. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  7160. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  7161. 'require' // for Webpack/Browserify
  7162. );
  7163. var warnNonPresent = function (target, key) {
  7164. warn(
  7165. "Property or method \"" + key + "\" is not defined on the instance but " +
  7166. 'referenced during render. Make sure that this property is reactive, ' +
  7167. 'either in the data option, or for class-based components, by ' +
  7168. 'initializing the property. ' +
  7169. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  7170. target
  7171. );
  7172. };
  7173. var warnReservedPrefix = function (target, key) {
  7174. warn(
  7175. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  7176. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  7177. 'prevent conflicts with Vue internals. ' +
  7178. 'See: https://vuejs.org/v2/api/#data',
  7179. target
  7180. );
  7181. };
  7182. var hasProxy =
  7183. typeof Proxy !== 'undefined' && isNative(Proxy);
  7184. if (hasProxy) {
  7185. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  7186. config.keyCodes = new Proxy(config.keyCodes, {
  7187. set: function set (target, key, value) {
  7188. if (isBuiltInModifier(key)) {
  7189. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  7190. return false
  7191. } else {
  7192. target[key] = value;
  7193. return true
  7194. }
  7195. }
  7196. });
  7197. }
  7198. var hasHandler = {
  7199. has: function has (target, key) {
  7200. var has = key in target;
  7201. var isAllowed = allowedGlobals(key) ||
  7202. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  7203. if (!has && !isAllowed) {
  7204. if (key in target.$data) { warnReservedPrefix(target, key); }
  7205. else { warnNonPresent(target, key); }
  7206. }
  7207. return has || !isAllowed
  7208. }
  7209. };
  7210. var getHandler = {
  7211. get: function get (target, key) {
  7212. if (typeof key === 'string' && !(key in target)) {
  7213. if (key in target.$data) { warnReservedPrefix(target, key); }
  7214. else { warnNonPresent(target, key); }
  7215. }
  7216. return target[key]
  7217. }
  7218. };
  7219. initProxy = function initProxy (vm) {
  7220. if (hasProxy) {
  7221. // determine which proxy handler to use
  7222. var options = vm.$options;
  7223. var handlers = options.render && options.render._withStripped
  7224. ? getHandler
  7225. : hasHandler;
  7226. vm._renderProxy = new Proxy(vm, handlers);
  7227. } else {
  7228. vm._renderProxy = vm;
  7229. }
  7230. };
  7231. }
  7232. /* */
  7233. var seenObjects = new _Set();
  7234. /**
  7235. * Recursively traverse an object to evoke all converted
  7236. * getters, so that every nested property inside the object
  7237. * is collected as a "deep" dependency.
  7238. */
  7239. function traverse (val) {
  7240. _traverse(val, seenObjects);
  7241. seenObjects.clear();
  7242. }
  7243. function _traverse (val, seen) {
  7244. var i, keys;
  7245. var isA = Array.isArray(val);
  7246. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  7247. return
  7248. }
  7249. if (val.__ob__) {
  7250. var depId = val.__ob__.dep.id;
  7251. if (seen.has(depId)) {
  7252. return
  7253. }
  7254. seen.add(depId);
  7255. }
  7256. if (isA) {
  7257. i = val.length;
  7258. while (i--) { _traverse(val[i], seen); }
  7259. } else {
  7260. keys = Object.keys(val);
  7261. i = keys.length;
  7262. while (i--) { _traverse(val[keys[i]], seen); }
  7263. }
  7264. }
  7265. var mark;
  7266. var measure;
  7267. if (true) {
  7268. var perf = inBrowser && window.performance;
  7269. /* istanbul ignore if */
  7270. if (
  7271. perf &&
  7272. perf.mark &&
  7273. perf.measure &&
  7274. perf.clearMarks &&
  7275. perf.clearMeasures
  7276. ) {
  7277. mark = function (tag) { return perf.mark(tag); };
  7278. measure = function (name, startTag, endTag) {
  7279. perf.measure(name, startTag, endTag);
  7280. perf.clearMarks(startTag);
  7281. perf.clearMarks(endTag);
  7282. // perf.clearMeasures(name)
  7283. };
  7284. }
  7285. }
  7286. /* */
  7287. var normalizeEvent = cached(function (name) {
  7288. var passive = name.charAt(0) === '&';
  7289. name = passive ? name.slice(1) : name;
  7290. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  7291. name = once$$1 ? name.slice(1) : name;
  7292. var capture = name.charAt(0) === '!';
  7293. name = capture ? name.slice(1) : name;
  7294. return {
  7295. name: name,
  7296. once: once$$1,
  7297. capture: capture,
  7298. passive: passive
  7299. }
  7300. });
  7301. function createFnInvoker (fns, vm) {
  7302. function invoker () {
  7303. var arguments$1 = arguments;
  7304. var fns = invoker.fns;
  7305. if (Array.isArray(fns)) {
  7306. var cloned = fns.slice();
  7307. for (var i = 0; i < cloned.length; i++) {
  7308. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  7309. }
  7310. } else {
  7311. // return handler return value for single handlers
  7312. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  7313. }
  7314. }
  7315. invoker.fns = fns;
  7316. return invoker
  7317. }
  7318. function updateListeners (
  7319. on,
  7320. oldOn,
  7321. add,
  7322. remove$$1,
  7323. createOnceHandler,
  7324. vm
  7325. ) {
  7326. var name, def$$1, cur, old, event;
  7327. for (name in on) {
  7328. def$$1 = cur = on[name];
  7329. old = oldOn[name];
  7330. event = normalizeEvent(name);
  7331. if (isUndef(cur)) {
  7332. true && warn(
  7333. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  7334. vm
  7335. );
  7336. } else if (isUndef(old)) {
  7337. if (isUndef(cur.fns)) {
  7338. cur = on[name] = createFnInvoker(cur, vm);
  7339. }
  7340. if (isTrue(event.once)) {
  7341. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  7342. }
  7343. add(event.name, cur, event.capture, event.passive, event.params);
  7344. } else if (cur !== old) {
  7345. old.fns = cur;
  7346. on[name] = old;
  7347. }
  7348. }
  7349. for (name in oldOn) {
  7350. if (isUndef(on[name])) {
  7351. event = normalizeEvent(name);
  7352. remove$$1(event.name, oldOn[name], event.capture);
  7353. }
  7354. }
  7355. }
  7356. /* */
  7357. /* */
  7358. // fixed by xxxxxx (mp properties)
  7359. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  7360. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  7361. if (isUndef(propOptions)) {
  7362. return res
  7363. }
  7364. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  7365. var attrs = data.attrs;
  7366. var props = data.props;
  7367. if (isDef(attrs) || isDef(props)) {
  7368. for (var key in propOptions) {
  7369. var altKey = hyphenate(key);
  7370. var result = checkProp(res, props, key, altKey, true) ||
  7371. checkProp(res, attrs, key, altKey, false);
  7372. // externalClass
  7373. if (
  7374. result &&
  7375. res[key] &&
  7376. externalClasses.indexOf(altKey) !== -1 &&
  7377. context[camelize(res[key])]
  7378. ) {
  7379. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  7380. res[key] = context[camelize(res[key])];
  7381. }
  7382. }
  7383. }
  7384. return res
  7385. }
  7386. function extractPropsFromVNodeData (
  7387. data,
  7388. Ctor,
  7389. tag,
  7390. context// fixed by xxxxxx
  7391. ) {
  7392. // we are only extracting raw values here.
  7393. // validation and default values are handled in the child
  7394. // component itself.
  7395. var propOptions = Ctor.options.props;
  7396. if (isUndef(propOptions)) {
  7397. // fixed by xxxxxx
  7398. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  7399. }
  7400. var res = {};
  7401. var attrs = data.attrs;
  7402. var props = data.props;
  7403. if (isDef(attrs) || isDef(props)) {
  7404. for (var key in propOptions) {
  7405. var altKey = hyphenate(key);
  7406. if (true) {
  7407. var keyInLowerCase = key.toLowerCase();
  7408. if (
  7409. key !== keyInLowerCase &&
  7410. attrs && hasOwn(attrs, keyInLowerCase)
  7411. ) {
  7412. tip(
  7413. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  7414. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  7415. " \"" + key + "\". " +
  7416. "Note that HTML attributes are case-insensitive and camelCased " +
  7417. "props need to use their kebab-case equivalents when using in-DOM " +
  7418. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  7419. );
  7420. }
  7421. }
  7422. checkProp(res, props, key, altKey, true) ||
  7423. checkProp(res, attrs, key, altKey, false);
  7424. }
  7425. }
  7426. // fixed by xxxxxx
  7427. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  7428. }
  7429. function checkProp (
  7430. res,
  7431. hash,
  7432. key,
  7433. altKey,
  7434. preserve
  7435. ) {
  7436. if (isDef(hash)) {
  7437. if (hasOwn(hash, key)) {
  7438. res[key] = hash[key];
  7439. if (!preserve) {
  7440. delete hash[key];
  7441. }
  7442. return true
  7443. } else if (hasOwn(hash, altKey)) {
  7444. res[key] = hash[altKey];
  7445. if (!preserve) {
  7446. delete hash[altKey];
  7447. }
  7448. return true
  7449. }
  7450. }
  7451. return false
  7452. }
  7453. /* */
  7454. // The template compiler attempts to minimize the need for normalization by
  7455. // statically analyzing the template at compile time.
  7456. //
  7457. // For plain HTML markup, normalization can be completely skipped because the
  7458. // generated render function is guaranteed to return Array<VNode>. There are
  7459. // two cases where extra normalization is needed:
  7460. // 1. When the children contains components - because a functional component
  7461. // may return an Array instead of a single root. In this case, just a simple
  7462. // normalization is needed - if any child is an Array, we flatten the whole
  7463. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  7464. // because functional components already normalize their own children.
  7465. function simpleNormalizeChildren (children) {
  7466. for (var i = 0; i < children.length; i++) {
  7467. if (Array.isArray(children[i])) {
  7468. return Array.prototype.concat.apply([], children)
  7469. }
  7470. }
  7471. return children
  7472. }
  7473. // 2. When the children contains constructs that always generated nested Arrays,
  7474. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  7475. // with hand-written render functions / JSX. In such cases a full normalization
  7476. // is needed to cater to all possible types of children values.
  7477. function normalizeChildren (children) {
  7478. return isPrimitive(children)
  7479. ? [createTextVNode(children)]
  7480. : Array.isArray(children)
  7481. ? normalizeArrayChildren(children)
  7482. : undefined
  7483. }
  7484. function isTextNode (node) {
  7485. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  7486. }
  7487. function normalizeArrayChildren (children, nestedIndex) {
  7488. var res = [];
  7489. var i, c, lastIndex, last;
  7490. for (i = 0; i < children.length; i++) {
  7491. c = children[i];
  7492. if (isUndef(c) || typeof c === 'boolean') { continue }
  7493. lastIndex = res.length - 1;
  7494. last = res[lastIndex];
  7495. // nested
  7496. if (Array.isArray(c)) {
  7497. if (c.length > 0) {
  7498. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  7499. // merge adjacent text nodes
  7500. if (isTextNode(c[0]) && isTextNode(last)) {
  7501. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  7502. c.shift();
  7503. }
  7504. res.push.apply(res, c);
  7505. }
  7506. } else if (isPrimitive(c)) {
  7507. if (isTextNode(last)) {
  7508. // merge adjacent text nodes
  7509. // this is necessary for SSR hydration because text nodes are
  7510. // essentially merged when rendered to HTML strings
  7511. res[lastIndex] = createTextVNode(last.text + c);
  7512. } else if (c !== '') {
  7513. // convert primitive to vnode
  7514. res.push(createTextVNode(c));
  7515. }
  7516. } else {
  7517. if (isTextNode(c) && isTextNode(last)) {
  7518. // merge adjacent text nodes
  7519. res[lastIndex] = createTextVNode(last.text + c.text);
  7520. } else {
  7521. // default key for nested array children (likely generated by v-for)
  7522. if (isTrue(children._isVList) &&
  7523. isDef(c.tag) &&
  7524. isUndef(c.key) &&
  7525. isDef(nestedIndex)) {
  7526. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  7527. }
  7528. res.push(c);
  7529. }
  7530. }
  7531. }
  7532. return res
  7533. }
  7534. /* */
  7535. function initProvide (vm) {
  7536. var provide = vm.$options.provide;
  7537. if (provide) {
  7538. vm._provided = typeof provide === 'function'
  7539. ? provide.call(vm)
  7540. : provide;
  7541. }
  7542. }
  7543. function initInjections (vm) {
  7544. var result = resolveInject(vm.$options.inject, vm);
  7545. if (result) {
  7546. toggleObserving(false);
  7547. Object.keys(result).forEach(function (key) {
  7548. /* istanbul ignore else */
  7549. if (true) {
  7550. defineReactive$$1(vm, key, result[key], function () {
  7551. warn(
  7552. "Avoid mutating an injected value directly since the changes will be " +
  7553. "overwritten whenever the provided component re-renders. " +
  7554. "injection being mutated: \"" + key + "\"",
  7555. vm
  7556. );
  7557. });
  7558. } else {}
  7559. });
  7560. toggleObserving(true);
  7561. }
  7562. }
  7563. function resolveInject (inject, vm) {
  7564. if (inject) {
  7565. // inject is :any because flow is not smart enough to figure out cached
  7566. var result = Object.create(null);
  7567. var keys = hasSymbol
  7568. ? Reflect.ownKeys(inject)
  7569. : Object.keys(inject);
  7570. for (var i = 0; i < keys.length; i++) {
  7571. var key = keys[i];
  7572. // #6574 in case the inject object is observed...
  7573. if (key === '__ob__') { continue }
  7574. var provideKey = inject[key].from;
  7575. var source = vm;
  7576. while (source) {
  7577. if (source._provided && hasOwn(source._provided, provideKey)) {
  7578. result[key] = source._provided[provideKey];
  7579. break
  7580. }
  7581. source = source.$parent;
  7582. }
  7583. if (!source) {
  7584. if ('default' in inject[key]) {
  7585. var provideDefault = inject[key].default;
  7586. result[key] = typeof provideDefault === 'function'
  7587. ? provideDefault.call(vm)
  7588. : provideDefault;
  7589. } else if (true) {
  7590. warn(("Injection \"" + key + "\" not found"), vm);
  7591. }
  7592. }
  7593. }
  7594. return result
  7595. }
  7596. }
  7597. /* */
  7598. /**
  7599. * Runtime helper for resolving raw children VNodes into a slot object.
  7600. */
  7601. function resolveSlots (
  7602. children,
  7603. context
  7604. ) {
  7605. if (!children || !children.length) {
  7606. return {}
  7607. }
  7608. var slots = {};
  7609. for (var i = 0, l = children.length; i < l; i++) {
  7610. var child = children[i];
  7611. var data = child.data;
  7612. // remove slot attribute if the node is resolved as a Vue slot node
  7613. if (data && data.attrs && data.attrs.slot) {
  7614. delete data.attrs.slot;
  7615. }
  7616. // named slots should only be respected if the vnode was rendered in the
  7617. // same context.
  7618. if ((child.context === context || child.fnContext === context) &&
  7619. data && data.slot != null
  7620. ) {
  7621. var name = data.slot;
  7622. var slot = (slots[name] || (slots[name] = []));
  7623. if (child.tag === 'template') {
  7624. slot.push.apply(slot, child.children || []);
  7625. } else {
  7626. slot.push(child);
  7627. }
  7628. } else {
  7629. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  7630. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  7631. (slots['page'] || (slots['page'] = [])).push(child);
  7632. }else{
  7633. (slots.default || (slots.default = [])).push(child);
  7634. }
  7635. }
  7636. }
  7637. // ignore slots that contains only whitespace
  7638. for (var name$1 in slots) {
  7639. if (slots[name$1].every(isWhitespace)) {
  7640. delete slots[name$1];
  7641. }
  7642. }
  7643. return slots
  7644. }
  7645. function isWhitespace (node) {
  7646. return (node.isComment && !node.asyncFactory) || node.text === ' '
  7647. }
  7648. /* */
  7649. function normalizeScopedSlots (
  7650. slots,
  7651. normalSlots,
  7652. prevSlots
  7653. ) {
  7654. var res;
  7655. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  7656. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  7657. var key = slots && slots.$key;
  7658. if (!slots) {
  7659. res = {};
  7660. } else if (slots._normalized) {
  7661. // fast path 1: child component re-render only, parent did not change
  7662. return slots._normalized
  7663. } else if (
  7664. isStable &&
  7665. prevSlots &&
  7666. prevSlots !== emptyObject &&
  7667. key === prevSlots.$key &&
  7668. !hasNormalSlots &&
  7669. !prevSlots.$hasNormal
  7670. ) {
  7671. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  7672. // only need to normalize once
  7673. return prevSlots
  7674. } else {
  7675. res = {};
  7676. for (var key$1 in slots) {
  7677. if (slots[key$1] && key$1[0] !== '$') {
  7678. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  7679. }
  7680. }
  7681. }
  7682. // expose normal slots on scopedSlots
  7683. for (var key$2 in normalSlots) {
  7684. if (!(key$2 in res)) {
  7685. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  7686. }
  7687. }
  7688. // avoriaz seems to mock a non-extensible $scopedSlots object
  7689. // and when that is passed down this would cause an error
  7690. if (slots && Object.isExtensible(slots)) {
  7691. (slots)._normalized = res;
  7692. }
  7693. def(res, '$stable', isStable);
  7694. def(res, '$key', key);
  7695. def(res, '$hasNormal', hasNormalSlots);
  7696. return res
  7697. }
  7698. function normalizeScopedSlot(normalSlots, key, fn) {
  7699. var normalized = function () {
  7700. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  7701. res = res && typeof res === 'object' && !Array.isArray(res)
  7702. ? [res] // single vnode
  7703. : normalizeChildren(res);
  7704. return res && (
  7705. res.length === 0 ||
  7706. (res.length === 1 && res[0].isComment) // #9658
  7707. ) ? undefined
  7708. : res
  7709. };
  7710. // this is a slot using the new v-slot syntax without scope. although it is
  7711. // compiled as a scoped slot, render fn users would expect it to be present
  7712. // on this.$slots because the usage is semantically a normal slot.
  7713. if (fn.proxy) {
  7714. Object.defineProperty(normalSlots, key, {
  7715. get: normalized,
  7716. enumerable: true,
  7717. configurable: true
  7718. });
  7719. }
  7720. return normalized
  7721. }
  7722. function proxyNormalSlot(slots, key) {
  7723. return function () { return slots[key]; }
  7724. }
  7725. /* */
  7726. /**
  7727. * Runtime helper for rendering v-for lists.
  7728. */
  7729. function renderList (
  7730. val,
  7731. render
  7732. ) {
  7733. var ret, i, l, keys, key;
  7734. if (Array.isArray(val) || typeof val === 'string') {
  7735. ret = new Array(val.length);
  7736. for (i = 0, l = val.length; i < l; i++) {
  7737. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  7738. }
  7739. } else if (typeof val === 'number') {
  7740. ret = new Array(val);
  7741. for (i = 0; i < val; i++) {
  7742. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  7743. }
  7744. } else if (isObject(val)) {
  7745. if (hasSymbol && val[Symbol.iterator]) {
  7746. ret = [];
  7747. var iterator = val[Symbol.iterator]();
  7748. var result = iterator.next();
  7749. while (!result.done) {
  7750. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  7751. result = iterator.next();
  7752. }
  7753. } else {
  7754. keys = Object.keys(val);
  7755. ret = new Array(keys.length);
  7756. for (i = 0, l = keys.length; i < l; i++) {
  7757. key = keys[i];
  7758. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  7759. }
  7760. }
  7761. }
  7762. if (!isDef(ret)) {
  7763. ret = [];
  7764. }
  7765. (ret)._isVList = true;
  7766. return ret
  7767. }
  7768. /* */
  7769. /**
  7770. * Runtime helper for rendering <slot>
  7771. */
  7772. function renderSlot (
  7773. name,
  7774. fallback,
  7775. props,
  7776. bindObject
  7777. ) {
  7778. var scopedSlotFn = this.$scopedSlots[name];
  7779. var nodes;
  7780. if (scopedSlotFn) { // scoped slot
  7781. props = props || {};
  7782. if (bindObject) {
  7783. if ( true && !isObject(bindObject)) {
  7784. warn(
  7785. 'slot v-bind without argument expects an Object',
  7786. this
  7787. );
  7788. }
  7789. props = extend(extend({}, bindObject), props);
  7790. }
  7791. // fixed by xxxxxx app-plus scopedSlot
  7792. nodes = scopedSlotFn(props, this, props._i) || fallback;
  7793. } else {
  7794. nodes = this.$slots[name] || fallback;
  7795. }
  7796. var target = props && props.slot;
  7797. if (target) {
  7798. return this.$createElement('template', { slot: target }, nodes)
  7799. } else {
  7800. return nodes
  7801. }
  7802. }
  7803. /* */
  7804. /**
  7805. * Runtime helper for resolving filters
  7806. */
  7807. function resolveFilter (id) {
  7808. return resolveAsset(this.$options, 'filters', id, true) || identity
  7809. }
  7810. /* */
  7811. function isKeyNotMatch (expect, actual) {
  7812. if (Array.isArray(expect)) {
  7813. return expect.indexOf(actual) === -1
  7814. } else {
  7815. return expect !== actual
  7816. }
  7817. }
  7818. /**
  7819. * Runtime helper for checking keyCodes from config.
  7820. * exposed as Vue.prototype._k
  7821. * passing in eventKeyName as last argument separately for backwards compat
  7822. */
  7823. function checkKeyCodes (
  7824. eventKeyCode,
  7825. key,
  7826. builtInKeyCode,
  7827. eventKeyName,
  7828. builtInKeyName
  7829. ) {
  7830. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  7831. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  7832. return isKeyNotMatch(builtInKeyName, eventKeyName)
  7833. } else if (mappedKeyCode) {
  7834. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  7835. } else if (eventKeyName) {
  7836. return hyphenate(eventKeyName) !== key
  7837. }
  7838. }
  7839. /* */
  7840. /**
  7841. * Runtime helper for merging v-bind="object" into a VNode's data.
  7842. */
  7843. function bindObjectProps (
  7844. data,
  7845. tag,
  7846. value,
  7847. asProp,
  7848. isSync
  7849. ) {
  7850. if (value) {
  7851. if (!isObject(value)) {
  7852. true && warn(
  7853. 'v-bind without argument expects an Object or Array value',
  7854. this
  7855. );
  7856. } else {
  7857. if (Array.isArray(value)) {
  7858. value = toObject(value);
  7859. }
  7860. var hash;
  7861. var loop = function ( key ) {
  7862. if (
  7863. key === 'class' ||
  7864. key === 'style' ||
  7865. isReservedAttribute(key)
  7866. ) {
  7867. hash = data;
  7868. } else {
  7869. var type = data.attrs && data.attrs.type;
  7870. hash = asProp || config.mustUseProp(tag, type, key)
  7871. ? data.domProps || (data.domProps = {})
  7872. : data.attrs || (data.attrs = {});
  7873. }
  7874. var camelizedKey = camelize(key);
  7875. var hyphenatedKey = hyphenate(key);
  7876. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  7877. hash[key] = value[key];
  7878. if (isSync) {
  7879. var on = data.on || (data.on = {});
  7880. on[("update:" + key)] = function ($event) {
  7881. value[key] = $event;
  7882. };
  7883. }
  7884. }
  7885. };
  7886. for (var key in value) loop( key );
  7887. }
  7888. }
  7889. return data
  7890. }
  7891. /* */
  7892. /**
  7893. * Runtime helper for rendering static trees.
  7894. */
  7895. function renderStatic (
  7896. index,
  7897. isInFor
  7898. ) {
  7899. var cached = this._staticTrees || (this._staticTrees = []);
  7900. var tree = cached[index];
  7901. // if has already-rendered static tree and not inside v-for,
  7902. // we can reuse the same tree.
  7903. if (tree && !isInFor) {
  7904. return tree
  7905. }
  7906. // otherwise, render a fresh tree.
  7907. tree = cached[index] = this.$options.staticRenderFns[index].call(
  7908. this._renderProxy,
  7909. null,
  7910. this // for render fns generated for functional component templates
  7911. );
  7912. markStatic(tree, ("__static__" + index), false);
  7913. return tree
  7914. }
  7915. /**
  7916. * Runtime helper for v-once.
  7917. * Effectively it means marking the node as static with a unique key.
  7918. */
  7919. function markOnce (
  7920. tree,
  7921. index,
  7922. key
  7923. ) {
  7924. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  7925. return tree
  7926. }
  7927. function markStatic (
  7928. tree,
  7929. key,
  7930. isOnce
  7931. ) {
  7932. if (Array.isArray(tree)) {
  7933. for (var i = 0; i < tree.length; i++) {
  7934. if (tree[i] && typeof tree[i] !== 'string') {
  7935. markStaticNode(tree[i], (key + "_" + i), isOnce);
  7936. }
  7937. }
  7938. } else {
  7939. markStaticNode(tree, key, isOnce);
  7940. }
  7941. }
  7942. function markStaticNode (node, key, isOnce) {
  7943. node.isStatic = true;
  7944. node.key = key;
  7945. node.isOnce = isOnce;
  7946. }
  7947. /* */
  7948. function bindObjectListeners (data, value) {
  7949. if (value) {
  7950. if (!isPlainObject(value)) {
  7951. true && warn(
  7952. 'v-on without argument expects an Object value',
  7953. this
  7954. );
  7955. } else {
  7956. var on = data.on = data.on ? extend({}, data.on) : {};
  7957. for (var key in value) {
  7958. var existing = on[key];
  7959. var ours = value[key];
  7960. on[key] = existing ? [].concat(existing, ours) : ours;
  7961. }
  7962. }
  7963. }
  7964. return data
  7965. }
  7966. /* */
  7967. function resolveScopedSlots (
  7968. fns, // see flow/vnode
  7969. res,
  7970. // the following are added in 2.6
  7971. hasDynamicKeys,
  7972. contentHashKey
  7973. ) {
  7974. res = res || { $stable: !hasDynamicKeys };
  7975. for (var i = 0; i < fns.length; i++) {
  7976. var slot = fns[i];
  7977. if (Array.isArray(slot)) {
  7978. resolveScopedSlots(slot, res, hasDynamicKeys);
  7979. } else if (slot) {
  7980. // marker for reverse proxying v-slot without scope on this.$slots
  7981. if (slot.proxy) {
  7982. slot.fn.proxy = true;
  7983. }
  7984. res[slot.key] = slot.fn;
  7985. }
  7986. }
  7987. if (contentHashKey) {
  7988. (res).$key = contentHashKey;
  7989. }
  7990. return res
  7991. }
  7992. /* */
  7993. function bindDynamicKeys (baseObj, values) {
  7994. for (var i = 0; i < values.length; i += 2) {
  7995. var key = values[i];
  7996. if (typeof key === 'string' && key) {
  7997. baseObj[values[i]] = values[i + 1];
  7998. } else if ( true && key !== '' && key !== null) {
  7999. // null is a special value for explicitly removing a binding
  8000. warn(
  8001. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  8002. this
  8003. );
  8004. }
  8005. }
  8006. return baseObj
  8007. }
  8008. // helper to dynamically append modifier runtime markers to event names.
  8009. // ensure only append when value is already string, otherwise it will be cast
  8010. // to string and cause the type check to miss.
  8011. function prependModifier (value, symbol) {
  8012. return typeof value === 'string' ? symbol + value : value
  8013. }
  8014. /* */
  8015. function installRenderHelpers (target) {
  8016. target._o = markOnce;
  8017. target._n = toNumber;
  8018. target._s = toString;
  8019. target._l = renderList;
  8020. target._t = renderSlot;
  8021. target._q = looseEqual;
  8022. target._i = looseIndexOf;
  8023. target._m = renderStatic;
  8024. target._f = resolveFilter;
  8025. target._k = checkKeyCodes;
  8026. target._b = bindObjectProps;
  8027. target._v = createTextVNode;
  8028. target._e = createEmptyVNode;
  8029. target._u = resolveScopedSlots;
  8030. target._g = bindObjectListeners;
  8031. target._d = bindDynamicKeys;
  8032. target._p = prependModifier;
  8033. }
  8034. /* */
  8035. function FunctionalRenderContext (
  8036. data,
  8037. props,
  8038. children,
  8039. parent,
  8040. Ctor
  8041. ) {
  8042. var this$1 = this;
  8043. var options = Ctor.options;
  8044. // ensure the createElement function in functional components
  8045. // gets a unique context - this is necessary for correct named slot check
  8046. var contextVm;
  8047. if (hasOwn(parent, '_uid')) {
  8048. contextVm = Object.create(parent);
  8049. // $flow-disable-line
  8050. contextVm._original = parent;
  8051. } else {
  8052. // the context vm passed in is a functional context as well.
  8053. // in this case we want to make sure we are able to get a hold to the
  8054. // real context instance.
  8055. contextVm = parent;
  8056. // $flow-disable-line
  8057. parent = parent._original;
  8058. }
  8059. var isCompiled = isTrue(options._compiled);
  8060. var needNormalization = !isCompiled;
  8061. this.data = data;
  8062. this.props = props;
  8063. this.children = children;
  8064. this.parent = parent;
  8065. this.listeners = data.on || emptyObject;
  8066. this.injections = resolveInject(options.inject, parent);
  8067. this.slots = function () {
  8068. if (!this$1.$slots) {
  8069. normalizeScopedSlots(
  8070. data.scopedSlots,
  8071. this$1.$slots = resolveSlots(children, parent)
  8072. );
  8073. }
  8074. return this$1.$slots
  8075. };
  8076. Object.defineProperty(this, 'scopedSlots', ({
  8077. enumerable: true,
  8078. get: function get () {
  8079. return normalizeScopedSlots(data.scopedSlots, this.slots())
  8080. }
  8081. }));
  8082. // support for compiled functional template
  8083. if (isCompiled) {
  8084. // exposing $options for renderStatic()
  8085. this.$options = options;
  8086. // pre-resolve slots for renderSlot()
  8087. this.$slots = this.slots();
  8088. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  8089. }
  8090. if (options._scopeId) {
  8091. this._c = function (a, b, c, d) {
  8092. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  8093. if (vnode && !Array.isArray(vnode)) {
  8094. vnode.fnScopeId = options._scopeId;
  8095. vnode.fnContext = parent;
  8096. }
  8097. return vnode
  8098. };
  8099. } else {
  8100. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  8101. }
  8102. }
  8103. installRenderHelpers(FunctionalRenderContext.prototype);
  8104. function createFunctionalComponent (
  8105. Ctor,
  8106. propsData,
  8107. data,
  8108. contextVm,
  8109. children
  8110. ) {
  8111. var options = Ctor.options;
  8112. var props = {};
  8113. var propOptions = options.props;
  8114. if (isDef(propOptions)) {
  8115. for (var key in propOptions) {
  8116. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  8117. }
  8118. } else {
  8119. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  8120. if (isDef(data.props)) { mergeProps(props, data.props); }
  8121. }
  8122. var renderContext = new FunctionalRenderContext(
  8123. data,
  8124. props,
  8125. children,
  8126. contextVm,
  8127. Ctor
  8128. );
  8129. var vnode = options.render.call(null, renderContext._c, renderContext);
  8130. if (vnode instanceof VNode) {
  8131. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  8132. } else if (Array.isArray(vnode)) {
  8133. var vnodes = normalizeChildren(vnode) || [];
  8134. var res = new Array(vnodes.length);
  8135. for (var i = 0; i < vnodes.length; i++) {
  8136. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  8137. }
  8138. return res
  8139. }
  8140. }
  8141. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  8142. // #7817 clone node before setting fnContext, otherwise if the node is reused
  8143. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  8144. // that should not be matched to match.
  8145. var clone = cloneVNode(vnode);
  8146. clone.fnContext = contextVm;
  8147. clone.fnOptions = options;
  8148. if (true) {
  8149. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  8150. }
  8151. if (data.slot) {
  8152. (clone.data || (clone.data = {})).slot = data.slot;
  8153. }
  8154. return clone
  8155. }
  8156. function mergeProps (to, from) {
  8157. for (var key in from) {
  8158. to[camelize(key)] = from[key];
  8159. }
  8160. }
  8161. /* */
  8162. /* */
  8163. /* */
  8164. /* */
  8165. // inline hooks to be invoked on component VNodes during patch
  8166. var componentVNodeHooks = {
  8167. init: function init (vnode, hydrating) {
  8168. if (
  8169. vnode.componentInstance &&
  8170. !vnode.componentInstance._isDestroyed &&
  8171. vnode.data.keepAlive
  8172. ) {
  8173. // kept-alive components, treat as a patch
  8174. var mountedNode = vnode; // work around flow
  8175. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  8176. } else {
  8177. var child = vnode.componentInstance = createComponentInstanceForVnode(
  8178. vnode,
  8179. activeInstance
  8180. );
  8181. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  8182. }
  8183. },
  8184. prepatch: function prepatch (oldVnode, vnode) {
  8185. var options = vnode.componentOptions;
  8186. var child = vnode.componentInstance = oldVnode.componentInstance;
  8187. updateChildComponent(
  8188. child,
  8189. options.propsData, // updated props
  8190. options.listeners, // updated listeners
  8191. vnode, // new parent vnode
  8192. options.children // new children
  8193. );
  8194. },
  8195. insert: function insert (vnode) {
  8196. var context = vnode.context;
  8197. var componentInstance = vnode.componentInstance;
  8198. if (!componentInstance._isMounted) {
  8199. callHook(componentInstance, 'onServiceCreated');
  8200. callHook(componentInstance, 'onServiceAttached');
  8201. componentInstance._isMounted = true;
  8202. callHook(componentInstance, 'mounted');
  8203. }
  8204. if (vnode.data.keepAlive) {
  8205. if (context._isMounted) {
  8206. // vue-router#1212
  8207. // During updates, a kept-alive component's child components may
  8208. // change, so directly walking the tree here may call activated hooks
  8209. // on incorrect children. Instead we push them into a queue which will
  8210. // be processed after the whole patch process ended.
  8211. queueActivatedComponent(componentInstance);
  8212. } else {
  8213. activateChildComponent(componentInstance, true /* direct */);
  8214. }
  8215. }
  8216. },
  8217. destroy: function destroy (vnode) {
  8218. var componentInstance = vnode.componentInstance;
  8219. if (!componentInstance._isDestroyed) {
  8220. if (!vnode.data.keepAlive) {
  8221. componentInstance.$destroy();
  8222. } else {
  8223. deactivateChildComponent(componentInstance, true /* direct */);
  8224. }
  8225. }
  8226. }
  8227. };
  8228. var hooksToMerge = Object.keys(componentVNodeHooks);
  8229. function createComponent (
  8230. Ctor,
  8231. data,
  8232. context,
  8233. children,
  8234. tag
  8235. ) {
  8236. if (isUndef(Ctor)) {
  8237. return
  8238. }
  8239. var baseCtor = context.$options._base;
  8240. // plain options object: turn it into a constructor
  8241. if (isObject(Ctor)) {
  8242. Ctor = baseCtor.extend(Ctor);
  8243. }
  8244. // if at this stage it's not a constructor or an async component factory,
  8245. // reject.
  8246. if (typeof Ctor !== 'function') {
  8247. if (true) {
  8248. warn(("Invalid Component definition: " + (String(Ctor))), context);
  8249. }
  8250. return
  8251. }
  8252. // async component
  8253. var asyncFactory;
  8254. if (isUndef(Ctor.cid)) {
  8255. asyncFactory = Ctor;
  8256. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  8257. if (Ctor === undefined) {
  8258. // return a placeholder node for async component, which is rendered
  8259. // as a comment node but preserves all the raw information for the node.
  8260. // the information will be used for async server-rendering and hydration.
  8261. return createAsyncPlaceholder(
  8262. asyncFactory,
  8263. data,
  8264. context,
  8265. children,
  8266. tag
  8267. )
  8268. }
  8269. }
  8270. data = data || {};
  8271. // resolve constructor options in case global mixins are applied after
  8272. // component constructor creation
  8273. resolveConstructorOptions(Ctor);
  8274. // transform component v-model data into props & events
  8275. if (isDef(data.model)) {
  8276. transformModel(Ctor.options, data);
  8277. }
  8278. // extract props
  8279. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  8280. // functional component
  8281. if (isTrue(Ctor.options.functional)) {
  8282. return createFunctionalComponent(Ctor, propsData, data, context, children)
  8283. }
  8284. // extract listeners, since these needs to be treated as
  8285. // child component listeners instead of DOM listeners
  8286. var listeners = data.on;
  8287. // replace with listeners with .native modifier
  8288. // so it gets processed during parent component patch.
  8289. data.on = data.nativeOn;
  8290. if (isTrue(Ctor.options.abstract)) {
  8291. // abstract components do not keep anything
  8292. // other than props & listeners & slot
  8293. // work around flow
  8294. var slot = data.slot;
  8295. data = {};
  8296. if (slot) {
  8297. data.slot = slot;
  8298. }
  8299. }
  8300. // install component management hooks onto the placeholder node
  8301. installComponentHooks(data);
  8302. // return a placeholder vnode
  8303. var name = Ctor.options.name || tag;
  8304. var vnode = new VNode(
  8305. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  8306. data, undefined, undefined, undefined, context,
  8307. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  8308. asyncFactory
  8309. );
  8310. return vnode
  8311. }
  8312. function createComponentInstanceForVnode (
  8313. vnode, // we know it's MountedComponentVNode but flow doesn't
  8314. parent // activeInstance in lifecycle state
  8315. ) {
  8316. var options = {
  8317. _isComponent: true,
  8318. _parentVnode: vnode,
  8319. parent: parent
  8320. };
  8321. // check inline-template render functions
  8322. var inlineTemplate = vnode.data.inlineTemplate;
  8323. if (isDef(inlineTemplate)) {
  8324. options.render = inlineTemplate.render;
  8325. options.staticRenderFns = inlineTemplate.staticRenderFns;
  8326. }
  8327. return new vnode.componentOptions.Ctor(options)
  8328. }
  8329. function installComponentHooks (data) {
  8330. var hooks = data.hook || (data.hook = {});
  8331. for (var i = 0; i < hooksToMerge.length; i++) {
  8332. var key = hooksToMerge[i];
  8333. var existing = hooks[key];
  8334. var toMerge = componentVNodeHooks[key];
  8335. if (existing !== toMerge && !(existing && existing._merged)) {
  8336. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  8337. }
  8338. }
  8339. }
  8340. function mergeHook$1 (f1, f2) {
  8341. var merged = function (a, b) {
  8342. // flow complains about extra args which is why we use any
  8343. f1(a, b);
  8344. f2(a, b);
  8345. };
  8346. merged._merged = true;
  8347. return merged
  8348. }
  8349. // transform component v-model info (value and callback) into
  8350. // prop and event handler respectively.
  8351. function transformModel (options, data) {
  8352. var prop = (options.model && options.model.prop) || 'value';
  8353. var event = (options.model && options.model.event) || 'input'
  8354. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  8355. var on = data.on || (data.on = {});
  8356. var existing = on[event];
  8357. var callback = data.model.callback;
  8358. if (isDef(existing)) {
  8359. if (
  8360. Array.isArray(existing)
  8361. ? existing.indexOf(callback) === -1
  8362. : existing !== callback
  8363. ) {
  8364. on[event] = [callback].concat(existing);
  8365. }
  8366. } else {
  8367. on[event] = callback;
  8368. }
  8369. }
  8370. /* */
  8371. var SIMPLE_NORMALIZE = 1;
  8372. var ALWAYS_NORMALIZE = 2;
  8373. // wrapper function for providing a more flexible interface
  8374. // without getting yelled at by flow
  8375. function createElement (
  8376. context,
  8377. tag,
  8378. data,
  8379. children,
  8380. normalizationType,
  8381. alwaysNormalize
  8382. ) {
  8383. if (Array.isArray(data) || isPrimitive(data)) {
  8384. normalizationType = children;
  8385. children = data;
  8386. data = undefined;
  8387. }
  8388. if (isTrue(alwaysNormalize)) {
  8389. normalizationType = ALWAYS_NORMALIZE;
  8390. }
  8391. return _createElement(context, tag, data, children, normalizationType)
  8392. }
  8393. function _createElement (
  8394. context,
  8395. tag,
  8396. data,
  8397. children,
  8398. normalizationType
  8399. ) {
  8400. if (isDef(data) && isDef((data).__ob__)) {
  8401. true && warn(
  8402. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  8403. 'Always create fresh vnode data objects in each render!',
  8404. context
  8405. );
  8406. return createEmptyVNode()
  8407. }
  8408. // object syntax in v-bind
  8409. if (isDef(data) && isDef(data.is)) {
  8410. tag = data.is;
  8411. }
  8412. if (!tag) {
  8413. // in case of component :is set to falsy value
  8414. return createEmptyVNode()
  8415. }
  8416. // warn against non-primitive key
  8417. if ( true &&
  8418. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  8419. ) {
  8420. {
  8421. warn(
  8422. 'Avoid using non-primitive value as key, ' +
  8423. 'use string/number value instead.',
  8424. context
  8425. );
  8426. }
  8427. }
  8428. // support single function children as default scoped slot
  8429. if (Array.isArray(children) &&
  8430. typeof children[0] === 'function'
  8431. ) {
  8432. data = data || {};
  8433. data.scopedSlots = { default: children[0] };
  8434. children.length = 0;
  8435. }
  8436. if (normalizationType === ALWAYS_NORMALIZE) {
  8437. children = normalizeChildren(children);
  8438. } else if (normalizationType === SIMPLE_NORMALIZE) {
  8439. children = simpleNormalizeChildren(children);
  8440. }
  8441. var vnode, ns;
  8442. if (typeof tag === 'string') {
  8443. var Ctor;
  8444. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  8445. if (config.isReservedTag(tag)) {
  8446. // platform built-in elements
  8447. if ( true && isDef(data) && isDef(data.nativeOn)) {
  8448. warn(
  8449. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  8450. context
  8451. );
  8452. }
  8453. vnode = new VNode(
  8454. config.parsePlatformTagName(tag), data, children,
  8455. undefined, undefined, context
  8456. );
  8457. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  8458. // component
  8459. vnode = createComponent(Ctor, data, context, children, tag);
  8460. } else {
  8461. // unknown or unlisted namespaced elements
  8462. // check at runtime because it may get assigned a namespace when its
  8463. // parent normalizes children
  8464. vnode = new VNode(
  8465. tag, data, children,
  8466. undefined, undefined, context
  8467. );
  8468. }
  8469. } else {
  8470. // direct component options / constructor
  8471. vnode = createComponent(tag, data, context, children);
  8472. }
  8473. if (Array.isArray(vnode)) {
  8474. return vnode
  8475. } else if (isDef(vnode)) {
  8476. if (isDef(ns)) { applyNS(vnode, ns); }
  8477. if (isDef(data)) { registerDeepBindings(data); }
  8478. return vnode
  8479. } else {
  8480. return createEmptyVNode()
  8481. }
  8482. }
  8483. function applyNS (vnode, ns, force) {
  8484. vnode.ns = ns;
  8485. if (vnode.tag === 'foreignObject') {
  8486. // use default namespace inside foreignObject
  8487. ns = undefined;
  8488. force = true;
  8489. }
  8490. if (isDef(vnode.children)) {
  8491. for (var i = 0, l = vnode.children.length; i < l; i++) {
  8492. var child = vnode.children[i];
  8493. if (isDef(child.tag) && (
  8494. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  8495. applyNS(child, ns, force);
  8496. }
  8497. }
  8498. }
  8499. }
  8500. // ref #5318
  8501. // necessary to ensure parent re-render when deep bindings like :style and
  8502. // :class are used on slot nodes
  8503. function registerDeepBindings (data) {
  8504. if (isObject(data.style)) {
  8505. traverse(data.style);
  8506. }
  8507. if (isObject(data.class)) {
  8508. traverse(data.class);
  8509. }
  8510. }
  8511. /* */
  8512. function initRender (vm) {
  8513. vm._vnode = null; // the root of the child tree
  8514. vm._staticTrees = null; // v-once cached trees
  8515. var options = vm.$options;
  8516. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  8517. var renderContext = parentVnode && parentVnode.context;
  8518. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  8519. vm.$scopedSlots = emptyObject;
  8520. // bind the createElement fn to this instance
  8521. // so that we get proper render context inside it.
  8522. // args order: tag, data, children, normalizationType, alwaysNormalize
  8523. // internal version is used by render functions compiled from templates
  8524. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  8525. // normalization is always applied for the public version, used in
  8526. // user-written render functions.
  8527. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  8528. // $attrs & $listeners are exposed for easier HOC creation.
  8529. // they need to be reactive so that HOCs using them are always updated
  8530. var parentData = parentVnode && parentVnode.data;
  8531. /* istanbul ignore else */
  8532. if (true) {
  8533. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  8534. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  8535. }, true);
  8536. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  8537. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  8538. }, true);
  8539. } else {}
  8540. }
  8541. var currentRenderingInstance = null;
  8542. function renderMixin (Vue) {
  8543. // install runtime convenience helpers
  8544. installRenderHelpers(Vue.prototype);
  8545. Vue.prototype.$nextTick = function (fn) {
  8546. return nextTick(fn, this)
  8547. };
  8548. Vue.prototype._render = function () {
  8549. var vm = this;
  8550. var ref = vm.$options;
  8551. var render = ref.render;
  8552. var _parentVnode = ref._parentVnode;
  8553. if (_parentVnode) {
  8554. vm.$scopedSlots = normalizeScopedSlots(
  8555. _parentVnode.data.scopedSlots,
  8556. vm.$slots,
  8557. vm.$scopedSlots
  8558. );
  8559. }
  8560. // set parent vnode. this allows render functions to have access
  8561. // to the data on the placeholder node.
  8562. vm.$vnode = _parentVnode;
  8563. // render self
  8564. var vnode;
  8565. try {
  8566. // There's no need to maintain a stack because all render fns are called
  8567. // separately from one another. Nested component's render fns are called
  8568. // when parent component is patched.
  8569. currentRenderingInstance = vm;
  8570. vnode = render.call(vm._renderProxy, vm.$createElement);
  8571. } catch (e) {
  8572. handleError(e, vm, "render");
  8573. // return error render result,
  8574. // or previous vnode to prevent render error causing blank component
  8575. /* istanbul ignore else */
  8576. if ( true && vm.$options.renderError) {
  8577. try {
  8578. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  8579. } catch (e) {
  8580. handleError(e, vm, "renderError");
  8581. vnode = vm._vnode;
  8582. }
  8583. } else {
  8584. vnode = vm._vnode;
  8585. }
  8586. } finally {
  8587. currentRenderingInstance = null;
  8588. }
  8589. // if the returned array contains only a single node, allow it
  8590. if (Array.isArray(vnode) && vnode.length === 1) {
  8591. vnode = vnode[0];
  8592. }
  8593. // return empty vnode in case the render function errored out
  8594. if (!(vnode instanceof VNode)) {
  8595. if ( true && Array.isArray(vnode)) {
  8596. warn(
  8597. 'Multiple root nodes returned from render function. Render function ' +
  8598. 'should return a single root node.',
  8599. vm
  8600. );
  8601. }
  8602. vnode = createEmptyVNode();
  8603. }
  8604. // set parent
  8605. vnode.parent = _parentVnode;
  8606. return vnode
  8607. };
  8608. }
  8609. /* */
  8610. function ensureCtor (comp, base) {
  8611. if (
  8612. comp.__esModule ||
  8613. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  8614. ) {
  8615. comp = comp.default;
  8616. }
  8617. return isObject(comp)
  8618. ? base.extend(comp)
  8619. : comp
  8620. }
  8621. function createAsyncPlaceholder (
  8622. factory,
  8623. data,
  8624. context,
  8625. children,
  8626. tag
  8627. ) {
  8628. var node = createEmptyVNode();
  8629. node.asyncFactory = factory;
  8630. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  8631. return node
  8632. }
  8633. function resolveAsyncComponent (
  8634. factory,
  8635. baseCtor
  8636. ) {
  8637. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  8638. return factory.errorComp
  8639. }
  8640. if (isDef(factory.resolved)) {
  8641. return factory.resolved
  8642. }
  8643. var owner = currentRenderingInstance;
  8644. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  8645. // already pending
  8646. factory.owners.push(owner);
  8647. }
  8648. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  8649. return factory.loadingComp
  8650. }
  8651. if (owner && !isDef(factory.owners)) {
  8652. var owners = factory.owners = [owner];
  8653. var sync = true;
  8654. var timerLoading = null;
  8655. var timerTimeout = null
  8656. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  8657. var forceRender = function (renderCompleted) {
  8658. for (var i = 0, l = owners.length; i < l; i++) {
  8659. (owners[i]).$forceUpdate();
  8660. }
  8661. if (renderCompleted) {
  8662. owners.length = 0;
  8663. if (timerLoading !== null) {
  8664. clearTimeout(timerLoading);
  8665. timerLoading = null;
  8666. }
  8667. if (timerTimeout !== null) {
  8668. clearTimeout(timerTimeout);
  8669. timerTimeout = null;
  8670. }
  8671. }
  8672. };
  8673. var resolve = once(function (res) {
  8674. // cache resolved
  8675. factory.resolved = ensureCtor(res, baseCtor);
  8676. // invoke callbacks only if this is not a synchronous resolve
  8677. // (async resolves are shimmed as synchronous during SSR)
  8678. if (!sync) {
  8679. forceRender(true);
  8680. } else {
  8681. owners.length = 0;
  8682. }
  8683. });
  8684. var reject = once(function (reason) {
  8685. true && warn(
  8686. "Failed to resolve async component: " + (String(factory)) +
  8687. (reason ? ("\nReason: " + reason) : '')
  8688. );
  8689. if (isDef(factory.errorComp)) {
  8690. factory.error = true;
  8691. forceRender(true);
  8692. }
  8693. });
  8694. var res = factory(resolve, reject);
  8695. if (isObject(res)) {
  8696. if (isPromise(res)) {
  8697. // () => Promise
  8698. if (isUndef(factory.resolved)) {
  8699. res.then(resolve, reject);
  8700. }
  8701. } else if (isPromise(res.component)) {
  8702. res.component.then(resolve, reject);
  8703. if (isDef(res.error)) {
  8704. factory.errorComp = ensureCtor(res.error, baseCtor);
  8705. }
  8706. if (isDef(res.loading)) {
  8707. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  8708. if (res.delay === 0) {
  8709. factory.loading = true;
  8710. } else {
  8711. timerLoading = setTimeout(function () {
  8712. timerLoading = null;
  8713. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  8714. factory.loading = true;
  8715. forceRender(false);
  8716. }
  8717. }, res.delay || 200);
  8718. }
  8719. }
  8720. if (isDef(res.timeout)) {
  8721. timerTimeout = setTimeout(function () {
  8722. timerTimeout = null;
  8723. if (isUndef(factory.resolved)) {
  8724. reject(
  8725. true
  8726. ? ("timeout (" + (res.timeout) + "ms)")
  8727. : undefined
  8728. );
  8729. }
  8730. }, res.timeout);
  8731. }
  8732. }
  8733. }
  8734. sync = false;
  8735. // return in case resolved synchronously
  8736. return factory.loading
  8737. ? factory.loadingComp
  8738. : factory.resolved
  8739. }
  8740. }
  8741. /* */
  8742. function isAsyncPlaceholder (node) {
  8743. return node.isComment && node.asyncFactory
  8744. }
  8745. /* */
  8746. function getFirstComponentChild (children) {
  8747. if (Array.isArray(children)) {
  8748. for (var i = 0; i < children.length; i++) {
  8749. var c = children[i];
  8750. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  8751. return c
  8752. }
  8753. }
  8754. }
  8755. }
  8756. /* */
  8757. /* */
  8758. function initEvents (vm) {
  8759. vm._events = Object.create(null);
  8760. vm._hasHookEvent = false;
  8761. // init parent attached events
  8762. var listeners = vm.$options._parentListeners;
  8763. if (listeners) {
  8764. updateComponentListeners(vm, listeners);
  8765. }
  8766. }
  8767. var target;
  8768. function add (event, fn) {
  8769. target.$on(event, fn);
  8770. }
  8771. function remove$1 (event, fn) {
  8772. target.$off(event, fn);
  8773. }
  8774. function createOnceHandler (event, fn) {
  8775. var _target = target;
  8776. return function onceHandler () {
  8777. var res = fn.apply(null, arguments);
  8778. if (res !== null) {
  8779. _target.$off(event, onceHandler);
  8780. }
  8781. }
  8782. }
  8783. function updateComponentListeners (
  8784. vm,
  8785. listeners,
  8786. oldListeners
  8787. ) {
  8788. target = vm;
  8789. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  8790. target = undefined;
  8791. }
  8792. function eventsMixin (Vue) {
  8793. var hookRE = /^hook:/;
  8794. Vue.prototype.$on = function (event, fn) {
  8795. var vm = this;
  8796. if (Array.isArray(event)) {
  8797. for (var i = 0, l = event.length; i < l; i++) {
  8798. vm.$on(event[i], fn);
  8799. }
  8800. } else {
  8801. (vm._events[event] || (vm._events[event] = [])).push(fn);
  8802. // optimize hook:event cost by using a boolean flag marked at registration
  8803. // instead of a hash lookup
  8804. if (hookRE.test(event)) {
  8805. vm._hasHookEvent = true;
  8806. }
  8807. }
  8808. return vm
  8809. };
  8810. Vue.prototype.$once = function (event, fn) {
  8811. var vm = this;
  8812. function on () {
  8813. vm.$off(event, on);
  8814. fn.apply(vm, arguments);
  8815. }
  8816. on.fn = fn;
  8817. vm.$on(event, on);
  8818. return vm
  8819. };
  8820. Vue.prototype.$off = function (event, fn) {
  8821. var vm = this;
  8822. // all
  8823. if (!arguments.length) {
  8824. vm._events = Object.create(null);
  8825. return vm
  8826. }
  8827. // array of events
  8828. if (Array.isArray(event)) {
  8829. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  8830. vm.$off(event[i$1], fn);
  8831. }
  8832. return vm
  8833. }
  8834. // specific event
  8835. var cbs = vm._events[event];
  8836. if (!cbs) {
  8837. return vm
  8838. }
  8839. if (!fn) {
  8840. vm._events[event] = null;
  8841. return vm
  8842. }
  8843. // specific handler
  8844. var cb;
  8845. var i = cbs.length;
  8846. while (i--) {
  8847. cb = cbs[i];
  8848. if (cb === fn || cb.fn === fn) {
  8849. cbs.splice(i, 1);
  8850. break
  8851. }
  8852. }
  8853. return vm
  8854. };
  8855. Vue.prototype.$emit = function (event) {
  8856. var vm = this;
  8857. if (true) {
  8858. var lowerCaseEvent = event.toLowerCase();
  8859. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  8860. tip(
  8861. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  8862. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  8863. "Note that HTML attributes are case-insensitive and you cannot use " +
  8864. "v-on to listen to camelCase events when using in-DOM templates. " +
  8865. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  8866. );
  8867. }
  8868. }
  8869. var cbs = vm._events[event];
  8870. if (cbs) {
  8871. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  8872. var args = toArray(arguments, 1);
  8873. var info = "event handler for \"" + event + "\"";
  8874. for (var i = 0, l = cbs.length; i < l; i++) {
  8875. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  8876. }
  8877. }
  8878. return vm
  8879. };
  8880. }
  8881. /* */
  8882. var activeInstance = null;
  8883. var isUpdatingChildComponent = false;
  8884. function setActiveInstance(vm) {
  8885. var prevActiveInstance = activeInstance;
  8886. activeInstance = vm;
  8887. return function () {
  8888. activeInstance = prevActiveInstance;
  8889. }
  8890. }
  8891. function initLifecycle (vm) {
  8892. var options = vm.$options;
  8893. // locate first non-abstract parent
  8894. var parent = options.parent;
  8895. if (parent && !options.abstract) {
  8896. while (parent.$options.abstract && parent.$parent) {
  8897. parent = parent.$parent;
  8898. }
  8899. parent.$children.push(vm);
  8900. }
  8901. vm.$parent = parent;
  8902. vm.$root = parent ? parent.$root : vm;
  8903. vm.$children = [];
  8904. vm.$refs = {};
  8905. vm._watcher = null;
  8906. vm._inactive = null;
  8907. vm._directInactive = false;
  8908. vm._isMounted = false;
  8909. vm._isDestroyed = false;
  8910. vm._isBeingDestroyed = false;
  8911. }
  8912. function lifecycleMixin (Vue) {
  8913. Vue.prototype._update = function (vnode, hydrating) {
  8914. var vm = this;
  8915. var prevEl = vm.$el;
  8916. var prevVnode = vm._vnode;
  8917. var restoreActiveInstance = setActiveInstance(vm);
  8918. vm._vnode = vnode;
  8919. // Vue.prototype.__patch__ is injected in entry points
  8920. // based on the rendering backend used.
  8921. if (!prevVnode) {
  8922. // initial render
  8923. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  8924. } else {
  8925. // updates
  8926. vm.$el = vm.__patch__(prevVnode, vnode);
  8927. }
  8928. restoreActiveInstance();
  8929. // update __vue__ reference
  8930. if (prevEl) {
  8931. prevEl.__vue__ = null;
  8932. }
  8933. if (vm.$el) {
  8934. vm.$el.__vue__ = vm;
  8935. }
  8936. // if parent is an HOC, update its $el as well
  8937. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  8938. vm.$parent.$el = vm.$el;
  8939. }
  8940. // updated hook is called by the scheduler to ensure that children are
  8941. // updated in a parent's updated hook.
  8942. };
  8943. Vue.prototype.$forceUpdate = function () {
  8944. var vm = this;
  8945. if (vm._watcher) {
  8946. vm._watcher.update();
  8947. }
  8948. };
  8949. Vue.prototype.$destroy = function () {
  8950. var vm = this;
  8951. if (vm._isBeingDestroyed) {
  8952. return
  8953. }
  8954. callHook(vm, 'beforeDestroy');
  8955. vm._isBeingDestroyed = true;
  8956. // remove self from parent
  8957. var parent = vm.$parent;
  8958. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  8959. remove(parent.$children, vm);
  8960. }
  8961. // teardown watchers
  8962. if (vm._watcher) {
  8963. vm._watcher.teardown();
  8964. }
  8965. var i = vm._watchers.length;
  8966. while (i--) {
  8967. vm._watchers[i].teardown();
  8968. }
  8969. // remove reference from data ob
  8970. // frozen object may not have observer.
  8971. if (vm._data.__ob__) {
  8972. vm._data.__ob__.vmCount--;
  8973. }
  8974. // call the last hook...
  8975. vm._isDestroyed = true;
  8976. // invoke destroy hooks on current rendered tree
  8977. vm.__patch__(vm._vnode, null);
  8978. // fire destroyed hook
  8979. callHook(vm, 'destroyed');
  8980. // turn off all instance listeners.
  8981. vm.$off();
  8982. // remove __vue__ reference
  8983. if (vm.$el) {
  8984. vm.$el.__vue__ = null;
  8985. }
  8986. // release circular reference (#6759)
  8987. if (vm.$vnode) {
  8988. vm.$vnode.parent = null;
  8989. }
  8990. };
  8991. }
  8992. function updateChildComponent (
  8993. vm,
  8994. propsData,
  8995. listeners,
  8996. parentVnode,
  8997. renderChildren
  8998. ) {
  8999. if (true) {
  9000. isUpdatingChildComponent = true;
  9001. }
  9002. // determine whether component has slot children
  9003. // we need to do this before overwriting $options._renderChildren.
  9004. // check if there are dynamic scopedSlots (hand-written or compiled but with
  9005. // dynamic slot names). Static scoped slots compiled from template has the
  9006. // "$stable" marker.
  9007. var newScopedSlots = parentVnode.data.scopedSlots;
  9008. var oldScopedSlots = vm.$scopedSlots;
  9009. var hasDynamicScopedSlot = !!(
  9010. (newScopedSlots && !newScopedSlots.$stable) ||
  9011. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  9012. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  9013. );
  9014. // Any static slot children from the parent may have changed during parent's
  9015. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  9016. // update is necessary to ensure correctness.
  9017. var needsForceUpdate = !!(
  9018. renderChildren || // has new static slots
  9019. vm.$options._renderChildren || // has old static slots
  9020. hasDynamicScopedSlot
  9021. );
  9022. vm.$options._parentVnode = parentVnode;
  9023. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  9024. if (vm._vnode) { // update child tree's parent
  9025. vm._vnode.parent = parentVnode;
  9026. }
  9027. vm.$options._renderChildren = renderChildren;
  9028. // update $attrs and $listeners hash
  9029. // these are also reactive so they may trigger child update if the child
  9030. // used them during render
  9031. vm.$attrs = parentVnode.data.attrs || emptyObject;
  9032. vm.$listeners = listeners || emptyObject;
  9033. // update props
  9034. if (propsData && vm.$options.props) {
  9035. toggleObserving(false);
  9036. var props = vm._props;
  9037. var propKeys = vm.$options._propKeys || [];
  9038. for (var i = 0; i < propKeys.length; i++) {
  9039. var key = propKeys[i];
  9040. var propOptions = vm.$options.props; // wtf flow?
  9041. props[key] = validateProp(key, propOptions, propsData, vm);
  9042. }
  9043. toggleObserving(true);
  9044. // keep a copy of raw propsData
  9045. vm.$options.propsData = propsData;
  9046. }
  9047. // fixed by xxxxxx update properties(mp runtime)
  9048. vm._$updateProperties && vm._$updateProperties(vm);
  9049. // update listeners
  9050. listeners = listeners || emptyObject;
  9051. var oldListeners = vm.$options._parentListeners;
  9052. vm.$options._parentListeners = listeners;
  9053. updateComponentListeners(vm, listeners, oldListeners);
  9054. // resolve slots + force update if has children
  9055. if (needsForceUpdate) {
  9056. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  9057. vm.$forceUpdate();
  9058. }
  9059. if (true) {
  9060. isUpdatingChildComponent = false;
  9061. }
  9062. }
  9063. function isInInactiveTree (vm) {
  9064. while (vm && (vm = vm.$parent)) {
  9065. if (vm._inactive) { return true }
  9066. }
  9067. return false
  9068. }
  9069. function activateChildComponent (vm, direct) {
  9070. if (direct) {
  9071. vm._directInactive = false;
  9072. if (isInInactiveTree(vm)) {
  9073. return
  9074. }
  9075. } else if (vm._directInactive) {
  9076. return
  9077. }
  9078. if (vm._inactive || vm._inactive === null) {
  9079. vm._inactive = false;
  9080. for (var i = 0; i < vm.$children.length; i++) {
  9081. activateChildComponent(vm.$children[i]);
  9082. }
  9083. callHook(vm, 'activated');
  9084. }
  9085. }
  9086. function deactivateChildComponent (vm, direct) {
  9087. if (direct) {
  9088. vm._directInactive = true;
  9089. if (isInInactiveTree(vm)) {
  9090. return
  9091. }
  9092. }
  9093. if (!vm._inactive) {
  9094. vm._inactive = true;
  9095. for (var i = 0; i < vm.$children.length; i++) {
  9096. deactivateChildComponent(vm.$children[i]);
  9097. }
  9098. callHook(vm, 'deactivated');
  9099. }
  9100. }
  9101. function callHook (vm, hook) {
  9102. // #7573 disable dep collection when invoking lifecycle hooks
  9103. pushTarget();
  9104. var handlers = vm.$options[hook];
  9105. var info = hook + " hook";
  9106. if (handlers) {
  9107. for (var i = 0, j = handlers.length; i < j; i++) {
  9108. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  9109. }
  9110. }
  9111. if (vm._hasHookEvent) {
  9112. vm.$emit('hook:' + hook);
  9113. }
  9114. popTarget();
  9115. }
  9116. /* */
  9117. var MAX_UPDATE_COUNT = 100;
  9118. var queue = [];
  9119. var activatedChildren = [];
  9120. var has = {};
  9121. var circular = {};
  9122. var waiting = false;
  9123. var flushing = false;
  9124. var index = 0;
  9125. /**
  9126. * Reset the scheduler's state.
  9127. */
  9128. function resetSchedulerState () {
  9129. index = queue.length = activatedChildren.length = 0;
  9130. has = {};
  9131. if (true) {
  9132. circular = {};
  9133. }
  9134. waiting = flushing = false;
  9135. }
  9136. // Async edge case #6566 requires saving the timestamp when event listeners are
  9137. // attached. However, calling performance.now() has a perf overhead especially
  9138. // if the page has thousands of event listeners. Instead, we take a timestamp
  9139. // every time the scheduler flushes and use that for all event listeners
  9140. // attached during that flush.
  9141. var currentFlushTimestamp = 0;
  9142. // Async edge case fix requires storing an event listener's attach timestamp.
  9143. var getNow = Date.now;
  9144. // Determine what event timestamp the browser is using. Annoyingly, the
  9145. // timestamp can either be hi-res (relative to page load) or low-res
  9146. // (relative to UNIX epoch), so in order to compare time we have to use the
  9147. // same timestamp type when saving the flush timestamp.
  9148. // All IE versions use low-res event timestamps, and have problematic clock
  9149. // implementations (#9632)
  9150. if (inBrowser && !isIE) {
  9151. var performance = window.performance;
  9152. if (
  9153. performance &&
  9154. typeof performance.now === 'function' &&
  9155. getNow() > document.createEvent('Event').timeStamp
  9156. ) {
  9157. // if the event timestamp, although evaluated AFTER the Date.now(), is
  9158. // smaller than it, it means the event is using a hi-res timestamp,
  9159. // and we need to use the hi-res version for event listener timestamps as
  9160. // well.
  9161. getNow = function () { return performance.now(); };
  9162. }
  9163. }
  9164. /**
  9165. * Flush both queues and run the watchers.
  9166. */
  9167. function flushSchedulerQueue () {
  9168. currentFlushTimestamp = getNow();
  9169. flushing = true;
  9170. var watcher, id;
  9171. // Sort queue before flush.
  9172. // This ensures that:
  9173. // 1. Components are updated from parent to child. (because parent is always
  9174. // created before the child)
  9175. // 2. A component's user watchers are run before its render watcher (because
  9176. // user watchers are created before the render watcher)
  9177. // 3. If a component is destroyed during a parent component's watcher run,
  9178. // its watchers can be skipped.
  9179. queue.sort(function (a, b) { return a.id - b.id; });
  9180. // do not cache length because more watchers might be pushed
  9181. // as we run existing watchers
  9182. for (index = 0; index < queue.length; index++) {
  9183. watcher = queue[index];
  9184. if (watcher.before) {
  9185. watcher.before();
  9186. }
  9187. id = watcher.id;
  9188. has[id] = null;
  9189. watcher.run();
  9190. // in dev build, check and stop circular updates.
  9191. if ( true && has[id] != null) {
  9192. circular[id] = (circular[id] || 0) + 1;
  9193. if (circular[id] > MAX_UPDATE_COUNT) {
  9194. warn(
  9195. 'You may have an infinite update loop ' + (
  9196. watcher.user
  9197. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  9198. : "in a component render function."
  9199. ),
  9200. watcher.vm
  9201. );
  9202. break
  9203. }
  9204. }
  9205. }
  9206. // keep copies of post queues before resetting state
  9207. var activatedQueue = activatedChildren.slice();
  9208. var updatedQueue = queue.slice();
  9209. resetSchedulerState();
  9210. // call component updated and activated hooks
  9211. callActivatedHooks(activatedQueue);
  9212. callUpdatedHooks(updatedQueue);
  9213. // devtool hook
  9214. /* istanbul ignore if */
  9215. if (devtools && config.devtools) {
  9216. devtools.emit('flush');
  9217. }
  9218. }
  9219. function callUpdatedHooks (queue) {
  9220. var i = queue.length;
  9221. while (i--) {
  9222. var watcher = queue[i];
  9223. var vm = watcher.vm;
  9224. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  9225. callHook(vm, 'updated');
  9226. }
  9227. }
  9228. }
  9229. /**
  9230. * Queue a kept-alive component that was activated during patch.
  9231. * The queue will be processed after the entire tree has been patched.
  9232. */
  9233. function queueActivatedComponent (vm) {
  9234. // setting _inactive to false here so that a render function can
  9235. // rely on checking whether it's in an inactive tree (e.g. router-view)
  9236. vm._inactive = false;
  9237. activatedChildren.push(vm);
  9238. }
  9239. function callActivatedHooks (queue) {
  9240. for (var i = 0; i < queue.length; i++) {
  9241. queue[i]._inactive = true;
  9242. activateChildComponent(queue[i], true /* true */);
  9243. }
  9244. }
  9245. /**
  9246. * Push a watcher into the watcher queue.
  9247. * Jobs with duplicate IDs will be skipped unless it's
  9248. * pushed when the queue is being flushed.
  9249. */
  9250. function queueWatcher (watcher) {
  9251. var id = watcher.id;
  9252. if (has[id] == null) {
  9253. has[id] = true;
  9254. if (!flushing) {
  9255. queue.push(watcher);
  9256. } else {
  9257. // if already flushing, splice the watcher based on its id
  9258. // if already past its id, it will be run next immediately.
  9259. var i = queue.length - 1;
  9260. while (i > index && queue[i].id > watcher.id) {
  9261. i--;
  9262. }
  9263. queue.splice(i + 1, 0, watcher);
  9264. }
  9265. // queue the flush
  9266. if (!waiting) {
  9267. waiting = true;
  9268. if ( true && !config.async) {
  9269. flushSchedulerQueue();
  9270. return
  9271. }
  9272. nextTick(flushSchedulerQueue);
  9273. }
  9274. }
  9275. }
  9276. /* */
  9277. var uid$2 = 0;
  9278. /**
  9279. * A watcher parses an expression, collects dependencies,
  9280. * and fires callback when the expression value changes.
  9281. * This is used for both the $watch() api and directives.
  9282. */
  9283. var Watcher = function Watcher (
  9284. vm,
  9285. expOrFn,
  9286. cb,
  9287. options,
  9288. isRenderWatcher
  9289. ) {
  9290. this.vm = vm;
  9291. if (isRenderWatcher) {
  9292. vm._watcher = this;
  9293. }
  9294. vm._watchers.push(this);
  9295. // options
  9296. if (options) {
  9297. this.deep = !!options.deep;
  9298. this.user = !!options.user;
  9299. this.lazy = !!options.lazy;
  9300. this.sync = !!options.sync;
  9301. this.before = options.before;
  9302. } else {
  9303. this.deep = this.user = this.lazy = this.sync = false;
  9304. }
  9305. this.cb = cb;
  9306. this.id = ++uid$2; // uid for batching
  9307. this.active = true;
  9308. this.dirty = this.lazy; // for lazy watchers
  9309. this.deps = [];
  9310. this.newDeps = [];
  9311. this.depIds = new _Set();
  9312. this.newDepIds = new _Set();
  9313. this.expression = true
  9314. ? expOrFn.toString()
  9315. : undefined;
  9316. // parse expression for getter
  9317. if (typeof expOrFn === 'function') {
  9318. this.getter = expOrFn;
  9319. } else {
  9320. this.getter = parsePath(expOrFn);
  9321. if (!this.getter) {
  9322. this.getter = noop;
  9323. true && warn(
  9324. "Failed watching path: \"" + expOrFn + "\" " +
  9325. 'Watcher only accepts simple dot-delimited paths. ' +
  9326. 'For full control, use a function instead.',
  9327. vm
  9328. );
  9329. }
  9330. }
  9331. this.value = this.lazy
  9332. ? undefined
  9333. : this.get();
  9334. };
  9335. /**
  9336. * Evaluate the getter, and re-collect dependencies.
  9337. */
  9338. Watcher.prototype.get = function get () {
  9339. pushTarget(this);
  9340. var value;
  9341. var vm = this.vm;
  9342. try {
  9343. value = this.getter.call(vm, vm);
  9344. } catch (e) {
  9345. if (this.user) {
  9346. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  9347. } else {
  9348. throw e
  9349. }
  9350. } finally {
  9351. // "touch" every property so they are all tracked as
  9352. // dependencies for deep watching
  9353. if (this.deep) {
  9354. traverse(value);
  9355. }
  9356. popTarget();
  9357. this.cleanupDeps();
  9358. }
  9359. return value
  9360. };
  9361. /**
  9362. * Add a dependency to this directive.
  9363. */
  9364. Watcher.prototype.addDep = function addDep (dep) {
  9365. var id = dep.id;
  9366. if (!this.newDepIds.has(id)) {
  9367. this.newDepIds.add(id);
  9368. this.newDeps.push(dep);
  9369. if (!this.depIds.has(id)) {
  9370. dep.addSub(this);
  9371. }
  9372. }
  9373. };
  9374. /**
  9375. * Clean up for dependency collection.
  9376. */
  9377. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  9378. var i = this.deps.length;
  9379. while (i--) {
  9380. var dep = this.deps[i];
  9381. if (!this.newDepIds.has(dep.id)) {
  9382. dep.removeSub(this);
  9383. }
  9384. }
  9385. var tmp = this.depIds;
  9386. this.depIds = this.newDepIds;
  9387. this.newDepIds = tmp;
  9388. this.newDepIds.clear();
  9389. tmp = this.deps;
  9390. this.deps = this.newDeps;
  9391. this.newDeps = tmp;
  9392. this.newDeps.length = 0;
  9393. };
  9394. /**
  9395. * Subscriber interface.
  9396. * Will be called when a dependency changes.
  9397. */
  9398. Watcher.prototype.update = function update () {
  9399. /* istanbul ignore else */
  9400. if (this.lazy) {
  9401. this.dirty = true;
  9402. } else if (this.sync) {
  9403. this.run();
  9404. } else {
  9405. queueWatcher(this);
  9406. }
  9407. };
  9408. /**
  9409. * Scheduler job interface.
  9410. * Will be called by the scheduler.
  9411. */
  9412. Watcher.prototype.run = function run () {
  9413. if (this.active) {
  9414. var value = this.get();
  9415. if (
  9416. value !== this.value ||
  9417. // Deep watchers and watchers on Object/Arrays should fire even
  9418. // when the value is the same, because the value may
  9419. // have mutated.
  9420. isObject(value) ||
  9421. this.deep
  9422. ) {
  9423. // set new value
  9424. var oldValue = this.value;
  9425. this.value = value;
  9426. if (this.user) {
  9427. try {
  9428. this.cb.call(this.vm, value, oldValue);
  9429. } catch (e) {
  9430. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  9431. }
  9432. } else {
  9433. this.cb.call(this.vm, value, oldValue);
  9434. }
  9435. }
  9436. }
  9437. };
  9438. /**
  9439. * Evaluate the value of the watcher.
  9440. * This only gets called for lazy watchers.
  9441. */
  9442. Watcher.prototype.evaluate = function evaluate () {
  9443. this.value = this.get();
  9444. this.dirty = false;
  9445. };
  9446. /**
  9447. * Depend on all deps collected by this watcher.
  9448. */
  9449. Watcher.prototype.depend = function depend () {
  9450. var i = this.deps.length;
  9451. while (i--) {
  9452. this.deps[i].depend();
  9453. }
  9454. };
  9455. /**
  9456. * Remove self from all dependencies' subscriber list.
  9457. */
  9458. Watcher.prototype.teardown = function teardown () {
  9459. if (this.active) {
  9460. // remove self from vm's watcher list
  9461. // this is a somewhat expensive operation so we skip it
  9462. // if the vm is being destroyed.
  9463. if (!this.vm._isBeingDestroyed) {
  9464. remove(this.vm._watchers, this);
  9465. }
  9466. var i = this.deps.length;
  9467. while (i--) {
  9468. this.deps[i].removeSub(this);
  9469. }
  9470. this.active = false;
  9471. }
  9472. };
  9473. /* */
  9474. var sharedPropertyDefinition = {
  9475. enumerable: true,
  9476. configurable: true,
  9477. get: noop,
  9478. set: noop
  9479. };
  9480. function proxy (target, sourceKey, key) {
  9481. sharedPropertyDefinition.get = function proxyGetter () {
  9482. return this[sourceKey][key]
  9483. };
  9484. sharedPropertyDefinition.set = function proxySetter (val) {
  9485. this[sourceKey][key] = val;
  9486. };
  9487. Object.defineProperty(target, key, sharedPropertyDefinition);
  9488. }
  9489. function initState (vm) {
  9490. vm._watchers = [];
  9491. var opts = vm.$options;
  9492. if (opts.props) { initProps(vm, opts.props); }
  9493. if (opts.methods) { initMethods(vm, opts.methods); }
  9494. if (opts.data) {
  9495. initData(vm);
  9496. } else {
  9497. observe(vm._data = {}, true /* asRootData */);
  9498. }
  9499. if (opts.computed) { initComputed(vm, opts.computed); }
  9500. if (opts.watch && opts.watch !== nativeWatch) {
  9501. initWatch(vm, opts.watch);
  9502. }
  9503. }
  9504. function initProps (vm, propsOptions) {
  9505. var propsData = vm.$options.propsData || {};
  9506. var props = vm._props = {};
  9507. // cache prop keys so that future props updates can iterate using Array
  9508. // instead of dynamic object key enumeration.
  9509. var keys = vm.$options._propKeys = [];
  9510. var isRoot = !vm.$parent;
  9511. // root instance props should be converted
  9512. if (!isRoot) {
  9513. toggleObserving(false);
  9514. }
  9515. var loop = function ( key ) {
  9516. keys.push(key);
  9517. var value = validateProp(key, propsOptions, propsData, vm);
  9518. /* istanbul ignore else */
  9519. if (true) {
  9520. var hyphenatedKey = hyphenate(key);
  9521. if (isReservedAttribute(hyphenatedKey) ||
  9522. config.isReservedAttr(hyphenatedKey)) {
  9523. warn(
  9524. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  9525. vm
  9526. );
  9527. }
  9528. defineReactive$$1(props, key, value, function () {
  9529. if (!isRoot && !isUpdatingChildComponent) {
  9530. {
  9531. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  9532. return
  9533. }
  9534. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  9535. if(
  9536. key === 'value' &&
  9537. Array.isArray(vm.$options.behaviors) &&
  9538. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9539. ){
  9540. return
  9541. }
  9542. if(vm._getFormData){
  9543. return
  9544. }
  9545. var $parent = vm.$parent;
  9546. while($parent){
  9547. if($parent.__next_tick_pending){
  9548. return
  9549. }
  9550. $parent = $parent.$parent;
  9551. }
  9552. }
  9553. warn(
  9554. "Avoid mutating a prop directly since the value will be " +
  9555. "overwritten whenever the parent component re-renders. " +
  9556. "Instead, use a data or computed property based on the prop's " +
  9557. "value. Prop being mutated: \"" + key + "\"",
  9558. vm
  9559. );
  9560. }
  9561. });
  9562. } else {}
  9563. // static props are already proxied on the component's prototype
  9564. // during Vue.extend(). We only need to proxy props defined at
  9565. // instantiation here.
  9566. if (!(key in vm)) {
  9567. proxy(vm, "_props", key);
  9568. }
  9569. };
  9570. for (var key in propsOptions) loop( key );
  9571. toggleObserving(true);
  9572. }
  9573. function initData (vm) {
  9574. var data = vm.$options.data;
  9575. data = vm._data = typeof data === 'function'
  9576. ? getData(data, vm)
  9577. : data || {};
  9578. if (!isPlainObject(data)) {
  9579. data = {};
  9580. true && warn(
  9581. 'data functions should return an object:\n' +
  9582. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  9583. vm
  9584. );
  9585. }
  9586. // proxy data on instance
  9587. var keys = Object.keys(data);
  9588. var props = vm.$options.props;
  9589. var methods = vm.$options.methods;
  9590. var i = keys.length;
  9591. while (i--) {
  9592. var key = keys[i];
  9593. if (true) {
  9594. if (methods && hasOwn(methods, key)) {
  9595. warn(
  9596. ("Method \"" + key + "\" has already been defined as a data property."),
  9597. vm
  9598. );
  9599. }
  9600. }
  9601. if (props && hasOwn(props, key)) {
  9602. true && warn(
  9603. "The data property \"" + key + "\" is already declared as a prop. " +
  9604. "Use prop default value instead.",
  9605. vm
  9606. );
  9607. } else if (!isReserved(key)) {
  9608. proxy(vm, "_data", key);
  9609. }
  9610. }
  9611. // observe data
  9612. observe(data, true /* asRootData */);
  9613. }
  9614. function getData (data, vm) {
  9615. // #7573 disable dep collection when invoking data getters
  9616. pushTarget();
  9617. try {
  9618. return data.call(vm, vm)
  9619. } catch (e) {
  9620. handleError(e, vm, "data()");
  9621. return {}
  9622. } finally {
  9623. popTarget();
  9624. }
  9625. }
  9626. var computedWatcherOptions = { lazy: true };
  9627. function initComputed (vm, computed) {
  9628. // $flow-disable-line
  9629. var watchers = vm._computedWatchers = Object.create(null);
  9630. // computed properties are just getters during SSR
  9631. var isSSR = isServerRendering();
  9632. for (var key in computed) {
  9633. var userDef = computed[key];
  9634. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  9635. if ( true && getter == null) {
  9636. warn(
  9637. ("Getter is missing for computed property \"" + key + "\"."),
  9638. vm
  9639. );
  9640. }
  9641. if (!isSSR) {
  9642. // create internal watcher for the computed property.
  9643. watchers[key] = new Watcher(
  9644. vm,
  9645. getter || noop,
  9646. noop,
  9647. computedWatcherOptions
  9648. );
  9649. }
  9650. // component-defined computed properties are already defined on the
  9651. // component prototype. We only need to define computed properties defined
  9652. // at instantiation here.
  9653. if (!(key in vm)) {
  9654. defineComputed(vm, key, userDef);
  9655. } else if (true) {
  9656. if (key in vm.$data) {
  9657. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  9658. } else if (vm.$options.props && key in vm.$options.props) {
  9659. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  9660. }
  9661. }
  9662. }
  9663. }
  9664. function defineComputed (
  9665. target,
  9666. key,
  9667. userDef
  9668. ) {
  9669. var shouldCache = !isServerRendering();
  9670. if (typeof userDef === 'function') {
  9671. sharedPropertyDefinition.get = shouldCache
  9672. ? createComputedGetter(key)
  9673. : createGetterInvoker(userDef);
  9674. sharedPropertyDefinition.set = noop;
  9675. } else {
  9676. sharedPropertyDefinition.get = userDef.get
  9677. ? shouldCache && userDef.cache !== false
  9678. ? createComputedGetter(key)
  9679. : createGetterInvoker(userDef.get)
  9680. : noop;
  9681. sharedPropertyDefinition.set = userDef.set || noop;
  9682. }
  9683. if ( true &&
  9684. sharedPropertyDefinition.set === noop) {
  9685. sharedPropertyDefinition.set = function () {
  9686. warn(
  9687. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  9688. this
  9689. );
  9690. };
  9691. }
  9692. Object.defineProperty(target, key, sharedPropertyDefinition);
  9693. }
  9694. function createComputedGetter (key) {
  9695. return function computedGetter () {
  9696. var watcher = this._computedWatchers && this._computedWatchers[key];
  9697. if (watcher) {
  9698. if (watcher.dirty) {
  9699. watcher.evaluate();
  9700. }
  9701. if (Dep.SharedObject.target) {// fixed by xxxxxx
  9702. watcher.depend();
  9703. }
  9704. return watcher.value
  9705. }
  9706. }
  9707. }
  9708. function createGetterInvoker(fn) {
  9709. return function computedGetter () {
  9710. return fn.call(this, this)
  9711. }
  9712. }
  9713. function initMethods (vm, methods) {
  9714. var props = vm.$options.props;
  9715. for (var key in methods) {
  9716. if (true) {
  9717. if (typeof methods[key] !== 'function') {
  9718. warn(
  9719. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  9720. "Did you reference the function correctly?",
  9721. vm
  9722. );
  9723. }
  9724. if (props && hasOwn(props, key)) {
  9725. warn(
  9726. ("Method \"" + key + "\" has already been defined as a prop."),
  9727. vm
  9728. );
  9729. }
  9730. if ((key in vm) && isReserved(key)) {
  9731. warn(
  9732. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  9733. "Avoid defining component methods that start with _ or $."
  9734. );
  9735. }
  9736. }
  9737. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  9738. }
  9739. }
  9740. function initWatch (vm, watch) {
  9741. for (var key in watch) {
  9742. var handler = watch[key];
  9743. if (Array.isArray(handler)) {
  9744. for (var i = 0; i < handler.length; i++) {
  9745. createWatcher(vm, key, handler[i]);
  9746. }
  9747. } else {
  9748. createWatcher(vm, key, handler);
  9749. }
  9750. }
  9751. }
  9752. function createWatcher (
  9753. vm,
  9754. expOrFn,
  9755. handler,
  9756. options
  9757. ) {
  9758. if (isPlainObject(handler)) {
  9759. options = handler;
  9760. handler = handler.handler;
  9761. }
  9762. if (typeof handler === 'string') {
  9763. handler = vm[handler];
  9764. }
  9765. return vm.$watch(expOrFn, handler, options)
  9766. }
  9767. function stateMixin (Vue) {
  9768. // flow somehow has problems with directly declared definition object
  9769. // when using Object.defineProperty, so we have to procedurally build up
  9770. // the object here.
  9771. var dataDef = {};
  9772. dataDef.get = function () { return this._data };
  9773. var propsDef = {};
  9774. propsDef.get = function () { return this._props };
  9775. if (true) {
  9776. dataDef.set = function () {
  9777. warn(
  9778. 'Avoid replacing instance root $data. ' +
  9779. 'Use nested data properties instead.',
  9780. this
  9781. );
  9782. };
  9783. propsDef.set = function () {
  9784. warn("$props is readonly.", this);
  9785. };
  9786. }
  9787. Object.defineProperty(Vue.prototype, '$data', dataDef);
  9788. Object.defineProperty(Vue.prototype, '$props', propsDef);
  9789. Vue.prototype.$set = set;
  9790. Vue.prototype.$delete = del;
  9791. Vue.prototype.$watch = function (
  9792. expOrFn,
  9793. cb,
  9794. options
  9795. ) {
  9796. var vm = this;
  9797. if (isPlainObject(cb)) {
  9798. return createWatcher(vm, expOrFn, cb, options)
  9799. }
  9800. options = options || {};
  9801. options.user = true;
  9802. var watcher = new Watcher(vm, expOrFn, cb, options);
  9803. if (options.immediate) {
  9804. try {
  9805. cb.call(vm, watcher.value);
  9806. } catch (error) {
  9807. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  9808. }
  9809. }
  9810. return function unwatchFn () {
  9811. watcher.teardown();
  9812. }
  9813. };
  9814. }
  9815. /* */
  9816. var uid$3 = 0;
  9817. function initMixin (Vue) {
  9818. Vue.prototype._init = function (options) {
  9819. var vm = this;
  9820. // a uid
  9821. vm._uid = uid$3++;
  9822. var startTag, endTag;
  9823. /* istanbul ignore if */
  9824. if ( true && config.performance && mark) {
  9825. startTag = "vue-perf-start:" + (vm._uid);
  9826. endTag = "vue-perf-end:" + (vm._uid);
  9827. mark(startTag);
  9828. }
  9829. // a flag to avoid this being observed
  9830. vm._isVue = true;
  9831. // merge options
  9832. if (options && options._isComponent) {
  9833. // optimize internal component instantiation
  9834. // since dynamic options merging is pretty slow, and none of the
  9835. // internal component options needs special treatment.
  9836. initInternalComponent(vm, options);
  9837. } else {
  9838. vm.$options = mergeOptions(
  9839. resolveConstructorOptions(vm.constructor),
  9840. options || {},
  9841. vm
  9842. );
  9843. }
  9844. /* istanbul ignore else */
  9845. if (true) {
  9846. initProxy(vm);
  9847. } else {}
  9848. // expose real self
  9849. vm._self = vm;
  9850. initLifecycle(vm);
  9851. initEvents(vm);
  9852. initRender(vm);
  9853. callHook(vm, 'beforeCreate');
  9854. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  9855. initState(vm);
  9856. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  9857. !vm._$fallback && callHook(vm, 'created');
  9858. /* istanbul ignore if */
  9859. if ( true && config.performance && mark) {
  9860. vm._name = formatComponentName(vm, false);
  9861. mark(endTag);
  9862. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  9863. }
  9864. if (vm.$options.el) {
  9865. vm.$mount(vm.$options.el);
  9866. }
  9867. };
  9868. }
  9869. function initInternalComponent (vm, options) {
  9870. var opts = vm.$options = Object.create(vm.constructor.options);
  9871. // doing this because it's faster than dynamic enumeration.
  9872. var parentVnode = options._parentVnode;
  9873. opts.parent = options.parent;
  9874. opts._parentVnode = parentVnode;
  9875. var vnodeComponentOptions = parentVnode.componentOptions;
  9876. opts.propsData = vnodeComponentOptions.propsData;
  9877. opts._parentListeners = vnodeComponentOptions.listeners;
  9878. opts._renderChildren = vnodeComponentOptions.children;
  9879. opts._componentTag = vnodeComponentOptions.tag;
  9880. if (options.render) {
  9881. opts.render = options.render;
  9882. opts.staticRenderFns = options.staticRenderFns;
  9883. }
  9884. }
  9885. function resolveConstructorOptions (Ctor) {
  9886. var options = Ctor.options;
  9887. if (Ctor.super) {
  9888. var superOptions = resolveConstructorOptions(Ctor.super);
  9889. var cachedSuperOptions = Ctor.superOptions;
  9890. if (superOptions !== cachedSuperOptions) {
  9891. // super option changed,
  9892. // need to resolve new options.
  9893. Ctor.superOptions = superOptions;
  9894. // check if there are any late-modified/attached options (#4976)
  9895. var modifiedOptions = resolveModifiedOptions(Ctor);
  9896. // update base extend options
  9897. if (modifiedOptions) {
  9898. extend(Ctor.extendOptions, modifiedOptions);
  9899. }
  9900. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  9901. if (options.name) {
  9902. options.components[options.name] = Ctor;
  9903. }
  9904. }
  9905. }
  9906. return options
  9907. }
  9908. function resolveModifiedOptions (Ctor) {
  9909. var modified;
  9910. var latest = Ctor.options;
  9911. var sealed = Ctor.sealedOptions;
  9912. for (var key in latest) {
  9913. if (latest[key] !== sealed[key]) {
  9914. if (!modified) { modified = {}; }
  9915. modified[key] = latest[key];
  9916. }
  9917. }
  9918. return modified
  9919. }
  9920. function Vue (options) {
  9921. if ( true &&
  9922. !(this instanceof Vue)
  9923. ) {
  9924. warn('Vue is a constructor and should be called with the `new` keyword');
  9925. }
  9926. this._init(options);
  9927. }
  9928. initMixin(Vue);
  9929. stateMixin(Vue);
  9930. eventsMixin(Vue);
  9931. lifecycleMixin(Vue);
  9932. renderMixin(Vue);
  9933. /* */
  9934. function initUse (Vue) {
  9935. Vue.use = function (plugin) {
  9936. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  9937. if (installedPlugins.indexOf(plugin) > -1) {
  9938. return this
  9939. }
  9940. // additional parameters
  9941. var args = toArray(arguments, 1);
  9942. args.unshift(this);
  9943. if (typeof plugin.install === 'function') {
  9944. plugin.install.apply(plugin, args);
  9945. } else if (typeof plugin === 'function') {
  9946. plugin.apply(null, args);
  9947. }
  9948. installedPlugins.push(plugin);
  9949. return this
  9950. };
  9951. }
  9952. /* */
  9953. function initMixin$1 (Vue) {
  9954. Vue.mixin = function (mixin) {
  9955. this.options = mergeOptions(this.options, mixin);
  9956. return this
  9957. };
  9958. }
  9959. /* */
  9960. function initExtend (Vue) {
  9961. /**
  9962. * Each instance constructor, including Vue, has a unique
  9963. * cid. This enables us to create wrapped "child
  9964. * constructors" for prototypal inheritance and cache them.
  9965. */
  9966. Vue.cid = 0;
  9967. var cid = 1;
  9968. /**
  9969. * Class inheritance
  9970. */
  9971. Vue.extend = function (extendOptions) {
  9972. extendOptions = extendOptions || {};
  9973. var Super = this;
  9974. var SuperId = Super.cid;
  9975. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  9976. if (cachedCtors[SuperId]) {
  9977. return cachedCtors[SuperId]
  9978. }
  9979. var name = extendOptions.name || Super.options.name;
  9980. if ( true && name) {
  9981. validateComponentName(name);
  9982. }
  9983. var Sub = function VueComponent (options) {
  9984. this._init(options);
  9985. };
  9986. Sub.prototype = Object.create(Super.prototype);
  9987. Sub.prototype.constructor = Sub;
  9988. Sub.cid = cid++;
  9989. Sub.options = mergeOptions(
  9990. Super.options,
  9991. extendOptions
  9992. );
  9993. Sub['super'] = Super;
  9994. // For props and computed properties, we define the proxy getters on
  9995. // the Vue instances at extension time, on the extended prototype. This
  9996. // avoids Object.defineProperty calls for each instance created.
  9997. if (Sub.options.props) {
  9998. initProps$1(Sub);
  9999. }
  10000. if (Sub.options.computed) {
  10001. initComputed$1(Sub);
  10002. }
  10003. // allow further extension/mixin/plugin usage
  10004. Sub.extend = Super.extend;
  10005. Sub.mixin = Super.mixin;
  10006. Sub.use = Super.use;
  10007. // create asset registers, so extended classes
  10008. // can have their private assets too.
  10009. ASSET_TYPES.forEach(function (type) {
  10010. Sub[type] = Super[type];
  10011. });
  10012. // enable recursive self-lookup
  10013. if (name) {
  10014. Sub.options.components[name] = Sub;
  10015. }
  10016. // keep a reference to the super options at extension time.
  10017. // later at instantiation we can check if Super's options have
  10018. // been updated.
  10019. Sub.superOptions = Super.options;
  10020. Sub.extendOptions = extendOptions;
  10021. Sub.sealedOptions = extend({}, Sub.options);
  10022. // cache constructor
  10023. cachedCtors[SuperId] = Sub;
  10024. return Sub
  10025. };
  10026. }
  10027. function initProps$1 (Comp) {
  10028. var props = Comp.options.props;
  10029. for (var key in props) {
  10030. proxy(Comp.prototype, "_props", key);
  10031. }
  10032. }
  10033. function initComputed$1 (Comp) {
  10034. var computed = Comp.options.computed;
  10035. for (var key in computed) {
  10036. defineComputed(Comp.prototype, key, computed[key]);
  10037. }
  10038. }
  10039. /* */
  10040. function initAssetRegisters (Vue) {
  10041. /**
  10042. * Create asset registration methods.
  10043. */
  10044. ASSET_TYPES.forEach(function (type) {
  10045. Vue[type] = function (
  10046. id,
  10047. definition
  10048. ) {
  10049. if (!definition) {
  10050. return this.options[type + 's'][id]
  10051. } else {
  10052. /* istanbul ignore if */
  10053. if ( true && type === 'component') {
  10054. validateComponentName(id);
  10055. }
  10056. if (type === 'component' && isPlainObject(definition)) {
  10057. definition.name = definition.name || id;
  10058. definition = this.options._base.extend(definition);
  10059. }
  10060. if (type === 'directive' && typeof definition === 'function') {
  10061. definition = { bind: definition, update: definition };
  10062. }
  10063. this.options[type + 's'][id] = definition;
  10064. return definition
  10065. }
  10066. };
  10067. });
  10068. }
  10069. /* */
  10070. function getComponentName (opts) {
  10071. return opts && (opts.Ctor.options.name || opts.tag)
  10072. }
  10073. function matches (pattern, name) {
  10074. if (Array.isArray(pattern)) {
  10075. return pattern.indexOf(name) > -1
  10076. } else if (typeof pattern === 'string') {
  10077. return pattern.split(',').indexOf(name) > -1
  10078. } else if (isRegExp(pattern)) {
  10079. return pattern.test(name)
  10080. }
  10081. /* istanbul ignore next */
  10082. return false
  10083. }
  10084. function pruneCache (keepAliveInstance, filter) {
  10085. var cache = keepAliveInstance.cache;
  10086. var keys = keepAliveInstance.keys;
  10087. var _vnode = keepAliveInstance._vnode;
  10088. for (var key in cache) {
  10089. var cachedNode = cache[key];
  10090. if (cachedNode) {
  10091. var name = getComponentName(cachedNode.componentOptions);
  10092. if (name && !filter(name)) {
  10093. pruneCacheEntry(cache, key, keys, _vnode);
  10094. }
  10095. }
  10096. }
  10097. }
  10098. function pruneCacheEntry (
  10099. cache,
  10100. key,
  10101. keys,
  10102. current
  10103. ) {
  10104. var cached$$1 = cache[key];
  10105. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  10106. cached$$1.componentInstance.$destroy();
  10107. }
  10108. cache[key] = null;
  10109. remove(keys, key);
  10110. }
  10111. var patternTypes = [String, RegExp, Array];
  10112. var KeepAlive = {
  10113. name: 'keep-alive',
  10114. abstract: true,
  10115. props: {
  10116. include: patternTypes,
  10117. exclude: patternTypes,
  10118. max: [String, Number]
  10119. },
  10120. created: function created () {
  10121. this.cache = Object.create(null);
  10122. this.keys = [];
  10123. },
  10124. destroyed: function destroyed () {
  10125. for (var key in this.cache) {
  10126. pruneCacheEntry(this.cache, key, this.keys);
  10127. }
  10128. },
  10129. mounted: function mounted () {
  10130. var this$1 = this;
  10131. this.$watch('include', function (val) {
  10132. pruneCache(this$1, function (name) { return matches(val, name); });
  10133. });
  10134. this.$watch('exclude', function (val) {
  10135. pruneCache(this$1, function (name) { return !matches(val, name); });
  10136. });
  10137. },
  10138. render: function render () {
  10139. var slot = this.$slots.default;
  10140. var vnode = getFirstComponentChild(slot);
  10141. var componentOptions = vnode && vnode.componentOptions;
  10142. if (componentOptions) {
  10143. // check pattern
  10144. var name = getComponentName(componentOptions);
  10145. var ref = this;
  10146. var include = ref.include;
  10147. var exclude = ref.exclude;
  10148. if (
  10149. // not included
  10150. (include && (!name || !matches(include, name))) ||
  10151. // excluded
  10152. (exclude && name && matches(exclude, name))
  10153. ) {
  10154. return vnode
  10155. }
  10156. var ref$1 = this;
  10157. var cache = ref$1.cache;
  10158. var keys = ref$1.keys;
  10159. var key = vnode.key == null
  10160. // same constructor may get registered as different local components
  10161. // so cid alone is not enough (#3269)
  10162. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  10163. : vnode.key;
  10164. if (cache[key]) {
  10165. vnode.componentInstance = cache[key].componentInstance;
  10166. // make current key freshest
  10167. remove(keys, key);
  10168. keys.push(key);
  10169. } else {
  10170. cache[key] = vnode;
  10171. keys.push(key);
  10172. // prune oldest entry
  10173. if (this.max && keys.length > parseInt(this.max)) {
  10174. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  10175. }
  10176. }
  10177. vnode.data.keepAlive = true;
  10178. }
  10179. return vnode || (slot && slot[0])
  10180. }
  10181. };
  10182. var builtInComponents = {
  10183. KeepAlive: KeepAlive
  10184. };
  10185. /* */
  10186. function initGlobalAPI (Vue) {
  10187. // config
  10188. var configDef = {};
  10189. configDef.get = function () { return config; };
  10190. if (true) {
  10191. configDef.set = function () {
  10192. warn(
  10193. 'Do not replace the Vue.config object, set individual fields instead.'
  10194. );
  10195. };
  10196. }
  10197. Object.defineProperty(Vue, 'config', configDef);
  10198. // exposed util methods.
  10199. // NOTE: these are not considered part of the public API - avoid relying on
  10200. // them unless you are aware of the risk.
  10201. Vue.util = {
  10202. warn: warn,
  10203. extend: extend,
  10204. mergeOptions: mergeOptions,
  10205. defineReactive: defineReactive$$1
  10206. };
  10207. Vue.set = set;
  10208. Vue.delete = del;
  10209. Vue.nextTick = nextTick;
  10210. // 2.6 explicit observable API
  10211. Vue.observable = function (obj) {
  10212. observe(obj);
  10213. return obj
  10214. };
  10215. Vue.options = Object.create(null);
  10216. ASSET_TYPES.forEach(function (type) {
  10217. Vue.options[type + 's'] = Object.create(null);
  10218. });
  10219. // this is used to identify the "base" constructor to extend all plain-object
  10220. // components with in Weex's multi-instance scenarios.
  10221. Vue.options._base = Vue;
  10222. extend(Vue.options.components, builtInComponents);
  10223. initUse(Vue);
  10224. initMixin$1(Vue);
  10225. initExtend(Vue);
  10226. initAssetRegisters(Vue);
  10227. }
  10228. initGlobalAPI(Vue);
  10229. Object.defineProperty(Vue.prototype, '$isServer', {
  10230. get: isServerRendering
  10231. });
  10232. Object.defineProperty(Vue.prototype, '$ssrContext', {
  10233. get: function get () {
  10234. /* istanbul ignore next */
  10235. return this.$vnode && this.$vnode.ssrContext
  10236. }
  10237. });
  10238. // expose FunctionalRenderContext for ssr runtime helper installation
  10239. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  10240. value: FunctionalRenderContext
  10241. });
  10242. Vue.version = '2.6.11';
  10243. /**
  10244. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  10245. */
  10246. var ARRAYTYPE = '[object Array]';
  10247. var OBJECTTYPE = '[object Object]';
  10248. // const FUNCTIONTYPE = '[object Function]'
  10249. function diff(current, pre) {
  10250. var result = {};
  10251. syncKeys(current, pre);
  10252. _diff(current, pre, '', result);
  10253. return result
  10254. }
  10255. function syncKeys(current, pre) {
  10256. if (current === pre) { return }
  10257. var rootCurrentType = type(current);
  10258. var rootPreType = type(pre);
  10259. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  10260. if(Object.keys(current).length >= Object.keys(pre).length){
  10261. for (var key in pre) {
  10262. var currentValue = current[key];
  10263. if (currentValue === undefined) {
  10264. current[key] = null;
  10265. } else {
  10266. syncKeys(currentValue, pre[key]);
  10267. }
  10268. }
  10269. }
  10270. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  10271. if (current.length >= pre.length) {
  10272. pre.forEach(function (item, index) {
  10273. syncKeys(current[index], item);
  10274. });
  10275. }
  10276. }
  10277. }
  10278. function _diff(current, pre, path, result) {
  10279. if (current === pre) { return }
  10280. var rootCurrentType = type(current);
  10281. var rootPreType = type(pre);
  10282. if (rootCurrentType == OBJECTTYPE) {
  10283. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  10284. setResult(result, path, current);
  10285. } else {
  10286. var loop = function ( key ) {
  10287. var currentValue = current[key];
  10288. var preValue = pre[key];
  10289. var currentType = type(currentValue);
  10290. var preType = type(preValue);
  10291. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  10292. if (currentValue !== pre[key]) {
  10293. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10294. }
  10295. } else if (currentType == ARRAYTYPE) {
  10296. if (preType != ARRAYTYPE) {
  10297. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10298. } else {
  10299. if (currentValue.length < preValue.length) {
  10300. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10301. } else {
  10302. currentValue.forEach(function (item, index) {
  10303. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  10304. });
  10305. }
  10306. }
  10307. } else if (currentType == OBJECTTYPE) {
  10308. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  10309. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10310. } else {
  10311. for (var subKey in currentValue) {
  10312. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  10313. }
  10314. }
  10315. }
  10316. };
  10317. for (var key in current) loop( key );
  10318. }
  10319. } else if (rootCurrentType == ARRAYTYPE) {
  10320. if (rootPreType != ARRAYTYPE) {
  10321. setResult(result, path, current);
  10322. } else {
  10323. if (current.length < pre.length) {
  10324. setResult(result, path, current);
  10325. } else {
  10326. current.forEach(function (item, index) {
  10327. _diff(item, pre[index], path + '[' + index + ']', result);
  10328. });
  10329. }
  10330. }
  10331. } else {
  10332. setResult(result, path, current);
  10333. }
  10334. }
  10335. function setResult(result, k, v) {
  10336. // if (type(v) != FUNCTIONTYPE) {
  10337. result[k] = v;
  10338. // }
  10339. }
  10340. function type(obj) {
  10341. return Object.prototype.toString.call(obj)
  10342. }
  10343. /* */
  10344. function flushCallbacks$1(vm) {
  10345. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  10346. if (Object({"VUE_APP_NAME":"随心购","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10347. var mpInstance = vm.$scope;
  10348. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10349. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  10350. }
  10351. var copies = vm.__next_tick_callbacks.slice(0);
  10352. vm.__next_tick_callbacks.length = 0;
  10353. for (var i = 0; i < copies.length; i++) {
  10354. copies[i]();
  10355. }
  10356. }
  10357. }
  10358. function hasRenderWatcher(vm) {
  10359. return queue.find(function (watcher) { return vm._watcher === watcher; })
  10360. }
  10361. function nextTick$1(vm, cb) {
  10362. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  10363. //2.nextTick 之前存在 render watcher
  10364. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  10365. if(Object({"VUE_APP_NAME":"随心购","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  10366. var mpInstance = vm.$scope;
  10367. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10368. ']:nextVueTick');
  10369. }
  10370. return nextTick(cb, vm)
  10371. }else{
  10372. if(Object({"VUE_APP_NAME":"随心购","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  10373. var mpInstance$1 = vm.$scope;
  10374. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  10375. ']:nextMPTick');
  10376. }
  10377. }
  10378. var _resolve;
  10379. if (!vm.__next_tick_callbacks) {
  10380. vm.__next_tick_callbacks = [];
  10381. }
  10382. vm.__next_tick_callbacks.push(function () {
  10383. if (cb) {
  10384. try {
  10385. cb.call(vm);
  10386. } catch (e) {
  10387. handleError(e, vm, 'nextTick');
  10388. }
  10389. } else if (_resolve) {
  10390. _resolve(vm);
  10391. }
  10392. });
  10393. // $flow-disable-line
  10394. if (!cb && typeof Promise !== 'undefined') {
  10395. return new Promise(function (resolve) {
  10396. _resolve = resolve;
  10397. })
  10398. }
  10399. }
  10400. /* */
  10401. function cloneWithData(vm) {
  10402. // 确保当前 vm 所有数据被同步
  10403. var ret = Object.create(null);
  10404. var dataKeys = [].concat(
  10405. Object.keys(vm._data || {}),
  10406. Object.keys(vm._computedWatchers || {}));
  10407. dataKeys.reduce(function(ret, key) {
  10408. ret[key] = vm[key];
  10409. return ret
  10410. }, ret);
  10411. // vue-composition-api
  10412. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  10413. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  10414. if (rawBindings) {
  10415. Object.keys(rawBindings).forEach(function (key) {
  10416. ret[key] = vm[key];
  10417. });
  10418. }
  10419. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  10420. Object.assign(ret, vm.$mp.data || {});
  10421. if (
  10422. Array.isArray(vm.$options.behaviors) &&
  10423. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  10424. ) { //form-field
  10425. ret['name'] = vm.name;
  10426. ret['value'] = vm.value;
  10427. }
  10428. return JSON.parse(JSON.stringify(ret))
  10429. }
  10430. var patch = function(oldVnode, vnode) {
  10431. var this$1 = this;
  10432. if (vnode === null) { //destroy
  10433. return
  10434. }
  10435. if (this.mpType === 'page' || this.mpType === 'component') {
  10436. var mpInstance = this.$scope;
  10437. var data = Object.create(null);
  10438. try {
  10439. data = cloneWithData(this);
  10440. } catch (err) {
  10441. console.error(err);
  10442. }
  10443. data.__webviewId__ = mpInstance.data.__webviewId__;
  10444. var mpData = Object.create(null);
  10445. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  10446. mpData[key] = mpInstance.data[key];
  10447. });
  10448. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  10449. if (Object.keys(diffData).length) {
  10450. if (Object({"VUE_APP_NAME":"随心购","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10451. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  10452. ']差量更新',
  10453. JSON.stringify(diffData));
  10454. }
  10455. this.__next_tick_pending = true;
  10456. mpInstance.setData(diffData, function () {
  10457. this$1.__next_tick_pending = false;
  10458. flushCallbacks$1(this$1);
  10459. });
  10460. } else {
  10461. flushCallbacks$1(this);
  10462. }
  10463. }
  10464. };
  10465. /* */
  10466. function createEmptyRender() {
  10467. }
  10468. function mountComponent$1(
  10469. vm,
  10470. el,
  10471. hydrating
  10472. ) {
  10473. if (!vm.mpType) {//main.js 中的 new Vue
  10474. return vm
  10475. }
  10476. if (vm.mpType === 'app') {
  10477. vm.$options.render = createEmptyRender;
  10478. }
  10479. if (!vm.$options.render) {
  10480. vm.$options.render = createEmptyRender;
  10481. if (true) {
  10482. /* istanbul ignore if */
  10483. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  10484. vm.$options.el || el) {
  10485. warn(
  10486. 'You are using the runtime-only build of Vue where the template ' +
  10487. 'compiler is not available. Either pre-compile the templates into ' +
  10488. 'render functions, or use the compiler-included build.',
  10489. vm
  10490. );
  10491. } else {
  10492. warn(
  10493. 'Failed to mount component: template or render function not defined.',
  10494. vm
  10495. );
  10496. }
  10497. }
  10498. }
  10499. !vm._$fallback && callHook(vm, 'beforeMount');
  10500. var updateComponent = function () {
  10501. vm._update(vm._render(), hydrating);
  10502. };
  10503. // we set this to vm._watcher inside the watcher's constructor
  10504. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  10505. // component's mounted hook), which relies on vm._watcher being already defined
  10506. new Watcher(vm, updateComponent, noop, {
  10507. before: function before() {
  10508. if (vm._isMounted && !vm._isDestroyed) {
  10509. callHook(vm, 'beforeUpdate');
  10510. }
  10511. }
  10512. }, true /* isRenderWatcher */);
  10513. hydrating = false;
  10514. return vm
  10515. }
  10516. /* */
  10517. function renderClass (
  10518. staticClass,
  10519. dynamicClass
  10520. ) {
  10521. if (isDef(staticClass) || isDef(dynamicClass)) {
  10522. return concat(staticClass, stringifyClass(dynamicClass))
  10523. }
  10524. /* istanbul ignore next */
  10525. return ''
  10526. }
  10527. function concat (a, b) {
  10528. return a ? b ? (a + ' ' + b) : a : (b || '')
  10529. }
  10530. function stringifyClass (value) {
  10531. if (Array.isArray(value)) {
  10532. return stringifyArray(value)
  10533. }
  10534. if (isObject(value)) {
  10535. return stringifyObject(value)
  10536. }
  10537. if (typeof value === 'string') {
  10538. return value
  10539. }
  10540. /* istanbul ignore next */
  10541. return ''
  10542. }
  10543. function stringifyArray (value) {
  10544. var res = '';
  10545. var stringified;
  10546. for (var i = 0, l = value.length; i < l; i++) {
  10547. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  10548. if (res) { res += ' '; }
  10549. res += stringified;
  10550. }
  10551. }
  10552. return res
  10553. }
  10554. function stringifyObject (value) {
  10555. var res = '';
  10556. for (var key in value) {
  10557. if (value[key]) {
  10558. if (res) { res += ' '; }
  10559. res += key;
  10560. }
  10561. }
  10562. return res
  10563. }
  10564. /* */
  10565. var parseStyleText = cached(function (cssText) {
  10566. var res = {};
  10567. var listDelimiter = /;(?![^(]*\))/g;
  10568. var propertyDelimiter = /:(.+)/;
  10569. cssText.split(listDelimiter).forEach(function (item) {
  10570. if (item) {
  10571. var tmp = item.split(propertyDelimiter);
  10572. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  10573. }
  10574. });
  10575. return res
  10576. });
  10577. // normalize possible array / string values into Object
  10578. function normalizeStyleBinding (bindingStyle) {
  10579. if (Array.isArray(bindingStyle)) {
  10580. return toObject(bindingStyle)
  10581. }
  10582. if (typeof bindingStyle === 'string') {
  10583. return parseStyleText(bindingStyle)
  10584. }
  10585. return bindingStyle
  10586. }
  10587. /* */
  10588. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  10589. function getTarget(obj, path) {
  10590. var parts = path.split('.');
  10591. var key = parts[0];
  10592. if (key.indexOf('__$n') === 0) { //number index
  10593. key = parseInt(key.replace('__$n', ''));
  10594. }
  10595. if (parts.length === 1) {
  10596. return obj[key]
  10597. }
  10598. return getTarget(obj[key], parts.slice(1).join('.'))
  10599. }
  10600. function internalMixin(Vue) {
  10601. Vue.config.errorHandler = function(err, vm, info) {
  10602. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  10603. console.error(err);
  10604. /* eslint-disable no-undef */
  10605. var app = typeof getApp === 'function' && getApp();
  10606. if (app && app.onError) {
  10607. app.onError(err);
  10608. }
  10609. };
  10610. var oldEmit = Vue.prototype.$emit;
  10611. Vue.prototype.$emit = function(event) {
  10612. if (this.$scope && event) {
  10613. (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, {
  10614. __args__: toArray(arguments, 1)
  10615. });
  10616. }
  10617. return oldEmit.apply(this, arguments)
  10618. };
  10619. Vue.prototype.$nextTick = function(fn) {
  10620. return nextTick$1(this, fn)
  10621. };
  10622. MP_METHODS.forEach(function (method) {
  10623. Vue.prototype[method] = function(args) {
  10624. if (this.$scope && this.$scope[method]) {
  10625. return this.$scope[method](args)
  10626. }
  10627. // mp-alipay
  10628. if (typeof my === 'undefined') {
  10629. return
  10630. }
  10631. if (method === 'createSelectorQuery') {
  10632. /* eslint-disable no-undef */
  10633. return my.createSelectorQuery(args)
  10634. } else if (method === 'createIntersectionObserver') {
  10635. /* eslint-disable no-undef */
  10636. return my.createIntersectionObserver(args)
  10637. }
  10638. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  10639. };
  10640. });
  10641. Vue.prototype.__init_provide = initProvide;
  10642. Vue.prototype.__init_injections = initInjections;
  10643. Vue.prototype.__call_hook = function(hook, args) {
  10644. var vm = this;
  10645. // #7573 disable dep collection when invoking lifecycle hooks
  10646. pushTarget();
  10647. var handlers = vm.$options[hook];
  10648. var info = hook + " hook";
  10649. var ret;
  10650. if (handlers) {
  10651. for (var i = 0, j = handlers.length; i < j; i++) {
  10652. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  10653. }
  10654. }
  10655. if (vm._hasHookEvent) {
  10656. vm.$emit('hook:' + hook, args);
  10657. }
  10658. popTarget();
  10659. return ret
  10660. };
  10661. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  10662. if (Array.isArray(modifiers)) {
  10663. if (modifiers.indexOf('trim') !== -1) {
  10664. value = value.trim();
  10665. }
  10666. if (modifiers.indexOf('number') !== -1) {
  10667. value = this._n(value);
  10668. }
  10669. }
  10670. if (!target) {
  10671. target = this;
  10672. }
  10673. // 解决动态属性添加
  10674. Vue.set(target, key, value);
  10675. };
  10676. Vue.prototype.__set_sync = function(target, key, value) {
  10677. if (!target) {
  10678. target = this;
  10679. }
  10680. // 解决动态属性添加
  10681. Vue.set(target, key, value);
  10682. };
  10683. Vue.prototype.__get_orig = function(item) {
  10684. if (isPlainObject(item)) {
  10685. return item['$orig'] || item
  10686. }
  10687. return item
  10688. };
  10689. Vue.prototype.__get_value = function(dataPath, target) {
  10690. return getTarget(target || this, dataPath)
  10691. };
  10692. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  10693. return renderClass(staticClass, dynamicClass)
  10694. };
  10695. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  10696. if (!dynamicStyle && !staticStyle) {
  10697. return ''
  10698. }
  10699. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  10700. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  10701. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  10702. };
  10703. Vue.prototype.__map = function(val, iteratee) {
  10704. //TODO 暂不考虑 string
  10705. var ret, i, l, keys, key;
  10706. if (Array.isArray(val)) {
  10707. ret = new Array(val.length);
  10708. for (i = 0, l = val.length; i < l; i++) {
  10709. ret[i] = iteratee(val[i], i);
  10710. }
  10711. return ret
  10712. } else if (isObject(val)) {
  10713. keys = Object.keys(val);
  10714. ret = Object.create(null);
  10715. for (i = 0, l = keys.length; i < l; i++) {
  10716. key = keys[i];
  10717. ret[key] = iteratee(val[key], key, i);
  10718. }
  10719. return ret
  10720. } else if (typeof val === 'number') {
  10721. ret = new Array(val);
  10722. for (i = 0, l = val; i < l; i++) {
  10723. // 第一个参数暂时仍和小程序一致
  10724. ret[i] = iteratee(i, i);
  10725. }
  10726. return ret
  10727. }
  10728. return []
  10729. };
  10730. }
  10731. /* */
  10732. var LIFECYCLE_HOOKS$1 = [
  10733. //App
  10734. 'onLaunch',
  10735. 'onShow',
  10736. 'onHide',
  10737. 'onUniNViewMessage',
  10738. 'onPageNotFound',
  10739. 'onThemeChange',
  10740. 'onError',
  10741. 'onUnhandledRejection',
  10742. //Page
  10743. 'onInit',
  10744. 'onLoad',
  10745. // 'onShow',
  10746. 'onReady',
  10747. // 'onHide',
  10748. 'onUnload',
  10749. 'onPullDownRefresh',
  10750. 'onReachBottom',
  10751. 'onTabItemTap',
  10752. 'onAddToFavorites',
  10753. 'onShareTimeline',
  10754. 'onShareAppMessage',
  10755. 'onResize',
  10756. 'onPageScroll',
  10757. 'onNavigationBarButtonTap',
  10758. 'onBackPress',
  10759. 'onNavigationBarSearchInputChanged',
  10760. 'onNavigationBarSearchInputConfirmed',
  10761. 'onNavigationBarSearchInputClicked',
  10762. //Component
  10763. // 'onReady', // 兼容旧版本,应该移除该事件
  10764. 'onPageShow',
  10765. 'onPageHide',
  10766. 'onPageResize'
  10767. ];
  10768. function lifecycleMixin$1(Vue) {
  10769. //fixed vue-class-component
  10770. var oldExtend = Vue.extend;
  10771. Vue.extend = function(extendOptions) {
  10772. extendOptions = extendOptions || {};
  10773. var methods = extendOptions.methods;
  10774. if (methods) {
  10775. Object.keys(methods).forEach(function (methodName) {
  10776. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  10777. extendOptions[methodName] = methods[methodName];
  10778. delete methods[methodName];
  10779. }
  10780. });
  10781. }
  10782. return oldExtend.call(this, extendOptions)
  10783. };
  10784. var strategies = Vue.config.optionMergeStrategies;
  10785. var mergeHook = strategies.created;
  10786. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  10787. strategies[hook] = mergeHook;
  10788. });
  10789. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  10790. }
  10791. /* */
  10792. // install platform patch function
  10793. Vue.prototype.__patch__ = patch;
  10794. // public mount method
  10795. Vue.prototype.$mount = function(
  10796. el ,
  10797. hydrating
  10798. ) {
  10799. return mountComponent$1(this, el, hydrating)
  10800. };
  10801. lifecycleMixin$1(Vue);
  10802. internalMixin(Vue);
  10803. /* */
  10804. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  10805. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  10806. /***/ }),
  10807. /***/ 40:
  10808. /*!***********************************************************!*\
  10809. !*** D:/2022/7/hqshop/uview-ui/libs/function/debounce.js ***!
  10810. \***********************************************************/
  10811. /*! no static exports found */
  10812. /***/ (function(module, exports, __webpack_require__) {
  10813. "use strict";
  10814. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timeout = null;
  10815. /**
  10816. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  10817. *
  10818. * @param {Function} func 要执行的回调函数
  10819. * @param {Number} wait 延时的时间
  10820. * @param {Boolean} immediate 是否立即执行
  10821. * @return null
  10822. */
  10823. function debounce(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  10824. // 清除定时器
  10825. if (timeout !== null) clearTimeout(timeout);
  10826. // 立即执行,此类情况一般用不到
  10827. if (immediate) {
  10828. var callNow = !timeout;
  10829. timeout = setTimeout(function () {
  10830. timeout = null;
  10831. }, wait);
  10832. if (callNow) typeof func === 'function' && func();
  10833. } else {
  10834. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  10835. timeout = setTimeout(function () {
  10836. typeof func === 'function' && func();
  10837. }, wait);
  10838. }
  10839. }var _default =
  10840. debounce;exports.default = _default;
  10841. /***/ }),
  10842. /***/ 41:
  10843. /*!***********************************************************!*\
  10844. !*** D:/2022/7/hqshop/uview-ui/libs/function/throttle.js ***!
  10845. \***********************************************************/
  10846. /*! no static exports found */
  10847. /***/ (function(module, exports, __webpack_require__) {
  10848. "use strict";
  10849. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timer, flag;
  10850. /**
  10851. * 节流原理:在一定时间内,只能触发一次
  10852. *
  10853. * @param {Function} func 要执行的回调函数
  10854. * @param {Number} wait 延时的时间
  10855. * @param {Boolean} immediate 是否立即执行
  10856. * @return null
  10857. */
  10858. function throttle(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  10859. if (immediate) {
  10860. if (!flag) {
  10861. flag = true;
  10862. // 如果是立即执行,则在wait毫秒内开始时执行
  10863. typeof func === 'function' && func();
  10864. timer = setTimeout(function () {
  10865. flag = false;
  10866. }, wait);
  10867. }
  10868. } else {
  10869. if (!flag) {
  10870. flag = true;
  10871. // 如果是非立即执行,则在wait毫秒内的结束处执行
  10872. timer = setTimeout(function () {
  10873. flag = false;
  10874. typeof func === 'function' && func();
  10875. }, wait);
  10876. }
  10877. }
  10878. };var _default =
  10879. throttle;exports.default = _default;
  10880. /***/ }),
  10881. /***/ 42:
  10882. /*!*******************************************************!*\
  10883. !*** D:/2022/7/hqshop/uview-ui/libs/config/config.js ***!
  10884. \*******************************************************/
  10885. /*! no static exports found */
  10886. /***/ (function(module, exports, __webpack_require__) {
  10887. "use strict";
  10888. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 此版本发布于2020-03-17
  10889. var version = '1.8.4';var _default =
  10890. {
  10891. v: version,
  10892. version: version,
  10893. // 主题名称
  10894. type: [
  10895. 'primary',
  10896. 'success',
  10897. 'info',
  10898. 'error',
  10899. 'warning'] };exports.default = _default;
  10900. /***/ }),
  10901. /***/ 43:
  10902. /*!*******************************************************!*\
  10903. !*** D:/2022/7/hqshop/uview-ui/libs/config/zIndex.js ***!
  10904. \*******************************************************/
  10905. /*! no static exports found */
  10906. /***/ (function(module, exports, __webpack_require__) {
  10907. "use strict";
  10908. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // uniapp在H5中各API的z-index值如下:
  10909. /**
  10910. * actionsheet: 999
  10911. * modal: 999
  10912. * navigate: 998
  10913. * tabbar: 998
  10914. * toast: 999
  10915. */var _default =
  10916. {
  10917. toast: 10090,
  10918. noNetwork: 10080,
  10919. // popup包含popup,actionsheet,keyboard,picker的值
  10920. popup: 10075,
  10921. mask: 10070,
  10922. navbar: 980,
  10923. topTips: 975,
  10924. sticky: 970,
  10925. indexListSticky: 965 };exports.default = _default;
  10926. /***/ }),
  10927. /***/ 5:
  10928. /*!***********************************!*\
  10929. !*** D:/2022/7/hqshop/pages.json ***!
  10930. \***********************************/
  10931. /*! no static exports found */
  10932. /***/ (function(module, exports) {
  10933. /***/ }),
  10934. /***/ 50:
  10935. /*!*************************************!*\
  10936. !*** D:/2022/7/hqshop/api/index.js ***!
  10937. \*************************************/
  10938. /*! no static exports found */
  10939. /***/ (function(module, exports, __webpack_require__) {
  10940. "use strict";
  10941. Object.defineProperty(exports, "__esModule", { value: true });exports.groom4 = groom4;exports.groom1 = groom1;exports.groom3 = groom3;exports.loadIndexs = loadIndexs;exports.getChangCi = getChangCi;exports.subscribe = subscribe;exports.advance = advance;exports.section = section;exports.purchase = purchase;exports.zfpay = zfpay;exports.hanging_sale = hanging_sale;exports.see_order = see_order;exports.product = product;exports.transaction = transaction;exports.upPz = upPz;exports.getQr = getQr;exports.upload = upload;var _request = _interopRequireWildcard(__webpack_require__(/*! @/utils/request */ 51));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  10942. // 促销商品
  10943. function groom4(data) {
  10944. return (0, _request.default)({
  10945. url: '/api/groom/list/4',
  10946. method: 'get',
  10947. data: data });
  10948. }
  10949. // 精品推荐
  10950. function groom1(data) {
  10951. return (0, _request.default)({
  10952. url: '/api/groom/list/1',
  10953. method: 'get',
  10954. data: data });
  10955. }
  10956. // 新品首发
  10957. function groom3(data) {
  10958. return (0, _request.default)({
  10959. url: '/api/groom/list/3',
  10960. method: 'get',
  10961. data: data });
  10962. }
  10963. // 获取首页信息
  10964. function loadIndexs(data) {
  10965. return (0, _request.default)({
  10966. url: '/api/index',
  10967. method: 'get',
  10968. data: data });
  10969. }
  10970. // 获取场次
  10971. function getChangCi(data) {
  10972. return (0, _request.default)({
  10973. url: '/api/auction',
  10974. method: 'get',
  10975. data: data });
  10976. }
  10977. // 预约
  10978. function subscribe(data) {
  10979. return (0, _request.default)({
  10980. url: '/api/subscribe',
  10981. method: 'post',
  10982. data: data });
  10983. }
  10984. // 进场
  10985. function advance(data) {
  10986. return (0, _request.default)({
  10987. url: '/api/advance',
  10988. method: 'get',
  10989. data: data });
  10990. }
  10991. // 场次价格区间
  10992. function section(data) {
  10993. return (0, _request.default)({
  10994. url: '/api/section',
  10995. method: 'get',
  10996. data: data });
  10997. }
  10998. //购买预约商品
  10999. function purchase(data) {
  11000. return (0, _request.default)({
  11001. url: '/api/purchase',
  11002. method: 'get',
  11003. data: data });
  11004. }
  11005. // 订单支付http://sxg.frp.liuniu946.com/api/zfpay?type=1&page=1&limit=10
  11006. function zfpay(data) {
  11007. return (0, _request.default)({
  11008. url: '/api/zfpay',
  11009. method: 'post',
  11010. data: data });
  11011. }
  11012. // 挂售http://sxg.frp.liuniu946.com/api/hanging_sale
  11013. function hanging_sale(data) {
  11014. return (0, _request.default)({
  11015. url: '/api/hanging_sale',
  11016. method: 'post',
  11017. data: data });
  11018. }
  11019. //http://sxg.frp.liuniu946.com/api/auction/see_order?id=11
  11020. function see_order(data) {
  11021. return (0, _request.default)({
  11022. url: '/api/auction/see_order',
  11023. method: 'get',
  11024. data: data });
  11025. }
  11026. // 查看预约商品详情 http://sxg.frp.liuniu946.com/api/auction/product?id=103
  11027. function product(data) {
  11028. return (0, _request.default)({
  11029. url: '/api/auction/product',
  11030. method: 'get',
  11031. data: data });
  11032. }
  11033. // 设置支付密码http://sxg.frp.liuniu946.com/api/edit_pas
  11034. function transaction(data) {
  11035. return (0, _request.default)({
  11036. url: '/api/edit_pas',
  11037. method: 'post',
  11038. data: data });
  11039. }
  11040. //api/examine
  11041. function upPz(data) {
  11042. return (0, _request.default)({
  11043. url: '/api/examine',
  11044. method: 'post',
  11045. data: data });
  11046. }
  11047. // getQr
  11048. function getQr(data) {
  11049. return (0, _request.default)({
  11050. url: '/api/brc',
  11051. method: 'get',
  11052. data: data });
  11053. }
  11054. //上传图片
  11055. function upload(data) {
  11056. return (0, _request.upFilse)({
  11057. url: '/api/upload',
  11058. method: 'post',
  11059. data: data });
  11060. }
  11061. /***/ }),
  11062. /***/ 51:
  11063. /*!*****************************************!*\
  11064. !*** D:/2022/7/hqshop/utils/request.js ***!
  11065. \*****************************************/
  11066. /*! no static exports found */
  11067. /***/ (function(module, exports, __webpack_require__) {
  11068. "use strict";
  11069. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = exports.upFilse = void 0;var _newRequest = _interopRequireDefault(__webpack_require__(/*! ./newRequest.js */ 52));
  11070. var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 6));
  11071. var _loginUtils = __webpack_require__(/*! @/utils/loginUtils.js */ 53);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  11072. // 请求完成后拦截
  11073. _newRequest.default.interceptors.response(
  11074. function (response) {
  11075. try {
  11076. var res = response.data;
  11077. // 解析字符串为数字
  11078. if (res.status !== 200) {
  11079. console.log(res.status);
  11080. if (res.status == 410000) {
  11081. // 调用退出登录方法清空用户信息
  11082. _store.default.commit('user/logout');
  11083. // 判断是否开启强制登录
  11084. uni.showModal({
  11085. title: "登陆",
  11086. content: '您未登录!是否马上登录?',
  11087. success: function success(e) {
  11088. // 判断是否点击确认按钮
  11089. if (e.confirm) {
  11090. // 保存当前页面地址
  11091. (0, _loginUtils.saveUrl)();
  11092. // 跳转页面
  11093. (0, _loginUtils.interceptor)();
  11094. }
  11095. } });
  11096. } else {
  11097. if (res.msg != '系统出现异常') {
  11098. uni.showToast({
  11099. title: res.msg,
  11100. duration: 1500,
  11101. mask: false,
  11102. icon: 'none' });
  11103. }
  11104. }
  11105. return Promise.reject(res);
  11106. } else {
  11107. return res;
  11108. }
  11109. } catch (e) {
  11110. console.log(e);
  11111. }
  11112. },
  11113. function (error) {
  11114. uni.showToast({
  11115. title: "加载错误请重试",
  11116. duration: 1500,
  11117. mask: false,
  11118. icon: 'none' });
  11119. return Promise.reject(error);
  11120. });
  11121. // 请求前拦截器
  11122. _newRequest.default.interceptors.request(
  11123. function (config) {
  11124. var token = uni.getStorageSync('token') || '';
  11125. // console.log(config);
  11126. if (!config.header) {
  11127. config.header = {
  11128. "Authori-zation": 'Bearer ' + token };
  11129. } else {
  11130. // 添加key请求头
  11131. config.header["Authori-zation"] = 'Bearer ' + token;
  11132. }
  11133. return config;
  11134. },
  11135. function (error) {
  11136. // 错误处理
  11137. console.log(error);
  11138. return Promise.reject(error);
  11139. });
  11140. var upFilse = _newRequest.default.upFilse;exports.upFilse = upFilse;var _default =
  11141. _newRequest.default.open;exports.default = _default;
  11142. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11143. /***/ }),
  11144. /***/ 52:
  11145. /*!********************************************!*\
  11146. !*** D:/2022/7/hqshop/utils/newRequest.js ***!
  11147. \********************************************/
  11148. /*! no static exports found */
  11149. /***/ (function(module, exports, __webpack_require__) {
  11150. "use strict";
  11151. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 23));var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 6));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}
  11152. var service = {
  11153. baseURL: _store.default.state.baseURL, // 请求头
  11154. header: {
  11155. 'Content-Type': "application/x-www-form-urlencoded" },
  11156. // 请求拦截器
  11157. interceptors: {
  11158. // 安装请求前拦截
  11159. request: function request(success, iserror) {
  11160. service.request.success = success;
  11161. service.request.error = iserror;
  11162. },
  11163. // 安装请求完成后拦截
  11164. response: function response(success, iserror) {
  11165. service.response.success = success;
  11166. service.response.error = iserror;
  11167. } },
  11168. // 请求前拦截
  11169. request: {
  11170. // 回调成功执行方法
  11171. success: function success(e) {
  11172. return e;
  11173. },
  11174. // 回调失败
  11175. error: function error(e) {
  11176. return e;
  11177. } },
  11178. // 请求完成后拦截
  11179. response: {
  11180. // 回调成功执行方法
  11181. success: function success(e) {
  11182. return e;
  11183. },
  11184. // 回调失败
  11185. error: function error(e) {
  11186. return e;
  11187. } },
  11188. // 开始请求
  11189. open: function () {var _open = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
  11190. new Promise(function (resolve, reject) {
  11191. var requestData = ''; //保存处理完成后请求数据
  11192. var url = ''; //保存链接地址
  11193. //console.log(data);
  11194. // 请求前数据处理
  11195. requestData = service.request.success(data);
  11196. url = service.baseURL + requestData.url;
  11197. // 数据复制用于请求
  11198. uni.request({
  11199. url: url,
  11200. method: requestData.method || 'GET',
  11201. data: requestData.data,
  11202. header: data.header || service.header,
  11203. success: function success(res) {
  11204. if (res.statusCode == 200) {
  11205. try {
  11206. resolve(service.response.success(res));
  11207. } catch (e) {
  11208. service.response.error(e);
  11209. }
  11210. }
  11211. },
  11212. // 请求失败数据处理
  11213. fail: function fail(err) {
  11214. service.response.error(err);
  11215. } });
  11216. }));case 2:return _context.abrupt("return", _context.sent);case 3:case "end":return _context.stop();}}}, _callee);}));function open(_x) {return _open.apply(this, arguments);}return open;}(),
  11217. // 上传文件
  11218. upFilse: function () {var _upFilse = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4(data) {return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:_context4.next = 2;return (
  11219. new Promise(function (resolve, reject) {
  11220. var requestData = ''; //保存处理完成后请求数据
  11221. var url = ''; //保存请求地址
  11222. try {
  11223. // 请求前数据处理
  11224. requestData = service.request.success(data);
  11225. } catch (e) {
  11226. // 请求报错拦截
  11227. service.request.error(e);
  11228. }
  11229. url = service.baseURL + requestData.url;
  11230. var config = {
  11231. // 上传图片的API
  11232. upload_img_url: url };
  11233. var Uploader = {
  11234. // 选择图片
  11235. choose: function choose(num) {
  11236. return new Promise(function (resolve, reject) {
  11237. uni.chooseImage({
  11238. count: num,
  11239. success: function success(res) {
  11240. // console.log(res);
  11241. // 缓存文件路径
  11242. resolve(res.tempFilePaths);
  11243. },
  11244. fail: function fail(err) {
  11245. console.log(err);
  11246. reject(err);
  11247. } });
  11248. });
  11249. },
  11250. // 上传图片
  11251. upload_one: function upload_one(path) {
  11252. return new Promise(function (resolve, reject) {
  11253. uni.showLoading({
  11254. title: '上传中' });
  11255. uni.uploadFile({
  11256. url: config.upload_img_url, //仅为示例,非真实的接口地址
  11257. filePath: path,
  11258. name: 'file',
  11259. header: {
  11260. "Authori-zation": 'Bearer ' + uni.getStorageSync('token') },
  11261. success: function success(uploadFileRes) {
  11262. if ("string" === typeof uploadFileRes.data) {
  11263. resolve(JSON.parse(uploadFileRes.data).data);
  11264. } else {
  11265. resolve(uploadFileRes.data.data);
  11266. }
  11267. },
  11268. complete: function complete() {
  11269. uni.hideLoading();
  11270. } });
  11271. });
  11272. },
  11273. // 上传多个图片
  11274. upload: function upload(path_arr) {var _this = this;
  11275. var num = path_arr.length;
  11276. return new Promise( /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {var img_urls, i, img_url;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
  11277. img_urls = [];
  11278. i = 0;case 2:if (!(i < num)) {_context2.next = 10;break;}_context2.next = 5;return (
  11279. _this.upload_one(path_arr[i]));case 5:img_url = _context2.sent;
  11280. img_urls.push(img_url);case 7:i++;_context2.next = 2;break;case 10:
  11281. ;
  11282. resolve(img_urls);case 12:case "end":return _context2.stop();}}}, _callee2);}));return function (_x3, _x4) {return _ref.apply(this, arguments);};}());
  11283. },
  11284. // 触发上传图片事件
  11285. choose_and_upload: function choose_and_upload(num) {var _this2 = this;
  11286. return new Promise( /*#__PURE__*/function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(resolve, reject) {var path_arr;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return (
  11287. _this2.choose(num));case 2:path_arr = _context3.sent;_context3.next = 5;return (
  11288. _this2.upload(path_arr).then(function (e) {
  11289. resolve(e);
  11290. }).catch(function (e) {
  11291. reject(e);
  11292. }));case 5:case "end":return _context3.stop();}}}, _callee3);}));return function (_x5, _x6) {return _ref2.apply(this, arguments);};}());
  11293. } };
  11294. Uploader.choose_and_upload(1).then(function (e) {
  11295. resolve(e);
  11296. }).catch(function (e) {
  11297. console.log(e);
  11298. });
  11299. }));case 2:return _context4.abrupt("return", _context4.sent);case 3:case "end":return _context4.stop();}}}, _callee4);}));function upFilse(_x2) {return _upFilse.apply(this, arguments);}return upFilse;}() };var _default =
  11300. service;exports.default = _default;
  11301. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11302. /***/ }),
  11303. /***/ 53:
  11304. /*!********************************************!*\
  11305. !*** D:/2022/7/hqshop/utils/loginUtils.js ***!
  11306. \********************************************/
  11307. /*! no static exports found */
  11308. /***/ (function(module, exports, __webpack_require__) {
  11309. "use strict";
  11310. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.getActionPage = getActionPage;exports.interceptor = interceptor;exports.saveUrl = saveUrl;exports.getPageUrl = getPageUrl;function getActionPage() {
  11311. var pages = getCurrentPages();
  11312. return pages[pages.length - 1];
  11313. }
  11314. //登录拦截
  11315. function interceptor() {
  11316. var pages = getActionPage();
  11317. // 获取当前页面
  11318. var pageUrl = '/' + pages.route;
  11319. var url = '/pages/public/login';
  11320. url = '/pages/public/wxLogin';
  11321. if (pageUrl != url) {
  11322. uni.navigateTo({
  11323. url: url });
  11324. }
  11325. }
  11326. // 保存页面
  11327. function saveUrl() {
  11328. var path = getPageUrl(true);
  11329. uni.setStorageSync('present', path);
  11330. }
  11331. // 处理分享链接地址
  11332. function getPageUrl() {var showSpeard = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  11333. var page = getActionPage();
  11334. var path = '/' + page.route;
  11335. var url = '';
  11336. // 获取对象可枚举键值列表
  11337. var objKeys = Object.keys(page.options);
  11338. // 判断有无传值
  11339. if (objKeys.length > 0) {
  11340. // 循环赋值对象数据
  11341. for (var a in page.options) {
  11342. // 判断有无邀请人
  11343. if (a != 'speard') {
  11344. url += a + "=" + page.options[a] + "&";
  11345. } else {
  11346. // 判断是否需要存储邀请人
  11347. if (showSpeard) {
  11348. url += a + "=" + page.options[a] + "&";
  11349. }
  11350. }
  11351. }
  11352. path += '?' + url.substr(0, url.length - 1);
  11353. }
  11354. // 返回处理邀请人后的邀请地址
  11355. return path;
  11356. }
  11357. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11358. /***/ }),
  11359. /***/ 560:
  11360. /*!********************************************************!*\
  11361. !*** D:/2022/7/hqshop/components/tki-qrcode/qrcode.js ***!
  11362. \********************************************************/
  11363. /*! no static exports found */
  11364. /***/ (function(module, exports, __webpack_require__) {
  11365. "use strict";
  11366. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var QRCode = {};
  11367. (function () {
  11368. /**
  11369. * 获取单个字符的utf8编码
  11370. * unicode BMP平面约65535个字符
  11371. * @param {num} code
  11372. * return {array}
  11373. */
  11374. function unicodeFormat8(code) {
  11375. // 1 byte
  11376. var c0, c1, c2;
  11377. if (code < 128) {
  11378. return [code];
  11379. // 2 bytes
  11380. } else if (code < 2048) {
  11381. c0 = 192 + (code >> 6);
  11382. c1 = 128 + (code & 63);
  11383. return [c0, c1];
  11384. // 3 bytes
  11385. } else {
  11386. c0 = 224 + (code >> 12);
  11387. c1 = 128 + (code >> 6 & 63);
  11388. c2 = 128 + (code & 63);
  11389. return [c0, c1, c2];
  11390. }
  11391. }
  11392. /**
  11393. * 获取字符串的utf8编码字节串
  11394. * @param {string} string
  11395. * @return {array}
  11396. */
  11397. function getUTF8Bytes(string) {
  11398. var utf8codes = [];
  11399. for (var i = 0; i < string.length; i++) {
  11400. var code = string.charCodeAt(i);
  11401. var utf8 = unicodeFormat8(code);
  11402. for (var j = 0; j < utf8.length; j++) {
  11403. utf8codes.push(utf8[j]);
  11404. }
  11405. }
  11406. return utf8codes;
  11407. }
  11408. /**
  11409. * 二维码算法实现
  11410. * @param {string} data 要编码的信息字符串
  11411. * @param {num} errorCorrectLevel 纠错等级
  11412. */
  11413. function QRCodeAlg(data, errorCorrectLevel) {
  11414. this.typeNumber = -1; //版本
  11415. this.errorCorrectLevel = errorCorrectLevel;
  11416. this.modules = null; //二维矩阵,存放最终结果
  11417. this.moduleCount = 0; //矩阵大小
  11418. this.dataCache = null; //数据缓存
  11419. this.rsBlocks = null; //版本数据信息
  11420. this.totalDataCount = -1; //可使用的数据量
  11421. this.data = data;
  11422. this.utf8bytes = getUTF8Bytes(data);
  11423. this.make();
  11424. }
  11425. QRCodeAlg.prototype = {
  11426. constructor: QRCodeAlg,
  11427. /**
  11428. * 获取二维码矩阵大小
  11429. * @return {num} 矩阵大小
  11430. */
  11431. getModuleCount: function getModuleCount() {
  11432. return this.moduleCount;
  11433. },
  11434. /**
  11435. * 编码
  11436. */
  11437. make: function make() {
  11438. this.getRightType();
  11439. this.dataCache = this.createData();
  11440. this.createQrcode();
  11441. },
  11442. /**
  11443. * 设置二位矩阵功能图形
  11444. * @param {bool} test 表示是否在寻找最好掩膜阶段
  11445. * @param {num} maskPattern 掩膜的版本
  11446. */
  11447. makeImpl: function makeImpl(maskPattern) {
  11448. this.moduleCount = this.typeNumber * 4 + 17;
  11449. this.modules = new Array(this.moduleCount);
  11450. for (var row = 0; row < this.moduleCount; row++) {
  11451. this.modules[row] = new Array(this.moduleCount);
  11452. }
  11453. this.setupPositionProbePattern(0, 0);
  11454. this.setupPositionProbePattern(this.moduleCount - 7, 0);
  11455. this.setupPositionProbePattern(0, this.moduleCount - 7);
  11456. this.setupPositionAdjustPattern();
  11457. this.setupTimingPattern();
  11458. this.setupTypeInfo(true, maskPattern);
  11459. if (this.typeNumber >= 7) {
  11460. this.setupTypeNumber(true);
  11461. }
  11462. this.mapData(this.dataCache, maskPattern);
  11463. },
  11464. /**
  11465. * 设置二维码的位置探测图形
  11466. * @param {num} row 探测图形的中心横坐标
  11467. * @param {num} col 探测图形的中心纵坐标
  11468. */
  11469. setupPositionProbePattern: function setupPositionProbePattern(row, col) {
  11470. for (var r = -1; r <= 7; r++) {
  11471. if (row + r <= -1 || this.moduleCount <= row + r) continue;
  11472. for (var c = -1; c <= 7; c++) {
  11473. if (col + c <= -1 || this.moduleCount <= col + c) continue;
  11474. if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {
  11475. this.modules[row + r][col + c] = true;
  11476. } else {
  11477. this.modules[row + r][col + c] = false;
  11478. }
  11479. }
  11480. }
  11481. },
  11482. /**
  11483. * 创建二维码
  11484. * @return {[type]} [description]
  11485. */
  11486. createQrcode: function createQrcode() {
  11487. var minLostPoint = 0;
  11488. var pattern = 0;
  11489. var bestModules = null;
  11490. for (var i = 0; i < 8; i++) {
  11491. this.makeImpl(i);
  11492. var lostPoint = QRUtil.getLostPoint(this);
  11493. if (i == 0 || minLostPoint > lostPoint) {
  11494. minLostPoint = lostPoint;
  11495. pattern = i;
  11496. bestModules = this.modules;
  11497. }
  11498. }
  11499. this.modules = bestModules;
  11500. this.setupTypeInfo(false, pattern);
  11501. if (this.typeNumber >= 7) {
  11502. this.setupTypeNumber(false);
  11503. }
  11504. },
  11505. /**
  11506. * 设置定位图形
  11507. * @return {[type]} [description]
  11508. */
  11509. setupTimingPattern: function setupTimingPattern() {
  11510. for (var r = 8; r < this.moduleCount - 8; r++) {
  11511. if (this.modules[r][6] != null) {
  11512. continue;
  11513. }
  11514. this.modules[r][6] = r % 2 == 0;
  11515. if (this.modules[6][r] != null) {
  11516. continue;
  11517. }
  11518. this.modules[6][r] = r % 2 == 0;
  11519. }
  11520. },
  11521. /**
  11522. * 设置矫正图形
  11523. * @return {[type]} [description]
  11524. */
  11525. setupPositionAdjustPattern: function setupPositionAdjustPattern() {
  11526. var pos = QRUtil.getPatternPosition(this.typeNumber);
  11527. for (var i = 0; i < pos.length; i++) {
  11528. for (var j = 0; j < pos.length; j++) {
  11529. var row = pos[i];
  11530. var col = pos[j];
  11531. if (this.modules[row][col] != null) {
  11532. continue;
  11533. }
  11534. for (var r = -2; r <= 2; r++) {
  11535. for (var c = -2; c <= 2; c++) {
  11536. if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {
  11537. this.modules[row + r][col + c] = true;
  11538. } else {
  11539. this.modules[row + r][col + c] = false;
  11540. }
  11541. }
  11542. }
  11543. }
  11544. }
  11545. },
  11546. /**
  11547. * 设置版本信息(7以上版本才有)
  11548. * @param {bool} test 是否处于判断最佳掩膜阶段
  11549. * @return {[type]} [description]
  11550. */
  11551. setupTypeNumber: function setupTypeNumber(test) {
  11552. var bits = QRUtil.getBCHTypeNumber(this.typeNumber);
  11553. for (var i = 0; i < 18; i++) {
  11554. var mod = !test && (bits >> i & 1) == 1;
  11555. this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;
  11556. this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
  11557. }
  11558. },
  11559. /**
  11560. * 设置格式信息(纠错等级和掩膜版本)
  11561. * @param {bool} test
  11562. * @param {num} maskPattern 掩膜版本
  11563. * @return {}
  11564. */
  11565. setupTypeInfo: function setupTypeInfo(test, maskPattern) {
  11566. var data = QRErrorCorrectLevel[this.errorCorrectLevel] << 3 | maskPattern;
  11567. var bits = QRUtil.getBCHTypeInfo(data);
  11568. // vertical
  11569. for (var i = 0; i < 15; i++) {
  11570. var mod = !test && (bits >> i & 1) == 1;
  11571. if (i < 6) {
  11572. this.modules[i][8] = mod;
  11573. } else if (i < 8) {
  11574. this.modules[i + 1][8] = mod;
  11575. } else {
  11576. this.modules[this.moduleCount - 15 + i][8] = mod;
  11577. }
  11578. // horizontal
  11579. var mod = !test && (bits >> i & 1) == 1;
  11580. if (i < 8) {
  11581. this.modules[8][this.moduleCount - i - 1] = mod;
  11582. } else if (i < 9) {
  11583. this.modules[8][15 - i - 1 + 1] = mod;
  11584. } else {
  11585. this.modules[8][15 - i - 1] = mod;
  11586. }
  11587. }
  11588. // fixed module
  11589. this.modules[this.moduleCount - 8][8] = !test;
  11590. },
  11591. /**
  11592. * 数据编码
  11593. * @return {[type]} [description]
  11594. */
  11595. createData: function createData() {
  11596. var buffer = new QRBitBuffer();
  11597. var lengthBits = this.typeNumber > 9 ? 16 : 8;
  11598. buffer.put(4, 4); //添加模式
  11599. buffer.put(this.utf8bytes.length, lengthBits);
  11600. for (var i = 0, l = this.utf8bytes.length; i < l; i++) {
  11601. buffer.put(this.utf8bytes[i], 8);
  11602. }
  11603. if (buffer.length + 4 <= this.totalDataCount * 8) {
  11604. buffer.put(0, 4);
  11605. }
  11606. // padding
  11607. while (buffer.length % 8 != 0) {
  11608. buffer.putBit(false);
  11609. }
  11610. // padding
  11611. while (true) {
  11612. if (buffer.length >= this.totalDataCount * 8) {
  11613. break;
  11614. }
  11615. buffer.put(QRCodeAlg.PAD0, 8);
  11616. if (buffer.length >= this.totalDataCount * 8) {
  11617. break;
  11618. }
  11619. buffer.put(QRCodeAlg.PAD1, 8);
  11620. }
  11621. return this.createBytes(buffer);
  11622. },
  11623. /**
  11624. * 纠错码编码
  11625. * @param {buffer} buffer 数据编码
  11626. * @return {[type]}
  11627. */
  11628. createBytes: function createBytes(buffer) {
  11629. var offset = 0;
  11630. var maxDcCount = 0;
  11631. var maxEcCount = 0;
  11632. var length = this.rsBlock.length / 3;
  11633. var rsBlocks = new Array();
  11634. for (var i = 0; i < length; i++) {
  11635. var count = this.rsBlock[i * 3 + 0];
  11636. var totalCount = this.rsBlock[i * 3 + 1];
  11637. var dataCount = this.rsBlock[i * 3 + 2];
  11638. for (var j = 0; j < count; j++) {
  11639. rsBlocks.push([dataCount, totalCount]);
  11640. }
  11641. }
  11642. var dcdata = new Array(rsBlocks.length);
  11643. var ecdata = new Array(rsBlocks.length);
  11644. for (var r = 0; r < rsBlocks.length; r++) {
  11645. var dcCount = rsBlocks[r][0];
  11646. var ecCount = rsBlocks[r][1] - dcCount;
  11647. maxDcCount = Math.max(maxDcCount, dcCount);
  11648. maxEcCount = Math.max(maxEcCount, ecCount);
  11649. dcdata[r] = new Array(dcCount);
  11650. for (var i = 0; i < dcdata[r].length; i++) {
  11651. dcdata[r][i] = 0xff & buffer.buffer[i + offset];
  11652. }
  11653. offset += dcCount;
  11654. var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
  11655. var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1);
  11656. var modPoly = rawPoly.mod(rsPoly);
  11657. ecdata[r] = new Array(rsPoly.getLength() - 1);
  11658. for (var i = 0; i < ecdata[r].length; i++) {
  11659. var modIndex = i + modPoly.getLength() - ecdata[r].length;
  11660. ecdata[r][i] = modIndex >= 0 ? modPoly.get(modIndex) : 0;
  11661. }
  11662. }
  11663. var data = new Array(this.totalDataCount);
  11664. var index = 0;
  11665. for (var i = 0; i < maxDcCount; i++) {
  11666. for (var r = 0; r < rsBlocks.length; r++) {
  11667. if (i < dcdata[r].length) {
  11668. data[index++] = dcdata[r][i];
  11669. }
  11670. }
  11671. }
  11672. for (var i = 0; i < maxEcCount; i++) {
  11673. for (var r = 0; r < rsBlocks.length; r++) {
  11674. if (i < ecdata[r].length) {
  11675. data[index++] = ecdata[r][i];
  11676. }
  11677. }
  11678. }
  11679. return data;
  11680. },
  11681. /**
  11682. * 布置模块,构建最终信息
  11683. * @param {} data
  11684. * @param {} maskPattern
  11685. * @return {}
  11686. */
  11687. mapData: function mapData(data, maskPattern) {
  11688. var inc = -1;
  11689. var row = this.moduleCount - 1;
  11690. var bitIndex = 7;
  11691. var byteIndex = 0;
  11692. for (var col = this.moduleCount - 1; col > 0; col -= 2) {
  11693. if (col == 6) col--;
  11694. while (true) {
  11695. for (var c = 0; c < 2; c++) {
  11696. if (this.modules[row][col - c] == null) {
  11697. var dark = false;
  11698. if (byteIndex < data.length) {
  11699. dark = (data[byteIndex] >>> bitIndex & 1) == 1;
  11700. }
  11701. var mask = QRUtil.getMask(maskPattern, row, col - c);
  11702. if (mask) {
  11703. dark = !dark;
  11704. }
  11705. this.modules[row][col - c] = dark;
  11706. bitIndex--;
  11707. if (bitIndex == -1) {
  11708. byteIndex++;
  11709. bitIndex = 7;
  11710. }
  11711. }
  11712. }
  11713. row += inc;
  11714. if (row < 0 || this.moduleCount <= row) {
  11715. row -= inc;
  11716. inc = -inc;
  11717. break;
  11718. }
  11719. }
  11720. }
  11721. } };
  11722. /**
  11723. * 填充字段
  11724. */
  11725. QRCodeAlg.PAD0 = 0xEC;
  11726. QRCodeAlg.PAD1 = 0x11;
  11727. //---------------------------------------------------------------------
  11728. // 纠错等级对应的编码
  11729. //---------------------------------------------------------------------
  11730. var QRErrorCorrectLevel = [1, 0, 3, 2];
  11731. //---------------------------------------------------------------------
  11732. // 掩膜版本
  11733. //---------------------------------------------------------------------
  11734. var QRMaskPattern = {
  11735. PATTERN000: 0,
  11736. PATTERN001: 1,
  11737. PATTERN010: 2,
  11738. PATTERN011: 3,
  11739. PATTERN100: 4,
  11740. PATTERN101: 5,
  11741. PATTERN110: 6,
  11742. PATTERN111: 7 };
  11743. //---------------------------------------------------------------------
  11744. // 工具类
  11745. //---------------------------------------------------------------------
  11746. var QRUtil = {
  11747. /*
  11748. 每个版本矫正图形的位置
  11749. */
  11750. PATTERN_POSITION_TABLE: [
  11751. [],
  11752. [6, 18],
  11753. [6, 22],
  11754. [6, 26],
  11755. [6, 30],
  11756. [6, 34],
  11757. [6, 22, 38],
  11758. [6, 24, 42],
  11759. [6, 26, 46],
  11760. [6, 28, 50],
  11761. [6, 30, 54],
  11762. [6, 32, 58],
  11763. [6, 34, 62],
  11764. [6, 26, 46, 66],
  11765. [6, 26, 48, 70],
  11766. [6, 26, 50, 74],
  11767. [6, 30, 54, 78],
  11768. [6, 30, 56, 82],
  11769. [6, 30, 58, 86],
  11770. [6, 34, 62, 90],
  11771. [6, 28, 50, 72, 94],
  11772. [6, 26, 50, 74, 98],
  11773. [6, 30, 54, 78, 102],
  11774. [6, 28, 54, 80, 106],
  11775. [6, 32, 58, 84, 110],
  11776. [6, 30, 58, 86, 114],
  11777. [6, 34, 62, 90, 118],
  11778. [6, 26, 50, 74, 98, 122],
  11779. [6, 30, 54, 78, 102, 126],
  11780. [6, 26, 52, 78, 104, 130],
  11781. [6, 30, 56, 82, 108, 134],
  11782. [6, 34, 60, 86, 112, 138],
  11783. [6, 30, 58, 86, 114, 142],
  11784. [6, 34, 62, 90, 118, 146],
  11785. [6, 30, 54, 78, 102, 126, 150],
  11786. [6, 24, 50, 76, 102, 128, 154],
  11787. [6, 28, 54, 80, 106, 132, 158],
  11788. [6, 32, 58, 84, 110, 136, 162],
  11789. [6, 26, 54, 82, 110, 138, 166],
  11790. [6, 30, 58, 86, 114, 142, 170]],
  11791. G15: 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0,
  11792. G18: 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0,
  11793. G15_MASK: 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1,
  11794. /*
  11795. BCH编码格式信息
  11796. */
  11797. getBCHTypeInfo: function getBCHTypeInfo(data) {
  11798. var d = data << 10;
  11799. while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {
  11800. d ^= QRUtil.G15 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15);
  11801. }
  11802. return (data << 10 | d) ^ QRUtil.G15_MASK;
  11803. },
  11804. /*
  11805. BCH编码版本信息
  11806. */
  11807. getBCHTypeNumber: function getBCHTypeNumber(data) {
  11808. var d = data << 12;
  11809. while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {
  11810. d ^= QRUtil.G18 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18);
  11811. }
  11812. return data << 12 | d;
  11813. },
  11814. /*
  11815. 获取BCH位信息
  11816. */
  11817. getBCHDigit: function getBCHDigit(data) {
  11818. var digit = 0;
  11819. while (data != 0) {
  11820. digit++;
  11821. data >>>= 1;
  11822. }
  11823. return digit;
  11824. },
  11825. /*
  11826. 获取版本对应的矫正图形位置
  11827. */
  11828. getPatternPosition: function getPatternPosition(typeNumber) {
  11829. return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];
  11830. },
  11831. /*
  11832. 掩膜算法
  11833. */
  11834. getMask: function getMask(maskPattern, i, j) {
  11835. switch (maskPattern) {
  11836. case QRMaskPattern.PATTERN000:
  11837. return (i + j) % 2 == 0;
  11838. case QRMaskPattern.PATTERN001:
  11839. return i % 2 == 0;
  11840. case QRMaskPattern.PATTERN010:
  11841. return j % 3 == 0;
  11842. case QRMaskPattern.PATTERN011:
  11843. return (i + j) % 3 == 0;
  11844. case QRMaskPattern.PATTERN100:
  11845. return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0;
  11846. case QRMaskPattern.PATTERN101:
  11847. return i * j % 2 + i * j % 3 == 0;
  11848. case QRMaskPattern.PATTERN110:
  11849. return (i * j % 2 + i * j % 3) % 2 == 0;
  11850. case QRMaskPattern.PATTERN111:
  11851. return (i * j % 3 + (i + j) % 2) % 2 == 0;
  11852. default:
  11853. throw new Error("bad maskPattern:" + maskPattern);}
  11854. },
  11855. /*
  11856. 获取RS的纠错多项式
  11857. */
  11858. getErrorCorrectPolynomial: function getErrorCorrectPolynomial(errorCorrectLength) {
  11859. var a = new QRPolynomial([1], 0);
  11860. for (var i = 0; i < errorCorrectLength; i++) {
  11861. a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0));
  11862. }
  11863. return a;
  11864. },
  11865. /*
  11866. 获取评价
  11867. */
  11868. getLostPoint: function getLostPoint(qrCode) {
  11869. var moduleCount = qrCode.getModuleCount(),
  11870. lostPoint = 0,
  11871. darkCount = 0;
  11872. for (var row = 0; row < moduleCount; row++) {
  11873. var sameCount = 0;
  11874. var head = qrCode.modules[row][0];
  11875. for (var col = 0; col < moduleCount; col++) {
  11876. var current = qrCode.modules[row][col];
  11877. //level 3 评价
  11878. if (col < moduleCount - 6) {
  11879. if (current && !qrCode.modules[row][col + 1] && qrCode.modules[row][col + 2] && qrCode.modules[row][col + 3] && qrCode.modules[row][col + 4] && !qrCode.modules[row][col + 5] && qrCode.modules[row][col + 6]) {
  11880. if (col < moduleCount - 10) {
  11881. if (qrCode.modules[row][col + 7] && qrCode.modules[row][col + 8] && qrCode.modules[row][col + 9] && qrCode.modules[row][col + 10]) {
  11882. lostPoint += 40;
  11883. }
  11884. } else if (col > 3) {
  11885. if (qrCode.modules[row][col - 1] && qrCode.modules[row][col - 2] && qrCode.modules[row][col - 3] && qrCode.modules[row][col - 4]) {
  11886. lostPoint += 40;
  11887. }
  11888. }
  11889. }
  11890. }
  11891. //level 2 评价
  11892. if (row < moduleCount - 1 && col < moduleCount - 1) {
  11893. var count = 0;
  11894. if (current) count++;
  11895. if (qrCode.modules[row + 1][col]) count++;
  11896. if (qrCode.modules[row][col + 1]) count++;
  11897. if (qrCode.modules[row + 1][col + 1]) count++;
  11898. if (count == 0 || count == 4) {
  11899. lostPoint += 3;
  11900. }
  11901. }
  11902. //level 1 评价
  11903. if (head ^ current) {
  11904. sameCount++;
  11905. } else {
  11906. head = current;
  11907. if (sameCount >= 5) {
  11908. lostPoint += 3 + sameCount - 5;
  11909. }
  11910. sameCount = 1;
  11911. }
  11912. //level 4 评价
  11913. if (current) {
  11914. darkCount++;
  11915. }
  11916. }
  11917. }
  11918. for (var col = 0; col < moduleCount; col++) {
  11919. var sameCount = 0;
  11920. var head = qrCode.modules[0][col];
  11921. for (var row = 0; row < moduleCount; row++) {
  11922. var current = qrCode.modules[row][col];
  11923. //level 3 评价
  11924. if (row < moduleCount - 6) {
  11925. if (current && !qrCode.modules[row + 1][col] && qrCode.modules[row + 2][col] && qrCode.modules[row + 3][col] && qrCode.modules[row + 4][col] && !qrCode.modules[row + 5][col] && qrCode.modules[row + 6][col]) {
  11926. if (row < moduleCount - 10) {
  11927. if (qrCode.modules[row + 7][col] && qrCode.modules[row + 8][col] && qrCode.modules[row + 9][col] && qrCode.modules[row + 10][col]) {
  11928. lostPoint += 40;
  11929. }
  11930. } else if (row > 3) {
  11931. if (qrCode.modules[row - 1][col] && qrCode.modules[row - 2][col] && qrCode.modules[row - 3][col] && qrCode.modules[row - 4][col]) {
  11932. lostPoint += 40;
  11933. }
  11934. }
  11935. }
  11936. }
  11937. //level 1 评价
  11938. if (head ^ current) {
  11939. sameCount++;
  11940. } else {
  11941. head = current;
  11942. if (sameCount >= 5) {
  11943. lostPoint += 3 + sameCount - 5;
  11944. }
  11945. sameCount = 1;
  11946. }
  11947. }
  11948. }
  11949. // LEVEL4
  11950. var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
  11951. lostPoint += ratio * 10;
  11952. return lostPoint;
  11953. } };
  11954. //---------------------------------------------------------------------
  11955. // QRMath使用的数学工具
  11956. //---------------------------------------------------------------------
  11957. var QRMath = {
  11958. /*
  11959. 将n转化为a^m
  11960. */
  11961. glog: function glog(n) {
  11962. if (n < 1) {
  11963. throw new Error("glog(" + n + ")");
  11964. }
  11965. return QRMath.LOG_TABLE[n];
  11966. },
  11967. /*
  11968. 将a^m转化为n
  11969. */
  11970. gexp: function gexp(n) {
  11971. while (n < 0) {
  11972. n += 255;
  11973. }
  11974. while (n >= 256) {
  11975. n -= 255;
  11976. }
  11977. return QRMath.EXP_TABLE[n];
  11978. },
  11979. EXP_TABLE: new Array(256),
  11980. LOG_TABLE: new Array(256) };
  11981. for (var i = 0; i < 8; i++) {
  11982. QRMath.EXP_TABLE[i] = 1 << i;
  11983. }
  11984. for (var i = 8; i < 256; i++) {
  11985. QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];
  11986. }
  11987. for (var i = 0; i < 255; i++) {
  11988. QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;
  11989. }
  11990. //---------------------------------------------------------------------
  11991. // QRPolynomial 多项式
  11992. //---------------------------------------------------------------------
  11993. /**
  11994. * 多项式类
  11995. * @param {Array} num 系数
  11996. * @param {num} shift a^shift
  11997. */
  11998. function QRPolynomial(num, shift) {
  11999. if (num.length == undefined) {
  12000. throw new Error(num.length + "/" + shift);
  12001. }
  12002. var offset = 0;
  12003. while (offset < num.length && num[offset] == 0) {
  12004. offset++;
  12005. }
  12006. this.num = new Array(num.length - offset + shift);
  12007. for (var i = 0; i < num.length - offset; i++) {
  12008. this.num[i] = num[i + offset];
  12009. }
  12010. }
  12011. QRPolynomial.prototype = {
  12012. get: function get(index) {
  12013. return this.num[index];
  12014. },
  12015. getLength: function getLength() {
  12016. return this.num.length;
  12017. },
  12018. /**
  12019. * 多项式乘法
  12020. * @param {QRPolynomial} e 被乘多项式
  12021. * @return {[type]} [description]
  12022. */
  12023. multiply: function multiply(e) {
  12024. var num = new Array(this.getLength() + e.getLength() - 1);
  12025. for (var i = 0; i < this.getLength(); i++) {
  12026. for (var j = 0; j < e.getLength(); j++) {
  12027. num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i)) + QRMath.glog(e.get(j)));
  12028. }
  12029. }
  12030. return new QRPolynomial(num, 0);
  12031. },
  12032. /**
  12033. * 多项式模运算
  12034. * @param {QRPolynomial} e 模多项式
  12035. * @return {}
  12036. */
  12037. mod: function mod(e) {
  12038. var tl = this.getLength(),
  12039. el = e.getLength();
  12040. if (tl - el < 0) {
  12041. return this;
  12042. }
  12043. var num = new Array(tl);
  12044. for (var i = 0; i < tl; i++) {
  12045. num[i] = this.get(i);
  12046. }
  12047. while (num.length >= el) {
  12048. var ratio = QRMath.glog(num[0]) - QRMath.glog(e.get(0));
  12049. for (var i = 0; i < e.getLength(); i++) {
  12050. num[i] ^= QRMath.gexp(QRMath.glog(e.get(i)) + ratio);
  12051. }
  12052. while (num[0] == 0) {
  12053. num.shift();
  12054. }
  12055. }
  12056. return new QRPolynomial(num, 0);
  12057. } };
  12058. //---------------------------------------------------------------------
  12059. // RS_BLOCK_TABLE
  12060. //---------------------------------------------------------------------
  12061. /*
  12062. 二维码各个版本信息[块数, 每块中的数据块数, 每块中的信息块数]
  12063. */
  12064. var RS_BLOCK_TABLE = [
  12065. // L
  12066. // M
  12067. // Q
  12068. // H
  12069. // 1
  12070. [1, 26, 19],
  12071. [1, 26, 16],
  12072. [1, 26, 13],
  12073. [1, 26, 9],
  12074. // 2
  12075. [1, 44, 34],
  12076. [1, 44, 28],
  12077. [1, 44, 22],
  12078. [1, 44, 16],
  12079. // 3
  12080. [1, 70, 55],
  12081. [1, 70, 44],
  12082. [2, 35, 17],
  12083. [2, 35, 13],
  12084. // 4
  12085. [1, 100, 80],
  12086. [2, 50, 32],
  12087. [2, 50, 24],
  12088. [4, 25, 9],
  12089. // 5
  12090. [1, 134, 108],
  12091. [2, 67, 43],
  12092. [2, 33, 15, 2, 34, 16],
  12093. [2, 33, 11, 2, 34, 12],
  12094. // 6
  12095. [2, 86, 68],
  12096. [4, 43, 27],
  12097. [4, 43, 19],
  12098. [4, 43, 15],
  12099. // 7
  12100. [2, 98, 78],
  12101. [4, 49, 31],
  12102. [2, 32, 14, 4, 33, 15],
  12103. [4, 39, 13, 1, 40, 14],
  12104. // 8
  12105. [2, 121, 97],
  12106. [2, 60, 38, 2, 61, 39],
  12107. [4, 40, 18, 2, 41, 19],
  12108. [4, 40, 14, 2, 41, 15],
  12109. // 9
  12110. [2, 146, 116],
  12111. [3, 58, 36, 2, 59, 37],
  12112. [4, 36, 16, 4, 37, 17],
  12113. [4, 36, 12, 4, 37, 13],
  12114. // 10
  12115. [2, 86, 68, 2, 87, 69],
  12116. [4, 69, 43, 1, 70, 44],
  12117. [6, 43, 19, 2, 44, 20],
  12118. [6, 43, 15, 2, 44, 16],
  12119. // 11
  12120. [4, 101, 81],
  12121. [1, 80, 50, 4, 81, 51],
  12122. [4, 50, 22, 4, 51, 23],
  12123. [3, 36, 12, 8, 37, 13],
  12124. // 12
  12125. [2, 116, 92, 2, 117, 93],
  12126. [6, 58, 36, 2, 59, 37],
  12127. [4, 46, 20, 6, 47, 21],
  12128. [7, 42, 14, 4, 43, 15],
  12129. // 13
  12130. [4, 133, 107],
  12131. [8, 59, 37, 1, 60, 38],
  12132. [8, 44, 20, 4, 45, 21],
  12133. [12, 33, 11, 4, 34, 12],
  12134. // 14
  12135. [3, 145, 115, 1, 146, 116],
  12136. [4, 64, 40, 5, 65, 41],
  12137. [11, 36, 16, 5, 37, 17],
  12138. [11, 36, 12, 5, 37, 13],
  12139. // 15
  12140. [5, 109, 87, 1, 110, 88],
  12141. [5, 65, 41, 5, 66, 42],
  12142. [5, 54, 24, 7, 55, 25],
  12143. [11, 36, 12],
  12144. // 16
  12145. [5, 122, 98, 1, 123, 99],
  12146. [7, 73, 45, 3, 74, 46],
  12147. [15, 43, 19, 2, 44, 20],
  12148. [3, 45, 15, 13, 46, 16],
  12149. // 17
  12150. [1, 135, 107, 5, 136, 108],
  12151. [10, 74, 46, 1, 75, 47],
  12152. [1, 50, 22, 15, 51, 23],
  12153. [2, 42, 14, 17, 43, 15],
  12154. // 18
  12155. [5, 150, 120, 1, 151, 121],
  12156. [9, 69, 43, 4, 70, 44],
  12157. [17, 50, 22, 1, 51, 23],
  12158. [2, 42, 14, 19, 43, 15],
  12159. // 19
  12160. [3, 141, 113, 4, 142, 114],
  12161. [3, 70, 44, 11, 71, 45],
  12162. [17, 47, 21, 4, 48, 22],
  12163. [9, 39, 13, 16, 40, 14],
  12164. // 20
  12165. [3, 135, 107, 5, 136, 108],
  12166. [3, 67, 41, 13, 68, 42],
  12167. [15, 54, 24, 5, 55, 25],
  12168. [15, 43, 15, 10, 44, 16],
  12169. // 21
  12170. [4, 144, 116, 4, 145, 117],
  12171. [17, 68, 42],
  12172. [17, 50, 22, 6, 51, 23],
  12173. [19, 46, 16, 6, 47, 17],
  12174. // 22
  12175. [2, 139, 111, 7, 140, 112],
  12176. [17, 74, 46],
  12177. [7, 54, 24, 16, 55, 25],
  12178. [34, 37, 13],
  12179. // 23
  12180. [4, 151, 121, 5, 152, 122],
  12181. [4, 75, 47, 14, 76, 48],
  12182. [11, 54, 24, 14, 55, 25],
  12183. [16, 45, 15, 14, 46, 16],
  12184. // 24
  12185. [6, 147, 117, 4, 148, 118],
  12186. [6, 73, 45, 14, 74, 46],
  12187. [11, 54, 24, 16, 55, 25],
  12188. [30, 46, 16, 2, 47, 17],
  12189. // 25
  12190. [8, 132, 106, 4, 133, 107],
  12191. [8, 75, 47, 13, 76, 48],
  12192. [7, 54, 24, 22, 55, 25],
  12193. [22, 45, 15, 13, 46, 16],
  12194. // 26
  12195. [10, 142, 114, 2, 143, 115],
  12196. [19, 74, 46, 4, 75, 47],
  12197. [28, 50, 22, 6, 51, 23],
  12198. [33, 46, 16, 4, 47, 17],
  12199. // 27
  12200. [8, 152, 122, 4, 153, 123],
  12201. [22, 73, 45, 3, 74, 46],
  12202. [8, 53, 23, 26, 54, 24],
  12203. [12, 45, 15, 28, 46, 16],
  12204. // 28
  12205. [3, 147, 117, 10, 148, 118],
  12206. [3, 73, 45, 23, 74, 46],
  12207. [4, 54, 24, 31, 55, 25],
  12208. [11, 45, 15, 31, 46, 16],
  12209. // 29
  12210. [7, 146, 116, 7, 147, 117],
  12211. [21, 73, 45, 7, 74, 46],
  12212. [1, 53, 23, 37, 54, 24],
  12213. [19, 45, 15, 26, 46, 16],
  12214. // 30
  12215. [5, 145, 115, 10, 146, 116],
  12216. [19, 75, 47, 10, 76, 48],
  12217. [15, 54, 24, 25, 55, 25],
  12218. [23, 45, 15, 25, 46, 16],
  12219. // 31
  12220. [13, 145, 115, 3, 146, 116],
  12221. [2, 74, 46, 29, 75, 47],
  12222. [42, 54, 24, 1, 55, 25],
  12223. [23, 45, 15, 28, 46, 16],
  12224. // 32
  12225. [17, 145, 115],
  12226. [10, 74, 46, 23, 75, 47],
  12227. [10, 54, 24, 35, 55, 25],
  12228. [19, 45, 15, 35, 46, 16],
  12229. // 33
  12230. [17, 145, 115, 1, 146, 116],
  12231. [14, 74, 46, 21, 75, 47],
  12232. [29, 54, 24, 19, 55, 25],
  12233. [11, 45, 15, 46, 46, 16],
  12234. // 34
  12235. [13, 145, 115, 6, 146, 116],
  12236. [14, 74, 46, 23, 75, 47],
  12237. [44, 54, 24, 7, 55, 25],
  12238. [59, 46, 16, 1, 47, 17],
  12239. // 35
  12240. [12, 151, 121, 7, 152, 122],
  12241. [12, 75, 47, 26, 76, 48],
  12242. [39, 54, 24, 14, 55, 25],
  12243. [22, 45, 15, 41, 46, 16],
  12244. // 36
  12245. [6, 151, 121, 14, 152, 122],
  12246. [6, 75, 47, 34, 76, 48],
  12247. [46, 54, 24, 10, 55, 25],
  12248. [2, 45, 15, 64, 46, 16],
  12249. // 37
  12250. [17, 152, 122, 4, 153, 123],
  12251. [29, 74, 46, 14, 75, 47],
  12252. [49, 54, 24, 10, 55, 25],
  12253. [24, 45, 15, 46, 46, 16],
  12254. // 38
  12255. [4, 152, 122, 18, 153, 123],
  12256. [13, 74, 46, 32, 75, 47],
  12257. [48, 54, 24, 14, 55, 25],
  12258. [42, 45, 15, 32, 46, 16],
  12259. // 39
  12260. [20, 147, 117, 4, 148, 118],
  12261. [40, 75, 47, 7, 76, 48],
  12262. [43, 54, 24, 22, 55, 25],
  12263. [10, 45, 15, 67, 46, 16],
  12264. // 40
  12265. [19, 148, 118, 6, 149, 119],
  12266. [18, 75, 47, 31, 76, 48],
  12267. [34, 54, 24, 34, 55, 25],
  12268. [20, 45, 15, 61, 46, 16]];
  12269. /**
  12270. * 根据数据获取对应版本
  12271. * @return {[type]} [description]
  12272. */
  12273. QRCodeAlg.prototype.getRightType = function () {
  12274. for (var typeNumber = 1; typeNumber < 41; typeNumber++) {
  12275. var rsBlock = RS_BLOCK_TABLE[(typeNumber - 1) * 4 + this.errorCorrectLevel];
  12276. if (rsBlock == undefined) {
  12277. throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + this.errorCorrectLevel);
  12278. }
  12279. var length = rsBlock.length / 3;
  12280. var totalDataCount = 0;
  12281. for (var i = 0; i < length; i++) {
  12282. var count = rsBlock[i * 3 + 0];
  12283. var dataCount = rsBlock[i * 3 + 2];
  12284. totalDataCount += dataCount * count;
  12285. }
  12286. var lengthBytes = typeNumber > 9 ? 2 : 1;
  12287. if (this.utf8bytes.length + lengthBytes < totalDataCount || typeNumber == 40) {
  12288. this.typeNumber = typeNumber;
  12289. this.rsBlock = rsBlock;
  12290. this.totalDataCount = totalDataCount;
  12291. break;
  12292. }
  12293. }
  12294. };
  12295. //---------------------------------------------------------------------
  12296. // QRBitBuffer
  12297. //---------------------------------------------------------------------
  12298. function QRBitBuffer() {
  12299. this.buffer = new Array();
  12300. this.length = 0;
  12301. }
  12302. QRBitBuffer.prototype = {
  12303. get: function get(index) {
  12304. var bufIndex = Math.floor(index / 8);
  12305. return this.buffer[bufIndex] >>> 7 - index % 8 & 1;
  12306. },
  12307. put: function put(num, length) {
  12308. for (var i = 0; i < length; i++) {
  12309. this.putBit(num >>> length - i - 1 & 1);
  12310. }
  12311. },
  12312. putBit: function putBit(bit) {
  12313. var bufIndex = Math.floor(this.length / 8);
  12314. if (this.buffer.length <= bufIndex) {
  12315. this.buffer.push(0);
  12316. }
  12317. if (bit) {
  12318. this.buffer[bufIndex] |= 0x80 >>> this.length % 8;
  12319. }
  12320. this.length++;
  12321. } };
  12322. // xzedit
  12323. var qrcodeAlgObjCache = [];
  12324. /**
  12325. * 二维码构造函数,主要用于绘制
  12326. * @param {参数列表} opt 传递参数
  12327. * @return {}
  12328. */
  12329. QRCode = function QRCode(opt) {
  12330. //设置默认参数
  12331. this.options = {
  12332. text: '',
  12333. size: 256,
  12334. correctLevel: 3,
  12335. background: '#ffffff',
  12336. foreground: '#000000',
  12337. pdground: '#000000',
  12338. image: '',
  12339. imageSize: 30,
  12340. canvasId: opt.canvasId,
  12341. context: opt.context,
  12342. usingComponents: opt.usingComponents,
  12343. showLoading: opt.showLoading,
  12344. loadingText: opt.loadingText };
  12345. if (typeof opt === 'string') {// 只编码ASCII字符串
  12346. opt = {
  12347. text: opt };
  12348. }
  12349. if (opt) {
  12350. for (var i in opt) {
  12351. this.options[i] = opt[i];
  12352. }
  12353. }
  12354. //使用QRCodeAlg创建二维码结构
  12355. var qrCodeAlg = null;
  12356. for (var i = 0, l = qrcodeAlgObjCache.length; i < l; i++) {
  12357. if (qrcodeAlgObjCache[i].text == this.options.text && qrcodeAlgObjCache[i].text.correctLevel == this.options.correctLevel) {
  12358. qrCodeAlg = qrcodeAlgObjCache[i].obj;
  12359. break;
  12360. }
  12361. }
  12362. if (i == l) {
  12363. qrCodeAlg = new QRCodeAlg(this.options.text, this.options.correctLevel);
  12364. qrcodeAlgObjCache.push({
  12365. text: this.options.text,
  12366. correctLevel: this.options.correctLevel,
  12367. obj: qrCodeAlg });
  12368. }
  12369. /**
  12370. * 计算矩阵点的前景色
  12371. * @param {Obj} config
  12372. * @param {Number} config.row 点x坐标
  12373. * @param {Number} config.col 点y坐标
  12374. * @param {Number} config.count 矩阵大小
  12375. * @param {Number} config.options 组件的options
  12376. * @return {String}
  12377. */
  12378. var getForeGround = function getForeGround(config) {
  12379. var options = config.options;
  12380. if (options.pdground && (
  12381. config.row > 1 && config.row < 5 && config.col > 1 && config.col < 5 ||
  12382. config.row > config.count - 6 && config.row < config.count - 2 && config.col > 1 && config.col < 5 ||
  12383. config.row > 1 && config.row < 5 && config.col > config.count - 6 && config.col < config.count - 2))
  12384. {
  12385. return options.pdground;
  12386. }
  12387. return options.foreground;
  12388. };
  12389. // 创建canvas
  12390. var createCanvas = function createCanvas(options) {
  12391. if (options.showLoading) {
  12392. uni.showLoading({
  12393. title: options.loadingText,
  12394. mask: true });
  12395. }
  12396. var ctx = uni.createCanvasContext(options.canvasId, options.context);
  12397. var count = qrCodeAlg.getModuleCount();
  12398. var ratioSize = options.size;
  12399. var ratioImgSize = options.imageSize;
  12400. //计算每个点的长宽
  12401. var tileW = (ratioSize / count).toPrecision(4);
  12402. var tileH = (ratioSize / count).toPrecision(4);
  12403. //绘制
  12404. for (var row = 0; row < count; row++) {
  12405. for (var col = 0; col < count; col++) {
  12406. var w = Math.ceil((col + 1) * tileW) - Math.floor(col * tileW);
  12407. var h = Math.ceil((row + 1) * tileW) - Math.floor(row * tileW);
  12408. var foreground = getForeGround({
  12409. row: row,
  12410. col: col,
  12411. count: count,
  12412. options: options });
  12413. ctx.setFillStyle(qrCodeAlg.modules[row][col] ? foreground : options.background);
  12414. ctx.fillRect(Math.round(col * tileW), Math.round(row * tileH), w, h);
  12415. }
  12416. }
  12417. if (options.image) {
  12418. // 画圆角矩形
  12419. var drawRoundedRect = function drawRoundedRect(ctxi, x, y, width, height, r, lineWidth, fill, stroke) {
  12420. ctxi.setLineWidth(lineWidth);
  12421. ctxi.setFillStyle(options.background);
  12422. ctxi.setStrokeStyle(options.background);
  12423. ctxi.beginPath(); // draw top and top right corner
  12424. ctxi.moveTo(x + r, y);
  12425. ctxi.arcTo(x + width, y, x + width, y + r, r); // draw right side and bottom right corner
  12426. ctxi.arcTo(x + width, y + height, x + width - r, y + height, r); // draw bottom and bottom left corner
  12427. ctxi.arcTo(x, y + height, x, y + height - r, r); // draw left and top left corner
  12428. ctxi.arcTo(x, y, x + r, y, r);
  12429. ctxi.closePath();
  12430. if (fill) {
  12431. ctxi.fill();
  12432. }
  12433. if (stroke) {
  12434. ctxi.stroke();
  12435. }
  12436. };var x = Number(((ratioSize - ratioImgSize) / 2).toFixed(2));var y = Number(((ratioSize - ratioImgSize) / 2).toFixed(2));drawRoundedRect(ctx, x, y, ratioImgSize, ratioImgSize, 2, 6, true, true);ctx.drawImage(options.image, x, y, ratioImgSize, ratioImgSize);
  12437. }
  12438. setTimeout(function () {
  12439. ctx.draw(true, function () {
  12440. // 保存到临时区域
  12441. setTimeout(function () {
  12442. uni.canvasToTempFilePath({
  12443. width: options.width,
  12444. height: options.height,
  12445. destWidth: options.width,
  12446. destHeight: options.height,
  12447. canvasId: options.canvasId,
  12448. quality: Number(1),
  12449. success: function success(res) {
  12450. if (options.cbResult) {
  12451. options.cbResult(res.tempFilePath);
  12452. }
  12453. },
  12454. fail: function fail(res) {
  12455. if (options.cbResult) {
  12456. options.cbResult(res);
  12457. }
  12458. },
  12459. complete: function complete() {
  12460. if (options.showLoading) {
  12461. uni.hideLoading();
  12462. }
  12463. } },
  12464. options.context);
  12465. }, options.text.length + 100);
  12466. });
  12467. }, options.usingComponents ? 0 : 150);
  12468. };
  12469. createCanvas(this.options);
  12470. // 空判定
  12471. var empty = function empty(v) {
  12472. var tp = typeof v,
  12473. rt = false;
  12474. if (tp == "number" && String(v) == "") {
  12475. rt = true;
  12476. } else if (tp == "undefined") {
  12477. rt = true;
  12478. } else if (tp == "object") {
  12479. if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true;
  12480. } else if (tp == "string") {
  12481. if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true;
  12482. } else if (tp == "function") {
  12483. rt = false;
  12484. }
  12485. return rt;
  12486. };
  12487. };
  12488. QRCode.prototype.clear = function (fn) {
  12489. var ctx = uni.createCanvasContext(this.options.canvasId, this.options.context);
  12490. ctx.clearRect(0, 0, this.options.size, this.options.size);
  12491. ctx.draw(false, function () {
  12492. if (fn) {
  12493. fn();
  12494. }
  12495. });
  12496. };
  12497. })();var _default =
  12498. QRCode;exports.default = _default;
  12499. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  12500. /***/ }),
  12501. /***/ 6:
  12502. /*!***************************************!*\
  12503. !*** D:/2022/7/hqshop/store/index.js ***!
  12504. \***************************************/
  12505. /*! no static exports found */
  12506. /***/ (function(module, exports, __webpack_require__) {
  12507. "use strict";
  12508. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
  12509. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 7));
  12510. var _user = _interopRequireDefault(__webpack_require__(/*! ./model/user */ 8));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  12511. _vue.default.use(_vuex.default);
  12512. var store = new _vuex.default.Store({
  12513. namespaced: true,
  12514. state: {
  12515. // baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置
  12516. baseURL: 'https://xxl.liuniu946.com', //请求地址配置
  12517. urlFile: '/index', //项目部署所在文件夹
  12518. userInfo: {}, //登录信息
  12519. loginInterceptor: false, //是否打开强制登录
  12520. weichatInfo: {}, //保存微信注册信息
  12521. weichatObj: '' //微信对象
  12522. },
  12523. mutations: {
  12524. //保存微信信息
  12525. setWeiChatInfo: function setWeiChatInfo(state, provider) {
  12526. state.weichatInfo = provider;
  12527. },
  12528. //保存微信对象
  12529. setWeiChatObj: function setWeiChatObj(state, provider) {
  12530. state.weichatObj = provider;
  12531. } },
  12532. modules: {
  12533. user: _user.default },
  12534. actions: {} });var _default =
  12535. store;exports.default = _default;
  12536. /***/ }),
  12537. /***/ 62:
  12538. /*!****************************************!*\
  12539. !*** D:/2022/7/hqshop/utils/tabbar.js ***!
  12540. \****************************************/
  12541. /*! no static exports found */
  12542. /***/ (function(module, exports, __webpack_require__) {
  12543. "use strict";
  12544. Object.defineProperty(exports, "__esModule", { value: true });exports.tabbar1 = exports.tabbar = void 0;var tabbar = [{
  12545. pagePath: "/pages/index/index",
  12546. iconPath: __webpack_require__(/*! @/static/tabBar/tab-home.png */ 63),
  12547. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-home-current.png */ 64),
  12548. text: "首页" },
  12549. {
  12550. pagePath: "/pages/order/order",
  12551. iconPath: __webpack_require__(/*! @/static/tabBar/tab-order.png */ 65),
  12552. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-order-current.png */ 66),
  12553. text: "订单" },
  12554. {
  12555. pagePath: "/pages/hall/hall",
  12556. iconPath: __webpack_require__(/*! @/static/tabBar/qd.png */ 67),
  12557. selectedIconPath: __webpack_require__(/*! @/static/tabBar/qd.png */ 67),
  12558. text: "趣豆会馆",
  12559. midButton: true },
  12560. {
  12561. pagePath: "/pages/money/money",
  12562. iconPath: __webpack_require__(/*! @/static/tabBar/tab-money.png */ 68),
  12563. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-money-current.png */ 69),
  12564. text: "财务" },
  12565. {
  12566. pagePath: "/pages/user/user",
  12567. iconPath: __webpack_require__(/*! @/static/tabBar/tab-my.png */ 70),
  12568. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-my-current.png */ 71),
  12569. text: "我的" }];exports.tabbar = tabbar;
  12570. var tabbar1 = [{
  12571. pagePath: "/pages/index/index",
  12572. iconPath: __webpack_require__(/*! @/static/tabBar/tab-home.png */ 63),
  12573. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-home-current.png */ 64),
  12574. text: "首页" },
  12575. {
  12576. pagePath: "/pages/category/category",
  12577. iconPath: __webpack_require__(/*! @/static/tabBar/tab-cate.png */ 72),
  12578. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-cate-current.png */ 73),
  12579. text: "分类" },
  12580. {
  12581. pagePath: "/pages/cart/cart",
  12582. iconPath: __webpack_require__(/*! @/static/tabBar/tab-pink.png */ 74),
  12583. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-pink-current.png */ 75),
  12584. text: "购物车" },
  12585. {
  12586. pagePath: "/pages/product/new",
  12587. iconPath: __webpack_require__(/*! @/static/tabBar/tab-money.png */ 68),
  12588. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-money-current.png */ 69),
  12589. text: "新品" },
  12590. {
  12591. pagePath: "/pages/user/user",
  12592. iconPath: __webpack_require__(/*! @/static/tabBar/tab-my.png */ 70),
  12593. selectedIconPath: __webpack_require__(/*! @/static/tabBar/tab-my-current.png */ 71),
  12594. text: "我的" }];exports.tabbar1 = tabbar1;
  12595. /***/ }),
  12596. /***/ 63:
  12597. /*!***************************************************!*\
  12598. !*** D:/2022/7/hqshop/static/tabBar/tab-home.png ***!
  12599. \***************************************************/
  12600. /*! no static exports found */
  12601. /***/ (function(module, exports) {
  12602. module.exports = "data:image/png;base64,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"
  12603. /***/ }),
  12604. /***/ 64:
  12605. /*!***********************************************************!*\
  12606. !*** D:/2022/7/hqshop/static/tabBar/tab-home-current.png ***!
  12607. \***********************************************************/
  12608. /*! no static exports found */
  12609. /***/ (function(module, exports) {
  12610. module.exports = "data:image/png;base64,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"
  12611. /***/ }),
  12612. /***/ 65:
  12613. /*!****************************************************!*\
  12614. !*** D:/2022/7/hqshop/static/tabBar/tab-order.png ***!
  12615. \****************************************************/
  12616. /*! no static exports found */
  12617. /***/ (function(module, exports) {
  12618. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAABGhJREFUWEftWFFMW2UU/s7f22tg4Fp0hgyjnX3QF40x0cW4TBKeGh+Mujt9wdxAWyo4jSZ7Nc3ii9mDiTqES0sI+GTJ9EWJD4tszixLzDR7WNwLuMWR6UYpFile2v+Yg5elw26UDhpm/B/b85/7/d85//efcwgAuru7W5RS+5j5USJqIyIfM7P8t1WLiIiZS8x8hYguaq1Pp9PpLNm2HTBNMwYgwcwBAH4i2iocN/n1zrxMRDkAA67rDlE0Gn1dKXUEwMOe9aIg32pQAkYiAaDR++4lrfV7FIvFThPRsxIiIvoFwHFm/sMz3jKmvEPfC+BlZg55ITxD8Xh8FkALgKvMHFtcXDyllCo1Nzdvadzy+TxrrX2NjY37iWgIQCuArABaBNAAYEop1TEwMCAs1W0lEomQ1voEgEcAFLY1oGmtdUcqlZpepScej+8sFos78vn8XCaTKVSiLRKJ3NPW1hYwDINnZ2dnM5lMqZJdZ2fnDiKSW7w0OjoqabKyotHoHqWUMLRnLUM3ACWTSTUzM/MgMx9SSu1l5s/m5ubG1oKyLKuhpaXlFa31q0SkmfnjXC737VpQIi1+v78LgAXggtb6SDqdvgyAqwLU19d33/Ly8lHPQROAn4notcHBwfPipIzBMIBxAI971/gHAAcdx5GPrSzvcBEAnwAIAVhg5gEiet9xnPmqAHV1de02DONLAE97fnNEdCibzX6eyWTc1Y8lEolnSqXSF0S02/vtVwAvOo5zbtXGsiwzEAh0EdEHAOSag5m/L5VKB4eHh2eqAmRZVlMwGHwTwBsAhKEpAJ2O41wsZyiRSLRprfsB7ANQBPCN1vpwKpX6rSyPROvkah9jZnmWcsx8bGlp6dOxsbE/qwIkzrz37Xlm3uXz+c5ls9kf1+ZGe3u7EQ6Hn/L5fE+KmDLz2VQqdQmALk/seDwuaiygH2PmKSL6TsJVdVKX0e1bWFgwJiYm/rqNMFEkEjELhUJpcnJSWLrVUrZtm6FQyE0mkzcAV81QvZTxf0DrMb0hhiQZDcNQ6zm91f/ygIbD4UJ5zqy1rQqQZVm+YDAYYuaXiEi0o+JzsA5QqRaWAfxkGMbJ/v7+hUr2VQGybbvV7/enieg5AFJE1VLOSokqNdYVZk4MDQ2d/O8A2nYhK3s8t0dS13qratlXVVLX4rjWPXc3oDsVxkqsFYtF7TiONBYrqyqGNumWVcIjmjavtT4+Pz9/WcqZqgBtkjBWAiTqLSXK1wDedhzn+t0JaNuFbLOEcdOSulZNqWXf7XJoynXdjpGRkbr29rZth0zT/Hdvz8zTzHxTK13LiTe6RxgiohNE9E8rHYvFrhHR/QB+B/AOgK8KhUKxHuOYhoYGA8ALAD4E8AAzX6eenp4zzLzX66WkBR6v88DqAICHACgiOisMvUtEb22HkR4zfyTzoZ1a6wNKqcMAdsnQc6N5cIf2Undf01ofVUqNr4ztent7m1zX3a+UeoKZW+s5Fiaiq1rr86ZpnpJG4G+714fK/nYN8AAAAABJRU5ErkJggg=="
  12619. /***/ }),
  12620. /***/ 66:
  12621. /*!************************************************************!*\
  12622. !*** D:/2022/7/hqshop/static/tabBar/tab-order-current.png ***!
  12623. \************************************************************/
  12624. /*! no static exports found */
  12625. /***/ (function(module, exports) {
  12626. module.exports = "data:image/png;base64,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"
  12627. /***/ }),
  12628. /***/ 67:
  12629. /*!*********************************************!*\
  12630. !*** D:/2022/7/hqshop/static/tabBar/qd.png ***!
  12631. \*********************************************/
  12632. /*! no static exports found */
  12633. /***/ (function(module, exports) {
  12634. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAAE9RJREFUeF7tXQl0VFWa/u57r/YteyoLCRCIrIINFTbFtbXBmbbFkEHUOdPaQlK0PUdb2zndjieK0/Y4tvZptQLYttOKqCHYQ8+M2G7YKBqSCDLsICQhe1JZKlWVWt97c+4rUmRPVagXgvCfwzlU6t7/v/93/7rvv///3/sIJhCJpavZSiZlBmEwV+TFWSBiDkAyCZCI0D8NAOW5IfsBeAC0i0A7INaDkNOEkKOigEMWofU4KdjOTxT1yMUcSHExmJUzrAvA4geEYDmAxQzD6FVaHVRaLZRqDRRKFTgFB5ZTgGFYECY0ZFEQIQg8+GAAwUAQAb8Pfq8Hvp4e+HrcEATBBaBcFLEHPD54/7jt6+JiCBdL34sCdFWp9Vow4loR5E6G5cz6uDjojHHQGowSwIRc2LBEUZQA73F2w93dBVdXFwQ+2Ewg/hkC2bawwPbFeAN+YRpFMdryrQ8ZWTX/AIBChuVyjYlJMCUmQWs0XTCwow2DAt/T7YCj3Y7udjsF/SSATbyXfW3xvS91j9Y/Ft/LDvT+0h8n80TzKAjWa/R6U3xqGowJSWAYJhbjj5qHIAjo7mhHZ0sjPC6XAyI2s6Ln+e8VvN4WNbMoOsgG9O5Sq97A4heiiId1pjh9UsYkaWmYSESXFntDHdyOLhcheNHJ47kbC2x0bY85yQJ0ZZn1boh4XmMwpKdMyp5wAA9EkQLeWlcLj9vZCBGPWvJtb8ca6ZgCXfG2dRJRiJtZTrkiNSsbdB0GYioi1vr34SdK63fL2VrwQf8uMUDW591tq4uVwJihUFFWWEBEZpMxKSk+ddJksBwXqzGOKx8+GERLXQ267fZOhpDCBfmvlMZiABcMdGnpauUUJukFhuU2mLOnwJBA9xWXPjk72tFcWw2R5zdphLZ/nl2wnW6QxkwXBHTVtnVJopL9L5VGtyw9ZzqUKvWYBzIROwZ8XjScPgWfx72XqPgfLfz7LfaxjnPMQH9dap0mMNilj4ufZp48Vdq1fReJuoPNNafh6ur8lhGwYkGB7dux6DkmoCvfKZwDlvkoLiXVnJw56RJ64I0FItpHRFt9HbpaW5rBC9+3rNl0OFpOUQNd+V7hHPDM7gRzWlJiWka08i7p9u1NDehobrSDFW+0rIoO7KiALi9bP50V2T3xZrM50Xx5gdxrIe3NjehsbmrmCb98cf7mU5FaTsRA73tvQyIjCPtMiSk5dJd3OZO9sQ6O9tbTAmEWLVr1SnskWEQEdFXVOgVquU+1BtO1qdlTLoM1eTToRLTUVtPI4N5qwX5TQQSuX0RAV2wvfEWl0VmpC3exgkGjqT7e31NvpFFy/Ty2vNW2DaPJHxXoirINBSzLvEtBpkH4K3QeAZpsoGDzAX5NXoHt3ZGwGRFoKXbB4WDypKx4Gpi/QoMRoImFtrqznWIQ80aKjYwIdFXZhg+0JtNtSemX98NvNAOjD0e3o3OXJb9k5XBthwW6YnvhPSyn2Jo+dTpY9ru56xsNwEi/53kejWdO0dzlPYsKSrYN1W9IoL947X6DyqQ6kZiWmaYzmiKVd1m3c3c70NHU0OAUMGOo5MGQQFdsL9qo0mifSM2afFmDF63yLWdr4PN5NubdZXtyYN9BQO8p/XGyhtGcTs7MNqg0tIziCkWKgM/jQVt9rcsjeKYuH5CDHAR01Y4Nv1FqtI8npWdGyn/c2ulTFkIdN10K8ng6j8Pd9s24yY5UkL2xHj63+znLatvjffv0A7p86z1GRmWqS86YZFROMGs2mBfDYF7UT19Hwx642w5EisG4tPNTq26o6xZ8jkmL730rXMrQD+jKMuvDCpX6haSMiWXNhDAwz1kPhuufWAj6HGg5+sdxATAaIfaGegR83kcs+bYXe/v1A7qqzHrUlJwyU6M3RMNX/raERdrVhWDY/jtT3u9E8+FX5ZcfpQSPy4muttbjlnzbzEFAl5dar+U45vOUzGzZK4eiHLfUPD77VuiS5/br6myuhKN+z1jYydqHVka11tciGBSuW3yu/Cxs0RVlRTat3lhEq4gmIhGGg3nuA+CUoV+bv6cNLce2AsKEKRjtB1t3hx1eV3fJwvwSK/1CAloUQap2WBtpamqiJlh1yVcjccoPwspIVnN8G3zOholoF/B7vehsbWl5/4gtnVaxSkBXvGO1MApSkZg+CRdYyCmL0qxCj/SrHxj0MPS7m9F0+E+yyLxQpiIt2m6sgwAxL+8uW2UI6O3Wf1VpNE9P1GUj5apV0CbkDqm7/cwHcLVMPH+aDpYuHz6P58m81baNIaDLrB/rTXE3q7W6C53IcH9jmgVG8zUgjBI9HcfRUfs3iEIgav66pJlIyb0z3M/VdhhKbTKUulTpb3ygB/UHSiAEfVHzJgyL+KwboEuaBVEIwtm8H47GfVHzGa6Dt8cNl6Prk7x82y2EHmeoYpK7TEnJelpVHwsymhcgKef8ekp5UoBaT+6Mij3LaZD5vfVgFSEDCPpdqD+wBWpDOsyz1oR5ORor0F79UVS8aePkabfDkDq/Xz/Kh/KLBdHTCA57m2uh0BZH9peun8Wz3JH4ZHPM6hEz5z8AlT6t31hFUUDtvhfBB+mxk8goZfoPYUi9Oty4+VgZ3O3Hpc8UaF3CNOn/lHf9gVclTyRSYhgFJi9+BITpb1w+d6s0mTEhEehsa6bOxhxCS2xZTrEtljVzk655ECq9ud9YBSGImvLfQuAjK2HTxucgfc7aMA+3/QSajp2vN1SoE5C1oBD050+pp/MMGg+/FTE+1F2csviRQZsgv7sVZ/dvjpjPaA2dne3gA4G1pKqs6CmFWvOkRh+7IvG4jEVIntZ/6RD4ADpqP0N38wHwgZGtmmGVyLZYwalCsXD6K6ittIH3968RT5xyMxKyrg3r2nTkXbjsIYsfiRSaeOn5EZ+5BBTwvmQ/8xE6674cjUXE33tc3Qh4fU+TyrKiN1Ra/X0qjTbizpE0TMi6DqYMCxQqusE4v9Png144m79BZ0MFAp6OIVmlTF8BOlm91HJiJxxNg4NHdEIm5z0ETpIBBLxdqKl4WXqwDSQaL6G/kriMPGgTckA/h0kUEfQ50dX0tfTQjiX5PPSUmOtNUrnD+plaq79eIVMl6GSLFSp9yEPoS6LAw91+Eh11e+FxnK/31hgnIWsBPVMUmhx3x2nUH3xjWN2NqfOQNmtV+Ht79adorzkPFqfUwWieD1P6Qig1CUPy6emqQd2B12OJb5hXwOejJwn20DX6mEZvmBErj2PgaM0zf4S49AUjKkGB7ji7VwKeToxSFwoD0PW8et/LCHg6R+yfveBBaOKywn3OfPU7KNTxiM9cBH3yTDDsyN4UnZi20x/LAjT1PDxO5wlSsd3arDUYUxmZErAm8zykz1ktKUG9A2frUeiTrhpSeeoTs4rzS1jLyV3SBIxGGmMmsi3rw8GwoN8NaslDkd/TAWfrMSRkLQ23P3vgT3C3R1xGN9pw+n0v8Dw8zu4WatFdar3BJFd9s1KbiGnLHgkLr93/OnyuFsna4jPzhgWEWnl1xaaIlUqftQpxGUP/cugEu9u/RUdduQSoMXUOMub+Q2jyBR6nPv8Ngv6eiGVF05Ce7vW6nA4KtEet06uJbOf+CHKX/wsU6pBX03ZmN1q//VD6P40vm9LmIzF7GVS65PD4qfKny1+SJiRS4pR6TLv252D7JAeoZXc1VKGzoRL+nvO1iOmz7pQmmZK3u1GSJReJggCv2+WVgFZpdWqm71M4xlIz598DkzkUS3Z3nEFNxYANAWGgT8pF0pTrpO1166kPJYCiJaN5Lswz/k5a0zvq9qG75TBEfvC2P+fah6E+94DuOPsVmo5Gt2ONZlyCKNCz6RLQXUq1xiRn8WJC9jKkz7pDGh+NSRz7dCPE4TYuNHxIQ19jpVH6syoDZtz4q7B7V/fNW3A0HRyrtFH7UaD9Ho+0dDQpVGqznEBrTJMwbdnPwoP69suX4emqHXWQcjQwJM/AZAt1H0N0YvezoA9IuYhWnQa8XulheJhTKGfL5XVQBeg2edYtxWAVoTqRxqN/gb364qSgzDNuR0rOjdI4fO52nPjsWbkwDv2CeZ5ecXFU2rCwrOJ6OS2aCpy6pAiGJFqTATiaD6Om8uJkr3OW/RT6hKnSOLoav0Ht18NvhmIxA9Sig8EA3bAUvcGw3H1yuXe9gzXPWAFz7q3Sx4DXgSMfPU19q1joEjEPwiow97aNYLhQNr3+0A7Yq+W9uiN0eUtwK6kq2/AUCHlSzqWDKmVIzsW0pVKeUqKjn/waPldrxCDFoqEuYSpyrzv/rDi++zl4uhtjwXpYHnTpgCjSoJL1bgDb5LZouuObu/IZMOeiZbX730J7beyyGZGglZp7CzJm/1BqSn3sQ7uekDYschK1aABriXQ4k2MO9YtmySR55k2PQxsXqoKy13yF2v1DlhLLJB3IWbIOcWkhf7675RhO7bXJJquXMd2VghHmhlNZANHLLTVrfgFScugdVYDH2YwjHz4jt8jz/AnBvJW/hkIdCqnWH/lvNB//q+zyCUSX8/DReCkWWVlm/VgUcbPcUuMz5mPakgclMXSmD77/BAIeh9xiJf4aUwbmfP+XYVnH//Y7ONvkCST1VYgQfGKhyVn6x4qyoich4ilalCIn0QDTvJUbw1Gzk1+UoKvp/+QUGeadNHkpplrukz7TbM/+v/wCQtArq2x62xkBKbastj0VsujSwjwQZh89iyE3zbt9I9T6UADJXlOOtppy2e+ooeZjzr0J8emhRK+r/QyOfPyc3KpKZ38YRlyy4K6Scgno4uJiZuXs1kaB51PlturpS3+CxCyL7EqOJKDpxMeoPbBd1jFQa2ZZtuV/j6SkFxcXh0rCJKsuK3pZ4IUNclt16rQbMNVyj6xKjsb8xOc2dNTLW8BOrZkwbPhUbRhoeruiQMTPA/7IygFGU2a472nmY/Ytj0F3zs0bK5+x9nO2ncaRT56HMIaqqWhkKpRKiMDyRatLPqf9+lf8by86HggErhJ4ebfG9Gel1MZfWDg0Gq3DbQl8NFIn7zMfDMtAoVCcsKwumdErekDFf9EjvCD+NuCNvo5tTHp/Rzsp1CqwDPn5wvySF4YGunSdSSDc2YDPa5T26DIRteakyXngzoVNZRIziC3NC7ZVlyPgle86UhozUqjU3YwYzFpYsCW8SRh0/K2izPofQjD4KC2kloNobHrBHc9CYxxc6yGHvIE8ne3V+OZ/imUTpVSrwXDc83n5tsf6ChkE9N43ClOUWua0t6dHL4dV0xDl0rtto9ZayIWE3+NA+bs0ghf7hZoG5tQ6rcvPCDnLVm3qF5oc8ohyZZn1GZ7nf+V1u2XR15x7PTJm3jbuV7jRgpzagzthr40+8RsJEGqdjvrO/2bJtz0xsP2QQB/feb+h268+6fP0mIOB6IvHIxnUd60Np1BQa27U8rhq9hA39g5/jURZ0b0QxDfdTifk3i1e6qBTd1VrMNBr8e/Lyy/ZOpQ+I99AU1b0QdDnv40eEbhCwyNAj6RwKuVf8/JL+tcq9+ky8g00peuyRIY72ON0xgVl3jFeqhPJKZXUmruIEJy3sGDL2eH0GBFo2qnyvcI1YhBvuxwOKXV+hc4jQH1mvckEkWHWLhrlcu9RgZbA3l5UwvN8IX37w5X1OgQ0XZfp2zZYjttkybcVjWaAEQF9pHS1sodJ3u33+ZbStz9cIUhv21CqVF9qhbYbI7lbOiKgKbAH3ytM8QvMV96enqn09P7lTPT2B7VWe0bJCEvmDdiYjHmN7ttx3zsP5jKsYo/H7Ur1uGV5ucOEnz+NTg+NTt8i8IHli9a8St/nEhFFbNG93KpK180VGPYzj8uV4HFdXmBr9BLIHYzI37CwYMuhiBA+1yhqoGm/8rKiq1mRfEgtm75a43Ig+g4Zask8EW9dnF8SdUZ5TEBTYPe9syGX4cRdPo9nqrOr8yIE8cdpegmBIS4eKo3mjBAkKxateSXi5aLvCMcMNGWyv/ShZJ7wO4MB/5Lujg7w/ODzfeMEhyxiWJaDMSEBrFJRHugR71j2j/0jctEIvSCgqSDJ9SPJvxdEYb2zs5NWt0cjf8K2pbekGeLjqb/8B7uO++nKlS9dUNrpgoHuRepcsaTN43bHSRsbQd68o1wzRA9N0Y2IRqfrAmCN1eucYgY0VXzvjgeylaJqi8Dzt9J1m75T8FIi+i5Fuh4zLPuhn/jWLbvrtZid/4gp0GHr3lF4H0Ty736fP83V2Sm9PXMiE72AXB8fD6VK2QQiPm65a9ObsR6vLEDTQX6x836DMqD+JQF+5vN4tG5HF+i56IlECpUKOlMcVGqNmzDk93rO8+yMO/4oy7ZXNqB7Aa0otZoJQx4TITwY8PkMPd1OeD09F88dJARqjRZaowEKlcpJgFd5f+C5xWv/EPnp0TFYi+xA947pwJ//KS4gan9CBLFQ4IUcmkygOUm5su0DsaDZaZrTo0F6hmVOA9jMsZ5Xr7nzP+lDT3YaN6B7NREBUllatJwwWCOCrBJ5PsXn9cDv8UqgBwOxKUnjFEpQcJUaNV0aQFi2lUB8TxTwjqWgZA89Nio7un0EjDvQfZUTi4uZ/XNb8ngRKwjo66qJRRAEHc3mUMD5QBDBYFB6LbXI8xBo/XZvDTchYGj9sVQay4LjOLAKDhRgmvVgGMYNiPS+uT28IHyQdzRtHykuvmg+50UFeqBFVW1epwgmsjMVDJkrCJgpQpxCRJIFAnqBB31RIr1jou8L2Kn/2A4RdpGIZwlINcPgWEAQD3Ht/LGF67dMmBT+/wNAQbEv3FP8TQAAAABJRU5ErkJggg=="
  12635. /***/ }),
  12636. /***/ 68:
  12637. /*!****************************************************!*\
  12638. !*** D:/2022/7/hqshop/static/tabBar/tab-money.png ***!
  12639. \****************************************************/
  12640. /*! no static exports found */
  12641. /***/ (function(module, exports) {
  12642. module.exports = "data:image/png;base64,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"
  12643. /***/ }),
  12644. /***/ 69:
  12645. /*!************************************************************!*\
  12646. !*** D:/2022/7/hqshop/static/tabBar/tab-money-current.png ***!
  12647. \************************************************************/
  12648. /*! no static exports found */
  12649. /***/ (function(module, exports) {
  12650. module.exports = "data:image/png;base64,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"
  12651. /***/ }),
  12652. /***/ 7:
  12653. /*!**************************************************************************************!*\
  12654. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  12655. \**************************************************************************************/
  12656. /*! no static exports found */
  12657. /***/ (function(module, exports, __webpack_require__) {
  12658. "use strict";
  12659. /* WEBPACK VAR INJECTION */(function(global) {/*!
  12660. * vuex v3.6.2
  12661. * (c) 2021 Evan You
  12662. * @license MIT
  12663. */
  12664. function applyMixin (Vue) {
  12665. var version = Number(Vue.version.split('.')[0]);
  12666. if (version >= 2) {
  12667. Vue.mixin({ beforeCreate: vuexInit });
  12668. } else {
  12669. // override init and inject vuex init procedure
  12670. // for 1.x backwards compatibility.
  12671. var _init = Vue.prototype._init;
  12672. Vue.prototype._init = function (options) {
  12673. if ( options === void 0 ) options = {};
  12674. options.init = options.init
  12675. ? [vuexInit].concat(options.init)
  12676. : vuexInit;
  12677. _init.call(this, options);
  12678. };
  12679. }
  12680. /**
  12681. * Vuex init hook, injected into each instances init hooks list.
  12682. */
  12683. function vuexInit () {
  12684. var options = this.$options;
  12685. // store injection
  12686. if (options.store) {
  12687. this.$store = typeof options.store === 'function'
  12688. ? options.store()
  12689. : options.store;
  12690. } else if (options.parent && options.parent.$store) {
  12691. this.$store = options.parent.$store;
  12692. }
  12693. }
  12694. }
  12695. var target = typeof window !== 'undefined'
  12696. ? window
  12697. : typeof global !== 'undefined'
  12698. ? global
  12699. : {};
  12700. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  12701. function devtoolPlugin (store) {
  12702. if (!devtoolHook) { return }
  12703. store._devtoolHook = devtoolHook;
  12704. devtoolHook.emit('vuex:init', store);
  12705. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  12706. store.replaceState(targetState);
  12707. });
  12708. store.subscribe(function (mutation, state) {
  12709. devtoolHook.emit('vuex:mutation', mutation, state);
  12710. }, { prepend: true });
  12711. store.subscribeAction(function (action, state) {
  12712. devtoolHook.emit('vuex:action', action, state);
  12713. }, { prepend: true });
  12714. }
  12715. /**
  12716. * Get the first item that pass the test
  12717. * by second argument function
  12718. *
  12719. * @param {Array} list
  12720. * @param {Function} f
  12721. * @return {*}
  12722. */
  12723. function find (list, f) {
  12724. return list.filter(f)[0]
  12725. }
  12726. /**
  12727. * Deep copy the given object considering circular structure.
  12728. * This function caches all nested objects and its copies.
  12729. * If it detects circular structure, use cached copy to avoid infinite loop.
  12730. *
  12731. * @param {*} obj
  12732. * @param {Array<Object>} cache
  12733. * @return {*}
  12734. */
  12735. function deepCopy (obj, cache) {
  12736. if ( cache === void 0 ) cache = [];
  12737. // just return if obj is immutable value
  12738. if (obj === null || typeof obj !== 'object') {
  12739. return obj
  12740. }
  12741. // if obj is hit, it is in circular structure
  12742. var hit = find(cache, function (c) { return c.original === obj; });
  12743. if (hit) {
  12744. return hit.copy
  12745. }
  12746. var copy = Array.isArray(obj) ? [] : {};
  12747. // put the copy into cache at first
  12748. // because we want to refer it in recursive deepCopy
  12749. cache.push({
  12750. original: obj,
  12751. copy: copy
  12752. });
  12753. Object.keys(obj).forEach(function (key) {
  12754. copy[key] = deepCopy(obj[key], cache);
  12755. });
  12756. return copy
  12757. }
  12758. /**
  12759. * forEach for object
  12760. */
  12761. function forEachValue (obj, fn) {
  12762. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  12763. }
  12764. function isObject (obj) {
  12765. return obj !== null && typeof obj === 'object'
  12766. }
  12767. function isPromise (val) {
  12768. return val && typeof val.then === 'function'
  12769. }
  12770. function assert (condition, msg) {
  12771. if (!condition) { throw new Error(("[vuex] " + msg)) }
  12772. }
  12773. function partial (fn, arg) {
  12774. return function () {
  12775. return fn(arg)
  12776. }
  12777. }
  12778. // Base data struct for store's module, package with some attribute and method
  12779. var Module = function Module (rawModule, runtime) {
  12780. this.runtime = runtime;
  12781. // Store some children item
  12782. this._children = Object.create(null);
  12783. // Store the origin module object which passed by programmer
  12784. this._rawModule = rawModule;
  12785. var rawState = rawModule.state;
  12786. // Store the origin module's state
  12787. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  12788. };
  12789. var prototypeAccessors = { namespaced: { configurable: true } };
  12790. prototypeAccessors.namespaced.get = function () {
  12791. return !!this._rawModule.namespaced
  12792. };
  12793. Module.prototype.addChild = function addChild (key, module) {
  12794. this._children[key] = module;
  12795. };
  12796. Module.prototype.removeChild = function removeChild (key) {
  12797. delete this._children[key];
  12798. };
  12799. Module.prototype.getChild = function getChild (key) {
  12800. return this._children[key]
  12801. };
  12802. Module.prototype.hasChild = function hasChild (key) {
  12803. return key in this._children
  12804. };
  12805. Module.prototype.update = function update (rawModule) {
  12806. this._rawModule.namespaced = rawModule.namespaced;
  12807. if (rawModule.actions) {
  12808. this._rawModule.actions = rawModule.actions;
  12809. }
  12810. if (rawModule.mutations) {
  12811. this._rawModule.mutations = rawModule.mutations;
  12812. }
  12813. if (rawModule.getters) {
  12814. this._rawModule.getters = rawModule.getters;
  12815. }
  12816. };
  12817. Module.prototype.forEachChild = function forEachChild (fn) {
  12818. forEachValue(this._children, fn);
  12819. };
  12820. Module.prototype.forEachGetter = function forEachGetter (fn) {
  12821. if (this._rawModule.getters) {
  12822. forEachValue(this._rawModule.getters, fn);
  12823. }
  12824. };
  12825. Module.prototype.forEachAction = function forEachAction (fn) {
  12826. if (this._rawModule.actions) {
  12827. forEachValue(this._rawModule.actions, fn);
  12828. }
  12829. };
  12830. Module.prototype.forEachMutation = function forEachMutation (fn) {
  12831. if (this._rawModule.mutations) {
  12832. forEachValue(this._rawModule.mutations, fn);
  12833. }
  12834. };
  12835. Object.defineProperties( Module.prototype, prototypeAccessors );
  12836. var ModuleCollection = function ModuleCollection (rawRootModule) {
  12837. // register root module (Vuex.Store options)
  12838. this.register([], rawRootModule, false);
  12839. };
  12840. ModuleCollection.prototype.get = function get (path) {
  12841. return path.reduce(function (module, key) {
  12842. return module.getChild(key)
  12843. }, this.root)
  12844. };
  12845. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  12846. var module = this.root;
  12847. return path.reduce(function (namespace, key) {
  12848. module = module.getChild(key);
  12849. return namespace + (module.namespaced ? key + '/' : '')
  12850. }, '')
  12851. };
  12852. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  12853. update([], this.root, rawRootModule);
  12854. };
  12855. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  12856. var this$1 = this;
  12857. if ( runtime === void 0 ) runtime = true;
  12858. if ((true)) {
  12859. assertRawModule(path, rawModule);
  12860. }
  12861. var newModule = new Module(rawModule, runtime);
  12862. if (path.length === 0) {
  12863. this.root = newModule;
  12864. } else {
  12865. var parent = this.get(path.slice(0, -1));
  12866. parent.addChild(path[path.length - 1], newModule);
  12867. }
  12868. // register nested modules
  12869. if (rawModule.modules) {
  12870. forEachValue(rawModule.modules, function (rawChildModule, key) {
  12871. this$1.register(path.concat(key), rawChildModule, runtime);
  12872. });
  12873. }
  12874. };
  12875. ModuleCollection.prototype.unregister = function unregister (path) {
  12876. var parent = this.get(path.slice(0, -1));
  12877. var key = path[path.length - 1];
  12878. var child = parent.getChild(key);
  12879. if (!child) {
  12880. if ((true)) {
  12881. console.warn(
  12882. "[vuex] trying to unregister module '" + key + "', which is " +
  12883. "not registered"
  12884. );
  12885. }
  12886. return
  12887. }
  12888. if (!child.runtime) {
  12889. return
  12890. }
  12891. parent.removeChild(key);
  12892. };
  12893. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  12894. var parent = this.get(path.slice(0, -1));
  12895. var key = path[path.length - 1];
  12896. if (parent) {
  12897. return parent.hasChild(key)
  12898. }
  12899. return false
  12900. };
  12901. function update (path, targetModule, newModule) {
  12902. if ((true)) {
  12903. assertRawModule(path, newModule);
  12904. }
  12905. // update target module
  12906. targetModule.update(newModule);
  12907. // update nested modules
  12908. if (newModule.modules) {
  12909. for (var key in newModule.modules) {
  12910. if (!targetModule.getChild(key)) {
  12911. if ((true)) {
  12912. console.warn(
  12913. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  12914. 'manual reload is needed'
  12915. );
  12916. }
  12917. return
  12918. }
  12919. update(
  12920. path.concat(key),
  12921. targetModule.getChild(key),
  12922. newModule.modules[key]
  12923. );
  12924. }
  12925. }
  12926. }
  12927. var functionAssert = {
  12928. assert: function (value) { return typeof value === 'function'; },
  12929. expected: 'function'
  12930. };
  12931. var objectAssert = {
  12932. assert: function (value) { return typeof value === 'function' ||
  12933. (typeof value === 'object' && typeof value.handler === 'function'); },
  12934. expected: 'function or object with "handler" function'
  12935. };
  12936. var assertTypes = {
  12937. getters: functionAssert,
  12938. mutations: functionAssert,
  12939. actions: objectAssert
  12940. };
  12941. function assertRawModule (path, rawModule) {
  12942. Object.keys(assertTypes).forEach(function (key) {
  12943. if (!rawModule[key]) { return }
  12944. var assertOptions = assertTypes[key];
  12945. forEachValue(rawModule[key], function (value, type) {
  12946. assert(
  12947. assertOptions.assert(value),
  12948. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  12949. );
  12950. });
  12951. });
  12952. }
  12953. function makeAssertionMessage (path, key, type, value, expected) {
  12954. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  12955. if (path.length > 0) {
  12956. buf += " in module \"" + (path.join('.')) + "\"";
  12957. }
  12958. buf += " is " + (JSON.stringify(value)) + ".";
  12959. return buf
  12960. }
  12961. var Vue; // bind on install
  12962. var Store = function Store (options) {
  12963. var this$1 = this;
  12964. if ( options === void 0 ) options = {};
  12965. // Auto install if it is not done yet and `window` has `Vue`.
  12966. // To allow users to avoid auto-installation in some cases,
  12967. // this code should be placed here. See #731
  12968. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  12969. install(window.Vue);
  12970. }
  12971. if ((true)) {
  12972. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  12973. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  12974. assert(this instanceof Store, "store must be called with the new operator.");
  12975. }
  12976. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  12977. var strict = options.strict; if ( strict === void 0 ) strict = false;
  12978. // store internal state
  12979. this._committing = false;
  12980. this._actions = Object.create(null);
  12981. this._actionSubscribers = [];
  12982. this._mutations = Object.create(null);
  12983. this._wrappedGetters = Object.create(null);
  12984. this._modules = new ModuleCollection(options);
  12985. this._modulesNamespaceMap = Object.create(null);
  12986. this._subscribers = [];
  12987. this._watcherVM = new Vue();
  12988. this._makeLocalGettersCache = Object.create(null);
  12989. // bind commit and dispatch to self
  12990. var store = this;
  12991. var ref = this;
  12992. var dispatch = ref.dispatch;
  12993. var commit = ref.commit;
  12994. this.dispatch = function boundDispatch (type, payload) {
  12995. return dispatch.call(store, type, payload)
  12996. };
  12997. this.commit = function boundCommit (type, payload, options) {
  12998. return commit.call(store, type, payload, options)
  12999. };
  13000. // strict mode
  13001. this.strict = strict;
  13002. var state = this._modules.root.state;
  13003. // init root module.
  13004. // this also recursively registers all sub-modules
  13005. // and collects all module getters inside this._wrappedGetters
  13006. installModule(this, state, [], this._modules.root);
  13007. // initialize the store vm, which is responsible for the reactivity
  13008. // (also registers _wrappedGetters as computed properties)
  13009. resetStoreVM(this, state);
  13010. // apply plugins
  13011. plugins.forEach(function (plugin) { return plugin(this$1); });
  13012. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  13013. if (useDevtools) {
  13014. devtoolPlugin(this);
  13015. }
  13016. };
  13017. var prototypeAccessors$1 = { state: { configurable: true } };
  13018. prototypeAccessors$1.state.get = function () {
  13019. return this._vm._data.$$state
  13020. };
  13021. prototypeAccessors$1.state.set = function (v) {
  13022. if ((true)) {
  13023. assert(false, "use store.replaceState() to explicit replace store state.");
  13024. }
  13025. };
  13026. Store.prototype.commit = function commit (_type, _payload, _options) {
  13027. var this$1 = this;
  13028. // check object-style commit
  13029. var ref = unifyObjectStyle(_type, _payload, _options);
  13030. var type = ref.type;
  13031. var payload = ref.payload;
  13032. var options = ref.options;
  13033. var mutation = { type: type, payload: payload };
  13034. var entry = this._mutations[type];
  13035. if (!entry) {
  13036. if ((true)) {
  13037. console.error(("[vuex] unknown mutation type: " + type));
  13038. }
  13039. return
  13040. }
  13041. this._withCommit(function () {
  13042. entry.forEach(function commitIterator (handler) {
  13043. handler(payload);
  13044. });
  13045. });
  13046. this._subscribers
  13047. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  13048. .forEach(function (sub) { return sub(mutation, this$1.state); });
  13049. if (
  13050. ( true) &&
  13051. options && options.silent
  13052. ) {
  13053. console.warn(
  13054. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  13055. 'Use the filter functionality in the vue-devtools'
  13056. );
  13057. }
  13058. };
  13059. Store.prototype.dispatch = function dispatch (_type, _payload) {
  13060. var this$1 = this;
  13061. // check object-style dispatch
  13062. var ref = unifyObjectStyle(_type, _payload);
  13063. var type = ref.type;
  13064. var payload = ref.payload;
  13065. var action = { type: type, payload: payload };
  13066. var entry = this._actions[type];
  13067. if (!entry) {
  13068. if ((true)) {
  13069. console.error(("[vuex] unknown action type: " + type));
  13070. }
  13071. return
  13072. }
  13073. try {
  13074. this._actionSubscribers
  13075. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  13076. .filter(function (sub) { return sub.before; })
  13077. .forEach(function (sub) { return sub.before(action, this$1.state); });
  13078. } catch (e) {
  13079. if ((true)) {
  13080. console.warn("[vuex] error in before action subscribers: ");
  13081. console.error(e);
  13082. }
  13083. }
  13084. var result = entry.length > 1
  13085. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  13086. : entry[0](payload);
  13087. return new Promise(function (resolve, reject) {
  13088. result.then(function (res) {
  13089. try {
  13090. this$1._actionSubscribers
  13091. .filter(function (sub) { return sub.after; })
  13092. .forEach(function (sub) { return sub.after(action, this$1.state); });
  13093. } catch (e) {
  13094. if ((true)) {
  13095. console.warn("[vuex] error in after action subscribers: ");
  13096. console.error(e);
  13097. }
  13098. }
  13099. resolve(res);
  13100. }, function (error) {
  13101. try {
  13102. this$1._actionSubscribers
  13103. .filter(function (sub) { return sub.error; })
  13104. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  13105. } catch (e) {
  13106. if ((true)) {
  13107. console.warn("[vuex] error in error action subscribers: ");
  13108. console.error(e);
  13109. }
  13110. }
  13111. reject(error);
  13112. });
  13113. })
  13114. };
  13115. Store.prototype.subscribe = function subscribe (fn, options) {
  13116. return genericSubscribe(fn, this._subscribers, options)
  13117. };
  13118. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  13119. var subs = typeof fn === 'function' ? { before: fn } : fn;
  13120. return genericSubscribe(subs, this._actionSubscribers, options)
  13121. };
  13122. Store.prototype.watch = function watch (getter, cb, options) {
  13123. var this$1 = this;
  13124. if ((true)) {
  13125. assert(typeof getter === 'function', "store.watch only accepts a function.");
  13126. }
  13127. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  13128. };
  13129. Store.prototype.replaceState = function replaceState (state) {
  13130. var this$1 = this;
  13131. this._withCommit(function () {
  13132. this$1._vm._data.$$state = state;
  13133. });
  13134. };
  13135. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  13136. if ( options === void 0 ) options = {};
  13137. if (typeof path === 'string') { path = [path]; }
  13138. if ((true)) {
  13139. assert(Array.isArray(path), "module path must be a string or an Array.");
  13140. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  13141. }
  13142. this._modules.register(path, rawModule);
  13143. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  13144. // reset store to update getters...
  13145. resetStoreVM(this, this.state);
  13146. };
  13147. Store.prototype.unregisterModule = function unregisterModule (path) {
  13148. var this$1 = this;
  13149. if (typeof path === 'string') { path = [path]; }
  13150. if ((true)) {
  13151. assert(Array.isArray(path), "module path must be a string or an Array.");
  13152. }
  13153. this._modules.unregister(path);
  13154. this._withCommit(function () {
  13155. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  13156. Vue.delete(parentState, path[path.length - 1]);
  13157. });
  13158. resetStore(this);
  13159. };
  13160. Store.prototype.hasModule = function hasModule (path) {
  13161. if (typeof path === 'string') { path = [path]; }
  13162. if ((true)) {
  13163. assert(Array.isArray(path), "module path must be a string or an Array.");
  13164. }
  13165. return this._modules.isRegistered(path)
  13166. };
  13167. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  13168. this._modules.update(newOptions);
  13169. resetStore(this, true);
  13170. };
  13171. Store.prototype._withCommit = function _withCommit (fn) {
  13172. var committing = this._committing;
  13173. this._committing = true;
  13174. fn();
  13175. this._committing = committing;
  13176. };
  13177. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  13178. function genericSubscribe (fn, subs, options) {
  13179. if (subs.indexOf(fn) < 0) {
  13180. options && options.prepend
  13181. ? subs.unshift(fn)
  13182. : subs.push(fn);
  13183. }
  13184. return function () {
  13185. var i = subs.indexOf(fn);
  13186. if (i > -1) {
  13187. subs.splice(i, 1);
  13188. }
  13189. }
  13190. }
  13191. function resetStore (store, hot) {
  13192. store._actions = Object.create(null);
  13193. store._mutations = Object.create(null);
  13194. store._wrappedGetters = Object.create(null);
  13195. store._modulesNamespaceMap = Object.create(null);
  13196. var state = store.state;
  13197. // init all modules
  13198. installModule(store, state, [], store._modules.root, true);
  13199. // reset vm
  13200. resetStoreVM(store, state, hot);
  13201. }
  13202. function resetStoreVM (store, state, hot) {
  13203. var oldVm = store._vm;
  13204. // bind store public getters
  13205. store.getters = {};
  13206. // reset local getters cache
  13207. store._makeLocalGettersCache = Object.create(null);
  13208. var wrappedGetters = store._wrappedGetters;
  13209. var computed = {};
  13210. forEachValue(wrappedGetters, function (fn, key) {
  13211. // use computed to leverage its lazy-caching mechanism
  13212. // direct inline function use will lead to closure preserving oldVm.
  13213. // using partial to return function with only arguments preserved in closure environment.
  13214. computed[key] = partial(fn, store);
  13215. Object.defineProperty(store.getters, key, {
  13216. get: function () { return store._vm[key]; },
  13217. enumerable: true // for local getters
  13218. });
  13219. });
  13220. // use a Vue instance to store the state tree
  13221. // suppress warnings just in case the user has added
  13222. // some funky global mixins
  13223. var silent = Vue.config.silent;
  13224. Vue.config.silent = true;
  13225. store._vm = new Vue({
  13226. data: {
  13227. $$state: state
  13228. },
  13229. computed: computed
  13230. });
  13231. Vue.config.silent = silent;
  13232. // enable strict mode for new vm
  13233. if (store.strict) {
  13234. enableStrictMode(store);
  13235. }
  13236. if (oldVm) {
  13237. if (hot) {
  13238. // dispatch changes in all subscribed watchers
  13239. // to force getter re-evaluation for hot reloading.
  13240. store._withCommit(function () {
  13241. oldVm._data.$$state = null;
  13242. });
  13243. }
  13244. Vue.nextTick(function () { return oldVm.$destroy(); });
  13245. }
  13246. }
  13247. function installModule (store, rootState, path, module, hot) {
  13248. var isRoot = !path.length;
  13249. var namespace = store._modules.getNamespace(path);
  13250. // register in namespace map
  13251. if (module.namespaced) {
  13252. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  13253. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  13254. }
  13255. store._modulesNamespaceMap[namespace] = module;
  13256. }
  13257. // set state
  13258. if (!isRoot && !hot) {
  13259. var parentState = getNestedState(rootState, path.slice(0, -1));
  13260. var moduleName = path[path.length - 1];
  13261. store._withCommit(function () {
  13262. if ((true)) {
  13263. if (moduleName in parentState) {
  13264. console.warn(
  13265. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  13266. );
  13267. }
  13268. }
  13269. Vue.set(parentState, moduleName, module.state);
  13270. });
  13271. }
  13272. var local = module.context = makeLocalContext(store, namespace, path);
  13273. module.forEachMutation(function (mutation, key) {
  13274. var namespacedType = namespace + key;
  13275. registerMutation(store, namespacedType, mutation, local);
  13276. });
  13277. module.forEachAction(function (action, key) {
  13278. var type = action.root ? key : namespace + key;
  13279. var handler = action.handler || action;
  13280. registerAction(store, type, handler, local);
  13281. });
  13282. module.forEachGetter(function (getter, key) {
  13283. var namespacedType = namespace + key;
  13284. registerGetter(store, namespacedType, getter, local);
  13285. });
  13286. module.forEachChild(function (child, key) {
  13287. installModule(store, rootState, path.concat(key), child, hot);
  13288. });
  13289. }
  13290. /**
  13291. * make localized dispatch, commit, getters and state
  13292. * if there is no namespace, just use root ones
  13293. */
  13294. function makeLocalContext (store, namespace, path) {
  13295. var noNamespace = namespace === '';
  13296. var local = {
  13297. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  13298. var args = unifyObjectStyle(_type, _payload, _options);
  13299. var payload = args.payload;
  13300. var options = args.options;
  13301. var type = args.type;
  13302. if (!options || !options.root) {
  13303. type = namespace + type;
  13304. if (( true) && !store._actions[type]) {
  13305. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  13306. return
  13307. }
  13308. }
  13309. return store.dispatch(type, payload)
  13310. },
  13311. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  13312. var args = unifyObjectStyle(_type, _payload, _options);
  13313. var payload = args.payload;
  13314. var options = args.options;
  13315. var type = args.type;
  13316. if (!options || !options.root) {
  13317. type = namespace + type;
  13318. if (( true) && !store._mutations[type]) {
  13319. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  13320. return
  13321. }
  13322. }
  13323. store.commit(type, payload, options);
  13324. }
  13325. };
  13326. // getters and state object must be gotten lazily
  13327. // because they will be changed by vm update
  13328. Object.defineProperties(local, {
  13329. getters: {
  13330. get: noNamespace
  13331. ? function () { return store.getters; }
  13332. : function () { return makeLocalGetters(store, namespace); }
  13333. },
  13334. state: {
  13335. get: function () { return getNestedState(store.state, path); }
  13336. }
  13337. });
  13338. return local
  13339. }
  13340. function makeLocalGetters (store, namespace) {
  13341. if (!store._makeLocalGettersCache[namespace]) {
  13342. var gettersProxy = {};
  13343. var splitPos = namespace.length;
  13344. Object.keys(store.getters).forEach(function (type) {
  13345. // skip if the target getter is not match this namespace
  13346. if (type.slice(0, splitPos) !== namespace) { return }
  13347. // extract local getter type
  13348. var localType = type.slice(splitPos);
  13349. // Add a port to the getters proxy.
  13350. // Define as getter property because
  13351. // we do not want to evaluate the getters in this time.
  13352. Object.defineProperty(gettersProxy, localType, {
  13353. get: function () { return store.getters[type]; },
  13354. enumerable: true
  13355. });
  13356. });
  13357. store._makeLocalGettersCache[namespace] = gettersProxy;
  13358. }
  13359. return store._makeLocalGettersCache[namespace]
  13360. }
  13361. function registerMutation (store, type, handler, local) {
  13362. var entry = store._mutations[type] || (store._mutations[type] = []);
  13363. entry.push(function wrappedMutationHandler (payload) {
  13364. handler.call(store, local.state, payload);
  13365. });
  13366. }
  13367. function registerAction (store, type, handler, local) {
  13368. var entry = store._actions[type] || (store._actions[type] = []);
  13369. entry.push(function wrappedActionHandler (payload) {
  13370. var res = handler.call(store, {
  13371. dispatch: local.dispatch,
  13372. commit: local.commit,
  13373. getters: local.getters,
  13374. state: local.state,
  13375. rootGetters: store.getters,
  13376. rootState: store.state
  13377. }, payload);
  13378. if (!isPromise(res)) {
  13379. res = Promise.resolve(res);
  13380. }
  13381. if (store._devtoolHook) {
  13382. return res.catch(function (err) {
  13383. store._devtoolHook.emit('vuex:error', err);
  13384. throw err
  13385. })
  13386. } else {
  13387. return res
  13388. }
  13389. });
  13390. }
  13391. function registerGetter (store, type, rawGetter, local) {
  13392. if (store._wrappedGetters[type]) {
  13393. if ((true)) {
  13394. console.error(("[vuex] duplicate getter key: " + type));
  13395. }
  13396. return
  13397. }
  13398. store._wrappedGetters[type] = function wrappedGetter (store) {
  13399. return rawGetter(
  13400. local.state, // local state
  13401. local.getters, // local getters
  13402. store.state, // root state
  13403. store.getters // root getters
  13404. )
  13405. };
  13406. }
  13407. function enableStrictMode (store) {
  13408. store._vm.$watch(function () { return this._data.$$state }, function () {
  13409. if ((true)) {
  13410. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  13411. }
  13412. }, { deep: true, sync: true });
  13413. }
  13414. function getNestedState (state, path) {
  13415. return path.reduce(function (state, key) { return state[key]; }, state)
  13416. }
  13417. function unifyObjectStyle (type, payload, options) {
  13418. if (isObject(type) && type.type) {
  13419. options = payload;
  13420. payload = type;
  13421. type = type.type;
  13422. }
  13423. if ((true)) {
  13424. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  13425. }
  13426. return { type: type, payload: payload, options: options }
  13427. }
  13428. function install (_Vue) {
  13429. if (Vue && _Vue === Vue) {
  13430. if ((true)) {
  13431. console.error(
  13432. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  13433. );
  13434. }
  13435. return
  13436. }
  13437. Vue = _Vue;
  13438. applyMixin(Vue);
  13439. }
  13440. /**
  13441. * Reduce the code which written in Vue.js for getting the state.
  13442. * @param {String} [namespace] - Module's namespace
  13443. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  13444. * @param {Object}
  13445. */
  13446. var mapState = normalizeNamespace(function (namespace, states) {
  13447. var res = {};
  13448. if (( true) && !isValidMap(states)) {
  13449. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  13450. }
  13451. normalizeMap(states).forEach(function (ref) {
  13452. var key = ref.key;
  13453. var val = ref.val;
  13454. res[key] = function mappedState () {
  13455. var state = this.$store.state;
  13456. var getters = this.$store.getters;
  13457. if (namespace) {
  13458. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  13459. if (!module) {
  13460. return
  13461. }
  13462. state = module.context.state;
  13463. getters = module.context.getters;
  13464. }
  13465. return typeof val === 'function'
  13466. ? val.call(this, state, getters)
  13467. : state[val]
  13468. };
  13469. // mark vuex getter for devtools
  13470. res[key].vuex = true;
  13471. });
  13472. return res
  13473. });
  13474. /**
  13475. * Reduce the code which written in Vue.js for committing the mutation
  13476. * @param {String} [namespace] - Module's namespace
  13477. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  13478. * @return {Object}
  13479. */
  13480. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  13481. var res = {};
  13482. if (( true) && !isValidMap(mutations)) {
  13483. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  13484. }
  13485. normalizeMap(mutations).forEach(function (ref) {
  13486. var key = ref.key;
  13487. var val = ref.val;
  13488. res[key] = function mappedMutation () {
  13489. var args = [], len = arguments.length;
  13490. while ( len-- ) args[ len ] = arguments[ len ];
  13491. // Get the commit method from store
  13492. var commit = this.$store.commit;
  13493. if (namespace) {
  13494. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  13495. if (!module) {
  13496. return
  13497. }
  13498. commit = module.context.commit;
  13499. }
  13500. return typeof val === 'function'
  13501. ? val.apply(this, [commit].concat(args))
  13502. : commit.apply(this.$store, [val].concat(args))
  13503. };
  13504. });
  13505. return res
  13506. });
  13507. /**
  13508. * Reduce the code which written in Vue.js for getting the getters
  13509. * @param {String} [namespace] - Module's namespace
  13510. * @param {Object|Array} getters
  13511. * @return {Object}
  13512. */
  13513. var mapGetters = normalizeNamespace(function (namespace, getters) {
  13514. var res = {};
  13515. if (( true) && !isValidMap(getters)) {
  13516. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  13517. }
  13518. normalizeMap(getters).forEach(function (ref) {
  13519. var key = ref.key;
  13520. var val = ref.val;
  13521. // The namespace has been mutated by normalizeNamespace
  13522. val = namespace + val;
  13523. res[key] = function mappedGetter () {
  13524. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  13525. return
  13526. }
  13527. if (( true) && !(val in this.$store.getters)) {
  13528. console.error(("[vuex] unknown getter: " + val));
  13529. return
  13530. }
  13531. return this.$store.getters[val]
  13532. };
  13533. // mark vuex getter for devtools
  13534. res[key].vuex = true;
  13535. });
  13536. return res
  13537. });
  13538. /**
  13539. * Reduce the code which written in Vue.js for dispatch the action
  13540. * @param {String} [namespace] - Module's namespace
  13541. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  13542. * @return {Object}
  13543. */
  13544. var mapActions = normalizeNamespace(function (namespace, actions) {
  13545. var res = {};
  13546. if (( true) && !isValidMap(actions)) {
  13547. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  13548. }
  13549. normalizeMap(actions).forEach(function (ref) {
  13550. var key = ref.key;
  13551. var val = ref.val;
  13552. res[key] = function mappedAction () {
  13553. var args = [], len = arguments.length;
  13554. while ( len-- ) args[ len ] = arguments[ len ];
  13555. // get dispatch function from store
  13556. var dispatch = this.$store.dispatch;
  13557. if (namespace) {
  13558. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  13559. if (!module) {
  13560. return
  13561. }
  13562. dispatch = module.context.dispatch;
  13563. }
  13564. return typeof val === 'function'
  13565. ? val.apply(this, [dispatch].concat(args))
  13566. : dispatch.apply(this.$store, [val].concat(args))
  13567. };
  13568. });
  13569. return res
  13570. });
  13571. /**
  13572. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  13573. * @param {String} namespace
  13574. * @return {Object}
  13575. */
  13576. var createNamespacedHelpers = function (namespace) { return ({
  13577. mapState: mapState.bind(null, namespace),
  13578. mapGetters: mapGetters.bind(null, namespace),
  13579. mapMutations: mapMutations.bind(null, namespace),
  13580. mapActions: mapActions.bind(null, namespace)
  13581. }); };
  13582. /**
  13583. * Normalize the map
  13584. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  13585. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  13586. * @param {Array|Object} map
  13587. * @return {Object}
  13588. */
  13589. function normalizeMap (map) {
  13590. if (!isValidMap(map)) {
  13591. return []
  13592. }
  13593. return Array.isArray(map)
  13594. ? map.map(function (key) { return ({ key: key, val: key }); })
  13595. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  13596. }
  13597. /**
  13598. * Validate whether given map is valid or not
  13599. * @param {*} map
  13600. * @return {Boolean}
  13601. */
  13602. function isValidMap (map) {
  13603. return Array.isArray(map) || isObject(map)
  13604. }
  13605. /**
  13606. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  13607. * @param {Function} fn
  13608. * @return {Function}
  13609. */
  13610. function normalizeNamespace (fn) {
  13611. return function (namespace, map) {
  13612. if (typeof namespace !== 'string') {
  13613. map = namespace;
  13614. namespace = '';
  13615. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  13616. namespace += '/';
  13617. }
  13618. return fn(namespace, map)
  13619. }
  13620. }
  13621. /**
  13622. * Search a special module from store by namespace. if module not exist, print error message.
  13623. * @param {Object} store
  13624. * @param {String} helper
  13625. * @param {String} namespace
  13626. * @return {Object}
  13627. */
  13628. function getModuleByNamespace (store, helper, namespace) {
  13629. var module = store._modulesNamespaceMap[namespace];
  13630. if (( true) && !module) {
  13631. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  13632. }
  13633. return module
  13634. }
  13635. // Credits: borrowed code from fcomb/redux-logger
  13636. function createLogger (ref) {
  13637. if ( ref === void 0 ) ref = {};
  13638. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  13639. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  13640. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  13641. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  13642. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  13643. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  13644. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  13645. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  13646. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  13647. return function (store) {
  13648. var prevState = deepCopy(store.state);
  13649. if (typeof logger === 'undefined') {
  13650. return
  13651. }
  13652. if (logMutations) {
  13653. store.subscribe(function (mutation, state) {
  13654. var nextState = deepCopy(state);
  13655. if (filter(mutation, prevState, nextState)) {
  13656. var formattedTime = getFormattedTime();
  13657. var formattedMutation = mutationTransformer(mutation);
  13658. var message = "mutation " + (mutation.type) + formattedTime;
  13659. startMessage(logger, message, collapsed);
  13660. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  13661. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  13662. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  13663. endMessage(logger);
  13664. }
  13665. prevState = nextState;
  13666. });
  13667. }
  13668. if (logActions) {
  13669. store.subscribeAction(function (action, state) {
  13670. if (actionFilter(action, state)) {
  13671. var formattedTime = getFormattedTime();
  13672. var formattedAction = actionTransformer(action);
  13673. var message = "action " + (action.type) + formattedTime;
  13674. startMessage(logger, message, collapsed);
  13675. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  13676. endMessage(logger);
  13677. }
  13678. });
  13679. }
  13680. }
  13681. }
  13682. function startMessage (logger, message, collapsed) {
  13683. var startMessage = collapsed
  13684. ? logger.groupCollapsed
  13685. : logger.group;
  13686. // render
  13687. try {
  13688. startMessage.call(logger, message);
  13689. } catch (e) {
  13690. logger.log(message);
  13691. }
  13692. }
  13693. function endMessage (logger) {
  13694. try {
  13695. logger.groupEnd();
  13696. } catch (e) {
  13697. logger.log('—— log end ——');
  13698. }
  13699. }
  13700. function getFormattedTime () {
  13701. var time = new Date();
  13702. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  13703. }
  13704. function repeat (str, times) {
  13705. return (new Array(times + 1)).join(str)
  13706. }
  13707. function pad (num, maxLength) {
  13708. return repeat('0', maxLength - num.toString().length) + num
  13709. }
  13710. var index_cjs = {
  13711. Store: Store,
  13712. install: install,
  13713. version: '3.6.2',
  13714. mapState: mapState,
  13715. mapMutations: mapMutations,
  13716. mapGetters: mapGetters,
  13717. mapActions: mapActions,
  13718. createNamespacedHelpers: createNamespacedHelpers,
  13719. createLogger: createLogger
  13720. };
  13721. module.exports = index_cjs;
  13722. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  13723. /***/ }),
  13724. /***/ 70:
  13725. /*!*************************************************!*\
  13726. !*** D:/2022/7/hqshop/static/tabBar/tab-my.png ***!
  13727. \*************************************************/
  13728. /*! no static exports found */
  13729. /***/ (function(module, exports) {
  13730. module.exports = "data:image/png;base64,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"
  13731. /***/ }),
  13732. /***/ 71:
  13733. /*!*********************************************************!*\
  13734. !*** D:/2022/7/hqshop/static/tabBar/tab-my-current.png ***!
  13735. \*********************************************************/
  13736. /*! no static exports found */
  13737. /***/ (function(module, exports) {
  13738. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAsCAYAAAATmipGAAAAAXNSR0IArs4c6QAACbFJREFUWEfFWXlwVeUV//2++97Le4FAArKI4wKduhSrnWE6IyLwwpJgYlgSXq0LdaxSnFEZpcOoWBGhVelYoAKOMHVERIFmAkjESNhelaW2zTitg1VaK2AVJIQkJiRvuff7dW5YBhGyov3+vd855/ed/ZxLdOEMKSrK7ObyqiCDIwDmCriKQh9RIYL1kA4JeA/Ebmu9PQ3Vn31eVVWV7oxIdobIp4kWxPob2cmgphBmEKAsgBln8bMCjlNqFPhXCKtswt0Sj2+o66jcDgONRqOBYGbvH1nwQQiFgnr5Qkk0A0gIaBbpUQhRiIAIA/Af4AE4LGlVwAsuraxc81lHwHYIqA/ShPsU0egpAFcBCAFoElQF4G+k9ipt/ukGvVrHMwONwdUQB8MoCvEyAAEJjRDKky4f3bW19GB7wbYfaCzm5DYoSoMlPAHSpz0s2fWu0eJQsuGLQzk5zXtLS1MnhXPo0Fg4M9PNtOHADcZiGmiHA8wW0ABoacC1Cysr1x9pD9h2Ax1TOOkai8BiWI0iIQH7YDW3WY2b92zefKw1YbFYzKlu9C425J0UpgvoT7JGsL+3Tc6ieLy0sS2w7QI6dGgs0i0HDwj6laQsEv+W7H31Rw6+25Eojk6cmM2UM9WIj4DoLeFjufaeHVvW7Qag1sC2C+iIvAmXBgOBVwCOFHBEtPPCtvmlioqKZFuaOPv78Pzii0MOF0osBuECWl6fMk9WbS2t7xJQP4CY2bvYCIsB9gD1WrNrZ+1up2+dQzijBZMKHZjlAPsL+sg6qeJ4eflHXQQ6MdtEAnMJTJWfgqRH6o/sX9ERk58NYNQtsUtgtRrSTQCOCZxx5CDX7N17OhC/gblN0/uJ3YFWShpD8JCFd/uOivV/6qjJz7w/ND+/V8TJeo7AHYBciosbcPzp9yoqvjof3zaBnvTPcoDXCdprrVcUf3vD/q4A9UtvTjp0v8jHQUQgrUbK/nLbtvU1nQYaHTfxCsc4WwEOhLQFqfRd27Zt/LIrQP10dazRmwSapQB6C3gjLd73bkVpdaeBntBocBOAa32NArpl+1vrDnQFaEu6y9Y0AXNEhCAsM2nO2dpK5Ldp+pZ0YszrIEYC+MLK3Lqj4o+7ugI0Gp2YHcgMPCPobqClR5jjNWUti8dXJDqt0ZsKb88JITWf0s8gHk9CM5uP7H/Vj3rFYg4yM6+A5w1CMvkpqqv3Mx53TwnTlCnd4EQGwbrdAXcfVq48RkB+1NPTKkEjSb8MY9r2ijLfarbTQFvyaEbvYhouIdXDSmuPJVOz/r79zc91220XISOyCLKjYPUJZF5AEDshpeEFIjBeCRwzFZ4XBLEMnreEryYSw/JtSdjh85L6ktrqCT+PV6z7b5fyqE+clzfhUtcJrCZ5I6Dar6SltWh+7l85OQ4ikd9C9k7YFl87Cmo//KYZ6AvgcgDZMKYeDhZU1321oLDW9s0I8sUwMVpQgwV+k6g1S/bsKfVd4LynTR/1KX3nD/e095F8nERvCxxstnwwXZ1TUXlt8soInUcixARQPU4az6/bhKGFdDRJvuIBi3IP1CYDQTMrTE4DlEmjXWnoF+9sWu9Xpa7Xeh/ssLHjB2QEg88SvJVAwAU/duHOqG0K7Lw3IyNrSv/gPVkOCkIyl4B0QCU9aN+RtMrWNDeue7E6YfqGM34SMJjtAP0EHAX0hG2qWRGPx88bRKdU3C6Nnro8elxsqKh5JIZDCoo40GT5kkmFXv2KjYn8jED4qb49cjIyTKQujWOP1dUd/0ujUpkBM9AI94TBCYT6iGykuBqp5Oz25uQOAfUTdU0jRhL6Nagf+x07xXoPeD8lvZ+WPgzQ2Ztwm+oyQ6HLXWuucQwGZ4DDDDRQYFBAPSzKbCLjqXj8tVYD6EyHbTfQaDTWPRxOX+SSI0QzCeIIEC3zkiARTFggkRCarGzaEJEITMQQYZ0YWfyTJLHTWrPW9bTVpNK18fgGP/Ba9U+fsE2geXl53TyT9T0QE0UUUBgoIkIgAjBwEsBZ+c9n+zXZ5ox7/szUKLIa0jvWaKOLRNXOTZtqOxX1vpm/rHcGBAKpuwBOBjiIQHcJLglfCw2+QAA1fpqhaH21fs1cLaqWIZjl13QQ3QFkSehJwneDZkpHQa5P03mxX6bdV1pa6k+r3zjn1Gg0Gg0z3CvPkHeDzAXQ0zebgGpAcRKbPdf82SqVFB03Ip2T+SlpzaRDeQHDUIYTsDdAyBcYJdDn5CjdJGEnoCW2uWbLubLAN4AOGTIkmN338mLQzAM0EKADqZrAm6ItTSlQ1XTkP3WdbZx9/pl9B2WH6A6hTExk4cniYAF9YoX5NV7D2n9UVh5vJZjmmNxxH4wlMJ+G17csDYQPSW+h67jl8fJyf9o8bz3uYKNiokVFvYyXUUTgYQA/AOD78kHP2nnJeuf1M6vV1zQ6elzJdSQWCMxtGbyE3ZA363BWoOqMeb2DeFq/PjgWC/VvcIeAztMgbjyx1NAn1mL6jrfLKk5F5WmgY8eOHwAnMFc0dwiixI3Wana8smzfBdTi+VCbaF7JlcZwLo3GA3Agrk1ZO/PdzesOnU5Pfo40Ye8h0Mwg0VPCZutpRryyrNXJ8IKq1l+85ZVcbRwuIP1gQw2tfSLE5hX+WO5rlLn5k66jY14heL2Aw7R4uFcWS8+XKi40wFP8WkaUBsVksBBSP4BbkunE1F1b3zzIYcPGZ4V7hB4SMRNq2byVMZh6aNvGrs1FnX3M6PHj+ykdWgSghECDFZ5I1PNljiksGWSFlyEMB1lD8QGvubosfkan3lmhnaHzG3Un0qdElL+M62UtKlNuYhpzx5UU0HAZpEsIfuDJndDVcbgzAM+kaZl8GXhD0A9BfObB3svRBcWPCWYmgW4Q1gQsH968ubTV7VxXgbRFn58f6+UaLQTxU39jDXnzOaqwZDktbwfhCXqm3kk9X1Ve3tQWs2/zu7+g6OmFphN8DIIjo9c5+ubidSALTnQ0evTLA87K1nZA3ybAU7wHD46F+l1m7yLwLIhukt5ibkHJFgNEBdYBmr79rbK130GCb+u9JnpzcbGheYFQjqR3OPrmyatEFBOwgpYjYX5nbUsb9/87WYmwcYN3gmY2hO4ktnFU4eQHCTwpq15saeOwwRp83lK2/Mb9OzwiW7ptIw6QVEjyYsj/06I/cMQtJd8PWC6hMOyEPyABolM/rS7Umyj4C4swhOOiqizt/b7GzE1jSq4IBjnNELfqRJPsXCihneHDE/+k6q2wlnCXb6/Y8Olp00aLii4KeBnDPGIILbI7I+BC0cigzhGqXCe5K15eftTn+z8OVZFDjRH+TgAAAABJRU5ErkJggg=="
  13739. /***/ }),
  13740. /***/ 72:
  13741. /*!***************************************************!*\
  13742. !*** D:/2022/7/hqshop/static/tabBar/tab-cate.png ***!
  13743. \***************************************************/
  13744. /*! no static exports found */
  13745. /***/ (function(module, exports) {
  13746. module.exports = "data:image/png;base64,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"
  13747. /***/ }),
  13748. /***/ 73:
  13749. /*!***********************************************************!*\
  13750. !*** D:/2022/7/hqshop/static/tabBar/tab-cate-current.png ***!
  13751. \***********************************************************/
  13752. /*! no static exports found */
  13753. /***/ (function(module, exports) {
  13754. module.exports = "data:image/png;base64,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"
  13755. /***/ }),
  13756. /***/ 74:
  13757. /*!***************************************************!*\
  13758. !*** D:/2022/7/hqshop/static/tabBar/tab-pink.png ***!
  13759. \***************************************************/
  13760. /*! no static exports found */
  13761. /***/ (function(module, exports) {
  13762. module.exports = "data:image/png;base64,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"
  13763. /***/ }),
  13764. /***/ 742:
  13765. /*!******************************************************************!*\
  13766. !*** D:/2022/7/hqshop/components/wangding-pickerAddress/data.js ***!
  13767. \******************************************************************/
  13768. /*! no static exports found */
  13769. /***/ (function(module, exports, __webpack_require__) {
  13770. "use strict";
  13771. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = [
  13772. {
  13773. "name": "北京市",
  13774. "city": [
  13775. {
  13776. "name": "北京市",
  13777. "area": [
  13778. "东城区",
  13779. "西城区",
  13780. "崇文区",
  13781. "宣武区",
  13782. "朝阳区",
  13783. "丰台区",
  13784. "石景山区",
  13785. "海淀区",
  13786. "门头沟区",
  13787. "房山区",
  13788. "通州区",
  13789. "顺义区",
  13790. "昌平区",
  13791. "大兴区",
  13792. "平谷区",
  13793. "怀柔区",
  13794. "密云县",
  13795. "延庆县"] }] },
  13796. {
  13797. "name": "天津市",
  13798. "city": [
  13799. {
  13800. "name": "天津市",
  13801. "area": [
  13802. "和平区",
  13803. "河东区",
  13804. "河西区",
  13805. "南开区",
  13806. "河北区",
  13807. "红桥区",
  13808. "塘沽区",
  13809. "汉沽区",
  13810. "大港区",
  13811. "东丽区",
  13812. "西青区",
  13813. "津南区",
  13814. "北辰区",
  13815. "武清区",
  13816. "宝坻区",
  13817. "宁河县",
  13818. "静海县",
  13819. "蓟 县"] }] },
  13820. {
  13821. "name": "河北省",
  13822. "city": [
  13823. {
  13824. "name": "石家庄市",
  13825. "area": [
  13826. "长安区",
  13827. "桥东区",
  13828. "桥西区",
  13829. "新华区",
  13830. "郊 区",
  13831. "井陉矿区",
  13832. "井陉县",
  13833. "正定县",
  13834. "栾城县",
  13835. "行唐县",
  13836. "灵寿县",
  13837. "高邑县",
  13838. "深泽县",
  13839. "赞皇县",
  13840. "无极县",
  13841. "平山县",
  13842. "元氏县",
  13843. "赵 县",
  13844. "辛集市",
  13845. "藁",
  13846. "晋州市",
  13847. "新乐市",
  13848. "鹿泉市"] },
  13849. {
  13850. "name": "唐山市",
  13851. "area": [
  13852. "路南区",
  13853. "路北区",
  13854. "古冶区",
  13855. "开平区",
  13856. "新 区",
  13857. "丰润县",
  13858. "滦 县",
  13859. "滦南县",
  13860. "乐亭县",
  13861. "迁西县",
  13862. "玉田县",
  13863. "唐海县",
  13864. "遵化市",
  13865. "丰南市",
  13866. "迁安市"] },
  13867. {
  13868. "name": "秦皇岛市",
  13869. "area": [
  13870. "海港区",
  13871. "山海关区",
  13872. "北戴河区",
  13873. "青龙满族自治县",
  13874. "昌黎县",
  13875. "抚宁县",
  13876. "卢龙县"] },
  13877. {
  13878. "name": "邯郸市",
  13879. "area": [
  13880. "邯山区",
  13881. "丛台区",
  13882. "复兴区",
  13883. "峰峰矿区",
  13884. "邯郸县",
  13885. "临漳县",
  13886. "成安县",
  13887. "大名县",
  13888. "涉 县",
  13889. "磁 县",
  13890. "肥乡县",
  13891. "永年县",
  13892. "邱 县",
  13893. "鸡泽县",
  13894. "广平县",
  13895. "馆陶县",
  13896. "魏 县",
  13897. "曲周县",
  13898. "武安市"] },
  13899. {
  13900. "name": "邢台市",
  13901. "area": [
  13902. "桥东区",
  13903. "桥西区",
  13904. "邢台县",
  13905. "临城县",
  13906. "内丘县",
  13907. "柏乡县",
  13908. "隆尧县",
  13909. "任 县",
  13910. "南和县",
  13911. "宁晋县",
  13912. "巨鹿县",
  13913. "新河县",
  13914. "广宗县",
  13915. "平乡县",
  13916. "威 县",
  13917. "清河县",
  13918. "临西县",
  13919. "南宫市",
  13920. "沙河市"] },
  13921. {
  13922. "name": "保定市",
  13923. "area": [
  13924. "新市区",
  13925. "北市区",
  13926. "南市区",
  13927. "满城县",
  13928. "清苑县",
  13929. "涞水县",
  13930. "阜平县",
  13931. "徐水县",
  13932. "定兴县",
  13933. "唐 县",
  13934. "高阳县",
  13935. "容城县",
  13936. "涞源县",
  13937. "望都县",
  13938. "安新县",
  13939. "易 县",
  13940. "曲阳县",
  13941. "蠡 县",
  13942. "顺平县",
  13943. "博野",
  13944. "雄县",
  13945. "涿州市",
  13946. "定州市",
  13947. "安国市",
  13948. "高碑店市"] },
  13949. {
  13950. "name": "张家口",
  13951. "area": [
  13952. "桥东区",
  13953. "桥西区",
  13954. "宣化区",
  13955. "下花园区",
  13956. "宣化县",
  13957. "张北县",
  13958. "康保县",
  13959. "沽源县",
  13960. "尚义县",
  13961. "蔚 县",
  13962. "阳原县",
  13963. "怀安县",
  13964. "万全县",
  13965. "怀来县",
  13966. "涿鹿县",
  13967. "赤城县",
  13968. "崇礼县"] },
  13969. {
  13970. "name": "承德市",
  13971. "area": [
  13972. "双桥区",
  13973. "双滦区",
  13974. "鹰手营子矿区",
  13975. "承德县",
  13976. "兴隆县",
  13977. "平泉县",
  13978. "滦平县",
  13979. "隆化县",
  13980. "丰宁满族自治县",
  13981. "宽城满族自治县",
  13982. "围场满族蒙古族自治县"] },
  13983. {
  13984. "name": "沧州市",
  13985. "area": [
  13986. "新华区",
  13987. "运河区",
  13988. "沧 县",
  13989. "青 县",
  13990. "东光县",
  13991. "海兴县",
  13992. "盐山县",
  13993. "肃宁县",
  13994. "南皮县",
  13995. "吴桥县",
  13996. "献 县",
  13997. "孟村回族自治县",
  13998. "泊头市",
  13999. "任丘市",
  14000. "黄骅市",
  14001. "河间市"] },
  14002. {
  14003. "name": "廊坊市",
  14004. "area": [
  14005. "安次区",
  14006. "固安县",
  14007. "永清县",
  14008. "香河县",
  14009. "大城县",
  14010. "文安县",
  14011. "大厂回族自治县",
  14012. "霸州市",
  14013. "三河市"] },
  14014. {
  14015. "name": "衡水市",
  14016. "area": [
  14017. "桃城区",
  14018. "枣强县",
  14019. "武邑县",
  14020. "武强县",
  14021. "饶阳县",
  14022. "安平县",
  14023. "故城县",
  14024. "景 县",
  14025. "阜城县",
  14026. "冀州市",
  14027. "深州市"] }] },
  14028. {
  14029. "name": "山西省",
  14030. "city": [
  14031. {
  14032. "name": "太原市",
  14033. "area": [
  14034. "小店区",
  14035. "迎泽区",
  14036. "杏花岭区",
  14037. "尖草坪区",
  14038. "万柏林区",
  14039. "晋源区",
  14040. "清徐县",
  14041. "阳曲县",
  14042. "娄烦县",
  14043. "古交市"] },
  14044. {
  14045. "name": "大同市",
  14046. "area": [
  14047. "城 区",
  14048. "矿 区",
  14049. "南郊区",
  14050. "新荣区",
  14051. "阳高县",
  14052. "天镇县",
  14053. "广灵县",
  14054. "灵丘县",
  14055. "浑源县",
  14056. "左云县",
  14057. "大同县"] },
  14058. {
  14059. "name": "阳泉市",
  14060. "area": [
  14061. "城 区",
  14062. "矿 区",
  14063. "郊 区",
  14064. "平定县",
  14065. "盂 县"] },
  14066. {
  14067. "name": "长治市",
  14068. "area": [
  14069. "城 区",
  14070. "郊 区",
  14071. "长治县",
  14072. "襄垣县",
  14073. "屯留县",
  14074. "平顺县",
  14075. "黎城县",
  14076. "壶关县",
  14077. "长子县",
  14078. "武乡县",
  14079. "沁 县",
  14080. "沁源县",
  14081. "潞城市"] },
  14082. {
  14083. "name": "晋城市",
  14084. "area": [
  14085. "城 区",
  14086. "沁水县",
  14087. "阳城县",
  14088. "陵川县",
  14089. "泽州县",
  14090. "高平市"] },
  14091. {
  14092. "name": "朔州市",
  14093. "area": [
  14094. "朔城区",
  14095. "平鲁区",
  14096. "山阴县",
  14097. "应 县",
  14098. "右玉县",
  14099. "怀仁县"] },
  14100. {
  14101. "name": "忻州市",
  14102. "area": [
  14103. "忻府区",
  14104. "原平市",
  14105. "定襄县",
  14106. "五台县",
  14107. "代 县",
  14108. "繁峙县",
  14109. "宁武县",
  14110. "静乐县",
  14111. "神池县",
  14112. "五寨县",
  14113. "岢岚县",
  14114. "河曲县",
  14115. "保德县",
  14116. "偏关县"] },
  14117. {
  14118. "name": "吕梁市",
  14119. "area": [
  14120. "离石区",
  14121. "孝义市",
  14122. "汾阳市",
  14123. "文水县",
  14124. "交城县",
  14125. "兴 县",
  14126. "临 县",
  14127. "柳林县",
  14128. "石楼县",
  14129. "岚 县",
  14130. "方山县",
  14131. "中阳县",
  14132. "交口县"] },
  14133. {
  14134. "name": "晋中市",
  14135. "area": [
  14136. "榆次市",
  14137. "介休市",
  14138. "榆社县",
  14139. "左权县",
  14140. "和顺县",
  14141. "昔阳县",
  14142. "寿阳县",
  14143. "太谷县",
  14144. "祁 县",
  14145. "平遥县",
  14146. "灵石县"] },
  14147. {
  14148. "name": "临汾市",
  14149. "area": [
  14150. "临汾市",
  14151. "侯马市",
  14152. "霍州市",
  14153. "曲沃县",
  14154. "翼城县",
  14155. "襄汾县",
  14156. "洪洞县",
  14157. "古 县",
  14158. "安泽县",
  14159. "浮山县",
  14160. "吉 县",
  14161. "乡宁县",
  14162. "蒲 县",
  14163. "大宁县",
  14164. "永和县",
  14165. "隰 县",
  14166. "汾西县"] },
  14167. {
  14168. "name": "运城市",
  14169. "area": [
  14170. "运城市",
  14171. "永济市",
  14172. "河津市",
  14173. "芮城县",
  14174. "临猗县",
  14175. "万荣县",
  14176. "新绛县",
  14177. "稷山县",
  14178. "闻喜县",
  14179. "夏 县",
  14180. "绛 县",
  14181. "平陆县",
  14182. "垣曲县"] }] },
  14183. {
  14184. "name": "内蒙古",
  14185. "city": [
  14186. {
  14187. "name": "呼和浩特市",
  14188. "area": [
  14189. "新城区",
  14190. "回民区",
  14191. "玉泉区",
  14192. "郊 区",
  14193. "土默特左旗",
  14194. "托克托县",
  14195. "和林格尔县",
  14196. "清水河县",
  14197. "武川县"] },
  14198. {
  14199. "name": "包头市",
  14200. "area": [
  14201. "东河区",
  14202. "昆都伦区",
  14203. "青山区",
  14204. "石拐矿区",
  14205. "白云矿区",
  14206. "郊 区",
  14207. "土默特右旗",
  14208. "固阳县",
  14209. "达尔罕茂明安联合旗"] },
  14210. {
  14211. "name": "乌海市",
  14212. "area": [
  14213. "海勃湾区",
  14214. "海南区",
  14215. "乌达区"] },
  14216. {
  14217. "name": "赤峰市",
  14218. "area": [
  14219. "红山区",
  14220. "元宝山区",
  14221. "松山区",
  14222. "阿鲁科尔沁旗",
  14223. "巴林左旗",
  14224. "巴林右旗",
  14225. "林西县",
  14226. "克什克腾旗",
  14227. "翁牛特旗",
  14228. "喀喇沁旗",
  14229. "宁城县",
  14230. "敖汉旗"] },
  14231. {
  14232. "name": "呼伦贝尔市",
  14233. "area": [
  14234. "海拉尔市",
  14235. "满洲里市",
  14236. "扎兰屯市",
  14237. "牙克石市",
  14238. "根河市",
  14239. "额尔古纳市",
  14240. "阿荣旗",
  14241. "莫力达瓦达斡尔族自治旗",
  14242. "鄂伦春自治旗",
  14243. "鄂温克族自治旗",
  14244. "新巴尔虎右旗",
  14245. "新巴尔虎左旗",
  14246. "陈巴尔虎旗"] },
  14247. {
  14248. "name": "兴安盟",
  14249. "area": [
  14250. "乌兰浩特市",
  14251. "阿尔山市",
  14252. "科尔沁右翼前旗",
  14253. "科尔沁右翼中旗",
  14254. "扎赉特旗",
  14255. "突泉县"] },
  14256. {
  14257. "name": "通辽市",
  14258. "area": [
  14259. "科尔沁区",
  14260. "霍林郭勒市",
  14261. "科尔沁左翼中旗",
  14262. "科尔沁左翼后旗",
  14263. "开鲁县",
  14264. "库伦旗",
  14265. "奈曼旗",
  14266. "扎鲁特旗"] },
  14267. {
  14268. "name": "锡林郭勒盟",
  14269. "area": [
  14270. "二连浩特市",
  14271. "锡林浩特市",
  14272. "阿巴嘎旗",
  14273. "苏尼特左旗",
  14274. "苏尼特右旗",
  14275. "东乌珠穆沁旗",
  14276. "西乌珠穆沁旗",
  14277. "太仆寺旗",
  14278. "镶黄旗",
  14279. "正镶白旗",
  14280. "正蓝旗",
  14281. "多伦县"] },
  14282. {
  14283. "name": "乌兰察布盟",
  14284. "area": [
  14285. "集宁市",
  14286. "丰镇市",
  14287. "卓资县",
  14288. "化德县",
  14289. "商都县",
  14290. "兴和县",
  14291. "凉城县",
  14292. "察哈尔右翼前旗",
  14293. "察哈尔右翼中旗",
  14294. "察哈尔右翼后旗",
  14295. "四子王旗"] },
  14296. {
  14297. "name": "伊克昭盟",
  14298. "area": [
  14299. "东胜市",
  14300. "达拉特旗",
  14301. "准格尔旗",
  14302. "鄂托克前旗",
  14303. "鄂托克旗",
  14304. "杭锦旗",
  14305. "乌审旗",
  14306. "伊金霍洛旗"] },
  14307. {
  14308. "name": "巴彦淖尔盟",
  14309. "area": [
  14310. "临河市",
  14311. "五原县",
  14312. "磴口县",
  14313. "乌拉特前旗",
  14314. "乌拉特中旗",
  14315. "乌拉特后旗",
  14316. "杭锦后旗"] },
  14317. {
  14318. "name": "阿拉善盟",
  14319. "area": [
  14320. "阿拉善左旗",
  14321. "阿拉善右旗",
  14322. "额济纳旗"] }] },
  14323. {
  14324. "name": "辽宁省",
  14325. "city": [
  14326. {
  14327. "name": "沈阳市",
  14328. "area": [
  14329. "沈河区",
  14330. "皇姑区",
  14331. "和平区",
  14332. "大东区",
  14333. "铁西区",
  14334. "苏家屯区",
  14335. "东陵区",
  14336. "于洪区",
  14337. "新民市",
  14338. "法库县",
  14339. "辽中县",
  14340. "康平县",
  14341. "新城子区"] },
  14342. {
  14343. "name": "大连市",
  14344. "area": [
  14345. "西岗区",
  14346. "中山区",
  14347. "沙河口区",
  14348. "甘井子区",
  14349. "旅顺口区",
  14350. "金州区",
  14351. "瓦房店市",
  14352. "普兰店市",
  14353. "庄河市",
  14354. "长海县"] },
  14355. {
  14356. "name": "鞍山市",
  14357. "area": [
  14358. "铁东区",
  14359. "铁西区",
  14360. "立山区",
  14361. "千山区",
  14362. "海城市",
  14363. "台安县",
  14364. "岫岩满族自治县"] },
  14365. {
  14366. "name": "抚顺市",
  14367. "area": [
  14368. "顺城区",
  14369. "新抚区",
  14370. "东洲区",
  14371. "望花区",
  14372. "抚顺县",
  14373. "清原满族自治县",
  14374. "新宾满族自治县"] },
  14375. {
  14376. "name": "本溪市",
  14377. "area": [
  14378. "平山区",
  14379. "明山区",
  14380. "溪湖区",
  14381. "南芬区",
  14382. "本溪满族自治县",
  14383. "桓仁满族自治县"] },
  14384. {
  14385. "name": "丹东市",
  14386. "area": [
  14387. "振兴区",
  14388. "元宝区",
  14389. "振安区",
  14390. "东港市",
  14391. "凤城市",
  14392. "宽甸满族自治县"] },
  14393. {
  14394. "name": "锦州市",
  14395. "area": [
  14396. "太和区",
  14397. "古塔区",
  14398. "凌河区",
  14399. "凌海市",
  14400. "黑山县",
  14401. "义县",
  14402. "北宁市"] },
  14403. {
  14404. "name": "营口市",
  14405. "area": [
  14406. "站前区",
  14407. "西市区",
  14408. "鲅鱼圈区",
  14409. "老边区",
  14410. "大石桥市",
  14411. "盖州市"] },
  14412. {
  14413. "name": "阜新市",
  14414. "area": [
  14415. "海州区",
  14416. "新邱区",
  14417. "太平区",
  14418. "清河门区",
  14419. "细河区",
  14420. "彰武县",
  14421. "阜新蒙古族自治县"] },
  14422. {
  14423. "name": "辽阳市",
  14424. "area": [
  14425. "白塔区",
  14426. "文圣区",
  14427. "宏伟区",
  14428. "太子河区",
  14429. "弓长岭区",
  14430. "灯塔市",
  14431. "辽阳县"] },
  14432. {
  14433. "name": "盘锦",
  14434. "area": [
  14435. "双台子区",
  14436. "兴隆台区",
  14437. "盘山县",
  14438. "大洼县"] },
  14439. {
  14440. "name": "铁岭市",
  14441. "area": [
  14442. "银州区",
  14443. "清河区",
  14444. "调兵山市",
  14445. "开原市",
  14446. "铁岭县",
  14447. "昌图县",
  14448. "西丰县"] },
  14449. {
  14450. "name": "朝阳市",
  14451. "area": [
  14452. "双塔区",
  14453. "龙城区",
  14454. "凌源市",
  14455. "北票市",
  14456. "朝阳县",
  14457. "建平县",
  14458. "喀喇沁左翼蒙古族自治县"] },
  14459. {
  14460. "name": "葫芦岛市",
  14461. "area": [
  14462. "龙港区",
  14463. "南票区",
  14464. "连山区",
  14465. "兴城市",
  14466. "绥中县",
  14467. "建昌县"] }] },
  14468. {
  14469. "name": "吉林省",
  14470. "city": [
  14471. {
  14472. "name": "长春市",
  14473. "area": [
  14474. "朝阳区",
  14475. "宽城区",
  14476. "二道区",
  14477. "南关区",
  14478. "绿园区",
  14479. "双阳区",
  14480. "九台市",
  14481. "榆树市",
  14482. "德惠市",
  14483. "农安县"] },
  14484. {
  14485. "name": "吉林市",
  14486. "area": [
  14487. "船营区",
  14488. "昌邑区",
  14489. "龙潭区",
  14490. "丰满区",
  14491. "舒兰市",
  14492. "桦甸市",
  14493. "蛟河市",
  14494. "磐石市",
  14495. "永吉县"] },
  14496. {
  14497. "name": "四平",
  14498. "area": [
  14499. "铁西区",
  14500. "铁东区",
  14501. "公主岭市",
  14502. "双辽市",
  14503. "梨树县",
  14504. "伊通满族自治县"] },
  14505. {
  14506. "name": "辽源市",
  14507. "area": [
  14508. "龙山区",
  14509. "西安区",
  14510. "东辽县",
  14511. "东丰县"] },
  14512. {
  14513. "name": "通化市",
  14514. "area": [
  14515. "东昌区",
  14516. "二道江区",
  14517. "梅河口市",
  14518. "集安市",
  14519. "通化县",
  14520. "辉南县",
  14521. "柳河县"] },
  14522. {
  14523. "name": "白山市",
  14524. "area": [
  14525. "八道江区",
  14526. "江源区",
  14527. "临江市",
  14528. "靖宇县",
  14529. "抚松县",
  14530. "长白朝鲜族自治县"] },
  14531. {
  14532. "name": "松原市",
  14533. "area": [
  14534. "宁江区",
  14535. "乾安县",
  14536. "长岭县",
  14537. "扶余县",
  14538. "前郭尔罗斯蒙古族自治县"] },
  14539. {
  14540. "name": "白城市",
  14541. "area": [
  14542. "洮北区",
  14543. "大安市",
  14544. "洮南市",
  14545. "镇赉县",
  14546. "通榆县"] },
  14547. {
  14548. "name": "延边朝鲜族自治州",
  14549. "area": [
  14550. "延吉市",
  14551. "图们市",
  14552. "敦化市",
  14553. "龙井市",
  14554. "珲春市",
  14555. "和龙市",
  14556. "安图县",
  14557. "汪清县"] }] },
  14558. {
  14559. "name": "黑龙江省",
  14560. "city": [
  14561. {
  14562. "name": "哈尔滨市",
  14563. "area": [
  14564. "松北区",
  14565. "道里区",
  14566. "南岗区",
  14567. "平房区",
  14568. "香坊区",
  14569. "道外区",
  14570. "呼兰区",
  14571. "阿城区",
  14572. "双城市",
  14573. "尚志市",
  14574. "五常市",
  14575. "宾县",
  14576. "方正县",
  14577. "通河县",
  14578. "巴彦县",
  14579. "延寿县",
  14580. "木兰县",
  14581. "依兰县"] },
  14582. {
  14583. "name": "齐齐哈尔市",
  14584. "area": [
  14585. "龙沙区",
  14586. "昂昂溪区",
  14587. "铁锋区",
  14588. "建华区",
  14589. "富拉尔基区",
  14590. "碾子山区",
  14591. "梅里斯达斡尔族区",
  14592. "讷河市",
  14593. "富裕县",
  14594. "拜泉县",
  14595. "甘南县",
  14596. "依安县",
  14597. "克山县",
  14598. "泰来县",
  14599. "克东县",
  14600. "龙江县"] },
  14601. {
  14602. "name": "鹤岗市",
  14603. "area": [
  14604. "兴山区",
  14605. "工农区",
  14606. "南山区",
  14607. "兴安区",
  14608. "向阳区",
  14609. "东山区",
  14610. "萝北县",
  14611. "绥滨县"] },
  14612. {
  14613. "name": "双鸭山",
  14614. "area": [
  14615. "尖山区",
  14616. "岭东区",
  14617. "四方台区",
  14618. "宝山区",
  14619. "集贤县",
  14620. "宝清县",
  14621. "友谊县",
  14622. "饶河县"] },
  14623. {
  14624. "name": "鸡西市",
  14625. "area": [
  14626. "鸡冠区",
  14627. "恒山区",
  14628. "城子河区",
  14629. "滴道区",
  14630. "梨树区",
  14631. "麻山区",
  14632. "密山市",
  14633. "虎林市",
  14634. "鸡东县"] },
  14635. {
  14636. "name": "大庆市",
  14637. "area": [
  14638. "萨尔图区",
  14639. "红岗区",
  14640. "龙凤区",
  14641. "让胡路区",
  14642. "大同区",
  14643. "林甸县",
  14644. "肇州县",
  14645. "肇源县",
  14646. "杜尔伯特蒙古族自治县"] },
  14647. {
  14648. "name": "伊春市",
  14649. "area": [
  14650. "伊春区",
  14651. "带岭区",
  14652. "南岔区",
  14653. "金山屯区",
  14654. "西林区",
  14655. "美溪区",
  14656. "乌马河区",
  14657. "翠峦区",
  14658. "友好区",
  14659. "上甘岭区",
  14660. "五营区",
  14661. "红星区",
  14662. "新青区",
  14663. "汤旺河区",
  14664. "乌伊岭区",
  14665. "铁力市",
  14666. "嘉荫县"] },
  14667. {
  14668. "name": "牡丹江市",
  14669. "area": [
  14670. "爱民区",
  14671. "东安区",
  14672. "阳明区",
  14673. "西安区",
  14674. "绥芬河市",
  14675. "宁安市",
  14676. "海林市",
  14677. "穆棱市",
  14678. "林口县",
  14679. "东宁县"] },
  14680. {
  14681. "name": "佳木斯市",
  14682. "area": [
  14683. "向阳区",
  14684. "前进区",
  14685. "东风区",
  14686. "郊区",
  14687. "同江市",
  14688. "富锦市",
  14689. "桦川县",
  14690. "抚远县",
  14691. "桦南县",
  14692. "汤原县"] },
  14693. {
  14694. "name": "七台河市",
  14695. "area": [
  14696. "桃山区",
  14697. "新兴区",
  14698. "茄子河区",
  14699. "勃利县"] },
  14700. {
  14701. "name": "黑河市",
  14702. "area": [
  14703. "爱辉区",
  14704. "北安市",
  14705. "五大连池市",
  14706. "逊克县",
  14707. "嫩江县",
  14708. "孙吴县"] },
  14709. {
  14710. "name": "绥化市",
  14711. "area": [
  14712. "北林区",
  14713. "安达市",
  14714. "肇东市",
  14715. "海伦市",
  14716. "绥棱县",
  14717. "兰西县",
  14718. "明水县",
  14719. "青冈县",
  14720. "庆安县",
  14721. "望奎县"] },
  14722. {
  14723. "name": "大兴安岭地区",
  14724. "area": [
  14725. "呼玛县",
  14726. "塔河县",
  14727. "漠河县",
  14728. "大兴安岭辖区"] }] },
  14729. {
  14730. "name": "上海市",
  14731. "city": [
  14732. {
  14733. "name": "上海市",
  14734. "area": [
  14735. "黄浦区",
  14736. "卢湾区",
  14737. "徐汇区",
  14738. "长宁区",
  14739. "静安区",
  14740. "普陀区",
  14741. "闸北区",
  14742. "虹口区",
  14743. "杨浦区",
  14744. "宝山区",
  14745. "闵行区",
  14746. "嘉定区",
  14747. "松江区",
  14748. "金山区",
  14749. "青浦区",
  14750. "南汇区",
  14751. "奉贤区",
  14752. "浦东新区",
  14753. "崇明县"] }] },
  14754. {
  14755. "name": "江苏省",
  14756. "city": [
  14757. {
  14758. "name": "南京市",
  14759. "area": [
  14760. "玄武区",
  14761. "白下区",
  14762. "秦淮区",
  14763. "建邺区",
  14764. "鼓楼区",
  14765. "下关区",
  14766. "栖霞区",
  14767. "雨花台区",
  14768. "浦口区",
  14769. "江宁区",
  14770. "六合区",
  14771. "溧水县",
  14772. "高淳县"] },
  14773. {
  14774. "name": "苏州市",
  14775. "area": [
  14776. "金阊区",
  14777. "平江区",
  14778. "沧浪区",
  14779. "虎丘区",
  14780. "吴中区",
  14781. "相城区",
  14782. "常熟市",
  14783. "张家港市",
  14784. "昆山市",
  14785. "吴江市",
  14786. "太仓市"] },
  14787. {
  14788. "name": "无锡市",
  14789. "area": [
  14790. "崇安区",
  14791. "南长区",
  14792. "北塘区",
  14793. "滨湖区",
  14794. "锡山区",
  14795. "惠山区",
  14796. "江阴市",
  14797. "宜兴市"] },
  14798. {
  14799. "name": "常州市",
  14800. "area": [
  14801. "钟楼区",
  14802. "天宁区",
  14803. "戚墅堰区",
  14804. "新北区",
  14805. "武进区",
  14806. "金坛市",
  14807. "溧阳市"] },
  14808. {
  14809. "name": "镇江市",
  14810. "area": [
  14811. "京口区",
  14812. "润州区",
  14813. "丹徒区",
  14814. "丹阳市",
  14815. "扬中市",
  14816. "句容市"] },
  14817. {
  14818. "name": "南通市",
  14819. "area": [
  14820. "崇川区",
  14821. "港闸区",
  14822. "通州市",
  14823. "如皋市",
  14824. "海门市",
  14825. "启东市",
  14826. "海安县",
  14827. "如东县"] },
  14828. {
  14829. "name": "泰州市",
  14830. "area": [
  14831. "海陵区",
  14832. "高港区",
  14833. "姜堰市",
  14834. "泰兴市",
  14835. "靖江市",
  14836. "兴化市"] },
  14837. {
  14838. "name": "扬州市",
  14839. "area": [
  14840. "广陵区",
  14841. "维扬区",
  14842. "邗江区",
  14843. "江都市",
  14844. "仪征市",
  14845. "高邮市",
  14846. "宝应县"] },
  14847. {
  14848. "name": "盐城市",
  14849. "area": [
  14850. "亭湖区",
  14851. "盐都区",
  14852. "大丰市",
  14853. "东台市",
  14854. "建湖县",
  14855. "射阳县",
  14856. "阜宁县",
  14857. "滨海县",
  14858. "响水县"] },
  14859. {
  14860. "name": "连云港市",
  14861. "area": [
  14862. "新浦区",
  14863. "海州区",
  14864. "连云区",
  14865. "东海县",
  14866. "灌云县",
  14867. "赣榆县",
  14868. "灌南县"] },
  14869. {
  14870. "name": "徐州市",
  14871. "area": [
  14872. "云龙区",
  14873. "鼓楼区",
  14874. "九里区",
  14875. "泉山区",
  14876. "贾汪区",
  14877. "邳州市",
  14878. "新沂市",
  14879. "铜山县",
  14880. "睢宁县",
  14881. "沛县",
  14882. "丰县"] },
  14883. {
  14884. "name": "淮安市",
  14885. "area": [
  14886. "清河区",
  14887. "清浦区",
  14888. "楚州区",
  14889. "淮阴区",
  14890. "涟水县",
  14891. "洪泽县",
  14892. "金湖县",
  14893. "盱眙县"] },
  14894. {
  14895. "name": "宿迁市",
  14896. "area": [
  14897. "宿城区",
  14898. "宿豫区",
  14899. "沭阳县",
  14900. "泗阳县",
  14901. "泗洪县"] }] },
  14902. {
  14903. "name": "浙江省",
  14904. "city": [
  14905. {
  14906. "name": "杭州市",
  14907. "area": [
  14908. "拱墅区",
  14909. "西湖区",
  14910. "上城区",
  14911. "下城区",
  14912. "江干区",
  14913. "滨江区",
  14914. "余杭区",
  14915. "萧山区",
  14916. "建德市",
  14917. "富阳市",
  14918. "临安市",
  14919. "桐庐县",
  14920. "淳安县"] },
  14921. {
  14922. "name": "宁波市",
  14923. "area": [
  14924. "海曙区",
  14925. "江东区",
  14926. "江北区",
  14927. "镇海区",
  14928. "北仑区",
  14929. "鄞州区",
  14930. "余姚市",
  14931. "慈溪市",
  14932. "奉化市",
  14933. "宁海县",
  14934. "象山县"] },
  14935. {
  14936. "name": "温州市",
  14937. "area": [
  14938. "鹿城区",
  14939. "龙湾区",
  14940. "瓯海区",
  14941. "瑞安市",
  14942. "乐清市",
  14943. "永嘉县",
  14944. "洞头县",
  14945. "平阳县",
  14946. "苍南县",
  14947. "文成县",
  14948. "泰顺县"] },
  14949. {
  14950. "name": "嘉兴市",
  14951. "area": [
  14952. "秀城区",
  14953. "秀洲区",
  14954. "海宁市",
  14955. "平湖市",
  14956. "桐乡市",
  14957. "嘉善县",
  14958. "海盐县"] },
  14959. {
  14960. "name": "湖州市",
  14961. "area": [
  14962. "吴兴区",
  14963. "南浔区",
  14964. "长兴县",
  14965. "德清县",
  14966. "安吉县"] },
  14967. {
  14968. "name": "绍兴市",
  14969. "area": [
  14970. "越城区",
  14971. "诸暨市",
  14972. "上虞市",
  14973. "嵊州市",
  14974. "绍兴县",
  14975. "新昌县"] },
  14976. {
  14977. "name": "金华市",
  14978. "area": [
  14979. "婺城区",
  14980. "金东区",
  14981. "兰溪市",
  14982. "义乌市",
  14983. "东阳市",
  14984. "永康市",
  14985. "武义县",
  14986. "浦江县",
  14987. "磐安县"] },
  14988. {
  14989. "name": "衢州市",
  14990. "area": [
  14991. "柯城区",
  14992. "衢江区",
  14993. "江山市",
  14994. "龙游县",
  14995. "常山县",
  14996. "开化县"] },
  14997. {
  14998. "name": "舟山市",
  14999. "area": [
  15000. "定海区",
  15001. "普陀区",
  15002. "岱山县",
  15003. "嵊泗县"] },
  15004. {
  15005. "name": "台州市",
  15006. "area": [
  15007. "椒江区",
  15008. "黄岩区",
  15009. "路桥区",
  15010. "临海市",
  15011. "温岭市",
  15012. "玉环县",
  15013. "天台县",
  15014. "仙居县",
  15015. "三门县"] },
  15016. {
  15017. "name": "丽水市",
  15018. "area": [
  15019. "莲都区",
  15020. "龙泉市",
  15021. "缙云县",
  15022. "青田县",
  15023. "云和县",
  15024. "遂昌县",
  15025. "松阳县",
  15026. "庆元县",
  15027. "景宁畲族自治县"] }] },
  15028. {
  15029. "name": "安徽省",
  15030. "city": [
  15031. {
  15032. "name": "合肥市",
  15033. "area": [
  15034. "庐阳区",
  15035. "瑶海区",
  15036. "蜀山区",
  15037. "包河区",
  15038. "长丰县",
  15039. "肥东县",
  15040. "肥西县"] },
  15041. {
  15042. "name": "芜湖市",
  15043. "area": [
  15044. "镜湖区",
  15045. "弋江区",
  15046. "鸠江区",
  15047. "三山区",
  15048. "芜湖县",
  15049. "南陵县",
  15050. "繁昌县"] },
  15051. {
  15052. "name": "蚌埠市",
  15053. "area": [
  15054. "蚌山区",
  15055. "龙子湖区",
  15056. "禹会区",
  15057. "淮上区",
  15058. "怀远县",
  15059. "固镇县",
  15060. "五河县"] },
  15061. {
  15062. "name": "淮南市",
  15063. "area": [
  15064. "田家庵区",
  15065. "大通区",
  15066. "谢家集区",
  15067. "八公山区",
  15068. "潘集区",
  15069. "凤台县"] },
  15070. {
  15071. "name": "马鞍山市",
  15072. "area": [
  15073. "雨山区",
  15074. "花山区",
  15075. "金家庄区",
  15076. "当涂县"] },
  15077. {
  15078. "name": "淮北市",
  15079. "area": [
  15080. "相山区",
  15081. "杜集区",
  15082. "烈山区",
  15083. "濉溪县"] },
  15084. {
  15085. "name": "铜陵市",
  15086. "area": [
  15087. "铜官山区",
  15088. "狮子山区",
  15089. "郊区",
  15090. "铜陵县"] },
  15091. {
  15092. "name": "安庆市",
  15093. "area": [
  15094. "迎江区",
  15095. "大观区",
  15096. "宜秀区",
  15097. "桐城市",
  15098. "宿松县",
  15099. "枞阳县",
  15100. "太湖县",
  15101. "怀宁县",
  15102. "岳西县",
  15103. "望江县",
  15104. "潜山县"] },
  15105. {
  15106. "name": "黄山市",
  15107. "area": [
  15108. "屯溪区",
  15109. "黄山区",
  15110. "徽州区",
  15111. "休宁县",
  15112. "歙县",
  15113. "祁门县",
  15114. "黟县"] },
  15115. {
  15116. "name": "滁州市",
  15117. "area": [
  15118. "琅琊区",
  15119. "南谯区",
  15120. "天长市",
  15121. "明光市",
  15122. "全椒县",
  15123. "来安县",
  15124. "定远县",
  15125. "凤阳县"] },
  15126. {
  15127. "name": "阜阳市",
  15128. "area": [
  15129. "颍州区",
  15130. "颍东区",
  15131. "颍泉区",
  15132. "界首市",
  15133. "临泉县",
  15134. "颍上县",
  15135. "阜南县",
  15136. "太和县"] },
  15137. {
  15138. "name": "宿州市",
  15139. "area": [
  15140. "埇桥区",
  15141. "萧县",
  15142. "泗县",
  15143. "砀山县",
  15144. "灵璧县"] },
  15145. {
  15146. "name": "巢湖市",
  15147. "area": [
  15148. "居巢区",
  15149. "含山县",
  15150. "无为县",
  15151. "庐江县",
  15152. "和县"] },
  15153. {
  15154. "name": "六安市",
  15155. "area": [
  15156. "金安区",
  15157. "裕安区",
  15158. "寿县",
  15159. "霍山县",
  15160. "霍邱县",
  15161. "舒城县",
  15162. "金寨县"] },
  15163. {
  15164. "name": "亳州市",
  15165. "area": [
  15166. "谯城区",
  15167. "利辛县",
  15168. "涡阳县",
  15169. "蒙城县"] },
  15170. {
  15171. "name": "池州市",
  15172. "area": [
  15173. "贵池区",
  15174. "东至县",
  15175. "石台县",
  15176. "青阳县"] },
  15177. {
  15178. "name": "宣城市",
  15179. "area": [
  15180. "宣州区",
  15181. "宁国市",
  15182. "广德县",
  15183. "郎溪县",
  15184. "泾县",
  15185. "旌德县",
  15186. "绩溪县"] }] },
  15187. {
  15188. "name": "福建省",
  15189. "city": [
  15190. {
  15191. "name": "福州市",
  15192. "area": [
  15193. "鼓楼区",
  15194. "台江区",
  15195. "仓山区",
  15196. "马尾区",
  15197. "晋安区",
  15198. "福清市",
  15199. "长乐市",
  15200. "闽侯县",
  15201. "闽清县",
  15202. "永泰县",
  15203. "连江县",
  15204. "罗源县",
  15205. "平潭县"] },
  15206. {
  15207. "name": "厦门市",
  15208. "area": [
  15209. "思明区",
  15210. "海沧区",
  15211. "湖里区",
  15212. "集美区",
  15213. "同安区",
  15214. "翔安区"] },
  15215. {
  15216. "name": "莆田市",
  15217. "area": [
  15218. "城厢区",
  15219. "涵江区",
  15220. "荔城区",
  15221. "秀屿区",
  15222. "仙游县"] },
  15223. {
  15224. "name": "三明市",
  15225. "area": [
  15226. "梅列区",
  15227. "三元区",
  15228. "永安市",
  15229. "明溪县",
  15230. "将乐县",
  15231. "大田县",
  15232. "宁化县",
  15233. "建宁县",
  15234. "沙县",
  15235. "尤溪县",
  15236. "清流县",
  15237. "泰宁县"] },
  15238. {
  15239. "name": "泉州市",
  15240. "area": [
  15241. "鲤城区",
  15242. "丰泽区",
  15243. "洛江区",
  15244. "泉港区",
  15245. "石狮市",
  15246. "晋江市",
  15247. "南安市",
  15248. "惠安县",
  15249. "永春县",
  15250. "安溪县",
  15251. "德化县",
  15252. "金门县"] },
  15253. {
  15254. "name": "漳州市",
  15255. "area": [
  15256. "芗城区",
  15257. "龙文区",
  15258. "龙海市",
  15259. "平和县",
  15260. "南靖县",
  15261. "诏安县",
  15262. "漳浦县",
  15263. "华安县",
  15264. "东山县",
  15265. "长泰县",
  15266. "云霄县"] },
  15267. {
  15268. "name": "南平市",
  15269. "area": [
  15270. "延平区",
  15271. "建瓯市",
  15272. "邵武市",
  15273. "武夷山市",
  15274. "建阳市",
  15275. "松溪县",
  15276. "光泽县",
  15277. "顺昌县",
  15278. "浦城县",
  15279. "政和县"] },
  15280. {
  15281. "name": "龙岩市",
  15282. "area": [
  15283. "新罗区",
  15284. "漳平市",
  15285. "长汀县",
  15286. "武平县",
  15287. "上杭县",
  15288. "永定县",
  15289. "连城县"] },
  15290. {
  15291. "name": "宁德市",
  15292. "area": [
  15293. "蕉城区",
  15294. "福安市",
  15295. "福鼎市",
  15296. "寿宁县",
  15297. "霞浦县",
  15298. "柘荣县",
  15299. "屏南县",
  15300. "古田县",
  15301. "周宁县"] }] },
  15302. {
  15303. "name": "江西省",
  15304. "city": [
  15305. {
  15306. "name": "南昌市",
  15307. "area": [
  15308. "东湖区",
  15309. "西湖区",
  15310. "青云谱区",
  15311. "湾里区",
  15312. "青山湖区",
  15313. "新建县",
  15314. "南昌县",
  15315. "进贤县",
  15316. "安义县"] },
  15317. {
  15318. "name": "景德镇市",
  15319. "area": [
  15320. "珠山区",
  15321. "昌江区",
  15322. "乐平市",
  15323. "浮梁县"] },
  15324. {
  15325. "name": "萍乡市",
  15326. "area": [
  15327. "安源区",
  15328. "湘东区",
  15329. "莲花县",
  15330. "上栗县",
  15331. "芦溪县"] },
  15332. {
  15333. "name": "九江市",
  15334. "area": [
  15335. "浔阳区",
  15336. "庐山区",
  15337. "瑞昌市",
  15338. "九江县",
  15339. "星子县",
  15340. "武宁县",
  15341. "彭泽县",
  15342. "永修县",
  15343. "修水县",
  15344. "湖口县",
  15345. "德安县",
  15346. "都昌县"] },
  15347. {
  15348. "name": "新余市",
  15349. "area": [
  15350. "渝水区",
  15351. "分宜县"] },
  15352. {
  15353. "name": "鹰潭市",
  15354. "area": [
  15355. "月湖区",
  15356. "贵溪市",
  15357. "余江县"] },
  15358. {
  15359. "name": "赣州市",
  15360. "area": [
  15361. "章贡区",
  15362. "瑞金市",
  15363. "南康市",
  15364. "石城县",
  15365. "安远县",
  15366. "赣县",
  15367. "宁都县",
  15368. "寻乌县",
  15369. "兴国县",
  15370. "定南县",
  15371. "上犹县",
  15372. "于都县",
  15373. "龙南县",
  15374. "崇义县",
  15375. "信丰县",
  15376. "全南县",
  15377. "大余县",
  15378. "会昌县"] },
  15379. {
  15380. "name": "吉安市",
  15381. "area": [
  15382. "吉州区",
  15383. "青原区",
  15384. "井冈山市",
  15385. "吉安县",
  15386. "永丰县",
  15387. "永新县",
  15388. "新干县",
  15389. "泰和县",
  15390. "峡江县",
  15391. "遂川县",
  15392. "安福县",
  15393. "吉水县",
  15394. "万安县"] },
  15395. {
  15396. "name": "宜春市",
  15397. "area": [
  15398. "袁州区",
  15399. "丰城市",
  15400. "樟树市",
  15401. "高安市",
  15402. "铜鼓县",
  15403. "靖安县",
  15404. "宜丰县",
  15405. "奉新县",
  15406. "万载县",
  15407. "上高县"] },
  15408. {
  15409. "name": "抚州市",
  15410. "area": [
  15411. "临川区",
  15412. "南丰县",
  15413. "乐安县",
  15414. "金溪县",
  15415. "南城县",
  15416. "东乡县",
  15417. "资溪县",
  15418. "宜黄县",
  15419. "广昌县",
  15420. "黎川县",
  15421. "崇仁县"] },
  15422. {
  15423. "name": "上饶市",
  15424. "area": [
  15425. "信州区",
  15426. "德兴市",
  15427. "上饶县",
  15428. "广丰县",
  15429. "鄱阳县",
  15430. "婺源县",
  15431. "铅山县",
  15432. "余干县",
  15433. "横峰县",
  15434. "弋阳县",
  15435. "玉山县",
  15436. "万年县"] }] },
  15437. {
  15438. "name": "山东省",
  15439. "city": [
  15440. {
  15441. "name": "济南市",
  15442. "area": [
  15443. "市中区",
  15444. "历下区",
  15445. "天桥区",
  15446. "槐荫区",
  15447. "历城区",
  15448. "长清区",
  15449. "章丘市",
  15450. "平阴县",
  15451. "济阳县",
  15452. "商河县"] },
  15453. {
  15454. "name": "青岛市",
  15455. "area": [
  15456. "市南区",
  15457. "市北区",
  15458. "城阳区",
  15459. "四方区",
  15460. "李沧区",
  15461. "黄岛区",
  15462. "崂山区",
  15463. "胶南市",
  15464. "胶州市",
  15465. "平度市",
  15466. "莱西市",
  15467. "即墨市"] },
  15468. {
  15469. "name": "淄博市",
  15470. "area": [
  15471. "张店区",
  15472. "临淄区",
  15473. "淄川区",
  15474. "博山区",
  15475. "周村区",
  15476. "桓台县",
  15477. "高青县",
  15478. "沂源县"] },
  15479. {
  15480. "name": "枣庄市",
  15481. "area": [
  15482. "市中区",
  15483. "山亭区",
  15484. "峄城区",
  15485. "台儿庄区",
  15486. "薛城区",
  15487. "滕州市"] },
  15488. {
  15489. "name": "东营市",
  15490. "area": [
  15491. "东营区",
  15492. "河口区",
  15493. "垦利县",
  15494. "广饶县",
  15495. "利津县"] },
  15496. {
  15497. "name": "烟台市",
  15498. "area": [
  15499. "芝罘区",
  15500. "福山区",
  15501. "牟平区",
  15502. "莱山区",
  15503. "龙口市",
  15504. "莱阳市",
  15505. "莱州市",
  15506. "招远市",
  15507. "蓬莱市",
  15508. "栖霞市",
  15509. "海阳市",
  15510. "长岛县"] },
  15511. {
  15512. "name": "潍坊市",
  15513. "area": [
  15514. "潍城区",
  15515. "寒亭区",
  15516. "坊子区",
  15517. "奎文区",
  15518. "青州市",
  15519. "诸城市",
  15520. "寿光市",
  15521. "安丘市",
  15522. "高密市",
  15523. "昌邑市",
  15524. "昌乐县",
  15525. "临朐县"] },
  15526. {
  15527. "name": "济宁市",
  15528. "area": [
  15529. "市中区",
  15530. "任城区",
  15531. "曲阜市",
  15532. "兖州市",
  15533. "邹城市",
  15534. "鱼台县",
  15535. "金乡县",
  15536. "嘉祥县",
  15537. "微山县",
  15538. "汶上县",
  15539. "泗水县",
  15540. "梁山县"] },
  15541. {
  15542. "name": "泰安市",
  15543. "area": [
  15544. "泰山区",
  15545. "岱岳区",
  15546. "新泰市",
  15547. "肥城市",
  15548. "宁阳县",
  15549. "东平县"] },
  15550. {
  15551. "name": "威海市",
  15552. "area": [
  15553. "环翠区",
  15554. "乳山市",
  15555. "文登市",
  15556. "荣成市"] },
  15557. {
  15558. "name": "日照市",
  15559. "area": [
  15560. "东港区",
  15561. "岚山区",
  15562. "五莲县",
  15563. "莒县"] },
  15564. {
  15565. "name": "莱芜市",
  15566. "area": [
  15567. "莱城区",
  15568. "钢城区"] },
  15569. {
  15570. "name": "临沂市",
  15571. "area": [
  15572. "兰山区",
  15573. "罗庄区",
  15574. "河东区",
  15575. "沂南县",
  15576. "郯城县",
  15577. "沂水县",
  15578. "苍山县",
  15579. "费县",
  15580. "平邑县",
  15581. "莒南县",
  15582. "蒙阴县",
  15583. "临沭县"] },
  15584. {
  15585. "name": "德州市",
  15586. "area": [
  15587. "德城区",
  15588. "乐陵市",
  15589. "禹城市",
  15590. "陵县",
  15591. "宁津县",
  15592. "齐河县",
  15593. "武城县",
  15594. "庆云县",
  15595. "平原县",
  15596. "夏津县",
  15597. "临邑县"] },
  15598. {
  15599. "name": "聊城市",
  15600. "area": [
  15601. "东昌府区",
  15602. "临清市",
  15603. "高唐县",
  15604. "阳谷县",
  15605. "茌平县",
  15606. "莘县",
  15607. "东阿县",
  15608. "冠县"] },
  15609. {
  15610. "name": "滨州市",
  15611. "area": [
  15612. "滨城区",
  15613. "邹平县",
  15614. "沾化县",
  15615. "惠民县",
  15616. "博兴县",
  15617. "阳信县",
  15618. "无棣县"] },
  15619. {
  15620. "name": "菏泽市",
  15621. "area": [
  15622. "牡丹区",
  15623. "鄄城县",
  15624. "单县",
  15625. "郓城县",
  15626. "曹县",
  15627. "定陶县",
  15628. "巨野县",
  15629. "东明县",
  15630. "成武县"] }] },
  15631. {
  15632. "name": "河南省",
  15633. "city": [
  15634. {
  15635. "name": "郑州市",
  15636. "area": [
  15637. "中原区",
  15638. "金水区",
  15639. "二七区",
  15640. "管城回族区",
  15641. "上街区",
  15642. "惠济区",
  15643. "巩义市",
  15644. "新郑市",
  15645. "新密市",
  15646. "登封市",
  15647. "荥阳市",
  15648. "中牟县"] },
  15649. {
  15650. "name": "开封市",
  15651. "area": [
  15652. "鼓楼区",
  15653. "龙亭区",
  15654. "顺河回族区",
  15655. "禹王台区",
  15656. "金明区",
  15657. "开封县",
  15658. "尉氏县",
  15659. "兰考县",
  15660. "杞县",
  15661. "通许县"] },
  15662. {
  15663. "name": "洛阳市",
  15664. "area": [
  15665. "西工区",
  15666. "老城区",
  15667. "涧西区",
  15668. "瀍河回族区",
  15669. "洛龙区",
  15670. "吉利区",
  15671. "偃师市",
  15672. "孟津县",
  15673. "汝阳县",
  15674. "伊川县",
  15675. "洛宁县",
  15676. "嵩县",
  15677. "宜阳县",
  15678. "新安县",
  15679. "栾川县"] },
  15680. {
  15681. "name": "平顶山市",
  15682. "area": [
  15683. "新华区",
  15684. "卫东区",
  15685. "湛河区",
  15686. "石龙区",
  15687. "汝州市",
  15688. "舞钢市",
  15689. "宝丰县",
  15690. "叶县",
  15691. "郏县",
  15692. "鲁山县"] },
  15693. {
  15694. "name": "安阳市",
  15695. "area": [
  15696. "北关区",
  15697. "文峰区",
  15698. "殷都区",
  15699. "龙安区",
  15700. "林州市",
  15701. "安阳县",
  15702. "滑县",
  15703. "内黄县",
  15704. "汤阴县"] },
  15705. {
  15706. "name": "鹤壁市",
  15707. "area": [
  15708. "淇滨区",
  15709. "山城区",
  15710. "鹤山区",
  15711. "浚县",
  15712. "淇县"] },
  15713. {
  15714. "name": "新乡市",
  15715. "area": [
  15716. "卫滨区",
  15717. "红旗区",
  15718. "凤泉区",
  15719. "牧野区",
  15720. "卫辉市",
  15721. "辉县市",
  15722. "新乡县",
  15723. "获嘉县",
  15724. "原阳县",
  15725. "长垣县",
  15726. "封丘县",
  15727. "延津县"] },
  15728. {
  15729. "name": "焦作市",
  15730. "area": [
  15731. "解放区",
  15732. "中站区",
  15733. "马村区",
  15734. "山阳区",
  15735. "沁阳市",
  15736. "孟州市",
  15737. "修武县",
  15738. "温县",
  15739. "武陟县",
  15740. "博爱县"] },
  15741. {
  15742. "name": "濮阳市",
  15743. "area": [
  15744. "华龙区",
  15745. "濮阳县",
  15746. "南乐县",
  15747. "台前县",
  15748. "清丰县",
  15749. "范县"] },
  15750. {
  15751. "name": "许昌市",
  15752. "area": [
  15753. "魏都区",
  15754. "禹州市",
  15755. "长葛市",
  15756. "许昌县",
  15757. "鄢陵县",
  15758. "襄城县"] },
  15759. {
  15760. "name": "漯河市",
  15761. "area": [
  15762. "源汇区",
  15763. "郾城区",
  15764. "召陵区",
  15765. "临颍县",
  15766. "舞阳县"] },
  15767. {
  15768. "name": "三门峡市",
  15769. "area": [
  15770. "湖滨区",
  15771. "义马市",
  15772. "灵宝市",
  15773. "渑池县",
  15774. "卢氏县",
  15775. "陕县"] },
  15776. {
  15777. "name": "南阳市",
  15778. "area": [
  15779. "卧龙区",
  15780. "宛城区",
  15781. "邓州市",
  15782. "桐柏县",
  15783. "方城县",
  15784. "淅川县",
  15785. "镇平县",
  15786. "唐河县",
  15787. "南召县",
  15788. "内乡县",
  15789. "新野县",
  15790. "社旗县",
  15791. "西峡县"] },
  15792. {
  15793. "name": "商丘市",
  15794. "area": [
  15795. "梁园区",
  15796. "睢阳区",
  15797. "永城市",
  15798. "宁陵县",
  15799. "虞城县",
  15800. "民权县",
  15801. "夏邑县",
  15802. "柘城县",
  15803. "睢县"] },
  15804. {
  15805. "name": "信阳市",
  15806. "area": [
  15807. "浉河区",
  15808. "平桥区",
  15809. "潢川县",
  15810. "淮滨县",
  15811. "息县",
  15812. "新县",
  15813. "商城县",
  15814. "固始县",
  15815. "罗山县",
  15816. "光山县"] },
  15817. {
  15818. "name": "周口市",
  15819. "area": [
  15820. "川汇区",
  15821. "项城市",
  15822. "商水县",
  15823. "淮阳县",
  15824. "太康县",
  15825. "鹿邑县",
  15826. "西华县",
  15827. "扶沟县",
  15828. "沈丘县",
  15829. "郸城县"] },
  15830. {
  15831. "name": "驻马店市",
  15832. "area": [
  15833. "驿城区",
  15834. "确山县",
  15835. "新蔡县",
  15836. "上蔡县",
  15837. "西平县",
  15838. "泌阳县",
  15839. "平舆县",
  15840. "汝南县",
  15841. "遂平县",
  15842. "正阳县"] },
  15843. {
  15844. "name": "焦作市",
  15845. "area": [
  15846. "济源市"] }] },
  15847. {
  15848. "name": "湖北省",
  15849. "city": [
  15850. {
  15851. "name": "武汉市",
  15852. "area": [
  15853. "江岸区",
  15854. "武昌区",
  15855. "江汉区",
  15856. "硚口区",
  15857. "汉阳区",
  15858. "青山区",
  15859. "洪山区",
  15860. "东西湖区",
  15861. "汉南区",
  15862. "蔡甸区",
  15863. "江夏区",
  15864. "黄陂区",
  15865. "新洲区"] },
  15866. {
  15867. "name": "黄石市",
  15868. "area": [
  15869. "黄石港区",
  15870. "西塞山区",
  15871. "下陆区",
  15872. "铁山区",
  15873. "大冶市",
  15874. "阳新县"] },
  15875. {
  15876. "name": "十堰市",
  15877. "area": [
  15878. "张湾区",
  15879. "茅箭区",
  15880. "丹江口市",
  15881. "郧县",
  15882. "竹山县",
  15883. "房县",
  15884. "郧西县",
  15885. "竹溪县"] },
  15886. {
  15887. "name": "荆州市",
  15888. "area": [
  15889. "沙市区",
  15890. "荆州区",
  15891. "洪湖市",
  15892. "石首市",
  15893. "松滋市",
  15894. "监利县",
  15895. "公安县",
  15896. "江陵县"] },
  15897. {
  15898. "name": "宜昌市",
  15899. "area": [
  15900. "西陵区",
  15901. "伍家岗区",
  15902. "点军区",
  15903. "猇亭区",
  15904. "夷陵区",
  15905. "宜都市",
  15906. "当阳市",
  15907. "枝江市",
  15908. "秭归县",
  15909. "远安县",
  15910. "兴山县",
  15911. "五峰土家族自治县",
  15912. "长阳土家族自治县"] },
  15913. {
  15914. "name": "襄樊市",
  15915. "area": [
  15916. "襄城区",
  15917. "樊城区",
  15918. "襄阳区",
  15919. "老河口市",
  15920. "枣阳市",
  15921. "宜城市",
  15922. "南漳县",
  15923. "谷城县",
  15924. "保康县"] },
  15925. {
  15926. "name": "鄂州市",
  15927. "area": [
  15928. "鄂城区",
  15929. "华容区",
  15930. "梁子湖区"] },
  15931. {
  15932. "name": "荆门市",
  15933. "area": [
  15934. "东宝区",
  15935. "掇刀区",
  15936. "钟祥市",
  15937. "京山县",
  15938. "沙洋县"] },
  15939. {
  15940. "name": "孝感市",
  15941. "area": [
  15942. "孝南区",
  15943. "应城市",
  15944. "安陆市",
  15945. "汉川市",
  15946. "云梦县",
  15947. "大悟县",
  15948. "孝昌县"] },
  15949. {
  15950. "name": "黄冈市",
  15951. "area": [
  15952. "黄州区",
  15953. "麻城市",
  15954. "武穴市",
  15955. "红安县",
  15956. "罗田县",
  15957. "浠水县",
  15958. "蕲春县",
  15959. "黄梅县",
  15960. "英山县",
  15961. "团风县"] },
  15962. {
  15963. "name": "咸宁市",
  15964. "area": [
  15965. "咸安区",
  15966. "赤壁市",
  15967. "嘉鱼县",
  15968. "通山县",
  15969. "崇阳县",
  15970. "通城县"] },
  15971. {
  15972. "name": "随州市",
  15973. "area": [
  15974. "曾都区",
  15975. "广水市"] },
  15976. {
  15977. "name": "恩施土家族苗族自治州",
  15978. "area": [
  15979. "恩施市",
  15980. "利川市",
  15981. "建始县",
  15982. "来凤县",
  15983. "巴东县",
  15984. "鹤峰县",
  15985. "宣恩县",
  15986. "咸丰县"] },
  15987. {
  15988. "name": "仙桃市",
  15989. "area": [
  15990. "仙桃"] },
  15991. {
  15992. "name": "天门市",
  15993. "area": [
  15994. "天门"] },
  15995. {
  15996. "name": "潜江市",
  15997. "area": [
  15998. "潜江"] },
  15999. {
  16000. "name": "神农架林区",
  16001. "area": [
  16002. "神农架林区"] }] },
  16003. {
  16004. "name": "湖南省",
  16005. "city": [
  16006. {
  16007. "name": "长沙市",
  16008. "area": [
  16009. "岳麓区",
  16010. "芙蓉区",
  16011. "天心区",
  16012. "开福区",
  16013. "雨花区",
  16014. "浏阳市",
  16015. "长沙县",
  16016. "望城县",
  16017. "宁乡县"] },
  16018. {
  16019. "name": "株洲市",
  16020. "area": [
  16021. "天元区",
  16022. "荷塘区",
  16023. "芦淞区",
  16024. "石峰区",
  16025. "醴陵市",
  16026. "株洲县",
  16027. "炎陵县",
  16028. "茶陵县",
  16029. "攸县"] },
  16030. {
  16031. "name": "湘潭市",
  16032. "area": [
  16033. "岳塘区",
  16034. "雨湖区",
  16035. "湘乡市",
  16036. "韶山市",
  16037. "湘潭县"] },
  16038. {
  16039. "name": "衡阳市",
  16040. "area": [
  16041. "雁峰区",
  16042. "珠晖区",
  16043. "石鼓区",
  16044. "蒸湘区",
  16045. "南岳区",
  16046. "耒阳市",
  16047. "常宁市",
  16048. "衡阳县",
  16049. "衡东县",
  16050. "衡山县",
  16051. "衡南县",
  16052. "祁东县"] },
  16053. {
  16054. "name": "邵阳市",
  16055. "area": [
  16056. "双清区",
  16057. "大祥区",
  16058. "北塔区",
  16059. "武冈市",
  16060. "邵东县",
  16061. "洞口县",
  16062. "新邵县",
  16063. "绥宁县",
  16064. "新宁县",
  16065. "邵阳县",
  16066. "隆回县",
  16067. "城步苗族自治县"] },
  16068. {
  16069. "name": "岳阳市",
  16070. "area": [
  16071. "岳阳楼区",
  16072. "云溪区",
  16073. "君山区",
  16074. "临湘市",
  16075. "汨罗市",
  16076. "岳阳县",
  16077. "湘阴县",
  16078. "平江县",
  16079. "华容县"] },
  16080. {
  16081. "name": "常德市",
  16082. "area": [
  16083. "武陵区",
  16084. "鼎城区",
  16085. "津市市",
  16086. "澧县",
  16087. "临澧县",
  16088. "桃源县",
  16089. "汉寿县",
  16090. "安乡县",
  16091. "石门县"] },
  16092. {
  16093. "name": "张家界市",
  16094. "area": [
  16095. "永定区",
  16096. "武陵源区",
  16097. "慈利县",
  16098. "桑植县"] },
  16099. {
  16100. "name": "益阳市",
  16101. "area": [
  16102. "赫山区",
  16103. "资阳区",
  16104. "沅江市",
  16105. "桃江县",
  16106. "南县",
  16107. "安化县"] },
  16108. {
  16109. "name": "郴州市",
  16110. "area": [
  16111. "北湖区",
  16112. "苏仙区",
  16113. "资兴市",
  16114. "宜章县",
  16115. "汝城县",
  16116. "安仁县",
  16117. "嘉禾县",
  16118. "临武县",
  16119. "桂东县",
  16120. "永兴县",
  16121. "桂阳县"] },
  16122. {
  16123. "name": "永州市",
  16124. "area": [
  16125. "冷水滩区",
  16126. "零陵区",
  16127. "祁阳县",
  16128. "蓝山县",
  16129. "宁远县",
  16130. "新田县",
  16131. "东安县",
  16132. "江永县",
  16133. "道县",
  16134. "双牌县",
  16135. "江华瑶族自治县"] },
  16136. {
  16137. "name": "怀化市",
  16138. "area": [
  16139. "鹤城区",
  16140. "洪江市",
  16141. "会同县",
  16142. "沅陵县",
  16143. "辰溪县",
  16144. "溆浦县",
  16145. "中方县",
  16146. "新晃侗族自治县",
  16147. "芷江侗族自治县",
  16148. "通道侗族自治县",
  16149. "靖州苗族侗族自治县",
  16150. "麻阳苗族自治县"] },
  16151. {
  16152. "name": "娄底市",
  16153. "area": [
  16154. "娄星区",
  16155. "冷水江市",
  16156. "涟源市",
  16157. "新化县",
  16158. "双峰县"] },
  16159. {
  16160. "name": "湘西土家族苗族自治州",
  16161. "area": [
  16162. "吉首市",
  16163. "古丈县",
  16164. "龙山县",
  16165. "永顺县",
  16166. "凤凰县",
  16167. "泸溪县",
  16168. "保靖县",
  16169. "花垣县"] }] },
  16170. {
  16171. "name": "广东省",
  16172. "city": [
  16173. {
  16174. "name": "广州市",
  16175. "area": [
  16176. "越秀区",
  16177. "荔湾区",
  16178. "海珠区",
  16179. "天河区",
  16180. "白云区",
  16181. "黄埔区",
  16182. "番禺区",
  16183. "花都区",
  16184. "南沙区",
  16185. "萝岗区",
  16186. "增城市",
  16187. "从化市"] },
  16188. {
  16189. "name": "深圳市",
  16190. "area": [
  16191. "福田区",
  16192. "罗湖区",
  16193. "南山区",
  16194. "宝安区",
  16195. "龙岗区",
  16196. "盐田区"] },
  16197. {
  16198. "name": "东莞市",
  16199. "area": [
  16200. "莞城",
  16201. "常平",
  16202. "塘厦",
  16203. "塘厦",
  16204. "塘厦"] },
  16205. {
  16206. "name": "中山市",
  16207. "area": [
  16208. "中山"] },
  16209. {
  16210. "name": "潮州市",
  16211. "area": [
  16212. "湘桥区",
  16213. "潮安县",
  16214. "饶平县"] },
  16215. {
  16216. "name": "揭阳市",
  16217. "area": [
  16218. "榕城区",
  16219. "揭东县",
  16220. "揭西县",
  16221. "惠来县",
  16222. "普宁市"] },
  16223. {
  16224. "name": "云浮市",
  16225. "area": [
  16226. "云城区",
  16227. "新兴县",
  16228. "郁南县",
  16229. "云安县",
  16230. "罗定市"] },
  16231. {
  16232. "name": "珠海市",
  16233. "area": [
  16234. "香洲区",
  16235. "斗门区",
  16236. "金湾区"] },
  16237. {
  16238. "name": "汕头市",
  16239. "area": [
  16240. "金平区",
  16241. "濠江区",
  16242. "龙湖区",
  16243. "潮阳区",
  16244. "潮南区",
  16245. "澄海区",
  16246. "南澳县"] },
  16247. {
  16248. "name": "韶关市",
  16249. "area": [
  16250. "浈江区",
  16251. "武江区",
  16252. "曲江区",
  16253. "乐昌市",
  16254. "南雄市",
  16255. "始兴县",
  16256. "仁化县",
  16257. "翁源县",
  16258. "新丰县",
  16259. "乳源瑶族自治县"] },
  16260. {
  16261. "name": "佛山市",
  16262. "area": [
  16263. "禅城区",
  16264. "南海区",
  16265. "顺德区",
  16266. "三水区",
  16267. "高明区"] },
  16268. {
  16269. "name": "江门市",
  16270. "area": [
  16271. "蓬江区",
  16272. "江海区",
  16273. "新会区",
  16274. "恩平市",
  16275. "台山市",
  16276. "开平市",
  16277. "鹤山市"] },
  16278. {
  16279. "name": "湛江市",
  16280. "area": [
  16281. "赤坎区",
  16282. "霞山区",
  16283. "坡头区",
  16284. "麻章区",
  16285. "吴川市",
  16286. "廉江市",
  16287. "雷州市",
  16288. "遂溪县",
  16289. "徐闻县"] },
  16290. {
  16291. "name": "茂名市",
  16292. "area": [
  16293. "茂南区",
  16294. "茂港区",
  16295. "化州市",
  16296. "信宜市",
  16297. "高州市",
  16298. "电白县"] },
  16299. {
  16300. "name": "肇庆市",
  16301. "area": [
  16302. "端州区",
  16303. "鼎湖区",
  16304. "高要市",
  16305. "四会市",
  16306. "广宁县",
  16307. "怀集县",
  16308. "封开县",
  16309. "德庆县"] },
  16310. {
  16311. "name": "惠州市",
  16312. "area": [
  16313. "惠城区",
  16314. "惠阳区",
  16315. "博罗县",
  16316. "惠东县",
  16317. "龙门县"] },
  16318. {
  16319. "name": "梅州市",
  16320. "area": [
  16321. "梅江区",
  16322. "兴宁市",
  16323. "梅县",
  16324. "大埔县",
  16325. "丰顺县",
  16326. "五华县",
  16327. "平远县",
  16328. "蕉岭县"] },
  16329. {
  16330. "name": "汕尾市",
  16331. "area": [
  16332. "城区",
  16333. "陆丰市",
  16334. "海丰县",
  16335. "陆河县"] },
  16336. {
  16337. "name": "河源市",
  16338. "area": [
  16339. "源城区",
  16340. "紫金县",
  16341. "龙川县",
  16342. "连平县",
  16343. "和平县",
  16344. "东源县"] },
  16345. {
  16346. "name": "阳江市",
  16347. "area": [
  16348. "江城区",
  16349. "阳春市",
  16350. "阳西县",
  16351. "阳东县"] },
  16352. {
  16353. "name": "清远市",
  16354. "area": [
  16355. "清城区",
  16356. "英德市",
  16357. "连州市",
  16358. "佛冈县",
  16359. "阳山县",
  16360. "清新县",
  16361. "连山壮族瑶族自治县",
  16362. "连南瑶族自治县"] }] },
  16363. {
  16364. "name": "广西",
  16365. "city": [
  16366. {
  16367. "name": "南宁市",
  16368. "area": [
  16369. "青秀区",
  16370. "兴宁区",
  16371. "西乡塘区",
  16372. "良庆区",
  16373. "江南区",
  16374. "邕宁区",
  16375. "武鸣县",
  16376. "隆安县",
  16377. "马山县",
  16378. "上林县",
  16379. "宾阳县",
  16380. "横县"] },
  16381. {
  16382. "name": "柳州市",
  16383. "area": [
  16384. "城中区",
  16385. "鱼峰区",
  16386. "柳北区",
  16387. "柳南区",
  16388. "柳江县",
  16389. "柳城县",
  16390. "鹿寨县",
  16391. "融安县",
  16392. "融水苗族自治县",
  16393. "三江侗族自治县"] },
  16394. {
  16395. "name": "桂林市",
  16396. "area": [
  16397. "象山区",
  16398. "秀峰区",
  16399. "叠彩区",
  16400. "七星区",
  16401. "雁山区",
  16402. "阳朔县",
  16403. "临桂县",
  16404. "灵川县",
  16405. "全州县",
  16406. "平乐县",
  16407. "兴安县",
  16408. "灌阳县",
  16409. "荔浦县",
  16410. "资源县",
  16411. "永福县",
  16412. "龙胜各族自治县",
  16413. "恭城瑶族自治县"] },
  16414. {
  16415. "name": "梧州市",
  16416. "area": [
  16417. "万秀区",
  16418. "蝶山区",
  16419. "长洲区",
  16420. "岑溪市",
  16421. "苍梧县",
  16422. "藤县",
  16423. "蒙山县"] },
  16424. {
  16425. "name": "北海市",
  16426. "area": [
  16427. "海城区",
  16428. "银海区",
  16429. "铁山港区",
  16430. "合浦县"] },
  16431. {
  16432. "name": "防城港市",
  16433. "area": [
  16434. "港口区",
  16435. "防城区",
  16436. "东兴市",
  16437. "上思县"] },
  16438. {
  16439. "name": "钦州市",
  16440. "area": [
  16441. "钦南区",
  16442. "钦北区",
  16443. "灵山县",
  16444. "浦北县"] },
  16445. {
  16446. "name": "贵港市",
  16447. "area": [
  16448. "港北区",
  16449. "港南区",
  16450. "覃塘区",
  16451. "桂平市",
  16452. "平南县"] },
  16453. {
  16454. "name": "玉林市",
  16455. "area": [
  16456. "玉州区",
  16457. "北流市",
  16458. "容县",
  16459. "陆川县",
  16460. "博白县",
  16461. "兴业县"] },
  16462. {
  16463. "name": "百色市",
  16464. "area": [
  16465. "右江区",
  16466. "凌云县",
  16467. "平果县",
  16468. "西林县",
  16469. "乐业县",
  16470. "德保县",
  16471. "田林县",
  16472. "田阳县",
  16473. "靖西县",
  16474. "田东县",
  16475. "那坡县",
  16476. "隆林各族自治县"] },
  16477. {
  16478. "name": "贺州市",
  16479. "area": [
  16480. "八步区",
  16481. "钟山县",
  16482. "昭平县",
  16483. "富川瑶族自治县"] },
  16484. {
  16485. "name": "河池市",
  16486. "area": [
  16487. "金城江区",
  16488. "宜州市",
  16489. "天峨县",
  16490. "凤山县",
  16491. "南丹县",
  16492. "东兰县",
  16493. "都安瑶族自治县",
  16494. "罗城仫佬族自治县",
  16495. "巴马瑶族自治县",
  16496. "环江毛南族自治县",
  16497. "大化瑶族自治县"] },
  16498. {
  16499. "name": "来宾市",
  16500. "area": [
  16501. "兴宾区",
  16502. "合山市",
  16503. "象州县",
  16504. "武宣县",
  16505. "忻城县",
  16506. "金秀瑶族自治县"] },
  16507. {
  16508. "name": "崇左市",
  16509. "area": [
  16510. "江州区",
  16511. "凭祥市",
  16512. "宁明县",
  16513. "扶绥县",
  16514. "龙州县",
  16515. "大新县",
  16516. "天等县"] }] },
  16517. {
  16518. "name": "海南省",
  16519. "city": [
  16520. {
  16521. "name": "海口市",
  16522. "area": [
  16523. "龙华区",
  16524. "秀英区",
  16525. "琼山区",
  16526. "美兰区"] },
  16527. {
  16528. "name": "三亚市",
  16529. "area": [
  16530. "三亚市"] },
  16531. {
  16532. "name": "五指山市",
  16533. "area": [
  16534. "五指山"] },
  16535. {
  16536. "name": "琼海市",
  16537. "area": [
  16538. "琼海"] },
  16539. {
  16540. "name": "儋州市",
  16541. "area": [
  16542. "儋州"] },
  16543. {
  16544. "name": "文昌市",
  16545. "area": [
  16546. "文昌"] },
  16547. {
  16548. "name": "万宁市",
  16549. "area": [
  16550. "万宁"] },
  16551. {
  16552. "name": "东方市",
  16553. "area": [
  16554. "东方"] },
  16555. {
  16556. "name": "澄迈县",
  16557. "area": [
  16558. "澄迈县"] },
  16559. {
  16560. "name": "定安县",
  16561. "area": [
  16562. "定安县"] },
  16563. {
  16564. "name": "屯昌县",
  16565. "area": [
  16566. "屯昌县"] },
  16567. {
  16568. "name": "临高县",
  16569. "area": [
  16570. "临高县"] },
  16571. {
  16572. "name": "白沙黎族自治县",
  16573. "area": [
  16574. "白沙黎族自治县"] },
  16575. {
  16576. "name": "昌江黎族自治县",
  16577. "area": [
  16578. "昌江黎族自治县"] },
  16579. {
  16580. "name": "乐东黎族自治县",
  16581. "area": [
  16582. "乐东黎族自治县"] },
  16583. {
  16584. "name": "陵水黎族自治县",
  16585. "area": [
  16586. "陵水黎族自治县"] },
  16587. {
  16588. "name": "保亭黎族苗族自治县",
  16589. "area": [
  16590. "保亭黎族苗族自治县"] },
  16591. {
  16592. "name": "琼中黎族苗族自治县",
  16593. "area": [
  16594. "琼中黎族苗族自治县"] }] },
  16595. {
  16596. "name": "重庆市",
  16597. "city": [
  16598. {
  16599. "name": "重庆市",
  16600. "area": [
  16601. "渝中区",
  16602. "大渡口区",
  16603. "江北区",
  16604. "南岸区",
  16605. "北碚区",
  16606. "渝北区",
  16607. "巴南区",
  16608. "长寿区",
  16609. "双桥区",
  16610. "沙坪坝区",
  16611. "万盛区",
  16612. "万州区",
  16613. "涪陵区",
  16614. "黔江区",
  16615. "永川区",
  16616. "合川区",
  16617. "江津区",
  16618. "九龙坡区",
  16619. "南川区",
  16620. "綦江县",
  16621. "潼南县",
  16622. "荣昌县",
  16623. "璧山县",
  16624. "大足县",
  16625. "铜梁县",
  16626. "梁平县",
  16627. "开县",
  16628. "忠县",
  16629. "城口县",
  16630. "垫江县",
  16631. "武隆县",
  16632. "丰都县",
  16633. "奉节县",
  16634. "云阳县",
  16635. "巫溪县",
  16636. "巫山县",
  16637. "石柱土家族自治县",
  16638. "秀山土家族苗族自治县",
  16639. "酉阳土家族苗族自治县",
  16640. "彭水苗族土家族自治县"] }] },
  16641. {
  16642. "name": "四川省",
  16643. "city": [
  16644. {
  16645. "name": "成都市",
  16646. "area": [
  16647. "青羊区",
  16648. "锦江区",
  16649. "金牛区",
  16650. "武侯区",
  16651. "成华区",
  16652. "龙泉驿区",
  16653. "青白江区",
  16654. "新都区",
  16655. "温江区",
  16656. "都江堰市",
  16657. "彭州市",
  16658. "邛崃市",
  16659. "崇州市",
  16660. "金堂县",
  16661. "郫县",
  16662. "新津县",
  16663. "双流县",
  16664. "蒲江县",
  16665. "大邑县"] },
  16666. {
  16667. "name": "自贡市",
  16668. "area": [
  16669. "大安区",
  16670. "自流井区",
  16671. "贡井区",
  16672. "沿滩区",
  16673. "荣县",
  16674. "富顺县"] },
  16675. {
  16676. "name": "攀枝花市",
  16677. "area": [
  16678. "仁和区",
  16679. "米易县",
  16680. "盐边县",
  16681. "东区",
  16682. "西区"] },
  16683. {
  16684. "name": "泸州市",
  16685. "area": [
  16686. "江阳区",
  16687. "纳溪区",
  16688. "龙马潭区",
  16689. "泸县",
  16690. "合江县",
  16691. "叙永县",
  16692. "古蔺县"] },
  16693. {
  16694. "name": "德阳市",
  16695. "area": [
  16696. "旌阳区",
  16697. "广汉市",
  16698. "什邡市",
  16699. "绵竹市",
  16700. "罗江县",
  16701. "中江县"] },
  16702. {
  16703. "name": "绵阳市",
  16704. "area": [
  16705. "涪城区",
  16706. "游仙区",
  16707. "江油市",
  16708. "盐亭县",
  16709. "三台县",
  16710. "平武县",
  16711. "安县",
  16712. "梓潼县",
  16713. "北川羌族自治县"] },
  16714. {
  16715. "name": "广元市",
  16716. "area": [
  16717. "元坝区",
  16718. "朝天区",
  16719. "青川县",
  16720. "旺苍县",
  16721. "剑阁县",
  16722. "苍溪县",
  16723. "市中区"] },
  16724. {
  16725. "name": "遂宁市",
  16726. "area": [
  16727. "船山区",
  16728. "安居区",
  16729. "射洪县",
  16730. "蓬溪县",
  16731. "大英县"] },
  16732. {
  16733. "name": "内江市",
  16734. "area": [
  16735. "市中区",
  16736. "东兴区",
  16737. "资中县",
  16738. "隆昌县",
  16739. "威远县"] },
  16740. {
  16741. "name": "乐山市",
  16742. "area": [
  16743. "市中区",
  16744. "五通桥区",
  16745. "沙湾区",
  16746. "金口河区",
  16747. "峨眉山市",
  16748. "夹江县",
  16749. "井研县",
  16750. "犍为县",
  16751. "沐川县",
  16752. "马边彝族自治县",
  16753. "峨边彝族自治县"] },
  16754. {
  16755. "name": "南充",
  16756. "area": [
  16757. "顺庆区",
  16758. "高坪区",
  16759. "嘉陵区",
  16760. "阆中市",
  16761. "营山县",
  16762. "蓬安县",
  16763. "仪陇县",
  16764. "南部县",
  16765. "西充县"] },
  16766. {
  16767. "name": "眉山市",
  16768. "area": [
  16769. "东坡区",
  16770. "仁寿县",
  16771. "彭山县",
  16772. "洪雅县",
  16773. "丹棱县",
  16774. "青神县"] },
  16775. {
  16776. "name": "宜宾市",
  16777. "area": [
  16778. "翠屏区",
  16779. "宜宾县",
  16780. "兴文县",
  16781. "南溪县",
  16782. "珙县",
  16783. "长宁县",
  16784. "高县",
  16785. "江安县",
  16786. "筠连县",
  16787. "屏山县"] },
  16788. {
  16789. "name": "广安市",
  16790. "area": [
  16791. "广安区",
  16792. "华蓥市",
  16793. "岳池县",
  16794. "邻水县",
  16795. "武胜县"] },
  16796. {
  16797. "name": "达州市",
  16798. "area": [
  16799. "通川区",
  16800. "万源市",
  16801. "达县",
  16802. "渠县",
  16803. "宣汉县",
  16804. "开江县",
  16805. "大竹县"] },
  16806. {
  16807. "name": "雅安市",
  16808. "area": [
  16809. "雨城区",
  16810. "芦山县",
  16811. "石棉县",
  16812. "名山县",
  16813. "天全县",
  16814. "荥经县",
  16815. "宝兴县",
  16816. "汉源县"] },
  16817. {
  16818. "name": "巴中市",
  16819. "area": [
  16820. "巴州区",
  16821. "南江县",
  16822. "平昌县",
  16823. "通江县"] },
  16824. {
  16825. "name": "资阳市",
  16826. "area": [
  16827. "雁江区",
  16828. "简阳市",
  16829. "安岳县",
  16830. "乐至县"] },
  16831. {
  16832. "name": "阿坝藏族羌族自治州",
  16833. "area": [
  16834. "马尔康县",
  16835. "九寨沟县",
  16836. "红原县",
  16837. "汶川县",
  16838. "阿坝县",
  16839. "理县",
  16840. "若尔盖县",
  16841. "小金县",
  16842. "黑水县",
  16843. "金川县",
  16844. "松潘县",
  16845. "壤塘县",
  16846. "茂县"] },
  16847. {
  16848. "name": "甘孜藏族自治州",
  16849. "area": [
  16850. "康定县",
  16851. "丹巴县",
  16852. "炉霍县",
  16853. "九龙县",
  16854. "甘孜县",
  16855. "雅江县",
  16856. "新龙县",
  16857. "道孚县",
  16858. "白玉县",
  16859. "理塘县",
  16860. "德格县",
  16861. "乡城县",
  16862. "石渠县",
  16863. "稻城县",
  16864. "色达县",
  16865. "巴塘县",
  16866. "泸定县",
  16867. "得荣县"] },
  16868. {
  16869. "name": "凉山彝族自治州",
  16870. "area": [
  16871. "西昌市",
  16872. "美姑县",
  16873. "昭觉县",
  16874. "金阳县",
  16875. "甘洛县",
  16876. "布拖县",
  16877. "雷波县",
  16878. "普格县",
  16879. "宁南县",
  16880. "喜德县",
  16881. "会东县",
  16882. "越西县",
  16883. "会理县",
  16884. "盐源县",
  16885. "德昌县",
  16886. "冕宁县",
  16887. "木里藏族自治县"] }] },
  16888. {
  16889. "name": "贵州省",
  16890. "city": [
  16891. {
  16892. "name": "贵阳市",
  16893. "area": [
  16894. "南明区",
  16895. "云岩区",
  16896. "花溪区",
  16897. "乌当区",
  16898. "白云区",
  16899. "小河区",
  16900. "清镇市",
  16901. "开阳县",
  16902. "修文县",
  16903. "息烽县"] },
  16904. {
  16905. "name": "六盘水市",
  16906. "area": [
  16907. "钟山区",
  16908. "水城县",
  16909. "盘县",
  16910. "六枝特区"] },
  16911. {
  16912. "name": "遵义市",
  16913. "area": [
  16914. "红花岗区",
  16915. "汇川区",
  16916. "赤水市",
  16917. "仁怀市",
  16918. "遵义县",
  16919. "绥阳县",
  16920. "桐梓县",
  16921. "习水县",
  16922. "凤冈县",
  16923. "正安县",
  16924. "余庆县",
  16925. "湄潭县",
  16926. "道真仡佬族苗族自治县",
  16927. "务川仡佬族苗族自治县"] },
  16928. {
  16929. "name": "安顺市",
  16930. "area": [
  16931. "西秀区",
  16932. "普定县",
  16933. "平坝县",
  16934. "镇宁布依族苗族自治县",
  16935. "紫云苗族布依族自治县",
  16936. "关岭布依族苗族自治县"] },
  16937. {
  16938. "name": "铜仁地区",
  16939. "area": [
  16940. "铜仁市",
  16941. "德江县",
  16942. "江口县",
  16943. "思南县",
  16944. "石阡县",
  16945. "玉屏侗族自治县",
  16946. "松桃苗族自治县",
  16947. "印江土家族苗族自治县",
  16948. "沿河土家族自治县",
  16949. "万山特区"] },
  16950. {
  16951. "name": "毕节地区",
  16952. "area": [
  16953. "毕节市",
  16954. "黔西县",
  16955. "大方县",
  16956. "织金县",
  16957. "金沙县",
  16958. "赫章县",
  16959. "纳雍县",
  16960. "威宁彝族回族苗族自治县"] },
  16961. {
  16962. "name": "黔西南布依族苗族自治州",
  16963. "area": [
  16964. "兴义市",
  16965. "望谟县",
  16966. "兴仁县",
  16967. "普安县",
  16968. "册亨县",
  16969. "晴隆县",
  16970. "贞丰县",
  16971. "安龙县"] },
  16972. {
  16973. "name": "黔东南苗族侗族自治州",
  16974. "area": [
  16975. "凯里市",
  16976. "施秉县",
  16977. "从江县",
  16978. "锦屏县",
  16979. "镇远县",
  16980. "麻江县",
  16981. "台江县",
  16982. "天柱县",
  16983. "黄平县",
  16984. "榕江县",
  16985. "剑河县",
  16986. "三穗县",
  16987. "雷山县",
  16988. "黎平县",
  16989. "岑巩县",
  16990. "丹寨县"] },
  16991. {
  16992. "name": "黔南布依族苗族自治州",
  16993. "area": [
  16994. "都匀市",
  16995. "福泉市",
  16996. "贵定县",
  16997. "惠水县",
  16998. "罗甸县",
  16999. "瓮安县",
  17000. "荔波县",
  17001. "龙里县",
  17002. "平塘县",
  17003. "长顺县",
  17004. "独山县",
  17005. "三都水族自治县"] }] },
  17006. {
  17007. "name": "云南省",
  17008. "city": [
  17009. {
  17010. "name": "昆明市",
  17011. "area": [
  17012. "盘龙区",
  17013. "五华区",
  17014. "官渡区",
  17015. "西山区",
  17016. "东川区",
  17017. "安宁市",
  17018. "呈贡县",
  17019. "晋宁县",
  17020. "富民县",
  17021. "宜良县",
  17022. "嵩明县",
  17023. "石林彝族自治县",
  17024. "禄劝彝族苗族自治县",
  17025. "寻甸回族彝族自治县"] },
  17026. {
  17027. "name": "曲靖市",
  17028. "area": [
  17029. "麒麟区",
  17030. "宣威市",
  17031. "马龙县",
  17032. "沾益县",
  17033. "富源县",
  17034. "罗平县",
  17035. "师宗县",
  17036. "陆良县",
  17037. "会泽县"] },
  17038. {
  17039. "name": "玉溪市",
  17040. "area": [
  17041. "红塔区",
  17042. "江川县",
  17043. "澄江县",
  17044. "通海县",
  17045. "华宁县",
  17046. "易门县",
  17047. "峨山彝族自治县",
  17048. "新平彝族傣族自治县",
  17049. "元江哈尼族彝族傣族自治县"] },
  17050. {
  17051. "name": "保山市",
  17052. "area": [
  17053. "隆阳区",
  17054. "施甸县",
  17055. "腾冲县",
  17056. "龙陵县",
  17057. "昌宁县"] },
  17058. {
  17059. "name": "昭通市",
  17060. "area": [
  17061. "昭阳区",
  17062. "鲁甸县",
  17063. "巧家县",
  17064. "盐津县",
  17065. "大关县",
  17066. "永善县",
  17067. "绥江县",
  17068. "镇雄县",
  17069. "彝良县",
  17070. "威信县",
  17071. "水富县"] },
  17072. {
  17073. "name": "丽江市",
  17074. "area": [
  17075. "古城区",
  17076. "永胜县",
  17077. "华坪县",
  17078. "玉龙纳西族自治县",
  17079. "宁蒗彝族自治县"] },
  17080. {
  17081. "name": "普洱市",
  17082. "area": [
  17083. "思茅区",
  17084. "普洱哈尼族彝族自治县",
  17085. "墨江哈尼族自治县",
  17086. "景东彝族自治县",
  17087. "景谷傣族彝族自治县",
  17088. "镇沅彝族哈尼族拉祜族自治县",
  17089. "江城哈尼族彝族自治县",
  17090. "孟连傣族拉祜族佤族自治县",
  17091. "澜沧拉祜族自治县",
  17092. "西盟佤族自治县"] },
  17093. {
  17094. "name": "临沧市",
  17095. "area": [
  17096. "临翔区",
  17097. "凤庆县",
  17098. "云县",
  17099. "永德县",
  17100. "镇康县",
  17101. "双江拉祜族佤族布朗族傣族自治县",
  17102. "耿马傣族佤族自治县",
  17103. "沧源佤族自治县"] },
  17104. {
  17105. "name": "德宏傣族景颇族自治州",
  17106. "area": [
  17107. "潞西市",
  17108. "瑞丽市",
  17109. "梁河县",
  17110. "盈江县",
  17111. "陇川县"] },
  17112. {
  17113. "name": "怒江傈僳族自治州",
  17114. "area": [
  17115. "泸水县",
  17116. "福贡县",
  17117. "贡山独龙族怒族自治县",
  17118. "兰坪白族普米族自治县"] },
  17119. {
  17120. "name": "迪庆藏族自治州",
  17121. "area": [
  17122. "香格里拉县",
  17123. "德钦县",
  17124. "维西傈僳族自治县"] },
  17125. {
  17126. "name": "大理白族自治州",
  17127. "area": [
  17128. "大理市",
  17129. "祥云县",
  17130. "宾川县",
  17131. "弥渡县",
  17132. "永平县",
  17133. "云龙县",
  17134. "洱源县",
  17135. "剑川县",
  17136. "鹤庆县",
  17137. "漾濞彝族自治县",
  17138. "南涧彝族自治县",
  17139. "巍山彝族回族自治县"] },
  17140. {
  17141. "name": "楚雄彝族自治州",
  17142. "area": [
  17143. "楚雄市",
  17144. "双柏县",
  17145. "牟定县",
  17146. "南华县",
  17147. "姚安县",
  17148. "大姚县",
  17149. "永仁县",
  17150. "元谋县",
  17151. "武定县",
  17152. "禄丰县"] },
  17153. {
  17154. "name": "红河哈尼族彝族自治州",
  17155. "area": [
  17156. "蒙自县",
  17157. "个旧市",
  17158. "开远市",
  17159. "绿春县",
  17160. "建水县",
  17161. "石屏县",
  17162. "弥勒县",
  17163. "泸西县",
  17164. "元阳县",
  17165. "红河县",
  17166. "金平苗族瑶族傣族自治县",
  17167. "河口瑶族自治县",
  17168. "屏边苗族自治县"] },
  17169. {
  17170. "name": "文山壮族苗族自治州",
  17171. "area": [
  17172. "文山县",
  17173. "砚山县",
  17174. "西畴县",
  17175. "麻栗坡县",
  17176. "马关县",
  17177. "丘北县",
  17178. "广南县",
  17179. "富宁县"] },
  17180. {
  17181. "name": "西双版纳傣族自治州",
  17182. "area": [
  17183. "景洪市",
  17184. "勐海县",
  17185. "勐腊县"] }] },
  17186. {
  17187. "name": "西藏",
  17188. "city": [
  17189. {
  17190. "name": "拉萨市",
  17191. "area": [
  17192. "城关区",
  17193. "林周县",
  17194. "当雄县",
  17195. "尼木县",
  17196. "曲水县",
  17197. "堆龙德庆县",
  17198. "达孜县",
  17199. "墨竹工卡县"] },
  17200. {
  17201. "name": "那曲地区",
  17202. "area": [
  17203. "那曲县",
  17204. "嘉黎县",
  17205. "比如县",
  17206. "聂荣县",
  17207. "安多县",
  17208. "申扎县",
  17209. "索县",
  17210. "班戈县",
  17211. "巴青县",
  17212. "尼玛县"] },
  17213. {
  17214. "name": "昌都地区",
  17215. "area": [
  17216. "昌都县",
  17217. "江达县",
  17218. "贡觉县",
  17219. "类乌齐县",
  17220. "丁青县",
  17221. "察雅县",
  17222. "八宿县",
  17223. "左贡县",
  17224. "芒康县",
  17225. "洛隆县",
  17226. "边坝县"] },
  17227. {
  17228. "name": "林芝地区",
  17229. "area": [
  17230. "林芝县",
  17231. "工布江达县",
  17232. "米林县",
  17233. "墨脱县",
  17234. "波密县",
  17235. "察隅县",
  17236. "朗县"] },
  17237. {
  17238. "name": "山南地区",
  17239. "area": [
  17240. "乃东县",
  17241. "扎囊县",
  17242. "贡嘎县",
  17243. "桑日县",
  17244. "琼结县",
  17245. "曲松县",
  17246. "措美县",
  17247. "洛扎县",
  17248. "加查县",
  17249. "隆子县",
  17250. "错那县",
  17251. "浪卡子县"] },
  17252. {
  17253. "name": "日喀则地区",
  17254. "area": [
  17255. "日喀则市",
  17256. "南木林县",
  17257. "江孜县",
  17258. "定日县",
  17259. "萨迦县",
  17260. "拉孜县",
  17261. "昂仁县",
  17262. "谢通门县",
  17263. "白朗县",
  17264. "仁布县",
  17265. "康马县",
  17266. "定结县",
  17267. "仲巴县",
  17268. "亚东县",
  17269. "吉隆县",
  17270. "聂拉木县",
  17271. "萨嘎县",
  17272. "岗巴县"] },
  17273. {
  17274. "name": "阿里地区",
  17275. "area": [
  17276. "噶尔县",
  17277. "普兰县",
  17278. "札达县",
  17279. "日土县",
  17280. "革吉县",
  17281. "改则县",
  17282. "措勤县"] }] },
  17283. {
  17284. "name": "陕西省",
  17285. "city": [
  17286. {
  17287. "name": "西安市",
  17288. "area": [
  17289. "莲湖区",
  17290. "新城区",
  17291. "碑林区",
  17292. "雁塔区",
  17293. "灞桥区",
  17294. "未央区",
  17295. "阎良区",
  17296. "临潼区",
  17297. "长安区",
  17298. "高陵县",
  17299. "蓝田县",
  17300. "户县",
  17301. "周至县"] },
  17302. {
  17303. "name": "铜川市",
  17304. "area": [
  17305. "耀州区",
  17306. "王益区",
  17307. "印台区",
  17308. "宜君县"] },
  17309. {
  17310. "name": "宝鸡市",
  17311. "area": [
  17312. "渭滨区",
  17313. "金台区",
  17314. "陈仓区",
  17315. "岐山县",
  17316. "凤翔县",
  17317. "陇县",
  17318. "太白县",
  17319. "麟游县",
  17320. "扶风县",
  17321. "千阳县",
  17322. "眉县",
  17323. "凤县"] },
  17324. {
  17325. "name": "咸阳市",
  17326. "area": [
  17327. "秦都区",
  17328. "渭城区",
  17329. "杨陵区",
  17330. "兴平市",
  17331. "礼泉县",
  17332. "泾阳县",
  17333. "永寿县",
  17334. "三原县",
  17335. "彬县",
  17336. "旬邑县",
  17337. "长武县",
  17338. "乾县",
  17339. "武功县",
  17340. "淳化县"] },
  17341. {
  17342. "name": "渭南市",
  17343. "area": [
  17344. "临渭区",
  17345. "韩城市",
  17346. "华阴市",
  17347. "蒲城县",
  17348. "潼关县",
  17349. "白水县",
  17350. "澄城县",
  17351. "华县",
  17352. "合阳县",
  17353. "富平县",
  17354. "大荔县"] },
  17355. {
  17356. "name": "延安市",
  17357. "area": [
  17358. "宝塔区",
  17359. "安塞县",
  17360. "洛川县",
  17361. "子长县",
  17362. "黄陵县",
  17363. "延川县",
  17364. "富县",
  17365. "延长县",
  17366. "甘泉县",
  17367. "宜川县",
  17368. "志丹县",
  17369. "黄龙县",
  17370. "吴起县"] },
  17371. {
  17372. "name": "汉中市",
  17373. "area": [
  17374. "汉台区",
  17375. "留坝县",
  17376. "镇巴县",
  17377. "城固县",
  17378. "南郑县",
  17379. "洋县",
  17380. "宁强县",
  17381. "佛坪县",
  17382. "勉县",
  17383. "西乡县",
  17384. "略阳县"] },
  17385. {
  17386. "name": "榆林市",
  17387. "area": [
  17388. "榆阳区",
  17389. "清涧县",
  17390. "绥德县",
  17391. "神木县",
  17392. "佳县",
  17393. "府谷县",
  17394. "子洲县",
  17395. "靖边县",
  17396. "横山县",
  17397. "米脂县",
  17398. "吴堡县",
  17399. "定边县"] },
  17400. {
  17401. "name": "安康市",
  17402. "area": [
  17403. "汉滨区",
  17404. "紫阳县",
  17405. "岚皋县",
  17406. "旬阳县",
  17407. "镇坪县",
  17408. "平利县",
  17409. "石泉县",
  17410. "宁陕县",
  17411. "白河县",
  17412. "汉阴县"] },
  17413. {
  17414. "name": "商洛市",
  17415. "area": [
  17416. "商州区",
  17417. "镇安县",
  17418. "山阳县",
  17419. "洛南县",
  17420. "商南县",
  17421. "丹凤县",
  17422. "柞水县"] }] },
  17423. {
  17424. "name": "甘肃省",
  17425. "city": [
  17426. {
  17427. "name": "兰州市",
  17428. "area": [
  17429. "城关区",
  17430. "七里河区",
  17431. "西固区",
  17432. "安宁区",
  17433. "红古区",
  17434. "永登县",
  17435. "皋兰县",
  17436. "榆中县"] },
  17437. {
  17438. "name": "嘉峪关市",
  17439. "area": [
  17440. "嘉峪关市"] },
  17441. {
  17442. "name": "金昌市",
  17443. "area": [
  17444. "金川区",
  17445. "永昌县"] },
  17446. {
  17447. "name": "白银市",
  17448. "area": [
  17449. "白银区",
  17450. "平川区",
  17451. "靖远县",
  17452. "会宁县",
  17453. "景泰县"] },
  17454. {
  17455. "name": "天水市",
  17456. "area": [
  17457. "清水县",
  17458. "秦安县",
  17459. "甘谷县",
  17460. "武山县",
  17461. "张家川回族自治县",
  17462. "北道区",
  17463. "秦城区"] },
  17464. {
  17465. "name": "武威市",
  17466. "area": [
  17467. "凉州区",
  17468. "民勤县",
  17469. "古浪县",
  17470. "天祝藏族自治县"] },
  17471. {
  17472. "name": "酒泉市",
  17473. "area": [
  17474. "肃州区",
  17475. "玉门市",
  17476. "敦煌市",
  17477. "金塔县",
  17478. "肃北蒙古族自治县",
  17479. "阿克塞哈萨克族自治县",
  17480. "安西县"] },
  17481. {
  17482. "name": "张掖市",
  17483. "area": [
  17484. "甘州区",
  17485. "民乐县",
  17486. "临泽县",
  17487. "高台县",
  17488. "山丹县",
  17489. "肃南裕固族自治县"] },
  17490. {
  17491. "name": "庆阳市",
  17492. "area": [
  17493. "西峰区",
  17494. "庆城县",
  17495. "环县",
  17496. "华池县",
  17497. "合水县",
  17498. "正宁县",
  17499. "宁县",
  17500. "镇原县"] },
  17501. {
  17502. "name": "平凉市",
  17503. "area": [
  17504. "崆峒区",
  17505. "泾川县",
  17506. "灵台县",
  17507. "崇信县",
  17508. "华亭县",
  17509. "庄浪县",
  17510. "静宁县"] },
  17511. {
  17512. "name": "定西市",
  17513. "area": [
  17514. "安定区",
  17515. "通渭县",
  17516. "临洮县",
  17517. "漳县",
  17518. "岷县",
  17519. "渭源县",
  17520. "陇西县"] },
  17521. {
  17522. "name": "陇南市",
  17523. "area": [
  17524. "武都区",
  17525. "成县",
  17526. "宕昌县",
  17527. "康县",
  17528. "文县",
  17529. "西和县",
  17530. "礼县",
  17531. "两当县",
  17532. "徽县"] },
  17533. {
  17534. "name": "临夏回族自治州",
  17535. "area": [
  17536. "临夏市",
  17537. "临夏县",
  17538. "康乐县",
  17539. "永靖县",
  17540. "广河县",
  17541. "和政县",
  17542. "东乡族自治县",
  17543. "积石山保安族东乡族撒拉族自治县"] },
  17544. {
  17545. "name": "甘南藏族自治州",
  17546. "area": [
  17547. "合作市",
  17548. "临潭县",
  17549. "卓尼县",
  17550. "舟曲县",
  17551. "迭部县",
  17552. "玛曲县",
  17553. "碌曲县",
  17554. "夏河县"] }] },
  17555. {
  17556. "name": "青海省",
  17557. "city": [
  17558. {
  17559. "name": "西宁市",
  17560. "area": [
  17561. "城中区",
  17562. "城东区",
  17563. "城西区",
  17564. "城北区",
  17565. "湟源县",
  17566. "湟中县",
  17567. "大通回族土族自治县"] },
  17568. {
  17569. "name": "海东地区",
  17570. "area": [
  17571. "平安县",
  17572. "乐都县",
  17573. "民和回族土族自治县",
  17574. "互助土族自治县",
  17575. "化隆回族自治县",
  17576. "循化撒拉族自治县"] },
  17577. {
  17578. "name": "海北藏族自治州",
  17579. "area": [
  17580. "海晏县",
  17581. "祁连县",
  17582. "刚察县",
  17583. "门源回族自治县"] },
  17584. {
  17585. "name": "海南藏族自治州",
  17586. "area": [
  17587. "共和县",
  17588. "同德县",
  17589. "贵德县",
  17590. "兴海县",
  17591. "贵南县"] },
  17592. {
  17593. "name": "黄南藏族自治州",
  17594. "area": [
  17595. "同仁县",
  17596. "尖扎县",
  17597. "泽库县",
  17598. "河南蒙古族自治县"] },
  17599. {
  17600. "name": "果洛藏族自治州",
  17601. "area": [
  17602. "玛沁县",
  17603. "班玛县",
  17604. "甘德县",
  17605. "达日县",
  17606. "久治县",
  17607. "玛多县"] },
  17608. {
  17609. "name": "玉树藏族自治州",
  17610. "area": [
  17611. "玉树县",
  17612. "杂多县",
  17613. "称多县",
  17614. "治多县",
  17615. "囊谦县",
  17616. "曲麻莱县"] },
  17617. {
  17618. "name": "海西蒙古族藏族自治州",
  17619. "area": [
  17620. "德令哈市",
  17621. "格尔木市",
  17622. "乌兰县",
  17623. "都兰县",
  17624. "天峻县"] }] },
  17625. {
  17626. "name": "宁夏",
  17627. "city": [
  17628. {
  17629. "name": "银川市",
  17630. "area": [
  17631. "兴庆区",
  17632. "西夏区",
  17633. "金凤区",
  17634. "灵武市",
  17635. "永宁县",
  17636. "贺兰县"] },
  17637. {
  17638. "name": "石嘴山市",
  17639. "area": [
  17640. "大武口区",
  17641. "惠农区",
  17642. "平罗县"] },
  17643. {
  17644. "name": "吴忠市",
  17645. "area": [
  17646. "利通区",
  17647. "青铜峡市",
  17648. "盐池县",
  17649. "同心县"] },
  17650. {
  17651. "name": "固原市",
  17652. "area": [
  17653. "原州区",
  17654. "西吉县",
  17655. "隆德县",
  17656. "泾源县",
  17657. "彭阳县"] },
  17658. {
  17659. "name": "中卫市",
  17660. "area": [
  17661. "沙坡头区",
  17662. "中宁县",
  17663. "海原县"] }] },
  17664. {
  17665. "name": "新疆",
  17666. "city": [
  17667. {
  17668. "name": "乌鲁木齐市",
  17669. "area": [
  17670. "天山区",
  17671. "沙依巴克区",
  17672. "新市区",
  17673. "水磨沟区",
  17674. "头屯河区",
  17675. "达坂城区",
  17676. "东山区",
  17677. "乌鲁木齐县"] },
  17678. {
  17679. "name": "克拉玛依市",
  17680. "area": [
  17681. "克拉玛依区",
  17682. "独山子区",
  17683. "白碱滩区",
  17684. "乌尔禾区"] },
  17685. {
  17686. "name": "吐鲁番地区",
  17687. "area": [
  17688. "吐鲁番市",
  17689. "托克逊县",
  17690. "鄯善县"] },
  17691. {
  17692. "name": "哈密地区",
  17693. "area": [
  17694. "哈密市",
  17695. "伊吾县",
  17696. "巴里坤哈萨克自治县"] },
  17697. {
  17698. "name": "和田地区",
  17699. "area": [
  17700. "和田市",
  17701. "和田县",
  17702. "洛浦县",
  17703. "民丰县",
  17704. "皮山县",
  17705. "策勒县",
  17706. "于田县",
  17707. "墨玉县"] },
  17708. {
  17709. "name": "阿克苏地区",
  17710. "area": [
  17711. "阿克苏市",
  17712. "温宿县",
  17713. "沙雅县",
  17714. "拜城县",
  17715. "阿瓦提县",
  17716. "库车县",
  17717. "柯坪县",
  17718. "新和县",
  17719. "乌什县"] },
  17720. {
  17721. "name": "喀什地区",
  17722. "area": [
  17723. "喀什市",
  17724. "巴楚县",
  17725. "泽普县",
  17726. "伽师县",
  17727. "叶城县",
  17728. "岳普湖县",
  17729. "疏勒县",
  17730. "麦盖提县",
  17731. "英吉沙县",
  17732. "莎车县",
  17733. "疏附县",
  17734. "塔什库尔干塔吉克自治县"] },
  17735. {
  17736. "name": "克孜勒苏柯尔克孜自治州",
  17737. "area": [
  17738. "阿图什市",
  17739. "阿合奇县",
  17740. "乌恰县",
  17741. "阿克陶县"] },
  17742. {
  17743. "name": "巴音郭楞蒙古自治州",
  17744. "area": [
  17745. "库尔勒市",
  17746. "和静县",
  17747. "尉犁县",
  17748. "和硕县",
  17749. "且末县",
  17750. "博湖县",
  17751. "轮台县",
  17752. "若羌县",
  17753. "焉耆回族自治县"] },
  17754. {
  17755. "name": "昌吉回族自治州",
  17756. "area": [
  17757. "昌吉市",
  17758. "阜康市",
  17759. "奇台县",
  17760. "玛纳斯县",
  17761. "吉木萨尔县",
  17762. "呼图壁县",
  17763. "木垒哈萨克自治县",
  17764. "米泉市"] },
  17765. {
  17766. "name": "博尔塔拉蒙古自治州",
  17767. "area": [
  17768. "博乐市",
  17769. "精河县",
  17770. "温泉县"] },
  17771. {
  17772. "name": "石河子",
  17773. "area": [
  17774. "石河子"] },
  17775. {
  17776. "name": "阿拉尔",
  17777. "area": [
  17778. "阿拉尔"] },
  17779. {
  17780. "name": "图木舒克",
  17781. "area": [
  17782. "图木舒克"] },
  17783. {
  17784. "name": "五家渠",
  17785. "area": [
  17786. "五家渠"] },
  17787. {
  17788. "name": "伊犁哈萨克自治州",
  17789. "area": [
  17790. "伊宁市",
  17791. "奎屯市",
  17792. "伊宁县",
  17793. "特克斯县",
  17794. "尼勒克县",
  17795. "昭苏县",
  17796. "新源县",
  17797. "霍城县",
  17798. "巩留县",
  17799. "察布查尔锡伯自治县",
  17800. "塔城地区",
  17801. "阿勒泰地区"] }] },
  17802. {
  17803. "name": "台湾省",
  17804. "city": [
  17805. {
  17806. "name": "台北市",
  17807. "area": [
  17808. "内湖区",
  17809. "南港区",
  17810. "中正区",
  17811. "万华区",
  17812. "大同区",
  17813. "中山区",
  17814. "松山区",
  17815. "大安区",
  17816. "信义区",
  17817. "文山区",
  17818. "士林区",
  17819. "北投区"] },
  17820. {
  17821. "name": "新北市",
  17822. "area": [
  17823. "板桥区",
  17824. "汐止区",
  17825. "新店区"] },
  17826. {
  17827. "name": "桃园市",
  17828. "area": [
  17829. "其他"] },
  17830. {
  17831. "name": "台中市",
  17832. "area": [
  17833. "其他"] },
  17834. {
  17835. "name": "台南市",
  17836. "area": [
  17837. "其他"] },
  17838. {
  17839. "name": "高雄市",
  17840. "area": [
  17841. "其他"] }] },
  17842. {
  17843. "name": "澳门",
  17844. "city": [
  17845. {
  17846. "name": "澳门",
  17847. "area": [
  17848. "花地玛堂区",
  17849. "圣安多尼堂区",
  17850. "大堂区",
  17851. "望德堂区",
  17852. "风顺堂区",
  17853. "嘉模堂区",
  17854. "圣方济各堂区",
  17855. "路凼"] }] },
  17856. {
  17857. "name": "香港",
  17858. "city": [
  17859. {
  17860. "name": "香港",
  17861. "area": [
  17862. "深水埗区",
  17863. "油尖旺区",
  17864. "九龙城区",
  17865. "黄大仙区",
  17866. "观塘区",
  17867. "北区",
  17868. "大埔区",
  17869. "沙田区",
  17870. "西贡区",
  17871. "元朗区",
  17872. "屯门区",
  17873. "荃湾区",
  17874. "葵青区",
  17875. "离岛区",
  17876. "中西区",
  17877. "湾仔区",
  17878. "东区",
  17879. "南区"] }] }];exports.default = _default;
  17880. /***/ }),
  17881. /***/ 75:
  17882. /*!***********************************************************!*\
  17883. !*** D:/2022/7/hqshop/static/tabBar/tab-pink-current.png ***!
  17884. \***********************************************************/
  17885. /*! no static exports found */
  17886. /***/ (function(module, exports) {
  17887. module.exports = "data:image/png;base64,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"
  17888. /***/ }),
  17889. /***/ 76:
  17890. /*!***************************************!*\
  17891. !*** D:/2022/7/hqshop/api/product.js ***!
  17892. \***************************************/
  17893. /*! no static exports found */
  17894. /***/ (function(module, exports, __webpack_require__) {
  17895. "use strict";
  17896. Object.defineProperty(exports, "__esModule", { value: true });exports.getProducts = getProducts;exports.goodsDetail = goodsDetail;exports.getBargainList = getBargainList;exports.cartAdd = cartAdd;exports.collectAdd = collectAdd;exports.collectDel = collectDel;exports.searchKeyword = searchKeyword;exports.groomList = groomList;exports.seckillGoods = seckillGoods;exports.groupGoods = groupGoods;exports.getCategoryList = getCategoryList;exports.getCombinationList = getCombinationList;exports.getCombinationLisRemove = getCombinationLisRemove;exports.getCombinationLisPink = getCombinationLisPink;exports.getCombinationPoster = getCombinationPoster;exports.getSeckillClass = getSeckillClass;exports.getSeckillList = getSeckillList;exports.reply_config = reply_config;exports.reply_list = reply_list;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  17897. // 获取商品列表
  17898. function getProducts(data) {
  17899. // {
  17900. // 参数名称 是否必须 示例 备注
  17901. // sid 否 二级分类编号
  17902. // cid 否 一级分类编号(!)
  17903. // keyword 否 搜索
  17904. // priceOrder 否 价格排序
  17905. // salesOrder 否 销量排序
  17906. // news 否 是否新品
  17907. // page 否 分页参数起始值
  17908. // limit 否 分页数步长值
  17909. // }
  17910. return (0, _request.default)({
  17911. url: '/api/products',
  17912. method: 'get',
  17913. data: data });
  17914. }
  17915. // 获取商品详情
  17916. function goodsDetail(data, id) {
  17917. return (0, _request.default)({
  17918. url: '/api/product/detail/' + id,
  17919. method: 'get',
  17920. data: data });
  17921. }
  17922. // 砍价列表
  17923. function getBargainList(data) {
  17924. return (0, _request.default)({
  17925. url: '/api/bargain/list',
  17926. method: 'get',
  17927. data: data });
  17928. }
  17929. // 加入购物车
  17930. function cartAdd(data) {
  17931. return (0, _request.default)({
  17932. url: '/api/cart/add',
  17933. method: 'post',
  17934. data: data });
  17935. }
  17936. // 收藏商品
  17937. function collectAdd(data) {
  17938. return (0, _request.default)({
  17939. url: '/api/collect/add',
  17940. method: 'post',
  17941. data: data });
  17942. }
  17943. // 取消收藏商品
  17944. function collectDel(data) {
  17945. return (0, _request.default)({
  17946. url: '/api/collect/del',
  17947. method: 'post',
  17948. data: data });
  17949. }
  17950. // 获取搜搜关键字
  17951. function searchKeyword(data) {
  17952. return (0, _request.default)({
  17953. url: '/api/search/keyword',
  17954. method: 'get',
  17955. data: data });
  17956. }
  17957. // 获取热门分类信息
  17958. function groomList(data, type) {
  17959. // 获取产品类型 1 精品推荐 2 热门榜单 3首发新品 4促销单品
  17960. return (0, _request.default)({
  17961. url: '/api/groom/list/' + type,
  17962. method: 'get',
  17963. data: data });
  17964. }
  17965. // 获取秒杀商品详细
  17966. function seckillGoods(data, id) {
  17967. return (0, _request.default)({
  17968. url: '/api/seckill/detail/' + id,
  17969. method: 'get',
  17970. data: data });
  17971. }
  17972. // 获取拼团商品详细
  17973. function groupGoods(data, id) {
  17974. return (0, _request.default)({
  17975. url: '/api/combination/detail/' + id,
  17976. method: 'get',
  17977. data: data });
  17978. }
  17979. // 获取商品分类
  17980. function getCategoryList(data) {
  17981. return (0, _request.default)({
  17982. url: '/api/category',
  17983. method: 'get',
  17984. data: data });
  17985. }
  17986. // 获取拼团列表
  17987. function getCombinationList(data) {
  17988. return (0, _request.default)({
  17989. url: '/api/combination/list',
  17990. method: 'get',
  17991. data: data });
  17992. }
  17993. //取消拼团
  17994. function getCombinationLisRemove(data, id) {
  17995. return (0, _request.default)({
  17996. url: '/api/combination/remove' + id,
  17997. method: 'get',
  17998. data: data });
  17999. }
  18000. //拼团开团页面数据
  18001. function getCombinationLisPink(data, id) {
  18002. return (0, _request.default)({
  18003. url: '/api/combination/pink/' + id,
  18004. method: 'get',
  18005. data: data });
  18006. }
  18007. // 获取拼团海报
  18008. function getCombinationPoster(data) {
  18009. return (0, _request.default)({
  18010. url: '/api/combination/poster',
  18011. method: 'post',
  18012. data: data });
  18013. }
  18014. // 获取秒杀分类
  18015. function getSeckillClass(data) {
  18016. return (0, _request.default)({
  18017. url: '/api/seckill/index',
  18018. method: 'get',
  18019. data: data });
  18020. }
  18021. // 获取秒杀列表
  18022. function getSeckillList(data, id) {
  18023. return (0, _request.default)({
  18024. url: '/api/seckill/list/' + id,
  18025. method: 'get',
  18026. data: data });
  18027. }
  18028. // 产品评价数量和好评度
  18029. function reply_config(data, id) {
  18030. return (0, _request.default)({
  18031. url: '/api/reply/config/' + id,
  18032. method: 'get',
  18033. data: data });
  18034. }
  18035. // 获取产品评论
  18036. function reply_list(data, id) {
  18037. return (0, _request.default)({
  18038. url: '/api/reply/list/' + id,
  18039. method: 'get',
  18040. data: data });
  18041. }
  18042. /***/ }),
  18043. /***/ 776:
  18044. /*!******************************************************!*\
  18045. !*** D:/2022/7/hqshop/uview-ui/libs/util/emitter.js ***!
  18046. \******************************************************/
  18047. /*! no static exports found */
  18048. /***/ (function(module, exports, __webpack_require__) {
  18049. "use strict";
  18050. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  18051. * 递归使用 call 方式this指向
  18052. * @param componentName // 需要找的组件的名称
  18053. * @param eventName // 事件名称
  18054. * @param params // 需要传递的参数
  18055. */
  18056. function _broadcast(componentName, eventName, params) {
  18057. // 循环子节点找到名称一样的子节点 否则 递归 当前子节点
  18058. this.$children.map(function (child) {
  18059. if (componentName === child.$options.name) {
  18060. child.$emit.apply(child, [eventName].concat(params));
  18061. } else {
  18062. _broadcast.apply(child, [componentName, eventName].concat(params));
  18063. }
  18064. });
  18065. }var _default =
  18066. {
  18067. methods: {
  18068. /**
  18069. * 派发 (向上查找) (一个)
  18070. * @param componentName // 需要找的组件的名称
  18071. * @param eventName // 事件名称
  18072. * @param params // 需要传递的参数
  18073. */
  18074. dispatch: function dispatch(componentName, eventName, params) {
  18075. var parent = this.$parent || this.$root; //$parent 找到最近的父节点 $root 根节点
  18076. var name = parent.$options.name; // 获取当前组件实例的name
  18077. // 如果当前有节点 && 当前没名称 且 当前名称等于需要传进来的名称的时候就去查找当前的节点
  18078. // 循环出当前名称的一样的组件实例
  18079. while (parent && (!name || name !== componentName)) {
  18080. parent = parent.$parent;
  18081. if (parent) {
  18082. name = parent.$options.name;
  18083. }
  18084. }
  18085. // 有节点表示当前找到了name一样的实例
  18086. if (parent) {
  18087. parent.$emit.apply(parent, [eventName].concat(params));
  18088. }
  18089. },
  18090. /**
  18091. * 广播 (向下查找) (广播多个)
  18092. * @param componentName // 需要找的组件的名称
  18093. * @param eventName // 事件名称
  18094. * @param params // 需要传递的参数
  18095. */
  18096. broadcast: function broadcast(componentName, eventName, params) {
  18097. _broadcast.call(this, componentName, eventName, params);
  18098. } } };exports.default = _default;
  18099. /***/ }),
  18100. /***/ 777:
  18101. /*!**************************************************************!*\
  18102. !*** D:/2022/7/hqshop/uview-ui/libs/util/async-validator.js ***!
  18103. \**************************************************************/
  18104. /*! no static exports found */
  18105. /***/ (function(module, exports, __webpack_require__) {
  18106. "use strict";
  18107. /* WEBPACK VAR INJECTION */(function(process) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function _extends() {
  18108. _extends = Object.assign || function (target) {
  18109. for (var i = 1; i < arguments.length; i++) {
  18110. var source = arguments[i];
  18111. for (var key in source) {
  18112. if (Object.prototype.hasOwnProperty.call(source, key)) {
  18113. target[key] = source[key];
  18114. }
  18115. }
  18116. }
  18117. return target;
  18118. };
  18119. return _extends.apply(this, arguments);
  18120. }
  18121. /* eslint no-console:0 */
  18122. var formatRegExp = /%[sdj%]/g;
  18123. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  18124. if (typeof process !== 'undefined' && Object({"VUE_APP_NAME":"随心购","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
  18125. 'undefined' && typeof document !== 'undefined') {
  18126. warning = function warning(type, errors) {
  18127. if (typeof console !== 'undefined' && console.warn) {
  18128. if (errors.every(function (e) {
  18129. return typeof e === 'string';
  18130. })) {
  18131. console.warn(type, errors);
  18132. }
  18133. }
  18134. };
  18135. }
  18136. function convertFieldsError(errors) {
  18137. if (!errors || !errors.length) return null;
  18138. var fields = {};
  18139. errors.forEach(function (error) {
  18140. var field = error.field;
  18141. fields[field] = fields[field] || [];
  18142. fields[field].push(error);
  18143. });
  18144. return fields;
  18145. }
  18146. function format() {
  18147. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  18148. args[_key] = arguments[_key];
  18149. }
  18150. var i = 1;
  18151. var f = args[0];
  18152. var len = args.length;
  18153. if (typeof f === 'function') {
  18154. return f.apply(null, args.slice(1));
  18155. }
  18156. if (typeof f === 'string') {
  18157. var str = String(f).replace(formatRegExp, function (x) {
  18158. if (x === '%%') {
  18159. return '%';
  18160. }
  18161. if (i >= len) {
  18162. return x;
  18163. }
  18164. switch (x) {
  18165. case '%s':
  18166. return String(args[i++]);
  18167. case '%d':
  18168. return Number(args[i++]);
  18169. case '%j':
  18170. try {
  18171. return JSON.stringify(args[i++]);
  18172. } catch (_) {
  18173. return '[Circular]';
  18174. }
  18175. break;
  18176. default:
  18177. return x;}
  18178. });
  18179. for (var arg = args[i]; i < len; arg = args[++i]) {
  18180. str += " " + arg;
  18181. }
  18182. return str;
  18183. }
  18184. return f;
  18185. }
  18186. function isNativeStringType(type) {
  18187. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  18188. }
  18189. function isEmptyValue(value, type) {
  18190. if (value === undefined || value === null) {
  18191. return true;
  18192. }
  18193. if (type === 'array' && Array.isArray(value) && !value.length) {
  18194. return true;
  18195. }
  18196. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  18197. return true;
  18198. }
  18199. return false;
  18200. }
  18201. function asyncParallelArray(arr, func, callback) {
  18202. var results = [];
  18203. var total = 0;
  18204. var arrLength = arr.length;
  18205. function count(errors) {
  18206. results.push.apply(results, errors);
  18207. total++;
  18208. if (total === arrLength) {
  18209. callback(results);
  18210. }
  18211. }
  18212. arr.forEach(function (a) {
  18213. func(a, count);
  18214. });
  18215. }
  18216. function asyncSerialArray(arr, func, callback) {
  18217. var index = 0;
  18218. var arrLength = arr.length;
  18219. function next(errors) {
  18220. if (errors && errors.length) {
  18221. callback(errors);
  18222. return;
  18223. }
  18224. var original = index;
  18225. index = index + 1;
  18226. if (original < arrLength) {
  18227. func(arr[original], next);
  18228. } else {
  18229. callback([]);
  18230. }
  18231. }
  18232. next([]);
  18233. }
  18234. function flattenObjArr(objArr) {
  18235. var ret = [];
  18236. Object.keys(objArr).forEach(function (k) {
  18237. ret.push.apply(ret, objArr[k]);
  18238. });
  18239. return ret;
  18240. }
  18241. function asyncMap(objArr, option, func, callback) {
  18242. if (option.first) {
  18243. var _pending = new Promise(function (resolve, reject) {
  18244. var next = function next(errors) {
  18245. callback(errors);
  18246. return errors.length ? reject({
  18247. errors: errors,
  18248. fields: convertFieldsError(errors) }) :
  18249. resolve();
  18250. };
  18251. var flattenArr = flattenObjArr(objArr);
  18252. asyncSerialArray(flattenArr, func, next);
  18253. });
  18254. _pending["catch"](function (e) {
  18255. return e;
  18256. });
  18257. return _pending;
  18258. }
  18259. var firstFields = option.firstFields || [];
  18260. if (firstFields === true) {
  18261. firstFields = Object.keys(objArr);
  18262. }
  18263. var objArrKeys = Object.keys(objArr);
  18264. var objArrLength = objArrKeys.length;
  18265. var total = 0;
  18266. var results = [];
  18267. var pending = new Promise(function (resolve, reject) {
  18268. var next = function next(errors) {
  18269. results.push.apply(results, errors);
  18270. total++;
  18271. if (total === objArrLength) {
  18272. callback(results);
  18273. return results.length ? reject({
  18274. errors: results,
  18275. fields: convertFieldsError(results) }) :
  18276. resolve();
  18277. }
  18278. };
  18279. if (!objArrKeys.length) {
  18280. callback(results);
  18281. resolve();
  18282. }
  18283. objArrKeys.forEach(function (key) {
  18284. var arr = objArr[key];
  18285. if (firstFields.indexOf(key) !== -1) {
  18286. asyncSerialArray(arr, func, next);
  18287. } else {
  18288. asyncParallelArray(arr, func, next);
  18289. }
  18290. });
  18291. });
  18292. pending["catch"](function (e) {
  18293. return e;
  18294. });
  18295. return pending;
  18296. }
  18297. function complementError(rule) {
  18298. return function (oe) {
  18299. if (oe && oe.message) {
  18300. oe.field = oe.field || rule.fullField;
  18301. return oe;
  18302. }
  18303. return {
  18304. message: typeof oe === 'function' ? oe() : oe,
  18305. field: oe.field || rule.fullField };
  18306. };
  18307. }
  18308. function deepMerge(target, source) {
  18309. if (source) {
  18310. for (var s in source) {
  18311. if (source.hasOwnProperty(s)) {
  18312. var value = source[s];
  18313. if (typeof value === 'object' && typeof target[s] === 'object') {
  18314. target[s] = _extends({}, target[s], {}, value);
  18315. } else {
  18316. target[s] = value;
  18317. }
  18318. }
  18319. }
  18320. }
  18321. return target;
  18322. }
  18323. /**
  18324. * Rule for validating required fields.
  18325. *
  18326. * @param rule The validation rule.
  18327. * @param value The value of the field on the source object.
  18328. * @param source The source object being validated.
  18329. * @param errors An array of errors that this rule may add
  18330. * validation errors to.
  18331. * @param options The validation options.
  18332. * @param options.messages The validation messages.
  18333. */
  18334. function required(rule, value, source, errors, options, type) {
  18335. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  18336. errors.push(format(options.messages.required, rule.fullField));
  18337. }
  18338. }
  18339. /**
  18340. * Rule for validating whitespace.
  18341. *
  18342. * @param rule The validation rule.
  18343. * @param value The value of the field on the source object.
  18344. * @param source The source object being validated.
  18345. * @param errors An array of errors that this rule may add
  18346. * validation errors to.
  18347. * @param options The validation options.
  18348. * @param options.messages The validation messages.
  18349. */
  18350. function whitespace(rule, value, source, errors, options) {
  18351. if (/^\s+$/.test(value) || value === '') {
  18352. errors.push(format(options.messages.whitespace, rule.fullField));
  18353. }
  18354. }
  18355. /* eslint max-len:0 */
  18356. var pattern = {
  18357. // http://emailregex.com/
  18358. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  18359. url: new RegExp(
  18360. "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
  18361. 'i'),
  18362. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i };
  18363. var types = {
  18364. integer: function integer(value) {
  18365. return types.number(value) && parseInt(value, 10) === value;
  18366. },
  18367. "float": function float(value) {
  18368. return types.number(value) && !types.integer(value);
  18369. },
  18370. array: function array(value) {
  18371. return Array.isArray(value);
  18372. },
  18373. regexp: function regexp(value) {
  18374. if (value instanceof RegExp) {
  18375. return true;
  18376. }
  18377. try {
  18378. return !!new RegExp(value);
  18379. } catch (e) {
  18380. return false;
  18381. }
  18382. },
  18383. date: function date(value) {
  18384. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear ===
  18385. 'function';
  18386. },
  18387. number: function number(value) {
  18388. if (isNaN(value)) {
  18389. return false;
  18390. }
  18391. // 修改源码,将字符串数值先转为数值
  18392. return typeof +value === 'number';
  18393. },
  18394. object: function object(value) {
  18395. return typeof value === 'object' && !types.array(value);
  18396. },
  18397. method: function method(value) {
  18398. return typeof value === 'function';
  18399. },
  18400. email: function email(value) {
  18401. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  18402. },
  18403. url: function url(value) {
  18404. return typeof value === 'string' && !!value.match(pattern.url);
  18405. },
  18406. hex: function hex(value) {
  18407. return typeof value === 'string' && !!value.match(pattern.hex);
  18408. } };
  18409. /**
  18410. * Rule for validating the type of a value.
  18411. *
  18412. * @param rule The validation rule.
  18413. * @param value The value of the field on the source object.
  18414. * @param source The source object being validated.
  18415. * @param errors An array of errors that this rule may add
  18416. * validation errors to.
  18417. * @param options The validation options.
  18418. * @param options.messages The validation messages.
  18419. */
  18420. function type(rule, value, source, errors, options) {
  18421. if (rule.required && value === undefined) {
  18422. required(rule, value, source, errors, options);
  18423. return;
  18424. }
  18425. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  18426. var ruleType = rule.type;
  18427. if (custom.indexOf(ruleType) > -1) {
  18428. if (!types[ruleType](value)) {
  18429. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  18430. } // straight typeof check
  18431. } else if (ruleType && typeof value !== rule.type) {
  18432. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  18433. }
  18434. }
  18435. /**
  18436. * Rule for validating minimum and maximum allowed values.
  18437. *
  18438. * @param rule The validation rule.
  18439. * @param value The value of the field on the source object.
  18440. * @param source The source object being validated.
  18441. * @param errors An array of errors that this rule may add
  18442. * validation errors to.
  18443. * @param options The validation options.
  18444. * @param options.messages The validation messages.
  18445. */
  18446. function range(rule, value, source, errors, options) {
  18447. var len = typeof rule.len === 'number';
  18448. var min = typeof rule.min === 'number';
  18449. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  18450. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  18451. var val = value;
  18452. var key = null;
  18453. var num = typeof value === 'number';
  18454. var str = typeof value === 'string';
  18455. var arr = Array.isArray(value);
  18456. if (num) {
  18457. key = 'number';
  18458. } else if (str) {
  18459. key = 'string';
  18460. } else if (arr) {
  18461. key = 'array';
  18462. } // if the value is not of a supported type for range validation
  18463. // the validation rule rule should use the
  18464. // type property to also test for a particular type
  18465. if (!key) {
  18466. return false;
  18467. }
  18468. if (arr) {
  18469. val = value.length;
  18470. }
  18471. if (str) {
  18472. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  18473. val = value.replace(spRegexp, '_').length;
  18474. }
  18475. if (len) {
  18476. if (val !== rule.len) {
  18477. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  18478. }
  18479. } else if (min && !max && val < rule.min) {
  18480. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  18481. } else if (max && !min && val > rule.max) {
  18482. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  18483. } else if (min && max && (val < rule.min || val > rule.max)) {
  18484. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  18485. }
  18486. }
  18487. var ENUM = 'enum';
  18488. /**
  18489. * Rule for validating a value exists in an enumerable list.
  18490. *
  18491. * @param rule The validation rule.
  18492. * @param value The value of the field on the source object.
  18493. * @param source The source object being validated.
  18494. * @param errors An array of errors that this rule may add
  18495. * validation errors to.
  18496. * @param options The validation options.
  18497. * @param options.messages The validation messages.
  18498. */
  18499. function enumerable(rule, value, source, errors, options) {
  18500. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  18501. if (rule[ENUM].indexOf(value) === -1) {
  18502. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  18503. }
  18504. }
  18505. /**
  18506. * Rule for validating a regular expression pattern.
  18507. *
  18508. * @param rule The validation rule.
  18509. * @param value The value of the field on the source object.
  18510. * @param source The source object being validated.
  18511. * @param errors An array of errors that this rule may add
  18512. * validation errors to.
  18513. * @param options The validation options.
  18514. * @param options.messages The validation messages.
  18515. */
  18516. function pattern$1(rule, value, source, errors, options) {
  18517. if (rule.pattern) {
  18518. if (rule.pattern instanceof RegExp) {
  18519. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  18520. // flag is accidentally set to `true`, which in a validation scenario
  18521. // is not necessary and the result might be misleading
  18522. rule.pattern.lastIndex = 0;
  18523. if (!rule.pattern.test(value)) {
  18524. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  18525. }
  18526. } else if (typeof rule.pattern === 'string') {
  18527. var _pattern = new RegExp(rule.pattern);
  18528. if (!_pattern.test(value)) {
  18529. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  18530. }
  18531. }
  18532. }
  18533. }
  18534. var rules = {
  18535. required: required,
  18536. whitespace: whitespace,
  18537. type: type,
  18538. range: range,
  18539. "enum": enumerable,
  18540. pattern: pattern$1 };
  18541. /**
  18542. * Performs validation for string types.
  18543. *
  18544. * @param rule The validation rule.
  18545. * @param value The value of the field on the source object.
  18546. * @param callback The callback function.
  18547. * @param source The source object being validated.
  18548. * @param options The validation options.
  18549. * @param options.messages The validation messages.
  18550. */
  18551. function string(rule, value, callback, source, options) {
  18552. var errors = [];
  18553. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18554. if (validate) {
  18555. if (isEmptyValue(value, 'string') && !rule.required) {
  18556. return callback();
  18557. }
  18558. rules.required(rule, value, source, errors, options, 'string');
  18559. if (!isEmptyValue(value, 'string')) {
  18560. rules.type(rule, value, source, errors, options);
  18561. rules.range(rule, value, source, errors, options);
  18562. rules.pattern(rule, value, source, errors, options);
  18563. if (rule.whitespace === true) {
  18564. rules.whitespace(rule, value, source, errors, options);
  18565. }
  18566. }
  18567. }
  18568. callback(errors);
  18569. }
  18570. /**
  18571. * Validates a function.
  18572. *
  18573. * @param rule The validation rule.
  18574. * @param value The value of the field on the source object.
  18575. * @param callback The callback function.
  18576. * @param source The source object being validated.
  18577. * @param options The validation options.
  18578. * @param options.messages The validation messages.
  18579. */
  18580. function method(rule, value, callback, source, options) {
  18581. var errors = [];
  18582. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18583. if (validate) {
  18584. if (isEmptyValue(value) && !rule.required) {
  18585. return callback();
  18586. }
  18587. rules.required(rule, value, source, errors, options);
  18588. if (value !== undefined) {
  18589. rules.type(rule, value, source, errors, options);
  18590. }
  18591. }
  18592. callback(errors);
  18593. }
  18594. /**
  18595. * Validates a number.
  18596. *
  18597. * @param rule The validation rule.
  18598. * @param value The value of the field on the source object.
  18599. * @param callback The callback function.
  18600. * @param source The source object being validated.
  18601. * @param options The validation options.
  18602. * @param options.messages The validation messages.
  18603. */
  18604. function number(rule, value, callback, source, options) {
  18605. var errors = [];
  18606. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18607. if (validate) {
  18608. if (value === '') {
  18609. value = undefined;
  18610. }
  18611. if (isEmptyValue(value) && !rule.required) {
  18612. return callback();
  18613. }
  18614. rules.required(rule, value, source, errors, options);
  18615. if (value !== undefined) {
  18616. rules.type(rule, value, source, errors, options);
  18617. rules.range(rule, value, source, errors, options);
  18618. }
  18619. }
  18620. callback(errors);
  18621. }
  18622. /**
  18623. * Validates a boolean.
  18624. *
  18625. * @param rule The validation rule.
  18626. * @param value The value of the field on the source object.
  18627. * @param callback The callback function.
  18628. * @param source The source object being validated.
  18629. * @param options The validation options.
  18630. * @param options.messages The validation messages.
  18631. */
  18632. function _boolean(rule, value, callback, source, options) {
  18633. var errors = [];
  18634. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18635. if (validate) {
  18636. if (isEmptyValue(value) && !rule.required) {
  18637. return callback();
  18638. }
  18639. rules.required(rule, value, source, errors, options);
  18640. if (value !== undefined) {
  18641. rules.type(rule, value, source, errors, options);
  18642. }
  18643. }
  18644. callback(errors);
  18645. }
  18646. /**
  18647. * Validates the regular expression type.
  18648. *
  18649. * @param rule The validation rule.
  18650. * @param value The value of the field on the source object.
  18651. * @param callback The callback function.
  18652. * @param source The source object being validated.
  18653. * @param options The validation options.
  18654. * @param options.messages The validation messages.
  18655. */
  18656. function regexp(rule, value, callback, source, options) {
  18657. var errors = [];
  18658. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18659. if (validate) {
  18660. if (isEmptyValue(value) && !rule.required) {
  18661. return callback();
  18662. }
  18663. rules.required(rule, value, source, errors, options);
  18664. if (!isEmptyValue(value)) {
  18665. rules.type(rule, value, source, errors, options);
  18666. }
  18667. }
  18668. callback(errors);
  18669. }
  18670. /**
  18671. * Validates a number is an integer.
  18672. *
  18673. * @param rule The validation rule.
  18674. * @param value The value of the field on the source object.
  18675. * @param callback The callback function.
  18676. * @param source The source object being validated.
  18677. * @param options The validation options.
  18678. * @param options.messages The validation messages.
  18679. */
  18680. function integer(rule, value, callback, source, options) {
  18681. var errors = [];
  18682. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18683. if (validate) {
  18684. if (isEmptyValue(value) && !rule.required) {
  18685. return callback();
  18686. }
  18687. rules.required(rule, value, source, errors, options);
  18688. if (value !== undefined) {
  18689. rules.type(rule, value, source, errors, options);
  18690. rules.range(rule, value, source, errors, options);
  18691. }
  18692. }
  18693. callback(errors);
  18694. }
  18695. /**
  18696. * Validates a number is a floating point number.
  18697. *
  18698. * @param rule The validation rule.
  18699. * @param value The value of the field on the source object.
  18700. * @param callback The callback function.
  18701. * @param source The source object being validated.
  18702. * @param options The validation options.
  18703. * @param options.messages The validation messages.
  18704. */
  18705. function floatFn(rule, value, callback, source, options) {
  18706. var errors = [];
  18707. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18708. if (validate) {
  18709. if (isEmptyValue(value) && !rule.required) {
  18710. return callback();
  18711. }
  18712. rules.required(rule, value, source, errors, options);
  18713. if (value !== undefined) {
  18714. rules.type(rule, value, source, errors, options);
  18715. rules.range(rule, value, source, errors, options);
  18716. }
  18717. }
  18718. callback(errors);
  18719. }
  18720. /**
  18721. * Validates an array.
  18722. *
  18723. * @param rule The validation rule.
  18724. * @param value The value of the field on the source object.
  18725. * @param callback The callback function.
  18726. * @param source The source object being validated.
  18727. * @param options The validation options.
  18728. * @param options.messages The validation messages.
  18729. */
  18730. function array(rule, value, callback, source, options) {
  18731. var errors = [];
  18732. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18733. if (validate) {
  18734. if (isEmptyValue(value, 'array') && !rule.required) {
  18735. return callback();
  18736. }
  18737. rules.required(rule, value, source, errors, options, 'array');
  18738. if (!isEmptyValue(value, 'array')) {
  18739. rules.type(rule, value, source, errors, options);
  18740. rules.range(rule, value, source, errors, options);
  18741. }
  18742. }
  18743. callback(errors);
  18744. }
  18745. /**
  18746. * Validates an object.
  18747. *
  18748. * @param rule The validation rule.
  18749. * @param value The value of the field on the source object.
  18750. * @param callback The callback function.
  18751. * @param source The source object being validated.
  18752. * @param options The validation options.
  18753. * @param options.messages The validation messages.
  18754. */
  18755. function object(rule, value, callback, source, options) {
  18756. var errors = [];
  18757. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18758. if (validate) {
  18759. if (isEmptyValue(value) && !rule.required) {
  18760. return callback();
  18761. }
  18762. rules.required(rule, value, source, errors, options);
  18763. if (value !== undefined) {
  18764. rules.type(rule, value, source, errors, options);
  18765. }
  18766. }
  18767. callback(errors);
  18768. }
  18769. var ENUM$1 = 'enum';
  18770. /**
  18771. * Validates an enumerable list.
  18772. *
  18773. * @param rule The validation rule.
  18774. * @param value The value of the field on the source object.
  18775. * @param callback The callback function.
  18776. * @param source The source object being validated.
  18777. * @param options The validation options.
  18778. * @param options.messages The validation messages.
  18779. */
  18780. function enumerable$1(rule, value, callback, source, options) {
  18781. var errors = [];
  18782. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18783. if (validate) {
  18784. if (isEmptyValue(value) && !rule.required) {
  18785. return callback();
  18786. }
  18787. rules.required(rule, value, source, errors, options);
  18788. if (value !== undefined) {
  18789. rules[ENUM$1](rule, value, source, errors, options);
  18790. }
  18791. }
  18792. callback(errors);
  18793. }
  18794. /**
  18795. * Validates a regular expression pattern.
  18796. *
  18797. * Performs validation when a rule only contains
  18798. * a pattern property but is not declared as a string type.
  18799. *
  18800. * @param rule The validation rule.
  18801. * @param value The value of the field on the source object.
  18802. * @param callback The callback function.
  18803. * @param source The source object being validated.
  18804. * @param options The validation options.
  18805. * @param options.messages The validation messages.
  18806. */
  18807. function pattern$2(rule, value, callback, source, options) {
  18808. var errors = [];
  18809. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18810. if (validate) {
  18811. if (isEmptyValue(value, 'string') && !rule.required) {
  18812. return callback();
  18813. }
  18814. rules.required(rule, value, source, errors, options);
  18815. if (!isEmptyValue(value, 'string')) {
  18816. rules.pattern(rule, value, source, errors, options);
  18817. }
  18818. }
  18819. callback(errors);
  18820. }
  18821. function date(rule, value, callback, source, options) {
  18822. var errors = [];
  18823. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18824. if (validate) {
  18825. if (isEmptyValue(value) && !rule.required) {
  18826. return callback();
  18827. }
  18828. rules.required(rule, value, source, errors, options);
  18829. if (!isEmptyValue(value)) {
  18830. var dateObject;
  18831. if (typeof value === 'number') {
  18832. dateObject = new Date(value);
  18833. } else {
  18834. dateObject = value;
  18835. }
  18836. rules.type(rule, dateObject, source, errors, options);
  18837. if (dateObject) {
  18838. rules.range(rule, dateObject.getTime(), source, errors, options);
  18839. }
  18840. }
  18841. }
  18842. callback(errors);
  18843. }
  18844. function required$1(rule, value, callback, source, options) {
  18845. var errors = [];
  18846. var type = Array.isArray(value) ? 'array' : typeof value;
  18847. rules.required(rule, value, source, errors, options, type);
  18848. callback(errors);
  18849. }
  18850. function type$1(rule, value, callback, source, options) {
  18851. var ruleType = rule.type;
  18852. var errors = [];
  18853. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18854. if (validate) {
  18855. if (isEmptyValue(value, ruleType) && !rule.required) {
  18856. return callback();
  18857. }
  18858. rules.required(rule, value, source, errors, options, ruleType);
  18859. if (!isEmptyValue(value, ruleType)) {
  18860. rules.type(rule, value, source, errors, options);
  18861. }
  18862. }
  18863. callback(errors);
  18864. }
  18865. /**
  18866. * Performs validation for any type.
  18867. *
  18868. * @param rule The validation rule.
  18869. * @param value The value of the field on the source object.
  18870. * @param callback The callback function.
  18871. * @param source The source object being validated.
  18872. * @param options The validation options.
  18873. * @param options.messages The validation messages.
  18874. */
  18875. function any(rule, value, callback, source, options) {
  18876. var errors = [];
  18877. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  18878. if (validate) {
  18879. if (isEmptyValue(value) && !rule.required) {
  18880. return callback();
  18881. }
  18882. rules.required(rule, value, source, errors, options);
  18883. }
  18884. callback(errors);
  18885. }
  18886. var validators = {
  18887. string: string,
  18888. method: method,
  18889. number: number,
  18890. "boolean": _boolean,
  18891. regexp: regexp,
  18892. integer: integer,
  18893. "float": floatFn,
  18894. array: array,
  18895. object: object,
  18896. "enum": enumerable$1,
  18897. pattern: pattern$2,
  18898. date: date,
  18899. url: type$1,
  18900. hex: type$1,
  18901. email: type$1,
  18902. required: required$1,
  18903. any: any };
  18904. function newMessages() {
  18905. return {
  18906. "default": 'Validation error on field %s',
  18907. required: '%s is required',
  18908. "enum": '%s must be one of %s',
  18909. whitespace: '%s cannot be empty',
  18910. date: {
  18911. format: '%s date %s is invalid for format %s',
  18912. parse: '%s date could not be parsed, %s is invalid ',
  18913. invalid: '%s date %s is invalid' },
  18914. types: {
  18915. string: '%s is not a %s',
  18916. method: '%s is not a %s (function)',
  18917. array: '%s is not an %s',
  18918. object: '%s is not an %s',
  18919. number: '%s is not a %s',
  18920. date: '%s is not a %s',
  18921. "boolean": '%s is not a %s',
  18922. integer: '%s is not an %s',
  18923. "float": '%s is not a %s',
  18924. regexp: '%s is not a valid %s',
  18925. email: '%s is not a valid %s',
  18926. url: '%s is not a valid %s',
  18927. hex: '%s is not a valid %s' },
  18928. string: {
  18929. len: '%s must be exactly %s characters',
  18930. min: '%s must be at least %s characters',
  18931. max: '%s cannot be longer than %s characters',
  18932. range: '%s must be between %s and %s characters' },
  18933. number: {
  18934. len: '%s must equal %s',
  18935. min: '%s cannot be less than %s',
  18936. max: '%s cannot be greater than %s',
  18937. range: '%s must be between %s and %s' },
  18938. array: {
  18939. len: '%s must be exactly %s in length',
  18940. min: '%s cannot be less than %s in length',
  18941. max: '%s cannot be greater than %s in length',
  18942. range: '%s must be between %s and %s in length' },
  18943. pattern: {
  18944. mismatch: '%s value %s does not match pattern %s' },
  18945. clone: function clone() {
  18946. var cloned = JSON.parse(JSON.stringify(this));
  18947. cloned.clone = this.clone;
  18948. return cloned;
  18949. } };
  18950. }
  18951. var messages = newMessages();
  18952. /**
  18953. * Encapsulates a validation schema.
  18954. *
  18955. * @param descriptor An object declaring validation rules
  18956. * for this schema.
  18957. */
  18958. function Schema(descriptor) {
  18959. this.rules = null;
  18960. this._messages = messages;
  18961. this.define(descriptor);
  18962. }
  18963. Schema.prototype = {
  18964. messages: function messages(_messages) {
  18965. if (_messages) {
  18966. this._messages = deepMerge(newMessages(), _messages);
  18967. }
  18968. return this._messages;
  18969. },
  18970. define: function define(rules) {
  18971. if (!rules) {
  18972. throw new Error('Cannot configure a schema with no rules');
  18973. }
  18974. if (typeof rules !== 'object' || Array.isArray(rules)) {
  18975. throw new Error('Rules must be an object');
  18976. }
  18977. this.rules = {};
  18978. var z;
  18979. var item;
  18980. for (z in rules) {
  18981. if (rules.hasOwnProperty(z)) {
  18982. item = rules[z];
  18983. this.rules[z] = Array.isArray(item) ? item : [item];
  18984. }
  18985. }
  18986. },
  18987. validate: function validate(source_, o, oc) {
  18988. var _this = this;
  18989. if (o === void 0) {
  18990. o = {};
  18991. }
  18992. if (oc === void 0) {
  18993. oc = function oc() {};
  18994. }
  18995. var source = source_;
  18996. var options = o;
  18997. var callback = oc;
  18998. if (typeof options === 'function') {
  18999. callback = options;
  19000. options = {};
  19001. }
  19002. if (!this.rules || Object.keys(this.rules).length === 0) {
  19003. if (callback) {
  19004. callback();
  19005. }
  19006. return Promise.resolve();
  19007. }
  19008. function complete(results) {
  19009. var i;
  19010. var errors = [];
  19011. var fields = {};
  19012. function add(e) {
  19013. if (Array.isArray(e)) {
  19014. var _errors;
  19015. errors = (_errors = errors).concat.apply(_errors, e);
  19016. } else {
  19017. errors.push(e);
  19018. }
  19019. }
  19020. for (i = 0; i < results.length; i++) {
  19021. add(results[i]);
  19022. }
  19023. if (!errors.length) {
  19024. errors = null;
  19025. fields = null;
  19026. } else {
  19027. fields = convertFieldsError(errors);
  19028. }
  19029. callback(errors, fields);
  19030. }
  19031. if (options.messages) {
  19032. var messages$1 = this.messages();
  19033. if (messages$1 === messages) {
  19034. messages$1 = newMessages();
  19035. }
  19036. deepMerge(messages$1, options.messages);
  19037. options.messages = messages$1;
  19038. } else {
  19039. options.messages = this.messages();
  19040. }
  19041. var arr;
  19042. var value;
  19043. var series = {};
  19044. var keys = options.keys || Object.keys(this.rules);
  19045. keys.forEach(function (z) {
  19046. arr = _this.rules[z];
  19047. value = source[z];
  19048. arr.forEach(function (r) {
  19049. var rule = r;
  19050. if (typeof rule.transform === 'function') {
  19051. if (source === source_) {
  19052. source = _extends({}, source);
  19053. }
  19054. value = source[z] = rule.transform(value);
  19055. }
  19056. if (typeof rule === 'function') {
  19057. rule = {
  19058. validator: rule };
  19059. } else {
  19060. rule = _extends({}, rule);
  19061. }
  19062. rule.validator = _this.getValidationMethod(rule);
  19063. rule.field = z;
  19064. rule.fullField = rule.fullField || z;
  19065. rule.type = _this.getType(rule);
  19066. if (!rule.validator) {
  19067. return;
  19068. }
  19069. series[z] = series[z] || [];
  19070. series[z].push({
  19071. rule: rule,
  19072. value: value,
  19073. source: source,
  19074. field: z });
  19075. });
  19076. });
  19077. var errorFields = {};
  19078. return asyncMap(series, options, function (data, doIt) {
  19079. var rule = data.rule;
  19080. var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField ===
  19081. 'object');
  19082. deep = deep && (rule.required || !rule.required && data.value);
  19083. rule.field = data.field;
  19084. function addFullfield(key, schema) {
  19085. return _extends({}, schema, {
  19086. fullField: rule.fullField + "." + key });
  19087. }
  19088. function cb(e) {
  19089. if (e === void 0) {
  19090. e = [];
  19091. }
  19092. var errors = e;
  19093. if (!Array.isArray(errors)) {
  19094. errors = [errors];
  19095. }
  19096. if (!options.suppressWarning && errors.length) {
  19097. Schema.warning('async-validator:', errors);
  19098. }
  19099. if (errors.length && rule.message) {
  19100. errors = [].concat(rule.message);
  19101. }
  19102. errors = errors.map(complementError(rule));
  19103. if (options.first && errors.length) {
  19104. errorFields[rule.field] = 1;
  19105. return doIt(errors);
  19106. }
  19107. if (!deep) {
  19108. doIt(errors);
  19109. } else {
  19110. // if rule is required but the target object
  19111. // does not exist fail at the rule level and don't
  19112. // go deeper
  19113. if (rule.required && !data.value) {
  19114. if (rule.message) {
  19115. errors = [].concat(rule.message).map(complementError(rule));
  19116. } else if (options.error) {
  19117. errors = [options.error(rule, format(options.messages.required, rule.field))];
  19118. } else {
  19119. errors = [];
  19120. }
  19121. return doIt(errors);
  19122. }
  19123. var fieldsSchema = {};
  19124. if (rule.defaultField) {
  19125. for (var k in data.value) {
  19126. if (data.value.hasOwnProperty(k)) {
  19127. fieldsSchema[k] = rule.defaultField;
  19128. }
  19129. }
  19130. }
  19131. fieldsSchema = _extends({}, fieldsSchema, {}, data.rule.fields);
  19132. for (var f in fieldsSchema) {
  19133. if (fieldsSchema.hasOwnProperty(f)) {
  19134. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  19135. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  19136. }
  19137. }
  19138. var schema = new Schema(fieldsSchema);
  19139. schema.messages(options.messages);
  19140. if (data.rule.options) {
  19141. data.rule.options.messages = options.messages;
  19142. data.rule.options.error = options.error;
  19143. }
  19144. schema.validate(data.value, data.rule.options || options, function (errs) {
  19145. var finalErrors = [];
  19146. if (errors && errors.length) {
  19147. finalErrors.push.apply(finalErrors, errors);
  19148. }
  19149. if (errs && errs.length) {
  19150. finalErrors.push.apply(finalErrors, errs);
  19151. }
  19152. doIt(finalErrors.length ? finalErrors : null);
  19153. });
  19154. }
  19155. }
  19156. var res;
  19157. if (rule.asyncValidator) {
  19158. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  19159. } else if (rule.validator) {
  19160. res = rule.validator(rule, data.value, cb, data.source, options);
  19161. if (res === true) {
  19162. cb();
  19163. } else if (res === false) {
  19164. cb(rule.message || rule.field + " fails");
  19165. } else if (res instanceof Array) {
  19166. cb(res);
  19167. } else if (res instanceof Error) {
  19168. cb(res.message);
  19169. }
  19170. }
  19171. if (res && res.then) {
  19172. res.then(function () {
  19173. return cb();
  19174. }, function (e) {
  19175. return cb(e);
  19176. });
  19177. }
  19178. }, function (results) {
  19179. complete(results);
  19180. });
  19181. },
  19182. getType: function getType(rule) {
  19183. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  19184. rule.type = 'pattern';
  19185. }
  19186. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  19187. throw new Error(format('Unknown rule type %s', rule.type));
  19188. }
  19189. return rule.type || 'string';
  19190. },
  19191. getValidationMethod: function getValidationMethod(rule) {
  19192. if (typeof rule.validator === 'function') {
  19193. return rule.validator;
  19194. }
  19195. var keys = Object.keys(rule);
  19196. var messageIndex = keys.indexOf('message');
  19197. if (messageIndex !== -1) {
  19198. keys.splice(messageIndex, 1);
  19199. }
  19200. if (keys.length === 1 && keys[0] === 'required') {
  19201. return validators.required;
  19202. }
  19203. return validators[this.getType(rule)] || false;
  19204. } };
  19205. Schema.register = function register(type, validator) {
  19206. if (typeof validator !== 'function') {
  19207. throw new Error('Cannot register a validator by type, validator is not a function');
  19208. }
  19209. validators[type] = validator;
  19210. };
  19211. Schema.warning = warning;
  19212. Schema.messages = messages;var _default =
  19213. Schema;exports.default = _default;
  19214. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 778)))
  19215. /***/ }),
  19216. /***/ 778:
  19217. /*!********************************************************!*\
  19218. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  19219. \********************************************************/
  19220. /*! no static exports found */
  19221. /***/ (function(module, exports, __webpack_require__) {
  19222. exports.nextTick = function nextTick(fn) {
  19223. var args = Array.prototype.slice.call(arguments);
  19224. args.shift();
  19225. setTimeout(function () {
  19226. fn.apply(null, args);
  19227. }, 0);
  19228. };
  19229. exports.platform = exports.arch =
  19230. exports.execPath = exports.title = 'browser';
  19231. exports.pid = 1;
  19232. exports.browser = true;
  19233. exports.env = {};
  19234. exports.argv = [];
  19235. exports.binding = function (name) {
  19236. throw new Error('No such module. (Possibly not yet loaded)')
  19237. };
  19238. (function () {
  19239. var cwd = '/';
  19240. var path;
  19241. exports.cwd = function () { return cwd };
  19242. exports.chdir = function (dir) {
  19243. if (!path) path = __webpack_require__(/*! path */ 779);
  19244. cwd = path.resolve(dir, cwd);
  19245. };
  19246. })();
  19247. exports.exit = exports.kill =
  19248. exports.umask = exports.dlopen =
  19249. exports.uptime = exports.memoryUsage =
  19250. exports.uvCounters = function() {};
  19251. exports.features = {};
  19252. /***/ }),
  19253. /***/ 779:
  19254. /*!***********************************************!*\
  19255. !*** ./node_modules/path-browserify/index.js ***!
  19256. \***********************************************/
  19257. /*! no static exports found */
  19258. /***/ (function(module, exports, __webpack_require__) {
  19259. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  19260. // backported and transplited with Babel, with backwards-compat fixes
  19261. // Copyright Joyent, Inc. and other Node contributors.
  19262. //
  19263. // Permission is hereby granted, free of charge, to any person obtaining a
  19264. // copy of this software and associated documentation files (the
  19265. // "Software"), to deal in the Software without restriction, including
  19266. // without limitation the rights to use, copy, modify, merge, publish,
  19267. // distribute, sublicense, and/or sell copies of the Software, and to permit
  19268. // persons to whom the Software is furnished to do so, subject to the
  19269. // following conditions:
  19270. //
  19271. // The above copyright notice and this permission notice shall be included
  19272. // in all copies or substantial portions of the Software.
  19273. //
  19274. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19275. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  19276. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  19277. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  19278. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  19279. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  19280. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  19281. // resolves . and .. elements in a path array with directory names there
  19282. // must be no slashes, empty elements, or device names (c:\) in the array
  19283. // (so also no leading and trailing slashes - it does not distinguish
  19284. // relative and absolute paths)
  19285. function normalizeArray(parts, allowAboveRoot) {
  19286. // if the path tries to go above the root, `up` ends up > 0
  19287. var up = 0;
  19288. for (var i = parts.length - 1; i >= 0; i--) {
  19289. var last = parts[i];
  19290. if (last === '.') {
  19291. parts.splice(i, 1);
  19292. } else if (last === '..') {
  19293. parts.splice(i, 1);
  19294. up++;
  19295. } else if (up) {
  19296. parts.splice(i, 1);
  19297. up--;
  19298. }
  19299. }
  19300. // if the path is allowed to go above the root, restore leading ..s
  19301. if (allowAboveRoot) {
  19302. for (; up--; up) {
  19303. parts.unshift('..');
  19304. }
  19305. }
  19306. return parts;
  19307. }
  19308. // path.resolve([from ...], to)
  19309. // posix version
  19310. exports.resolve = function() {
  19311. var resolvedPath = '',
  19312. resolvedAbsolute = false;
  19313. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  19314. var path = (i >= 0) ? arguments[i] : process.cwd();
  19315. // Skip empty and invalid entries
  19316. if (typeof path !== 'string') {
  19317. throw new TypeError('Arguments to path.resolve must be strings');
  19318. } else if (!path) {
  19319. continue;
  19320. }
  19321. resolvedPath = path + '/' + resolvedPath;
  19322. resolvedAbsolute = path.charAt(0) === '/';
  19323. }
  19324. // At this point the path should be resolved to a full absolute path, but
  19325. // handle relative paths to be safe (might happen when process.cwd() fails)
  19326. // Normalize the path
  19327. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  19328. return !!p;
  19329. }), !resolvedAbsolute).join('/');
  19330. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  19331. };
  19332. // path.normalize(path)
  19333. // posix version
  19334. exports.normalize = function(path) {
  19335. var isAbsolute = exports.isAbsolute(path),
  19336. trailingSlash = substr(path, -1) === '/';
  19337. // Normalize the path
  19338. path = normalizeArray(filter(path.split('/'), function(p) {
  19339. return !!p;
  19340. }), !isAbsolute).join('/');
  19341. if (!path && !isAbsolute) {
  19342. path = '.';
  19343. }
  19344. if (path && trailingSlash) {
  19345. path += '/';
  19346. }
  19347. return (isAbsolute ? '/' : '') + path;
  19348. };
  19349. // posix version
  19350. exports.isAbsolute = function(path) {
  19351. return path.charAt(0) === '/';
  19352. };
  19353. // posix version
  19354. exports.join = function() {
  19355. var paths = Array.prototype.slice.call(arguments, 0);
  19356. return exports.normalize(filter(paths, function(p, index) {
  19357. if (typeof p !== 'string') {
  19358. throw new TypeError('Arguments to path.join must be strings');
  19359. }
  19360. return p;
  19361. }).join('/'));
  19362. };
  19363. // path.relative(from, to)
  19364. // posix version
  19365. exports.relative = function(from, to) {
  19366. from = exports.resolve(from).substr(1);
  19367. to = exports.resolve(to).substr(1);
  19368. function trim(arr) {
  19369. var start = 0;
  19370. for (; start < arr.length; start++) {
  19371. if (arr[start] !== '') break;
  19372. }
  19373. var end = arr.length - 1;
  19374. for (; end >= 0; end--) {
  19375. if (arr[end] !== '') break;
  19376. }
  19377. if (start > end) return [];
  19378. return arr.slice(start, end - start + 1);
  19379. }
  19380. var fromParts = trim(from.split('/'));
  19381. var toParts = trim(to.split('/'));
  19382. var length = Math.min(fromParts.length, toParts.length);
  19383. var samePartsLength = length;
  19384. for (var i = 0; i < length; i++) {
  19385. if (fromParts[i] !== toParts[i]) {
  19386. samePartsLength = i;
  19387. break;
  19388. }
  19389. }
  19390. var outputParts = [];
  19391. for (var i = samePartsLength; i < fromParts.length; i++) {
  19392. outputParts.push('..');
  19393. }
  19394. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  19395. return outputParts.join('/');
  19396. };
  19397. exports.sep = '/';
  19398. exports.delimiter = ':';
  19399. exports.dirname = function (path) {
  19400. if (typeof path !== 'string') path = path + '';
  19401. if (path.length === 0) return '.';
  19402. var code = path.charCodeAt(0);
  19403. var hasRoot = code === 47 /*/*/;
  19404. var end = -1;
  19405. var matchedSlash = true;
  19406. for (var i = path.length - 1; i >= 1; --i) {
  19407. code = path.charCodeAt(i);
  19408. if (code === 47 /*/*/) {
  19409. if (!matchedSlash) {
  19410. end = i;
  19411. break;
  19412. }
  19413. } else {
  19414. // We saw the first non-path separator
  19415. matchedSlash = false;
  19416. }
  19417. }
  19418. if (end === -1) return hasRoot ? '/' : '.';
  19419. if (hasRoot && end === 1) {
  19420. // return '//';
  19421. // Backwards-compat fix:
  19422. return '/';
  19423. }
  19424. return path.slice(0, end);
  19425. };
  19426. function basename(path) {
  19427. if (typeof path !== 'string') path = path + '';
  19428. var start = 0;
  19429. var end = -1;
  19430. var matchedSlash = true;
  19431. var i;
  19432. for (i = path.length - 1; i >= 0; --i) {
  19433. if (path.charCodeAt(i) === 47 /*/*/) {
  19434. // If we reached a path separator that was not part of a set of path
  19435. // separators at the end of the string, stop now
  19436. if (!matchedSlash) {
  19437. start = i + 1;
  19438. break;
  19439. }
  19440. } else if (end === -1) {
  19441. // We saw the first non-path separator, mark this as the end of our
  19442. // path component
  19443. matchedSlash = false;
  19444. end = i + 1;
  19445. }
  19446. }
  19447. if (end === -1) return '';
  19448. return path.slice(start, end);
  19449. }
  19450. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  19451. // in new Node.js versions, so only basename() above is backported here
  19452. exports.basename = function (path, ext) {
  19453. var f = basename(path);
  19454. if (ext && f.substr(-1 * ext.length) === ext) {
  19455. f = f.substr(0, f.length - ext.length);
  19456. }
  19457. return f;
  19458. };
  19459. exports.extname = function (path) {
  19460. if (typeof path !== 'string') path = path + '';
  19461. var startDot = -1;
  19462. var startPart = 0;
  19463. var end = -1;
  19464. var matchedSlash = true;
  19465. // Track the state of characters (if any) we see before our first dot and
  19466. // after any path separator we find
  19467. var preDotState = 0;
  19468. for (var i = path.length - 1; i >= 0; --i) {
  19469. var code = path.charCodeAt(i);
  19470. if (code === 47 /*/*/) {
  19471. // If we reached a path separator that was not part of a set of path
  19472. // separators at the end of the string, stop now
  19473. if (!matchedSlash) {
  19474. startPart = i + 1;
  19475. break;
  19476. }
  19477. continue;
  19478. }
  19479. if (end === -1) {
  19480. // We saw the first non-path separator, mark this as the end of our
  19481. // extension
  19482. matchedSlash = false;
  19483. end = i + 1;
  19484. }
  19485. if (code === 46 /*.*/) {
  19486. // If this is our first dot, mark it as the start of our extension
  19487. if (startDot === -1)
  19488. startDot = i;
  19489. else if (preDotState !== 1)
  19490. preDotState = 1;
  19491. } else if (startDot !== -1) {
  19492. // We saw a non-dot and non-path separator before our dot, so we should
  19493. // have a good chance at having a non-empty extension
  19494. preDotState = -1;
  19495. }
  19496. }
  19497. if (startDot === -1 || end === -1 ||
  19498. // We saw a non-dot character immediately before the dot
  19499. preDotState === 0 ||
  19500. // The (right-most) trimmed path component is exactly '..'
  19501. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  19502. return '';
  19503. }
  19504. return path.slice(startDot, end);
  19505. };
  19506. function filter (xs, f) {
  19507. if (xs.filter) return xs.filter(f);
  19508. var res = [];
  19509. for (var i = 0; i < xs.length; i++) {
  19510. if (f(xs[i], i, xs)) res.push(xs[i]);
  19511. }
  19512. return res;
  19513. }
  19514. // String.prototype.substr - negative index don't work in IE8
  19515. var substr = 'ab'.substr(-1) === 'b'
  19516. ? function (str, start, len) { return str.substr(start, len) }
  19517. : function (str, start, len) {
  19518. if (start < 0) start = str.length + start;
  19519. return str.substr(start, len);
  19520. }
  19521. ;
  19522. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 778)))
  19523. /***/ }),
  19524. /***/ 8:
  19525. /*!********************************************!*\
  19526. !*** D:/2022/7/hqshop/store/model/user.js ***!
  19527. \********************************************/
  19528. /*! no static exports found */
  19529. /***/ (function(module, exports, __webpack_require__) {
  19530. "use strict";
  19531. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var state = {
  19532. userInfo: {}, //用户信息
  19533. orderInfo: {
  19534. complete_count: 0, //完成
  19535. received_count: 0, //待收货
  19536. unshipped_count: 0, //待发货
  19537. order_count: 0, //订单总数
  19538. unpaid_count: 0 //待付款
  19539. }, //订单信息
  19540. hasLogin: false //是否登录
  19541. };
  19542. var mutations = {
  19543. // 登录
  19544. login: function login(state) {
  19545. state.hasLogin = true;
  19546. },
  19547. // 退出登录
  19548. logout: function logout(state, provider) {
  19549. state.hasLogin = false;
  19550. // 清空基础信息
  19551. state.userInfo = {};
  19552. state.orderInfo = {
  19553. complete_count: 0, //完成
  19554. received_count: 0, //待收货
  19555. unshipped_count: 0, //待发货
  19556. order_count: 0, //订单总数
  19557. unpaid_count: 0 //待付款
  19558. };
  19559. // 清除缓存用户信息
  19560. uni.removeStorage({
  19561. key: 'userInfo' });
  19562. // 清除缓存token
  19563. uni.removeStorage({
  19564. key: 'token' });
  19565. },
  19566. // 保存用户信息
  19567. setUserInfo: function setUserInfo(state, provider) {
  19568. state.userInfo = provider;
  19569. uni.setStorage({ //缓存用户登陆状态
  19570. key: 'userInfo',
  19571. data: provider });
  19572. },
  19573. // 保存订单信息
  19574. setOrderInfo: function setOrderInfo(state, provider) {
  19575. state.orderInfo = provider;
  19576. } };
  19577. var getters = {};var _default =
  19578. {
  19579. namespaced: true,
  19580. state: state,
  19581. mutations: mutations,
  19582. getters: getters };exports.default = _default;
  19583. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19584. /***/ }),
  19585. /***/ 808:
  19586. /*!******************************************************!*\
  19587. !*** D:/2022/7/hqshop/components/uni-icons/icons.js ***!
  19588. \******************************************************/
  19589. /*! no static exports found */
  19590. /***/ (function(module, exports, __webpack_require__) {
  19591. "use strict";
  19592. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19593. 'contact': "\uE100",
  19594. 'person': "\uE101",
  19595. 'personadd': "\uE102",
  19596. 'contact-filled': "\uE130",
  19597. 'person-filled': "\uE131",
  19598. 'personadd-filled': "\uE132",
  19599. 'phone': "\uE200",
  19600. 'email': "\uE201",
  19601. 'chatbubble': "\uE202",
  19602. 'chatboxes': "\uE203",
  19603. 'phone-filled': "\uE230",
  19604. 'email-filled': "\uE231",
  19605. 'chatbubble-filled': "\uE232",
  19606. 'chatboxes-filled': "\uE233",
  19607. 'weibo': "\uE260",
  19608. 'weixin': "\uE261",
  19609. 'pengyouquan': "\uE262",
  19610. 'chat': "\uE263",
  19611. 'qq': "\uE264",
  19612. 'videocam': "\uE300",
  19613. 'camera': "\uE301",
  19614. 'mic': "\uE302",
  19615. 'location': "\uE303",
  19616. 'mic-filled': "\uE332",
  19617. 'speech': "\uE332",
  19618. 'location-filled': "\uE333",
  19619. 'micoff': "\uE360",
  19620. 'image': "\uE363",
  19621. 'map': "\uE364",
  19622. 'compose': "\uE400",
  19623. 'trash': "\uE401",
  19624. 'upload': "\uE402",
  19625. 'download': "\uE403",
  19626. 'close': "\uE404",
  19627. 'redo': "\uE405",
  19628. 'undo': "\uE406",
  19629. 'refresh': "\uE407",
  19630. 'star': "\uE408",
  19631. 'plus': "\uE409",
  19632. 'minus': "\uE410",
  19633. 'circle': "\uE411",
  19634. 'checkbox': "\uE411",
  19635. 'close-filled': "\uE434",
  19636. 'clear': "\uE434",
  19637. 'refresh-filled': "\uE437",
  19638. 'star-filled': "\uE438",
  19639. 'plus-filled': "\uE439",
  19640. 'minus-filled': "\uE440",
  19641. 'circle-filled': "\uE441",
  19642. 'checkbox-filled': "\uE442",
  19643. 'closeempty': "\uE460",
  19644. 'refreshempty': "\uE461",
  19645. 'reload': "\uE462",
  19646. 'starhalf': "\uE463",
  19647. 'spinner': "\uE464",
  19648. 'spinner-cycle': "\uE465",
  19649. 'search': "\uE466",
  19650. 'plusempty': "\uE468",
  19651. 'forward': "\uE470",
  19652. 'back': "\uE471",
  19653. 'left-nav': "\uE471",
  19654. 'checkmarkempty': "\uE472",
  19655. 'home': "\uE500",
  19656. 'navigate': "\uE501",
  19657. 'gear': "\uE502",
  19658. 'paperplane': "\uE503",
  19659. 'info': "\uE504",
  19660. 'help': "\uE505",
  19661. 'locked': "\uE506",
  19662. 'more': "\uE507",
  19663. 'flag': "\uE508",
  19664. 'home-filled': "\uE530",
  19665. 'gear-filled': "\uE532",
  19666. 'info-filled': "\uE534",
  19667. 'help-filled': "\uE535",
  19668. 'more-filled': "\uE537",
  19669. 'settings': "\uE560",
  19670. 'list': "\uE562",
  19671. 'bars': "\uE563",
  19672. 'loop': "\uE565",
  19673. 'paperclip': "\uE567",
  19674. 'eye': "\uE568",
  19675. 'arrowup': "\uE580",
  19676. 'arrowdown': "\uE581",
  19677. 'arrowleft': "\uE582",
  19678. 'arrowright': "\uE583",
  19679. 'arrowthinup': "\uE584",
  19680. 'arrowthindown': "\uE585",
  19681. 'arrowthinleft': "\uE586",
  19682. 'arrowthinright': "\uE587",
  19683. 'pulldown': "\uE588",
  19684. 'closefill': "\uE589",
  19685. 'sound': "\uE590",
  19686. 'scan': "\uE612" };exports.default = _default;
  19687. /***/ })
  19688. }]);
  19689. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map