vendor.js 536 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207
  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 _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  10. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 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. var HOOKS = [
  107. 'invoke',
  108. 'success',
  109. 'fail',
  110. 'complete',
  111. 'returnValue'];
  112. var globalInterceptors = {};
  113. var scopedInterceptors = {};
  114. function mergeHook(parentVal, childVal) {
  115. var res = childVal ?
  116. parentVal ?
  117. parentVal.concat(childVal) :
  118. Array.isArray(childVal) ?
  119. childVal : [childVal] :
  120. parentVal;
  121. return res ?
  122. dedupeHooks(res) :
  123. res;
  124. }
  125. function dedupeHooks(hooks) {
  126. var res = [];
  127. for (var i = 0; i < hooks.length; i++) {
  128. if (res.indexOf(hooks[i]) === -1) {
  129. res.push(hooks[i]);
  130. }
  131. }
  132. return res;
  133. }
  134. function removeHook(hooks, hook) {
  135. var index = hooks.indexOf(hook);
  136. if (index !== -1) {
  137. hooks.splice(index, 1);
  138. }
  139. }
  140. function mergeInterceptorHook(interceptor, option) {
  141. Object.keys(option).forEach(function (hook) {
  142. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  143. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  144. }
  145. });
  146. }
  147. function removeInterceptorHook(interceptor, option) {
  148. if (!interceptor || !option) {
  149. return;
  150. }
  151. Object.keys(option).forEach(function (hook) {
  152. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  153. removeHook(interceptor[hook], option[hook]);
  154. }
  155. });
  156. }
  157. function addInterceptor(method, option) {
  158. if (typeof method === 'string' && isPlainObject(option)) {
  159. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  160. } else if (isPlainObject(method)) {
  161. mergeInterceptorHook(globalInterceptors, method);
  162. }
  163. }
  164. function removeInterceptor(method, option) {
  165. if (typeof method === 'string') {
  166. if (isPlainObject(option)) {
  167. removeInterceptorHook(scopedInterceptors[method], option);
  168. } else {
  169. delete scopedInterceptors[method];
  170. }
  171. } else if (isPlainObject(method)) {
  172. removeInterceptorHook(globalInterceptors, method);
  173. }
  174. }
  175. function wrapperHook(hook) {
  176. return function (data) {
  177. return hook(data) || data;
  178. };
  179. }
  180. function isPromise(obj) {
  181. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  182. }
  183. function queue(hooks, data) {
  184. var promise = false;
  185. for (var i = 0; i < hooks.length; i++) {
  186. var hook = hooks[i];
  187. if (promise) {
  188. promise = Promise.resolve(wrapperHook(hook));
  189. } else {
  190. var res = hook(data);
  191. if (isPromise(res)) {
  192. promise = Promise.resolve(res);
  193. }
  194. if (res === false) {
  195. return {
  196. then: function then() {} };
  197. }
  198. }
  199. }
  200. return promise || {
  201. then: function then(callback) {
  202. return callback(data);
  203. } };
  204. }
  205. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  206. ['success', 'fail', 'complete'].forEach(function (name) {
  207. if (Array.isArray(interceptor[name])) {
  208. var oldCallback = options[name];
  209. options[name] = function callbackInterceptor(res) {
  210. queue(interceptor[name], res).then(function (res) {
  211. /* eslint-disable no-mixed-operators */
  212. return isFn(oldCallback) && oldCallback(res) || res;
  213. });
  214. };
  215. }
  216. });
  217. return options;
  218. }
  219. function wrapperReturnValue(method, returnValue) {
  220. var returnValueHooks = [];
  221. if (Array.isArray(globalInterceptors.returnValue)) {
  222. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  223. }
  224. var interceptor = scopedInterceptors[method];
  225. if (interceptor && Array.isArray(interceptor.returnValue)) {
  226. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  227. }
  228. returnValueHooks.forEach(function (hook) {
  229. returnValue = hook(returnValue) || returnValue;
  230. });
  231. return returnValue;
  232. }
  233. function getApiInterceptorHooks(method) {
  234. var interceptor = Object.create(null);
  235. Object.keys(globalInterceptors).forEach(function (hook) {
  236. if (hook !== 'returnValue') {
  237. interceptor[hook] = globalInterceptors[hook].slice();
  238. }
  239. });
  240. var scopedInterceptor = scopedInterceptors[method];
  241. if (scopedInterceptor) {
  242. Object.keys(scopedInterceptor).forEach(function (hook) {
  243. if (hook !== 'returnValue') {
  244. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  245. }
  246. });
  247. }
  248. return interceptor;
  249. }
  250. 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];}
  251. var interceptor = getApiInterceptorHooks(method);
  252. if (interceptor && Object.keys(interceptor).length) {
  253. if (Array.isArray(interceptor.invoke)) {
  254. var res = queue(interceptor.invoke, options);
  255. return res.then(function (options) {
  256. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  257. });
  258. } else {
  259. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  260. }
  261. }
  262. return api.apply(void 0, [options].concat(params));
  263. }
  264. var promiseInterceptor = {
  265. returnValue: function returnValue(res) {
  266. if (!isPromise(res)) {
  267. return res;
  268. }
  269. return new Promise(function (resolve, reject) {
  270. res.then(function (res) {
  271. if (res[0]) {
  272. reject(res[0]);
  273. } else {
  274. resolve(res[1]);
  275. }
  276. });
  277. });
  278. } };
  279. var SYNC_API_RE =
  280. /^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/;
  281. var CONTEXT_API_RE = /^create|Manager$/;
  282. // Context例外情况
  283. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  284. // 同步例外情况
  285. var ASYNC_API = ['createBLEConnection'];
  286. var CALLBACK_API_RE = /^on|^off/;
  287. function isContextApi(name) {
  288. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  289. }
  290. function isSyncApi(name) {
  291. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  292. }
  293. function isCallbackApi(name) {
  294. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  295. }
  296. function handlePromise(promise) {
  297. return promise.then(function (data) {
  298. return [null, data];
  299. }).
  300. catch(function (err) {return [err];});
  301. }
  302. function shouldPromise(name) {
  303. if (
  304. isContextApi(name) ||
  305. isSyncApi(name) ||
  306. isCallbackApi(name))
  307. {
  308. return false;
  309. }
  310. return true;
  311. }
  312. /* eslint-disable no-extend-native */
  313. if (!Promise.prototype.finally) {
  314. Promise.prototype.finally = function (callback) {
  315. var promise = this.constructor;
  316. return this.then(
  317. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  318. function (reason) {return promise.resolve(callback()).then(function () {
  319. throw reason;
  320. });});
  321. };
  322. }
  323. function promisify(name, api) {
  324. if (!shouldPromise(name)) {
  325. return api;
  326. }
  327. 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];}
  328. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  329. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  330. }
  331. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  332. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  333. success: resolve,
  334. fail: reject })].concat(
  335. params));
  336. })));
  337. };
  338. }
  339. var EPS = 1e-4;
  340. var BASE_DEVICE_WIDTH = 750;
  341. var isIOS = false;
  342. var deviceWidth = 0;
  343. var deviceDPR = 0;
  344. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  345. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  346. deviceWidth = windowWidth;
  347. deviceDPR = pixelRatio;
  348. isIOS = platform === 'ios';
  349. }
  350. function upx2px(number, newDeviceWidth) {
  351. if (deviceWidth === 0) {
  352. checkDeviceWidth();
  353. }
  354. number = Number(number);
  355. if (number === 0) {
  356. return 0;
  357. }
  358. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  359. if (result < 0) {
  360. result = -result;
  361. }
  362. result = Math.floor(result + EPS);
  363. if (result === 0) {
  364. if (deviceDPR === 1 || !isIOS) {
  365. result = 1;
  366. } else {
  367. result = 0.5;
  368. }
  369. }
  370. return number < 0 ? -result : result;
  371. }
  372. function getLocale() {
  373. // 优先使用 $locale
  374. var app = getApp({
  375. allowDefault: true });
  376. if (app && app.$vm) {
  377. return app.$vm.$locale;
  378. }
  379. return wx.getSystemInfoSync().language || 'zh-Hans';
  380. }
  381. function setLocale(locale) {
  382. var app = getApp();
  383. if (!app) {
  384. return false;
  385. }
  386. var oldLocale = app.$vm.$locale;
  387. if (oldLocale !== locale) {
  388. app.$vm.$locale = locale;
  389. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  390. locale: locale });});
  391. return true;
  392. }
  393. return false;
  394. }
  395. var onLocaleChangeCallbacks = [];
  396. function onLocaleChange(fn) {
  397. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  398. onLocaleChangeCallbacks.push(fn);
  399. }
  400. }
  401. if (typeof global !== 'undefined') {
  402. global.getLocale = getLocale;
  403. }
  404. var interceptors = {
  405. promiseInterceptor: promiseInterceptor };
  406. var baseApi = /*#__PURE__*/Object.freeze({
  407. __proto__: null,
  408. upx2px: upx2px,
  409. getLocale: getLocale,
  410. setLocale: setLocale,
  411. onLocaleChange: onLocaleChange,
  412. addInterceptor: addInterceptor,
  413. removeInterceptor: removeInterceptor,
  414. interceptors: interceptors });
  415. function findExistsPageIndex(url) {
  416. var pages = getCurrentPages();
  417. var len = pages.length;
  418. while (len--) {
  419. var page = pages[len];
  420. if (page.$page && page.$page.fullPath === url) {
  421. return len;
  422. }
  423. }
  424. return -1;
  425. }
  426. var redirectTo = {
  427. name: function name(fromArgs) {
  428. if (fromArgs.exists === 'back' && fromArgs.delta) {
  429. return 'navigateBack';
  430. }
  431. return 'redirectTo';
  432. },
  433. args: function args(fromArgs) {
  434. if (fromArgs.exists === 'back' && fromArgs.url) {
  435. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  436. if (existsPageIndex !== -1) {
  437. var delta = getCurrentPages().length - 1 - existsPageIndex;
  438. if (delta > 0) {
  439. fromArgs.delta = delta;
  440. }
  441. }
  442. }
  443. } };
  444. var previewImage = {
  445. args: function args(fromArgs) {
  446. var currentIndex = parseInt(fromArgs.current);
  447. if (isNaN(currentIndex)) {
  448. return;
  449. }
  450. var urls = fromArgs.urls;
  451. if (!Array.isArray(urls)) {
  452. return;
  453. }
  454. var len = urls.length;
  455. if (!len) {
  456. return;
  457. }
  458. if (currentIndex < 0) {
  459. currentIndex = 0;
  460. } else if (currentIndex >= len) {
  461. currentIndex = len - 1;
  462. }
  463. if (currentIndex > 0) {
  464. fromArgs.current = urls[currentIndex];
  465. fromArgs.urls = urls.filter(
  466. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  467. } else {
  468. fromArgs.current = urls[0];
  469. }
  470. return {
  471. indicator: false,
  472. loop: false };
  473. } };
  474. var UUID_KEY = '__DC_STAT_UUID';
  475. var deviceId;
  476. function addUuid(result) {
  477. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  478. if (!deviceId) {
  479. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  480. wx.setStorage({
  481. key: UUID_KEY,
  482. data: deviceId });
  483. }
  484. result.deviceId = deviceId;
  485. }
  486. function addSafeAreaInsets(result) {
  487. if (result.safeArea) {
  488. var safeArea = result.safeArea;
  489. result.safeAreaInsets = {
  490. top: safeArea.top,
  491. left: safeArea.left,
  492. right: result.windowWidth - safeArea.right,
  493. bottom: result.windowHeight - safeArea.bottom };
  494. }
  495. }
  496. var getSystemInfo = {
  497. returnValue: function returnValue(result) {
  498. addUuid(result);
  499. addSafeAreaInsets(result);
  500. } };
  501. // import navigateTo from 'uni-helpers/navigate-to'
  502. var protocols = {
  503. redirectTo: redirectTo,
  504. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  505. previewImage: previewImage,
  506. getSystemInfo: getSystemInfo,
  507. getSystemInfoSync: getSystemInfo };
  508. var todos = [
  509. 'vibrate',
  510. 'preloadPage',
  511. 'unPreloadPage',
  512. 'loadSubPackage'];
  513. var canIUses = [];
  514. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  515. function processCallback(methodName, method, returnValue) {
  516. return function (res) {
  517. return method(processReturnValue(methodName, res, returnValue));
  518. };
  519. }
  520. 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;
  521. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  522. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  523. if (isFn(argsOption)) {
  524. argsOption = argsOption(fromArgs, toArgs) || {};
  525. }
  526. for (var key in fromArgs) {
  527. if (hasOwn(argsOption, key)) {
  528. var keyOption = argsOption[key];
  529. if (isFn(keyOption)) {
  530. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  531. }
  532. if (!keyOption) {// 不支持的参数
  533. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  534. } else if (isStr(keyOption)) {// 重写参数 key
  535. toArgs[keyOption] = fromArgs[key];
  536. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  537. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  538. }
  539. } else if (CALLBACKS.indexOf(key) !== -1) {
  540. if (isFn(fromArgs[key])) {
  541. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  542. }
  543. } else {
  544. if (!keepFromArgs) {
  545. toArgs[key] = fromArgs[key];
  546. }
  547. }
  548. }
  549. return toArgs;
  550. } else if (isFn(fromArgs)) {
  551. fromArgs = processCallback(methodName, fromArgs, returnValue);
  552. }
  553. return fromArgs;
  554. }
  555. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  556. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  557. res = protocols.returnValue(methodName, res);
  558. }
  559. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  560. }
  561. function wrapper(methodName, method) {
  562. if (hasOwn(protocols, methodName)) {
  563. var protocol = protocols[methodName];
  564. if (!protocol) {// 暂不支持的 api
  565. return function () {
  566. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  567. };
  568. }
  569. return function (arg1, arg2) {// 目前 api 最多两个参数
  570. var options = protocol;
  571. if (isFn(protocol)) {
  572. options = protocol(arg1);
  573. }
  574. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  575. var args = [arg1];
  576. if (typeof arg2 !== 'undefined') {
  577. args.push(arg2);
  578. }
  579. if (isFn(options.name)) {
  580. methodName = options.name(arg1);
  581. } else if (isStr(options.name)) {
  582. methodName = options.name;
  583. }
  584. var returnValue = wx[methodName].apply(wx, args);
  585. if (isSyncApi(methodName)) {// 同步 api
  586. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  587. }
  588. return returnValue;
  589. };
  590. }
  591. return method;
  592. }
  593. var todoApis = Object.create(null);
  594. var TODOS = [
  595. 'onTabBarMidButtonTap',
  596. 'subscribePush',
  597. 'unsubscribePush',
  598. 'onPush',
  599. 'offPush',
  600. 'share'];
  601. function createTodoApi(name) {
  602. return function todoApi(_ref)
  603. {var fail = _ref.fail,complete = _ref.complete;
  604. var res = {
  605. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  606. isFn(fail) && fail(res);
  607. isFn(complete) && complete(res);
  608. };
  609. }
  610. TODOS.forEach(function (name) {
  611. todoApis[name] = createTodoApi(name);
  612. });
  613. var providers = {
  614. oauth: ['weixin'],
  615. share: ['weixin'],
  616. payment: ['wxpay'],
  617. push: ['weixin'] };
  618. function getProvider(_ref2)
  619. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  620. var res = false;
  621. if (providers[service]) {
  622. res = {
  623. errMsg: 'getProvider:ok',
  624. service: service,
  625. provider: providers[service] };
  626. isFn(success) && success(res);
  627. } else {
  628. res = {
  629. errMsg: 'getProvider:fail service not found' };
  630. isFn(fail) && fail(res);
  631. }
  632. isFn(complete) && complete(res);
  633. }
  634. var extraApi = /*#__PURE__*/Object.freeze({
  635. __proto__: null,
  636. getProvider: getProvider });
  637. var getEmitter = function () {
  638. var Emitter;
  639. return function getUniEmitter() {
  640. if (!Emitter) {
  641. Emitter = new _vue.default();
  642. }
  643. return Emitter;
  644. };
  645. }();
  646. function apply(ctx, method, args) {
  647. return ctx[method].apply(ctx, args);
  648. }
  649. function $on() {
  650. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  651. }
  652. function $off() {
  653. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  654. }
  655. function $once() {
  656. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  657. }
  658. function $emit() {
  659. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  660. }
  661. var eventApi = /*#__PURE__*/Object.freeze({
  662. __proto__: null,
  663. $on: $on,
  664. $off: $off,
  665. $once: $once,
  666. $emit: $emit });
  667. var api = /*#__PURE__*/Object.freeze({
  668. __proto__: null });
  669. var MPPage = Page;
  670. var MPComponent = Component;
  671. var customizeRE = /:/g;
  672. var customize = cached(function (str) {
  673. return camelize(str.replace(customizeRE, '-'));
  674. });
  675. function initTriggerEvent(mpInstance) {
  676. {
  677. if (!wx.canIUse || !wx.canIUse('nextTick')) {
  678. return;
  679. }
  680. }
  681. var oldTriggerEvent = mpInstance.triggerEvent;
  682. mpInstance.triggerEvent = function (event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  683. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  684. };
  685. }
  686. function initHook(name, options, isComponent) {
  687. var oldHook = options[name];
  688. if (!oldHook) {
  689. options[name] = function () {
  690. initTriggerEvent(this);
  691. };
  692. } else {
  693. options[name] = function () {
  694. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  695. return oldHook.apply(this, args);
  696. };
  697. }
  698. }
  699. if (!MPPage.__$wrappered) {
  700. MPPage.__$wrappered = true;
  701. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  702. initHook('onLoad', options);
  703. return MPPage(options);
  704. };
  705. Page.after = MPPage.after;
  706. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  707. initHook('created', options);
  708. return MPComponent(options);
  709. };
  710. }
  711. var PAGE_EVENT_HOOKS = [
  712. 'onPullDownRefresh',
  713. 'onReachBottom',
  714. 'onAddToFavorites',
  715. 'onShareTimeline',
  716. 'onShareAppMessage',
  717. 'onPageScroll',
  718. 'onResize',
  719. 'onTabItemTap'];
  720. function initMocks(vm, mocks) {
  721. var mpInstance = vm.$mp[vm.mpType];
  722. mocks.forEach(function (mock) {
  723. if (hasOwn(mpInstance, mock)) {
  724. vm[mock] = mpInstance[mock];
  725. }
  726. });
  727. }
  728. function hasHook(hook, vueOptions) {
  729. if (!vueOptions) {
  730. return true;
  731. }
  732. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  733. return true;
  734. }
  735. vueOptions = vueOptions.default || vueOptions;
  736. if (isFn(vueOptions)) {
  737. if (isFn(vueOptions.extendOptions[hook])) {
  738. return true;
  739. }
  740. if (vueOptions.super &&
  741. vueOptions.super.options &&
  742. Array.isArray(vueOptions.super.options[hook])) {
  743. return true;
  744. }
  745. return false;
  746. }
  747. if (isFn(vueOptions[hook])) {
  748. return true;
  749. }
  750. var mixins = vueOptions.mixins;
  751. if (Array.isArray(mixins)) {
  752. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  753. }
  754. }
  755. function initHooks(mpOptions, hooks, vueOptions) {
  756. hooks.forEach(function (hook) {
  757. if (hasHook(hook, vueOptions)) {
  758. mpOptions[hook] = function (args) {
  759. return this.$vm && this.$vm.__call_hook(hook, args);
  760. };
  761. }
  762. });
  763. }
  764. function initVueComponent(Vue, vueOptions) {
  765. vueOptions = vueOptions.default || vueOptions;
  766. var VueComponent;
  767. if (isFn(vueOptions)) {
  768. VueComponent = vueOptions;
  769. } else {
  770. VueComponent = Vue.extend(vueOptions);
  771. }
  772. vueOptions = VueComponent.options;
  773. return [VueComponent, vueOptions];
  774. }
  775. function initSlots(vm, vueSlots) {
  776. if (Array.isArray(vueSlots) && vueSlots.length) {
  777. var $slots = Object.create(null);
  778. vueSlots.forEach(function (slotName) {
  779. $slots[slotName] = true;
  780. });
  781. vm.$scopedSlots = vm.$slots = $slots;
  782. }
  783. }
  784. function initVueIds(vueIds, mpInstance) {
  785. vueIds = (vueIds || '').split(',');
  786. var len = vueIds.length;
  787. if (len === 1) {
  788. mpInstance._$vueId = vueIds[0];
  789. } else if (len === 2) {
  790. mpInstance._$vueId = vueIds[0];
  791. mpInstance._$vuePid = vueIds[1];
  792. }
  793. }
  794. function initData(vueOptions, context) {
  795. var data = vueOptions.data || {};
  796. var methods = vueOptions.methods || {};
  797. if (typeof data === 'function') {
  798. try {
  799. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  800. } catch (e) {
  801. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"caimei-applets-hehe","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  802. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  803. }
  804. }
  805. } else {
  806. try {
  807. // 对 data 格式化
  808. data = JSON.parse(JSON.stringify(data));
  809. } catch (e) {}
  810. }
  811. if (!isPlainObject(data)) {
  812. data = {};
  813. }
  814. Object.keys(methods).forEach(function (methodName) {
  815. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  816. data[methodName] = methods[methodName];
  817. }
  818. });
  819. return data;
  820. }
  821. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  822. function createObserver(name) {
  823. return function observer(newVal, oldVal) {
  824. if (this.$vm) {
  825. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  826. }
  827. };
  828. }
  829. function initBehaviors(vueOptions, initBehavior) {
  830. var vueBehaviors = vueOptions.behaviors;
  831. var vueExtends = vueOptions.extends;
  832. var vueMixins = vueOptions.mixins;
  833. var vueProps = vueOptions.props;
  834. if (!vueProps) {
  835. vueOptions.props = vueProps = [];
  836. }
  837. var behaviors = [];
  838. if (Array.isArray(vueBehaviors)) {
  839. vueBehaviors.forEach(function (behavior) {
  840. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  841. if (behavior === 'uni://form-field') {
  842. if (Array.isArray(vueProps)) {
  843. vueProps.push('name');
  844. vueProps.push('value');
  845. } else {
  846. vueProps.name = {
  847. type: String,
  848. default: '' };
  849. vueProps.value = {
  850. type: [String, Number, Boolean, Array, Object, Date],
  851. default: '' };
  852. }
  853. }
  854. });
  855. }
  856. if (isPlainObject(vueExtends) && vueExtends.props) {
  857. behaviors.push(
  858. initBehavior({
  859. properties: initProperties(vueExtends.props, true) }));
  860. }
  861. if (Array.isArray(vueMixins)) {
  862. vueMixins.forEach(function (vueMixin) {
  863. if (isPlainObject(vueMixin) && vueMixin.props) {
  864. behaviors.push(
  865. initBehavior({
  866. properties: initProperties(vueMixin.props, true) }));
  867. }
  868. });
  869. }
  870. return behaviors;
  871. }
  872. function parsePropType(key, type, defaultValue, file) {
  873. // [String]=>String
  874. if (Array.isArray(type) && type.length === 1) {
  875. return type[0];
  876. }
  877. return type;
  878. }
  879. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  880. var properties = {};
  881. if (!isBehavior) {
  882. properties.vueId = {
  883. type: String,
  884. value: '' };
  885. // 用于字节跳动小程序模拟抽象节点
  886. properties.generic = {
  887. type: Object,
  888. value: null };
  889. // scopedSlotsCompiler auto
  890. properties.scopedSlotsCompiler = {
  891. type: String,
  892. value: '' };
  893. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  894. type: null,
  895. value: [],
  896. observer: function observer(newVal, oldVal) {
  897. var $slots = Object.create(null);
  898. newVal.forEach(function (slotName) {
  899. $slots[slotName] = true;
  900. });
  901. this.setData({
  902. $slots: $slots });
  903. } };
  904. }
  905. if (Array.isArray(props)) {// ['title']
  906. props.forEach(function (key) {
  907. properties[key] = {
  908. type: null,
  909. observer: createObserver(key) };
  910. });
  911. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  912. Object.keys(props).forEach(function (key) {
  913. var opts = props[key];
  914. if (isPlainObject(opts)) {// title:{type:String,default:''}
  915. var value = opts.default;
  916. if (isFn(value)) {
  917. value = value();
  918. }
  919. opts.type = parsePropType(key, opts.type);
  920. properties[key] = {
  921. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  922. value: value,
  923. observer: createObserver(key) };
  924. } else {// content:String
  925. var type = parsePropType(key, opts);
  926. properties[key] = {
  927. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  928. observer: createObserver(key) };
  929. }
  930. });
  931. }
  932. return properties;
  933. }
  934. function wrapper$1(event) {
  935. // TODO 又得兼容 mpvue 的 mp 对象
  936. try {
  937. event.mp = JSON.parse(JSON.stringify(event));
  938. } catch (e) {}
  939. event.stopPropagation = noop;
  940. event.preventDefault = noop;
  941. event.target = event.target || {};
  942. if (!hasOwn(event, 'detail')) {
  943. event.detail = {};
  944. }
  945. if (hasOwn(event, 'markerId')) {
  946. event.detail = typeof event.detail === 'object' ? event.detail : {};
  947. event.detail.markerId = event.markerId;
  948. }
  949. if (isPlainObject(event.detail)) {
  950. event.target = Object.assign({}, event.target, event.detail);
  951. }
  952. return event;
  953. }
  954. function getExtraValue(vm, dataPathsArray) {
  955. var context = vm;
  956. dataPathsArray.forEach(function (dataPathArray) {
  957. var dataPath = dataPathArray[0];
  958. var value = dataPathArray[2];
  959. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  960. var propPath = dataPathArray[1];
  961. var valuePath = dataPathArray[3];
  962. var vFor;
  963. if (Number.isInteger(dataPath)) {
  964. vFor = dataPath;
  965. } else if (!dataPath) {
  966. vFor = context;
  967. } else if (typeof dataPath === 'string' && dataPath) {
  968. if (dataPath.indexOf('#s#') === 0) {
  969. vFor = dataPath.substr(3);
  970. } else {
  971. vFor = vm.__get_value(dataPath, context);
  972. }
  973. }
  974. if (Number.isInteger(vFor)) {
  975. context = value;
  976. } else if (!propPath) {
  977. context = vFor[value];
  978. } else {
  979. if (Array.isArray(vFor)) {
  980. context = vFor.find(function (vForItem) {
  981. return vm.__get_value(propPath, vForItem) === value;
  982. });
  983. } else if (isPlainObject(vFor)) {
  984. context = Object.keys(vFor).find(function (vForKey) {
  985. return vm.__get_value(propPath, vFor[vForKey]) === value;
  986. });
  987. } else {
  988. console.error('v-for 暂不支持循环数据:', vFor);
  989. }
  990. }
  991. if (valuePath) {
  992. context = vm.__get_value(valuePath, context);
  993. }
  994. }
  995. });
  996. return context;
  997. }
  998. function processEventExtra(vm, extra, event) {
  999. var extraObj = {};
  1000. if (Array.isArray(extra) && extra.length) {
  1001. /**
  1002. *[
  1003. * ['data.items', 'data.id', item.data.id],
  1004. * ['metas', 'id', meta.id]
  1005. *],
  1006. *[
  1007. * ['data.items', 'data.id', item.data.id],
  1008. * ['metas', 'id', meta.id]
  1009. *],
  1010. *'test'
  1011. */
  1012. extra.forEach(function (dataPath, index) {
  1013. if (typeof dataPath === 'string') {
  1014. if (!dataPath) {// model,prop.sync
  1015. extraObj['$' + index] = vm;
  1016. } else {
  1017. if (dataPath === '$event') {// $event
  1018. extraObj['$' + index] = event;
  1019. } else if (dataPath === 'arguments') {
  1020. if (event.detail && event.detail.__args__) {
  1021. extraObj['$' + index] = event.detail.__args__;
  1022. } else {
  1023. extraObj['$' + index] = [event];
  1024. }
  1025. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1026. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1027. } else {
  1028. extraObj['$' + index] = vm.__get_value(dataPath);
  1029. }
  1030. }
  1031. } else {
  1032. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1033. }
  1034. });
  1035. }
  1036. return extraObj;
  1037. }
  1038. function getObjByArray(arr) {
  1039. var obj = {};
  1040. for (var i = 1; i < arr.length; i++) {
  1041. var element = arr[i];
  1042. obj[element[0]] = element[1];
  1043. }
  1044. return obj;
  1045. }
  1046. 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;
  1047. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1048. if (isCustom) {// 自定义事件
  1049. isCustomMPEvent = event.currentTarget &&
  1050. event.currentTarget.dataset &&
  1051. event.currentTarget.dataset.comType === 'wx';
  1052. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1053. if (isCustomMPEvent) {
  1054. return [event];
  1055. }
  1056. return event.detail.__args__ || event.detail;
  1057. }
  1058. }
  1059. var extraObj = processEventExtra(vm, extra, event);
  1060. var ret = [];
  1061. args.forEach(function (arg) {
  1062. if (arg === '$event') {
  1063. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1064. ret.push(event.target.value);
  1065. } else {
  1066. if (isCustom && !isCustomMPEvent) {
  1067. ret.push(event.detail.__args__[0]);
  1068. } else {// wxcomponent 组件或内置组件
  1069. ret.push(event);
  1070. }
  1071. }
  1072. } else {
  1073. if (Array.isArray(arg) && arg[0] === 'o') {
  1074. ret.push(getObjByArray(arg));
  1075. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1076. ret.push(extraObj[arg]);
  1077. } else {
  1078. ret.push(arg);
  1079. }
  1080. }
  1081. });
  1082. return ret;
  1083. }
  1084. var ONCE = '~';
  1085. var CUSTOM = '^';
  1086. function isMatchEventType(eventType, optType) {
  1087. return eventType === optType ||
  1088. optType === 'regionchange' && (
  1089. eventType === 'begin' ||
  1090. eventType === 'end');
  1091. }
  1092. function getContextVm(vm) {
  1093. var $parent = vm.$parent;
  1094. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1095. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1096. $parent = $parent.$parent;
  1097. }
  1098. return $parent && $parent.$parent;
  1099. }
  1100. function handleEvent(event) {var _this = this;
  1101. event = wrapper$1(event);
  1102. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1103. var dataset = (event.currentTarget || event.target).dataset;
  1104. if (!dataset) {
  1105. return console.warn('事件信息不存在');
  1106. }
  1107. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1108. if (!eventOpts) {
  1109. return console.warn('事件信息不存在');
  1110. }
  1111. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1112. var eventType = event.type;
  1113. var ret = [];
  1114. eventOpts.forEach(function (eventOpt) {
  1115. var type = eventOpt[0];
  1116. var eventsArray = eventOpt[1];
  1117. var isCustom = type.charAt(0) === CUSTOM;
  1118. type = isCustom ? type.slice(1) : type;
  1119. var isOnce = type.charAt(0) === ONCE;
  1120. type = isOnce ? type.slice(1) : type;
  1121. if (eventsArray && isMatchEventType(eventType, type)) {
  1122. eventsArray.forEach(function (eventArray) {
  1123. var methodName = eventArray[0];
  1124. if (methodName) {
  1125. var handlerCtx = _this.$vm;
  1126. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1127. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1128. }
  1129. if (methodName === '$emit') {
  1130. handlerCtx.$emit.apply(handlerCtx,
  1131. processEventArgs(
  1132. _this.$vm,
  1133. event,
  1134. eventArray[1],
  1135. eventArray[2],
  1136. isCustom,
  1137. methodName));
  1138. return;
  1139. }
  1140. var handler = handlerCtx[methodName];
  1141. if (!isFn(handler)) {
  1142. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1143. }
  1144. if (isOnce) {
  1145. if (handler.once) {
  1146. return;
  1147. }
  1148. handler.once = true;
  1149. }
  1150. var params = processEventArgs(
  1151. _this.$vm,
  1152. event,
  1153. eventArray[1],
  1154. eventArray[2],
  1155. isCustom,
  1156. methodName);
  1157. params = Array.isArray(params) ? params : [];
  1158. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1159. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1160. // eslint-disable-next-line no-sparse-arrays
  1161. params = params.concat([,,,,,,,,,, event]);
  1162. }
  1163. ret.push(handler.apply(handlerCtx, params));
  1164. }
  1165. });
  1166. }
  1167. });
  1168. if (
  1169. eventType === 'input' &&
  1170. ret.length === 1 &&
  1171. typeof ret[0] !== 'undefined')
  1172. {
  1173. return ret[0];
  1174. }
  1175. }
  1176. var locale;
  1177. {
  1178. locale = wx.getSystemInfoSync().language;
  1179. }
  1180. var i18n = (0, _uniI18n.initVueI18n)(
  1181. locale,
  1182. {});
  1183. var t = i18n.t;
  1184. var i18nMixin = i18n.mixin = {
  1185. beforeCreate: function beforeCreate() {var _this2 = this;
  1186. var unwatch = i18n.i18n.watchLocale(function () {
  1187. _this2.$forceUpdate();
  1188. });
  1189. this.$once('hook:beforeDestroy', function () {
  1190. unwatch();
  1191. });
  1192. },
  1193. methods: {
  1194. $$t: function $$t(key, values) {
  1195. return t(key, values);
  1196. } } };
  1197. var setLocale$1 = i18n.setLocale;
  1198. var getLocale$1 = i18n.getLocale;
  1199. function initAppLocale(Vue, appVm, locale) {
  1200. var state = Vue.observable({
  1201. locale: locale || i18n.getLocale() });
  1202. var localeWatchers = [];
  1203. appVm.$watchLocale = function (fn) {
  1204. localeWatchers.push(fn);
  1205. };
  1206. Object.defineProperty(appVm, '$locale', {
  1207. get: function get() {
  1208. return state.locale;
  1209. },
  1210. set: function set(v) {
  1211. state.locale = v;
  1212. localeWatchers.forEach(function (watch) {return watch(v);});
  1213. } });
  1214. }
  1215. var eventChannels = {};
  1216. var eventChannelStack = [];
  1217. function getEventChannel(id) {
  1218. if (id) {
  1219. var eventChannel = eventChannels[id];
  1220. delete eventChannels[id];
  1221. return eventChannel;
  1222. }
  1223. return eventChannelStack.shift();
  1224. }
  1225. var hooks = [
  1226. 'onShow',
  1227. 'onHide',
  1228. 'onError',
  1229. 'onPageNotFound',
  1230. 'onThemeChange',
  1231. 'onUnhandledRejection'];
  1232. function initEventChannel() {
  1233. _vue.default.prototype.getOpenerEventChannel = function () {
  1234. // 微信小程序使用自身getOpenerEventChannel
  1235. {
  1236. return this.$scope.getOpenerEventChannel();
  1237. }
  1238. };
  1239. var callHook = _vue.default.prototype.__call_hook;
  1240. _vue.default.prototype.__call_hook = function (hook, args) {
  1241. if (hook === 'onLoad' && args && args.__id__) {
  1242. this.__eventChannel__ = getEventChannel(args.__id__);
  1243. delete args.__id__;
  1244. }
  1245. return callHook.call(this, hook, args);
  1246. };
  1247. }
  1248. function initScopedSlotsParams() {
  1249. var center = {};
  1250. var parents = {};
  1251. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1252. var has = center[vueId];
  1253. if (!has) {
  1254. parents[vueId] = this;
  1255. this.$on('hook:destory', function () {
  1256. delete parents[vueId];
  1257. });
  1258. }
  1259. return has;
  1260. };
  1261. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1262. var data = center[vueId];
  1263. if (data) {
  1264. var object = data[name] || {};
  1265. return key ? object[key] : object;
  1266. } else {
  1267. parents[vueId] = this;
  1268. this.$on('hook:destory', function () {
  1269. delete parents[vueId];
  1270. });
  1271. }
  1272. };
  1273. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1274. var vueIds = this.$options.propsData.vueId;
  1275. if (vueIds) {
  1276. var vueId = vueIds.split(',')[0];
  1277. var object = center[vueId] = center[vueId] || {};
  1278. object[name] = value;
  1279. if (parents[vueId]) {
  1280. parents[vueId].$forceUpdate();
  1281. }
  1282. }
  1283. };
  1284. _vue.default.mixin({
  1285. destroyed: function destroyed() {
  1286. var propsData = this.$options.propsData;
  1287. var vueId = propsData && propsData.vueId;
  1288. if (vueId) {
  1289. delete center[vueId];
  1290. delete parents[vueId];
  1291. }
  1292. } });
  1293. }
  1294. function parseBaseApp(vm, _ref3)
  1295. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1296. initEventChannel();
  1297. {
  1298. initScopedSlotsParams();
  1299. }
  1300. if (vm.$options.store) {
  1301. _vue.default.prototype.$store = vm.$options.store;
  1302. }
  1303. uniIdMixin(_vue.default);
  1304. _vue.default.prototype.mpHost = "mp-weixin";
  1305. _vue.default.mixin({
  1306. beforeCreate: function beforeCreate() {
  1307. if (!this.$options.mpType) {
  1308. return;
  1309. }
  1310. this.mpType = this.$options.mpType;
  1311. this.$mp = _defineProperty({
  1312. data: {} },
  1313. this.mpType, this.$options.mpInstance);
  1314. this.$scope = this.$options.mpInstance;
  1315. delete this.$options.mpType;
  1316. delete this.$options.mpInstance;
  1317. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1318. var app = getApp();
  1319. if (app.$vm && app.$vm.$i18n) {
  1320. this._i18n = app.$vm.$i18n;
  1321. }
  1322. }
  1323. if (this.mpType !== 'app') {
  1324. initRefs(this);
  1325. initMocks(this, mocks);
  1326. }
  1327. } });
  1328. var appOptions = {
  1329. onLaunch: function onLaunch(args) {
  1330. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1331. return;
  1332. }
  1333. {
  1334. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1335. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1336. }
  1337. }
  1338. this.$vm = vm;
  1339. this.$vm.$mp = {
  1340. app: this };
  1341. this.$vm.$scope = this;
  1342. // vm 上也挂载 globalData
  1343. this.$vm.globalData = this.globalData;
  1344. this.$vm._isMounted = true;
  1345. this.$vm.__call_hook('mounted', args);
  1346. this.$vm.__call_hook('onLaunch', args);
  1347. } };
  1348. // 兼容旧版本 globalData
  1349. appOptions.globalData = vm.$options.globalData || {};
  1350. // 将 methods 中的方法挂在 getApp() 中
  1351. var methods = vm.$options.methods;
  1352. if (methods) {
  1353. Object.keys(methods).forEach(function (name) {
  1354. appOptions[name] = methods[name];
  1355. });
  1356. }
  1357. initAppLocale(_vue.default, vm, wx.getSystemInfoSync().language || 'zh-Hans');
  1358. initHooks(appOptions, hooks);
  1359. return appOptions;
  1360. }
  1361. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1362. function findVmByVueId(vm, vuePid) {
  1363. var $children = vm.$children;
  1364. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1365. for (var i = $children.length - 1; i >= 0; i--) {
  1366. var childVm = $children[i];
  1367. if (childVm.$scope._$vueId === vuePid) {
  1368. return childVm;
  1369. }
  1370. }
  1371. // 反向递归查找
  1372. var parentVm;
  1373. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1374. parentVm = findVmByVueId($children[_i], vuePid);
  1375. if (parentVm) {
  1376. return parentVm;
  1377. }
  1378. }
  1379. }
  1380. function initBehavior(options) {
  1381. return Behavior(options);
  1382. }
  1383. function isPage() {
  1384. return !!this.route;
  1385. }
  1386. function initRelation(detail) {
  1387. this.triggerEvent('__l', detail);
  1388. }
  1389. function selectAllComponents(mpInstance, selector, $refs) {
  1390. var components = mpInstance.selectAllComponents(selector);
  1391. components.forEach(function (component) {
  1392. var ref = component.dataset.ref;
  1393. $refs[ref] = component.$vm || component;
  1394. {
  1395. if (component.dataset.vueGeneric === 'scoped') {
  1396. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1397. selectAllComponents(scopedComponent, selector, $refs);
  1398. });
  1399. }
  1400. }
  1401. });
  1402. }
  1403. function initRefs(vm) {
  1404. var mpInstance = vm.$scope;
  1405. Object.defineProperty(vm, '$refs', {
  1406. get: function get() {
  1407. var $refs = {};
  1408. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1409. // TODO 暂不考虑 for 中的 scoped
  1410. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1411. forComponents.forEach(function (component) {
  1412. var ref = component.dataset.ref;
  1413. if (!$refs[ref]) {
  1414. $refs[ref] = [];
  1415. }
  1416. $refs[ref].push(component.$vm || component);
  1417. });
  1418. return $refs;
  1419. } });
  1420. }
  1421. function handleLink(event) {var _ref4 =
  1422. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1423. var parentVm;
  1424. if (vuePid) {
  1425. parentVm = findVmByVueId(this.$vm, vuePid);
  1426. }
  1427. if (!parentVm) {
  1428. parentVm = this.$vm;
  1429. }
  1430. vueOptions.parent = parentVm;
  1431. }
  1432. function parseApp(vm) {
  1433. return parseBaseApp(vm, {
  1434. mocks: mocks,
  1435. initRefs: initRefs });
  1436. }
  1437. function createApp(vm) {
  1438. App(parseApp(vm));
  1439. return vm;
  1440. }
  1441. var encodeReserveRE = /[!'()*]/g;
  1442. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1443. var commaRE = /%2C/g;
  1444. // fixed encodeURIComponent which is more conformant to RFC3986:
  1445. // - escapes [!'()*]
  1446. // - preserve commas
  1447. var encode = function encode(str) {return encodeURIComponent(str).
  1448. replace(encodeReserveRE, encodeReserveReplacer).
  1449. replace(commaRE, ',');};
  1450. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1451. var res = obj ? Object.keys(obj).map(function (key) {
  1452. var val = obj[key];
  1453. if (val === undefined) {
  1454. return '';
  1455. }
  1456. if (val === null) {
  1457. return encodeStr(key);
  1458. }
  1459. if (Array.isArray(val)) {
  1460. var result = [];
  1461. val.forEach(function (val2) {
  1462. if (val2 === undefined) {
  1463. return;
  1464. }
  1465. if (val2 === null) {
  1466. result.push(encodeStr(key));
  1467. } else {
  1468. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1469. }
  1470. });
  1471. return result.join('&');
  1472. }
  1473. return encodeStr(key) + '=' + encodeStr(val);
  1474. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1475. return res ? "?".concat(res) : '';
  1476. }
  1477. function parseBaseComponent(vueComponentOptions)
  1478. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1479. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1480. var options = _objectSpread({
  1481. multipleSlots: true,
  1482. addGlobalClass: true },
  1483. vueOptions.options || {});
  1484. {
  1485. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1486. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1487. Object.assign(options, vueOptions['mp-weixin'].options);
  1488. }
  1489. }
  1490. var componentOptions = {
  1491. options: options,
  1492. data: initData(vueOptions, _vue.default.prototype),
  1493. behaviors: initBehaviors(vueOptions, initBehavior),
  1494. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1495. lifetimes: {
  1496. attached: function attached() {
  1497. var properties = this.properties;
  1498. var options = {
  1499. mpType: isPage.call(this) ? 'page' : 'component',
  1500. mpInstance: this,
  1501. propsData: properties };
  1502. initVueIds(properties.vueId, this);
  1503. // 处理父子关系
  1504. initRelation.call(this, {
  1505. vuePid: this._$vuePid,
  1506. vueOptions: options });
  1507. // 初始化 vue 实例
  1508. this.$vm = new VueComponent(options);
  1509. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1510. initSlots(this.$vm, properties.vueSlots);
  1511. // 触发首次 setData
  1512. this.$vm.$mount();
  1513. },
  1514. ready: function ready() {
  1515. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1516. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1517. if (this.$vm) {
  1518. this.$vm._isMounted = true;
  1519. this.$vm.__call_hook('mounted');
  1520. this.$vm.__call_hook('onReady');
  1521. }
  1522. },
  1523. detached: function detached() {
  1524. this.$vm && this.$vm.$destroy();
  1525. } },
  1526. pageLifetimes: {
  1527. show: function show(args) {
  1528. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1529. },
  1530. hide: function hide() {
  1531. this.$vm && this.$vm.__call_hook('onPageHide');
  1532. },
  1533. resize: function resize(size) {
  1534. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1535. } },
  1536. methods: {
  1537. __l: handleLink,
  1538. __e: handleEvent } };
  1539. // externalClasses
  1540. if (vueOptions.externalClasses) {
  1541. componentOptions.externalClasses = vueOptions.externalClasses;
  1542. }
  1543. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1544. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1545. componentOptions.methods[callMethod] = function (args) {
  1546. return this.$vm[callMethod](args);
  1547. };
  1548. });
  1549. }
  1550. if (isPage) {
  1551. return componentOptions;
  1552. }
  1553. return [componentOptions, VueComponent];
  1554. }
  1555. function parseComponent(vueComponentOptions) {
  1556. return parseBaseComponent(vueComponentOptions, {
  1557. isPage: isPage,
  1558. initRelation: initRelation });
  1559. }
  1560. var hooks$1 = [
  1561. 'onShow',
  1562. 'onHide',
  1563. 'onUnload'];
  1564. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1565. function parseBasePage(vuePageOptions, _ref6)
  1566. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1567. var pageOptions = parseComponent(vuePageOptions);
  1568. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1569. pageOptions.methods.onLoad = function (query) {
  1570. this.options = query;
  1571. var copyQuery = Object.assign({}, query);
  1572. delete copyQuery.__id__;
  1573. this.$page = {
  1574. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1575. this.$vm.$mp.query = query; // 兼容 mpvue
  1576. this.$vm.__call_hook('onLoad', query);
  1577. };
  1578. return pageOptions;
  1579. }
  1580. function parsePage(vuePageOptions) {
  1581. return parseBasePage(vuePageOptions, {
  1582. isPage: isPage,
  1583. initRelation: initRelation });
  1584. }
  1585. function createPage(vuePageOptions) {
  1586. {
  1587. return Component(parsePage(vuePageOptions));
  1588. }
  1589. }
  1590. function createComponent(vueOptions) {
  1591. {
  1592. return Component(parseComponent(vueOptions));
  1593. }
  1594. }
  1595. function createSubpackageApp(vm) {
  1596. var appOptions = parseApp(vm);
  1597. var app = getApp({
  1598. allowDefault: true });
  1599. vm.$scope = app;
  1600. var globalData = app.globalData;
  1601. if (globalData) {
  1602. Object.keys(appOptions.globalData).forEach(function (name) {
  1603. if (!hasOwn(globalData, name)) {
  1604. globalData[name] = appOptions.globalData[name];
  1605. }
  1606. });
  1607. }
  1608. Object.keys(appOptions).forEach(function (name) {
  1609. if (!hasOwn(app, name)) {
  1610. app[name] = appOptions[name];
  1611. }
  1612. });
  1613. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1614. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1615. vm.__call_hook('onShow', args);
  1616. });
  1617. }
  1618. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1619. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1620. vm.__call_hook('onHide', args);
  1621. });
  1622. }
  1623. if (isFn(appOptions.onLaunch)) {
  1624. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1625. vm.__call_hook('onLaunch', args);
  1626. }
  1627. return vm;
  1628. }
  1629. function createPlugin(vm) {
  1630. var appOptions = parseApp(vm);
  1631. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1632. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1633. appOptions.onShow.apply(vm, args);
  1634. });
  1635. }
  1636. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1637. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1638. appOptions.onHide.apply(vm, args);
  1639. });
  1640. }
  1641. if (isFn(appOptions.onLaunch)) {
  1642. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1643. appOptions.onLaunch.call(vm, args);
  1644. }
  1645. return vm;
  1646. }
  1647. todos.forEach(function (todoApi) {
  1648. protocols[todoApi] = false;
  1649. });
  1650. canIUses.forEach(function (canIUseApi) {
  1651. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1652. canIUseApi;
  1653. if (!wx.canIUse(apiName)) {
  1654. protocols[canIUseApi] = false;
  1655. }
  1656. });
  1657. var uni = {};
  1658. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1659. uni = new Proxy({}, {
  1660. get: function get(target, name) {
  1661. if (hasOwn(target, name)) {
  1662. return target[name];
  1663. }
  1664. if (baseApi[name]) {
  1665. return baseApi[name];
  1666. }
  1667. if (api[name]) {
  1668. return promisify(name, api[name]);
  1669. }
  1670. {
  1671. if (extraApi[name]) {
  1672. return promisify(name, extraApi[name]);
  1673. }
  1674. if (todoApis[name]) {
  1675. return promisify(name, todoApis[name]);
  1676. }
  1677. }
  1678. if (eventApi[name]) {
  1679. return eventApi[name];
  1680. }
  1681. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1682. return;
  1683. }
  1684. return promisify(name, wrapper(name, wx[name]));
  1685. },
  1686. set: function set(target, name, value) {
  1687. target[name] = value;
  1688. return true;
  1689. } });
  1690. } else {
  1691. Object.keys(baseApi).forEach(function (name) {
  1692. uni[name] = baseApi[name];
  1693. });
  1694. {
  1695. Object.keys(todoApis).forEach(function (name) {
  1696. uni[name] = promisify(name, todoApis[name]);
  1697. });
  1698. Object.keys(extraApi).forEach(function (name) {
  1699. uni[name] = promisify(name, todoApis[name]);
  1700. });
  1701. }
  1702. Object.keys(eventApi).forEach(function (name) {
  1703. uni[name] = eventApi[name];
  1704. });
  1705. Object.keys(api).forEach(function (name) {
  1706. uni[name] = promisify(name, api[name]);
  1707. });
  1708. Object.keys(wx).forEach(function (name) {
  1709. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1710. uni[name] = promisify(name, wrapper(name, wx[name]));
  1711. }
  1712. });
  1713. }
  1714. wx.createApp = createApp;
  1715. wx.createPage = createPage;
  1716. wx.createComponent = createComponent;
  1717. wx.createSubpackageApp = createSubpackageApp;
  1718. wx.createPlugin = createPlugin;
  1719. var uni$1 = uni;var _default =
  1720. uni$1;exports.default = _default;
  1721. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  1722. /***/ }),
  1723. /***/ 10:
  1724. /*!**********************************************************!*\
  1725. !*** D:/yuwenjun_dev/caimei-applets-hehe/store/index.js ***!
  1726. \**********************************************************/
  1727. /*! no static exports found */
  1728. /***/ (function(module, exports, __webpack_require__) {
  1729. "use strict";
  1730. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  1731. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 11));
  1732. var _utilsTools = _interopRequireDefault(__webpack_require__(/*! ../common/config/utilsTools.js */ 12));
  1733. var _authorize = _interopRequireDefault(__webpack_require__(/*! ../common/config/authorize.js */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  1734. _vue.default.use(_vuex.default);
  1735. var store = new _vuex.default.Store({
  1736. state: {
  1737. isWxAuthorize: false, //是否授权
  1738. hasLogin: false,
  1739. userInfo: {}, //登录用户信息
  1740. wechatUserInfo: {}, //用户微信相关信息
  1741. cartNumber: 0,
  1742. isIphoneX: false,
  1743. isActivity: false,
  1744. isLoginType: 0,
  1745. isLoginProductId: 0,
  1746. windowHeight: '' },
  1747. mutations: {
  1748. login: function login(state, provider) {//用户身份 1、协销 2、会员机构 3、供应商 4.普通机构
  1749. state.hasLogin = true;
  1750. state.userInfo = provider;
  1751. uni.setStorage({ //缓存用户登陆状态
  1752. key: 'userInfo',
  1753. data: provider });
  1754. },
  1755. logout: function logout(state) {
  1756. state.hasLogin = false;
  1757. state.userInfo = {};
  1758. uni.removeStorage({
  1759. key: 'userInfo' });
  1760. uni.removeStorage({
  1761. key: 'token' });
  1762. },
  1763. wxLogin: function wxLogin(state, provider) {
  1764. state.isWxAuthorize = true;
  1765. // console.log(state.isWxAuthorize)
  1766. state.wechatUserInfo = provider;
  1767. uni.setStorageSync('_WX_State', true);
  1768. uni.setStorage({ //缓存用户微信授权信息
  1769. key: 'wechatUserInfo',
  1770. data: provider });
  1771. },
  1772. updateStatus: function updateStatus(state, provider) {
  1773. var TIME = _utilsTools.default.formatDate();
  1774. console.log("".concat(TIME), provider);
  1775. state.userInfo = provider;
  1776. uni.setStorage({ //缓存用户登陆状态
  1777. key: 'userInfo',
  1778. data: provider });
  1779. },
  1780. updateAllNum: function updateAllNum(state, num) {
  1781. if (num >= 100) {
  1782. uni.setTabBarBadge({
  1783. index: 1,
  1784. text: '99+' });
  1785. } else if (num > 0) {
  1786. uni.setTabBarBadge({
  1787. index: 1,
  1788. text: String(num) });
  1789. } else {
  1790. uni.removeTabBarBadge({
  1791. index: 1 });
  1792. }
  1793. },
  1794. setActivity: function setActivity(state, variable) {
  1795. state.isActivity = variable;
  1796. },
  1797. setChangeVar: function setChangeVar(state, variable) {
  1798. //获取设备信息是否为IphoneX
  1799. state.isIphoneX = variable;
  1800. },
  1801. setIsIphone: function setIsIphone(state, variable) {
  1802. //获取设备信息是否为IphoneX
  1803. state.isIphone = variable;
  1804. },
  1805. setLoginType: function setLoginType(state, variable) {
  1806. //获取设备信息是否为IphoneX
  1807. state.isLoginType = variable;
  1808. console.log(state.isLoginType);
  1809. },
  1810. setLoginProductId: function setLoginProductId(state, variable) {
  1811. //获取设备信息是否为IphoneX
  1812. state.isLoginProductId = variable;
  1813. console.log(state.isLoginProductId);
  1814. },
  1815. setLoginOrderId: function setLoginOrderId(state, variable) {
  1816. //获取设备信息是否为IphoneX
  1817. state.isLoginOrderId = variable;
  1818. console.log(state.isLoginOrderId);
  1819. },
  1820. setWindowHeight: function setWindowHeight(state, height) {
  1821. state.windowHeight = height;
  1822. console.log(state.windowHeight);
  1823. } },
  1824. actions: {
  1825. setVariableFun: function setVariableFun(context, vData) {
  1826. context.commit('setChangeVar', vData);
  1827. },
  1828. setIsIphoneFun: function setIsIphoneFun(context, vData) {
  1829. context.commit('setIsIphone', vData);
  1830. },
  1831. setActivityFn: function setActivityFn(context, vData) {
  1832. context.commit('setActivity', vData);
  1833. }
  1834. // setLoginTypeFn:function(context,vData){
  1835. // context.commit('setLoginType',vData)
  1836. // }
  1837. } });var _default =
  1838. store;exports.default = _default;
  1839. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  1840. /***/ }),
  1841. /***/ 108:
  1842. /*!************************************************************************!*\
  1843. !*** D:/yuwenjun_dev/caimei-applets-hehe/common/config/addressdata.js ***!
  1844. \************************************************************************/
  1845. /*! no static exports found */
  1846. /***/ (function(module, exports, __webpack_require__) {
  1847. "use strict";
  1848. var _ajaxService = _interopRequireDefault(__webpack_require__(/*! @/services/ajax.service.js */ 20));
  1849. var _public = _interopRequireDefault(__webpack_require__(/*! @/services/public.service */ 30));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  1850. *请求获取省市区
  1851. *已提供给地区选择picker组件使用
  1852. */var _PublicService = new _public.default(_ajaxService.default);
  1853. var provinceData = [];
  1854. var cityData = [];
  1855. var areaData = [];
  1856. _PublicService.GetAllAddressData().then(function (res) {
  1857. var list = res.data;
  1858. list.forEach(function (item) {
  1859. var xxx = handleCitys(item);
  1860. provinceData.push(item);
  1861. cityData.push(xxx.e);
  1862. areaData.push(xxx.f);
  1863. var list = res.data;
  1864. list.forEach(function (item) {
  1865. var xxx = handleCitys(item);
  1866. provinceData.push(item);
  1867. cityData.push(xxx.e);
  1868. areaData.push(xxx.f);
  1869. });
  1870. });
  1871. //获取市后继续处理
  1872. function handleCitys(data) {
  1873. var x = [];
  1874. var s = [];
  1875. if (data.cityList.length) {
  1876. data.cityList.forEach(function (item) {
  1877. var xxx = handleTowns(item);
  1878. s.push(xxx);
  1879. x.push(item);
  1880. });
  1881. } else {
  1882. s.push([{
  1883. name: '' }]);
  1884. x.push([{
  1885. name: '' }]);
  1886. }
  1887. return {
  1888. e: x,
  1889. f: s };
  1890. }
  1891. //获取区后继续处理
  1892. function handleTowns(data) {
  1893. var x = [];
  1894. data.townList.forEach(function (item) {
  1895. x.push(item);
  1896. });
  1897. return x;
  1898. }
  1899. function handleData3(data) {
  1900. var xxx = [];
  1901. data.forEach(function (item) {
  1902. var ooo = [];
  1903. item.forEach(function (opt) {
  1904. opt.forEach(function (z) {
  1905. ooo.push(z);
  1906. });
  1907. });
  1908. xxx.push(ooo);
  1909. });
  1910. return xxx;
  1911. }
  1912. });
  1913. module.exports = {
  1914. provinceData: provinceData,
  1915. cityData: cityData,
  1916. areaData: areaData };
  1917. /***/ }),
  1918. /***/ 11:
  1919. /*!**************************************************************************************!*\
  1920. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  1921. \**************************************************************************************/
  1922. /*! no static exports found */
  1923. /***/ (function(module, exports, __webpack_require__) {
  1924. "use strict";
  1925. /* WEBPACK VAR INJECTION */(function(global) {/*!
  1926. * vuex v3.6.2
  1927. * (c) 2021 Evan You
  1928. * @license MIT
  1929. */
  1930. function applyMixin (Vue) {
  1931. var version = Number(Vue.version.split('.')[0]);
  1932. if (version >= 2) {
  1933. Vue.mixin({ beforeCreate: vuexInit });
  1934. } else {
  1935. // override init and inject vuex init procedure
  1936. // for 1.x backwards compatibility.
  1937. var _init = Vue.prototype._init;
  1938. Vue.prototype._init = function (options) {
  1939. if ( options === void 0 ) options = {};
  1940. options.init = options.init
  1941. ? [vuexInit].concat(options.init)
  1942. : vuexInit;
  1943. _init.call(this, options);
  1944. };
  1945. }
  1946. /**
  1947. * Vuex init hook, injected into each instances init hooks list.
  1948. */
  1949. function vuexInit () {
  1950. var options = this.$options;
  1951. // store injection
  1952. if (options.store) {
  1953. this.$store = typeof options.store === 'function'
  1954. ? options.store()
  1955. : options.store;
  1956. } else if (options.parent && options.parent.$store) {
  1957. this.$store = options.parent.$store;
  1958. }
  1959. }
  1960. }
  1961. var target = typeof window !== 'undefined'
  1962. ? window
  1963. : typeof global !== 'undefined'
  1964. ? global
  1965. : {};
  1966. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  1967. function devtoolPlugin (store) {
  1968. if (!devtoolHook) { return }
  1969. store._devtoolHook = devtoolHook;
  1970. devtoolHook.emit('vuex:init', store);
  1971. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  1972. store.replaceState(targetState);
  1973. });
  1974. store.subscribe(function (mutation, state) {
  1975. devtoolHook.emit('vuex:mutation', mutation, state);
  1976. }, { prepend: true });
  1977. store.subscribeAction(function (action, state) {
  1978. devtoolHook.emit('vuex:action', action, state);
  1979. }, { prepend: true });
  1980. }
  1981. /**
  1982. * Get the first item that pass the test
  1983. * by second argument function
  1984. *
  1985. * @param {Array} list
  1986. * @param {Function} f
  1987. * @return {*}
  1988. */
  1989. function find (list, f) {
  1990. return list.filter(f)[0]
  1991. }
  1992. /**
  1993. * Deep copy the given object considering circular structure.
  1994. * This function caches all nested objects and its copies.
  1995. * If it detects circular structure, use cached copy to avoid infinite loop.
  1996. *
  1997. * @param {*} obj
  1998. * @param {Array<Object>} cache
  1999. * @return {*}
  2000. */
  2001. function deepCopy (obj, cache) {
  2002. if ( cache === void 0 ) cache = [];
  2003. // just return if obj is immutable value
  2004. if (obj === null || typeof obj !== 'object') {
  2005. return obj
  2006. }
  2007. // if obj is hit, it is in circular structure
  2008. var hit = find(cache, function (c) { return c.original === obj; });
  2009. if (hit) {
  2010. return hit.copy
  2011. }
  2012. var copy = Array.isArray(obj) ? [] : {};
  2013. // put the copy into cache at first
  2014. // because we want to refer it in recursive deepCopy
  2015. cache.push({
  2016. original: obj,
  2017. copy: copy
  2018. });
  2019. Object.keys(obj).forEach(function (key) {
  2020. copy[key] = deepCopy(obj[key], cache);
  2021. });
  2022. return copy
  2023. }
  2024. /**
  2025. * forEach for object
  2026. */
  2027. function forEachValue (obj, fn) {
  2028. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  2029. }
  2030. function isObject (obj) {
  2031. return obj !== null && typeof obj === 'object'
  2032. }
  2033. function isPromise (val) {
  2034. return val && typeof val.then === 'function'
  2035. }
  2036. function assert (condition, msg) {
  2037. if (!condition) { throw new Error(("[vuex] " + msg)) }
  2038. }
  2039. function partial (fn, arg) {
  2040. return function () {
  2041. return fn(arg)
  2042. }
  2043. }
  2044. // Base data struct for store's module, package with some attribute and method
  2045. var Module = function Module (rawModule, runtime) {
  2046. this.runtime = runtime;
  2047. // Store some children item
  2048. this._children = Object.create(null);
  2049. // Store the origin module object which passed by programmer
  2050. this._rawModule = rawModule;
  2051. var rawState = rawModule.state;
  2052. // Store the origin module's state
  2053. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  2054. };
  2055. var prototypeAccessors = { namespaced: { configurable: true } };
  2056. prototypeAccessors.namespaced.get = function () {
  2057. return !!this._rawModule.namespaced
  2058. };
  2059. Module.prototype.addChild = function addChild (key, module) {
  2060. this._children[key] = module;
  2061. };
  2062. Module.prototype.removeChild = function removeChild (key) {
  2063. delete this._children[key];
  2064. };
  2065. Module.prototype.getChild = function getChild (key) {
  2066. return this._children[key]
  2067. };
  2068. Module.prototype.hasChild = function hasChild (key) {
  2069. return key in this._children
  2070. };
  2071. Module.prototype.update = function update (rawModule) {
  2072. this._rawModule.namespaced = rawModule.namespaced;
  2073. if (rawModule.actions) {
  2074. this._rawModule.actions = rawModule.actions;
  2075. }
  2076. if (rawModule.mutations) {
  2077. this._rawModule.mutations = rawModule.mutations;
  2078. }
  2079. if (rawModule.getters) {
  2080. this._rawModule.getters = rawModule.getters;
  2081. }
  2082. };
  2083. Module.prototype.forEachChild = function forEachChild (fn) {
  2084. forEachValue(this._children, fn);
  2085. };
  2086. Module.prototype.forEachGetter = function forEachGetter (fn) {
  2087. if (this._rawModule.getters) {
  2088. forEachValue(this._rawModule.getters, fn);
  2089. }
  2090. };
  2091. Module.prototype.forEachAction = function forEachAction (fn) {
  2092. if (this._rawModule.actions) {
  2093. forEachValue(this._rawModule.actions, fn);
  2094. }
  2095. };
  2096. Module.prototype.forEachMutation = function forEachMutation (fn) {
  2097. if (this._rawModule.mutations) {
  2098. forEachValue(this._rawModule.mutations, fn);
  2099. }
  2100. };
  2101. Object.defineProperties( Module.prototype, prototypeAccessors );
  2102. var ModuleCollection = function ModuleCollection (rawRootModule) {
  2103. // register root module (Vuex.Store options)
  2104. this.register([], rawRootModule, false);
  2105. };
  2106. ModuleCollection.prototype.get = function get (path) {
  2107. return path.reduce(function (module, key) {
  2108. return module.getChild(key)
  2109. }, this.root)
  2110. };
  2111. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  2112. var module = this.root;
  2113. return path.reduce(function (namespace, key) {
  2114. module = module.getChild(key);
  2115. return namespace + (module.namespaced ? key + '/' : '')
  2116. }, '')
  2117. };
  2118. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  2119. update([], this.root, rawRootModule);
  2120. };
  2121. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  2122. var this$1 = this;
  2123. if ( runtime === void 0 ) runtime = true;
  2124. if ((true)) {
  2125. assertRawModule(path, rawModule);
  2126. }
  2127. var newModule = new Module(rawModule, runtime);
  2128. if (path.length === 0) {
  2129. this.root = newModule;
  2130. } else {
  2131. var parent = this.get(path.slice(0, -1));
  2132. parent.addChild(path[path.length - 1], newModule);
  2133. }
  2134. // register nested modules
  2135. if (rawModule.modules) {
  2136. forEachValue(rawModule.modules, function (rawChildModule, key) {
  2137. this$1.register(path.concat(key), rawChildModule, runtime);
  2138. });
  2139. }
  2140. };
  2141. ModuleCollection.prototype.unregister = function unregister (path) {
  2142. var parent = this.get(path.slice(0, -1));
  2143. var key = path[path.length - 1];
  2144. var child = parent.getChild(key);
  2145. if (!child) {
  2146. if ((true)) {
  2147. console.warn(
  2148. "[vuex] trying to unregister module '" + key + "', which is " +
  2149. "not registered"
  2150. );
  2151. }
  2152. return
  2153. }
  2154. if (!child.runtime) {
  2155. return
  2156. }
  2157. parent.removeChild(key);
  2158. };
  2159. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  2160. var parent = this.get(path.slice(0, -1));
  2161. var key = path[path.length - 1];
  2162. if (parent) {
  2163. return parent.hasChild(key)
  2164. }
  2165. return false
  2166. };
  2167. function update (path, targetModule, newModule) {
  2168. if ((true)) {
  2169. assertRawModule(path, newModule);
  2170. }
  2171. // update target module
  2172. targetModule.update(newModule);
  2173. // update nested modules
  2174. if (newModule.modules) {
  2175. for (var key in newModule.modules) {
  2176. if (!targetModule.getChild(key)) {
  2177. if ((true)) {
  2178. console.warn(
  2179. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  2180. 'manual reload is needed'
  2181. );
  2182. }
  2183. return
  2184. }
  2185. update(
  2186. path.concat(key),
  2187. targetModule.getChild(key),
  2188. newModule.modules[key]
  2189. );
  2190. }
  2191. }
  2192. }
  2193. var functionAssert = {
  2194. assert: function (value) { return typeof value === 'function'; },
  2195. expected: 'function'
  2196. };
  2197. var objectAssert = {
  2198. assert: function (value) { return typeof value === 'function' ||
  2199. (typeof value === 'object' && typeof value.handler === 'function'); },
  2200. expected: 'function or object with "handler" function'
  2201. };
  2202. var assertTypes = {
  2203. getters: functionAssert,
  2204. mutations: functionAssert,
  2205. actions: objectAssert
  2206. };
  2207. function assertRawModule (path, rawModule) {
  2208. Object.keys(assertTypes).forEach(function (key) {
  2209. if (!rawModule[key]) { return }
  2210. var assertOptions = assertTypes[key];
  2211. forEachValue(rawModule[key], function (value, type) {
  2212. assert(
  2213. assertOptions.assert(value),
  2214. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  2215. );
  2216. });
  2217. });
  2218. }
  2219. function makeAssertionMessage (path, key, type, value, expected) {
  2220. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  2221. if (path.length > 0) {
  2222. buf += " in module \"" + (path.join('.')) + "\"";
  2223. }
  2224. buf += " is " + (JSON.stringify(value)) + ".";
  2225. return buf
  2226. }
  2227. var Vue; // bind on install
  2228. var Store = function Store (options) {
  2229. var this$1 = this;
  2230. if ( options === void 0 ) options = {};
  2231. // Auto install if it is not done yet and `window` has `Vue`.
  2232. // To allow users to avoid auto-installation in some cases,
  2233. // this code should be placed here. See #731
  2234. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  2235. install(window.Vue);
  2236. }
  2237. if ((true)) {
  2238. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  2239. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  2240. assert(this instanceof Store, "store must be called with the new operator.");
  2241. }
  2242. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  2243. var strict = options.strict; if ( strict === void 0 ) strict = false;
  2244. // store internal state
  2245. this._committing = false;
  2246. this._actions = Object.create(null);
  2247. this._actionSubscribers = [];
  2248. this._mutations = Object.create(null);
  2249. this._wrappedGetters = Object.create(null);
  2250. this._modules = new ModuleCollection(options);
  2251. this._modulesNamespaceMap = Object.create(null);
  2252. this._subscribers = [];
  2253. this._watcherVM = new Vue();
  2254. this._makeLocalGettersCache = Object.create(null);
  2255. // bind commit and dispatch to self
  2256. var store = this;
  2257. var ref = this;
  2258. var dispatch = ref.dispatch;
  2259. var commit = ref.commit;
  2260. this.dispatch = function boundDispatch (type, payload) {
  2261. return dispatch.call(store, type, payload)
  2262. };
  2263. this.commit = function boundCommit (type, payload, options) {
  2264. return commit.call(store, type, payload, options)
  2265. };
  2266. // strict mode
  2267. this.strict = strict;
  2268. var state = this._modules.root.state;
  2269. // init root module.
  2270. // this also recursively registers all sub-modules
  2271. // and collects all module getters inside this._wrappedGetters
  2272. installModule(this, state, [], this._modules.root);
  2273. // initialize the store vm, which is responsible for the reactivity
  2274. // (also registers _wrappedGetters as computed properties)
  2275. resetStoreVM(this, state);
  2276. // apply plugins
  2277. plugins.forEach(function (plugin) { return plugin(this$1); });
  2278. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  2279. if (useDevtools) {
  2280. devtoolPlugin(this);
  2281. }
  2282. };
  2283. var prototypeAccessors$1 = { state: { configurable: true } };
  2284. prototypeAccessors$1.state.get = function () {
  2285. return this._vm._data.$$state
  2286. };
  2287. prototypeAccessors$1.state.set = function (v) {
  2288. if ((true)) {
  2289. assert(false, "use store.replaceState() to explicit replace store state.");
  2290. }
  2291. };
  2292. Store.prototype.commit = function commit (_type, _payload, _options) {
  2293. var this$1 = this;
  2294. // check object-style commit
  2295. var ref = unifyObjectStyle(_type, _payload, _options);
  2296. var type = ref.type;
  2297. var payload = ref.payload;
  2298. var options = ref.options;
  2299. var mutation = { type: type, payload: payload };
  2300. var entry = this._mutations[type];
  2301. if (!entry) {
  2302. if ((true)) {
  2303. console.error(("[vuex] unknown mutation type: " + type));
  2304. }
  2305. return
  2306. }
  2307. this._withCommit(function () {
  2308. entry.forEach(function commitIterator (handler) {
  2309. handler(payload);
  2310. });
  2311. });
  2312. this._subscribers
  2313. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  2314. .forEach(function (sub) { return sub(mutation, this$1.state); });
  2315. if (
  2316. ( true) &&
  2317. options && options.silent
  2318. ) {
  2319. console.warn(
  2320. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  2321. 'Use the filter functionality in the vue-devtools'
  2322. );
  2323. }
  2324. };
  2325. Store.prototype.dispatch = function dispatch (_type, _payload) {
  2326. var this$1 = this;
  2327. // check object-style dispatch
  2328. var ref = unifyObjectStyle(_type, _payload);
  2329. var type = ref.type;
  2330. var payload = ref.payload;
  2331. var action = { type: type, payload: payload };
  2332. var entry = this._actions[type];
  2333. if (!entry) {
  2334. if ((true)) {
  2335. console.error(("[vuex] unknown action type: " + type));
  2336. }
  2337. return
  2338. }
  2339. try {
  2340. this._actionSubscribers
  2341. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  2342. .filter(function (sub) { return sub.before; })
  2343. .forEach(function (sub) { return sub.before(action, this$1.state); });
  2344. } catch (e) {
  2345. if ((true)) {
  2346. console.warn("[vuex] error in before action subscribers: ");
  2347. console.error(e);
  2348. }
  2349. }
  2350. var result = entry.length > 1
  2351. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  2352. : entry[0](payload);
  2353. return new Promise(function (resolve, reject) {
  2354. result.then(function (res) {
  2355. try {
  2356. this$1._actionSubscribers
  2357. .filter(function (sub) { return sub.after; })
  2358. .forEach(function (sub) { return sub.after(action, this$1.state); });
  2359. } catch (e) {
  2360. if ((true)) {
  2361. console.warn("[vuex] error in after action subscribers: ");
  2362. console.error(e);
  2363. }
  2364. }
  2365. resolve(res);
  2366. }, function (error) {
  2367. try {
  2368. this$1._actionSubscribers
  2369. .filter(function (sub) { return sub.error; })
  2370. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  2371. } catch (e) {
  2372. if ((true)) {
  2373. console.warn("[vuex] error in error action subscribers: ");
  2374. console.error(e);
  2375. }
  2376. }
  2377. reject(error);
  2378. });
  2379. })
  2380. };
  2381. Store.prototype.subscribe = function subscribe (fn, options) {
  2382. return genericSubscribe(fn, this._subscribers, options)
  2383. };
  2384. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  2385. var subs = typeof fn === 'function' ? { before: fn } : fn;
  2386. return genericSubscribe(subs, this._actionSubscribers, options)
  2387. };
  2388. Store.prototype.watch = function watch (getter, cb, options) {
  2389. var this$1 = this;
  2390. if ((true)) {
  2391. assert(typeof getter === 'function', "store.watch only accepts a function.");
  2392. }
  2393. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  2394. };
  2395. Store.prototype.replaceState = function replaceState (state) {
  2396. var this$1 = this;
  2397. this._withCommit(function () {
  2398. this$1._vm._data.$$state = state;
  2399. });
  2400. };
  2401. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  2402. if ( options === void 0 ) options = {};
  2403. if (typeof path === 'string') { path = [path]; }
  2404. if ((true)) {
  2405. assert(Array.isArray(path), "module path must be a string or an Array.");
  2406. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  2407. }
  2408. this._modules.register(path, rawModule);
  2409. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  2410. // reset store to update getters...
  2411. resetStoreVM(this, this.state);
  2412. };
  2413. Store.prototype.unregisterModule = function unregisterModule (path) {
  2414. var this$1 = this;
  2415. if (typeof path === 'string') { path = [path]; }
  2416. if ((true)) {
  2417. assert(Array.isArray(path), "module path must be a string or an Array.");
  2418. }
  2419. this._modules.unregister(path);
  2420. this._withCommit(function () {
  2421. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  2422. Vue.delete(parentState, path[path.length - 1]);
  2423. });
  2424. resetStore(this);
  2425. };
  2426. Store.prototype.hasModule = function hasModule (path) {
  2427. if (typeof path === 'string') { path = [path]; }
  2428. if ((true)) {
  2429. assert(Array.isArray(path), "module path must be a string or an Array.");
  2430. }
  2431. return this._modules.isRegistered(path)
  2432. };
  2433. Store.prototype[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] = function (newOptions) {
  2434. this._modules.update(newOptions);
  2435. resetStore(this, true);
  2436. };
  2437. Store.prototype._withCommit = function _withCommit (fn) {
  2438. var committing = this._committing;
  2439. this._committing = true;
  2440. fn();
  2441. this._committing = committing;
  2442. };
  2443. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  2444. function genericSubscribe (fn, subs, options) {
  2445. if (subs.indexOf(fn) < 0) {
  2446. options && options.prepend
  2447. ? subs.unshift(fn)
  2448. : subs.push(fn);
  2449. }
  2450. return function () {
  2451. var i = subs.indexOf(fn);
  2452. if (i > -1) {
  2453. subs.splice(i, 1);
  2454. }
  2455. }
  2456. }
  2457. function resetStore (store, hot) {
  2458. store._actions = Object.create(null);
  2459. store._mutations = Object.create(null);
  2460. store._wrappedGetters = Object.create(null);
  2461. store._modulesNamespaceMap = Object.create(null);
  2462. var state = store.state;
  2463. // init all modules
  2464. installModule(store, state, [], store._modules.root, true);
  2465. // reset vm
  2466. resetStoreVM(store, state, hot);
  2467. }
  2468. function resetStoreVM (store, state, hot) {
  2469. var oldVm = store._vm;
  2470. // bind store public getters
  2471. store.getters = {};
  2472. // reset local getters cache
  2473. store._makeLocalGettersCache = Object.create(null);
  2474. var wrappedGetters = store._wrappedGetters;
  2475. var computed = {};
  2476. forEachValue(wrappedGetters, function (fn, key) {
  2477. // use computed to leverage its lazy-caching mechanism
  2478. // direct inline function use will lead to closure preserving oldVm.
  2479. // using partial to return function with only arguments preserved in closure environment.
  2480. computed[key] = partial(fn, store);
  2481. Object.defineProperty(store.getters, key, {
  2482. get: function () { return store._vm[key]; },
  2483. enumerable: true // for local getters
  2484. });
  2485. });
  2486. // use a Vue instance to store the state tree
  2487. // suppress warnings just in case the user has added
  2488. // some funky global mixins
  2489. var silent = Vue.config.silent;
  2490. Vue.config.silent = true;
  2491. store._vm = new Vue({
  2492. data: {
  2493. $$state: state
  2494. },
  2495. computed: computed
  2496. });
  2497. Vue.config.silent = silent;
  2498. // enable strict mode for new vm
  2499. if (store.strict) {
  2500. enableStrictMode(store);
  2501. }
  2502. if (oldVm) {
  2503. if (hot) {
  2504. // dispatch changes in all subscribed watchers
  2505. // to force getter re-evaluation for hot reloading.
  2506. store._withCommit(function () {
  2507. oldVm._data.$$state = null;
  2508. });
  2509. }
  2510. Vue.nextTick(function () { return oldVm.$destroy(); });
  2511. }
  2512. }
  2513. function installModule (store, rootState, path, module, hot) {
  2514. var isRoot = !path.length;
  2515. var namespace = store._modules.getNamespace(path);
  2516. // register in namespace map
  2517. if (module.namespaced) {
  2518. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  2519. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  2520. }
  2521. store._modulesNamespaceMap[namespace] = module;
  2522. }
  2523. // set state
  2524. if (!isRoot && !hot) {
  2525. var parentState = getNestedState(rootState, path.slice(0, -1));
  2526. var moduleName = path[path.length - 1];
  2527. store._withCommit(function () {
  2528. if ((true)) {
  2529. if (moduleName in parentState) {
  2530. console.warn(
  2531. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  2532. );
  2533. }
  2534. }
  2535. Vue.set(parentState, moduleName, module.state);
  2536. });
  2537. }
  2538. var local = module.context = makeLocalContext(store, namespace, path);
  2539. module.forEachMutation(function (mutation, key) {
  2540. var namespacedType = namespace + key;
  2541. registerMutation(store, namespacedType, mutation, local);
  2542. });
  2543. module.forEachAction(function (action, key) {
  2544. var type = action.root ? key : namespace + key;
  2545. var handler = action.handler || action;
  2546. registerAction(store, type, handler, local);
  2547. });
  2548. module.forEachGetter(function (getter, key) {
  2549. var namespacedType = namespace + key;
  2550. registerGetter(store, namespacedType, getter, local);
  2551. });
  2552. module.forEachChild(function (child, key) {
  2553. installModule(store, rootState, path.concat(key), child, hot);
  2554. });
  2555. }
  2556. /**
  2557. * make localized dispatch, commit, getters and state
  2558. * if there is no namespace, just use root ones
  2559. */
  2560. function makeLocalContext (store, namespace, path) {
  2561. var noNamespace = namespace === '';
  2562. var local = {
  2563. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  2564. var args = unifyObjectStyle(_type, _payload, _options);
  2565. var payload = args.payload;
  2566. var options = args.options;
  2567. var type = args.type;
  2568. if (!options || !options.root) {
  2569. type = namespace + type;
  2570. if (( true) && !store._actions[type]) {
  2571. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  2572. return
  2573. }
  2574. }
  2575. return store.dispatch(type, payload)
  2576. },
  2577. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  2578. var args = unifyObjectStyle(_type, _payload, _options);
  2579. var payload = args.payload;
  2580. var options = args.options;
  2581. var type = args.type;
  2582. if (!options || !options.root) {
  2583. type = namespace + type;
  2584. if (( true) && !store._mutations[type]) {
  2585. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  2586. return
  2587. }
  2588. }
  2589. store.commit(type, payload, options);
  2590. }
  2591. };
  2592. // getters and state object must be gotten lazily
  2593. // because they will be changed by vm update
  2594. Object.defineProperties(local, {
  2595. getters: {
  2596. get: noNamespace
  2597. ? function () { return store.getters; }
  2598. : function () { return makeLocalGetters(store, namespace); }
  2599. },
  2600. state: {
  2601. get: function () { return getNestedState(store.state, path); }
  2602. }
  2603. });
  2604. return local
  2605. }
  2606. function makeLocalGetters (store, namespace) {
  2607. if (!store._makeLocalGettersCache[namespace]) {
  2608. var gettersProxy = {};
  2609. var splitPos = namespace.length;
  2610. Object.keys(store.getters).forEach(function (type) {
  2611. // skip if the target getter is not match this namespace
  2612. if (type.slice(0, splitPos) !== namespace) { return }
  2613. // extract local getter type
  2614. var localType = type.slice(splitPos);
  2615. // Add a port to the getters proxy.
  2616. // Define as getter property because
  2617. // we do not want to evaluate the getters in this time.
  2618. Object.defineProperty(gettersProxy, localType, {
  2619. get: function () { return store.getters[type]; },
  2620. enumerable: true
  2621. });
  2622. });
  2623. store._makeLocalGettersCache[namespace] = gettersProxy;
  2624. }
  2625. return store._makeLocalGettersCache[namespace]
  2626. }
  2627. function registerMutation (store, type, handler, local) {
  2628. var entry = store._mutations[type] || (store._mutations[type] = []);
  2629. entry.push(function wrappedMutationHandler (payload) {
  2630. handler.call(store, local.state, payload);
  2631. });
  2632. }
  2633. function registerAction (store, type, handler, local) {
  2634. var entry = store._actions[type] || (store._actions[type] = []);
  2635. entry.push(function wrappedActionHandler (payload) {
  2636. var res = handler.call(store, {
  2637. dispatch: local.dispatch,
  2638. commit: local.commit,
  2639. getters: local.getters,
  2640. state: local.state,
  2641. rootGetters: store.getters,
  2642. rootState: store.state
  2643. }, payload);
  2644. if (!isPromise(res)) {
  2645. res = Promise.resolve(res);
  2646. }
  2647. if (store._devtoolHook) {
  2648. return res.catch(function (err) {
  2649. store._devtoolHook.emit('vuex:error', err);
  2650. throw err
  2651. })
  2652. } else {
  2653. return res
  2654. }
  2655. });
  2656. }
  2657. function registerGetter (store, type, rawGetter, local) {
  2658. if (store._wrappedGetters[type]) {
  2659. if ((true)) {
  2660. console.error(("[vuex] duplicate getter key: " + type));
  2661. }
  2662. return
  2663. }
  2664. store._wrappedGetters[type] = function wrappedGetter (store) {
  2665. return rawGetter(
  2666. local.state, // local state
  2667. local.getters, // local getters
  2668. store.state, // root state
  2669. store.getters // root getters
  2670. )
  2671. };
  2672. }
  2673. function enableStrictMode (store) {
  2674. store._vm.$watch(function () { return this._data.$$state }, function () {
  2675. if ((true)) {
  2676. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  2677. }
  2678. }, { deep: true, sync: true });
  2679. }
  2680. function getNestedState (state, path) {
  2681. return path.reduce(function (state, key) { return state[key]; }, state)
  2682. }
  2683. function unifyObjectStyle (type, payload, options) {
  2684. if (isObject(type) && type.type) {
  2685. options = payload;
  2686. payload = type;
  2687. type = type.type;
  2688. }
  2689. if ((true)) {
  2690. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  2691. }
  2692. return { type: type, payload: payload, options: options }
  2693. }
  2694. function install (_Vue) {
  2695. if (Vue && _Vue === Vue) {
  2696. if ((true)) {
  2697. console.error(
  2698. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  2699. );
  2700. }
  2701. return
  2702. }
  2703. Vue = _Vue;
  2704. applyMixin(Vue);
  2705. }
  2706. /**
  2707. * Reduce the code which written in Vue.js for getting the state.
  2708. * @param {String} [namespace] - Module's namespace
  2709. * @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.
  2710. * @param {Object}
  2711. */
  2712. var mapState = normalizeNamespace(function (namespace, states) {
  2713. var res = {};
  2714. if (( true) && !isValidMap(states)) {
  2715. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  2716. }
  2717. normalizeMap(states).forEach(function (ref) {
  2718. var key = ref.key;
  2719. var val = ref.val;
  2720. res[key] = function mappedState () {
  2721. var state = this.$store.state;
  2722. var getters = this.$store.getters;
  2723. if (namespace) {
  2724. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  2725. if (!module) {
  2726. return
  2727. }
  2728. state = module.context.state;
  2729. getters = module.context.getters;
  2730. }
  2731. return typeof val === 'function'
  2732. ? val.call(this, state, getters)
  2733. : state[val]
  2734. };
  2735. // mark vuex getter for devtools
  2736. res[key].vuex = true;
  2737. });
  2738. return res
  2739. });
  2740. /**
  2741. * Reduce the code which written in Vue.js for committing the mutation
  2742. * @param {String} [namespace] - Module's namespace
  2743. * @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.
  2744. * @return {Object}
  2745. */
  2746. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  2747. var res = {};
  2748. if (( true) && !isValidMap(mutations)) {
  2749. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  2750. }
  2751. normalizeMap(mutations).forEach(function (ref) {
  2752. var key = ref.key;
  2753. var val = ref.val;
  2754. res[key] = function mappedMutation () {
  2755. var args = [], len = arguments.length;
  2756. while ( len-- ) args[ len ] = arguments[ len ];
  2757. // Get the commit method from store
  2758. var commit = this.$store.commit;
  2759. if (namespace) {
  2760. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  2761. if (!module) {
  2762. return
  2763. }
  2764. commit = module.context.commit;
  2765. }
  2766. return typeof val === 'function'
  2767. ? val.apply(this, [commit].concat(args))
  2768. : commit.apply(this.$store, [val].concat(args))
  2769. };
  2770. });
  2771. return res
  2772. });
  2773. /**
  2774. * Reduce the code which written in Vue.js for getting the getters
  2775. * @param {String} [namespace] - Module's namespace
  2776. * @param {Object|Array} getters
  2777. * @return {Object}
  2778. */
  2779. var mapGetters = normalizeNamespace(function (namespace, getters) {
  2780. var res = {};
  2781. if (( true) && !isValidMap(getters)) {
  2782. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  2783. }
  2784. normalizeMap(getters).forEach(function (ref) {
  2785. var key = ref.key;
  2786. var val = ref.val;
  2787. // The namespace has been mutated by normalizeNamespace
  2788. val = namespace + val;
  2789. res[key] = function mappedGetter () {
  2790. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  2791. return
  2792. }
  2793. if (( true) && !(val in this.$store.getters)) {
  2794. console.error(("[vuex] unknown getter: " + val));
  2795. return
  2796. }
  2797. return this.$store.getters[val]
  2798. };
  2799. // mark vuex getter for devtools
  2800. res[key].vuex = true;
  2801. });
  2802. return res
  2803. });
  2804. /**
  2805. * Reduce the code which written in Vue.js for dispatch the action
  2806. * @param {String} [namespace] - Module's namespace
  2807. * @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.
  2808. * @return {Object}
  2809. */
  2810. var mapActions = normalizeNamespace(function (namespace, actions) {
  2811. var res = {};
  2812. if (( true) && !isValidMap(actions)) {
  2813. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  2814. }
  2815. normalizeMap(actions).forEach(function (ref) {
  2816. var key = ref.key;
  2817. var val = ref.val;
  2818. res[key] = function mappedAction () {
  2819. var args = [], len = arguments.length;
  2820. while ( len-- ) args[ len ] = arguments[ len ];
  2821. // get dispatch function from store
  2822. var dispatch = this.$store.dispatch;
  2823. if (namespace) {
  2824. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  2825. if (!module) {
  2826. return
  2827. }
  2828. dispatch = module.context.dispatch;
  2829. }
  2830. return typeof val === 'function'
  2831. ? val.apply(this, [dispatch].concat(args))
  2832. : dispatch.apply(this.$store, [val].concat(args))
  2833. };
  2834. });
  2835. return res
  2836. });
  2837. /**
  2838. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  2839. * @param {String} namespace
  2840. * @return {Object}
  2841. */
  2842. var createNamespacedHelpers = function (namespace) { return ({
  2843. mapState: mapState.bind(null, namespace),
  2844. mapGetters: mapGetters.bind(null, namespace),
  2845. mapMutations: mapMutations.bind(null, namespace),
  2846. mapActions: mapActions.bind(null, namespace)
  2847. }); };
  2848. /**
  2849. * Normalize the map
  2850. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  2851. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  2852. * @param {Array|Object} map
  2853. * @return {Object}
  2854. */
  2855. function normalizeMap (map) {
  2856. if (!isValidMap(map)) {
  2857. return []
  2858. }
  2859. return Array.isArray(map)
  2860. ? map.map(function (key) { return ({ key: key, val: key }); })
  2861. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  2862. }
  2863. /**
  2864. * Validate whether given map is valid or not
  2865. * @param {*} map
  2866. * @return {Boolean}
  2867. */
  2868. function isValidMap (map) {
  2869. return Array.isArray(map) || isObject(map)
  2870. }
  2871. /**
  2872. * 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.
  2873. * @param {Function} fn
  2874. * @return {Function}
  2875. */
  2876. function normalizeNamespace (fn) {
  2877. return function (namespace, map) {
  2878. if (typeof namespace !== 'string') {
  2879. map = namespace;
  2880. namespace = '';
  2881. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  2882. namespace += '/';
  2883. }
  2884. return fn(namespace, map)
  2885. }
  2886. }
  2887. /**
  2888. * Search a special module from store by namespace. if module not exist, print error message.
  2889. * @param {Object} store
  2890. * @param {String} helper
  2891. * @param {String} namespace
  2892. * @return {Object}
  2893. */
  2894. function getModuleByNamespace (store, helper, namespace) {
  2895. var module = store._modulesNamespaceMap[namespace];
  2896. if (( true) && !module) {
  2897. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  2898. }
  2899. return module
  2900. }
  2901. // Credits: borrowed code from fcomb/redux-logger
  2902. function createLogger (ref) {
  2903. if ( ref === void 0 ) ref = {};
  2904. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  2905. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  2906. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  2907. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  2908. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  2909. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  2910. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  2911. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  2912. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  2913. return function (store) {
  2914. var prevState = deepCopy(store.state);
  2915. if (typeof logger === 'undefined') {
  2916. return
  2917. }
  2918. if (logMutations) {
  2919. store.subscribe(function (mutation, state) {
  2920. var nextState = deepCopy(state);
  2921. if (filter(mutation, prevState, nextState)) {
  2922. var formattedTime = getFormattedTime();
  2923. var formattedMutation = mutationTransformer(mutation);
  2924. var message = "mutation " + (mutation.type) + formattedTime;
  2925. startMessage(logger, message, collapsed);
  2926. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  2927. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  2928. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  2929. endMessage(logger);
  2930. }
  2931. prevState = nextState;
  2932. });
  2933. }
  2934. if (logActions) {
  2935. store.subscribeAction(function (action, state) {
  2936. if (actionFilter(action, state)) {
  2937. var formattedTime = getFormattedTime();
  2938. var formattedAction = actionTransformer(action);
  2939. var message = "action " + (action.type) + formattedTime;
  2940. startMessage(logger, message, collapsed);
  2941. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  2942. endMessage(logger);
  2943. }
  2944. });
  2945. }
  2946. }
  2947. }
  2948. function startMessage (logger, message, collapsed) {
  2949. var startMessage = collapsed
  2950. ? logger.groupCollapsed
  2951. : logger.group;
  2952. // render
  2953. try {
  2954. startMessage.call(logger, message);
  2955. } catch (e) {
  2956. logger.log(message);
  2957. }
  2958. }
  2959. function endMessage (logger) {
  2960. try {
  2961. logger.groupEnd();
  2962. } catch (e) {
  2963. logger.log('—— log end ——');
  2964. }
  2965. }
  2966. function getFormattedTime () {
  2967. var time = new Date();
  2968. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  2969. }
  2970. function repeat (str, times) {
  2971. return (new Array(times + 1)).join(str)
  2972. }
  2973. function pad (num, maxLength) {
  2974. return repeat('0', maxLength - num.toString().length) + num
  2975. }
  2976. var index_cjs = {
  2977. Store: Store,
  2978. install: install,
  2979. version: '3.6.2',
  2980. mapState: mapState,
  2981. mapMutations: mapMutations,
  2982. mapGetters: mapGetters,
  2983. mapActions: mapActions,
  2984. createNamespacedHelpers: createNamespacedHelpers,
  2985. createLogger: createLogger
  2986. };
  2987. module.exports = index_cjs;
  2988. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  2989. /***/ }),
  2990. /***/ 12:
  2991. /*!***********************************************************************!*\
  2992. !*** D:/yuwenjun_dev/caimei-applets-hehe/common/config/utilsTools.js ***!
  2993. \***********************************************************************/
  2994. /*! no static exports found */
  2995. /***/ (function(module, exports, __webpack_require__) {
  2996. "use strict";
  2997. /* WEBPACK VAR INJECTION */(function(uni) {
  2998. var _configEnv = _interopRequireDefault(__webpack_require__(/*! @/services/config.env.js */ 17));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /**
  2999. * @Time 2019-12-12
  3000. * @Author Zhengjingyi
  3001. * @Action 全局公共方法
  3002. */var _Tools = { getComStorage: function getComStorage(key) {// 获取本地Storage
  3003. return new Promise(function (resolve, reject) {uni.getStorage({ key: key,
  3004. success: function success(res) {
  3005. resolve(res.data);
  3006. },
  3007. fail: function fail(res) {
  3008. reject(false);
  3009. } });
  3010. });
  3011. },
  3012. setStorage: function setStorage(key, data) {// 存储本地Storage
  3013. return new Promise(function (resolve, reject) {
  3014. uni.setStorage({
  3015. key: key,
  3016. data: data,
  3017. success: function success(res) {
  3018. } });
  3019. });
  3020. },
  3021. getStorage: function getStorage() {// 获取本地userInfo
  3022. return new Promise(function (resolve, reject) {
  3023. uni.getStorage({
  3024. key: 'userInfo',
  3025. success: function success(res) {
  3026. resolve(res.data);
  3027. },
  3028. fail: function fail(res) {
  3029. reject(false);
  3030. } });
  3031. });
  3032. },
  3033. getStorageAddressKey: function getStorageAddressKey() {// 获取本地地址信息
  3034. return new Promise(function (resolve, reject) {
  3035. uni.getStorage({
  3036. key: 'address_key',
  3037. success: function success(res) {
  3038. resolve(res.data);
  3039. } });
  3040. });
  3041. },
  3042. navigateTo: function navigateTo(url) {
  3043. //路由跳转:页面之间路由跳转
  3044. uni.navigateTo({
  3045. url: url });
  3046. },
  3047. redirectTo: function redirectTo(url) {
  3048. //路由跳转:关闭当前页跳转到新页面
  3049. uni.redirectTo({
  3050. url: url });
  3051. },
  3052. switchTabTo: function switchTabTo(url) {
  3053. //路由跳转:底部 tab页
  3054. uni.switchTab({
  3055. url: url });
  3056. },
  3057. getWindowHeight: function getWindowHeight() {
  3058. // 获取窗口高度
  3059. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),windowHeight = _wx$getSystemInfoSync.windowHeight,pixelRatio = _wx$getSystemInfoSync.pixelRatio;
  3060. return windowHeight;
  3061. },
  3062. adaptRichTextImg: function adaptRichTextImg(res) {
  3063. /**
  3064. *@富文本实现图片自适应
  3065. *@style再添加自适应样式
  3066. */
  3067. var html = res.replace(/<img[^>]*>/gi, function (match, capture) {
  3068. var match1 = match.replace(/<img*/gi, '<img style="width:100% !important;height:auto !important;float:left !important;"'),
  3069. results = match1.replace(/style=/gi, 'style="width:100%;height:auto;float:left;"');
  3070. return results;
  3071. });
  3072. return html;
  3073. },
  3074. formatDate: function formatDate() {
  3075. //获取当前时间
  3076. var date = new Date();
  3077. var y = date.getFullYear();
  3078. var MM = date.getMonth() + 1;
  3079. MM = MM < 10 ? '0' + MM : MM;
  3080. var d = date.getDate();
  3081. d = d < 10 ? '0' + d : d;
  3082. var h = date.getHours();
  3083. h = h < 10 ? '0' + h : h;
  3084. var m = date.getMinutes();
  3085. m = m < 10 ? '0' + m : m;
  3086. var s = date.getSeconds();
  3087. s = s < 10 ? '0' + s : s;
  3088. return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;
  3089. },
  3090. isNumber: function isNumber(value) {//验证是否为数字
  3091. var patrn = /^(-)?\d+(\.\d+)?$/;
  3092. if (patrn.exec(value) == null || value == "") {
  3093. return false;
  3094. } else {
  3095. return true;
  3096. }
  3097. },
  3098. FormatMoney: function FormatMoney(num) {
  3099. // 金额千分位
  3100. return num.toString().replace(/\d+/, function (n) {// 先提取整数部分
  3101. return n.replace(/(\d)(?=(\d{3})+$)/g, function ($1) {// 对整数部分添加分隔符
  3102. return $1 + ",";
  3103. });
  3104. });
  3105. } };
  3106. /**
  3107. *@导出
  3108. */
  3109. module.exports = {
  3110. FormatMoney: _Tools.FormatMoney,
  3111. formatDate: _Tools.formatDate,
  3112. navigateTo: _Tools.navigateTo,
  3113. redirectTo: _Tools.redirectTo,
  3114. switchTabTo: _Tools.switchTabTo,
  3115. isNumber: _Tools.isNumber,
  3116. setStorage: _Tools.setStorage,
  3117. getStorage: _Tools.getStorage,
  3118. getComStorage: _Tools.getComStorage,
  3119. getWindowHeight: _Tools.getWindowHeight,
  3120. adaptRichTextImg: _Tools.adaptRichTextImg,
  3121. getStorageAddressKey: _Tools.getStorageAddressKey };
  3122. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3123. /***/ }),
  3124. /***/ 13:
  3125. /*!**********************************************************************!*\
  3126. !*** D:/yuwenjun_dev/caimei-applets-hehe/common/config/authorize.js ***!
  3127. \**********************************************************************/
  3128. /*! no static exports found */
  3129. /***/ (function(module, exports, __webpack_require__) {
  3130. "use strict";
  3131. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  3132. var _utilsTools = _interopRequireDefault(__webpack_require__(/*! ./utilsTools.js */ 12));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} //authorize.js
  3133. //判断是否登陆 通过检测sessionkey是否过期 1未过期 0已过期
  3134. var checkSessionKey = function checkSessionKey() {
  3135. return new Promise(function (resolve, reject) {
  3136. var user = uni.getStorageSync('user'); // 用户缓存信息
  3137. if (user) {
  3138. uni.checkSession({
  3139. success: function success() {
  3140. resolve(1); //状态未过期
  3141. },
  3142. fail: function fail() {
  3143. resolve(0); //状态已过期
  3144. } });
  3145. } else {
  3146. resolve(2); //未存贮
  3147. }
  3148. });
  3149. };
  3150. // 登录授权
  3151. var login = function login(params) {
  3152. return new Promise(function (resolve, reject) {
  3153. authDo(params).then(function (res) {
  3154. if (res.statusCode && res.statusCode != 200) {
  3155. reject('网络错误,请检查一下网络');
  3156. return;
  3157. }
  3158. if (res.data.code != 0) {
  3159. reject('登录失败');
  3160. return;
  3161. }
  3162. var user = res.data.data.user;
  3163. uni.setStorageSync('user', user); //储存用户信息到本地
  3164. resolve(user);
  3165. });
  3166. });
  3167. };
  3168. // 查询用户信息 write by self
  3169. var authDo = function authDo(params) {
  3170. return new Promise(function (resolve, reject) {
  3171. uni.request({
  3172. url: _utilsTools.default.requestUrl + '/login/doLogin',
  3173. data: params,
  3174. method: 'POST',
  3175. header: {
  3176. 'content-type': 'application/x-www-form-urlencoded' },
  3177. success: function success(res) {
  3178. resolve(res);
  3179. },
  3180. fail: function fail() {
  3181. reject('保存用户信息失败');
  3182. } });
  3183. });
  3184. };
  3185. // 获取服务商信息 uni-app是聚合开发 所以先获得是什么小程序 原生的不用这个
  3186. var getProvider = function getProvider() {
  3187. return new Promise(function (resolve, reject) {
  3188. uni.getProvider({
  3189. service: 'oauth', //服务类型 登录授权
  3190. success: function success(res) {
  3191. resolve(res.provider[0]);
  3192. },
  3193. fail: function fail() {
  3194. reject('获取服务商失败');
  3195. } });
  3196. });
  3197. };
  3198. // 获取code
  3199. var getCode = function getCode(provider) {
  3200. return new Promise(function (resolve, reject) {
  3201. if (!provider) {
  3202. reject('获取缺少provider参数');
  3203. }
  3204. uni.login({
  3205. provider: provider,
  3206. success: function success(loginRes) {
  3207. if (loginRes && loginRes.code) {
  3208. resolve(loginRes.code);
  3209. } else {
  3210. reject('获取code失败');
  3211. uni.navigateTo({
  3212. url: '/pages/tabBar/index/index' });
  3213. }
  3214. },
  3215. fail: function fail() {
  3216. reject('获取code失败');
  3217. } });
  3218. });
  3219. };
  3220. // 是否开启了获取用户名授权 当用户一开始拒绝了 需再次提醒授权
  3221. var getSetting = function getSetting() {
  3222. return new Promise(function (resolve, reject) {
  3223. // uni.getSetting({
  3224. // success: function(res) {
  3225. // let authSetting = res.authSetting
  3226. // if (authSetting['scope.userInfo']) {
  3227. // resolve(1)
  3228. // return
  3229. // } //授权成功
  3230. // if (authSetting['scope.userInfo'] === false) {
  3231. // resolve(0)
  3232. // return
  3233. // } //拒绝授权
  3234. // resolve(2) //2未操作
  3235. // },
  3236. // fail: function() {
  3237. // reject('获取用户授权失败')
  3238. // }
  3239. // })
  3240. });
  3241. };
  3242. // 获取用户信息
  3243. var getUserInfo = function getUserInfo(provider) {
  3244. return new Promise(function (resolve, reject) {
  3245. if (!provider) {
  3246. reject('获取缺少provider参数');
  3247. return;
  3248. }
  3249. uni.getUserInfo({
  3250. provider: provider,
  3251. success: function success(detail) {
  3252. if (detail.iv != '') {
  3253. resolve(detail);
  3254. } else {
  3255. reject(0); //用户点击拒绝授权
  3256. }
  3257. },
  3258. fail: function fail(error) {
  3259. reject(0); //如果用户拒绝过授权 直接走fail
  3260. } });
  3261. });
  3262. };
  3263. // 获取用户登录状态
  3264. var checkLogin = function checkLogin() {
  3265. return new Promise(function (resolve, reject) {
  3266. uni.checkSession({
  3267. success: function success() {
  3268. resolve(1);
  3269. console.log('登录成功');
  3270. },
  3271. fail: function fail(err) {
  3272. reject(0);
  3273. } });
  3274. });
  3275. };var _default =
  3276. {
  3277. getProvider: getProvider,
  3278. getSetting: getSetting,
  3279. checkSessionKey: checkSessionKey,
  3280. getCode: getCode,
  3281. login: login,
  3282. getUserInfo: getUserInfo,
  3283. checkLogin: checkLogin };exports.default = _default;
  3284. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3285. /***/ }),
  3286. /***/ 14:
  3287. /*!*********************************************************!*\
  3288. !*** D:/yuwenjun_dev/caimei-applets-hehe/utils/util.js ***!
  3289. \*********************************************************/
  3290. /*! no static exports found */
  3291. /***/ (function(module, exports, __webpack_require__) {
  3292. "use strict";
  3293. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.prePage = exports.json = exports.modal = exports.msg = void 0; /* 常用工具函数 */
  3294. var msg = function msg(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1500;var mask = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'none';
  3295. //统一提示方便全局修改
  3296. if (Boolean(title) === false) {
  3297. return;
  3298. }
  3299. uni.showToast({
  3300. title: title,
  3301. duration: duration,
  3302. mask: mask,
  3303. icon: icon });
  3304. };exports.msg = msg;
  3305. var modal = function modal(title, content, confirmText, cancelText) {var showCancel = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;var callBack = arguments.length > 5 ? arguments[5] : undefined;
  3306. uni.showModal({
  3307. title: title,
  3308. content: content,
  3309. confirmText: confirmText,
  3310. cancelText: cancelText,
  3311. confirmColor: '#E15616',
  3312. showCancel: showCancel,
  3313. success: function success(res) {
  3314. if (res.confirm) {
  3315. callBack();
  3316. }
  3317. } });
  3318. };exports.modal = modal;
  3319. var json = function json(type) {
  3320. //模拟异步请求数据
  3321. return new Promise(function (resolve) {
  3322. setTimeout(function () {
  3323. // console.log(resolve+'======='+type);
  3324. resolve(Json[type]);
  3325. }, 500);
  3326. });
  3327. };exports.json = json;
  3328. var prePage = function prePage() {
  3329. var pages = getCurrentPages();
  3330. var prePage = pages[pages.length - 2];
  3331. return prePage.$vm;
  3332. };exports.prePage = prePage;
  3333. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3334. /***/ }),
  3335. /***/ 16:
  3336. /*!*******************************************************************!*\
  3337. !*** D:/yuwenjun_dev/caimei-applets-hehe/common/config/common.js ***!
  3338. \*******************************************************************/
  3339. /*! no static exports found */
  3340. /***/ (function(module, exports) {
  3341. //公共js,主要做表单验证,以及基本方法封装
  3342. var utils = {
  3343. isNullOrEmpty: function isNullOrEmpty(value) {
  3344. //是否为空
  3345. return value === null || value === '' || value === undefined ? true : false;
  3346. },
  3347. trim: function trim(value) {
  3348. //去空格
  3349. return value.replace(/(^\s*)|(\s*$)/g, "");
  3350. },
  3351. isEmail: function isEmail(value) {
  3352. //是否为邮箱
  3353. return RegExp(/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/).test(value);
  3354. },
  3355. isMobile: function isMobile(value) {
  3356. //是否为手机号
  3357. return RegExp(/^1[1-9][0-9]{9}$/).test(value);
  3358. },
  3359. isFloat: function isFloat(value) {
  3360. //金额,只允许保留两位小数
  3361. return RegExp(/^([0-9]*[.]?[0-9])[0-9]{0,1}$/).test(value);
  3362. },
  3363. isNum: function isNum(value) {
  3364. //是否全为数字
  3365. return RegExp(/^[0-9]+$/).test(value);
  3366. },
  3367. isEmailCode: function isEmailCode(value) {
  3368. return RegExp(/^\d{4}$/).test(value);
  3369. },
  3370. isMobileCode: function isMobileCode(value) {
  3371. return RegExp(/^\d{6}$/).test(value);
  3372. },
  3373. isCredit: function isCredit(value) {//统一社会信用代码
  3374. return RegExp(/^[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/).test(value);
  3375. },
  3376. checkPwd: function checkPwd(value) {
  3377. //密码为8~20位数字和字母组合
  3378. return RegExp(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/).test(value);
  3379. },
  3380. hidePhone: function hidePhone(value) {
  3381. return value.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2");
  3382. },
  3383. interceptHtmlFn: function interceptHtmlFn(value) {
  3384. return value.replace(/<[^>]+>/g, "");
  3385. },
  3386. desensitizationName: function desensitizationName(value) {
  3387. if (null != value && value != undefined) {
  3388. if (value.length <= 3) {
  3389. var ruten = value.substring(1);
  3390. return value.replace(ruten, '**');
  3391. } else if (value.length > 3 && value.length <= 6) {
  3392. var _ruten = value.substring(2);
  3393. return value.replace(_ruten, '**');
  3394. }
  3395. } else {
  3396. return "";
  3397. }
  3398. },
  3399. formatNum: function formatNum(num) {
  3400. //格式化手机号码
  3401. if (utils.isMobile(num)) {
  3402. num = num.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2');
  3403. }
  3404. return num;
  3405. },
  3406. rmoney: function rmoney(money) {
  3407. //金额格式化
  3408. return parseFloat(money).toFixed(2).toString().split('').reverse().join('').replace(/(\d{3})/g, '$1,').replace(
  3409. /\,$/, '').split('').reverse().join('');
  3410. },
  3411. bankRegex: function bankRegex(num) {
  3412. var bankNum = '';
  3413. bankNum = num.replace(/\D/g, '').replace(/(....)(?=.)/g, '$1 ');
  3414. return bankNum;
  3415. },
  3416. checkData: function checkData(value) {
  3417. var data;
  3418. if (value == null || value == "") {
  3419. data = '';
  3420. } else {
  3421. data = value;
  3422. }
  3423. return data;
  3424. },
  3425. formatDate: function formatDate(formatStr, fdate) {
  3426. //日期格式化
  3427. if (fdate) {
  3428. if (~fdate.indexOf('.')) {
  3429. fdate = fdate.substring(0, fdate.indexOf('.'));
  3430. }
  3431. fdate = fdate.toString().replace('T', ' ').replace(/\-/g, '/');
  3432. var fTime,fStr = 'ymdhis';
  3433. if (!formatStr)
  3434. formatStr = "y-m-d h:i:s";
  3435. if (fdate)
  3436. fTime = new Date(fdate);else
  3437. fTime = new Date();
  3438. var month = fTime.getMonth() + 1;
  3439. var day = fTime.getDate();
  3440. var hours = fTime.getHours();
  3441. var minu = fTime.getMinutes();
  3442. var second = fTime.getSeconds();
  3443. month = month < 10 ? '0' + month : month;
  3444. day = day < 10 ? '0' + day : day;
  3445. hours = hours < 10 ? '0' + hours : hours;
  3446. minu = minu < 10 ? '0' + minu : minu;
  3447. second = second < 10 ? '0' + second : second;
  3448. var formatArr = [
  3449. fTime.getFullYear().toString(),
  3450. month.toString(),
  3451. day.toString(),
  3452. hours.toString(),
  3453. minu.toString(),
  3454. second.toString()];
  3455. for (var i = 0; i < formatArr.length; i++) {
  3456. formatStr = formatStr.replace(fStr.charAt(i), formatArr[i]);
  3457. }
  3458. return formatStr;
  3459. } else {
  3460. return "";
  3461. }
  3462. },
  3463. throttle: function throttle(fn, gapTime) {
  3464. if (gapTime == null || gapTime == undefined) {
  3465. gapTime = 1500;
  3466. }
  3467. var _lastTime = null;
  3468. // 返回新的函数
  3469. return function () {
  3470. var _nowTime = +new Date();
  3471. if (_nowTime - _lastTime > gapTime || !_lastTime) {
  3472. fn.apply(this, arguments); //将this和参数传给原函数
  3473. _lastTime = _nowTime;
  3474. }
  3475. };
  3476. },
  3477. debounce: function debounce(fn, delay, isImmediate) {
  3478. var timer = null; //初始化timer,作为计时清除依据
  3479. return function () {
  3480. var context = this; //获取函数所在作用域this
  3481. var args = arguments; //取得传入参数
  3482. clearTimeout(timer);
  3483. if (isImmediate && timer === null) {
  3484. //时间间隔外立即执行
  3485. fn.apply(context, args);
  3486. timer = 0;
  3487. return;
  3488. }
  3489. timer = setTimeout(function () {
  3490. fn.apply(context, args);
  3491. timer = null;
  3492. }, delay);
  3493. };
  3494. } };
  3495. module.exports = {
  3496. isNullOrEmpty: utils.isNullOrEmpty,
  3497. trim: utils.trim,
  3498. isMobile: utils.isMobile,
  3499. isEmail: utils.isEmail,
  3500. isFloat: utils.isFloat,
  3501. isNum: utils.isNum,
  3502. isEmailCode: utils.isEmailCode,
  3503. isMobileCode: utils.isMobileCode,
  3504. checkPwd: utils.checkPwd,
  3505. formatNum: utils.formatNum,
  3506. rmoney: utils.rmoney,
  3507. formatDate: utils.formatDate,
  3508. bankRegex: utils.bankRegex,
  3509. checkData: utils.checkData,
  3510. hidePhone: utils.hidePhone,
  3511. interceptHtmlFn: utils.interceptHtmlFn,
  3512. desensitizationName: utils.desensitizationName,
  3513. throttle: utils.throttle,
  3514. debounce: utils.debounce };
  3515. /***/ }),
  3516. /***/ 17:
  3517. /*!******************************************************************!*\
  3518. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/config.env.js ***!
  3519. \******************************************************************/
  3520. /*! no static exports found */
  3521. /***/ (function(module, exports, __webpack_require__) {
  3522. "use strict";
  3523. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var URL_CONFIG = '';
  3524. if (true) {
  3525. // 开发环境
  3526. // URL_CONFIG = 'http://192.168.2.75:8011' //采美测试地址
  3527. // URL_CONFIG = 'http://192.168.2.67:8011' //裴裴联调地址
  3528. // URL_CONFIG = 'http://192.168.2.68:8011' //涛涛联调地址
  3529. URL_CONFIG = 'https://mall2c-b.caimei365.com';
  3530. // URL_CONFIG = 'https://mall2c.caimei365.com'
  3531. } else {}var _default =
  3532. URL_CONFIG;exports.default = _default;
  3533. /***/ }),
  3534. /***/ 19:
  3535. /*!*************************************************************!*\
  3536. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/index.js ***!
  3537. \*************************************************************/
  3538. /*! no static exports found */
  3539. /***/ (function(module, exports, __webpack_require__) {
  3540. "use strict";
  3541. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  3542. var _ajaxService = _interopRequireDefault(__webpack_require__(/*! ./ajax.service.js */ 20));
  3543. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.service */ 21));
  3544. var _locate = _interopRequireDefault(__webpack_require__(/*! ./locate.service */ 22));
  3545. var _user = _interopRequireDefault(__webpack_require__(/*! ./user.service */ 26));
  3546. var _product = _interopRequireDefault(__webpack_require__(/*! ./product.service */ 27));
  3547. var _pay = _interopRequireDefault(__webpack_require__(/*! ./pay.service */ 28));
  3548. var _order = _interopRequireDefault(__webpack_require__(/*! ./order.service */ 29));
  3549. var _publicService = _interopRequireDefault(__webpack_require__(/*! ./public.service.js */ 30));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  3550. var commonService = new _common.default(_ajaxService.default);
  3551. var locateService = new _locate.default(_ajaxService.default);
  3552. var userService = new _user.default(_ajaxService.default);
  3553. var productService = new _product.default(_ajaxService.default);
  3554. var payService = new _pay.default(_ajaxService.default);
  3555. var orderService = new _order.default(_ajaxService.default);
  3556. var publicService = new _publicService.default(_ajaxService.default);
  3557. _vue.default.prototype.AjaxService = _ajaxService.default;
  3558. _vue.default.prototype.CommonService = commonService;
  3559. _vue.default.prototype.LocateService = locateService;
  3560. _vue.default.prototype.UserService = userService;
  3561. _vue.default.prototype.ProductService = productService;
  3562. _vue.default.prototype.PayService = payService;
  3563. _vue.default.prototype.OrderService = orderService;
  3564. _vue.default.prototype.PublicService = publicService;
  3565. /***/ }),
  3566. /***/ 2:
  3567. /*!***********************************!*\
  3568. !*** (webpack)/buildin/global.js ***!
  3569. \***********************************/
  3570. /*! no static exports found */
  3571. /***/ (function(module, exports) {
  3572. var g;
  3573. // This works in non-strict mode
  3574. g = (function() {
  3575. return this;
  3576. })();
  3577. try {
  3578. // This works if eval is allowed (see CSP)
  3579. g = g || new Function("return this")();
  3580. } catch (e) {
  3581. // This works if the window reference is available
  3582. if (typeof window === "object") g = window;
  3583. }
  3584. // g can still be undefined, but nothing to do about it...
  3585. // We return undefined, instead of nothing here, so it's
  3586. // easier to handle this case. if(!global) { ...}
  3587. module.exports = g;
  3588. /***/ }),
  3589. /***/ 20:
  3590. /*!********************************************************************!*\
  3591. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/ajax.service.js ***!
  3592. \********************************************************************/
  3593. /*! no static exports found */
  3594. /***/ (function(module, exports, __webpack_require__) {
  3595. "use strict";
  3596. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  3597. var _config = _interopRequireDefault(__webpack_require__(/*! ./config.env */ 17));
  3598. var _util = __webpack_require__(/*! @/utils/util */ 14);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
  3599. AjaxService = /*#__PURE__*/function () {
  3600. function AjaxService() {_classCallCheck(this, AjaxService);
  3601. this.name = 'AjaxService';
  3602. }_createClass(AjaxService, [{ key: "getBaseUrl", value: function getBaseUrl()
  3603. {var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  3604. return url.indexOf('://') > -1 ? url : _config.default + url;
  3605. } }, { key: "getHeaders", value: function getHeaders(_ref)
  3606. {var _ref$header = _ref.header,header = _ref$header === void 0 ? {} : _ref$header;
  3607. header['Accept'] = 'application/json';
  3608. // header['Content-Type'] = 'application/x-www-form-urlencoded'
  3609. header['Content-Type'] = 'application/json';
  3610. return header;
  3611. } }, { key: "request", value: function request()
  3612. {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3613. var header = this.getHeaders(options);
  3614. var url = this.getBaseUrl(options.url);
  3615. if (options.header) {
  3616. header = Object.assign(header, options.header);
  3617. }var _options$isLoading =
  3618. options.isLoading,isLoading = _options$isLoading === void 0 ? true : _options$isLoading;
  3619. if (isLoading) {
  3620. wx.showLoading({ title: '加载中' });
  3621. }
  3622. var requestPromise = new Promise(function (resolve, reject) {
  3623. uni.request({
  3624. url: url,
  3625. method: options.method || 'POST',
  3626. data: options.data || {},
  3627. header: header,
  3628. success: function success(res) {
  3629. if (isLoading) wx.hideLoading();
  3630. if (options.isStatus) {
  3631. resolve(res.data);
  3632. } else {
  3633. if (res.data.code === 0) {
  3634. resolve(res.data);
  3635. } else {
  3636. reject(res.data);
  3637. }
  3638. }
  3639. },
  3640. fail: function fail(error) {
  3641. reject(error);
  3642. wx.hideLoading();
  3643. } });
  3644. });
  3645. return requestPromise;
  3646. } }, { key: "get", value: function get(
  3647. options) {
  3648. options.method = 'GET';
  3649. return this.request(options);
  3650. } }, { key: "post", value: function post(
  3651. options) {
  3652. options.method = 'POST';
  3653. return this.request(options);
  3654. } }]);return AjaxService;}();var _default =
  3655. new AjaxService();exports.default = _default;
  3656. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3657. /***/ }),
  3658. /***/ 21:
  3659. /*!**********************************************************************!*\
  3660. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/common.service.js ***!
  3661. \**********************************************************************/
  3662. /*! no static exports found */
  3663. /***/ (function(module, exports, __webpack_require__) {
  3664. "use strict";
  3665. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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;} /**
  3666. * 这是所有模块公用业务逻辑的服务
  3667. */var
  3668. CommonService = /*#__PURE__*/function () {
  3669. function CommonService(AjaxService) {_classCallCheck(this, CommonService);
  3670. Object.assign(this, { AjaxService: AjaxService });
  3671. this.name = 'CommonService';
  3672. }
  3673. /* 商城首页轮播图 */_createClass(CommonService, [{ key: "GetProductCarousel", value: function GetProductCarousel()
  3674. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3675. return this.AjaxService.get({
  3676. url: '/product/carousel',
  3677. data: data,
  3678. isLoading: false });
  3679. }
  3680. /* 商城首页初始化数据查询 */ }, { key: "GetHomeModulesDataInfo", value: function GetHomeModulesDataInfo()
  3681. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3682. return this.AjaxService.get({
  3683. url: '/home/modules',
  3684. data: data,
  3685. isLoading: false });
  3686. } }]);return CommonService;}();exports.default = CommonService;
  3687. /***/ }),
  3688. /***/ 22:
  3689. /*!**********************************************************************!*\
  3690. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/locate.service.js ***!
  3691. \**********************************************************************/
  3692. /*! no static exports found */
  3693. /***/ (function(module, exports, __webpack_require__) {
  3694. "use strict";
  3695. 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;} /**
  3696. * 定位相关的业务服务
  3697. */
  3698. // import { qqMapKey } from '@/utils/config.js'
  3699. // const QQMapWX = require('@/static/base/js/qqmap-wx-jssdk.min.js')
  3700. // const qqmapsdk = new QQMapWX({
  3701. // coord_type: 5,
  3702. // key: qqMapKey
  3703. // })
  3704. var
  3705. LocateService = /*#__PURE__*/function () {
  3706. function LocateService(AjaxService) {_classCallCheck(this, LocateService);
  3707. Object.assign(this, { AjaxService: AjaxService });
  3708. this.name = 'LocateService';
  3709. }
  3710. /* 获取当前的地理位置 */_createClass(LocateService, [{ key: "getGeoLocation", value: function getGeoLocation()
  3711. {
  3712. return new Promise(function (reslove, reject) {
  3713. wx.getLocation({
  3714. type: 'gcj02',
  3715. success: function success(res) {
  3716. reslove(res);
  3717. },
  3718. fail: function fail(err) {
  3719. reject(err);
  3720. },
  3721. complete: function complete(res) {} });
  3722. });
  3723. }
  3724. /* 获取城市名 */ }, { key: "getCityName", value: function getCityName(
  3725. lat, lon) {
  3726. return new Promise(function (reslove, reject) {
  3727. qqmapsdk.reverseGeocoder({
  3728. location: {
  3729. latitude: lat,
  3730. longitude: lon },
  3731. success: function success(res) {var _ref =
  3732. res.result || {},addressInfo = _ref.ad_info,location = _ref.location,_ref$formatted_addres = _ref.formatted_addresses,formattedAddress = _ref$formatted_addres === void 0 ? {} : _ref$formatted_addres,address = _ref.address;
  3733. var locationInfo = {
  3734. cityName: addressInfo.city,
  3735. location: location,
  3736. address: formattedAddress.recommend || address };
  3737. console.log("locationInfo: " + locationInfo);
  3738. reslove(locationInfo);
  3739. },
  3740. fail: function fail(err) {
  3741. reject(err);
  3742. } });
  3743. });
  3744. }
  3745. /* 获取当前定位 */ }, { key: "getLocationByLocate", value: function () {var _getLocationByLocate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var locationInfo, _ref2, latitude, longitude, cityInfo, _cityInfo$location, location, cityName, address;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
  3746. this.getGeoLocation());case 2:locationInfo = _context.sent;_ref2 =
  3747. locationInfo || {}, latitude = _ref2.latitude, longitude = _ref2.longitude;
  3748. // 获取城市名
  3749. _context.next = 6;return this.getCityName(latitude, longitude);case 6:cityInfo = _context.sent;_cityInfo$location =
  3750. cityInfo.location, location = _cityInfo$location === void 0 ? {} : _cityInfo$location, cityName = cityInfo.cityName, address = cityInfo.address;
  3751. console.log(location);
  3752. console.log(cityName);
  3753. console.log(address);case 11:case "end":return _context.stop();}}}, _callee, this);}));function getLocationByLocate() {return _getLocationByLocate.apply(this, arguments);}return getLocationByLocate;}() }]);return LocateService;}();exports.default = LocateService;
  3754. /***/ }),
  3755. /***/ 225:
  3756. /*!***************************************************************!*\
  3757. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/wxLogin.js ***!
  3758. \***************************************************************/
  3759. /*! no static exports found */
  3760. /***/ (function(module, exports, __webpack_require__) {
  3761. "use strict";
  3762. /* 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 _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */ 10));
  3763. var _authorize = _interopRequireDefault(__webpack_require__(/*! @/common/config/authorize.js */ 13));
  3764. var _ajaxService = _interopRequireDefault(__webpack_require__(/*! @/services/ajax.service.js */ 20));
  3765. var _user = _interopRequireDefault(__webpack_require__(/*! @/services/user.service */ 26));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);});};}
  3766. var newUserService = new _user.default(_ajaxService.default);
  3767. // 根据微信的code获取用户登录状态:1已登录过 -1未登录过
  3768. var wxLoginAuthorize = /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var wechatCode;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
  3769. _authorize.default.getCode('weixin'));case 2:wechatCode = _context.sent; // 根据微信的code获取用户登录状态:1已登录过 -1未登录过
  3770. newUserService.UserWechatAuthorLogin(
  3771. {
  3772. code: wechatCode }).
  3773. then(function (response) {
  3774. var _data = JSON.parse(response.data);
  3775. _index.default.commit('updateStatus', _data);
  3776. _index.default.commit('login', _data);
  3777. uni.setStorageSync('openId', _data.openId);
  3778. }).
  3779. catch(function (error) {
  3780. var _data = JSON.parse(error.data);
  3781. uni.setStorageSync('openId', _data.openId);
  3782. _index.default.commit('logout', _data);
  3783. _index.default.commit('updateStatus', _data);
  3784. });case 4:case "end":return _context.stop();}}}, _callee);}));return function wxLoginAuthorize() {return _ref.apply(this, arguments);};}();
  3785. var wxLoginQuick = /*#__PURE__*/function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var wechatCode, getUserInfo, params;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return (
  3786. _authorize.default.getCode('weixin'));case 2:wechatCode = _context2.sent;_context2.next = 5;return (
  3787. _authorize.default.getUserInfo('weixin'));case 5:getUserInfo = _context2.sent;
  3788. params =
  3789. newUserService.UserWechatAuthorLogin(
  3790. {
  3791. code: wechatCode }).
  3792. then(function (response) {
  3793. var _data = JSON.parse(response.data);
  3794. _index.default.commit('updateStatus', _data);
  3795. _index.default.commit('login', _data);
  3796. uni.setStorageSync('openId', _data.openId);
  3797. }).
  3798. catch(function (error) {
  3799. var _data = JSON.parse(response.data);
  3800. uni.setStorageSync('openId', _data.openId);
  3801. _index.default.commit('logout', _data);
  3802. _index.default.commit('updateStatus', _data);
  3803. });case 7:case "end":return _context2.stop();}}}, _callee2);}));return function wxLoginQuick() {return _ref2.apply(this, arguments);};}();var _default =
  3804. {
  3805. wxLoginAuthorize: wxLoginAuthorize,
  3806. wxLoginQuick: wxLoginQuick };exports.default = _default;
  3807. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3808. /***/ }),
  3809. /***/ 23:
  3810. /*!**********************************************************!*\
  3811. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  3812. \**********************************************************/
  3813. /*! no static exports found */
  3814. /***/ (function(module, exports, __webpack_require__) {
  3815. module.exports = __webpack_require__(/*! regenerator-runtime */ 24);
  3816. /***/ }),
  3817. /***/ 24:
  3818. /*!************************************************************!*\
  3819. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  3820. \************************************************************/
  3821. /*! no static exports found */
  3822. /***/ (function(module, exports, __webpack_require__) {
  3823. /**
  3824. * Copyright (c) 2014-present, Facebook, Inc.
  3825. *
  3826. * This source code is licensed under the MIT license found in the
  3827. * LICENSE file in the root directory of this source tree.
  3828. */
  3829. // This method of obtaining a reference to the global object needs to be
  3830. // kept identical to the way it is obtained in runtime.js
  3831. var g = (function() {
  3832. return this || (typeof self === "object" && self);
  3833. })() || Function("return this")();
  3834. // Use `getOwnPropertyNames` because not all browsers support calling
  3835. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  3836. var hadRuntime = g.regeneratorRuntime &&
  3837. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  3838. // Save the old regeneratorRuntime in case it needs to be restored later.
  3839. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  3840. // Force reevalutation of runtime.js.
  3841. g.regeneratorRuntime = undefined;
  3842. module.exports = __webpack_require__(/*! ./runtime */ 25);
  3843. if (hadRuntime) {
  3844. // Restore the original runtime.
  3845. g.regeneratorRuntime = oldRuntime;
  3846. } else {
  3847. // Remove the global property added by runtime.js.
  3848. try {
  3849. delete g.regeneratorRuntime;
  3850. } catch(e) {
  3851. g.regeneratorRuntime = undefined;
  3852. }
  3853. }
  3854. /***/ }),
  3855. /***/ 25:
  3856. /*!*****************************************************!*\
  3857. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  3858. \*****************************************************/
  3859. /*! no static exports found */
  3860. /***/ (function(module, exports) {
  3861. /**
  3862. * Copyright (c) 2014-present, Facebook, Inc.
  3863. *
  3864. * This source code is licensed under the MIT license found in the
  3865. * LICENSE file in the root directory of this source tree.
  3866. */
  3867. !(function(global) {
  3868. "use strict";
  3869. var Op = Object.prototype;
  3870. var hasOwn = Op.hasOwnProperty;
  3871. var undefined; // More compressible than void 0.
  3872. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  3873. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  3874. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  3875. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  3876. var inModule = typeof module === "object";
  3877. var runtime = global.regeneratorRuntime;
  3878. if (runtime) {
  3879. if (inModule) {
  3880. // If regeneratorRuntime is defined globally and we're in a module,
  3881. // make the exports object identical to regeneratorRuntime.
  3882. module.exports = runtime;
  3883. }
  3884. // Don't bother evaluating the rest of this file if the runtime was
  3885. // already defined globally.
  3886. return;
  3887. }
  3888. // Define the runtime globally (as expected by generated code) as either
  3889. // module.exports (if we're in a module) or a new, empty object.
  3890. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  3891. function wrap(innerFn, outerFn, self, tryLocsList) {
  3892. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  3893. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  3894. var generator = Object.create(protoGenerator.prototype);
  3895. var context = new Context(tryLocsList || []);
  3896. // The ._invoke method unifies the implementations of the .next,
  3897. // .throw, and .return methods.
  3898. generator._invoke = makeInvokeMethod(innerFn, self, context);
  3899. return generator;
  3900. }
  3901. runtime.wrap = wrap;
  3902. // Try/catch helper to minimize deoptimizations. Returns a completion
  3903. // record like context.tryEntries[i].completion. This interface could
  3904. // have been (and was previously) designed to take a closure to be
  3905. // invoked without arguments, but in all the cases we care about we
  3906. // already have an existing method we want to call, so there's no need
  3907. // to create a new function object. We can even get away with assuming
  3908. // the method takes exactly one argument, since that happens to be true
  3909. // in every case, so we don't have to touch the arguments object. The
  3910. // only additional allocation required is the completion record, which
  3911. // has a stable shape and so hopefully should be cheap to allocate.
  3912. function tryCatch(fn, obj, arg) {
  3913. try {
  3914. return { type: "normal", arg: fn.call(obj, arg) };
  3915. } catch (err) {
  3916. return { type: "throw", arg: err };
  3917. }
  3918. }
  3919. var GenStateSuspendedStart = "suspendedStart";
  3920. var GenStateSuspendedYield = "suspendedYield";
  3921. var GenStateExecuting = "executing";
  3922. var GenStateCompleted = "completed";
  3923. // Returning this object from the innerFn has the same effect as
  3924. // breaking out of the dispatch switch statement.
  3925. var ContinueSentinel = {};
  3926. // Dummy constructor functions that we use as the .constructor and
  3927. // .constructor.prototype properties for functions that return Generator
  3928. // objects. For full spec compliance, you may wish to configure your
  3929. // minifier not to mangle the names of these two functions.
  3930. function Generator() {}
  3931. function GeneratorFunction() {}
  3932. function GeneratorFunctionPrototype() {}
  3933. // This is a polyfill for %IteratorPrototype% for environments that
  3934. // don't natively support it.
  3935. var IteratorPrototype = {};
  3936. IteratorPrototype[iteratorSymbol] = function () {
  3937. return this;
  3938. };
  3939. var getProto = Object.getPrototypeOf;
  3940. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  3941. if (NativeIteratorPrototype &&
  3942. NativeIteratorPrototype !== Op &&
  3943. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  3944. // This environment has a native %IteratorPrototype%; use it instead
  3945. // of the polyfill.
  3946. IteratorPrototype = NativeIteratorPrototype;
  3947. }
  3948. var Gp = GeneratorFunctionPrototype.prototype =
  3949. Generator.prototype = Object.create(IteratorPrototype);
  3950. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  3951. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  3952. GeneratorFunctionPrototype[toStringTagSymbol] =
  3953. GeneratorFunction.displayName = "GeneratorFunction";
  3954. // Helper for defining the .next, .throw, and .return methods of the
  3955. // Iterator interface in terms of a single ._invoke method.
  3956. function defineIteratorMethods(prototype) {
  3957. ["next", "throw", "return"].forEach(function(method) {
  3958. prototype[method] = function(arg) {
  3959. return this._invoke(method, arg);
  3960. };
  3961. });
  3962. }
  3963. runtime.isGeneratorFunction = function(genFun) {
  3964. var ctor = typeof genFun === "function" && genFun.constructor;
  3965. return ctor
  3966. ? ctor === GeneratorFunction ||
  3967. // For the native GeneratorFunction constructor, the best we can
  3968. // do is to check its .name property.
  3969. (ctor.displayName || ctor.name) === "GeneratorFunction"
  3970. : false;
  3971. };
  3972. runtime.mark = function(genFun) {
  3973. if (Object.setPrototypeOf) {
  3974. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  3975. } else {
  3976. genFun.__proto__ = GeneratorFunctionPrototype;
  3977. if (!(toStringTagSymbol in genFun)) {
  3978. genFun[toStringTagSymbol] = "GeneratorFunction";
  3979. }
  3980. }
  3981. genFun.prototype = Object.create(Gp);
  3982. return genFun;
  3983. };
  3984. // Within the body of any async function, `await x` is transformed to
  3985. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  3986. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  3987. // meant to be awaited.
  3988. runtime.awrap = function(arg) {
  3989. return { __await: arg };
  3990. };
  3991. function AsyncIterator(generator) {
  3992. function invoke(method, arg, resolve, reject) {
  3993. var record = tryCatch(generator[method], generator, arg);
  3994. if (record.type === "throw") {
  3995. reject(record.arg);
  3996. } else {
  3997. var result = record.arg;
  3998. var value = result.value;
  3999. if (value &&
  4000. typeof value === "object" &&
  4001. hasOwn.call(value, "__await")) {
  4002. return Promise.resolve(value.__await).then(function(value) {
  4003. invoke("next", value, resolve, reject);
  4004. }, function(err) {
  4005. invoke("throw", err, resolve, reject);
  4006. });
  4007. }
  4008. return Promise.resolve(value).then(function(unwrapped) {
  4009. // When a yielded Promise is resolved, its final value becomes
  4010. // the .value of the Promise<{value,done}> result for the
  4011. // current iteration.
  4012. result.value = unwrapped;
  4013. resolve(result);
  4014. }, function(error) {
  4015. // If a rejected Promise was yielded, throw the rejection back
  4016. // into the async generator function so it can be handled there.
  4017. return invoke("throw", error, resolve, reject);
  4018. });
  4019. }
  4020. }
  4021. var previousPromise;
  4022. function enqueue(method, arg) {
  4023. function callInvokeWithMethodAndArg() {
  4024. return new Promise(function(resolve, reject) {
  4025. invoke(method, arg, resolve, reject);
  4026. });
  4027. }
  4028. return previousPromise =
  4029. // If enqueue has been called before, then we want to wait until
  4030. // all previous Promises have been resolved before calling invoke,
  4031. // so that results are always delivered in the correct order. If
  4032. // enqueue has not been called before, then it is important to
  4033. // call invoke immediately, without waiting on a callback to fire,
  4034. // so that the async generator function has the opportunity to do
  4035. // any necessary setup in a predictable way. This predictability
  4036. // is why the Promise constructor synchronously invokes its
  4037. // executor callback, and why async functions synchronously
  4038. // execute code before the first await. Since we implement simple
  4039. // async functions in terms of async generators, it is especially
  4040. // important to get this right, even though it requires care.
  4041. previousPromise ? previousPromise.then(
  4042. callInvokeWithMethodAndArg,
  4043. // Avoid propagating failures to Promises returned by later
  4044. // invocations of the iterator.
  4045. callInvokeWithMethodAndArg
  4046. ) : callInvokeWithMethodAndArg();
  4047. }
  4048. // Define the unified helper method that is used to implement .next,
  4049. // .throw, and .return (see defineIteratorMethods).
  4050. this._invoke = enqueue;
  4051. }
  4052. defineIteratorMethods(AsyncIterator.prototype);
  4053. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  4054. return this;
  4055. };
  4056. runtime.AsyncIterator = AsyncIterator;
  4057. // Note that simple async functions are implemented on top of
  4058. // AsyncIterator objects; they just return a Promise for the value of
  4059. // the final result produced by the iterator.
  4060. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  4061. var iter = new AsyncIterator(
  4062. wrap(innerFn, outerFn, self, tryLocsList)
  4063. );
  4064. return runtime.isGeneratorFunction(outerFn)
  4065. ? iter // If outerFn is a generator, return the full iterator.
  4066. : iter.next().then(function(result) {
  4067. return result.done ? result.value : iter.next();
  4068. });
  4069. };
  4070. function makeInvokeMethod(innerFn, self, context) {
  4071. var state = GenStateSuspendedStart;
  4072. return function invoke(method, arg) {
  4073. if (state === GenStateExecuting) {
  4074. throw new Error("Generator is already running");
  4075. }
  4076. if (state === GenStateCompleted) {
  4077. if (method === "throw") {
  4078. throw arg;
  4079. }
  4080. // Be forgiving, per 25.3.3.3.3 of the spec:
  4081. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  4082. return doneResult();
  4083. }
  4084. context.method = method;
  4085. context.arg = arg;
  4086. while (true) {
  4087. var delegate = context.delegate;
  4088. if (delegate) {
  4089. var delegateResult = maybeInvokeDelegate(delegate, context);
  4090. if (delegateResult) {
  4091. if (delegateResult === ContinueSentinel) continue;
  4092. return delegateResult;
  4093. }
  4094. }
  4095. if (context.method === "next") {
  4096. // Setting context._sent for legacy support of Babel's
  4097. // function.sent implementation.
  4098. context.sent = context._sent = context.arg;
  4099. } else if (context.method === "throw") {
  4100. if (state === GenStateSuspendedStart) {
  4101. state = GenStateCompleted;
  4102. throw context.arg;
  4103. }
  4104. context.dispatchException(context.arg);
  4105. } else if (context.method === "return") {
  4106. context.abrupt("return", context.arg);
  4107. }
  4108. state = GenStateExecuting;
  4109. var record = tryCatch(innerFn, self, context);
  4110. if (record.type === "normal") {
  4111. // If an exception is thrown from innerFn, we leave state ===
  4112. // GenStateExecuting and loop back for another invocation.
  4113. state = context.done
  4114. ? GenStateCompleted
  4115. : GenStateSuspendedYield;
  4116. if (record.arg === ContinueSentinel) {
  4117. continue;
  4118. }
  4119. return {
  4120. value: record.arg,
  4121. done: context.done
  4122. };
  4123. } else if (record.type === "throw") {
  4124. state = GenStateCompleted;
  4125. // Dispatch the exception by looping back around to the
  4126. // context.dispatchException(context.arg) call above.
  4127. context.method = "throw";
  4128. context.arg = record.arg;
  4129. }
  4130. }
  4131. };
  4132. }
  4133. // Call delegate.iterator[context.method](context.arg) and handle the
  4134. // result, either by returning a { value, done } result from the
  4135. // delegate iterator, or by modifying context.method and context.arg,
  4136. // setting context.delegate to null, and returning the ContinueSentinel.
  4137. function maybeInvokeDelegate(delegate, context) {
  4138. var method = delegate.iterator[context.method];
  4139. if (method === undefined) {
  4140. // A .throw or .return when the delegate iterator has no .throw
  4141. // method always terminates the yield* loop.
  4142. context.delegate = null;
  4143. if (context.method === "throw") {
  4144. if (delegate.iterator.return) {
  4145. // If the delegate iterator has a return method, give it a
  4146. // chance to clean up.
  4147. context.method = "return";
  4148. context.arg = undefined;
  4149. maybeInvokeDelegate(delegate, context);
  4150. if (context.method === "throw") {
  4151. // If maybeInvokeDelegate(context) changed context.method from
  4152. // "return" to "throw", let that override the TypeError below.
  4153. return ContinueSentinel;
  4154. }
  4155. }
  4156. context.method = "throw";
  4157. context.arg = new TypeError(
  4158. "The iterator does not provide a 'throw' method");
  4159. }
  4160. return ContinueSentinel;
  4161. }
  4162. var record = tryCatch(method, delegate.iterator, context.arg);
  4163. if (record.type === "throw") {
  4164. context.method = "throw";
  4165. context.arg = record.arg;
  4166. context.delegate = null;
  4167. return ContinueSentinel;
  4168. }
  4169. var info = record.arg;
  4170. if (! info) {
  4171. context.method = "throw";
  4172. context.arg = new TypeError("iterator result is not an object");
  4173. context.delegate = null;
  4174. return ContinueSentinel;
  4175. }
  4176. if (info.done) {
  4177. // Assign the result of the finished delegate to the temporary
  4178. // variable specified by delegate.resultName (see delegateYield).
  4179. context[delegate.resultName] = info.value;
  4180. // Resume execution at the desired location (see delegateYield).
  4181. context.next = delegate.nextLoc;
  4182. // If context.method was "throw" but the delegate handled the
  4183. // exception, let the outer generator proceed normally. If
  4184. // context.method was "next", forget context.arg since it has been
  4185. // "consumed" by the delegate iterator. If context.method was
  4186. // "return", allow the original .return call to continue in the
  4187. // outer generator.
  4188. if (context.method !== "return") {
  4189. context.method = "next";
  4190. context.arg = undefined;
  4191. }
  4192. } else {
  4193. // Re-yield the result returned by the delegate method.
  4194. return info;
  4195. }
  4196. // The delegate iterator is finished, so forget it and continue with
  4197. // the outer generator.
  4198. context.delegate = null;
  4199. return ContinueSentinel;
  4200. }
  4201. // Define Generator.prototype.{next,throw,return} in terms of the
  4202. // unified ._invoke helper method.
  4203. defineIteratorMethods(Gp);
  4204. Gp[toStringTagSymbol] = "Generator";
  4205. // A Generator should always return itself as the iterator object when the
  4206. // @@iterator function is called on it. Some browsers' implementations of the
  4207. // iterator prototype chain incorrectly implement this, causing the Generator
  4208. // object to not be returned from this call. This ensures that doesn't happen.
  4209. // See https://github.com/facebook/regenerator/issues/274 for more details.
  4210. Gp[iteratorSymbol] = function() {
  4211. return this;
  4212. };
  4213. Gp.toString = function() {
  4214. return "[object Generator]";
  4215. };
  4216. function pushTryEntry(locs) {
  4217. var entry = { tryLoc: locs[0] };
  4218. if (1 in locs) {
  4219. entry.catchLoc = locs[1];
  4220. }
  4221. if (2 in locs) {
  4222. entry.finallyLoc = locs[2];
  4223. entry.afterLoc = locs[3];
  4224. }
  4225. this.tryEntries.push(entry);
  4226. }
  4227. function resetTryEntry(entry) {
  4228. var record = entry.completion || {};
  4229. record.type = "normal";
  4230. delete record.arg;
  4231. entry.completion = record;
  4232. }
  4233. function Context(tryLocsList) {
  4234. // The root entry object (effectively a try statement without a catch
  4235. // or a finally block) gives us a place to store values thrown from
  4236. // locations where there is no enclosing try statement.
  4237. this.tryEntries = [{ tryLoc: "root" }];
  4238. tryLocsList.forEach(pushTryEntry, this);
  4239. this.reset(true);
  4240. }
  4241. runtime.keys = function(object) {
  4242. var keys = [];
  4243. for (var key in object) {
  4244. keys.push(key);
  4245. }
  4246. keys.reverse();
  4247. // Rather than returning an object with a next method, we keep
  4248. // things simple and return the next function itself.
  4249. return function next() {
  4250. while (keys.length) {
  4251. var key = keys.pop();
  4252. if (key in object) {
  4253. next.value = key;
  4254. next.done = false;
  4255. return next;
  4256. }
  4257. }
  4258. // To avoid creating an additional object, we just hang the .value
  4259. // and .done properties off the next function object itself. This
  4260. // also ensures that the minifier will not anonymize the function.
  4261. next.done = true;
  4262. return next;
  4263. };
  4264. };
  4265. function values(iterable) {
  4266. if (iterable) {
  4267. var iteratorMethod = iterable[iteratorSymbol];
  4268. if (iteratorMethod) {
  4269. return iteratorMethod.call(iterable);
  4270. }
  4271. if (typeof iterable.next === "function") {
  4272. return iterable;
  4273. }
  4274. if (!isNaN(iterable.length)) {
  4275. var i = -1, next = function next() {
  4276. while (++i < iterable.length) {
  4277. if (hasOwn.call(iterable, i)) {
  4278. next.value = iterable[i];
  4279. next.done = false;
  4280. return next;
  4281. }
  4282. }
  4283. next.value = undefined;
  4284. next.done = true;
  4285. return next;
  4286. };
  4287. return next.next = next;
  4288. }
  4289. }
  4290. // Return an iterator with no values.
  4291. return { next: doneResult };
  4292. }
  4293. runtime.values = values;
  4294. function doneResult() {
  4295. return { value: undefined, done: true };
  4296. }
  4297. Context.prototype = {
  4298. constructor: Context,
  4299. reset: function(skipTempReset) {
  4300. this.prev = 0;
  4301. this.next = 0;
  4302. // Resetting context._sent for legacy support of Babel's
  4303. // function.sent implementation.
  4304. this.sent = this._sent = undefined;
  4305. this.done = false;
  4306. this.delegate = null;
  4307. this.method = "next";
  4308. this.arg = undefined;
  4309. this.tryEntries.forEach(resetTryEntry);
  4310. if (!skipTempReset) {
  4311. for (var name in this) {
  4312. // Not sure about the optimal order of these conditions:
  4313. if (name.charAt(0) === "t" &&
  4314. hasOwn.call(this, name) &&
  4315. !isNaN(+name.slice(1))) {
  4316. this[name] = undefined;
  4317. }
  4318. }
  4319. }
  4320. },
  4321. stop: function() {
  4322. this.done = true;
  4323. var rootEntry = this.tryEntries[0];
  4324. var rootRecord = rootEntry.completion;
  4325. if (rootRecord.type === "throw") {
  4326. throw rootRecord.arg;
  4327. }
  4328. return this.rval;
  4329. },
  4330. dispatchException: function(exception) {
  4331. if (this.done) {
  4332. throw exception;
  4333. }
  4334. var context = this;
  4335. function handle(loc, caught) {
  4336. record.type = "throw";
  4337. record.arg = exception;
  4338. context.next = loc;
  4339. if (caught) {
  4340. // If the dispatched exception was caught by a catch block,
  4341. // then let that catch block handle the exception normally.
  4342. context.method = "next";
  4343. context.arg = undefined;
  4344. }
  4345. return !! caught;
  4346. }
  4347. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4348. var entry = this.tryEntries[i];
  4349. var record = entry.completion;
  4350. if (entry.tryLoc === "root") {
  4351. // Exception thrown outside of any try block that could handle
  4352. // it, so set the completion value of the entire function to
  4353. // throw the exception.
  4354. return handle("end");
  4355. }
  4356. if (entry.tryLoc <= this.prev) {
  4357. var hasCatch = hasOwn.call(entry, "catchLoc");
  4358. var hasFinally = hasOwn.call(entry, "finallyLoc");
  4359. if (hasCatch && hasFinally) {
  4360. if (this.prev < entry.catchLoc) {
  4361. return handle(entry.catchLoc, true);
  4362. } else if (this.prev < entry.finallyLoc) {
  4363. return handle(entry.finallyLoc);
  4364. }
  4365. } else if (hasCatch) {
  4366. if (this.prev < entry.catchLoc) {
  4367. return handle(entry.catchLoc, true);
  4368. }
  4369. } else if (hasFinally) {
  4370. if (this.prev < entry.finallyLoc) {
  4371. return handle(entry.finallyLoc);
  4372. }
  4373. } else {
  4374. throw new Error("try statement without catch or finally");
  4375. }
  4376. }
  4377. }
  4378. },
  4379. abrupt: function(type, arg) {
  4380. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4381. var entry = this.tryEntries[i];
  4382. if (entry.tryLoc <= this.prev &&
  4383. hasOwn.call(entry, "finallyLoc") &&
  4384. this.prev < entry.finallyLoc) {
  4385. var finallyEntry = entry;
  4386. break;
  4387. }
  4388. }
  4389. if (finallyEntry &&
  4390. (type === "break" ||
  4391. type === "continue") &&
  4392. finallyEntry.tryLoc <= arg &&
  4393. arg <= finallyEntry.finallyLoc) {
  4394. // Ignore the finally entry if control is not jumping to a
  4395. // location outside the try/catch block.
  4396. finallyEntry = null;
  4397. }
  4398. var record = finallyEntry ? finallyEntry.completion : {};
  4399. record.type = type;
  4400. record.arg = arg;
  4401. if (finallyEntry) {
  4402. this.method = "next";
  4403. this.next = finallyEntry.finallyLoc;
  4404. return ContinueSentinel;
  4405. }
  4406. return this.complete(record);
  4407. },
  4408. complete: function(record, afterLoc) {
  4409. if (record.type === "throw") {
  4410. throw record.arg;
  4411. }
  4412. if (record.type === "break" ||
  4413. record.type === "continue") {
  4414. this.next = record.arg;
  4415. } else if (record.type === "return") {
  4416. this.rval = this.arg = record.arg;
  4417. this.method = "return";
  4418. this.next = "end";
  4419. } else if (record.type === "normal" && afterLoc) {
  4420. this.next = afterLoc;
  4421. }
  4422. return ContinueSentinel;
  4423. },
  4424. finish: function(finallyLoc) {
  4425. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4426. var entry = this.tryEntries[i];
  4427. if (entry.finallyLoc === finallyLoc) {
  4428. this.complete(entry.completion, entry.afterLoc);
  4429. resetTryEntry(entry);
  4430. return ContinueSentinel;
  4431. }
  4432. }
  4433. },
  4434. "catch": function(tryLoc) {
  4435. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4436. var entry = this.tryEntries[i];
  4437. if (entry.tryLoc === tryLoc) {
  4438. var record = entry.completion;
  4439. if (record.type === "throw") {
  4440. var thrown = record.arg;
  4441. resetTryEntry(entry);
  4442. }
  4443. return thrown;
  4444. }
  4445. }
  4446. // The context.catch method must only be called with a location
  4447. // argument that corresponds to a known catch block.
  4448. throw new Error("illegal catch attempt");
  4449. },
  4450. delegateYield: function(iterable, resultName, nextLoc) {
  4451. this.delegate = {
  4452. iterator: values(iterable),
  4453. resultName: resultName,
  4454. nextLoc: nextLoc
  4455. };
  4456. if (this.method === "next") {
  4457. // Deliberately forget the last sent value so that we don't
  4458. // accidentally pass it on to the delegate.
  4459. this.arg = undefined;
  4460. }
  4461. return ContinueSentinel;
  4462. }
  4463. };
  4464. })(
  4465. // In sloppy mode, unbound `this` refers to the global object, fallback to
  4466. // Function constructor if we're in global strict mode. That is sadly a form
  4467. // of indirect eval which violates Content Security Policy.
  4468. (function() {
  4469. return this || (typeof self === "object" && self);
  4470. })() || Function("return this")()
  4471. );
  4472. /***/ }),
  4473. /***/ 26:
  4474. /*!********************************************************************!*\
  4475. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/user.service.js ***!
  4476. \********************************************************************/
  4477. /*! no static exports found */
  4478. /***/ (function(module, exports, __webpack_require__) {
  4479. "use strict";
  4480. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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;} /**
  4481. * 这是用户业务逻辑的服务
  4482. */var
  4483. UserService = /*#__PURE__*/function () {
  4484. function UserService(AjaxService) {_classCallCheck(this, UserService);
  4485. Object.assign(this, {
  4486. AjaxService: AjaxService });
  4487. this.name = 'UserService';
  4488. }
  4489. /* 初始化授权登录 */_createClass(UserService, [{ key: "UserWechatAuthorLogin", value: function UserWechatAuthorLogin()
  4490. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4491. return this.AjaxService.get({
  4492. url: '/user/he/authorization',
  4493. data: data,
  4494. isLoading: false,
  4495. isStatus: false,
  4496. isHost: true });
  4497. }
  4498. /* 手机号验证码登录 */ }, { key: "UserMobileLogin", value: function UserMobileLogin()
  4499. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4500. return this.AjaxService.post({
  4501. url: '/user/he/mobile/login',
  4502. data: data,
  4503. isLoading: false,
  4504. isStatus: false });
  4505. }
  4506. /**
  4507. * @地址列表查询
  4508. * @param:userId 用户ID(必传),
  4509. * @param:pageNum 页码
  4510. * @param:pageSize 每页条数
  4511. */ }, { key: "QueryAddressList", value: function QueryAddressList()
  4512. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4513. return this.AjaxService.get({
  4514. url: '/other/findAddress',
  4515. data: data,
  4516. isLoading: false });
  4517. }
  4518. /**
  4519. * @添加&&修改地址
  4520. */ }, { key: "AddOtherSaveAddress", value: function AddOtherSaveAddress()
  4521. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4522. return this.AjaxService.post({
  4523. url: '/other/saveAddress',
  4524. data: data,
  4525. isLoading: true });
  4526. }
  4527. /**
  4528. * @删除地址
  4529. * @param:addressId 地址ID,,
  4530. */ }, { key: "DeleteOtherAddress", value: function DeleteOtherAddress()
  4531. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4532. return this.AjaxService.get({
  4533. url: '/other/deleteAddress',
  4534. data: data,
  4535. isLoading: true });
  4536. }
  4537. /**
  4538. * @设置默认地址
  4539. * @param:userId 用户ID(必传),
  4540. * @param:addressId 地址ID,
  4541. */ }, { key: "SetDefaultOtherAddress", value: function SetDefaultOtherAddress()
  4542. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4543. return this.AjaxService.get({
  4544. url: '/other/defaultAddress',
  4545. data: data,
  4546. isLoading: false });
  4547. }
  4548. /**
  4549. * @设置默认地址
  4550. * @param:userId 用户ID(必传),
  4551. * @param:addressId 地址ID,
  4552. */ }, { key: "GetUserOrderTotal", value: function GetUserOrderTotal()
  4553. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4554. return this.AjaxService.get({
  4555. url: '/order/order/total',
  4556. data: data,
  4557. isLoading: false });
  4558. } }]);return UserService;}();exports.default = UserService;
  4559. /***/ }),
  4560. /***/ 27:
  4561. /*!***********************************************************************!*\
  4562. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/product.service.js ***!
  4563. \***********************************************************************/
  4564. /*! no static exports found */
  4565. /***/ (function(module, exports, __webpack_require__) {
  4566. "use strict";
  4567. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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;} /**
  4568. * 这是与购物有关的业务逻辑的服务
  4569. */var
  4570. ProductService = /*#__PURE__*/function () {
  4571. function ProductService(AjaxService) {_classCallCheck(this, ProductService);
  4572. Object.assign(this, { AjaxService: AjaxService });
  4573. this.name = 'ProductService';
  4574. }
  4575. /**
  4576. * @description 获取楼层数据
  4577. */_createClass(ProductService, [{ key: "QueryProductFloor", value: function QueryProductFloor()
  4578. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4579. return this.AjaxService.get({
  4580. url: '/product/floor',
  4581. data: data,
  4582. isLoading: false });
  4583. }
  4584. /**
  4585. * @description 获取楼层商品详情
  4586. * @param:name 商品名称关键词
  4587. * @param:pageNum 页码
  4588. * @param:pageSize 条数
  4589. */ }, { key: "QueryProductList", value: function QueryProductList()
  4590. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4591. return this.AjaxService.get({
  4592. url: '/product/floor/detail',
  4593. data: data,
  4594. isLoading: false });
  4595. }
  4596. /**
  4597. * @description 获取商品列表
  4598. * @param:name 商品名称关键词
  4599. * @param:pageNum 页码
  4600. * @param:pageSize 条数
  4601. */ }, { key: "GetProductList", value: function GetProductList()
  4602. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4603. return this.AjaxService.get({
  4604. url: '/product/list',
  4605. data: data,
  4606. isLoading: false });
  4607. }
  4608. /**
  4609. * @商品详情-查询商品详情
  4610. * @param:userId 用户ID(未登录传0或者'')
  4611. * @param:productIds 商品ID
  4612. */ }, { key: "QueryProductDetils", value: function QueryProductDetils()
  4613. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4614. return this.AjaxService.get({
  4615. url: '/product/details',
  4616. data: data,
  4617. isLoading: false });
  4618. }
  4619. /**
  4620. * @加入购物车
  4621. * @param:userId 用户ID(必填)
  4622. * @param:productId 用户ID(必填)
  4623. * @param:productCount 商品数量(必填)
  4624. */ }, { key: "shoppingAddCart", value: function shoppingAddCart()
  4625. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4626. return this.AjaxService.post({
  4627. url: '/shopping/add/cart',
  4628. data: data,
  4629. isLoading: false });
  4630. }
  4631. /**
  4632. * @再次购买----一键加入购物车
  4633. * @param:orderId 用户ID(必填)
  4634. */ }, { key: "ShoppingAgainCart", value: function ShoppingAgainCart()
  4635. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4636. return this.AjaxService.get({
  4637. url: '/shopping/addCart',
  4638. data: data,
  4639. isLoading: false });
  4640. }
  4641. /**
  4642. * @购物车列表
  4643. * @param:userId 用户ID(必填)
  4644. */ }, { key: "QueryShoppingCartList", value: function QueryShoppingCartList()
  4645. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4646. return this.AjaxService.get({
  4647. url: '/shopping/info',
  4648. data: data,
  4649. isLoading: false });
  4650. }
  4651. /**
  4652. * @查询购物车数量
  4653. * @param:userId 用户ID(必填)
  4654. */ }, { key: "QueryShoppingQuantity", value: function QueryShoppingQuantity()
  4655. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4656. return this.AjaxService.get({
  4657. url: '/shopping/quantity',
  4658. data: data,
  4659. isLoading: false });
  4660. }
  4661. /**
  4662. * @更新购物车商品增减
  4663. * @param:cartId 购物车ID
  4664. * @param:productCount 商品数量ID(必填)
  4665. */ }, { key: "ShoppingCartUpdate", value: function ShoppingCartUpdate()
  4666. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4667. return this.AjaxService.post({
  4668. url: '/shopping/update',
  4669. data: data,
  4670. isLoading: true });
  4671. }
  4672. /**
  4673. * @删除购物车商品
  4674. * @param:cartIds 购物车ID(用','号拼接)
  4675. */ }, { key: "ShoppingCartDelete", value: function ShoppingCartDelete()
  4676. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4677. return this.AjaxService.post({
  4678. url: '/shopping/delete',
  4679. data: data,
  4680. isLoading: true });
  4681. }
  4682. /* 查询搜索历史记录 */ }, { key: "GetProductSearchHistory", value: function GetProductSearchHistory()
  4683. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4684. return this.AjaxService.get({
  4685. url: '/product/search/history',
  4686. data: data,
  4687. isLoading: false });
  4688. }
  4689. /* 清除搜索历史记录 */ }, { key: "GetDeleteProductSearchHistory", value: function GetDeleteProductSearchHistory()
  4690. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4691. return this.AjaxService.get({
  4692. url: '/product/delete/history',
  4693. data: data,
  4694. isLoading: false });
  4695. }
  4696. /* 搜索商品列表 */ }, { key: "GetProductSearchList", value: function GetProductSearchList()
  4697. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4698. return this.AjaxService.get({
  4699. url: '/search/query/product',
  4700. data: data,
  4701. isLoading: true });
  4702. }
  4703. /* 活动专区 */ }, { key: "GetProductActivityAreaList", value: function GetProductActivityAreaList()
  4704. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4705. return this.AjaxService.get({
  4706. url: '/product/activityArea',
  4707. data: data,
  4708. isLoading: true });
  4709. }
  4710. /* 活动详情 */ }, { key: "GetProductActivityDetails", value: function GetProductActivityDetails()
  4711. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4712. return this.AjaxService.get({
  4713. url: '/product/activity/details',
  4714. data: data,
  4715. isLoading: true });
  4716. } }]);return ProductService;}();exports.default = ProductService;
  4717. /***/ }),
  4718. /***/ 28:
  4719. /*!*******************************************************************!*\
  4720. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/pay.service.js ***!
  4721. \*******************************************************************/
  4722. /*! no static exports found */
  4723. /***/ (function(module, exports, __webpack_require__) {
  4724. "use strict";
  4725. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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;} /**
  4726. * 这是支付相关的业务逻辑的服务
  4727. */var
  4728. PayService = /*#__PURE__*/function () {
  4729. function PayService(AjaxService) {_classCallCheck(this, PayService);
  4730. Object.assign(this, { AjaxService: AjaxService });
  4731. this.name = 'PayService';
  4732. }
  4733. /**
  4734. *小程序支付-微信支付
  4735. *@param amount支付金额,单位分,必须大于2
  4736. *@param payWay银联:UNIONPAY,微信:WEIXIN,支付宝:ALIPAY
  4737. *@param payType 微信小程序支付: MINIAPP_WEIXIN ,微信公众号支付: JSAPI_WEIXIN
  4738. *@param code 微信小程序code,微信小程序支付使用
  4739. *@param orderId 主订单ID
  4740. */_createClass(PayService, [{ key: "WeChatMiniWxPay", value: function WeChatMiniWxPay()
  4741. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4742. return this.AjaxService.post({
  4743. url: '/PayOrder/miniWxPay',
  4744. data: data,
  4745. isLoading: true });
  4746. }
  4747. /**
  4748. *小程序线上支付开关
  4749. */ }, { key: "PayOrderOnLineSwitch", value: function PayOrderOnLineSwitch()
  4750. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4751. return this.AjaxService.get({
  4752. url: '/PayOrder/onLineSwitch',
  4753. data: data,
  4754. isLoading: true });
  4755. } }]);return PayService;}();exports.default = PayService;
  4756. /***/ }),
  4757. /***/ 29:
  4758. /*!*********************************************************************!*\
  4759. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/order.service.js ***!
  4760. \*********************************************************************/
  4761. /*! no static exports found */
  4762. /***/ (function(module, exports, __webpack_require__) {
  4763. "use strict";
  4764. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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;} /**
  4765. * 这是与购物有关的业务逻辑的服务
  4766. */var
  4767. OrderService = /*#__PURE__*/function () {
  4768. function OrderService(AjaxService) {_classCallCheck(this, OrderService);
  4769. Object.assign(this, { AjaxService: AjaxService });
  4770. this.name = 'OrderService';
  4771. }
  4772. /* 订单结算初始化 */_createClass(OrderService, [{ key: "QueryOrderConfirm", value: function QueryOrderConfirm()
  4773. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4774. return this.AjaxService.get({
  4775. url: '/order/confirm',
  4776. data: data,
  4777. isLoading: true });
  4778. }
  4779. /* 提交订单 */ }, { key: "QueryOrderSubmit", value: function QueryOrderSubmit()
  4780. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4781. return this.AjaxService.get({
  4782. url: '/order/submit',
  4783. data: data,
  4784. isLoading: true });
  4785. }
  4786. /* 订单列表 */ }, { key: "QueryOrderList", value: function QueryOrderList()
  4787. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4788. return this.AjaxService.get({
  4789. url: '/order/list',
  4790. data: data,
  4791. isLoading: true });
  4792. }
  4793. /* 分销者订单列表 */ }, { key: "QueryOrderDealerList", value: function QueryOrderDealerList()
  4794. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4795. return this.AjaxService.get({
  4796. url: '/order/dealer/list',
  4797. data: data,
  4798. isLoading: true });
  4799. }
  4800. /* 查询订单详情 */ }, { key: "QueryOrderDetails", value: function QueryOrderDetails()
  4801. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4802. return this.AjaxService.get({
  4803. url: '/order/detail',
  4804. data: data,
  4805. isLoading: true });
  4806. }
  4807. /* 操作取消订单 */ }, { key: "CancelOrder", value: function CancelOrder()
  4808. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4809. return this.AjaxService.get({
  4810. url: '/order/cancel',
  4811. data: data,
  4812. isLoading: true });
  4813. }
  4814. /* 操作删除订单 */ }, { key: "DeleteOrder", value: function DeleteOrder()
  4815. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4816. return this.AjaxService.get({
  4817. url: '/order/delete',
  4818. data: data,
  4819. isLoading: true });
  4820. }
  4821. /* 确认收货操作 */ }, { key: "ConfirmReceipt", value: function ConfirmReceipt()
  4822. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4823. return this.AjaxService.get({
  4824. url: '/order/affirm',
  4825. data: data,
  4826. isLoading: true });
  4827. }
  4828. /* 再次购买查询操作 */ }, { key: "GetOrderBuyAgain", value: function GetOrderBuyAgain()
  4829. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4830. return this.AjaxService.get({
  4831. url: '/order/buyAgain',
  4832. data: data,
  4833. isLoading: false });
  4834. }
  4835. /* 查询物流 */ }, { key: "QueryLogistics", value: function QueryLogistics()
  4836. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4837. return this.AjaxService.get({
  4838. url: '/order/logistics',
  4839. data: data,
  4840. isLoading: true });
  4841. }
  4842. /**
  4843. *机构搜索订单
  4844. *@param searchWord 关键词
  4845. *@param userId 用户ID
  4846. *@param pageNum 页码
  4847. *@param pageSize 条数
  4848. */ }, { key: "SearchOrderInfo", value: function SearchOrderInfo()
  4849. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4850. return this.AjaxService.get({
  4851. url: '/order/search',
  4852. data: data,
  4853. isLoading: true });
  4854. }
  4855. /**
  4856. *搜索订单历史记录
  4857. *@param organizeId 用户ID
  4858. */ }, { key: "SearchOrderHistory", value: function SearchOrderHistory()
  4859. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4860. return this.AjaxService.get({
  4861. url: '/order/searchHistory',
  4862. data: data,
  4863. isLoading: false });
  4864. }
  4865. /**
  4866. *清除订单历史记录
  4867. *@param organizeId 用户ID
  4868. */ }, { key: "ClearOrderHistory", value: function ClearOrderHistory()
  4869. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4870. return this.AjaxService.get({
  4871. url: '/order/searchHistory/delete',
  4872. data: data,
  4873. isLoading: true });
  4874. }
  4875. /**
  4876. *@确认订单-获取邮费信息
  4877. *@param productIds 商品ID【”,”分割】
  4878. *@param totalPrice 商品总额
  4879. *@param userId 用户ID
  4880. *@param townID 地址区ID
  4881. */ }, { key: "GetOrderPostage", value: function GetOrderPostage()
  4882. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4883. return this.AjaxService.get({
  4884. url: '/order/postage',
  4885. data: data,
  4886. isLoading: false });
  4887. }
  4888. /* 提交订单 orderId 订单ID */ }, { key: "CreatedOrderSubmit", value: function CreatedOrderSubmit()
  4889. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4890. return this.AjaxService.post({
  4891. url: '/order/submit',
  4892. data: data,
  4893. isLoading: true });
  4894. } }]);return OrderService;}();exports.default = OrderService;
  4895. /***/ }),
  4896. /***/ 3:
  4897. /*!******************************************************************************************!*\
  4898. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  4899. \******************************************************************************************/
  4900. /*! exports provided: default */
  4901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4902. "use strict";
  4903. __webpack_require__.r(__webpack_exports__);
  4904. /* WEBPACK VAR INJECTION */(function(global) {/*!
  4905. * Vue.js v2.6.11
  4906. * (c) 2014-2021 Evan You
  4907. * Released under the MIT License.
  4908. */
  4909. /* */
  4910. var emptyObject = Object.freeze({});
  4911. // These helpers produce better VM code in JS engines due to their
  4912. // explicitness and function inlining.
  4913. function isUndef (v) {
  4914. return v === undefined || v === null
  4915. }
  4916. function isDef (v) {
  4917. return v !== undefined && v !== null
  4918. }
  4919. function isTrue (v) {
  4920. return v === true
  4921. }
  4922. function isFalse (v) {
  4923. return v === false
  4924. }
  4925. /**
  4926. * Check if value is primitive.
  4927. */
  4928. function isPrimitive (value) {
  4929. return (
  4930. typeof value === 'string' ||
  4931. typeof value === 'number' ||
  4932. // $flow-disable-line
  4933. typeof value === 'symbol' ||
  4934. typeof value === 'boolean'
  4935. )
  4936. }
  4937. /**
  4938. * Quick object check - this is primarily used to tell
  4939. * Objects from primitive values when we know the value
  4940. * is a JSON-compliant type.
  4941. */
  4942. function isObject (obj) {
  4943. return obj !== null && typeof obj === 'object'
  4944. }
  4945. /**
  4946. * Get the raw type string of a value, e.g., [object Object].
  4947. */
  4948. var _toString = Object.prototype.toString;
  4949. function toRawType (value) {
  4950. return _toString.call(value).slice(8, -1)
  4951. }
  4952. /**
  4953. * Strict object type check. Only returns true
  4954. * for plain JavaScript objects.
  4955. */
  4956. function isPlainObject (obj) {
  4957. return _toString.call(obj) === '[object Object]'
  4958. }
  4959. function isRegExp (v) {
  4960. return _toString.call(v) === '[object RegExp]'
  4961. }
  4962. /**
  4963. * Check if val is a valid array index.
  4964. */
  4965. function isValidArrayIndex (val) {
  4966. var n = parseFloat(String(val));
  4967. return n >= 0 && Math.floor(n) === n && isFinite(val)
  4968. }
  4969. function isPromise (val) {
  4970. return (
  4971. isDef(val) &&
  4972. typeof val.then === 'function' &&
  4973. typeof val.catch === 'function'
  4974. )
  4975. }
  4976. /**
  4977. * Convert a value to a string that is actually rendered.
  4978. */
  4979. function toString (val) {
  4980. return val == null
  4981. ? ''
  4982. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  4983. ? JSON.stringify(val, null, 2)
  4984. : String(val)
  4985. }
  4986. /**
  4987. * Convert an input value to a number for persistence.
  4988. * If the conversion fails, return original string.
  4989. */
  4990. function toNumber (val) {
  4991. var n = parseFloat(val);
  4992. return isNaN(n) ? val : n
  4993. }
  4994. /**
  4995. * Make a map and return a function for checking if a key
  4996. * is in that map.
  4997. */
  4998. function makeMap (
  4999. str,
  5000. expectsLowerCase
  5001. ) {
  5002. var map = Object.create(null);
  5003. var list = str.split(',');
  5004. for (var i = 0; i < list.length; i++) {
  5005. map[list[i]] = true;
  5006. }
  5007. return expectsLowerCase
  5008. ? function (val) { return map[val.toLowerCase()]; }
  5009. : function (val) { return map[val]; }
  5010. }
  5011. /**
  5012. * Check if a tag is a built-in tag.
  5013. */
  5014. var isBuiltInTag = makeMap('slot,component', true);
  5015. /**
  5016. * Check if an attribute is a reserved attribute.
  5017. */
  5018. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  5019. /**
  5020. * Remove an item from an array.
  5021. */
  5022. function remove (arr, item) {
  5023. if (arr.length) {
  5024. var index = arr.indexOf(item);
  5025. if (index > -1) {
  5026. return arr.splice(index, 1)
  5027. }
  5028. }
  5029. }
  5030. /**
  5031. * Check whether an object has the property.
  5032. */
  5033. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5034. function hasOwn (obj, key) {
  5035. return hasOwnProperty.call(obj, key)
  5036. }
  5037. /**
  5038. * Create a cached version of a pure function.
  5039. */
  5040. function cached (fn) {
  5041. var cache = Object.create(null);
  5042. return (function cachedFn (str) {
  5043. var hit = cache[str];
  5044. return hit || (cache[str] = fn(str))
  5045. })
  5046. }
  5047. /**
  5048. * Camelize a hyphen-delimited string.
  5049. */
  5050. var camelizeRE = /-(\w)/g;
  5051. var camelize = cached(function (str) {
  5052. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  5053. });
  5054. /**
  5055. * Capitalize a string.
  5056. */
  5057. var capitalize = cached(function (str) {
  5058. return str.charAt(0).toUpperCase() + str.slice(1)
  5059. });
  5060. /**
  5061. * Hyphenate a camelCase string.
  5062. */
  5063. var hyphenateRE = /\B([A-Z])/g;
  5064. var hyphenate = cached(function (str) {
  5065. return str.replace(hyphenateRE, '-$1').toLowerCase()
  5066. });
  5067. /**
  5068. * Simple bind polyfill for environments that do not support it,
  5069. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  5070. * since native bind is now performant enough in most browsers.
  5071. * But removing it would mean breaking code that was able to run in
  5072. * PhantomJS 1.x, so this must be kept for backward compatibility.
  5073. */
  5074. /* istanbul ignore next */
  5075. function polyfillBind (fn, ctx) {
  5076. function boundFn (a) {
  5077. var l = arguments.length;
  5078. return l
  5079. ? l > 1
  5080. ? fn.apply(ctx, arguments)
  5081. : fn.call(ctx, a)
  5082. : fn.call(ctx)
  5083. }
  5084. boundFn._length = fn.length;
  5085. return boundFn
  5086. }
  5087. function nativeBind (fn, ctx) {
  5088. return fn.bind(ctx)
  5089. }
  5090. var bind = Function.prototype.bind
  5091. ? nativeBind
  5092. : polyfillBind;
  5093. /**
  5094. * Convert an Array-like object to a real Array.
  5095. */
  5096. function toArray (list, start) {
  5097. start = start || 0;
  5098. var i = list.length - start;
  5099. var ret = new Array(i);
  5100. while (i--) {
  5101. ret[i] = list[i + start];
  5102. }
  5103. return ret
  5104. }
  5105. /**
  5106. * Mix properties into target object.
  5107. */
  5108. function extend (to, _from) {
  5109. for (var key in _from) {
  5110. to[key] = _from[key];
  5111. }
  5112. return to
  5113. }
  5114. /**
  5115. * Merge an Array of Objects into a single Object.
  5116. */
  5117. function toObject (arr) {
  5118. var res = {};
  5119. for (var i = 0; i < arr.length; i++) {
  5120. if (arr[i]) {
  5121. extend(res, arr[i]);
  5122. }
  5123. }
  5124. return res
  5125. }
  5126. /* eslint-disable no-unused-vars */
  5127. /**
  5128. * Perform no operation.
  5129. * Stubbing args to make Flow happy without leaving useless transpiled code
  5130. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  5131. */
  5132. function noop (a, b, c) {}
  5133. /**
  5134. * Always return false.
  5135. */
  5136. var no = function (a, b, c) { return false; };
  5137. /* eslint-enable no-unused-vars */
  5138. /**
  5139. * Return the same value.
  5140. */
  5141. var identity = function (_) { return _; };
  5142. /**
  5143. * Check if two values are loosely equal - that is,
  5144. * if they are plain objects, do they have the same shape?
  5145. */
  5146. function looseEqual (a, b) {
  5147. if (a === b) { return true }
  5148. var isObjectA = isObject(a);
  5149. var isObjectB = isObject(b);
  5150. if (isObjectA && isObjectB) {
  5151. try {
  5152. var isArrayA = Array.isArray(a);
  5153. var isArrayB = Array.isArray(b);
  5154. if (isArrayA && isArrayB) {
  5155. return a.length === b.length && a.every(function (e, i) {
  5156. return looseEqual(e, b[i])
  5157. })
  5158. } else if (a instanceof Date && b instanceof Date) {
  5159. return a.getTime() === b.getTime()
  5160. } else if (!isArrayA && !isArrayB) {
  5161. var keysA = Object.keys(a);
  5162. var keysB = Object.keys(b);
  5163. return keysA.length === keysB.length && keysA.every(function (key) {
  5164. return looseEqual(a[key], b[key])
  5165. })
  5166. } else {
  5167. /* istanbul ignore next */
  5168. return false
  5169. }
  5170. } catch (e) {
  5171. /* istanbul ignore next */
  5172. return false
  5173. }
  5174. } else if (!isObjectA && !isObjectB) {
  5175. return String(a) === String(b)
  5176. } else {
  5177. return false
  5178. }
  5179. }
  5180. /**
  5181. * Return the first index at which a loosely equal value can be
  5182. * found in the array (if value is a plain object, the array must
  5183. * contain an object of the same shape), or -1 if it is not present.
  5184. */
  5185. function looseIndexOf (arr, val) {
  5186. for (var i = 0; i < arr.length; i++) {
  5187. if (looseEqual(arr[i], val)) { return i }
  5188. }
  5189. return -1
  5190. }
  5191. /**
  5192. * Ensure a function is called only once.
  5193. */
  5194. function once (fn) {
  5195. var called = false;
  5196. return function () {
  5197. if (!called) {
  5198. called = true;
  5199. fn.apply(this, arguments);
  5200. }
  5201. }
  5202. }
  5203. var ASSET_TYPES = [
  5204. 'component',
  5205. 'directive',
  5206. 'filter'
  5207. ];
  5208. var LIFECYCLE_HOOKS = [
  5209. 'beforeCreate',
  5210. 'created',
  5211. 'beforeMount',
  5212. 'mounted',
  5213. 'beforeUpdate',
  5214. 'updated',
  5215. 'beforeDestroy',
  5216. 'destroyed',
  5217. 'activated',
  5218. 'deactivated',
  5219. 'errorCaptured',
  5220. 'serverPrefetch'
  5221. ];
  5222. /* */
  5223. var config = ({
  5224. /**
  5225. * Option merge strategies (used in core/util/options)
  5226. */
  5227. // $flow-disable-line
  5228. optionMergeStrategies: Object.create(null),
  5229. /**
  5230. * Whether to suppress warnings.
  5231. */
  5232. silent: false,
  5233. /**
  5234. * Show production mode tip message on boot?
  5235. */
  5236. productionTip: "development" !== 'production',
  5237. /**
  5238. * Whether to enable devtools
  5239. */
  5240. devtools: "development" !== 'production',
  5241. /**
  5242. * Whether to record perf
  5243. */
  5244. performance: false,
  5245. /**
  5246. * Error handler for watcher errors
  5247. */
  5248. errorHandler: null,
  5249. /**
  5250. * Warn handler for watcher warns
  5251. */
  5252. warnHandler: null,
  5253. /**
  5254. * Ignore certain custom elements
  5255. */
  5256. ignoredElements: [],
  5257. /**
  5258. * Custom user key aliases for v-on
  5259. */
  5260. // $flow-disable-line
  5261. keyCodes: Object.create(null),
  5262. /**
  5263. * Check if a tag is reserved so that it cannot be registered as a
  5264. * component. This is platform-dependent and may be overwritten.
  5265. */
  5266. isReservedTag: no,
  5267. /**
  5268. * Check if an attribute is reserved so that it cannot be used as a component
  5269. * prop. This is platform-dependent and may be overwritten.
  5270. */
  5271. isReservedAttr: no,
  5272. /**
  5273. * Check if a tag is an unknown element.
  5274. * Platform-dependent.
  5275. */
  5276. isUnknownElement: no,
  5277. /**
  5278. * Get the namespace of an element
  5279. */
  5280. getTagNamespace: noop,
  5281. /**
  5282. * Parse the real tag name for the specific platform.
  5283. */
  5284. parsePlatformTagName: identity,
  5285. /**
  5286. * Check if an attribute must be bound using property, e.g. value
  5287. * Platform-dependent.
  5288. */
  5289. mustUseProp: no,
  5290. /**
  5291. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  5292. * This will significantly reduce performance if set to false.
  5293. */
  5294. async: true,
  5295. /**
  5296. * Exposed for legacy reasons
  5297. */
  5298. _lifecycleHooks: LIFECYCLE_HOOKS
  5299. });
  5300. /* */
  5301. /**
  5302. * unicode letters used for parsing html tags, component names and property paths.
  5303. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  5304. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  5305. */
  5306. 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/;
  5307. /**
  5308. * Check if a string starts with $ or _
  5309. */
  5310. function isReserved (str) {
  5311. var c = (str + '').charCodeAt(0);
  5312. return c === 0x24 || c === 0x5F
  5313. }
  5314. /**
  5315. * Define a property.
  5316. */
  5317. function def (obj, key, val, enumerable) {
  5318. Object.defineProperty(obj, key, {
  5319. value: val,
  5320. enumerable: !!enumerable,
  5321. writable: true,
  5322. configurable: true
  5323. });
  5324. }
  5325. /**
  5326. * Parse simple path.
  5327. */
  5328. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  5329. function parsePath (path) {
  5330. if (bailRE.test(path)) {
  5331. return
  5332. }
  5333. var segments = path.split('.');
  5334. return function (obj) {
  5335. for (var i = 0; i < segments.length; i++) {
  5336. if (!obj) { return }
  5337. obj = obj[segments[i]];
  5338. }
  5339. return obj
  5340. }
  5341. }
  5342. /* */
  5343. // can we use __proto__?
  5344. var hasProto = '__proto__' in {};
  5345. // Browser environment sniffing
  5346. var inBrowser = typeof window !== 'undefined';
  5347. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  5348. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  5349. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  5350. var isIE = UA && /msie|trident/.test(UA);
  5351. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  5352. var isEdge = UA && UA.indexOf('edge/') > 0;
  5353. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  5354. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  5355. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  5356. var isPhantomJS = UA && /phantomjs/.test(UA);
  5357. var isFF = UA && UA.match(/firefox\/(\d+)/);
  5358. // Firefox has a "watch" function on Object.prototype...
  5359. var nativeWatch = ({}).watch;
  5360. if (inBrowser) {
  5361. try {
  5362. var opts = {};
  5363. Object.defineProperty(opts, 'passive', ({
  5364. get: function get () {
  5365. }
  5366. })); // https://github.com/facebook/flow/issues/285
  5367. window.addEventListener('test-passive', null, opts);
  5368. } catch (e) {}
  5369. }
  5370. // this needs to be lazy-evaled because vue may be required before
  5371. // vue-server-renderer can set VUE_ENV
  5372. var _isServer;
  5373. var isServerRendering = function () {
  5374. if (_isServer === undefined) {
  5375. /* istanbul ignore if */
  5376. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  5377. // detect presence of vue-server-renderer and avoid
  5378. // Webpack shimming the process
  5379. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  5380. } else {
  5381. _isServer = false;
  5382. }
  5383. }
  5384. return _isServer
  5385. };
  5386. // detect devtools
  5387. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  5388. /* istanbul ignore next */
  5389. function isNative (Ctor) {
  5390. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  5391. }
  5392. var hasSymbol =
  5393. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  5394. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  5395. var _Set;
  5396. /* istanbul ignore if */ // $flow-disable-line
  5397. if (typeof Set !== 'undefined' && isNative(Set)) {
  5398. // use native Set when available.
  5399. _Set = Set;
  5400. } else {
  5401. // a non-standard Set polyfill that only works with primitive keys.
  5402. _Set = /*@__PURE__*/(function () {
  5403. function Set () {
  5404. this.set = Object.create(null);
  5405. }
  5406. Set.prototype.has = function has (key) {
  5407. return this.set[key] === true
  5408. };
  5409. Set.prototype.add = function add (key) {
  5410. this.set[key] = true;
  5411. };
  5412. Set.prototype.clear = function clear () {
  5413. this.set = Object.create(null);
  5414. };
  5415. return Set;
  5416. }());
  5417. }
  5418. /* */
  5419. var warn = noop;
  5420. var tip = noop;
  5421. var generateComponentTrace = (noop); // work around flow check
  5422. var formatComponentName = (noop);
  5423. if (true) {
  5424. var hasConsole = typeof console !== 'undefined';
  5425. var classifyRE = /(?:^|[-_])(\w)/g;
  5426. var classify = function (str) { return str
  5427. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  5428. .replace(/[-_]/g, ''); };
  5429. warn = function (msg, vm) {
  5430. var trace = vm ? generateComponentTrace(vm) : '';
  5431. if (config.warnHandler) {
  5432. config.warnHandler.call(null, msg, vm, trace);
  5433. } else if (hasConsole && (!config.silent)) {
  5434. console.error(("[Vue warn]: " + msg + trace));
  5435. }
  5436. };
  5437. tip = function (msg, vm) {
  5438. if (hasConsole && (!config.silent)) {
  5439. console.warn("[Vue tip]: " + msg + (
  5440. vm ? generateComponentTrace(vm) : ''
  5441. ));
  5442. }
  5443. };
  5444. formatComponentName = function (vm, includeFile) {
  5445. if (vm.$root === vm) {
  5446. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  5447. return ('') + vm.$options.__file
  5448. }
  5449. return '<Root>'
  5450. }
  5451. var options = typeof vm === 'function' && vm.cid != null
  5452. ? vm.options
  5453. : vm._isVue
  5454. ? vm.$options || vm.constructor.options
  5455. : vm;
  5456. var name = options.name || options._componentTag;
  5457. var file = options.__file;
  5458. if (!name && file) {
  5459. var match = file.match(/([^/\\]+)\.vue$/);
  5460. name = match && match[1];
  5461. }
  5462. return (
  5463. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  5464. (file && includeFile !== false ? (" at " + file) : '')
  5465. )
  5466. };
  5467. var repeat = function (str, n) {
  5468. var res = '';
  5469. while (n) {
  5470. if (n % 2 === 1) { res += str; }
  5471. if (n > 1) { str += str; }
  5472. n >>= 1;
  5473. }
  5474. return res
  5475. };
  5476. generateComponentTrace = function (vm) {
  5477. if (vm._isVue && vm.$parent) {
  5478. var tree = [];
  5479. var currentRecursiveSequence = 0;
  5480. while (vm && vm.$options.name !== 'PageBody') {
  5481. if (tree.length > 0) {
  5482. var last = tree[tree.length - 1];
  5483. if (last.constructor === vm.constructor) {
  5484. currentRecursiveSequence++;
  5485. vm = vm.$parent;
  5486. continue
  5487. } else if (currentRecursiveSequence > 0) {
  5488. tree[tree.length - 1] = [last, currentRecursiveSequence];
  5489. currentRecursiveSequence = 0;
  5490. }
  5491. }
  5492. !vm.$options.isReserved && tree.push(vm);
  5493. vm = vm.$parent;
  5494. }
  5495. return '\n\nfound in\n\n' + tree
  5496. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  5497. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  5498. : formatComponentName(vm))); })
  5499. .join('\n')
  5500. } else {
  5501. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  5502. }
  5503. };
  5504. }
  5505. /* */
  5506. var uid = 0;
  5507. /**
  5508. * A dep is an observable that can have multiple
  5509. * directives subscribing to it.
  5510. */
  5511. var Dep = function Dep () {
  5512. this.id = uid++;
  5513. this.subs = [];
  5514. };
  5515. Dep.prototype.addSub = function addSub (sub) {
  5516. this.subs.push(sub);
  5517. };
  5518. Dep.prototype.removeSub = function removeSub (sub) {
  5519. remove(this.subs, sub);
  5520. };
  5521. Dep.prototype.depend = function depend () {
  5522. if (Dep.SharedObject.target) {
  5523. Dep.SharedObject.target.addDep(this);
  5524. }
  5525. };
  5526. Dep.prototype.notify = function notify () {
  5527. // stabilize the subscriber list first
  5528. var subs = this.subs.slice();
  5529. if ( true && !config.async) {
  5530. // subs aren't sorted in scheduler if not running async
  5531. // we need to sort them now to make sure they fire in correct
  5532. // order
  5533. subs.sort(function (a, b) { return a.id - b.id; });
  5534. }
  5535. for (var i = 0, l = subs.length; i < l; i++) {
  5536. subs[i].update();
  5537. }
  5538. };
  5539. // The current target watcher being evaluated.
  5540. // This is globally unique because only one watcher
  5541. // can be evaluated at a time.
  5542. // fixed by xxxxxx (nvue shared vuex)
  5543. /* eslint-disable no-undef */
  5544. Dep.SharedObject = {};
  5545. Dep.SharedObject.target = null;
  5546. Dep.SharedObject.targetStack = [];
  5547. function pushTarget (target) {
  5548. Dep.SharedObject.targetStack.push(target);
  5549. Dep.SharedObject.target = target;
  5550. Dep.target = target;
  5551. }
  5552. function popTarget () {
  5553. Dep.SharedObject.targetStack.pop();
  5554. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  5555. Dep.target = Dep.SharedObject.target;
  5556. }
  5557. /* */
  5558. var VNode = function VNode (
  5559. tag,
  5560. data,
  5561. children,
  5562. text,
  5563. elm,
  5564. context,
  5565. componentOptions,
  5566. asyncFactory
  5567. ) {
  5568. this.tag = tag;
  5569. this.data = data;
  5570. this.children = children;
  5571. this.text = text;
  5572. this.elm = elm;
  5573. this.ns = undefined;
  5574. this.context = context;
  5575. this.fnContext = undefined;
  5576. this.fnOptions = undefined;
  5577. this.fnScopeId = undefined;
  5578. this.key = data && data.key;
  5579. this.componentOptions = componentOptions;
  5580. this.componentInstance = undefined;
  5581. this.parent = undefined;
  5582. this.raw = false;
  5583. this.isStatic = false;
  5584. this.isRootInsert = true;
  5585. this.isComment = false;
  5586. this.isCloned = false;
  5587. this.isOnce = false;
  5588. this.asyncFactory = asyncFactory;
  5589. this.asyncMeta = undefined;
  5590. this.isAsyncPlaceholder = false;
  5591. };
  5592. var prototypeAccessors = { child: { configurable: true } };
  5593. // DEPRECATED: alias for componentInstance for backwards compat.
  5594. /* istanbul ignore next */
  5595. prototypeAccessors.child.get = function () {
  5596. return this.componentInstance
  5597. };
  5598. Object.defineProperties( VNode.prototype, prototypeAccessors );
  5599. var createEmptyVNode = function (text) {
  5600. if ( text === void 0 ) text = '';
  5601. var node = new VNode();
  5602. node.text = text;
  5603. node.isComment = true;
  5604. return node
  5605. };
  5606. function createTextVNode (val) {
  5607. return new VNode(undefined, undefined, undefined, String(val))
  5608. }
  5609. // optimized shallow clone
  5610. // used for static nodes and slot nodes because they may be reused across
  5611. // multiple renders, cloning them avoids errors when DOM manipulations rely
  5612. // on their elm reference.
  5613. function cloneVNode (vnode) {
  5614. var cloned = new VNode(
  5615. vnode.tag,
  5616. vnode.data,
  5617. // #7975
  5618. // clone children array to avoid mutating original in case of cloning
  5619. // a child.
  5620. vnode.children && vnode.children.slice(),
  5621. vnode.text,
  5622. vnode.elm,
  5623. vnode.context,
  5624. vnode.componentOptions,
  5625. vnode.asyncFactory
  5626. );
  5627. cloned.ns = vnode.ns;
  5628. cloned.isStatic = vnode.isStatic;
  5629. cloned.key = vnode.key;
  5630. cloned.isComment = vnode.isComment;
  5631. cloned.fnContext = vnode.fnContext;
  5632. cloned.fnOptions = vnode.fnOptions;
  5633. cloned.fnScopeId = vnode.fnScopeId;
  5634. cloned.asyncMeta = vnode.asyncMeta;
  5635. cloned.isCloned = true;
  5636. return cloned
  5637. }
  5638. /*
  5639. * not type checking this file because flow doesn't play well with
  5640. * dynamically accessing methods on Array prototype
  5641. */
  5642. var arrayProto = Array.prototype;
  5643. var arrayMethods = Object.create(arrayProto);
  5644. var methodsToPatch = [
  5645. 'push',
  5646. 'pop',
  5647. 'shift',
  5648. 'unshift',
  5649. 'splice',
  5650. 'sort',
  5651. 'reverse'
  5652. ];
  5653. /**
  5654. * Intercept mutating methods and emit events
  5655. */
  5656. methodsToPatch.forEach(function (method) {
  5657. // cache original method
  5658. var original = arrayProto[method];
  5659. def(arrayMethods, method, function mutator () {
  5660. var args = [], len = arguments.length;
  5661. while ( len-- ) args[ len ] = arguments[ len ];
  5662. var result = original.apply(this, args);
  5663. var ob = this.__ob__;
  5664. var inserted;
  5665. switch (method) {
  5666. case 'push':
  5667. case 'unshift':
  5668. inserted = args;
  5669. break
  5670. case 'splice':
  5671. inserted = args.slice(2);
  5672. break
  5673. }
  5674. if (inserted) { ob.observeArray(inserted); }
  5675. // notify change
  5676. ob.dep.notify();
  5677. return result
  5678. });
  5679. });
  5680. /* */
  5681. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  5682. /**
  5683. * In some cases we may want to disable observation inside a component's
  5684. * update computation.
  5685. */
  5686. var shouldObserve = true;
  5687. function toggleObserving (value) {
  5688. shouldObserve = value;
  5689. }
  5690. /**
  5691. * Observer class that is attached to each observed
  5692. * object. Once attached, the observer converts the target
  5693. * object's property keys into getter/setters that
  5694. * collect dependencies and dispatch updates.
  5695. */
  5696. var Observer = function Observer (value) {
  5697. this.value = value;
  5698. this.dep = new Dep();
  5699. this.vmCount = 0;
  5700. def(value, '__ob__', this);
  5701. if (Array.isArray(value)) {
  5702. if (hasProto) {
  5703. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  5704. if(value.push !== value.__proto__.push){
  5705. copyAugment(value, arrayMethods, arrayKeys);
  5706. } else {
  5707. protoAugment(value, arrayMethods);
  5708. }
  5709. }
  5710. } else {
  5711. copyAugment(value, arrayMethods, arrayKeys);
  5712. }
  5713. this.observeArray(value);
  5714. } else {
  5715. this.walk(value);
  5716. }
  5717. };
  5718. /**
  5719. * Walk through all properties and convert them into
  5720. * getter/setters. This method should only be called when
  5721. * value type is Object.
  5722. */
  5723. Observer.prototype.walk = function walk (obj) {
  5724. var keys = Object.keys(obj);
  5725. for (var i = 0; i < keys.length; i++) {
  5726. defineReactive$$1(obj, keys[i]);
  5727. }
  5728. };
  5729. /**
  5730. * Observe a list of Array items.
  5731. */
  5732. Observer.prototype.observeArray = function observeArray (items) {
  5733. for (var i = 0, l = items.length; i < l; i++) {
  5734. observe(items[i]);
  5735. }
  5736. };
  5737. // helpers
  5738. /**
  5739. * Augment a target Object or Array by intercepting
  5740. * the prototype chain using __proto__
  5741. */
  5742. function protoAugment (target, src) {
  5743. /* eslint-disable no-proto */
  5744. target.__proto__ = src;
  5745. /* eslint-enable no-proto */
  5746. }
  5747. /**
  5748. * Augment a target Object or Array by defining
  5749. * hidden properties.
  5750. */
  5751. /* istanbul ignore next */
  5752. function copyAugment (target, src, keys) {
  5753. for (var i = 0, l = keys.length; i < l; i++) {
  5754. var key = keys[i];
  5755. def(target, key, src[key]);
  5756. }
  5757. }
  5758. /**
  5759. * Attempt to create an observer instance for a value,
  5760. * returns the new observer if successfully observed,
  5761. * or the existing observer if the value already has one.
  5762. */
  5763. function observe (value, asRootData) {
  5764. if (!isObject(value) || value instanceof VNode) {
  5765. return
  5766. }
  5767. var ob;
  5768. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  5769. ob = value.__ob__;
  5770. } else if (
  5771. shouldObserve &&
  5772. !isServerRendering() &&
  5773. (Array.isArray(value) || isPlainObject(value)) &&
  5774. Object.isExtensible(value) &&
  5775. !value._isVue
  5776. ) {
  5777. ob = new Observer(value);
  5778. }
  5779. if (asRootData && ob) {
  5780. ob.vmCount++;
  5781. }
  5782. return ob
  5783. }
  5784. /**
  5785. * Define a reactive property on an Object.
  5786. */
  5787. function defineReactive$$1 (
  5788. obj,
  5789. key,
  5790. val,
  5791. customSetter,
  5792. shallow
  5793. ) {
  5794. var dep = new Dep();
  5795. var property = Object.getOwnPropertyDescriptor(obj, key);
  5796. if (property && property.configurable === false) {
  5797. return
  5798. }
  5799. // cater for pre-defined getter/setters
  5800. var getter = property && property.get;
  5801. var setter = property && property.set;
  5802. if ((!getter || setter) && arguments.length === 2) {
  5803. val = obj[key];
  5804. }
  5805. var childOb = !shallow && observe(val);
  5806. Object.defineProperty(obj, key, {
  5807. enumerable: true,
  5808. configurable: true,
  5809. get: function reactiveGetter () {
  5810. var value = getter ? getter.call(obj) : val;
  5811. if (Dep.SharedObject.target) { // fixed by xxxxxx
  5812. dep.depend();
  5813. if (childOb) {
  5814. childOb.dep.depend();
  5815. if (Array.isArray(value)) {
  5816. dependArray(value);
  5817. }
  5818. }
  5819. }
  5820. return value
  5821. },
  5822. set: function reactiveSetter (newVal) {
  5823. var value = getter ? getter.call(obj) : val;
  5824. /* eslint-disable no-self-compare */
  5825. if (newVal === value || (newVal !== newVal && value !== value)) {
  5826. return
  5827. }
  5828. /* eslint-enable no-self-compare */
  5829. if ( true && customSetter) {
  5830. customSetter();
  5831. }
  5832. // #7981: for accessor properties without setter
  5833. if (getter && !setter) { return }
  5834. if (setter) {
  5835. setter.call(obj, newVal);
  5836. } else {
  5837. val = newVal;
  5838. }
  5839. childOb = !shallow && observe(newVal);
  5840. dep.notify();
  5841. }
  5842. });
  5843. }
  5844. /**
  5845. * Set a property on an object. Adds the new property and
  5846. * triggers change notification if the property doesn't
  5847. * already exist.
  5848. */
  5849. function set (target, key, val) {
  5850. if ( true &&
  5851. (isUndef(target) || isPrimitive(target))
  5852. ) {
  5853. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  5854. }
  5855. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5856. target.length = Math.max(target.length, key);
  5857. target.splice(key, 1, val);
  5858. return val
  5859. }
  5860. if (key in target && !(key in Object.prototype)) {
  5861. target[key] = val;
  5862. return val
  5863. }
  5864. var ob = (target).__ob__;
  5865. if (target._isVue || (ob && ob.vmCount)) {
  5866. true && warn(
  5867. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  5868. 'at runtime - declare it upfront in the data option.'
  5869. );
  5870. return val
  5871. }
  5872. if (!ob) {
  5873. target[key] = val;
  5874. return val
  5875. }
  5876. defineReactive$$1(ob.value, key, val);
  5877. ob.dep.notify();
  5878. return val
  5879. }
  5880. /**
  5881. * Delete a property and trigger change if necessary.
  5882. */
  5883. function del (target, key) {
  5884. if ( true &&
  5885. (isUndef(target) || isPrimitive(target))
  5886. ) {
  5887. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  5888. }
  5889. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5890. target.splice(key, 1);
  5891. return
  5892. }
  5893. var ob = (target).__ob__;
  5894. if (target._isVue || (ob && ob.vmCount)) {
  5895. true && warn(
  5896. 'Avoid deleting properties on a Vue instance or its root $data ' +
  5897. '- just set it to null.'
  5898. );
  5899. return
  5900. }
  5901. if (!hasOwn(target, key)) {
  5902. return
  5903. }
  5904. delete target[key];
  5905. if (!ob) {
  5906. return
  5907. }
  5908. ob.dep.notify();
  5909. }
  5910. /**
  5911. * Collect dependencies on array elements when the array is touched, since
  5912. * we cannot intercept array element access like property getters.
  5913. */
  5914. function dependArray (value) {
  5915. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  5916. e = value[i];
  5917. e && e.__ob__ && e.__ob__.dep.depend();
  5918. if (Array.isArray(e)) {
  5919. dependArray(e);
  5920. }
  5921. }
  5922. }
  5923. /* */
  5924. /**
  5925. * Option overwriting strategies are functions that handle
  5926. * how to merge a parent option value and a child option
  5927. * value into the final value.
  5928. */
  5929. var strats = config.optionMergeStrategies;
  5930. /**
  5931. * Options with restrictions
  5932. */
  5933. if (true) {
  5934. strats.el = strats.propsData = function (parent, child, vm, key) {
  5935. if (!vm) {
  5936. warn(
  5937. "option \"" + key + "\" can only be used during instance " +
  5938. 'creation with the `new` keyword.'
  5939. );
  5940. }
  5941. return defaultStrat(parent, child)
  5942. };
  5943. }
  5944. /**
  5945. * Helper that recursively merges two data objects together.
  5946. */
  5947. function mergeData (to, from) {
  5948. if (!from) { return to }
  5949. var key, toVal, fromVal;
  5950. var keys = hasSymbol
  5951. ? Reflect.ownKeys(from)
  5952. : Object.keys(from);
  5953. for (var i = 0; i < keys.length; i++) {
  5954. key = keys[i];
  5955. // in case the object is already observed...
  5956. if (key === '__ob__') { continue }
  5957. toVal = to[key];
  5958. fromVal = from[key];
  5959. if (!hasOwn(to, key)) {
  5960. set(to, key, fromVal);
  5961. } else if (
  5962. toVal !== fromVal &&
  5963. isPlainObject(toVal) &&
  5964. isPlainObject(fromVal)
  5965. ) {
  5966. mergeData(toVal, fromVal);
  5967. }
  5968. }
  5969. return to
  5970. }
  5971. /**
  5972. * Data
  5973. */
  5974. function mergeDataOrFn (
  5975. parentVal,
  5976. childVal,
  5977. vm
  5978. ) {
  5979. if (!vm) {
  5980. // in a Vue.extend merge, both should be functions
  5981. if (!childVal) {
  5982. return parentVal
  5983. }
  5984. if (!parentVal) {
  5985. return childVal
  5986. }
  5987. // when parentVal & childVal are both present,
  5988. // we need to return a function that returns the
  5989. // merged result of both functions... no need to
  5990. // check if parentVal is a function here because
  5991. // it has to be a function to pass previous merges.
  5992. return function mergedDataFn () {
  5993. return mergeData(
  5994. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  5995. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  5996. )
  5997. }
  5998. } else {
  5999. return function mergedInstanceDataFn () {
  6000. // instance merge
  6001. var instanceData = typeof childVal === 'function'
  6002. ? childVal.call(vm, vm)
  6003. : childVal;
  6004. var defaultData = typeof parentVal === 'function'
  6005. ? parentVal.call(vm, vm)
  6006. : parentVal;
  6007. if (instanceData) {
  6008. return mergeData(instanceData, defaultData)
  6009. } else {
  6010. return defaultData
  6011. }
  6012. }
  6013. }
  6014. }
  6015. strats.data = function (
  6016. parentVal,
  6017. childVal,
  6018. vm
  6019. ) {
  6020. if (!vm) {
  6021. if (childVal && typeof childVal !== 'function') {
  6022. true && warn(
  6023. 'The "data" option should be a function ' +
  6024. 'that returns a per-instance value in component ' +
  6025. 'definitions.',
  6026. vm
  6027. );
  6028. return parentVal
  6029. }
  6030. return mergeDataOrFn(parentVal, childVal)
  6031. }
  6032. return mergeDataOrFn(parentVal, childVal, vm)
  6033. };
  6034. /**
  6035. * Hooks and props are merged as arrays.
  6036. */
  6037. function mergeHook (
  6038. parentVal,
  6039. childVal
  6040. ) {
  6041. var res = childVal
  6042. ? parentVal
  6043. ? parentVal.concat(childVal)
  6044. : Array.isArray(childVal)
  6045. ? childVal
  6046. : [childVal]
  6047. : parentVal;
  6048. return res
  6049. ? dedupeHooks(res)
  6050. : res
  6051. }
  6052. function dedupeHooks (hooks) {
  6053. var res = [];
  6054. for (var i = 0; i < hooks.length; i++) {
  6055. if (res.indexOf(hooks[i]) === -1) {
  6056. res.push(hooks[i]);
  6057. }
  6058. }
  6059. return res
  6060. }
  6061. LIFECYCLE_HOOKS.forEach(function (hook) {
  6062. strats[hook] = mergeHook;
  6063. });
  6064. /**
  6065. * Assets
  6066. *
  6067. * When a vm is present (instance creation), we need to do
  6068. * a three-way merge between constructor options, instance
  6069. * options and parent options.
  6070. */
  6071. function mergeAssets (
  6072. parentVal,
  6073. childVal,
  6074. vm,
  6075. key
  6076. ) {
  6077. var res = Object.create(parentVal || null);
  6078. if (childVal) {
  6079. true && assertObjectType(key, childVal, vm);
  6080. return extend(res, childVal)
  6081. } else {
  6082. return res
  6083. }
  6084. }
  6085. ASSET_TYPES.forEach(function (type) {
  6086. strats[type + 's'] = mergeAssets;
  6087. });
  6088. /**
  6089. * Watchers.
  6090. *
  6091. * Watchers hashes should not overwrite one
  6092. * another, so we merge them as arrays.
  6093. */
  6094. strats.watch = function (
  6095. parentVal,
  6096. childVal,
  6097. vm,
  6098. key
  6099. ) {
  6100. // work around Firefox's Object.prototype.watch...
  6101. if (parentVal === nativeWatch) { parentVal = undefined; }
  6102. if (childVal === nativeWatch) { childVal = undefined; }
  6103. /* istanbul ignore if */
  6104. if (!childVal) { return Object.create(parentVal || null) }
  6105. if (true) {
  6106. assertObjectType(key, childVal, vm);
  6107. }
  6108. if (!parentVal) { return childVal }
  6109. var ret = {};
  6110. extend(ret, parentVal);
  6111. for (var key$1 in childVal) {
  6112. var parent = ret[key$1];
  6113. var child = childVal[key$1];
  6114. if (parent && !Array.isArray(parent)) {
  6115. parent = [parent];
  6116. }
  6117. ret[key$1] = parent
  6118. ? parent.concat(child)
  6119. : Array.isArray(child) ? child : [child];
  6120. }
  6121. return ret
  6122. };
  6123. /**
  6124. * Other object hashes.
  6125. */
  6126. strats.props =
  6127. strats.methods =
  6128. strats.inject =
  6129. strats.computed = function (
  6130. parentVal,
  6131. childVal,
  6132. vm,
  6133. key
  6134. ) {
  6135. if (childVal && "development" !== 'production') {
  6136. assertObjectType(key, childVal, vm);
  6137. }
  6138. if (!parentVal) { return childVal }
  6139. var ret = Object.create(null);
  6140. extend(ret, parentVal);
  6141. if (childVal) { extend(ret, childVal); }
  6142. return ret
  6143. };
  6144. strats.provide = mergeDataOrFn;
  6145. /**
  6146. * Default strategy.
  6147. */
  6148. var defaultStrat = function (parentVal, childVal) {
  6149. return childVal === undefined
  6150. ? parentVal
  6151. : childVal
  6152. };
  6153. /**
  6154. * Validate component names
  6155. */
  6156. function checkComponents (options) {
  6157. for (var key in options.components) {
  6158. validateComponentName(key);
  6159. }
  6160. }
  6161. function validateComponentName (name) {
  6162. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  6163. warn(
  6164. 'Invalid component name: "' + name + '". Component names ' +
  6165. 'should conform to valid custom element name in html5 specification.'
  6166. );
  6167. }
  6168. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  6169. warn(
  6170. 'Do not use built-in or reserved HTML elements as component ' +
  6171. 'id: ' + name
  6172. );
  6173. }
  6174. }
  6175. /**
  6176. * Ensure all props option syntax are normalized into the
  6177. * Object-based format.
  6178. */
  6179. function normalizeProps (options, vm) {
  6180. var props = options.props;
  6181. if (!props) { return }
  6182. var res = {};
  6183. var i, val, name;
  6184. if (Array.isArray(props)) {
  6185. i = props.length;
  6186. while (i--) {
  6187. val = props[i];
  6188. if (typeof val === 'string') {
  6189. name = camelize(val);
  6190. res[name] = { type: null };
  6191. } else if (true) {
  6192. warn('props must be strings when using array syntax.');
  6193. }
  6194. }
  6195. } else if (isPlainObject(props)) {
  6196. for (var key in props) {
  6197. val = props[key];
  6198. name = camelize(key);
  6199. res[name] = isPlainObject(val)
  6200. ? val
  6201. : { type: val };
  6202. }
  6203. } else if (true) {
  6204. warn(
  6205. "Invalid value for option \"props\": expected an Array or an Object, " +
  6206. "but got " + (toRawType(props)) + ".",
  6207. vm
  6208. );
  6209. }
  6210. options.props = res;
  6211. }
  6212. /**
  6213. * Normalize all injections into Object-based format
  6214. */
  6215. function normalizeInject (options, vm) {
  6216. var inject = options.inject;
  6217. if (!inject) { return }
  6218. var normalized = options.inject = {};
  6219. if (Array.isArray(inject)) {
  6220. for (var i = 0; i < inject.length; i++) {
  6221. normalized[inject[i]] = { from: inject[i] };
  6222. }
  6223. } else if (isPlainObject(inject)) {
  6224. for (var key in inject) {
  6225. var val = inject[key];
  6226. normalized[key] = isPlainObject(val)
  6227. ? extend({ from: key }, val)
  6228. : { from: val };
  6229. }
  6230. } else if (true) {
  6231. warn(
  6232. "Invalid value for option \"inject\": expected an Array or an Object, " +
  6233. "but got " + (toRawType(inject)) + ".",
  6234. vm
  6235. );
  6236. }
  6237. }
  6238. /**
  6239. * Normalize raw function directives into object format.
  6240. */
  6241. function normalizeDirectives (options) {
  6242. var dirs = options.directives;
  6243. if (dirs) {
  6244. for (var key in dirs) {
  6245. var def$$1 = dirs[key];
  6246. if (typeof def$$1 === 'function') {
  6247. dirs[key] = { bind: def$$1, update: def$$1 };
  6248. }
  6249. }
  6250. }
  6251. }
  6252. function assertObjectType (name, value, vm) {
  6253. if (!isPlainObject(value)) {
  6254. warn(
  6255. "Invalid value for option \"" + name + "\": expected an Object, " +
  6256. "but got " + (toRawType(value)) + ".",
  6257. vm
  6258. );
  6259. }
  6260. }
  6261. /**
  6262. * Merge two option objects into a new one.
  6263. * Core utility used in both instantiation and inheritance.
  6264. */
  6265. function mergeOptions (
  6266. parent,
  6267. child,
  6268. vm
  6269. ) {
  6270. if (true) {
  6271. checkComponents(child);
  6272. }
  6273. if (typeof child === 'function') {
  6274. child = child.options;
  6275. }
  6276. normalizeProps(child, vm);
  6277. normalizeInject(child, vm);
  6278. normalizeDirectives(child);
  6279. // Apply extends and mixins on the child options,
  6280. // but only if it is a raw options object that isn't
  6281. // the result of another mergeOptions call.
  6282. // Only merged options has the _base property.
  6283. if (!child._base) {
  6284. if (child.extends) {
  6285. parent = mergeOptions(parent, child.extends, vm);
  6286. }
  6287. if (child.mixins) {
  6288. for (var i = 0, l = child.mixins.length; i < l; i++) {
  6289. parent = mergeOptions(parent, child.mixins[i], vm);
  6290. }
  6291. }
  6292. }
  6293. var options = {};
  6294. var key;
  6295. for (key in parent) {
  6296. mergeField(key);
  6297. }
  6298. for (key in child) {
  6299. if (!hasOwn(parent, key)) {
  6300. mergeField(key);
  6301. }
  6302. }
  6303. function mergeField (key) {
  6304. var strat = strats[key] || defaultStrat;
  6305. options[key] = strat(parent[key], child[key], vm, key);
  6306. }
  6307. return options
  6308. }
  6309. /**
  6310. * Resolve an asset.
  6311. * This function is used because child instances need access
  6312. * to assets defined in its ancestor chain.
  6313. */
  6314. function resolveAsset (
  6315. options,
  6316. type,
  6317. id,
  6318. warnMissing
  6319. ) {
  6320. /* istanbul ignore if */
  6321. if (typeof id !== 'string') {
  6322. return
  6323. }
  6324. var assets = options[type];
  6325. // check local registration variations first
  6326. if (hasOwn(assets, id)) { return assets[id] }
  6327. var camelizedId = camelize(id);
  6328. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  6329. var PascalCaseId = capitalize(camelizedId);
  6330. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  6331. // fallback to prototype chain
  6332. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  6333. if ( true && warnMissing && !res) {
  6334. warn(
  6335. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  6336. options
  6337. );
  6338. }
  6339. return res
  6340. }
  6341. /* */
  6342. function validateProp (
  6343. key,
  6344. propOptions,
  6345. propsData,
  6346. vm
  6347. ) {
  6348. var prop = propOptions[key];
  6349. var absent = !hasOwn(propsData, key);
  6350. var value = propsData[key];
  6351. // boolean casting
  6352. var booleanIndex = getTypeIndex(Boolean, prop.type);
  6353. if (booleanIndex > -1) {
  6354. if (absent && !hasOwn(prop, 'default')) {
  6355. value = false;
  6356. } else if (value === '' || value === hyphenate(key)) {
  6357. // only cast empty string / same name to boolean if
  6358. // boolean has higher priority
  6359. var stringIndex = getTypeIndex(String, prop.type);
  6360. if (stringIndex < 0 || booleanIndex < stringIndex) {
  6361. value = true;
  6362. }
  6363. }
  6364. }
  6365. // check default value
  6366. if (value === undefined) {
  6367. value = getPropDefaultValue(vm, prop, key);
  6368. // since the default value is a fresh copy,
  6369. // make sure to observe it.
  6370. var prevShouldObserve = shouldObserve;
  6371. toggleObserving(true);
  6372. observe(value);
  6373. toggleObserving(prevShouldObserve);
  6374. }
  6375. if (
  6376. true
  6377. ) {
  6378. assertProp(prop, key, value, vm, absent);
  6379. }
  6380. return value
  6381. }
  6382. /**
  6383. * Get the default value of a prop.
  6384. */
  6385. function getPropDefaultValue (vm, prop, key) {
  6386. // no default, return undefined
  6387. if (!hasOwn(prop, 'default')) {
  6388. return undefined
  6389. }
  6390. var def = prop.default;
  6391. // warn against non-factory defaults for Object & Array
  6392. if ( true && isObject(def)) {
  6393. warn(
  6394. 'Invalid default value for prop "' + key + '": ' +
  6395. 'Props with type Object/Array must use a factory function ' +
  6396. 'to return the default value.',
  6397. vm
  6398. );
  6399. }
  6400. // the raw prop value was also undefined from previous render,
  6401. // return previous default value to avoid unnecessary watcher trigger
  6402. if (vm && vm.$options.propsData &&
  6403. vm.$options.propsData[key] === undefined &&
  6404. vm._props[key] !== undefined
  6405. ) {
  6406. return vm._props[key]
  6407. }
  6408. // call factory function for non-Function types
  6409. // a value is Function if its prototype is function even across different execution context
  6410. return typeof def === 'function' && getType(prop.type) !== 'Function'
  6411. ? def.call(vm)
  6412. : def
  6413. }
  6414. /**
  6415. * Assert whether a prop is valid.
  6416. */
  6417. function assertProp (
  6418. prop,
  6419. name,
  6420. value,
  6421. vm,
  6422. absent
  6423. ) {
  6424. if (prop.required && absent) {
  6425. warn(
  6426. 'Missing required prop: "' + name + '"',
  6427. vm
  6428. );
  6429. return
  6430. }
  6431. if (value == null && !prop.required) {
  6432. return
  6433. }
  6434. var type = prop.type;
  6435. var valid = !type || type === true;
  6436. var expectedTypes = [];
  6437. if (type) {
  6438. if (!Array.isArray(type)) {
  6439. type = [type];
  6440. }
  6441. for (var i = 0; i < type.length && !valid; i++) {
  6442. var assertedType = assertType(value, type[i]);
  6443. expectedTypes.push(assertedType.expectedType || '');
  6444. valid = assertedType.valid;
  6445. }
  6446. }
  6447. if (!valid) {
  6448. warn(
  6449. getInvalidTypeMessage(name, value, expectedTypes),
  6450. vm
  6451. );
  6452. return
  6453. }
  6454. var validator = prop.validator;
  6455. if (validator) {
  6456. if (!validator(value)) {
  6457. warn(
  6458. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  6459. vm
  6460. );
  6461. }
  6462. }
  6463. }
  6464. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  6465. function assertType (value, type) {
  6466. var valid;
  6467. var expectedType = getType(type);
  6468. if (simpleCheckRE.test(expectedType)) {
  6469. var t = typeof value;
  6470. valid = t === expectedType.toLowerCase();
  6471. // for primitive wrapper objects
  6472. if (!valid && t === 'object') {
  6473. valid = value instanceof type;
  6474. }
  6475. } else if (expectedType === 'Object') {
  6476. valid = isPlainObject(value);
  6477. } else if (expectedType === 'Array') {
  6478. valid = Array.isArray(value);
  6479. } else {
  6480. valid = value instanceof type;
  6481. }
  6482. return {
  6483. valid: valid,
  6484. expectedType: expectedType
  6485. }
  6486. }
  6487. /**
  6488. * Use function string name to check built-in types,
  6489. * because a simple equality check will fail when running
  6490. * across different vms / iframes.
  6491. */
  6492. function getType (fn) {
  6493. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  6494. return match ? match[1] : ''
  6495. }
  6496. function isSameType (a, b) {
  6497. return getType(a) === getType(b)
  6498. }
  6499. function getTypeIndex (type, expectedTypes) {
  6500. if (!Array.isArray(expectedTypes)) {
  6501. return isSameType(expectedTypes, type) ? 0 : -1
  6502. }
  6503. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  6504. if (isSameType(expectedTypes[i], type)) {
  6505. return i
  6506. }
  6507. }
  6508. return -1
  6509. }
  6510. function getInvalidTypeMessage (name, value, expectedTypes) {
  6511. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  6512. " Expected " + (expectedTypes.map(capitalize).join(', '));
  6513. var expectedType = expectedTypes[0];
  6514. var receivedType = toRawType(value);
  6515. var expectedValue = styleValue(value, expectedType);
  6516. var receivedValue = styleValue(value, receivedType);
  6517. // check if we need to specify expected value
  6518. if (expectedTypes.length === 1 &&
  6519. isExplicable(expectedType) &&
  6520. !isBoolean(expectedType, receivedType)) {
  6521. message += " with value " + expectedValue;
  6522. }
  6523. message += ", got " + receivedType + " ";
  6524. // check if we need to specify received value
  6525. if (isExplicable(receivedType)) {
  6526. message += "with value " + receivedValue + ".";
  6527. }
  6528. return message
  6529. }
  6530. function styleValue (value, type) {
  6531. if (type === 'String') {
  6532. return ("\"" + value + "\"")
  6533. } else if (type === 'Number') {
  6534. return ("" + (Number(value)))
  6535. } else {
  6536. return ("" + value)
  6537. }
  6538. }
  6539. function isExplicable (value) {
  6540. var explicitTypes = ['string', 'number', 'boolean'];
  6541. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  6542. }
  6543. function isBoolean () {
  6544. var args = [], len = arguments.length;
  6545. while ( len-- ) args[ len ] = arguments[ len ];
  6546. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  6547. }
  6548. /* */
  6549. function handleError (err, vm, info) {
  6550. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  6551. // See: https://github.com/vuejs/vuex/issues/1505
  6552. pushTarget();
  6553. try {
  6554. if (vm) {
  6555. var cur = vm;
  6556. while ((cur = cur.$parent)) {
  6557. var hooks = cur.$options.errorCaptured;
  6558. if (hooks) {
  6559. for (var i = 0; i < hooks.length; i++) {
  6560. try {
  6561. var capture = hooks[i].call(cur, err, vm, info) === false;
  6562. if (capture) { return }
  6563. } catch (e) {
  6564. globalHandleError(e, cur, 'errorCaptured hook');
  6565. }
  6566. }
  6567. }
  6568. }
  6569. }
  6570. globalHandleError(err, vm, info);
  6571. } finally {
  6572. popTarget();
  6573. }
  6574. }
  6575. function invokeWithErrorHandling (
  6576. handler,
  6577. context,
  6578. args,
  6579. vm,
  6580. info
  6581. ) {
  6582. var res;
  6583. try {
  6584. res = args ? handler.apply(context, args) : handler.call(context);
  6585. if (res && !res._isVue && isPromise(res) && !res._handled) {
  6586. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  6587. // issue #9511
  6588. // avoid catch triggering multiple times when nested calls
  6589. res._handled = true;
  6590. }
  6591. } catch (e) {
  6592. handleError(e, vm, info);
  6593. }
  6594. return res
  6595. }
  6596. function globalHandleError (err, vm, info) {
  6597. if (config.errorHandler) {
  6598. try {
  6599. return config.errorHandler.call(null, err, vm, info)
  6600. } catch (e) {
  6601. // if the user intentionally throws the original error in the handler,
  6602. // do not log it twice
  6603. if (e !== err) {
  6604. logError(e, null, 'config.errorHandler');
  6605. }
  6606. }
  6607. }
  6608. logError(err, vm, info);
  6609. }
  6610. function logError (err, vm, info) {
  6611. if (true) {
  6612. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  6613. }
  6614. /* istanbul ignore else */
  6615. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  6616. console.error(err);
  6617. } else {
  6618. throw err
  6619. }
  6620. }
  6621. /* */
  6622. var callbacks = [];
  6623. var pending = false;
  6624. function flushCallbacks () {
  6625. pending = false;
  6626. var copies = callbacks.slice(0);
  6627. callbacks.length = 0;
  6628. for (var i = 0; i < copies.length; i++) {
  6629. copies[i]();
  6630. }
  6631. }
  6632. // Here we have async deferring wrappers using microtasks.
  6633. // In 2.5 we used (macro) tasks (in combination with microtasks).
  6634. // However, it has subtle problems when state is changed right before repaint
  6635. // (e.g. #6813, out-in transitions).
  6636. // Also, using (macro) tasks in event handler would cause some weird behaviors
  6637. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  6638. // So we now use microtasks everywhere, again.
  6639. // A major drawback of this tradeoff is that there are some scenarios
  6640. // where microtasks have too high a priority and fire in between supposedly
  6641. // sequential events (e.g. #4521, #6690, which have workarounds)
  6642. // or even between bubbling of the same event (#6566).
  6643. var timerFunc;
  6644. // The nextTick behavior leverages the microtask queue, which can be accessed
  6645. // via either native Promise.then or MutationObserver.
  6646. // MutationObserver has wider support, however it is seriously bugged in
  6647. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  6648. // completely stops working after triggering a few times... so, if native
  6649. // Promise is available, we will use it:
  6650. /* istanbul ignore next, $flow-disable-line */
  6651. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  6652. var p = Promise.resolve();
  6653. timerFunc = function () {
  6654. p.then(flushCallbacks);
  6655. // In problematic UIWebViews, Promise.then doesn't completely break, but
  6656. // it can get stuck in a weird state where callbacks are pushed into the
  6657. // microtask queue but the queue isn't being flushed, until the browser
  6658. // needs to do some other work, e.g. handle a timer. Therefore we can
  6659. // "force" the microtask queue to be flushed by adding an empty timer.
  6660. if (isIOS) { setTimeout(noop); }
  6661. };
  6662. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  6663. isNative(MutationObserver) ||
  6664. // PhantomJS and iOS 7.x
  6665. MutationObserver.toString() === '[object MutationObserverConstructor]'
  6666. )) {
  6667. // Use MutationObserver where native Promise is not available,
  6668. // e.g. PhantomJS, iOS7, Android 4.4
  6669. // (#6466 MutationObserver is unreliable in IE11)
  6670. var counter = 1;
  6671. var observer = new MutationObserver(flushCallbacks);
  6672. var textNode = document.createTextNode(String(counter));
  6673. observer.observe(textNode, {
  6674. characterData: true
  6675. });
  6676. timerFunc = function () {
  6677. counter = (counter + 1) % 2;
  6678. textNode.data = String(counter);
  6679. };
  6680. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  6681. // Fallback to setImmediate.
  6682. // Technically it leverages the (macro) task queue,
  6683. // but it is still a better choice than setTimeout.
  6684. timerFunc = function () {
  6685. setImmediate(flushCallbacks);
  6686. };
  6687. } else {
  6688. // Fallback to setTimeout.
  6689. timerFunc = function () {
  6690. setTimeout(flushCallbacks, 0);
  6691. };
  6692. }
  6693. function nextTick (cb, ctx) {
  6694. var _resolve;
  6695. callbacks.push(function () {
  6696. if (cb) {
  6697. try {
  6698. cb.call(ctx);
  6699. } catch (e) {
  6700. handleError(e, ctx, 'nextTick');
  6701. }
  6702. } else if (_resolve) {
  6703. _resolve(ctx);
  6704. }
  6705. });
  6706. if (!pending) {
  6707. pending = true;
  6708. timerFunc();
  6709. }
  6710. // $flow-disable-line
  6711. if (!cb && typeof Promise !== 'undefined') {
  6712. return new Promise(function (resolve) {
  6713. _resolve = resolve;
  6714. })
  6715. }
  6716. }
  6717. /* */
  6718. /* not type checking this file because flow doesn't play well with Proxy */
  6719. var initProxy;
  6720. if (true) {
  6721. var allowedGlobals = makeMap(
  6722. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  6723. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  6724. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  6725. 'require' // for Webpack/Browserify
  6726. );
  6727. var warnNonPresent = function (target, key) {
  6728. warn(
  6729. "Property or method \"" + key + "\" is not defined on the instance but " +
  6730. 'referenced during render. Make sure that this property is reactive, ' +
  6731. 'either in the data option, or for class-based components, by ' +
  6732. 'initializing the property. ' +
  6733. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  6734. target
  6735. );
  6736. };
  6737. var warnReservedPrefix = function (target, key) {
  6738. warn(
  6739. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  6740. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  6741. 'prevent conflicts with Vue internals. ' +
  6742. 'See: https://vuejs.org/v2/api/#data',
  6743. target
  6744. );
  6745. };
  6746. var hasProxy =
  6747. typeof Proxy !== 'undefined' && isNative(Proxy);
  6748. if (hasProxy) {
  6749. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  6750. config.keyCodes = new Proxy(config.keyCodes, {
  6751. set: function set (target, key, value) {
  6752. if (isBuiltInModifier(key)) {
  6753. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  6754. return false
  6755. } else {
  6756. target[key] = value;
  6757. return true
  6758. }
  6759. }
  6760. });
  6761. }
  6762. var hasHandler = {
  6763. has: function has (target, key) {
  6764. var has = key in target;
  6765. var isAllowed = allowedGlobals(key) ||
  6766. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  6767. if (!has && !isAllowed) {
  6768. if (key in target.$data) { warnReservedPrefix(target, key); }
  6769. else { warnNonPresent(target, key); }
  6770. }
  6771. return has || !isAllowed
  6772. }
  6773. };
  6774. var getHandler = {
  6775. get: function get (target, key) {
  6776. if (typeof key === 'string' && !(key in target)) {
  6777. if (key in target.$data) { warnReservedPrefix(target, key); }
  6778. else { warnNonPresent(target, key); }
  6779. }
  6780. return target[key]
  6781. }
  6782. };
  6783. initProxy = function initProxy (vm) {
  6784. if (hasProxy) {
  6785. // determine which proxy handler to use
  6786. var options = vm.$options;
  6787. var handlers = options.render && options.render._withStripped
  6788. ? getHandler
  6789. : hasHandler;
  6790. vm._renderProxy = new Proxy(vm, handlers);
  6791. } else {
  6792. vm._renderProxy = vm;
  6793. }
  6794. };
  6795. }
  6796. /* */
  6797. var seenObjects = new _Set();
  6798. /**
  6799. * Recursively traverse an object to evoke all converted
  6800. * getters, so that every nested property inside the object
  6801. * is collected as a "deep" dependency.
  6802. */
  6803. function traverse (val) {
  6804. _traverse(val, seenObjects);
  6805. seenObjects.clear();
  6806. }
  6807. function _traverse (val, seen) {
  6808. var i, keys;
  6809. var isA = Array.isArray(val);
  6810. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  6811. return
  6812. }
  6813. if (val.__ob__) {
  6814. var depId = val.__ob__.dep.id;
  6815. if (seen.has(depId)) {
  6816. return
  6817. }
  6818. seen.add(depId);
  6819. }
  6820. if (isA) {
  6821. i = val.length;
  6822. while (i--) { _traverse(val[i], seen); }
  6823. } else {
  6824. keys = Object.keys(val);
  6825. i = keys.length;
  6826. while (i--) { _traverse(val[keys[i]], seen); }
  6827. }
  6828. }
  6829. var mark;
  6830. var measure;
  6831. if (true) {
  6832. var perf = inBrowser && window.performance;
  6833. /* istanbul ignore if */
  6834. if (
  6835. perf &&
  6836. perf.mark &&
  6837. perf.measure &&
  6838. perf.clearMarks &&
  6839. perf.clearMeasures
  6840. ) {
  6841. mark = function (tag) { return perf.mark(tag); };
  6842. measure = function (name, startTag, endTag) {
  6843. perf.measure(name, startTag, endTag);
  6844. perf.clearMarks(startTag);
  6845. perf.clearMarks(endTag);
  6846. // perf.clearMeasures(name)
  6847. };
  6848. }
  6849. }
  6850. /* */
  6851. var normalizeEvent = cached(function (name) {
  6852. var passive = name.charAt(0) === '&';
  6853. name = passive ? name.slice(1) : name;
  6854. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  6855. name = once$$1 ? name.slice(1) : name;
  6856. var capture = name.charAt(0) === '!';
  6857. name = capture ? name.slice(1) : name;
  6858. return {
  6859. name: name,
  6860. once: once$$1,
  6861. capture: capture,
  6862. passive: passive
  6863. }
  6864. });
  6865. function createFnInvoker (fns, vm) {
  6866. function invoker () {
  6867. var arguments$1 = arguments;
  6868. var fns = invoker.fns;
  6869. if (Array.isArray(fns)) {
  6870. var cloned = fns.slice();
  6871. for (var i = 0; i < cloned.length; i++) {
  6872. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  6873. }
  6874. } else {
  6875. // return handler return value for single handlers
  6876. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  6877. }
  6878. }
  6879. invoker.fns = fns;
  6880. return invoker
  6881. }
  6882. function updateListeners (
  6883. on,
  6884. oldOn,
  6885. add,
  6886. remove$$1,
  6887. createOnceHandler,
  6888. vm
  6889. ) {
  6890. var name, def$$1, cur, old, event;
  6891. for (name in on) {
  6892. def$$1 = cur = on[name];
  6893. old = oldOn[name];
  6894. event = normalizeEvent(name);
  6895. if (isUndef(cur)) {
  6896. true && warn(
  6897. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  6898. vm
  6899. );
  6900. } else if (isUndef(old)) {
  6901. if (isUndef(cur.fns)) {
  6902. cur = on[name] = createFnInvoker(cur, vm);
  6903. }
  6904. if (isTrue(event.once)) {
  6905. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  6906. }
  6907. add(event.name, cur, event.capture, event.passive, event.params);
  6908. } else if (cur !== old) {
  6909. old.fns = cur;
  6910. on[name] = old;
  6911. }
  6912. }
  6913. for (name in oldOn) {
  6914. if (isUndef(on[name])) {
  6915. event = normalizeEvent(name);
  6916. remove$$1(event.name, oldOn[name], event.capture);
  6917. }
  6918. }
  6919. }
  6920. /* */
  6921. /* */
  6922. // fixed by xxxxxx (mp properties)
  6923. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  6924. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  6925. if (isUndef(propOptions)) {
  6926. return res
  6927. }
  6928. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  6929. var attrs = data.attrs;
  6930. var props = data.props;
  6931. if (isDef(attrs) || isDef(props)) {
  6932. for (var key in propOptions) {
  6933. var altKey = hyphenate(key);
  6934. var result = checkProp(res, props, key, altKey, true) ||
  6935. checkProp(res, attrs, key, altKey, false);
  6936. // externalClass
  6937. if (
  6938. result &&
  6939. res[key] &&
  6940. externalClasses.indexOf(altKey) !== -1 &&
  6941. context[camelize(res[key])]
  6942. ) {
  6943. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  6944. res[key] = context[camelize(res[key])];
  6945. }
  6946. }
  6947. }
  6948. return res
  6949. }
  6950. function extractPropsFromVNodeData (
  6951. data,
  6952. Ctor,
  6953. tag,
  6954. context// fixed by xxxxxx
  6955. ) {
  6956. // we are only extracting raw values here.
  6957. // validation and default values are handled in the child
  6958. // component itself.
  6959. var propOptions = Ctor.options.props;
  6960. if (isUndef(propOptions)) {
  6961. // fixed by xxxxxx
  6962. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  6963. }
  6964. var res = {};
  6965. var attrs = data.attrs;
  6966. var props = data.props;
  6967. if (isDef(attrs) || isDef(props)) {
  6968. for (var key in propOptions) {
  6969. var altKey = hyphenate(key);
  6970. if (true) {
  6971. var keyInLowerCase = key.toLowerCase();
  6972. if (
  6973. key !== keyInLowerCase &&
  6974. attrs && hasOwn(attrs, keyInLowerCase)
  6975. ) {
  6976. tip(
  6977. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  6978. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  6979. " \"" + key + "\". " +
  6980. "Note that HTML attributes are case-insensitive and camelCased " +
  6981. "props need to use their kebab-case equivalents when using in-DOM " +
  6982. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  6983. );
  6984. }
  6985. }
  6986. checkProp(res, props, key, altKey, true) ||
  6987. checkProp(res, attrs, key, altKey, false);
  6988. }
  6989. }
  6990. // fixed by xxxxxx
  6991. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  6992. }
  6993. function checkProp (
  6994. res,
  6995. hash,
  6996. key,
  6997. altKey,
  6998. preserve
  6999. ) {
  7000. if (isDef(hash)) {
  7001. if (hasOwn(hash, key)) {
  7002. res[key] = hash[key];
  7003. if (!preserve) {
  7004. delete hash[key];
  7005. }
  7006. return true
  7007. } else if (hasOwn(hash, altKey)) {
  7008. res[key] = hash[altKey];
  7009. if (!preserve) {
  7010. delete hash[altKey];
  7011. }
  7012. return true
  7013. }
  7014. }
  7015. return false
  7016. }
  7017. /* */
  7018. // The template compiler attempts to minimize the need for normalization by
  7019. // statically analyzing the template at compile time.
  7020. //
  7021. // For plain HTML markup, normalization can be completely skipped because the
  7022. // generated render function is guaranteed to return Array<VNode>. There are
  7023. // two cases where extra normalization is needed:
  7024. // 1. When the children contains components - because a functional component
  7025. // may return an Array instead of a single root. In this case, just a simple
  7026. // normalization is needed - if any child is an Array, we flatten the whole
  7027. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  7028. // because functional components already normalize their own children.
  7029. function simpleNormalizeChildren (children) {
  7030. for (var i = 0; i < children.length; i++) {
  7031. if (Array.isArray(children[i])) {
  7032. return Array.prototype.concat.apply([], children)
  7033. }
  7034. }
  7035. return children
  7036. }
  7037. // 2. When the children contains constructs that always generated nested Arrays,
  7038. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  7039. // with hand-written render functions / JSX. In such cases a full normalization
  7040. // is needed to cater to all possible types of children values.
  7041. function normalizeChildren (children) {
  7042. return isPrimitive(children)
  7043. ? [createTextVNode(children)]
  7044. : Array.isArray(children)
  7045. ? normalizeArrayChildren(children)
  7046. : undefined
  7047. }
  7048. function isTextNode (node) {
  7049. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  7050. }
  7051. function normalizeArrayChildren (children, nestedIndex) {
  7052. var res = [];
  7053. var i, c, lastIndex, last;
  7054. for (i = 0; i < children.length; i++) {
  7055. c = children[i];
  7056. if (isUndef(c) || typeof c === 'boolean') { continue }
  7057. lastIndex = res.length - 1;
  7058. last = res[lastIndex];
  7059. // nested
  7060. if (Array.isArray(c)) {
  7061. if (c.length > 0) {
  7062. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  7063. // merge adjacent text nodes
  7064. if (isTextNode(c[0]) && isTextNode(last)) {
  7065. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  7066. c.shift();
  7067. }
  7068. res.push.apply(res, c);
  7069. }
  7070. } else if (isPrimitive(c)) {
  7071. if (isTextNode(last)) {
  7072. // merge adjacent text nodes
  7073. // this is necessary for SSR hydration because text nodes are
  7074. // essentially merged when rendered to HTML strings
  7075. res[lastIndex] = createTextVNode(last.text + c);
  7076. } else if (c !== '') {
  7077. // convert primitive to vnode
  7078. res.push(createTextVNode(c));
  7079. }
  7080. } else {
  7081. if (isTextNode(c) && isTextNode(last)) {
  7082. // merge adjacent text nodes
  7083. res[lastIndex] = createTextVNode(last.text + c.text);
  7084. } else {
  7085. // default key for nested array children (likely generated by v-for)
  7086. if (isTrue(children._isVList) &&
  7087. isDef(c.tag) &&
  7088. isUndef(c.key) &&
  7089. isDef(nestedIndex)) {
  7090. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  7091. }
  7092. res.push(c);
  7093. }
  7094. }
  7095. }
  7096. return res
  7097. }
  7098. /* */
  7099. function initProvide (vm) {
  7100. var provide = vm.$options.provide;
  7101. if (provide) {
  7102. vm._provided = typeof provide === 'function'
  7103. ? provide.call(vm)
  7104. : provide;
  7105. }
  7106. }
  7107. function initInjections (vm) {
  7108. var result = resolveInject(vm.$options.inject, vm);
  7109. if (result) {
  7110. toggleObserving(false);
  7111. Object.keys(result).forEach(function (key) {
  7112. /* istanbul ignore else */
  7113. if (true) {
  7114. defineReactive$$1(vm, key, result[key], function () {
  7115. warn(
  7116. "Avoid mutating an injected value directly since the changes will be " +
  7117. "overwritten whenever the provided component re-renders. " +
  7118. "injection being mutated: \"" + key + "\"",
  7119. vm
  7120. );
  7121. });
  7122. } else {}
  7123. });
  7124. toggleObserving(true);
  7125. }
  7126. }
  7127. function resolveInject (inject, vm) {
  7128. if (inject) {
  7129. // inject is :any because flow is not smart enough to figure out cached
  7130. var result = Object.create(null);
  7131. var keys = hasSymbol
  7132. ? Reflect.ownKeys(inject)
  7133. : Object.keys(inject);
  7134. for (var i = 0; i < keys.length; i++) {
  7135. var key = keys[i];
  7136. // #6574 in case the inject object is observed...
  7137. if (key === '__ob__') { continue }
  7138. var provideKey = inject[key].from;
  7139. var source = vm;
  7140. while (source) {
  7141. if (source._provided && hasOwn(source._provided, provideKey)) {
  7142. result[key] = source._provided[provideKey];
  7143. break
  7144. }
  7145. source = source.$parent;
  7146. }
  7147. if (!source) {
  7148. if ('default' in inject[key]) {
  7149. var provideDefault = inject[key].default;
  7150. result[key] = typeof provideDefault === 'function'
  7151. ? provideDefault.call(vm)
  7152. : provideDefault;
  7153. } else if (true) {
  7154. warn(("Injection \"" + key + "\" not found"), vm);
  7155. }
  7156. }
  7157. }
  7158. return result
  7159. }
  7160. }
  7161. /* */
  7162. /**
  7163. * Runtime helper for resolving raw children VNodes into a slot object.
  7164. */
  7165. function resolveSlots (
  7166. children,
  7167. context
  7168. ) {
  7169. if (!children || !children.length) {
  7170. return {}
  7171. }
  7172. var slots = {};
  7173. for (var i = 0, l = children.length; i < l; i++) {
  7174. var child = children[i];
  7175. var data = child.data;
  7176. // remove slot attribute if the node is resolved as a Vue slot node
  7177. if (data && data.attrs && data.attrs.slot) {
  7178. delete data.attrs.slot;
  7179. }
  7180. // named slots should only be respected if the vnode was rendered in the
  7181. // same context.
  7182. if ((child.context === context || child.fnContext === context) &&
  7183. data && data.slot != null
  7184. ) {
  7185. var name = data.slot;
  7186. var slot = (slots[name] || (slots[name] = []));
  7187. if (child.tag === 'template') {
  7188. slot.push.apply(slot, child.children || []);
  7189. } else {
  7190. slot.push(child);
  7191. }
  7192. } else {
  7193. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  7194. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  7195. (slots['page'] || (slots['page'] = [])).push(child);
  7196. }else{
  7197. (slots.default || (slots.default = [])).push(child);
  7198. }
  7199. }
  7200. }
  7201. // ignore slots that contains only whitespace
  7202. for (var name$1 in slots) {
  7203. if (slots[name$1].every(isWhitespace)) {
  7204. delete slots[name$1];
  7205. }
  7206. }
  7207. return slots
  7208. }
  7209. function isWhitespace (node) {
  7210. return (node.isComment && !node.asyncFactory) || node.text === ' '
  7211. }
  7212. /* */
  7213. function normalizeScopedSlots (
  7214. slots,
  7215. normalSlots,
  7216. prevSlots
  7217. ) {
  7218. var res;
  7219. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  7220. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  7221. var key = slots && slots.$key;
  7222. if (!slots) {
  7223. res = {};
  7224. } else if (slots._normalized) {
  7225. // fast path 1: child component re-render only, parent did not change
  7226. return slots._normalized
  7227. } else if (
  7228. isStable &&
  7229. prevSlots &&
  7230. prevSlots !== emptyObject &&
  7231. key === prevSlots.$key &&
  7232. !hasNormalSlots &&
  7233. !prevSlots.$hasNormal
  7234. ) {
  7235. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  7236. // only need to normalize once
  7237. return prevSlots
  7238. } else {
  7239. res = {};
  7240. for (var key$1 in slots) {
  7241. if (slots[key$1] && key$1[0] !== '$') {
  7242. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  7243. }
  7244. }
  7245. }
  7246. // expose normal slots on scopedSlots
  7247. for (var key$2 in normalSlots) {
  7248. if (!(key$2 in res)) {
  7249. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  7250. }
  7251. }
  7252. // avoriaz seems to mock a non-extensible $scopedSlots object
  7253. // and when that is passed down this would cause an error
  7254. if (slots && Object.isExtensible(slots)) {
  7255. (slots)._normalized = res;
  7256. }
  7257. def(res, '$stable', isStable);
  7258. def(res, '$key', key);
  7259. def(res, '$hasNormal', hasNormalSlots);
  7260. return res
  7261. }
  7262. function normalizeScopedSlot(normalSlots, key, fn) {
  7263. var normalized = function () {
  7264. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  7265. res = res && typeof res === 'object' && !Array.isArray(res)
  7266. ? [res] // single vnode
  7267. : normalizeChildren(res);
  7268. return res && (
  7269. res.length === 0 ||
  7270. (res.length === 1 && res[0].isComment) // #9658
  7271. ) ? undefined
  7272. : res
  7273. };
  7274. // this is a slot using the new v-slot syntax without scope. although it is
  7275. // compiled as a scoped slot, render fn users would expect it to be present
  7276. // on this.$slots because the usage is semantically a normal slot.
  7277. if (fn.proxy) {
  7278. Object.defineProperty(normalSlots, key, {
  7279. get: normalized,
  7280. enumerable: true,
  7281. configurable: true
  7282. });
  7283. }
  7284. return normalized
  7285. }
  7286. function proxyNormalSlot(slots, key) {
  7287. return function () { return slots[key]; }
  7288. }
  7289. /* */
  7290. /**
  7291. * Runtime helper for rendering v-for lists.
  7292. */
  7293. function renderList (
  7294. val,
  7295. render
  7296. ) {
  7297. var ret, i, l, keys, key;
  7298. if (Array.isArray(val) || typeof val === 'string') {
  7299. ret = new Array(val.length);
  7300. for (i = 0, l = val.length; i < l; i++) {
  7301. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  7302. }
  7303. } else if (typeof val === 'number') {
  7304. ret = new Array(val);
  7305. for (i = 0; i < val; i++) {
  7306. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  7307. }
  7308. } else if (isObject(val)) {
  7309. if (hasSymbol && val[Symbol.iterator]) {
  7310. ret = [];
  7311. var iterator = val[Symbol.iterator]();
  7312. var result = iterator.next();
  7313. while (!result.done) {
  7314. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  7315. result = iterator.next();
  7316. }
  7317. } else {
  7318. keys = Object.keys(val);
  7319. ret = new Array(keys.length);
  7320. for (i = 0, l = keys.length; i < l; i++) {
  7321. key = keys[i];
  7322. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  7323. }
  7324. }
  7325. }
  7326. if (!isDef(ret)) {
  7327. ret = [];
  7328. }
  7329. (ret)._isVList = true;
  7330. return ret
  7331. }
  7332. /* */
  7333. /**
  7334. * Runtime helper for rendering <slot>
  7335. */
  7336. function renderSlot (
  7337. name,
  7338. fallback,
  7339. props,
  7340. bindObject
  7341. ) {
  7342. var scopedSlotFn = this.$scopedSlots[name];
  7343. var nodes;
  7344. if (scopedSlotFn) { // scoped slot
  7345. props = props || {};
  7346. if (bindObject) {
  7347. if ( true && !isObject(bindObject)) {
  7348. warn(
  7349. 'slot v-bind without argument expects an Object',
  7350. this
  7351. );
  7352. }
  7353. props = extend(extend({}, bindObject), props);
  7354. }
  7355. // fixed by xxxxxx app-plus scopedSlot
  7356. nodes = scopedSlotFn(props, this, props._i) || fallback;
  7357. } else {
  7358. nodes = this.$slots[name] || fallback;
  7359. }
  7360. var target = props && props.slot;
  7361. if (target) {
  7362. return this.$createElement('template', { slot: target }, nodes)
  7363. } else {
  7364. return nodes
  7365. }
  7366. }
  7367. /* */
  7368. /**
  7369. * Runtime helper for resolving filters
  7370. */
  7371. function resolveFilter (id) {
  7372. return resolveAsset(this.$options, 'filters', id, true) || identity
  7373. }
  7374. /* */
  7375. function isKeyNotMatch (expect, actual) {
  7376. if (Array.isArray(expect)) {
  7377. return expect.indexOf(actual) === -1
  7378. } else {
  7379. return expect !== actual
  7380. }
  7381. }
  7382. /**
  7383. * Runtime helper for checking keyCodes from config.
  7384. * exposed as Vue.prototype._k
  7385. * passing in eventKeyName as last argument separately for backwards compat
  7386. */
  7387. function checkKeyCodes (
  7388. eventKeyCode,
  7389. key,
  7390. builtInKeyCode,
  7391. eventKeyName,
  7392. builtInKeyName
  7393. ) {
  7394. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  7395. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  7396. return isKeyNotMatch(builtInKeyName, eventKeyName)
  7397. } else if (mappedKeyCode) {
  7398. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  7399. } else if (eventKeyName) {
  7400. return hyphenate(eventKeyName) !== key
  7401. }
  7402. }
  7403. /* */
  7404. /**
  7405. * Runtime helper for merging v-bind="object" into a VNode's data.
  7406. */
  7407. function bindObjectProps (
  7408. data,
  7409. tag,
  7410. value,
  7411. asProp,
  7412. isSync
  7413. ) {
  7414. if (value) {
  7415. if (!isObject(value)) {
  7416. true && warn(
  7417. 'v-bind without argument expects an Object or Array value',
  7418. this
  7419. );
  7420. } else {
  7421. if (Array.isArray(value)) {
  7422. value = toObject(value);
  7423. }
  7424. var hash;
  7425. var loop = function ( key ) {
  7426. if (
  7427. key === 'class' ||
  7428. key === 'style' ||
  7429. isReservedAttribute(key)
  7430. ) {
  7431. hash = data;
  7432. } else {
  7433. var type = data.attrs && data.attrs.type;
  7434. hash = asProp || config.mustUseProp(tag, type, key)
  7435. ? data.domProps || (data.domProps = {})
  7436. : data.attrs || (data.attrs = {});
  7437. }
  7438. var camelizedKey = camelize(key);
  7439. var hyphenatedKey = hyphenate(key);
  7440. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  7441. hash[key] = value[key];
  7442. if (isSync) {
  7443. var on = data.on || (data.on = {});
  7444. on[("update:" + key)] = function ($event) {
  7445. value[key] = $event;
  7446. };
  7447. }
  7448. }
  7449. };
  7450. for (var key in value) loop( key );
  7451. }
  7452. }
  7453. return data
  7454. }
  7455. /* */
  7456. /**
  7457. * Runtime helper for rendering static trees.
  7458. */
  7459. function renderStatic (
  7460. index,
  7461. isInFor
  7462. ) {
  7463. var cached = this._staticTrees || (this._staticTrees = []);
  7464. var tree = cached[index];
  7465. // if has already-rendered static tree and not inside v-for,
  7466. // we can reuse the same tree.
  7467. if (tree && !isInFor) {
  7468. return tree
  7469. }
  7470. // otherwise, render a fresh tree.
  7471. tree = cached[index] = this.$options.staticRenderFns[index].call(
  7472. this._renderProxy,
  7473. null,
  7474. this // for render fns generated for functional component templates
  7475. );
  7476. markStatic(tree, ("__static__" + index), false);
  7477. return tree
  7478. }
  7479. /**
  7480. * Runtime helper for v-once.
  7481. * Effectively it means marking the node as static with a unique key.
  7482. */
  7483. function markOnce (
  7484. tree,
  7485. index,
  7486. key
  7487. ) {
  7488. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  7489. return tree
  7490. }
  7491. function markStatic (
  7492. tree,
  7493. key,
  7494. isOnce
  7495. ) {
  7496. if (Array.isArray(tree)) {
  7497. for (var i = 0; i < tree.length; i++) {
  7498. if (tree[i] && typeof tree[i] !== 'string') {
  7499. markStaticNode(tree[i], (key + "_" + i), isOnce);
  7500. }
  7501. }
  7502. } else {
  7503. markStaticNode(tree, key, isOnce);
  7504. }
  7505. }
  7506. function markStaticNode (node, key, isOnce) {
  7507. node.isStatic = true;
  7508. node.key = key;
  7509. node.isOnce = isOnce;
  7510. }
  7511. /* */
  7512. function bindObjectListeners (data, value) {
  7513. if (value) {
  7514. if (!isPlainObject(value)) {
  7515. true && warn(
  7516. 'v-on without argument expects an Object value',
  7517. this
  7518. );
  7519. } else {
  7520. var on = data.on = data.on ? extend({}, data.on) : {};
  7521. for (var key in value) {
  7522. var existing = on[key];
  7523. var ours = value[key];
  7524. on[key] = existing ? [].concat(existing, ours) : ours;
  7525. }
  7526. }
  7527. }
  7528. return data
  7529. }
  7530. /* */
  7531. function resolveScopedSlots (
  7532. fns, // see flow/vnode
  7533. res,
  7534. // the following are added in 2.6
  7535. hasDynamicKeys,
  7536. contentHashKey
  7537. ) {
  7538. res = res || { $stable: !hasDynamicKeys };
  7539. for (var i = 0; i < fns.length; i++) {
  7540. var slot = fns[i];
  7541. if (Array.isArray(slot)) {
  7542. resolveScopedSlots(slot, res, hasDynamicKeys);
  7543. } else if (slot) {
  7544. // marker for reverse proxying v-slot without scope on this.$slots
  7545. if (slot.proxy) {
  7546. slot.fn.proxy = true;
  7547. }
  7548. res[slot.key] = slot.fn;
  7549. }
  7550. }
  7551. if (contentHashKey) {
  7552. (res).$key = contentHashKey;
  7553. }
  7554. return res
  7555. }
  7556. /* */
  7557. function bindDynamicKeys (baseObj, values) {
  7558. for (var i = 0; i < values.length; i += 2) {
  7559. var key = values[i];
  7560. if (typeof key === 'string' && key) {
  7561. baseObj[values[i]] = values[i + 1];
  7562. } else if ( true && key !== '' && key !== null) {
  7563. // null is a special value for explicitly removing a binding
  7564. warn(
  7565. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  7566. this
  7567. );
  7568. }
  7569. }
  7570. return baseObj
  7571. }
  7572. // helper to dynamically append modifier runtime markers to event names.
  7573. // ensure only append when value is already string, otherwise it will be cast
  7574. // to string and cause the type check to miss.
  7575. function prependModifier (value, symbol) {
  7576. return typeof value === 'string' ? symbol + value : value
  7577. }
  7578. /* */
  7579. function installRenderHelpers (target) {
  7580. target._o = markOnce;
  7581. target._n = toNumber;
  7582. target._s = toString;
  7583. target._l = renderList;
  7584. target._t = renderSlot;
  7585. target._q = looseEqual;
  7586. target._i = looseIndexOf;
  7587. target._m = renderStatic;
  7588. target._f = resolveFilter;
  7589. target._k = checkKeyCodes;
  7590. target._b = bindObjectProps;
  7591. target._v = createTextVNode;
  7592. target._e = createEmptyVNode;
  7593. target._u = resolveScopedSlots;
  7594. target._g = bindObjectListeners;
  7595. target._d = bindDynamicKeys;
  7596. target._p = prependModifier;
  7597. }
  7598. /* */
  7599. function FunctionalRenderContext (
  7600. data,
  7601. props,
  7602. children,
  7603. parent,
  7604. Ctor
  7605. ) {
  7606. var this$1 = this;
  7607. var options = Ctor.options;
  7608. // ensure the createElement function in functional components
  7609. // gets a unique context - this is necessary for correct named slot check
  7610. var contextVm;
  7611. if (hasOwn(parent, '_uid')) {
  7612. contextVm = Object.create(parent);
  7613. // $flow-disable-line
  7614. contextVm._original = parent;
  7615. } else {
  7616. // the context vm passed in is a functional context as well.
  7617. // in this case we want to make sure we are able to get a hold to the
  7618. // real context instance.
  7619. contextVm = parent;
  7620. // $flow-disable-line
  7621. parent = parent._original;
  7622. }
  7623. var isCompiled = isTrue(options._compiled);
  7624. var needNormalization = !isCompiled;
  7625. this.data = data;
  7626. this.props = props;
  7627. this.children = children;
  7628. this.parent = parent;
  7629. this.listeners = data.on || emptyObject;
  7630. this.injections = resolveInject(options.inject, parent);
  7631. this.slots = function () {
  7632. if (!this$1.$slots) {
  7633. normalizeScopedSlots(
  7634. data.scopedSlots,
  7635. this$1.$slots = resolveSlots(children, parent)
  7636. );
  7637. }
  7638. return this$1.$slots
  7639. };
  7640. Object.defineProperty(this, 'scopedSlots', ({
  7641. enumerable: true,
  7642. get: function get () {
  7643. return normalizeScopedSlots(data.scopedSlots, this.slots())
  7644. }
  7645. }));
  7646. // support for compiled functional template
  7647. if (isCompiled) {
  7648. // exposing $options for renderStatic()
  7649. this.$options = options;
  7650. // pre-resolve slots for renderSlot()
  7651. this.$slots = this.slots();
  7652. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  7653. }
  7654. if (options._scopeId) {
  7655. this._c = function (a, b, c, d) {
  7656. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  7657. if (vnode && !Array.isArray(vnode)) {
  7658. vnode.fnScopeId = options._scopeId;
  7659. vnode.fnContext = parent;
  7660. }
  7661. return vnode
  7662. };
  7663. } else {
  7664. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  7665. }
  7666. }
  7667. installRenderHelpers(FunctionalRenderContext.prototype);
  7668. function createFunctionalComponent (
  7669. Ctor,
  7670. propsData,
  7671. data,
  7672. contextVm,
  7673. children
  7674. ) {
  7675. var options = Ctor.options;
  7676. var props = {};
  7677. var propOptions = options.props;
  7678. if (isDef(propOptions)) {
  7679. for (var key in propOptions) {
  7680. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  7681. }
  7682. } else {
  7683. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  7684. if (isDef(data.props)) { mergeProps(props, data.props); }
  7685. }
  7686. var renderContext = new FunctionalRenderContext(
  7687. data,
  7688. props,
  7689. children,
  7690. contextVm,
  7691. Ctor
  7692. );
  7693. var vnode = options.render.call(null, renderContext._c, renderContext);
  7694. if (vnode instanceof VNode) {
  7695. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  7696. } else if (Array.isArray(vnode)) {
  7697. var vnodes = normalizeChildren(vnode) || [];
  7698. var res = new Array(vnodes.length);
  7699. for (var i = 0; i < vnodes.length; i++) {
  7700. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  7701. }
  7702. return res
  7703. }
  7704. }
  7705. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  7706. // #7817 clone node before setting fnContext, otherwise if the node is reused
  7707. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  7708. // that should not be matched to match.
  7709. var clone = cloneVNode(vnode);
  7710. clone.fnContext = contextVm;
  7711. clone.fnOptions = options;
  7712. if (true) {
  7713. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  7714. }
  7715. if (data.slot) {
  7716. (clone.data || (clone.data = {})).slot = data.slot;
  7717. }
  7718. return clone
  7719. }
  7720. function mergeProps (to, from) {
  7721. for (var key in from) {
  7722. to[camelize(key)] = from[key];
  7723. }
  7724. }
  7725. /* */
  7726. /* */
  7727. /* */
  7728. /* */
  7729. // inline hooks to be invoked on component VNodes during patch
  7730. var componentVNodeHooks = {
  7731. init: function init (vnode, hydrating) {
  7732. if (
  7733. vnode.componentInstance &&
  7734. !vnode.componentInstance._isDestroyed &&
  7735. vnode.data.keepAlive
  7736. ) {
  7737. // kept-alive components, treat as a patch
  7738. var mountedNode = vnode; // work around flow
  7739. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  7740. } else {
  7741. var child = vnode.componentInstance = createComponentInstanceForVnode(
  7742. vnode,
  7743. activeInstance
  7744. );
  7745. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  7746. }
  7747. },
  7748. prepatch: function prepatch (oldVnode, vnode) {
  7749. var options = vnode.componentOptions;
  7750. var child = vnode.componentInstance = oldVnode.componentInstance;
  7751. updateChildComponent(
  7752. child,
  7753. options.propsData, // updated props
  7754. options.listeners, // updated listeners
  7755. vnode, // new parent vnode
  7756. options.children // new children
  7757. );
  7758. },
  7759. insert: function insert (vnode) {
  7760. var context = vnode.context;
  7761. var componentInstance = vnode.componentInstance;
  7762. if (!componentInstance._isMounted) {
  7763. callHook(componentInstance, 'onServiceCreated');
  7764. callHook(componentInstance, 'onServiceAttached');
  7765. componentInstance._isMounted = true;
  7766. callHook(componentInstance, 'mounted');
  7767. }
  7768. if (vnode.data.keepAlive) {
  7769. if (context._isMounted) {
  7770. // vue-router#1212
  7771. // During updates, a kept-alive component's child components may
  7772. // change, so directly walking the tree here may call activated hooks
  7773. // on incorrect children. Instead we push them into a queue which will
  7774. // be processed after the whole patch process ended.
  7775. queueActivatedComponent(componentInstance);
  7776. } else {
  7777. activateChildComponent(componentInstance, true /* direct */);
  7778. }
  7779. }
  7780. },
  7781. destroy: function destroy (vnode) {
  7782. var componentInstance = vnode.componentInstance;
  7783. if (!componentInstance._isDestroyed) {
  7784. if (!vnode.data.keepAlive) {
  7785. componentInstance.$destroy();
  7786. } else {
  7787. deactivateChildComponent(componentInstance, true /* direct */);
  7788. }
  7789. }
  7790. }
  7791. };
  7792. var hooksToMerge = Object.keys(componentVNodeHooks);
  7793. function createComponent (
  7794. Ctor,
  7795. data,
  7796. context,
  7797. children,
  7798. tag
  7799. ) {
  7800. if (isUndef(Ctor)) {
  7801. return
  7802. }
  7803. var baseCtor = context.$options._base;
  7804. // plain options object: turn it into a constructor
  7805. if (isObject(Ctor)) {
  7806. Ctor = baseCtor.extend(Ctor);
  7807. }
  7808. // if at this stage it's not a constructor or an async component factory,
  7809. // reject.
  7810. if (typeof Ctor !== 'function') {
  7811. if (true) {
  7812. warn(("Invalid Component definition: " + (String(Ctor))), context);
  7813. }
  7814. return
  7815. }
  7816. // async component
  7817. var asyncFactory;
  7818. if (isUndef(Ctor.cid)) {
  7819. asyncFactory = Ctor;
  7820. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  7821. if (Ctor === undefined) {
  7822. // return a placeholder node for async component, which is rendered
  7823. // as a comment node but preserves all the raw information for the node.
  7824. // the information will be used for async server-rendering and hydration.
  7825. return createAsyncPlaceholder(
  7826. asyncFactory,
  7827. data,
  7828. context,
  7829. children,
  7830. tag
  7831. )
  7832. }
  7833. }
  7834. data = data || {};
  7835. // resolve constructor options in case global mixins are applied after
  7836. // component constructor creation
  7837. resolveConstructorOptions(Ctor);
  7838. // transform component v-model data into props & events
  7839. if (isDef(data.model)) {
  7840. transformModel(Ctor.options, data);
  7841. }
  7842. // extract props
  7843. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  7844. // functional component
  7845. if (isTrue(Ctor.options.functional)) {
  7846. return createFunctionalComponent(Ctor, propsData, data, context, children)
  7847. }
  7848. // extract listeners, since these needs to be treated as
  7849. // child component listeners instead of DOM listeners
  7850. var listeners = data.on;
  7851. // replace with listeners with .native modifier
  7852. // so it gets processed during parent component patch.
  7853. data.on = data.nativeOn;
  7854. if (isTrue(Ctor.options.abstract)) {
  7855. // abstract components do not keep anything
  7856. // other than props & listeners & slot
  7857. // work around flow
  7858. var slot = data.slot;
  7859. data = {};
  7860. if (slot) {
  7861. data.slot = slot;
  7862. }
  7863. }
  7864. // install component management hooks onto the placeholder node
  7865. installComponentHooks(data);
  7866. // return a placeholder vnode
  7867. var name = Ctor.options.name || tag;
  7868. var vnode = new VNode(
  7869. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  7870. data, undefined, undefined, undefined, context,
  7871. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  7872. asyncFactory
  7873. );
  7874. return vnode
  7875. }
  7876. function createComponentInstanceForVnode (
  7877. vnode, // we know it's MountedComponentVNode but flow doesn't
  7878. parent // activeInstance in lifecycle state
  7879. ) {
  7880. var options = {
  7881. _isComponent: true,
  7882. _parentVnode: vnode,
  7883. parent: parent
  7884. };
  7885. // check inline-template render functions
  7886. var inlineTemplate = vnode.data.inlineTemplate;
  7887. if (isDef(inlineTemplate)) {
  7888. options.render = inlineTemplate.render;
  7889. options.staticRenderFns = inlineTemplate.staticRenderFns;
  7890. }
  7891. return new vnode.componentOptions.Ctor(options)
  7892. }
  7893. function installComponentHooks (data) {
  7894. var hooks = data.hook || (data.hook = {});
  7895. for (var i = 0; i < hooksToMerge.length; i++) {
  7896. var key = hooksToMerge[i];
  7897. var existing = hooks[key];
  7898. var toMerge = componentVNodeHooks[key];
  7899. if (existing !== toMerge && !(existing && existing._merged)) {
  7900. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  7901. }
  7902. }
  7903. }
  7904. function mergeHook$1 (f1, f2) {
  7905. var merged = function (a, b) {
  7906. // flow complains about extra args which is why we use any
  7907. f1(a, b);
  7908. f2(a, b);
  7909. };
  7910. merged._merged = true;
  7911. return merged
  7912. }
  7913. // transform component v-model info (value and callback) into
  7914. // prop and event handler respectively.
  7915. function transformModel (options, data) {
  7916. var prop = (options.model && options.model.prop) || 'value';
  7917. var event = (options.model && options.model.event) || 'input'
  7918. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  7919. var on = data.on || (data.on = {});
  7920. var existing = on[event];
  7921. var callback = data.model.callback;
  7922. if (isDef(existing)) {
  7923. if (
  7924. Array.isArray(existing)
  7925. ? existing.indexOf(callback) === -1
  7926. : existing !== callback
  7927. ) {
  7928. on[event] = [callback].concat(existing);
  7929. }
  7930. } else {
  7931. on[event] = callback;
  7932. }
  7933. }
  7934. /* */
  7935. var SIMPLE_NORMALIZE = 1;
  7936. var ALWAYS_NORMALIZE = 2;
  7937. // wrapper function for providing a more flexible interface
  7938. // without getting yelled at by flow
  7939. function createElement (
  7940. context,
  7941. tag,
  7942. data,
  7943. children,
  7944. normalizationType,
  7945. alwaysNormalize
  7946. ) {
  7947. if (Array.isArray(data) || isPrimitive(data)) {
  7948. normalizationType = children;
  7949. children = data;
  7950. data = undefined;
  7951. }
  7952. if (isTrue(alwaysNormalize)) {
  7953. normalizationType = ALWAYS_NORMALIZE;
  7954. }
  7955. return _createElement(context, tag, data, children, normalizationType)
  7956. }
  7957. function _createElement (
  7958. context,
  7959. tag,
  7960. data,
  7961. children,
  7962. normalizationType
  7963. ) {
  7964. if (isDef(data) && isDef((data).__ob__)) {
  7965. true && warn(
  7966. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  7967. 'Always create fresh vnode data objects in each render!',
  7968. context
  7969. );
  7970. return createEmptyVNode()
  7971. }
  7972. // object syntax in v-bind
  7973. if (isDef(data) && isDef(data.is)) {
  7974. tag = data.is;
  7975. }
  7976. if (!tag) {
  7977. // in case of component :is set to falsy value
  7978. return createEmptyVNode()
  7979. }
  7980. // warn against non-primitive key
  7981. if ( true &&
  7982. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  7983. ) {
  7984. {
  7985. warn(
  7986. 'Avoid using non-primitive value as key, ' +
  7987. 'use string/number value instead.',
  7988. context
  7989. );
  7990. }
  7991. }
  7992. // support single function children as default scoped slot
  7993. if (Array.isArray(children) &&
  7994. typeof children[0] === 'function'
  7995. ) {
  7996. data = data || {};
  7997. data.scopedSlots = { default: children[0] };
  7998. children.length = 0;
  7999. }
  8000. if (normalizationType === ALWAYS_NORMALIZE) {
  8001. children = normalizeChildren(children);
  8002. } else if (normalizationType === SIMPLE_NORMALIZE) {
  8003. children = simpleNormalizeChildren(children);
  8004. }
  8005. var vnode, ns;
  8006. if (typeof tag === 'string') {
  8007. var Ctor;
  8008. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  8009. if (config.isReservedTag(tag)) {
  8010. // platform built-in elements
  8011. if ( true && isDef(data) && isDef(data.nativeOn)) {
  8012. warn(
  8013. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  8014. context
  8015. );
  8016. }
  8017. vnode = new VNode(
  8018. config.parsePlatformTagName(tag), data, children,
  8019. undefined, undefined, context
  8020. );
  8021. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  8022. // component
  8023. vnode = createComponent(Ctor, data, context, children, tag);
  8024. } else {
  8025. // unknown or unlisted namespaced elements
  8026. // check at runtime because it may get assigned a namespace when its
  8027. // parent normalizes children
  8028. vnode = new VNode(
  8029. tag, data, children,
  8030. undefined, undefined, context
  8031. );
  8032. }
  8033. } else {
  8034. // direct component options / constructor
  8035. vnode = createComponent(tag, data, context, children);
  8036. }
  8037. if (Array.isArray(vnode)) {
  8038. return vnode
  8039. } else if (isDef(vnode)) {
  8040. if (isDef(ns)) { applyNS(vnode, ns); }
  8041. if (isDef(data)) { registerDeepBindings(data); }
  8042. return vnode
  8043. } else {
  8044. return createEmptyVNode()
  8045. }
  8046. }
  8047. function applyNS (vnode, ns, force) {
  8048. vnode.ns = ns;
  8049. if (vnode.tag === 'foreignObject') {
  8050. // use default namespace inside foreignObject
  8051. ns = undefined;
  8052. force = true;
  8053. }
  8054. if (isDef(vnode.children)) {
  8055. for (var i = 0, l = vnode.children.length; i < l; i++) {
  8056. var child = vnode.children[i];
  8057. if (isDef(child.tag) && (
  8058. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  8059. applyNS(child, ns, force);
  8060. }
  8061. }
  8062. }
  8063. }
  8064. // ref #5318
  8065. // necessary to ensure parent re-render when deep bindings like :style and
  8066. // :class are used on slot nodes
  8067. function registerDeepBindings (data) {
  8068. if (isObject(data.style)) {
  8069. traverse(data.style);
  8070. }
  8071. if (isObject(data.class)) {
  8072. traverse(data.class);
  8073. }
  8074. }
  8075. /* */
  8076. function initRender (vm) {
  8077. vm._vnode = null; // the root of the child tree
  8078. vm._staticTrees = null; // v-once cached trees
  8079. var options = vm.$options;
  8080. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  8081. var renderContext = parentVnode && parentVnode.context;
  8082. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  8083. vm.$scopedSlots = emptyObject;
  8084. // bind the createElement fn to this instance
  8085. // so that we get proper render context inside it.
  8086. // args order: tag, data, children, normalizationType, alwaysNormalize
  8087. // internal version is used by render functions compiled from templates
  8088. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  8089. // normalization is always applied for the public version, used in
  8090. // user-written render functions.
  8091. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  8092. // $attrs & $listeners are exposed for easier HOC creation.
  8093. // they need to be reactive so that HOCs using them are always updated
  8094. var parentData = parentVnode && parentVnode.data;
  8095. /* istanbul ignore else */
  8096. if (true) {
  8097. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  8098. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  8099. }, true);
  8100. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  8101. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  8102. }, true);
  8103. } else {}
  8104. }
  8105. var currentRenderingInstance = null;
  8106. function renderMixin (Vue) {
  8107. // install runtime convenience helpers
  8108. installRenderHelpers(Vue.prototype);
  8109. Vue.prototype.$nextTick = function (fn) {
  8110. return nextTick(fn, this)
  8111. };
  8112. Vue.prototype._render = function () {
  8113. var vm = this;
  8114. var ref = vm.$options;
  8115. var render = ref.render;
  8116. var _parentVnode = ref._parentVnode;
  8117. if (_parentVnode) {
  8118. vm.$scopedSlots = normalizeScopedSlots(
  8119. _parentVnode.data.scopedSlots,
  8120. vm.$slots,
  8121. vm.$scopedSlots
  8122. );
  8123. }
  8124. // set parent vnode. this allows render functions to have access
  8125. // to the data on the placeholder node.
  8126. vm.$vnode = _parentVnode;
  8127. // render self
  8128. var vnode;
  8129. try {
  8130. // There's no need to maintain a stack because all render fns are called
  8131. // separately from one another. Nested component's render fns are called
  8132. // when parent component is patched.
  8133. currentRenderingInstance = vm;
  8134. vnode = render.call(vm._renderProxy, vm.$createElement);
  8135. } catch (e) {
  8136. handleError(e, vm, "render");
  8137. // return error render result,
  8138. // or previous vnode to prevent render error causing blank component
  8139. /* istanbul ignore else */
  8140. if ( true && vm.$options.renderError) {
  8141. try {
  8142. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  8143. } catch (e) {
  8144. handleError(e, vm, "renderError");
  8145. vnode = vm._vnode;
  8146. }
  8147. } else {
  8148. vnode = vm._vnode;
  8149. }
  8150. } finally {
  8151. currentRenderingInstance = null;
  8152. }
  8153. // if the returned array contains only a single node, allow it
  8154. if (Array.isArray(vnode) && vnode.length === 1) {
  8155. vnode = vnode[0];
  8156. }
  8157. // return empty vnode in case the render function errored out
  8158. if (!(vnode instanceof VNode)) {
  8159. if ( true && Array.isArray(vnode)) {
  8160. warn(
  8161. 'Multiple root nodes returned from render function. Render function ' +
  8162. 'should return a single root node.',
  8163. vm
  8164. );
  8165. }
  8166. vnode = createEmptyVNode();
  8167. }
  8168. // set parent
  8169. vnode.parent = _parentVnode;
  8170. return vnode
  8171. };
  8172. }
  8173. /* */
  8174. function ensureCtor (comp, base) {
  8175. if (
  8176. comp.__esModule ||
  8177. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  8178. ) {
  8179. comp = comp.default;
  8180. }
  8181. return isObject(comp)
  8182. ? base.extend(comp)
  8183. : comp
  8184. }
  8185. function createAsyncPlaceholder (
  8186. factory,
  8187. data,
  8188. context,
  8189. children,
  8190. tag
  8191. ) {
  8192. var node = createEmptyVNode();
  8193. node.asyncFactory = factory;
  8194. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  8195. return node
  8196. }
  8197. function resolveAsyncComponent (
  8198. factory,
  8199. baseCtor
  8200. ) {
  8201. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  8202. return factory.errorComp
  8203. }
  8204. if (isDef(factory.resolved)) {
  8205. return factory.resolved
  8206. }
  8207. var owner = currentRenderingInstance;
  8208. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  8209. // already pending
  8210. factory.owners.push(owner);
  8211. }
  8212. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  8213. return factory.loadingComp
  8214. }
  8215. if (owner && !isDef(factory.owners)) {
  8216. var owners = factory.owners = [owner];
  8217. var sync = true;
  8218. var timerLoading = null;
  8219. var timerTimeout = null
  8220. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  8221. var forceRender = function (renderCompleted) {
  8222. for (var i = 0, l = owners.length; i < l; i++) {
  8223. (owners[i]).$forceUpdate();
  8224. }
  8225. if (renderCompleted) {
  8226. owners.length = 0;
  8227. if (timerLoading !== null) {
  8228. clearTimeout(timerLoading);
  8229. timerLoading = null;
  8230. }
  8231. if (timerTimeout !== null) {
  8232. clearTimeout(timerTimeout);
  8233. timerTimeout = null;
  8234. }
  8235. }
  8236. };
  8237. var resolve = once(function (res) {
  8238. // cache resolved
  8239. factory.resolved = ensureCtor(res, baseCtor);
  8240. // invoke callbacks only if this is not a synchronous resolve
  8241. // (async resolves are shimmed as synchronous during SSR)
  8242. if (!sync) {
  8243. forceRender(true);
  8244. } else {
  8245. owners.length = 0;
  8246. }
  8247. });
  8248. var reject = once(function (reason) {
  8249. true && warn(
  8250. "Failed to resolve async component: " + (String(factory)) +
  8251. (reason ? ("\nReason: " + reason) : '')
  8252. );
  8253. if (isDef(factory.errorComp)) {
  8254. factory.error = true;
  8255. forceRender(true);
  8256. }
  8257. });
  8258. var res = factory(resolve, reject);
  8259. if (isObject(res)) {
  8260. if (isPromise(res)) {
  8261. // () => Promise
  8262. if (isUndef(factory.resolved)) {
  8263. res.then(resolve, reject);
  8264. }
  8265. } else if (isPromise(res.component)) {
  8266. res.component.then(resolve, reject);
  8267. if (isDef(res.error)) {
  8268. factory.errorComp = ensureCtor(res.error, baseCtor);
  8269. }
  8270. if (isDef(res.loading)) {
  8271. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  8272. if (res.delay === 0) {
  8273. factory.loading = true;
  8274. } else {
  8275. timerLoading = setTimeout(function () {
  8276. timerLoading = null;
  8277. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  8278. factory.loading = true;
  8279. forceRender(false);
  8280. }
  8281. }, res.delay || 200);
  8282. }
  8283. }
  8284. if (isDef(res.timeout)) {
  8285. timerTimeout = setTimeout(function () {
  8286. timerTimeout = null;
  8287. if (isUndef(factory.resolved)) {
  8288. reject(
  8289. true
  8290. ? ("timeout (" + (res.timeout) + "ms)")
  8291. : undefined
  8292. );
  8293. }
  8294. }, res.timeout);
  8295. }
  8296. }
  8297. }
  8298. sync = false;
  8299. // return in case resolved synchronously
  8300. return factory.loading
  8301. ? factory.loadingComp
  8302. : factory.resolved
  8303. }
  8304. }
  8305. /* */
  8306. function isAsyncPlaceholder (node) {
  8307. return node.isComment && node.asyncFactory
  8308. }
  8309. /* */
  8310. function getFirstComponentChild (children) {
  8311. if (Array.isArray(children)) {
  8312. for (var i = 0; i < children.length; i++) {
  8313. var c = children[i];
  8314. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  8315. return c
  8316. }
  8317. }
  8318. }
  8319. }
  8320. /* */
  8321. /* */
  8322. function initEvents (vm) {
  8323. vm._events = Object.create(null);
  8324. vm._hasHookEvent = false;
  8325. // init parent attached events
  8326. var listeners = vm.$options._parentListeners;
  8327. if (listeners) {
  8328. updateComponentListeners(vm, listeners);
  8329. }
  8330. }
  8331. var target;
  8332. function add (event, fn) {
  8333. target.$on(event, fn);
  8334. }
  8335. function remove$1 (event, fn) {
  8336. target.$off(event, fn);
  8337. }
  8338. function createOnceHandler (event, fn) {
  8339. var _target = target;
  8340. return function onceHandler () {
  8341. var res = fn.apply(null, arguments);
  8342. if (res !== null) {
  8343. _target.$off(event, onceHandler);
  8344. }
  8345. }
  8346. }
  8347. function updateComponentListeners (
  8348. vm,
  8349. listeners,
  8350. oldListeners
  8351. ) {
  8352. target = vm;
  8353. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  8354. target = undefined;
  8355. }
  8356. function eventsMixin (Vue) {
  8357. var hookRE = /^hook:/;
  8358. Vue.prototype.$on = function (event, fn) {
  8359. var vm = this;
  8360. if (Array.isArray(event)) {
  8361. for (var i = 0, l = event.length; i < l; i++) {
  8362. vm.$on(event[i], fn);
  8363. }
  8364. } else {
  8365. (vm._events[event] || (vm._events[event] = [])).push(fn);
  8366. // optimize hook:event cost by using a boolean flag marked at registration
  8367. // instead of a hash lookup
  8368. if (hookRE.test(event)) {
  8369. vm._hasHookEvent = true;
  8370. }
  8371. }
  8372. return vm
  8373. };
  8374. Vue.prototype.$once = function (event, fn) {
  8375. var vm = this;
  8376. function on () {
  8377. vm.$off(event, on);
  8378. fn.apply(vm, arguments);
  8379. }
  8380. on.fn = fn;
  8381. vm.$on(event, on);
  8382. return vm
  8383. };
  8384. Vue.prototype.$off = function (event, fn) {
  8385. var vm = this;
  8386. // all
  8387. if (!arguments.length) {
  8388. vm._events = Object.create(null);
  8389. return vm
  8390. }
  8391. // array of events
  8392. if (Array.isArray(event)) {
  8393. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  8394. vm.$off(event[i$1], fn);
  8395. }
  8396. return vm
  8397. }
  8398. // specific event
  8399. var cbs = vm._events[event];
  8400. if (!cbs) {
  8401. return vm
  8402. }
  8403. if (!fn) {
  8404. vm._events[event] = null;
  8405. return vm
  8406. }
  8407. // specific handler
  8408. var cb;
  8409. var i = cbs.length;
  8410. while (i--) {
  8411. cb = cbs[i];
  8412. if (cb === fn || cb.fn === fn) {
  8413. cbs.splice(i, 1);
  8414. break
  8415. }
  8416. }
  8417. return vm
  8418. };
  8419. Vue.prototype.$emit = function (event) {
  8420. var vm = this;
  8421. if (true) {
  8422. var lowerCaseEvent = event.toLowerCase();
  8423. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  8424. tip(
  8425. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  8426. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  8427. "Note that HTML attributes are case-insensitive and you cannot use " +
  8428. "v-on to listen to camelCase events when using in-DOM templates. " +
  8429. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  8430. );
  8431. }
  8432. }
  8433. var cbs = vm._events[event];
  8434. if (cbs) {
  8435. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  8436. var args = toArray(arguments, 1);
  8437. var info = "event handler for \"" + event + "\"";
  8438. for (var i = 0, l = cbs.length; i < l; i++) {
  8439. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  8440. }
  8441. }
  8442. return vm
  8443. };
  8444. }
  8445. /* */
  8446. var activeInstance = null;
  8447. var isUpdatingChildComponent = false;
  8448. function setActiveInstance(vm) {
  8449. var prevActiveInstance = activeInstance;
  8450. activeInstance = vm;
  8451. return function () {
  8452. activeInstance = prevActiveInstance;
  8453. }
  8454. }
  8455. function initLifecycle (vm) {
  8456. var options = vm.$options;
  8457. // locate first non-abstract parent
  8458. var parent = options.parent;
  8459. if (parent && !options.abstract) {
  8460. while (parent.$options.abstract && parent.$parent) {
  8461. parent = parent.$parent;
  8462. }
  8463. parent.$children.push(vm);
  8464. }
  8465. vm.$parent = parent;
  8466. vm.$root = parent ? parent.$root : vm;
  8467. vm.$children = [];
  8468. vm.$refs = {};
  8469. vm._watcher = null;
  8470. vm._inactive = null;
  8471. vm._directInactive = false;
  8472. vm._isMounted = false;
  8473. vm._isDestroyed = false;
  8474. vm._isBeingDestroyed = false;
  8475. }
  8476. function lifecycleMixin (Vue) {
  8477. Vue.prototype._update = function (vnode, hydrating) {
  8478. var vm = this;
  8479. var prevEl = vm.$el;
  8480. var prevVnode = vm._vnode;
  8481. var restoreActiveInstance = setActiveInstance(vm);
  8482. vm._vnode = vnode;
  8483. // Vue.prototype.__patch__ is injected in entry points
  8484. // based on the rendering backend used.
  8485. if (!prevVnode) {
  8486. // initial render
  8487. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  8488. } else {
  8489. // updates
  8490. vm.$el = vm.__patch__(prevVnode, vnode);
  8491. }
  8492. restoreActiveInstance();
  8493. // update __vue__ reference
  8494. if (prevEl) {
  8495. prevEl.__vue__ = null;
  8496. }
  8497. if (vm.$el) {
  8498. vm.$el.__vue__ = vm;
  8499. }
  8500. // if parent is an HOC, update its $el as well
  8501. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  8502. vm.$parent.$el = vm.$el;
  8503. }
  8504. // updated hook is called by the scheduler to ensure that children are
  8505. // updated in a parent's updated hook.
  8506. };
  8507. Vue.prototype.$forceUpdate = function () {
  8508. var vm = this;
  8509. if (vm._watcher) {
  8510. vm._watcher.update();
  8511. }
  8512. };
  8513. Vue.prototype.$destroy = function () {
  8514. var vm = this;
  8515. if (vm._isBeingDestroyed) {
  8516. return
  8517. }
  8518. callHook(vm, 'beforeDestroy');
  8519. vm._isBeingDestroyed = true;
  8520. // remove self from parent
  8521. var parent = vm.$parent;
  8522. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  8523. remove(parent.$children, vm);
  8524. }
  8525. // teardown watchers
  8526. if (vm._watcher) {
  8527. vm._watcher.teardown();
  8528. }
  8529. var i = vm._watchers.length;
  8530. while (i--) {
  8531. vm._watchers[i].teardown();
  8532. }
  8533. // remove reference from data ob
  8534. // frozen object may not have observer.
  8535. if (vm._data.__ob__) {
  8536. vm._data.__ob__.vmCount--;
  8537. }
  8538. // call the last hook...
  8539. vm._isDestroyed = true;
  8540. // invoke destroy hooks on current rendered tree
  8541. vm.__patch__(vm._vnode, null);
  8542. // fire destroyed hook
  8543. callHook(vm, 'destroyed');
  8544. // turn off all instance listeners.
  8545. vm.$off();
  8546. // remove __vue__ reference
  8547. if (vm.$el) {
  8548. vm.$el.__vue__ = null;
  8549. }
  8550. // release circular reference (#6759)
  8551. if (vm.$vnode) {
  8552. vm.$vnode.parent = null;
  8553. }
  8554. };
  8555. }
  8556. function updateChildComponent (
  8557. vm,
  8558. propsData,
  8559. listeners,
  8560. parentVnode,
  8561. renderChildren
  8562. ) {
  8563. if (true) {
  8564. isUpdatingChildComponent = true;
  8565. }
  8566. // determine whether component has slot children
  8567. // we need to do this before overwriting $options._renderChildren.
  8568. // check if there are dynamic scopedSlots (hand-written or compiled but with
  8569. // dynamic slot names). Static scoped slots compiled from template has the
  8570. // "$stable" marker.
  8571. var newScopedSlots = parentVnode.data.scopedSlots;
  8572. var oldScopedSlots = vm.$scopedSlots;
  8573. var hasDynamicScopedSlot = !!(
  8574. (newScopedSlots && !newScopedSlots.$stable) ||
  8575. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  8576. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  8577. );
  8578. // Any static slot children from the parent may have changed during parent's
  8579. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  8580. // update is necessary to ensure correctness.
  8581. var needsForceUpdate = !!(
  8582. renderChildren || // has new static slots
  8583. vm.$options._renderChildren || // has old static slots
  8584. hasDynamicScopedSlot
  8585. );
  8586. vm.$options._parentVnode = parentVnode;
  8587. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  8588. if (vm._vnode) { // update child tree's parent
  8589. vm._vnode.parent = parentVnode;
  8590. }
  8591. vm.$options._renderChildren = renderChildren;
  8592. // update $attrs and $listeners hash
  8593. // these are also reactive so they may trigger child update if the child
  8594. // used them during render
  8595. vm.$attrs = parentVnode.data.attrs || emptyObject;
  8596. vm.$listeners = listeners || emptyObject;
  8597. // update props
  8598. if (propsData && vm.$options.props) {
  8599. toggleObserving(false);
  8600. var props = vm._props;
  8601. var propKeys = vm.$options._propKeys || [];
  8602. for (var i = 0; i < propKeys.length; i++) {
  8603. var key = propKeys[i];
  8604. var propOptions = vm.$options.props; // wtf flow?
  8605. props[key] = validateProp(key, propOptions, propsData, vm);
  8606. }
  8607. toggleObserving(true);
  8608. // keep a copy of raw propsData
  8609. vm.$options.propsData = propsData;
  8610. }
  8611. // fixed by xxxxxx update properties(mp runtime)
  8612. vm._$updateProperties && vm._$updateProperties(vm);
  8613. // update listeners
  8614. listeners = listeners || emptyObject;
  8615. var oldListeners = vm.$options._parentListeners;
  8616. vm.$options._parentListeners = listeners;
  8617. updateComponentListeners(vm, listeners, oldListeners);
  8618. // resolve slots + force update if has children
  8619. if (needsForceUpdate) {
  8620. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  8621. vm.$forceUpdate();
  8622. }
  8623. if (true) {
  8624. isUpdatingChildComponent = false;
  8625. }
  8626. }
  8627. function isInInactiveTree (vm) {
  8628. while (vm && (vm = vm.$parent)) {
  8629. if (vm._inactive) { return true }
  8630. }
  8631. return false
  8632. }
  8633. function activateChildComponent (vm, direct) {
  8634. if (direct) {
  8635. vm._directInactive = false;
  8636. if (isInInactiveTree(vm)) {
  8637. return
  8638. }
  8639. } else if (vm._directInactive) {
  8640. return
  8641. }
  8642. if (vm._inactive || vm._inactive === null) {
  8643. vm._inactive = false;
  8644. for (var i = 0; i < vm.$children.length; i++) {
  8645. activateChildComponent(vm.$children[i]);
  8646. }
  8647. callHook(vm, 'activated');
  8648. }
  8649. }
  8650. function deactivateChildComponent (vm, direct) {
  8651. if (direct) {
  8652. vm._directInactive = true;
  8653. if (isInInactiveTree(vm)) {
  8654. return
  8655. }
  8656. }
  8657. if (!vm._inactive) {
  8658. vm._inactive = true;
  8659. for (var i = 0; i < vm.$children.length; i++) {
  8660. deactivateChildComponent(vm.$children[i]);
  8661. }
  8662. callHook(vm, 'deactivated');
  8663. }
  8664. }
  8665. function callHook (vm, hook) {
  8666. // #7573 disable dep collection when invoking lifecycle hooks
  8667. pushTarget();
  8668. var handlers = vm.$options[hook];
  8669. var info = hook + " hook";
  8670. if (handlers) {
  8671. for (var i = 0, j = handlers.length; i < j; i++) {
  8672. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  8673. }
  8674. }
  8675. if (vm._hasHookEvent) {
  8676. vm.$emit('hook:' + hook);
  8677. }
  8678. popTarget();
  8679. }
  8680. /* */
  8681. var MAX_UPDATE_COUNT = 100;
  8682. var queue = [];
  8683. var activatedChildren = [];
  8684. var has = {};
  8685. var circular = {};
  8686. var waiting = false;
  8687. var flushing = false;
  8688. var index = 0;
  8689. /**
  8690. * Reset the scheduler's state.
  8691. */
  8692. function resetSchedulerState () {
  8693. index = queue.length = activatedChildren.length = 0;
  8694. has = {};
  8695. if (true) {
  8696. circular = {};
  8697. }
  8698. waiting = flushing = false;
  8699. }
  8700. // Async edge case #6566 requires saving the timestamp when event listeners are
  8701. // attached. However, calling performance.now() has a perf overhead especially
  8702. // if the page has thousands of event listeners. Instead, we take a timestamp
  8703. // every time the scheduler flushes and use that for all event listeners
  8704. // attached during that flush.
  8705. var currentFlushTimestamp = 0;
  8706. // Async edge case fix requires storing an event listener's attach timestamp.
  8707. var getNow = Date.now;
  8708. // Determine what event timestamp the browser is using. Annoyingly, the
  8709. // timestamp can either be hi-res (relative to page load) or low-res
  8710. // (relative to UNIX epoch), so in order to compare time we have to use the
  8711. // same timestamp type when saving the flush timestamp.
  8712. // All IE versions use low-res event timestamps, and have problematic clock
  8713. // implementations (#9632)
  8714. if (inBrowser && !isIE) {
  8715. var performance = window.performance;
  8716. if (
  8717. performance &&
  8718. typeof performance.now === 'function' &&
  8719. getNow() > document.createEvent('Event').timeStamp
  8720. ) {
  8721. // if the event timestamp, although evaluated AFTER the Date.now(), is
  8722. // smaller than it, it means the event is using a hi-res timestamp,
  8723. // and we need to use the hi-res version for event listener timestamps as
  8724. // well.
  8725. getNow = function () { return performance.now(); };
  8726. }
  8727. }
  8728. /**
  8729. * Flush both queues and run the watchers.
  8730. */
  8731. function flushSchedulerQueue () {
  8732. currentFlushTimestamp = getNow();
  8733. flushing = true;
  8734. var watcher, id;
  8735. // Sort queue before flush.
  8736. // This ensures that:
  8737. // 1. Components are updated from parent to child. (because parent is always
  8738. // created before the child)
  8739. // 2. A component's user watchers are run before its render watcher (because
  8740. // user watchers are created before the render watcher)
  8741. // 3. If a component is destroyed during a parent component's watcher run,
  8742. // its watchers can be skipped.
  8743. queue.sort(function (a, b) { return a.id - b.id; });
  8744. // do not cache length because more watchers might be pushed
  8745. // as we run existing watchers
  8746. for (index = 0; index < queue.length; index++) {
  8747. watcher = queue[index];
  8748. if (watcher.before) {
  8749. watcher.before();
  8750. }
  8751. id = watcher.id;
  8752. has[id] = null;
  8753. watcher.run();
  8754. // in dev build, check and stop circular updates.
  8755. if ( true && has[id] != null) {
  8756. circular[id] = (circular[id] || 0) + 1;
  8757. if (circular[id] > MAX_UPDATE_COUNT) {
  8758. warn(
  8759. 'You may have an infinite update loop ' + (
  8760. watcher.user
  8761. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  8762. : "in a component render function."
  8763. ),
  8764. watcher.vm
  8765. );
  8766. break
  8767. }
  8768. }
  8769. }
  8770. // keep copies of post queues before resetting state
  8771. var activatedQueue = activatedChildren.slice();
  8772. var updatedQueue = queue.slice();
  8773. resetSchedulerState();
  8774. // call component updated and activated hooks
  8775. callActivatedHooks(activatedQueue);
  8776. callUpdatedHooks(updatedQueue);
  8777. // devtool hook
  8778. /* istanbul ignore if */
  8779. if (devtools && config.devtools) {
  8780. devtools.emit('flush');
  8781. }
  8782. }
  8783. function callUpdatedHooks (queue) {
  8784. var i = queue.length;
  8785. while (i--) {
  8786. var watcher = queue[i];
  8787. var vm = watcher.vm;
  8788. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  8789. callHook(vm, 'updated');
  8790. }
  8791. }
  8792. }
  8793. /**
  8794. * Queue a kept-alive component that was activated during patch.
  8795. * The queue will be processed after the entire tree has been patched.
  8796. */
  8797. function queueActivatedComponent (vm) {
  8798. // setting _inactive to false here so that a render function can
  8799. // rely on checking whether it's in an inactive tree (e.g. router-view)
  8800. vm._inactive = false;
  8801. activatedChildren.push(vm);
  8802. }
  8803. function callActivatedHooks (queue) {
  8804. for (var i = 0; i < queue.length; i++) {
  8805. queue[i]._inactive = true;
  8806. activateChildComponent(queue[i], true /* true */);
  8807. }
  8808. }
  8809. /**
  8810. * Push a watcher into the watcher queue.
  8811. * Jobs with duplicate IDs will be skipped unless it's
  8812. * pushed when the queue is being flushed.
  8813. */
  8814. function queueWatcher (watcher) {
  8815. var id = watcher.id;
  8816. if (has[id] == null) {
  8817. has[id] = true;
  8818. if (!flushing) {
  8819. queue.push(watcher);
  8820. } else {
  8821. // if already flushing, splice the watcher based on its id
  8822. // if already past its id, it will be run next immediately.
  8823. var i = queue.length - 1;
  8824. while (i > index && queue[i].id > watcher.id) {
  8825. i--;
  8826. }
  8827. queue.splice(i + 1, 0, watcher);
  8828. }
  8829. // queue the flush
  8830. if (!waiting) {
  8831. waiting = true;
  8832. if ( true && !config.async) {
  8833. flushSchedulerQueue();
  8834. return
  8835. }
  8836. nextTick(flushSchedulerQueue);
  8837. }
  8838. }
  8839. }
  8840. /* */
  8841. var uid$2 = 0;
  8842. /**
  8843. * A watcher parses an expression, collects dependencies,
  8844. * and fires callback when the expression value changes.
  8845. * This is used for both the $watch() api and directives.
  8846. */
  8847. var Watcher = function Watcher (
  8848. vm,
  8849. expOrFn,
  8850. cb,
  8851. options,
  8852. isRenderWatcher
  8853. ) {
  8854. this.vm = vm;
  8855. if (isRenderWatcher) {
  8856. vm._watcher = this;
  8857. }
  8858. vm._watchers.push(this);
  8859. // options
  8860. if (options) {
  8861. this.deep = !!options.deep;
  8862. this.user = !!options.user;
  8863. this.lazy = !!options.lazy;
  8864. this.sync = !!options.sync;
  8865. this.before = options.before;
  8866. } else {
  8867. this.deep = this.user = this.lazy = this.sync = false;
  8868. }
  8869. this.cb = cb;
  8870. this.id = ++uid$2; // uid for batching
  8871. this.active = true;
  8872. this.dirty = this.lazy; // for lazy watchers
  8873. this.deps = [];
  8874. this.newDeps = [];
  8875. this.depIds = new _Set();
  8876. this.newDepIds = new _Set();
  8877. this.expression = true
  8878. ? expOrFn.toString()
  8879. : undefined;
  8880. // parse expression for getter
  8881. if (typeof expOrFn === 'function') {
  8882. this.getter = expOrFn;
  8883. } else {
  8884. this.getter = parsePath(expOrFn);
  8885. if (!this.getter) {
  8886. this.getter = noop;
  8887. true && warn(
  8888. "Failed watching path: \"" + expOrFn + "\" " +
  8889. 'Watcher only accepts simple dot-delimited paths. ' +
  8890. 'For full control, use a function instead.',
  8891. vm
  8892. );
  8893. }
  8894. }
  8895. this.value = this.lazy
  8896. ? undefined
  8897. : this.get();
  8898. };
  8899. /**
  8900. * Evaluate the getter, and re-collect dependencies.
  8901. */
  8902. Watcher.prototype.get = function get () {
  8903. pushTarget(this);
  8904. var value;
  8905. var vm = this.vm;
  8906. try {
  8907. value = this.getter.call(vm, vm);
  8908. } catch (e) {
  8909. if (this.user) {
  8910. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  8911. } else {
  8912. throw e
  8913. }
  8914. } finally {
  8915. // "touch" every property so they are all tracked as
  8916. // dependencies for deep watching
  8917. if (this.deep) {
  8918. traverse(value);
  8919. }
  8920. popTarget();
  8921. this.cleanupDeps();
  8922. }
  8923. return value
  8924. };
  8925. /**
  8926. * Add a dependency to this directive.
  8927. */
  8928. Watcher.prototype.addDep = function addDep (dep) {
  8929. var id = dep.id;
  8930. if (!this.newDepIds.has(id)) {
  8931. this.newDepIds.add(id);
  8932. this.newDeps.push(dep);
  8933. if (!this.depIds.has(id)) {
  8934. dep.addSub(this);
  8935. }
  8936. }
  8937. };
  8938. /**
  8939. * Clean up for dependency collection.
  8940. */
  8941. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  8942. var i = this.deps.length;
  8943. while (i--) {
  8944. var dep = this.deps[i];
  8945. if (!this.newDepIds.has(dep.id)) {
  8946. dep.removeSub(this);
  8947. }
  8948. }
  8949. var tmp = this.depIds;
  8950. this.depIds = this.newDepIds;
  8951. this.newDepIds = tmp;
  8952. this.newDepIds.clear();
  8953. tmp = this.deps;
  8954. this.deps = this.newDeps;
  8955. this.newDeps = tmp;
  8956. this.newDeps.length = 0;
  8957. };
  8958. /**
  8959. * Subscriber interface.
  8960. * Will be called when a dependency changes.
  8961. */
  8962. Watcher.prototype.update = function update () {
  8963. /* istanbul ignore else */
  8964. if (this.lazy) {
  8965. this.dirty = true;
  8966. } else if (this.sync) {
  8967. this.run();
  8968. } else {
  8969. queueWatcher(this);
  8970. }
  8971. };
  8972. /**
  8973. * Scheduler job interface.
  8974. * Will be called by the scheduler.
  8975. */
  8976. Watcher.prototype.run = function run () {
  8977. if (this.active) {
  8978. var value = this.get();
  8979. if (
  8980. value !== this.value ||
  8981. // Deep watchers and watchers on Object/Arrays should fire even
  8982. // when the value is the same, because the value may
  8983. // have mutated.
  8984. isObject(value) ||
  8985. this.deep
  8986. ) {
  8987. // set new value
  8988. var oldValue = this.value;
  8989. this.value = value;
  8990. if (this.user) {
  8991. try {
  8992. this.cb.call(this.vm, value, oldValue);
  8993. } catch (e) {
  8994. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  8995. }
  8996. } else {
  8997. this.cb.call(this.vm, value, oldValue);
  8998. }
  8999. }
  9000. }
  9001. };
  9002. /**
  9003. * Evaluate the value of the watcher.
  9004. * This only gets called for lazy watchers.
  9005. */
  9006. Watcher.prototype.evaluate = function evaluate () {
  9007. this.value = this.get();
  9008. this.dirty = false;
  9009. };
  9010. /**
  9011. * Depend on all deps collected by this watcher.
  9012. */
  9013. Watcher.prototype.depend = function depend () {
  9014. var i = this.deps.length;
  9015. while (i--) {
  9016. this.deps[i].depend();
  9017. }
  9018. };
  9019. /**
  9020. * Remove self from all dependencies' subscriber list.
  9021. */
  9022. Watcher.prototype.teardown = function teardown () {
  9023. if (this.active) {
  9024. // remove self from vm's watcher list
  9025. // this is a somewhat expensive operation so we skip it
  9026. // if the vm is being destroyed.
  9027. if (!this.vm._isBeingDestroyed) {
  9028. remove(this.vm._watchers, this);
  9029. }
  9030. var i = this.deps.length;
  9031. while (i--) {
  9032. this.deps[i].removeSub(this);
  9033. }
  9034. this.active = false;
  9035. }
  9036. };
  9037. /* */
  9038. var sharedPropertyDefinition = {
  9039. enumerable: true,
  9040. configurable: true,
  9041. get: noop,
  9042. set: noop
  9043. };
  9044. function proxy (target, sourceKey, key) {
  9045. sharedPropertyDefinition.get = function proxyGetter () {
  9046. return this[sourceKey][key]
  9047. };
  9048. sharedPropertyDefinition.set = function proxySetter (val) {
  9049. this[sourceKey][key] = val;
  9050. };
  9051. Object.defineProperty(target, key, sharedPropertyDefinition);
  9052. }
  9053. function initState (vm) {
  9054. vm._watchers = [];
  9055. var opts = vm.$options;
  9056. if (opts.props) { initProps(vm, opts.props); }
  9057. if (opts.methods) { initMethods(vm, opts.methods); }
  9058. if (opts.data) {
  9059. initData(vm);
  9060. } else {
  9061. observe(vm._data = {}, true /* asRootData */);
  9062. }
  9063. if (opts.computed) { initComputed(vm, opts.computed); }
  9064. if (opts.watch && opts.watch !== nativeWatch) {
  9065. initWatch(vm, opts.watch);
  9066. }
  9067. }
  9068. function initProps (vm, propsOptions) {
  9069. var propsData = vm.$options.propsData || {};
  9070. var props = vm._props = {};
  9071. // cache prop keys so that future props updates can iterate using Array
  9072. // instead of dynamic object key enumeration.
  9073. var keys = vm.$options._propKeys = [];
  9074. var isRoot = !vm.$parent;
  9075. // root instance props should be converted
  9076. if (!isRoot) {
  9077. toggleObserving(false);
  9078. }
  9079. var loop = function ( key ) {
  9080. keys.push(key);
  9081. var value = validateProp(key, propsOptions, propsData, vm);
  9082. /* istanbul ignore else */
  9083. if (true) {
  9084. var hyphenatedKey = hyphenate(key);
  9085. if (isReservedAttribute(hyphenatedKey) ||
  9086. config.isReservedAttr(hyphenatedKey)) {
  9087. warn(
  9088. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  9089. vm
  9090. );
  9091. }
  9092. defineReactive$$1(props, key, value, function () {
  9093. if (!isRoot && !isUpdatingChildComponent) {
  9094. {
  9095. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou'){//百度、快手 observer 在 setData callback 之后触发,直接忽略该 warn
  9096. return
  9097. }
  9098. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  9099. if(
  9100. key === 'value' &&
  9101. Array.isArray(vm.$options.behaviors) &&
  9102. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9103. ){
  9104. return
  9105. }
  9106. if(vm._getFormData){
  9107. return
  9108. }
  9109. var $parent = vm.$parent;
  9110. while($parent){
  9111. if($parent.__next_tick_pending){
  9112. return
  9113. }
  9114. $parent = $parent.$parent;
  9115. }
  9116. }
  9117. warn(
  9118. "Avoid mutating a prop directly since the value will be " +
  9119. "overwritten whenever the parent component re-renders. " +
  9120. "Instead, use a data or computed property based on the prop's " +
  9121. "value. Prop being mutated: \"" + key + "\"",
  9122. vm
  9123. );
  9124. }
  9125. });
  9126. } else {}
  9127. // static props are already proxied on the component's prototype
  9128. // during Vue.extend(). We only need to proxy props defined at
  9129. // instantiation here.
  9130. if (!(key in vm)) {
  9131. proxy(vm, "_props", key);
  9132. }
  9133. };
  9134. for (var key in propsOptions) loop( key );
  9135. toggleObserving(true);
  9136. }
  9137. function initData (vm) {
  9138. var data = vm.$options.data;
  9139. data = vm._data = typeof data === 'function'
  9140. ? getData(data, vm)
  9141. : data || {};
  9142. if (!isPlainObject(data)) {
  9143. data = {};
  9144. true && warn(
  9145. 'data functions should return an object:\n' +
  9146. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  9147. vm
  9148. );
  9149. }
  9150. // proxy data on instance
  9151. var keys = Object.keys(data);
  9152. var props = vm.$options.props;
  9153. var methods = vm.$options.methods;
  9154. var i = keys.length;
  9155. while (i--) {
  9156. var key = keys[i];
  9157. if (true) {
  9158. if (methods && hasOwn(methods, key)) {
  9159. warn(
  9160. ("Method \"" + key + "\" has already been defined as a data property."),
  9161. vm
  9162. );
  9163. }
  9164. }
  9165. if (props && hasOwn(props, key)) {
  9166. true && warn(
  9167. "The data property \"" + key + "\" is already declared as a prop. " +
  9168. "Use prop default value instead.",
  9169. vm
  9170. );
  9171. } else if (!isReserved(key)) {
  9172. proxy(vm, "_data", key);
  9173. }
  9174. }
  9175. // observe data
  9176. observe(data, true /* asRootData */);
  9177. }
  9178. function getData (data, vm) {
  9179. // #7573 disable dep collection when invoking data getters
  9180. pushTarget();
  9181. try {
  9182. return data.call(vm, vm)
  9183. } catch (e) {
  9184. handleError(e, vm, "data()");
  9185. return {}
  9186. } finally {
  9187. popTarget();
  9188. }
  9189. }
  9190. var computedWatcherOptions = { lazy: true };
  9191. function initComputed (vm, computed) {
  9192. // $flow-disable-line
  9193. var watchers = vm._computedWatchers = Object.create(null);
  9194. // computed properties are just getters during SSR
  9195. var isSSR = isServerRendering();
  9196. for (var key in computed) {
  9197. var userDef = computed[key];
  9198. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  9199. if ( true && getter == null) {
  9200. warn(
  9201. ("Getter is missing for computed property \"" + key + "\"."),
  9202. vm
  9203. );
  9204. }
  9205. if (!isSSR) {
  9206. // create internal watcher for the computed property.
  9207. watchers[key] = new Watcher(
  9208. vm,
  9209. getter || noop,
  9210. noop,
  9211. computedWatcherOptions
  9212. );
  9213. }
  9214. // component-defined computed properties are already defined on the
  9215. // component prototype. We only need to define computed properties defined
  9216. // at instantiation here.
  9217. if (!(key in vm)) {
  9218. defineComputed(vm, key, userDef);
  9219. } else if (true) {
  9220. if (key in vm.$data) {
  9221. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  9222. } else if (vm.$options.props && key in vm.$options.props) {
  9223. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  9224. }
  9225. }
  9226. }
  9227. }
  9228. function defineComputed (
  9229. target,
  9230. key,
  9231. userDef
  9232. ) {
  9233. var shouldCache = !isServerRendering();
  9234. if (typeof userDef === 'function') {
  9235. sharedPropertyDefinition.get = shouldCache
  9236. ? createComputedGetter(key)
  9237. : createGetterInvoker(userDef);
  9238. sharedPropertyDefinition.set = noop;
  9239. } else {
  9240. sharedPropertyDefinition.get = userDef.get
  9241. ? shouldCache && userDef.cache !== false
  9242. ? createComputedGetter(key)
  9243. : createGetterInvoker(userDef.get)
  9244. : noop;
  9245. sharedPropertyDefinition.set = userDef.set || noop;
  9246. }
  9247. if ( true &&
  9248. sharedPropertyDefinition.set === noop) {
  9249. sharedPropertyDefinition.set = function () {
  9250. warn(
  9251. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  9252. this
  9253. );
  9254. };
  9255. }
  9256. Object.defineProperty(target, key, sharedPropertyDefinition);
  9257. }
  9258. function createComputedGetter (key) {
  9259. return function computedGetter () {
  9260. var watcher = this._computedWatchers && this._computedWatchers[key];
  9261. if (watcher) {
  9262. if (watcher.dirty) {
  9263. watcher.evaluate();
  9264. }
  9265. if (Dep.SharedObject.target) {// fixed by xxxxxx
  9266. watcher.depend();
  9267. }
  9268. return watcher.value
  9269. }
  9270. }
  9271. }
  9272. function createGetterInvoker(fn) {
  9273. return function computedGetter () {
  9274. return fn.call(this, this)
  9275. }
  9276. }
  9277. function initMethods (vm, methods) {
  9278. var props = vm.$options.props;
  9279. for (var key in methods) {
  9280. if (true) {
  9281. if (typeof methods[key] !== 'function') {
  9282. warn(
  9283. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  9284. "Did you reference the function correctly?",
  9285. vm
  9286. );
  9287. }
  9288. if (props && hasOwn(props, key)) {
  9289. warn(
  9290. ("Method \"" + key + "\" has already been defined as a prop."),
  9291. vm
  9292. );
  9293. }
  9294. if ((key in vm) && isReserved(key)) {
  9295. warn(
  9296. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  9297. "Avoid defining component methods that start with _ or $."
  9298. );
  9299. }
  9300. }
  9301. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  9302. }
  9303. }
  9304. function initWatch (vm, watch) {
  9305. for (var key in watch) {
  9306. var handler = watch[key];
  9307. if (Array.isArray(handler)) {
  9308. for (var i = 0; i < handler.length; i++) {
  9309. createWatcher(vm, key, handler[i]);
  9310. }
  9311. } else {
  9312. createWatcher(vm, key, handler);
  9313. }
  9314. }
  9315. }
  9316. function createWatcher (
  9317. vm,
  9318. expOrFn,
  9319. handler,
  9320. options
  9321. ) {
  9322. if (isPlainObject(handler)) {
  9323. options = handler;
  9324. handler = handler.handler;
  9325. }
  9326. if (typeof handler === 'string') {
  9327. handler = vm[handler];
  9328. }
  9329. return vm.$watch(expOrFn, handler, options)
  9330. }
  9331. function stateMixin (Vue) {
  9332. // flow somehow has problems with directly declared definition object
  9333. // when using Object.defineProperty, so we have to procedurally build up
  9334. // the object here.
  9335. var dataDef = {};
  9336. dataDef.get = function () { return this._data };
  9337. var propsDef = {};
  9338. propsDef.get = function () { return this._props };
  9339. if (true) {
  9340. dataDef.set = function () {
  9341. warn(
  9342. 'Avoid replacing instance root $data. ' +
  9343. 'Use nested data properties instead.',
  9344. this
  9345. );
  9346. };
  9347. propsDef.set = function () {
  9348. warn("$props is readonly.", this);
  9349. };
  9350. }
  9351. Object.defineProperty(Vue.prototype, '$data', dataDef);
  9352. Object.defineProperty(Vue.prototype, '$props', propsDef);
  9353. Vue.prototype.$set = set;
  9354. Vue.prototype.$delete = del;
  9355. Vue.prototype.$watch = function (
  9356. expOrFn,
  9357. cb,
  9358. options
  9359. ) {
  9360. var vm = this;
  9361. if (isPlainObject(cb)) {
  9362. return createWatcher(vm, expOrFn, cb, options)
  9363. }
  9364. options = options || {};
  9365. options.user = true;
  9366. var watcher = new Watcher(vm, expOrFn, cb, options);
  9367. if (options.immediate) {
  9368. try {
  9369. cb.call(vm, watcher.value);
  9370. } catch (error) {
  9371. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  9372. }
  9373. }
  9374. return function unwatchFn () {
  9375. watcher.teardown();
  9376. }
  9377. };
  9378. }
  9379. /* */
  9380. var uid$3 = 0;
  9381. function initMixin (Vue) {
  9382. Vue.prototype._init = function (options) {
  9383. var vm = this;
  9384. // a uid
  9385. vm._uid = uid$3++;
  9386. var startTag, endTag;
  9387. /* istanbul ignore if */
  9388. if ( true && config.performance && mark) {
  9389. startTag = "vue-perf-start:" + (vm._uid);
  9390. endTag = "vue-perf-end:" + (vm._uid);
  9391. mark(startTag);
  9392. }
  9393. // a flag to avoid this being observed
  9394. vm._isVue = true;
  9395. // merge options
  9396. if (options && options._isComponent) {
  9397. // optimize internal component instantiation
  9398. // since dynamic options merging is pretty slow, and none of the
  9399. // internal component options needs special treatment.
  9400. initInternalComponent(vm, options);
  9401. } else {
  9402. vm.$options = mergeOptions(
  9403. resolveConstructorOptions(vm.constructor),
  9404. options || {},
  9405. vm
  9406. );
  9407. }
  9408. /* istanbul ignore else */
  9409. if (true) {
  9410. initProxy(vm);
  9411. } else {}
  9412. // expose real self
  9413. vm._self = vm;
  9414. initLifecycle(vm);
  9415. initEvents(vm);
  9416. initRender(vm);
  9417. callHook(vm, 'beforeCreate');
  9418. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  9419. initState(vm);
  9420. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  9421. !vm._$fallback && callHook(vm, 'created');
  9422. /* istanbul ignore if */
  9423. if ( true && config.performance && mark) {
  9424. vm._name = formatComponentName(vm, false);
  9425. mark(endTag);
  9426. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  9427. }
  9428. if (vm.$options.el) {
  9429. vm.$mount(vm.$options.el);
  9430. }
  9431. };
  9432. }
  9433. function initInternalComponent (vm, options) {
  9434. var opts = vm.$options = Object.create(vm.constructor.options);
  9435. // doing this because it's faster than dynamic enumeration.
  9436. var parentVnode = options._parentVnode;
  9437. opts.parent = options.parent;
  9438. opts._parentVnode = parentVnode;
  9439. var vnodeComponentOptions = parentVnode.componentOptions;
  9440. opts.propsData = vnodeComponentOptions.propsData;
  9441. opts._parentListeners = vnodeComponentOptions.listeners;
  9442. opts._renderChildren = vnodeComponentOptions.children;
  9443. opts._componentTag = vnodeComponentOptions.tag;
  9444. if (options.render) {
  9445. opts.render = options.render;
  9446. opts.staticRenderFns = options.staticRenderFns;
  9447. }
  9448. }
  9449. function resolveConstructorOptions (Ctor) {
  9450. var options = Ctor.options;
  9451. if (Ctor.super) {
  9452. var superOptions = resolveConstructorOptions(Ctor.super);
  9453. var cachedSuperOptions = Ctor.superOptions;
  9454. if (superOptions !== cachedSuperOptions) {
  9455. // super option changed,
  9456. // need to resolve new options.
  9457. Ctor.superOptions = superOptions;
  9458. // check if there are any late-modified/attached options (#4976)
  9459. var modifiedOptions = resolveModifiedOptions(Ctor);
  9460. // update base extend options
  9461. if (modifiedOptions) {
  9462. extend(Ctor.extendOptions, modifiedOptions);
  9463. }
  9464. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  9465. if (options.name) {
  9466. options.components[options.name] = Ctor;
  9467. }
  9468. }
  9469. }
  9470. return options
  9471. }
  9472. function resolveModifiedOptions (Ctor) {
  9473. var modified;
  9474. var latest = Ctor.options;
  9475. var sealed = Ctor.sealedOptions;
  9476. for (var key in latest) {
  9477. if (latest[key] !== sealed[key]) {
  9478. if (!modified) { modified = {}; }
  9479. modified[key] = latest[key];
  9480. }
  9481. }
  9482. return modified
  9483. }
  9484. function Vue (options) {
  9485. if ( true &&
  9486. !(this instanceof Vue)
  9487. ) {
  9488. warn('Vue is a constructor and should be called with the `new` keyword');
  9489. }
  9490. this._init(options);
  9491. }
  9492. initMixin(Vue);
  9493. stateMixin(Vue);
  9494. eventsMixin(Vue);
  9495. lifecycleMixin(Vue);
  9496. renderMixin(Vue);
  9497. /* */
  9498. function initUse (Vue) {
  9499. Vue.use = function (plugin) {
  9500. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  9501. if (installedPlugins.indexOf(plugin) > -1) {
  9502. return this
  9503. }
  9504. // additional parameters
  9505. var args = toArray(arguments, 1);
  9506. args.unshift(this);
  9507. if (typeof plugin.install === 'function') {
  9508. plugin.install.apply(plugin, args);
  9509. } else if (typeof plugin === 'function') {
  9510. plugin.apply(null, args);
  9511. }
  9512. installedPlugins.push(plugin);
  9513. return this
  9514. };
  9515. }
  9516. /* */
  9517. function initMixin$1 (Vue) {
  9518. Vue.mixin = function (mixin) {
  9519. this.options = mergeOptions(this.options, mixin);
  9520. return this
  9521. };
  9522. }
  9523. /* */
  9524. function initExtend (Vue) {
  9525. /**
  9526. * Each instance constructor, including Vue, has a unique
  9527. * cid. This enables us to create wrapped "child
  9528. * constructors" for prototypal inheritance and cache them.
  9529. */
  9530. Vue.cid = 0;
  9531. var cid = 1;
  9532. /**
  9533. * Class inheritance
  9534. */
  9535. Vue.extend = function (extendOptions) {
  9536. extendOptions = extendOptions || {};
  9537. var Super = this;
  9538. var SuperId = Super.cid;
  9539. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  9540. if (cachedCtors[SuperId]) {
  9541. return cachedCtors[SuperId]
  9542. }
  9543. var name = extendOptions.name || Super.options.name;
  9544. if ( true && name) {
  9545. validateComponentName(name);
  9546. }
  9547. var Sub = function VueComponent (options) {
  9548. this._init(options);
  9549. };
  9550. Sub.prototype = Object.create(Super.prototype);
  9551. Sub.prototype.constructor = Sub;
  9552. Sub.cid = cid++;
  9553. Sub.options = mergeOptions(
  9554. Super.options,
  9555. extendOptions
  9556. );
  9557. Sub['super'] = Super;
  9558. // For props and computed properties, we define the proxy getters on
  9559. // the Vue instances at extension time, on the extended prototype. This
  9560. // avoids Object.defineProperty calls for each instance created.
  9561. if (Sub.options.props) {
  9562. initProps$1(Sub);
  9563. }
  9564. if (Sub.options.computed) {
  9565. initComputed$1(Sub);
  9566. }
  9567. // allow further extension/mixin/plugin usage
  9568. Sub.extend = Super.extend;
  9569. Sub.mixin = Super.mixin;
  9570. Sub.use = Super.use;
  9571. // create asset registers, so extended classes
  9572. // can have their private assets too.
  9573. ASSET_TYPES.forEach(function (type) {
  9574. Sub[type] = Super[type];
  9575. });
  9576. // enable recursive self-lookup
  9577. if (name) {
  9578. Sub.options.components[name] = Sub;
  9579. }
  9580. // keep a reference to the super options at extension time.
  9581. // later at instantiation we can check if Super's options have
  9582. // been updated.
  9583. Sub.superOptions = Super.options;
  9584. Sub.extendOptions = extendOptions;
  9585. Sub.sealedOptions = extend({}, Sub.options);
  9586. // cache constructor
  9587. cachedCtors[SuperId] = Sub;
  9588. return Sub
  9589. };
  9590. }
  9591. function initProps$1 (Comp) {
  9592. var props = Comp.options.props;
  9593. for (var key in props) {
  9594. proxy(Comp.prototype, "_props", key);
  9595. }
  9596. }
  9597. function initComputed$1 (Comp) {
  9598. var computed = Comp.options.computed;
  9599. for (var key in computed) {
  9600. defineComputed(Comp.prototype, key, computed[key]);
  9601. }
  9602. }
  9603. /* */
  9604. function initAssetRegisters (Vue) {
  9605. /**
  9606. * Create asset registration methods.
  9607. */
  9608. ASSET_TYPES.forEach(function (type) {
  9609. Vue[type] = function (
  9610. id,
  9611. definition
  9612. ) {
  9613. if (!definition) {
  9614. return this.options[type + 's'][id]
  9615. } else {
  9616. /* istanbul ignore if */
  9617. if ( true && type === 'component') {
  9618. validateComponentName(id);
  9619. }
  9620. if (type === 'component' && isPlainObject(definition)) {
  9621. definition.name = definition.name || id;
  9622. definition = this.options._base.extend(definition);
  9623. }
  9624. if (type === 'directive' && typeof definition === 'function') {
  9625. definition = { bind: definition, update: definition };
  9626. }
  9627. this.options[type + 's'][id] = definition;
  9628. return definition
  9629. }
  9630. };
  9631. });
  9632. }
  9633. /* */
  9634. function getComponentName (opts) {
  9635. return opts && (opts.Ctor.options.name || opts.tag)
  9636. }
  9637. function matches (pattern, name) {
  9638. if (Array.isArray(pattern)) {
  9639. return pattern.indexOf(name) > -1
  9640. } else if (typeof pattern === 'string') {
  9641. return pattern.split(',').indexOf(name) > -1
  9642. } else if (isRegExp(pattern)) {
  9643. return pattern.test(name)
  9644. }
  9645. /* istanbul ignore next */
  9646. return false
  9647. }
  9648. function pruneCache (keepAliveInstance, filter) {
  9649. var cache = keepAliveInstance.cache;
  9650. var keys = keepAliveInstance.keys;
  9651. var _vnode = keepAliveInstance._vnode;
  9652. for (var key in cache) {
  9653. var cachedNode = cache[key];
  9654. if (cachedNode) {
  9655. var name = getComponentName(cachedNode.componentOptions);
  9656. if (name && !filter(name)) {
  9657. pruneCacheEntry(cache, key, keys, _vnode);
  9658. }
  9659. }
  9660. }
  9661. }
  9662. function pruneCacheEntry (
  9663. cache,
  9664. key,
  9665. keys,
  9666. current
  9667. ) {
  9668. var cached$$1 = cache[key];
  9669. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  9670. cached$$1.componentInstance.$destroy();
  9671. }
  9672. cache[key] = null;
  9673. remove(keys, key);
  9674. }
  9675. var patternTypes = [String, RegExp, Array];
  9676. var KeepAlive = {
  9677. name: 'keep-alive',
  9678. abstract: true,
  9679. props: {
  9680. include: patternTypes,
  9681. exclude: patternTypes,
  9682. max: [String, Number]
  9683. },
  9684. created: function created () {
  9685. this.cache = Object.create(null);
  9686. this.keys = [];
  9687. },
  9688. destroyed: function destroyed () {
  9689. for (var key in this.cache) {
  9690. pruneCacheEntry(this.cache, key, this.keys);
  9691. }
  9692. },
  9693. mounted: function mounted () {
  9694. var this$1 = this;
  9695. this.$watch('include', function (val) {
  9696. pruneCache(this$1, function (name) { return matches(val, name); });
  9697. });
  9698. this.$watch('exclude', function (val) {
  9699. pruneCache(this$1, function (name) { return !matches(val, name); });
  9700. });
  9701. },
  9702. render: function render () {
  9703. var slot = this.$slots.default;
  9704. var vnode = getFirstComponentChild(slot);
  9705. var componentOptions = vnode && vnode.componentOptions;
  9706. if (componentOptions) {
  9707. // check pattern
  9708. var name = getComponentName(componentOptions);
  9709. var ref = this;
  9710. var include = ref.include;
  9711. var exclude = ref.exclude;
  9712. if (
  9713. // not included
  9714. (include && (!name || !matches(include, name))) ||
  9715. // excluded
  9716. (exclude && name && matches(exclude, name))
  9717. ) {
  9718. return vnode
  9719. }
  9720. var ref$1 = this;
  9721. var cache = ref$1.cache;
  9722. var keys = ref$1.keys;
  9723. var key = vnode.key == null
  9724. // same constructor may get registered as different local components
  9725. // so cid alone is not enough (#3269)
  9726. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  9727. : vnode.key;
  9728. if (cache[key]) {
  9729. vnode.componentInstance = cache[key].componentInstance;
  9730. // make current key freshest
  9731. remove(keys, key);
  9732. keys.push(key);
  9733. } else {
  9734. cache[key] = vnode;
  9735. keys.push(key);
  9736. // prune oldest entry
  9737. if (this.max && keys.length > parseInt(this.max)) {
  9738. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  9739. }
  9740. }
  9741. vnode.data.keepAlive = true;
  9742. }
  9743. return vnode || (slot && slot[0])
  9744. }
  9745. };
  9746. var builtInComponents = {
  9747. KeepAlive: KeepAlive
  9748. };
  9749. /* */
  9750. function initGlobalAPI (Vue) {
  9751. // config
  9752. var configDef = {};
  9753. configDef.get = function () { return config; };
  9754. if (true) {
  9755. configDef.set = function () {
  9756. warn(
  9757. 'Do not replace the Vue.config object, set individual fields instead.'
  9758. );
  9759. };
  9760. }
  9761. Object.defineProperty(Vue, 'config', configDef);
  9762. // exposed util methods.
  9763. // NOTE: these are not considered part of the public API - avoid relying on
  9764. // them unless you are aware of the risk.
  9765. Vue.util = {
  9766. warn: warn,
  9767. extend: extend,
  9768. mergeOptions: mergeOptions,
  9769. defineReactive: defineReactive$$1
  9770. };
  9771. Vue.set = set;
  9772. Vue.delete = del;
  9773. Vue.nextTick = nextTick;
  9774. // 2.6 explicit observable API
  9775. Vue.observable = function (obj) {
  9776. observe(obj);
  9777. return obj
  9778. };
  9779. Vue.options = Object.create(null);
  9780. ASSET_TYPES.forEach(function (type) {
  9781. Vue.options[type + 's'] = Object.create(null);
  9782. });
  9783. // this is used to identify the "base" constructor to extend all plain-object
  9784. // components with in Weex's multi-instance scenarios.
  9785. Vue.options._base = Vue;
  9786. extend(Vue.options.components, builtInComponents);
  9787. initUse(Vue);
  9788. initMixin$1(Vue);
  9789. initExtend(Vue);
  9790. initAssetRegisters(Vue);
  9791. }
  9792. initGlobalAPI(Vue);
  9793. Object.defineProperty(Vue.prototype, '$isServer', {
  9794. get: isServerRendering
  9795. });
  9796. Object.defineProperty(Vue.prototype, '$ssrContext', {
  9797. get: function get () {
  9798. /* istanbul ignore next */
  9799. return this.$vnode && this.$vnode.ssrContext
  9800. }
  9801. });
  9802. // expose FunctionalRenderContext for ssr runtime helper installation
  9803. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  9804. value: FunctionalRenderContext
  9805. });
  9806. Vue.version = '2.6.11';
  9807. /**
  9808. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  9809. */
  9810. var ARRAYTYPE = '[object Array]';
  9811. var OBJECTTYPE = '[object Object]';
  9812. // const FUNCTIONTYPE = '[object Function]'
  9813. function diff(current, pre) {
  9814. var result = {};
  9815. syncKeys(current, pre);
  9816. _diff(current, pre, '', result);
  9817. return result
  9818. }
  9819. function syncKeys(current, pre) {
  9820. if (current === pre) { return }
  9821. var rootCurrentType = type(current);
  9822. var rootPreType = type(pre);
  9823. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  9824. if(Object.keys(current).length >= Object.keys(pre).length){
  9825. for (var key in pre) {
  9826. var currentValue = current[key];
  9827. if (currentValue === undefined) {
  9828. current[key] = null;
  9829. } else {
  9830. syncKeys(currentValue, pre[key]);
  9831. }
  9832. }
  9833. }
  9834. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  9835. if (current.length >= pre.length) {
  9836. pre.forEach(function (item, index) {
  9837. syncKeys(current[index], item);
  9838. });
  9839. }
  9840. }
  9841. }
  9842. function _diff(current, pre, path, result) {
  9843. if (current === pre) { return }
  9844. var rootCurrentType = type(current);
  9845. var rootPreType = type(pre);
  9846. if (rootCurrentType == OBJECTTYPE) {
  9847. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  9848. setResult(result, path, current);
  9849. } else {
  9850. var loop = function ( key ) {
  9851. var currentValue = current[key];
  9852. var preValue = pre[key];
  9853. var currentType = type(currentValue);
  9854. var preType = type(preValue);
  9855. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  9856. // NOTE 此处将 != 修改为 !==。涉及地方太多恐怕测试不到,如果出现数据对比问题,将其修改回来。
  9857. if (currentValue !== pre[key]) {
  9858. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9859. }
  9860. } else if (currentType == ARRAYTYPE) {
  9861. if (preType != ARRAYTYPE) {
  9862. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9863. } else {
  9864. if (currentValue.length < preValue.length) {
  9865. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9866. } else {
  9867. currentValue.forEach(function (item, index) {
  9868. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  9869. });
  9870. }
  9871. }
  9872. } else if (currentType == OBJECTTYPE) {
  9873. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  9874. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9875. } else {
  9876. for (var subKey in currentValue) {
  9877. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  9878. }
  9879. }
  9880. }
  9881. };
  9882. for (var key in current) loop( key );
  9883. }
  9884. } else if (rootCurrentType == ARRAYTYPE) {
  9885. if (rootPreType != ARRAYTYPE) {
  9886. setResult(result, path, current);
  9887. } else {
  9888. if (current.length < pre.length) {
  9889. setResult(result, path, current);
  9890. } else {
  9891. current.forEach(function (item, index) {
  9892. _diff(item, pre[index], path + '[' + index + ']', result);
  9893. });
  9894. }
  9895. }
  9896. } else {
  9897. setResult(result, path, current);
  9898. }
  9899. }
  9900. function setResult(result, k, v) {
  9901. // if (type(v) != FUNCTIONTYPE) {
  9902. result[k] = v;
  9903. // }
  9904. }
  9905. function type(obj) {
  9906. return Object.prototype.toString.call(obj)
  9907. }
  9908. /* */
  9909. function flushCallbacks$1(vm) {
  9910. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  9911. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"caimei-applets-hehe","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9912. var mpInstance = vm.$scope;
  9913. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9914. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  9915. }
  9916. var copies = vm.__next_tick_callbacks.slice(0);
  9917. vm.__next_tick_callbacks.length = 0;
  9918. for (var i = 0; i < copies.length; i++) {
  9919. copies[i]();
  9920. }
  9921. }
  9922. }
  9923. function hasRenderWatcher(vm) {
  9924. return queue.find(function (watcher) { return vm._watcher === watcher; })
  9925. }
  9926. function nextTick$1(vm, cb) {
  9927. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  9928. //2.nextTick 之前存在 render watcher
  9929. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  9930. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"caimei-applets-hehe","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  9931. var mpInstance = vm.$scope;
  9932. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9933. ']:nextVueTick');
  9934. }
  9935. return nextTick(cb, vm)
  9936. }else{
  9937. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"caimei-applets-hehe","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  9938. var mpInstance$1 = vm.$scope;
  9939. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  9940. ']:nextMPTick');
  9941. }
  9942. }
  9943. var _resolve;
  9944. if (!vm.__next_tick_callbacks) {
  9945. vm.__next_tick_callbacks = [];
  9946. }
  9947. vm.__next_tick_callbacks.push(function () {
  9948. if (cb) {
  9949. try {
  9950. cb.call(vm);
  9951. } catch (e) {
  9952. handleError(e, vm, 'nextTick');
  9953. }
  9954. } else if (_resolve) {
  9955. _resolve(vm);
  9956. }
  9957. });
  9958. // $flow-disable-line
  9959. if (!cb && typeof Promise !== 'undefined') {
  9960. return new Promise(function (resolve) {
  9961. _resolve = resolve;
  9962. })
  9963. }
  9964. }
  9965. /* */
  9966. function cloneWithData(vm) {
  9967. // 确保当前 vm 所有数据被同步
  9968. var ret = Object.create(null);
  9969. var dataKeys = [].concat(
  9970. Object.keys(vm._data || {}),
  9971. Object.keys(vm._computedWatchers || {}));
  9972. dataKeys.reduce(function(ret, key) {
  9973. ret[key] = vm[key];
  9974. return ret
  9975. }, ret);
  9976. // vue-composition-api
  9977. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  9978. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  9979. if (rawBindings) {
  9980. Object.keys(rawBindings).forEach(function (key) {
  9981. ret[key] = vm[key];
  9982. });
  9983. }
  9984. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  9985. Object.assign(ret, vm.$mp.data || {});
  9986. if (
  9987. Array.isArray(vm.$options.behaviors) &&
  9988. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9989. ) { //form-field
  9990. ret['name'] = vm.name;
  9991. ret['value'] = vm.value;
  9992. }
  9993. return JSON.parse(JSON.stringify(ret))
  9994. }
  9995. var patch = function(oldVnode, vnode) {
  9996. var this$1 = this;
  9997. if (vnode === null) { //destroy
  9998. return
  9999. }
  10000. if (this.mpType === 'page' || this.mpType === 'component') {
  10001. var mpInstance = this.$scope;
  10002. var data = Object.create(null);
  10003. try {
  10004. data = cloneWithData(this);
  10005. } catch (err) {
  10006. console.error(err);
  10007. }
  10008. data.__webviewId__ = mpInstance.data.__webviewId__;
  10009. var mpData = Object.create(null);
  10010. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  10011. mpData[key] = mpInstance.data[key];
  10012. });
  10013. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  10014. if (Object.keys(diffData).length) {
  10015. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"caimei-applets-hehe","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10016. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  10017. ']差量更新',
  10018. JSON.stringify(diffData));
  10019. }
  10020. this.__next_tick_pending = true;
  10021. mpInstance.setData(diffData, function () {
  10022. this$1.__next_tick_pending = false;
  10023. flushCallbacks$1(this$1);
  10024. });
  10025. } else {
  10026. flushCallbacks$1(this);
  10027. }
  10028. }
  10029. };
  10030. /* */
  10031. function createEmptyRender() {
  10032. }
  10033. function mountComponent$1(
  10034. vm,
  10035. el,
  10036. hydrating
  10037. ) {
  10038. if (!vm.mpType) {//main.js 中的 new Vue
  10039. return vm
  10040. }
  10041. if (vm.mpType === 'app') {
  10042. vm.$options.render = createEmptyRender;
  10043. }
  10044. if (!vm.$options.render) {
  10045. vm.$options.render = createEmptyRender;
  10046. if (true) {
  10047. /* istanbul ignore if */
  10048. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  10049. vm.$options.el || el) {
  10050. warn(
  10051. 'You are using the runtime-only build of Vue where the template ' +
  10052. 'compiler is not available. Either pre-compile the templates into ' +
  10053. 'render functions, or use the compiler-included build.',
  10054. vm
  10055. );
  10056. } else {
  10057. warn(
  10058. 'Failed to mount component: template or render function not defined.',
  10059. vm
  10060. );
  10061. }
  10062. }
  10063. }
  10064. !vm._$fallback && callHook(vm, 'beforeMount');
  10065. var updateComponent = function () {
  10066. vm._update(vm._render(), hydrating);
  10067. };
  10068. // we set this to vm._watcher inside the watcher's constructor
  10069. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  10070. // component's mounted hook), which relies on vm._watcher being already defined
  10071. new Watcher(vm, updateComponent, noop, {
  10072. before: function before() {
  10073. if (vm._isMounted && !vm._isDestroyed) {
  10074. callHook(vm, 'beforeUpdate');
  10075. }
  10076. }
  10077. }, true /* isRenderWatcher */);
  10078. hydrating = false;
  10079. return vm
  10080. }
  10081. /* */
  10082. function renderClass (
  10083. staticClass,
  10084. dynamicClass
  10085. ) {
  10086. if (isDef(staticClass) || isDef(dynamicClass)) {
  10087. return concat(staticClass, stringifyClass(dynamicClass))
  10088. }
  10089. /* istanbul ignore next */
  10090. return ''
  10091. }
  10092. function concat (a, b) {
  10093. return a ? b ? (a + ' ' + b) : a : (b || '')
  10094. }
  10095. function stringifyClass (value) {
  10096. if (Array.isArray(value)) {
  10097. return stringifyArray(value)
  10098. }
  10099. if (isObject(value)) {
  10100. return stringifyObject(value)
  10101. }
  10102. if (typeof value === 'string') {
  10103. return value
  10104. }
  10105. /* istanbul ignore next */
  10106. return ''
  10107. }
  10108. function stringifyArray (value) {
  10109. var res = '';
  10110. var stringified;
  10111. for (var i = 0, l = value.length; i < l; i++) {
  10112. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  10113. if (res) { res += ' '; }
  10114. res += stringified;
  10115. }
  10116. }
  10117. return res
  10118. }
  10119. function stringifyObject (value) {
  10120. var res = '';
  10121. for (var key in value) {
  10122. if (value[key]) {
  10123. if (res) { res += ' '; }
  10124. res += key;
  10125. }
  10126. }
  10127. return res
  10128. }
  10129. /* */
  10130. var parseStyleText = cached(function (cssText) {
  10131. var res = {};
  10132. var listDelimiter = /;(?![^(]*\))/g;
  10133. var propertyDelimiter = /:(.+)/;
  10134. cssText.split(listDelimiter).forEach(function (item) {
  10135. if (item) {
  10136. var tmp = item.split(propertyDelimiter);
  10137. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  10138. }
  10139. });
  10140. return res
  10141. });
  10142. // normalize possible array / string values into Object
  10143. function normalizeStyleBinding (bindingStyle) {
  10144. if (Array.isArray(bindingStyle)) {
  10145. return toObject(bindingStyle)
  10146. }
  10147. if (typeof bindingStyle === 'string') {
  10148. return parseStyleText(bindingStyle)
  10149. }
  10150. return bindingStyle
  10151. }
  10152. /* */
  10153. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  10154. function getTarget(obj, path) {
  10155. var parts = path.split('.');
  10156. var key = parts[0];
  10157. if (key.indexOf('__$n') === 0) { //number index
  10158. key = parseInt(key.replace('__$n', ''));
  10159. }
  10160. if (parts.length === 1) {
  10161. return obj[key]
  10162. }
  10163. return getTarget(obj[key], parts.slice(1).join('.'))
  10164. }
  10165. function internalMixin(Vue) {
  10166. Vue.config.errorHandler = function(err, vm, info) {
  10167. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  10168. console.error(err);
  10169. /* eslint-disable no-undef */
  10170. var app = typeof getApp === 'function' && getApp();
  10171. if (app && app.onError) {
  10172. app.onError(err);
  10173. }
  10174. };
  10175. var oldEmit = Vue.prototype.$emit;
  10176. Vue.prototype.$emit = function(event) {
  10177. if (this.$scope && event) {
  10178. this.$scope['triggerEvent'](event, {
  10179. __args__: toArray(arguments, 1)
  10180. });
  10181. }
  10182. return oldEmit.apply(this, arguments)
  10183. };
  10184. Vue.prototype.$nextTick = function(fn) {
  10185. return nextTick$1(this, fn)
  10186. };
  10187. MP_METHODS.forEach(function (method) {
  10188. Vue.prototype[method] = function(args) {
  10189. if (this.$scope && this.$scope[method]) {
  10190. return this.$scope[method](args)
  10191. }
  10192. // mp-alipay
  10193. if (typeof my === 'undefined') {
  10194. return
  10195. }
  10196. if (method === 'createSelectorQuery') {
  10197. /* eslint-disable no-undef */
  10198. return my.createSelectorQuery(args)
  10199. } else if (method === 'createIntersectionObserver') {
  10200. /* eslint-disable no-undef */
  10201. return my.createIntersectionObserver(args)
  10202. }
  10203. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  10204. };
  10205. });
  10206. Vue.prototype.__init_provide = initProvide;
  10207. Vue.prototype.__init_injections = initInjections;
  10208. Vue.prototype.__call_hook = function(hook, args) {
  10209. var vm = this;
  10210. // #7573 disable dep collection when invoking lifecycle hooks
  10211. pushTarget();
  10212. var handlers = vm.$options[hook];
  10213. var info = hook + " hook";
  10214. var ret;
  10215. if (handlers) {
  10216. for (var i = 0, j = handlers.length; i < j; i++) {
  10217. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  10218. }
  10219. }
  10220. if (vm._hasHookEvent) {
  10221. vm.$emit('hook:' + hook, args);
  10222. }
  10223. popTarget();
  10224. return ret
  10225. };
  10226. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  10227. if (Array.isArray(modifiers)) {
  10228. if (modifiers.indexOf('trim') !== -1) {
  10229. value = value.trim();
  10230. }
  10231. if (modifiers.indexOf('number') !== -1) {
  10232. value = this._n(value);
  10233. }
  10234. }
  10235. if (!target) {
  10236. target = this;
  10237. }
  10238. target[key] = value;
  10239. };
  10240. Vue.prototype.__set_sync = function(target, key, value) {
  10241. if (!target) {
  10242. target = this;
  10243. }
  10244. target[key] = value;
  10245. };
  10246. Vue.prototype.__get_orig = function(item) {
  10247. if (isPlainObject(item)) {
  10248. return item['$orig'] || item
  10249. }
  10250. return item
  10251. };
  10252. Vue.prototype.__get_value = function(dataPath, target) {
  10253. return getTarget(target || this, dataPath)
  10254. };
  10255. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  10256. return renderClass(staticClass, dynamicClass)
  10257. };
  10258. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  10259. if (!dynamicStyle && !staticStyle) {
  10260. return ''
  10261. }
  10262. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  10263. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  10264. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  10265. };
  10266. Vue.prototype.__map = function(val, iteratee) {
  10267. //TODO 暂不考虑 string
  10268. var ret, i, l, keys, key;
  10269. if (Array.isArray(val)) {
  10270. ret = new Array(val.length);
  10271. for (i = 0, l = val.length; i < l; i++) {
  10272. ret[i] = iteratee(val[i], i);
  10273. }
  10274. return ret
  10275. } else if (isObject(val)) {
  10276. keys = Object.keys(val);
  10277. ret = Object.create(null);
  10278. for (i = 0, l = keys.length; i < l; i++) {
  10279. key = keys[i];
  10280. ret[key] = iteratee(val[key], key, i);
  10281. }
  10282. return ret
  10283. } else if (typeof val === 'number') {
  10284. ret = new Array(val);
  10285. for (i = 0, l = val; i < l; i++) {
  10286. // 第一个参数暂时仍和小程序一致
  10287. ret[i] = iteratee(i, i);
  10288. }
  10289. return ret
  10290. }
  10291. return []
  10292. };
  10293. }
  10294. /* */
  10295. var LIFECYCLE_HOOKS$1 = [
  10296. //App
  10297. 'onLaunch',
  10298. 'onShow',
  10299. 'onHide',
  10300. 'onUniNViewMessage',
  10301. 'onPageNotFound',
  10302. 'onThemeChange',
  10303. 'onError',
  10304. 'onUnhandledRejection',
  10305. //Page
  10306. 'onInit',
  10307. 'onLoad',
  10308. // 'onShow',
  10309. 'onReady',
  10310. // 'onHide',
  10311. 'onUnload',
  10312. 'onPullDownRefresh',
  10313. 'onReachBottom',
  10314. 'onTabItemTap',
  10315. 'onAddToFavorites',
  10316. 'onShareTimeline',
  10317. 'onShareAppMessage',
  10318. 'onResize',
  10319. 'onPageScroll',
  10320. 'onNavigationBarButtonTap',
  10321. 'onBackPress',
  10322. 'onNavigationBarSearchInputChanged',
  10323. 'onNavigationBarSearchInputConfirmed',
  10324. 'onNavigationBarSearchInputClicked',
  10325. //Component
  10326. // 'onReady', // 兼容旧版本,应该移除该事件
  10327. 'onPageShow',
  10328. 'onPageHide',
  10329. 'onPageResize'
  10330. ];
  10331. function lifecycleMixin$1(Vue) {
  10332. //fixed vue-class-component
  10333. var oldExtend = Vue.extend;
  10334. Vue.extend = function(extendOptions) {
  10335. extendOptions = extendOptions || {};
  10336. var methods = extendOptions.methods;
  10337. if (methods) {
  10338. Object.keys(methods).forEach(function (methodName) {
  10339. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  10340. extendOptions[methodName] = methods[methodName];
  10341. delete methods[methodName];
  10342. }
  10343. });
  10344. }
  10345. return oldExtend.call(this, extendOptions)
  10346. };
  10347. var strategies = Vue.config.optionMergeStrategies;
  10348. var mergeHook = strategies.created;
  10349. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  10350. strategies[hook] = mergeHook;
  10351. });
  10352. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  10353. }
  10354. /* */
  10355. // install platform patch function
  10356. Vue.prototype.__patch__ = patch;
  10357. // public mount method
  10358. Vue.prototype.$mount = function(
  10359. el ,
  10360. hydrating
  10361. ) {
  10362. return mountComponent$1(this, el, hydrating)
  10363. };
  10364. lifecycleMixin$1(Vue);
  10365. internalMixin(Vue);
  10366. /* */
  10367. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  10368. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  10369. /***/ }),
  10370. /***/ 30:
  10371. /*!**********************************************************************!*\
  10372. !*** D:/yuwenjun_dev/caimei-applets-hehe/services/public.service.js ***!
  10373. \**********************************************************************/
  10374. /*! no static exports found */
  10375. /***/ (function(module, exports, __webpack_require__) {
  10376. "use strict";
  10377. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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;} /**
  10378. * 这是所有模块公用业务逻辑的服务
  10379. */var
  10380. PublicService = /*#__PURE__*/function () {
  10381. function PublicService(AjaxService) {_classCallCheck(this, PublicService);
  10382. Object.assign(this, { AjaxService: AjaxService });
  10383. this.name = 'PublicService';
  10384. }
  10385. /**
  10386. * 获取地址
  10387. */_createClass(PublicService, [{ key: "GetAllAddressData", value: function GetAllAddressData()
  10388. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10389. return this.AjaxService.get({
  10390. url: '/other/list',
  10391. data: data,
  10392. isLoading: false });
  10393. }
  10394. /**
  10395. * 发送手机验证码
  10396. * mobile 手机号
  10397. */ }, { key: "GetheHeSend", value: function GetheHeSend()
  10398. {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10399. return this.AjaxService.get({
  10400. url: '/user/he/send',
  10401. data: data,
  10402. isLoading: true });
  10403. } }]);return PublicService;}();exports.default = PublicService;
  10404. /***/ }),
  10405. /***/ 371:
  10406. /*!************************************************************************************!*\
  10407. !*** D:/yuwenjun_dev/caimei-applets-hehe/components/clipboard/clipboard.thorui.js ***!
  10408. \************************************************************************************/
  10409. /*! no static exports found */
  10410. /***/ (function(module, exports, __webpack_require__) {
  10411. /* WEBPACK VAR INJECTION */(function(uni) {/**
  10412. * 复制文本 兼容H5
  10413. * 来自 ThorUI www.thorui.cn | 文档地址: www.donarui.com
  10414. * @author echo.
  10415. * @version 1.0.0
  10416. **/
  10417. var thorui = {
  10418. getClipboardData: function getClipboardData(data, callback) {
  10419. uni.setClipboardData({
  10420. data: data,
  10421. success: function success(res) {
  10422. uni.getClipboardData({
  10423. success: function success(res) {
  10424. "function" == typeof callback && callback(true);
  10425. },
  10426. fail: function fail(res) {
  10427. "function" == typeof callback && callback(false);
  10428. } });
  10429. },
  10430. fail: function fail(res) {
  10431. "function" == typeof callback && callback(false);
  10432. } });
  10433. } };
  10434. module.exports = {
  10435. getClipboardData: thorui.getClipboardData };
  10436. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  10437. /***/ }),
  10438. /***/ 4:
  10439. /*!*************************************************************!*\
  10440. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  10441. \*************************************************************/
  10442. /*! no static exports found */
  10443. /***/ (function(module, exports, __webpack_require__) {
  10444. "use strict";
  10445. /* 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;
  10446. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  10447. var defaultDelimiters = ['{', '}'];var
  10448. BaseFormatter = /*#__PURE__*/function () {
  10449. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  10450. this._caches = Object.create(null);
  10451. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  10452. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  10453. if (!values) {
  10454. return [message];
  10455. }
  10456. var tokens = this._caches[message];
  10457. if (!tokens) {
  10458. tokens = parse(message, delimiters);
  10459. this._caches[message] = tokens;
  10460. }
  10461. return compile(tokens, values);
  10462. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  10463. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  10464. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  10465. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  10466. var tokens = [];
  10467. var position = 0;
  10468. var text = '';
  10469. while (position < format.length) {
  10470. var char = format[position++];
  10471. if (char === startDelimiter) {
  10472. if (text) {
  10473. tokens.push({ type: 'text', value: text });
  10474. }
  10475. text = '';
  10476. var sub = '';
  10477. char = format[position++];
  10478. while (char !== undefined && char !== endDelimiter) {
  10479. sub += char;
  10480. char = format[position++];
  10481. }
  10482. var isClosed = char === endDelimiter;
  10483. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  10484. 'list' :
  10485. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  10486. 'named' :
  10487. 'unknown';
  10488. tokens.push({ value: sub, type: type });
  10489. }
  10490. // else if (char === '%') {
  10491. // // when found rails i18n syntax, skip text capture
  10492. // if (format[position] !== '{') {
  10493. // text += char
  10494. // }
  10495. // }
  10496. else {
  10497. text += char;
  10498. }
  10499. }
  10500. text && tokens.push({ type: 'text', value: text });
  10501. return tokens;
  10502. }
  10503. function compile(tokens, values) {
  10504. var compiled = [];
  10505. var index = 0;
  10506. var mode = isArray(values) ?
  10507. 'list' :
  10508. isObject(values) ?
  10509. 'named' :
  10510. 'unknown';
  10511. if (mode === 'unknown') {
  10512. return compiled;
  10513. }
  10514. while (index < tokens.length) {
  10515. var token = tokens[index];
  10516. switch (token.type) {
  10517. case 'text':
  10518. compiled.push(token.value);
  10519. break;
  10520. case 'list':
  10521. compiled.push(values[parseInt(token.value, 10)]);
  10522. break;
  10523. case 'named':
  10524. if (mode === 'named') {
  10525. compiled.push(values[token.value]);
  10526. } else
  10527. {
  10528. if (true) {
  10529. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  10530. }
  10531. }
  10532. break;
  10533. case 'unknown':
  10534. if (true) {
  10535. console.warn("Detect 'unknown' type of token!");
  10536. }
  10537. break;}
  10538. index++;
  10539. }
  10540. return compiled;
  10541. }
  10542. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  10543. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  10544. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  10545. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  10546. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  10547. var hasOwnProperty = Object.prototype.hasOwnProperty;
  10548. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  10549. var defaultFormatter = new BaseFormatter();
  10550. function include(str, parts) {
  10551. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  10552. }
  10553. function startsWith(str, parts) {
  10554. return parts.find(function (part) {return str.indexOf(part) === 0;});
  10555. }
  10556. function normalizeLocale(locale, messages) {
  10557. if (!locale) {
  10558. return;
  10559. }
  10560. locale = locale.trim().replace(/_/g, '-');
  10561. if (messages && messages[locale]) {
  10562. return locale;
  10563. }
  10564. locale = locale.toLowerCase();
  10565. if (locale.indexOf('zh') === 0) {
  10566. if (locale.indexOf('-hans') > -1) {
  10567. return LOCALE_ZH_HANS;
  10568. }
  10569. if (locale.indexOf('-hant') > -1) {
  10570. return LOCALE_ZH_HANT;
  10571. }
  10572. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  10573. return LOCALE_ZH_HANT;
  10574. }
  10575. return LOCALE_ZH_HANS;
  10576. }
  10577. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  10578. if (lang) {
  10579. return lang;
  10580. }
  10581. }var
  10582. I18n = /*#__PURE__*/function () {
  10583. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  10584. this.locale = LOCALE_EN;
  10585. this.fallbackLocale = LOCALE_EN;
  10586. this.message = {};
  10587. this.messages = {};
  10588. this.watchers = [];
  10589. if (fallbackLocale) {
  10590. this.fallbackLocale = fallbackLocale;
  10591. }
  10592. this.formater = formater || defaultFormatter;
  10593. this.messages = messages || {};
  10594. this.setLocale(locale || LOCALE_EN);
  10595. if (watcher) {
  10596. this.watchLocale(watcher);
  10597. }
  10598. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  10599. locale) {var _this = this;
  10600. var oldLocale = this.locale;
  10601. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  10602. if (!this.messages[this.locale]) {
  10603. // 可能初始化时不存在
  10604. this.messages[this.locale] = {};
  10605. }
  10606. this.message = this.messages[this.locale];
  10607. // 仅发生变化时,通知
  10608. if (oldLocale !== this.locale) {
  10609. this.watchers.forEach(function (watcher) {
  10610. watcher(_this.locale, oldLocale);
  10611. });
  10612. }
  10613. } }, { key: "getLocale", value: function getLocale()
  10614. {
  10615. return this.locale;
  10616. } }, { key: "watchLocale", value: function watchLocale(
  10617. fn) {var _this2 = this;
  10618. var index = this.watchers.push(fn) - 1;
  10619. return function () {
  10620. _this2.watchers.splice(index, 1);
  10621. };
  10622. } }, { key: "add", value: function add(
  10623. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  10624. var curMessages = this.messages[locale];
  10625. if (curMessages) {
  10626. if (override) {
  10627. Object.assign(curMessages, message);
  10628. } else
  10629. {
  10630. Object.keys(message).forEach(function (key) {
  10631. if (!hasOwn(curMessages, key)) {
  10632. curMessages[key] = message[key];
  10633. }
  10634. });
  10635. }
  10636. } else
  10637. {
  10638. this.messages[locale] = message;
  10639. }
  10640. } }, { key: "f", value: function f(
  10641. message, values, delimiters) {
  10642. return this.formater.interpolate(message, values, delimiters).join('');
  10643. } }, { key: "t", value: function t(
  10644. key, locale, values) {
  10645. var message = this.message;
  10646. if (typeof locale === 'string') {
  10647. locale = normalizeLocale(locale, this.messages);
  10648. locale && (message = this.messages[locale]);
  10649. } else
  10650. {
  10651. values = locale;
  10652. }
  10653. if (!hasOwn(message, key)) {
  10654. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  10655. return key;
  10656. }
  10657. return this.formater.interpolate(message[key], values).join('');
  10658. } }]);return I18n;}();exports.I18n = I18n;
  10659. function watchAppLocale(appVm, i18n) {
  10660. // 需要保证 watch 的触发在组件渲染之前
  10661. if (appVm.$watchLocale) {
  10662. // vue2
  10663. appVm.$watchLocale(function (newLocale) {
  10664. i18n.setLocale(newLocale);
  10665. });
  10666. } else
  10667. {
  10668. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  10669. i18n.setLocale(newLocale);
  10670. });
  10671. }
  10672. }
  10673. function getDefaultLocale() {
  10674. if (typeof uni !== 'undefined' && uni.getLocale) {
  10675. return uni.getLocale();
  10676. }
  10677. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  10678. if (typeof global !== 'undefined' && global.getLocale) {
  10679. return global.getLocale();
  10680. }
  10681. return LOCALE_EN;
  10682. }
  10683. 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;
  10684. // 兼容旧版本入参
  10685. if (typeof locale !== 'string') {var _ref4 =
  10686. [
  10687. messages,
  10688. locale];locale = _ref4[0];messages = _ref4[1];
  10689. }
  10690. if (typeof locale !== 'string') {
  10691. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  10692. locale = getDefaultLocale();
  10693. }
  10694. if (typeof fallbackLocale !== 'string') {
  10695. fallbackLocale =
  10696. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  10697. LOCALE_EN;
  10698. }
  10699. var i18n = new I18n({
  10700. locale: locale,
  10701. fallbackLocale: fallbackLocale,
  10702. messages: messages,
  10703. watcher: watcher });
  10704. var _t = function t(key, values) {
  10705. if (typeof getApp !== 'function') {
  10706. // app view
  10707. /* eslint-disable no-func-assign */
  10708. _t = function t(key, values) {
  10709. return i18n.t(key, values);
  10710. };
  10711. } else
  10712. {
  10713. var isWatchedAppLocale = false;
  10714. _t = function t(key, values) {
  10715. var appVm = getApp().$vm;
  10716. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  10717. // options: {
  10718. // type: Array,
  10719. // default () {
  10720. // return [{
  10721. // icon: 'shop',
  10722. // text: t("uni-goods-nav.options.shop"),
  10723. // }, {
  10724. // icon: 'cart',
  10725. // text: t("uni-goods-nav.options.cart")
  10726. // }]
  10727. // }
  10728. // },
  10729. if (appVm) {
  10730. // 触发响应式
  10731. appVm.$locale;
  10732. if (!isWatchedAppLocale) {
  10733. isWatchedAppLocale = true;
  10734. watchAppLocale(appVm, i18n);
  10735. }
  10736. }
  10737. return i18n.t(key, values);
  10738. };
  10739. }
  10740. return _t(key, values);
  10741. };
  10742. return {
  10743. i18n: i18n,
  10744. f: function f(message, values, delimiters) {
  10745. return i18n.f(message, values, delimiters);
  10746. },
  10747. t: function t(key, values) {
  10748. return _t(key, values);
  10749. },
  10750. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  10751. return i18n.add(locale, message, override);
  10752. },
  10753. watch: function watch(fn) {
  10754. return i18n.watchLocale(fn);
  10755. },
  10756. getLocale: function getLocale() {
  10757. return i18n.getLocale();
  10758. },
  10759. setLocale: function setLocale(newLocale) {
  10760. return i18n.setLocale(newLocale);
  10761. } };
  10762. }
  10763. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  10764. var formater;
  10765. function hasI18nJson(jsonObj, delimiters) {
  10766. if (!formater) {
  10767. formater = new BaseFormatter();
  10768. }
  10769. return walkJsonObj(jsonObj, function (jsonObj, key) {
  10770. var value = jsonObj[key];
  10771. if (isString(value)) {
  10772. if (isI18nStr(value, delimiters)) {
  10773. return true;
  10774. }
  10775. } else
  10776. {
  10777. return hasI18nJson(value, delimiters);
  10778. }
  10779. });
  10780. }
  10781. function parseI18nJson(jsonObj, values, delimiters) {
  10782. if (!formater) {
  10783. formater = new BaseFormatter();
  10784. }
  10785. walkJsonObj(jsonObj, function (jsonObj, key) {
  10786. var value = jsonObj[key];
  10787. if (isString(value)) {
  10788. if (isI18nStr(value, delimiters)) {
  10789. jsonObj[key] = compileStr(value, values, delimiters);
  10790. }
  10791. } else
  10792. {
  10793. parseI18nJson(value, values, delimiters);
  10794. }
  10795. });
  10796. return jsonObj;
  10797. }
  10798. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  10799. if (!isI18nStr(jsonStr, delimiters)) {
  10800. return jsonStr;
  10801. }
  10802. if (!formater) {
  10803. formater = new BaseFormatter();
  10804. }
  10805. var localeValues = [];
  10806. Object.keys(locales).forEach(function (name) {
  10807. if (name !== locale) {
  10808. localeValues.push({
  10809. locale: name,
  10810. values: locales[name] });
  10811. }
  10812. });
  10813. localeValues.unshift({ locale: locale, values: locales[locale] });
  10814. try {
  10815. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  10816. }
  10817. catch (e) {}
  10818. return jsonStr;
  10819. }
  10820. function isI18nStr(value, delimiters) {
  10821. return value.indexOf(delimiters[0]) > -1;
  10822. }
  10823. function compileStr(value, values, delimiters) {
  10824. return formater.interpolate(value, values, delimiters).join('');
  10825. }
  10826. function compileValue(jsonObj, key, localeValues, delimiters) {
  10827. var value = jsonObj[key];
  10828. if (isString(value)) {
  10829. // 存在国际化
  10830. if (isI18nStr(value, delimiters)) {
  10831. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  10832. if (localeValues.length > 1) {
  10833. // 格式化国际化语言
  10834. var valueLocales = jsonObj[key + 'Locales'] = {};
  10835. localeValues.forEach(function (localValue) {
  10836. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  10837. });
  10838. }
  10839. }
  10840. } else
  10841. {
  10842. compileJsonObj(value, localeValues, delimiters);
  10843. }
  10844. }
  10845. function compileJsonObj(jsonObj, localeValues, delimiters) {
  10846. walkJsonObj(jsonObj, function (jsonObj, key) {
  10847. compileValue(jsonObj, key, localeValues, delimiters);
  10848. });
  10849. return jsonObj;
  10850. }
  10851. function walkJsonObj(jsonObj, walk) {
  10852. if (isArray(jsonObj)) {
  10853. for (var i = 0; i < jsonObj.length; i++) {
  10854. if (walk(jsonObj, i)) {
  10855. return true;
  10856. }
  10857. }
  10858. } else
  10859. if (isObject(jsonObj)) {
  10860. for (var key in jsonObj) {
  10861. if (walk(jsonObj, key)) {
  10862. return true;
  10863. }
  10864. }
  10865. }
  10866. return false;
  10867. }
  10868. function resolveLocale(locales) {
  10869. return function (locale) {
  10870. if (!locale) {
  10871. return locale;
  10872. }
  10873. locale = normalizeLocale(locale) || locale;
  10874. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  10875. };
  10876. }
  10877. function resolveLocaleChain(locale) {
  10878. var chain = [];
  10879. var tokens = locale.split('-');
  10880. while (tokens.length) {
  10881. chain.push(tokens.join('-'));
  10882. tokens.pop();
  10883. }
  10884. return chain;
  10885. }
  10886. /* 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)))
  10887. /***/ }),
  10888. /***/ 40:
  10889. /*!**********************************************************************************************************!*\
  10890. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  10891. \**********************************************************************************************************/
  10892. /*! exports provided: default */
  10893. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10894. "use strict";
  10895. __webpack_require__.r(__webpack_exports__);
  10896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  10897. /* globals __VUE_SSR_CONTEXT__ */
  10898. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  10899. // This module is a runtime utility for cleaner component module output and will
  10900. // be included in the final webpack user bundle.
  10901. function normalizeComponent (
  10902. scriptExports,
  10903. render,
  10904. staticRenderFns,
  10905. functionalTemplate,
  10906. injectStyles,
  10907. scopeId,
  10908. moduleIdentifier, /* server only */
  10909. shadowMode, /* vue-cli only */
  10910. components, // fixed by xxxxxx auto components
  10911. renderjs // fixed by xxxxxx renderjs
  10912. ) {
  10913. // Vue.extend constructor export interop
  10914. var options = typeof scriptExports === 'function'
  10915. ? scriptExports.options
  10916. : scriptExports
  10917. // fixed by xxxxxx auto components
  10918. if (components) {
  10919. if (!options.components) {
  10920. options.components = {}
  10921. }
  10922. var hasOwn = Object.prototype.hasOwnProperty
  10923. for (var name in components) {
  10924. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  10925. options.components[name] = components[name]
  10926. }
  10927. }
  10928. }
  10929. // fixed by xxxxxx renderjs
  10930. if (renderjs) {
  10931. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  10932. this[renderjs.__module] = this
  10933. });
  10934. (options.mixins || (options.mixins = [])).push(renderjs)
  10935. }
  10936. // render functions
  10937. if (render) {
  10938. options.render = render
  10939. options.staticRenderFns = staticRenderFns
  10940. options._compiled = true
  10941. }
  10942. // functional template
  10943. if (functionalTemplate) {
  10944. options.functional = true
  10945. }
  10946. // scopedId
  10947. if (scopeId) {
  10948. options._scopeId = 'data-v-' + scopeId
  10949. }
  10950. var hook
  10951. if (moduleIdentifier) { // server build
  10952. hook = function (context) {
  10953. // 2.3 injection
  10954. context =
  10955. context || // cached call
  10956. (this.$vnode && this.$vnode.ssrContext) || // stateful
  10957. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  10958. // 2.2 with runInNewContext: true
  10959. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  10960. context = __VUE_SSR_CONTEXT__
  10961. }
  10962. // inject component styles
  10963. if (injectStyles) {
  10964. injectStyles.call(this, context)
  10965. }
  10966. // register component module identifier for async chunk inferrence
  10967. if (context && context._registeredComponents) {
  10968. context._registeredComponents.add(moduleIdentifier)
  10969. }
  10970. }
  10971. // used by ssr in case component is cached and beforeCreate
  10972. // never gets called
  10973. options._ssrRegister = hook
  10974. } else if (injectStyles) {
  10975. hook = shadowMode
  10976. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  10977. : injectStyles
  10978. }
  10979. if (hook) {
  10980. if (options.functional) {
  10981. // for template-only hot-reload because in that case the render fn doesn't
  10982. // go through the normalizer
  10983. options._injectStyles = hook
  10984. // register for functioal component in vue file
  10985. var originalRender = options.render
  10986. options.render = function renderWithStyleInjection (h, context) {
  10987. hook.call(context)
  10988. return originalRender(h, context)
  10989. }
  10990. } else {
  10991. // inject component registration as beforeCreate hook
  10992. var existing = options.beforeCreate
  10993. options.beforeCreate = existing
  10994. ? [].concat(existing, hook)
  10995. : [hook]
  10996. }
  10997. }
  10998. return {
  10999. exports: scriptExports,
  11000. options: options
  11001. }
  11002. }
  11003. /***/ }),
  11004. /***/ 5:
  11005. /*!******************************************************!*\
  11006. !*** D:/yuwenjun_dev/caimei-applets-hehe/pages.json ***!
  11007. \******************************************************/
  11008. /*! no static exports found */
  11009. /***/ (function(module, exports) {
  11010. /***/ }),
  11011. /***/ 50:
  11012. /*!********************************************************************!*\
  11013. !*** D:/yuwenjun_dev/caimei-applets-hehe/common/json/data.json.js ***!
  11014. \********************************************************************/
  11015. /*! no static exports found */
  11016. /***/ (function(module, exports) {
  11017. var addressList = [
  11018. {
  11019. address: "奥术大师大所打撒大是奥术大师大所打撒大是奥术大师大所打撒大是",
  11020. addressID: 2913,
  11021. city: "县",
  11022. cityID: 2,
  11023. defaultFlag: "1",
  11024. mobile: "13316418828",
  11025. phone: null,
  11026. postalCode: null,
  11027. province: "北京市",
  11028. provinceID: 1,
  11029. shouHuoRen: "郑大大",
  11030. town: "东城区282",
  11031. townID: 17,
  11032. userID: 11063 },
  11033. {
  11034. address: "奥术大师大所打撒大是奥术大师大所打撒大是奥术大师大所打撒大是",
  11035. addressID: 2913,
  11036. city: "县",
  11037. cityID: 2,
  11038. defaultFlag: "0",
  11039. mobile: "13316418828",
  11040. phone: null,
  11041. postalCode: null,
  11042. province: "北京市",
  11043. provinceID: 1,
  11044. shouHuoRen: "郑大大",
  11045. town: "东城区282",
  11046. townID: 17,
  11047. userID: 11063 }];
  11048. var cartList = [
  11049. {
  11050. "shopID": 10134,
  11051. "userID": 11052,
  11052. "name": "深圳市美轮美奂服务有限公司",
  11053. "sname": "美轮美奂",
  11054. "nameEn": null,
  11055. "site": null,
  11056. "ledgerNo": null,
  11057. "logo": "",
  11058. "rebateAmount": 0,
  11059. "level": null,
  11060. "score": null,
  11061. "productCount": null,
  11062. "legalPerson": "sdfa",
  11063. "businessLicense": null,
  11064. "businessLicenseImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHHq6AYuqFAAGOILQcRyE628.jpg",
  11065. "taxCertificate": null,
  11066. "taxCertificateImage": null,
  11067. "authorizationCertificateImage": null,
  11068. "provinceID": 19,
  11069. "cityID": 202,
  11070. "townID": 1958,
  11071. "address": "广东省深圳市宝安区",
  11072. "registeredCapital": 12,
  11073. "nature": "删掉",
  11074. "turnover": 123,
  11075. "linkMan": "非林峰",
  11076. "contractPhone": "",
  11077. "contractMobile": "18666666669",
  11078. "fax": "",
  11079. "zipCode": null,
  11080. "linkMan1": "非林峰",
  11081. "duty1": null,
  11082. "contractPhone1": null,
  11083. "contractMobile1": "18666666669",
  11084. "contractQQ1": null,
  11085. "wechat1": null,
  11086. "contractEmail1": "18666666669@qq.com",
  11087. "linkMan2": "非林峰",
  11088. "duty2": null,
  11089. "contractPhone2": null,
  11090. "contractMobile2": "18666666669",
  11091. "contractQQ2": null,
  11092. "wechat2": null,
  11093. "contractEmail2": "18666666669@qq.com",
  11094. "scope": null,
  11095. "info": "啊大噶撒打发",
  11096. "productDesc": "暗杀士大夫",
  11097. "lng": null,
  11098. "lat": null,
  11099. "addTime": "2021-03-09 15:07:32",
  11100. "auditStatus": "1",
  11101. "auditTime": "2021-03-09 03:08:37",
  11102. "auditNote": null,
  11103. "favoriteTimes": 0,
  11104. "validFlag": "1",
  11105. "payFlag1": null,
  11106. "auditFlag1": null,
  11107. "payFlag2": null,
  11108. "auditFlag2": null,
  11109. "payFlag3": null,
  11110. "auditFlag3": null,
  11111. "note": null,
  11112. "status": 90,
  11113. "sortIndex": null,
  11114. "rate1": null,
  11115. "rate2": null,
  11116. "masterFlag": null,
  11117. "erpFlag": null,
  11118. "shopSecret": null,
  11119. "masterLogo": null,
  11120. "cooperateFlag": null,
  11121. "bail": null,
  11122. "businessScope": "仪器护理类/撒打发",
  11123. "socialCreditCode": "123456789987654321",
  11124. "mainpro": "产品",
  11125. "firstShopType": "1",
  11126. "secondShopType": "3",
  11127. "medicalPracticeLicenseImg1": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BQeHGANhPUAABorQhpGjU343.jpg",
  11128. "medicalPracticeLicenseImg2": null,
  11129. "medicalPracticeLicenseImg3": null,
  11130. "bankAccount": null,
  11131. "bankAccountName": null,
  11132. "bankName": null,
  11133. "ableRebateAmount": 0,
  11134. "totalPrice": 72.1075,
  11135. "productsList": [
  11136. {
  11137. "productID": 6421,
  11138. "brandID": 25,
  11139. "tinyTypeID": 1120,
  11140. "classifyId": null,
  11141. "preferredFlag": null,
  11142. "selfTypeID": null,
  11143. "shopID": 10134,
  11144. "name": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  11145. "aliasName": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  11146. "searchKey": "##########",
  11147. "productRemarks": null,
  11148. "normalPrice": 15.25,
  11149. "price": 15.25,
  11150. "highestUserLevelPrice": null,
  11151. "lowestUserLevelPrice": null,
  11152. "lowestUserLevelID": null,
  11153. "price0": null,
  11154. "price0Grade": null,
  11155. "price0Text": null,
  11156. "price0TextFlag": null,
  11157. "price1": 15.25,
  11158. "price1Grade": null,
  11159. "price1Text": null,
  11160. "price1TextFlag": "2",
  11161. "price8": null,
  11162. "price8Grade": null,
  11163. "price8Text": null,
  11164. "price8TextFlag": null,
  11165. "ladderPriceFlag": "0",
  11166. "price2": null,
  11167. "price3": null,
  11168. "price4": null,
  11169. "price5": null,
  11170. "price6": null,
  11171. "price7": null,
  11172. "fee": null,
  11173. "stock": 100,
  11174. "hasSkuFlag": "1",
  11175. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHJGCARS7iAAVlWLR-uKU385.jpg",
  11176. "propertiesInfo": null,
  11177. "addTime": "2021-03-09 15:32:19",
  11178. "updateTime": "2021-03-09 15:32:19",
  11179. "classifyAddTime": null,
  11180. "sellNumber": 0,
  11181. "weekSellNumber": null,
  11182. "beforeValidFlag": null,
  11183. "validFlag": "2",
  11184. "favoriteTimes": 0,
  11185. "commentScore": 0,
  11186. "commentTimes": 0,
  11187. "selfRecommendFlag": null,
  11188. "sysRecommendFlag": null,
  11189. "sortIndex": 0,
  11190. "featuredFlag": "0",
  11191. "featuredSortIndex": null,
  11192. "productCode": "sdfsSGZee3336421",
  11193. "rate1": null,
  11194. "rate2": null,
  11195. "unit": "瓶",
  11196. "synToERPFlag": null,
  11197. "allAreaFlag": "1",
  11198. "provinceIDs": "0",
  11199. "serviceNumber": "1",
  11200. "maxBuyNumber": null,
  11201. "virtualFlag": null,
  11202. "minBuyNumber": 1,
  11203. "packageCount": null,
  11204. "byFlag": null,
  11205. "normalProductFlag": 1,
  11206. "wholeSaleProductFlag": null,
  11207. "promotionProductFlag": null,
  11208. "groupBuyProductFlag": null,
  11209. "step": 1,
  11210. "speCommisionFlag": null,
  11211. "speCommision": null,
  11212. "videourl": null,
  11213. "props": null,
  11214. "providers": null,
  11215. "serviceCommissionRatio": null,
  11216. "reCommissionRatio": null,
  11217. "pushToERPName": null,
  11218. "prodBeans": null,
  11219. "useBeansFlag": null,
  11220. "privateFlag": null,
  11221. "invisibleServiceProviderIDs": null,
  11222. "displayOnCRMFlag": null,
  11223. "needServiceFlag": null,
  11224. "actFlag": 0,
  11225. "actStatus": null,
  11226. "actSort": null,
  11227. "actPrice0": null,
  11228. "actPrice1": null,
  11229. "actPrice2": null,
  11230. "actPrice3": null,
  11231. "actPrice4": null,
  11232. "actPrice5": null,
  11233. "actPrice6": null,
  11234. "actPrice7": null,
  11235. "actType": null,
  11236. "actCreateTime": null,
  11237. "actFullReduceAmount": null,
  11238. "actReduceAmount": null,
  11239. "visibility": "3",
  11240. "actFullGiftAmount": null,
  11241. "actBuyGiftNum": null,
  11242. "beginTime": null,
  11243. "endTime": null,
  11244. "shopIndexModuleID": null,
  11245. "onlineTime": null,
  11246. "downlineTime": null,
  11247. "freePostFlag": "2",
  11248. "crmBigTypeId": null,
  11249. "crmSmallTypeId": null,
  11250. "costPrice": 10,
  11251. "costProportional": null,
  11252. "costCheckFlag": "1",
  11253. "precisehKey": null,
  11254. "docBoost": null,
  11255. "cmbeanFlag": null,
  11256. "cmbeanPrice": null,
  11257. "cmbeanSort": null,
  11258. "tags": "注射",
  11259. "surplusTime": null,
  11260. "productType": "1",
  11261. "machineType": "",
  11262. "qualificationImg": "",
  11263. "includedTax": "0",
  11264. "taxPoint": 10,
  11265. "supplierTaxPoint": 10,
  11266. "invoiceType": "3",
  11267. "recommendType": "0",
  11268. "skuID": null,
  11269. "priceType": null,
  11270. "combinationID": null,
  11271. "combinationSort": null,
  11272. "productCategory": "1",
  11273. "auditReason": null,
  11274. "commodityType": "1",
  11275. "retailPrice": 15.25,
  11276. "discountPrice": null,
  11277. "tagsList": null,
  11278. "imageList": null,
  11279. "productDetail": null,
  11280. "productCount": 1,
  11281. "ladderPriceList": null,
  11282. "shop": null,
  11283. "sellerCartId": 3771,
  11284. "productsChecked": false,
  11285. "repurchasePriceState": false,
  11286. "initProductNum": null,
  11287. "totalPrice": null,
  11288. "failureState": null,
  11289. "smallTypeID": 1037,
  11290. "bigTypeID": 1013,
  11291. "typeName": null,
  11292. "parametersList": null,
  11293. "brandName": null,
  11294. "bigTypeName": null,
  11295. "smallTypeName": null,
  11296. "tinyTypeName": null,
  11297. "activityDiscount": null,
  11298. "promotions": null,
  11299. "giftType": null,
  11300. "userIdentity": null,
  11301. "isChecked": false,
  11302. "detailTalkFlag": null,
  11303. "shopName": null,
  11304. "beautyActFlag": null },
  11305. {
  11306. "productID": 6420,
  11307. "brandID": 25,
  11308. "tinyTypeID": null,
  11309. "classifyId": null,
  11310. "preferredFlag": null,
  11311. "selfTypeID": null,
  11312. "shopID": 10134,
  11313. "name": "【测试用】润百颜注射修饰透明质酸钠凝胶1ml",
  11314. "aliasName": "【测试用】润百颜注射修饰透明质酸钠凝胶1ml",
  11315. "searchKey": "##########",
  11316. "productRemarks": null,
  11317. "normalPrice": 25.75,
  11318. "price": 25.75,
  11319. "highestUserLevelPrice": null,
  11320. "lowestUserLevelPrice": null,
  11321. "lowestUserLevelID": null,
  11322. "price0": null,
  11323. "price0Grade": null,
  11324. "price0Text": null,
  11325. "price0TextFlag": null,
  11326. "price1": 25.75,
  11327. "price1Grade": null,
  11328. "price1Text": null,
  11329. "price1TextFlag": "2",
  11330. "price8": null,
  11331. "price8Grade": null,
  11332. "price8Text": null,
  11333. "price8TextFlag": null,
  11334. "ladderPriceFlag": "0",
  11335. "price2": null,
  11336. "price3": null,
  11337. "price4": null,
  11338. "price5": null,
  11339. "price6": null,
  11340. "price7": null,
  11341. "fee": null,
  11342. "stock": 100,
  11343. "hasSkuFlag": "1",
  11344. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHIIWATL05AAGHUpelz2U374.jpg",
  11345. "propertiesInfo": null,
  11346. "addTime": "2021-03-09 15:15:45",
  11347. "updateTime": "2021-03-09 15:15:45",
  11348. "classifyAddTime": null,
  11349. "sellNumber": 0,
  11350. "weekSellNumber": null,
  11351. "beforeValidFlag": null,
  11352. "validFlag": "2",
  11353. "favoriteTimes": 0,
  11354. "commentScore": 0,
  11355. "commentTimes": 0,
  11356. "selfRecommendFlag": null,
  11357. "sysRecommendFlag": null,
  11358. "sortIndex": 0,
  11359. "featuredFlag": "0",
  11360. "featuredSortIndex": null,
  11361. "productCode": "kscz6420",
  11362. "rate1": null,
  11363. "rate2": null,
  11364. "unit": "盒",
  11365. "synToERPFlag": null,
  11366. "allAreaFlag": "1",
  11367. "provinceIDs": "0",
  11368. "serviceNumber": "1",
  11369. "maxBuyNumber": null,
  11370. "virtualFlag": null,
  11371. "minBuyNumber": 1,
  11372. "packageCount": null,
  11373. "byFlag": null,
  11374. "normalProductFlag": 1,
  11375. "wholeSaleProductFlag": null,
  11376. "promotionProductFlag": null,
  11377. "groupBuyProductFlag": null,
  11378. "step": 1,
  11379. "speCommisionFlag": null,
  11380. "speCommision": null,
  11381. "videourl": null,
  11382. "props": null,
  11383. "providers": null,
  11384. "serviceCommissionRatio": null,
  11385. "reCommissionRatio": null,
  11386. "pushToERPName": null,
  11387. "prodBeans": null,
  11388. "useBeansFlag": null,
  11389. "privateFlag": null,
  11390. "invisibleServiceProviderIDs": null,
  11391. "displayOnCRMFlag": null,
  11392. "needServiceFlag": null,
  11393. "actFlag": 0,
  11394. "actStatus": null,
  11395. "actSort": null,
  11396. "actPrice0": null,
  11397. "actPrice1": null,
  11398. "actPrice2": null,
  11399. "actPrice3": null,
  11400. "actPrice4": null,
  11401. "actPrice5": null,
  11402. "actPrice6": null,
  11403. "actPrice7": null,
  11404. "actType": null,
  11405. "actCreateTime": null,
  11406. "actFullReduceAmount": null,
  11407. "actReduceAmount": null,
  11408. "visibility": "3",
  11409. "actFullGiftAmount": null,
  11410. "actBuyGiftNum": null,
  11411. "beginTime": null,
  11412. "endTime": null,
  11413. "shopIndexModuleID": null,
  11414. "onlineTime": null,
  11415. "downlineTime": null,
  11416. "freePostFlag": "2",
  11417. "crmBigTypeId": null,
  11418. "crmSmallTypeId": null,
  11419. "costPrice": 20,
  11420. "costProportional": null,
  11421. "costCheckFlag": "1",
  11422. "precisehKey": null,
  11423. "docBoost": null,
  11424. "cmbeanFlag": null,
  11425. "cmbeanPrice": null,
  11426. "cmbeanSort": null,
  11427. "tags": "注射",
  11428. "surplusTime": null,
  11429. "productType": "1",
  11430. "machineType": "",
  11431. "qualificationImg": "",
  11432. "includedTax": "0",
  11433. "taxPoint": 10,
  11434. "supplierTaxPoint": 10,
  11435. "invoiceType": "2",
  11436. "recommendType": "0",
  11437. "skuID": null,
  11438. "priceType": null,
  11439. "combinationID": null,
  11440. "combinationSort": null,
  11441. "productCategory": "1",
  11442. "auditReason": null,
  11443. "commodityType": "1",
  11444. "retailPrice": 28.325,
  11445. "discountPrice": null,
  11446. "tagsList": null,
  11447. "imageList": null,
  11448. "productDetail": null,
  11449. "productCount": 1,
  11450. "ladderPriceList": null,
  11451. "shop": null,
  11452. "sellerCartId": 3772,
  11453. "productsChecked": false,
  11454. "repurchasePriceState": false,
  11455. "initProductNum": null,
  11456. "totalPrice": null,
  11457. "failureState": null,
  11458. "smallTypeID": null,
  11459. "bigTypeID": 1014,
  11460. "typeName": null,
  11461. "parametersList": null,
  11462. "brandName": null,
  11463. "bigTypeName": null,
  11464. "smallTypeName": null,
  11465. "tinyTypeName": null,
  11466. "activityDiscount": null,
  11467. "promotions": null,
  11468. "giftType": null,
  11469. "userIdentity": null,
  11470. "isChecked": false,
  11471. "detailTalkFlag": null,
  11472. "shopName": null,
  11473. "beautyActFlag": null },
  11474. {
  11475. "productID": 6419,
  11476. "brandID": 1,
  11477. "tinyTypeID": null,
  11478. "classifyId": null,
  11479. "preferredFlag": null,
  11480. "selfTypeID": null,
  11481. "shopID": 10134,
  11482. "name": "【测试用】Dermaheal HSR 德玛莉肌活丝蕴凝颜精华液",
  11483. "aliasName": "【测试用】Dermaheal HSR 德玛莉肌活丝蕴凝颜精华液",
  11484. "searchKey": "##########",
  11485. "productRemarks": null,
  11486. "normalPrice": 25.25,
  11487. "price": 25.25,
  11488. "highestUserLevelPrice": null,
  11489. "lowestUserLevelPrice": null,
  11490. "lowestUserLevelID": null,
  11491. "price0": null,
  11492. "price0Grade": null,
  11493. "price0Text": null,
  11494. "price0TextFlag": null,
  11495. "price1": 25.25,
  11496. "price1Grade": null,
  11497. "price1Text": null,
  11498. "price1TextFlag": "2",
  11499. "price8": null,
  11500. "price8Grade": null,
  11501. "price8Text": null,
  11502. "price8TextFlag": null,
  11503. "ladderPriceFlag": "0",
  11504. "price2": null,
  11505. "price3": null,
  11506. "price4": null,
  11507. "price5": null,
  11508. "price6": null,
  11509. "price7": null,
  11510. "fee": null,
  11511. "stock": 200,
  11512. "hasSkuFlag": "1",
  11513. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHH8aAFiGIAAGHr5DovGA124.jpg",
  11514. "propertiesInfo": null,
  11515. "addTime": "2021-03-09 15:12:28",
  11516. "updateTime": "2021-03-09 15:12:28",
  11517. "classifyAddTime": null,
  11518. "sellNumber": 0,
  11519. "weekSellNumber": null,
  11520. "beforeValidFlag": null,
  11521. "validFlag": "2",
  11522. "favoriteTimes": 0,
  11523. "commentScore": 0,
  11524. "commentTimes": 0,
  11525. "selfRecommendFlag": null,
  11526. "sysRecommendFlag": null,
  11527. "sortIndex": 0,
  11528. "featuredFlag": "0",
  11529. "featuredSortIndex": null,
  11530. "productCode": "FWLCP6419",
  11531. "rate1": null,
  11532. "rate2": null,
  11533. "unit": "片",
  11534. "synToERPFlag": null,
  11535. "allAreaFlag": "1",
  11536. "provinceIDs": "0",
  11537. "serviceNumber": "1",
  11538. "maxBuyNumber": null,
  11539. "virtualFlag": null,
  11540. "minBuyNumber": 1,
  11541. "packageCount": null,
  11542. "byFlag": null,
  11543. "normalProductFlag": 1,
  11544. "wholeSaleProductFlag": null,
  11545. "promotionProductFlag": null,
  11546. "groupBuyProductFlag": null,
  11547. "step": 1,
  11548. "speCommisionFlag": null,
  11549. "speCommision": null,
  11550. "videourl": null,
  11551. "props": null,
  11552. "providers": null,
  11553. "serviceCommissionRatio": null,
  11554. "reCommissionRatio": null,
  11555. "pushToERPName": null,
  11556. "prodBeans": null,
  11557. "useBeansFlag": null,
  11558. "privateFlag": null,
  11559. "invisibleServiceProviderIDs": null,
  11560. "displayOnCRMFlag": null,
  11561. "needServiceFlag": null,
  11562. "actFlag": 0,
  11563. "actStatus": null,
  11564. "actSort": null,
  11565. "actPrice0": null,
  11566. "actPrice1": null,
  11567. "actPrice2": null,
  11568. "actPrice3": null,
  11569. "actPrice4": null,
  11570. "actPrice5": null,
  11571. "actPrice6": null,
  11572. "actPrice7": null,
  11573. "actType": null,
  11574. "actCreateTime": null,
  11575. "actFullReduceAmount": null,
  11576. "actReduceAmount": null,
  11577. "visibility": "3",
  11578. "actFullGiftAmount": null,
  11579. "actBuyGiftNum": null,
  11580. "beginTime": null,
  11581. "endTime": null,
  11582. "shopIndexModuleID": null,
  11583. "onlineTime": null,
  11584. "downlineTime": null,
  11585. "freePostFlag": "2",
  11586. "crmBigTypeId": null,
  11587. "crmSmallTypeId": null,
  11588. "costPrice": 20,
  11589. "costProportional": null,
  11590. "costCheckFlag": "1",
  11591. "precisehKey": null,
  11592. "docBoost": null,
  11593. "cmbeanFlag": null,
  11594. "cmbeanPrice": null,
  11595. "cmbeanSort": null,
  11596. "tags": "面膜",
  11597. "surplusTime": null,
  11598. "productType": "1",
  11599. "machineType": "",
  11600. "qualificationImg": "",
  11601. "includedTax": "0",
  11602. "taxPoint": 13,
  11603. "supplierTaxPoint": 13,
  11604. "invoiceType": "1",
  11605. "recommendType": "0",
  11606. "skuID": null,
  11607. "priceType": null,
  11608. "combinationID": null,
  11609. "combinationSort": null,
  11610. "productCategory": "1",
  11611. "auditReason": null,
  11612. "commodityType": "1",
  11613. "retailPrice": 28.5325,
  11614. "discountPrice": null,
  11615. "tagsList": null,
  11616. "imageList": null,
  11617. "productDetail": null,
  11618. "productCount": 1,
  11619. "ladderPriceList": null,
  11620. "shop": null,
  11621. "sellerCartId": 3773,
  11622. "productsChecked": false,
  11623. "repurchasePriceState": false,
  11624. "initProductNum": null,
  11625. "totalPrice": null,
  11626. "failureState": null,
  11627. "smallTypeID": null,
  11628. "bigTypeID": 1018,
  11629. "typeName": null,
  11630. "parametersList": null,
  11631. "brandName": null,
  11632. "bigTypeName": null,
  11633. "smallTypeName": null,
  11634. "tinyTypeName": null,
  11635. "activityDiscount": null,
  11636. "promotions": null,
  11637. "giftType": null,
  11638. "userIdentity": null,
  11639. "isChecked": false,
  11640. "detailTalkFlag": null,
  11641. "shopName": null,
  11642. "beautyActFlag": null }],
  11643. "businessScopeArray": null,
  11644. "mobileCode": null,
  11645. "shopBannerList": null,
  11646. "productionLicence": null,
  11647. "hygienicLicense": null,
  11648. "taxLicense": null,
  11649. "certificateHonor": null,
  11650. "productCertification": null,
  11651. "provincialAddress": null,
  11652. "promotions": null,
  11653. "reducedPrice": null,
  11654. "normalNum": null },
  11655. {
  11656. "shopID": 10133,
  11657. "userID": 11051,
  11658. "name": "深圳市采美奥泰贸易有限公司",
  11659. "sname": "采美奥泰",
  11660. "nameEn": null,
  11661. "site": null,
  11662. "ledgerNo": null,
  11663. "logo": "/userfiles/1/images/photo/2021/01/Cmis21__5o-ADIQEAAD1N_9T1C4174.jpg",
  11664. "rebateAmount": 0,
  11665. "level": null,
  11666. "score": null,
  11667. "productCount": null,
  11668. "legalPerson": null,
  11669. "businessLicense": null,
  11670. "businessLicenseImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BG9AGARTWcAAAfYeeBGQU924.jpg",
  11671. "taxCertificate": "1223132454646556",
  11672. "taxCertificateImage": null,
  11673. "authorizationCertificateImage": null,
  11674. "provinceID": 19,
  11675. "cityID": 202,
  11676. "townID": 1955,
  11677. "address": "红树湾",
  11678. "registeredCapital": null,
  11679. "nature": null,
  11680. "turnover": null,
  11681. "linkMan": "郑超",
  11682. "contractPhone": null,
  11683. "contractMobile": "18666666668",
  11684. "fax": null,
  11685. "zipCode": null,
  11686. "linkMan1": "郑超",
  11687. "duty1": null,
  11688. "contractPhone1": null,
  11689. "contractMobile1": "18666666668",
  11690. "contractQQ1": null,
  11691. "wechat1": null,
  11692. "contractEmail1": "18666666668@qq.com",
  11693. "linkMan2": "郑超",
  11694. "duty2": null,
  11695. "contractPhone2": null,
  11696. "contractMobile2": "18666666668",
  11697. "contractQQ2": null,
  11698. "wechat2": null,
  11699. "contractEmail2": "18666666668@qq.com",
  11700. "scope": null,
  11701. "info": "二恶烷群",
  11702. "productDesc": "额外若群",
  11703. "lng": null,
  11704. "lat": null,
  11705. "addTime": "2021-03-09 12:05:24",
  11706. "auditStatus": "1",
  11707. "auditTime": "2021-03-09 02:01:28",
  11708. "auditNote": null,
  11709. "favoriteTimes": 0,
  11710. "validFlag": "1",
  11711. "payFlag1": null,
  11712. "auditFlag1": null,
  11713. "payFlag2": null,
  11714. "auditFlag2": null,
  11715. "payFlag3": null,
  11716. "auditFlag3": null,
  11717. "note": null,
  11718. "status": 90,
  11719. "sortIndex": null,
  11720. "rate1": null,
  11721. "rate2": null,
  11722. "masterFlag": null,
  11723. "erpFlag": null,
  11724. "shopSecret": null,
  11725. "masterLogo": null,
  11726. "cooperateFlag": null,
  11727. "bail": null,
  11728. "businessScope": null,
  11729. "socialCreditCode": "123456789987654321",
  11730. "mainpro": "",
  11731. "firstShopType": "2",
  11732. "secondShopType": "",
  11733. "medicalPracticeLicenseImg1": null,
  11734. "medicalPracticeLicenseImg2": null,
  11735. "medicalPracticeLicenseImg3": null,
  11736. "bankAccount": null,
  11737. "bankAccountName": null,
  11738. "bankName": null,
  11739. "ableRebateAmount": 0,
  11740. "totalPrice": 49.775,
  11741. "productsList": [
  11742. {
  11743. "productID": 6418,
  11744. "brandID": 1,
  11745. "tinyTypeID": null,
  11746. "classifyId": null,
  11747. "preferredFlag": null,
  11748. "selfTypeID": null,
  11749. "shopID": 10133,
  11750. "name": "【测试用】EndyMed-3Deep-医学美容多功能相控射频",
  11751. "aliasName": "【测试用】EndyMed-3Deep-医学美容多功能相控射频",
  11752. "searchKey": "##########",
  11753. "productRemarks": null,
  11754. "normalPrice": 45.25,
  11755. "price": 45.25,
  11756. "highestUserLevelPrice": null,
  11757. "lowestUserLevelPrice": null,
  11758. "lowestUserLevelID": null,
  11759. "price0": null,
  11760. "price0Grade": null,
  11761. "price0Text": null,
  11762. "price0TextFlag": null,
  11763. "price1": 45.25,
  11764. "price1Grade": null,
  11765. "price1Text": null,
  11766. "price1TextFlag": "2",
  11767. "price8": null,
  11768. "price8Grade": null,
  11769. "price8Text": null,
  11770. "price8TextFlag": null,
  11771. "ladderPriceFlag": "0",
  11772. "price2": null,
  11773. "price3": null,
  11774. "price4": null,
  11775. "price5": null,
  11776. "price6": null,
  11777. "price7": null,
  11778. "fee": null,
  11779. "stock": 100,
  11780. "hasSkuFlag": "1",
  11781. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHEMOAFVmsAAGOILQcRyE020.jpg",
  11782. "propertiesInfo": null,
  11783. "addTime": "2021-03-09 14:08:52",
  11784. "updateTime": "2021-03-09 14:08:52",
  11785. "classifyAddTime": null,
  11786. "sellNumber": 0,
  11787. "weekSellNumber": null,
  11788. "beforeValidFlag": null,
  11789. "validFlag": "2",
  11790. "favoriteTimes": 0,
  11791. "commentScore": 0,
  11792. "commentTimes": 0,
  11793. "selfRecommendFlag": null,
  11794. "sysRecommendFlag": null,
  11795. "sortIndex": 0,
  11796. "featuredFlag": "0",
  11797. "featuredSortIndex": null,
  11798. "productCode": "SSSXSPRZH6418",
  11799. "rate1": null,
  11800. "rate2": null,
  11801. "unit": "台",
  11802. "synToERPFlag": null,
  11803. "allAreaFlag": "1",
  11804. "provinceIDs": "0",
  11805. "serviceNumber": "1",
  11806. "maxBuyNumber": null,
  11807. "virtualFlag": null,
  11808. "minBuyNumber": 1,
  11809. "packageCount": null,
  11810. "byFlag": null,
  11811. "normalProductFlag": 1,
  11812. "wholeSaleProductFlag": null,
  11813. "promotionProductFlag": null,
  11814. "groupBuyProductFlag": null,
  11815. "step": 1,
  11816. "speCommisionFlag": null,
  11817. "speCommision": null,
  11818. "videourl": null,
  11819. "props": null,
  11820. "providers": null,
  11821. "serviceCommissionRatio": null,
  11822. "reCommissionRatio": null,
  11823. "pushToERPName": null,
  11824. "prodBeans": null,
  11825. "useBeansFlag": null,
  11826. "privateFlag": null,
  11827. "invisibleServiceProviderIDs": null,
  11828. "displayOnCRMFlag": null,
  11829. "needServiceFlag": null,
  11830. "actFlag": 0,
  11831. "actStatus": null,
  11832. "actSort": null,
  11833. "actPrice0": null,
  11834. "actPrice1": null,
  11835. "actPrice2": null,
  11836. "actPrice3": null,
  11837. "actPrice4": null,
  11838. "actPrice5": null,
  11839. "actPrice6": null,
  11840. "actPrice7": null,
  11841. "actType": null,
  11842. "actCreateTime": null,
  11843. "actFullReduceAmount": null,
  11844. "actReduceAmount": null,
  11845. "visibility": "3",
  11846. "actFullGiftAmount": null,
  11847. "actBuyGiftNum": null,
  11848. "beginTime": null,
  11849. "endTime": null,
  11850. "shopIndexModuleID": null,
  11851. "onlineTime": null,
  11852. "downlineTime": null,
  11853. "freePostFlag": "2",
  11854. "crmBigTypeId": null,
  11855. "crmSmallTypeId": null,
  11856. "costPrice": 40,
  11857. "costProportional": null,
  11858. "costCheckFlag": "1",
  11859. "precisehKey": null,
  11860. "docBoost": null,
  11861. "cmbeanFlag": null,
  11862. "cmbeanPrice": null,
  11863. "cmbeanSort": null,
  11864. "tags": "美容仪",
  11865. "surplusTime": null,
  11866. "productType": "1",
  11867. "machineType": "",
  11868. "qualificationImg": "",
  11869. "includedTax": "0",
  11870. "taxPoint": 10,
  11871. "supplierTaxPoint": 10,
  11872. "invoiceType": "2",
  11873. "recommendType": "0",
  11874. "skuID": null,
  11875. "priceType": null,
  11876. "combinationID": null,
  11877. "combinationSort": null,
  11878. "productCategory": "1",
  11879. "auditReason": null,
  11880. "commodityType": "2",
  11881. "retailPrice": 49.775,
  11882. "discountPrice": null,
  11883. "tagsList": null,
  11884. "imageList": null,
  11885. "productDetail": null,
  11886. "productCount": 1,
  11887. "ladderPriceList": null,
  11888. "shop": null,
  11889. "sellerCartId": 3774,
  11890. "productsChecked": false,
  11891. "repurchasePriceState": false,
  11892. "initProductNum": null,
  11893. "totalPrice": null,
  11894. "failureState": null,
  11895. "smallTypeID": 1051,
  11896. "bigTypeID": 1022,
  11897. "typeName": null,
  11898. "parametersList": null,
  11899. "brandName": null,
  11900. "bigTypeName": null,
  11901. "smallTypeName": null,
  11902. "tinyTypeName": null,
  11903. "activityDiscount": null,
  11904. "promotions": null,
  11905. "giftType": null,
  11906. "userIdentity": null,
  11907. "isChecked": false,
  11908. "detailTalkFlag": null,
  11909. "shopName": null,
  11910. "beautyActFlag": null }],
  11911. "businessScopeArray": null,
  11912. "mobileCode": null,
  11913. "shopBannerList": null,
  11914. "productionLicence": null,
  11915. "hygienicLicense": null,
  11916. "taxLicense": null,
  11917. "certificateHonor": null,
  11918. "productCertification": null,
  11919. "provincialAddress": null,
  11920. "promotions": null,
  11921. "reducedPrice": null,
  11922. "normalNum": null },
  11923. {
  11924. "shopID": 10131,
  11925. "userID": 11049,
  11926. "name": "深圳市肤白貌美服务有限公司",
  11927. "sname": "肤白貌美",
  11928. "nameEn": null,
  11929. "site": null,
  11930. "ledgerNo": null,
  11931. "logo": "/userfiles/1/images/photo/2021/01/Cmis21__5o-AaNq1AAEriLZ0RzY342.jpg",
  11932. "rebateAmount": 0,
  11933. "level": null,
  11934. "score": null,
  11935. "productCount": null,
  11936. "legalPerson": null,
  11937. "businessLicense": null,
  11938. "businessLicenseImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BG8bSALKXAAAAfYeeBGQU840.jpg",
  11939. "taxCertificate": "45654654645654645645645645645654",
  11940. "taxCertificateImage": null,
  11941. "authorizationCertificateImage": null,
  11942. "provinceID": 19,
  11943. "cityID": 202,
  11944. "townID": 3202,
  11945. "address": "高傲新村",
  11946. "registeredCapital": null,
  11947. "nature": null,
  11948. "turnover": null,
  11949. "linkMan": "吴小研",
  11950. "contractPhone": null,
  11951. "contractMobile": "18666666666",
  11952. "fax": null,
  11953. "zipCode": null,
  11954. "linkMan1": "吴小研",
  11955. "duty1": null,
  11956. "contractPhone1": null,
  11957. "contractMobile1": "18666666666",
  11958. "contractQQ1": null,
  11959. "wechat1": null,
  11960. "contractEmail1": "18666666666@qq.com",
  11961. "linkMan2": "吴小研",
  11962. "duty2": null,
  11963. "contractPhone2": null,
  11964. "contractMobile2": "18666666666",
  11965. "contractQQ2": null,
  11966. "wechat2": null,
  11967. "contractEmail2": "18666666666@qq.com",
  11968. "scope": null,
  11969. "info": "45",
  11970. "productDesc": "4564",
  11971. "lng": null,
  11972. "lat": null,
  11973. "addTime": "2021-03-09 11:55:39",
  11974. "auditStatus": "1",
  11975. "auditTime": "2021-03-09 01:43:18",
  11976. "auditNote": null,
  11977. "favoriteTimes": 0,
  11978. "validFlag": "1",
  11979. "payFlag1": null,
  11980. "auditFlag1": null,
  11981. "payFlag2": null,
  11982. "auditFlag2": null,
  11983. "payFlag3": null,
  11984. "auditFlag3": null,
  11985. "note": null,
  11986. "status": 90,
  11987. "sortIndex": null,
  11988. "rate1": null,
  11989. "rate2": null,
  11990. "masterFlag": null,
  11991. "erpFlag": null,
  11992. "shopSecret": null,
  11993. "masterLogo": null,
  11994. "cooperateFlag": null,
  11995. "bail": null,
  11996. "businessScope": null,
  11997. "socialCreditCode": "987654321123456666",
  11998. "mainpro": "",
  11999. "firstShopType": "1",
  12000. "secondShopType": "1",
  12001. "medicalPracticeLicenseImg1": null,
  12002. "medicalPracticeLicenseImg2": null,
  12003. "medicalPracticeLicenseImg3": null,
  12004. "bankAccount": null,
  12005. "bankAccountName": null,
  12006. "bankName": null,
  12007. "ableRebateAmount": 0,
  12008. "totalPrice": 35.75,
  12009. "productsList": [
  12010. {
  12011. "productID": 6416,
  12012. "brandID": 1,
  12013. "tinyTypeID": 1120,
  12014. "classifyId": null,
  12015. "preferredFlag": null,
  12016. "selfTypeID": null,
  12017. "shopID": 10131,
  12018. "name": "【测试用】HydraFacial海菲秀 真空负压 深层洁净",
  12019. "aliasName": "【测试用】HydraFacial海菲秀 真空负压 深层洁净",
  12020. "searchKey": "##########",
  12021. "productRemarks": null,
  12022. "normalPrice": 35.75,
  12023. "price": 35.75,
  12024. "highestUserLevelPrice": null,
  12025. "lowestUserLevelPrice": null,
  12026. "lowestUserLevelID": null,
  12027. "price0": null,
  12028. "price0Grade": null,
  12029. "price0Text": null,
  12030. "price0TextFlag": null,
  12031. "price1": 35.75,
  12032. "price1Grade": null,
  12033. "price1Text": null,
  12034. "price1TextFlag": "2",
  12035. "price8": null,
  12036. "price8Grade": null,
  12037. "price8Text": null,
  12038. "price8TextFlag": null,
  12039. "ladderPriceFlag": "0",
  12040. "price2": null,
  12041. "price3": null,
  12042. "price4": null,
  12043. "price5": null,
  12044. "price6": null,
  12045. "price7": null,
  12046. "fee": null,
  12047. "stock": 100,
  12048. "hasSkuFlag": "1",
  12049. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHDRGAQGhIAAWEI4ChAUg291.jpg",
  12050. "propertiesInfo": null,
  12051. "addTime": "2021-03-09 13:52:49",
  12052. "updateTime": "2021-03-09 13:52:49",
  12053. "classifyAddTime": null,
  12054. "sellNumber": 0,
  12055. "weekSellNumber": null,
  12056. "beforeValidFlag": null,
  12057. "validFlag": "2",
  12058. "favoriteTimes": 0,
  12059. "commentScore": 0,
  12060. "commentTimes": 0,
  12061. "selfRecommendFlag": null,
  12062. "sysRecommendFlag": null,
  12063. "sortIndex": 0,
  12064. "featuredFlag": "0",
  12065. "featuredSortIndex": null,
  12066. "productCode": "sdfsSGZee3336416",
  12067. "rate1": null,
  12068. "rate2": null,
  12069. "unit": "台",
  12070. "synToERPFlag": null,
  12071. "allAreaFlag": "1",
  12072. "provinceIDs": "0",
  12073. "serviceNumber": "1",
  12074. "maxBuyNumber": null,
  12075. "virtualFlag": null,
  12076. "minBuyNumber": 1,
  12077. "packageCount": null,
  12078. "byFlag": null,
  12079. "normalProductFlag": 1,
  12080. "wholeSaleProductFlag": null,
  12081. "promotionProductFlag": null,
  12082. "groupBuyProductFlag": null,
  12083. "step": 1,
  12084. "speCommisionFlag": null,
  12085. "speCommision": null,
  12086. "videourl": null,
  12087. "props": null,
  12088. "providers": null,
  12089. "serviceCommissionRatio": null,
  12090. "reCommissionRatio": null,
  12091. "pushToERPName": null,
  12092. "prodBeans": null,
  12093. "useBeansFlag": null,
  12094. "privateFlag": null,
  12095. "invisibleServiceProviderIDs": null,
  12096. "displayOnCRMFlag": null,
  12097. "needServiceFlag": null,
  12098. "actFlag": 0,
  12099. "actStatus": null,
  12100. "actSort": null,
  12101. "actPrice0": null,
  12102. "actPrice1": null,
  12103. "actPrice2": null,
  12104. "actPrice3": null,
  12105. "actPrice4": null,
  12106. "actPrice5": null,
  12107. "actPrice6": null,
  12108. "actPrice7": null,
  12109. "actType": null,
  12110. "actCreateTime": null,
  12111. "actFullReduceAmount": null,
  12112. "actReduceAmount": null,
  12113. "visibility": "3",
  12114. "actFullGiftAmount": null,
  12115. "actBuyGiftNum": null,
  12116. "beginTime": null,
  12117. "endTime": null,
  12118. "shopIndexModuleID": null,
  12119. "onlineTime": null,
  12120. "downlineTime": null,
  12121. "freePostFlag": "2",
  12122. "crmBigTypeId": null,
  12123. "crmSmallTypeId": null,
  12124. "costPrice": 30,
  12125. "costProportional": null,
  12126. "costCheckFlag": "1",
  12127. "precisehKey": null,
  12128. "docBoost": null,
  12129. "cmbeanFlag": null,
  12130. "cmbeanPrice": null,
  12131. "cmbeanSort": null,
  12132. "tags": "清洁",
  12133. "surplusTime": null,
  12134. "productType": "2",
  12135. "machineType": "1",
  12136. "qualificationImg": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHDL2ADbuIAAlLT8OmIlA825.gif",
  12137. "includedTax": "1",
  12138. "taxPoint": 10,
  12139. "supplierTaxPoint": 10,
  12140. "invoiceType": "2",
  12141. "recommendType": "0",
  12142. "skuID": null,
  12143. "priceType": null,
  12144. "combinationID": null,
  12145. "combinationSort": null,
  12146. "productCategory": "1",
  12147. "auditReason": null,
  12148. "commodityType": "1",
  12149. "retailPrice": 35.75,
  12150. "discountPrice": null,
  12151. "tagsList": null,
  12152. "imageList": null,
  12153. "productDetail": null,
  12154. "productCount": 1,
  12155. "ladderPriceList": null,
  12156. "shop": null,
  12157. "sellerCartId": 3775,
  12158. "productsChecked": false,
  12159. "repurchasePriceState": false,
  12160. "initProductNum": null,
  12161. "totalPrice": null,
  12162. "failureState": null,
  12163. "smallTypeID": 1037,
  12164. "bigTypeID": 1013,
  12165. "typeName": null,
  12166. "parametersList": null,
  12167. "brandName": null,
  12168. "bigTypeName": null,
  12169. "smallTypeName": null,
  12170. "tinyTypeName": null,
  12171. "activityDiscount": null,
  12172. "promotions": null,
  12173. "giftType": null,
  12174. "userIdentity": null,
  12175. "isChecked": false,
  12176. "detailTalkFlag": null,
  12177. "shopName": null,
  12178. "beautyActFlag": null }],
  12179. "businessScopeArray": null,
  12180. "mobileCode": null,
  12181. "shopBannerList": null,
  12182. "productionLicence": null,
  12183. "hygienicLicense": null,
  12184. "taxLicense": null,
  12185. "certificateHonor": null,
  12186. "productCertification": null,
  12187. "provincialAddress": null,
  12188. "promotions": null,
  12189. "reducedPrice": null,
  12190. "normalNum": null },
  12191. {
  12192. "shopID": 10131,
  12193. "userID": 11049,
  12194. "name": "深圳市肤白貌美服务有限公司",
  12195. "sname": "肤白貌美",
  12196. "nameEn": null,
  12197. "site": null,
  12198. "ledgerNo": null,
  12199. "logo": "/userfiles/1/images/photo/2021/01/Cmis21__5o-AaNq1AAEriLZ0RzY342.jpg",
  12200. "rebateAmount": 0,
  12201. "level": null,
  12202. "score": null,
  12203. "productCount": null,
  12204. "legalPerson": null,
  12205. "businessLicense": null,
  12206. "businessLicenseImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BG8bSALKXAAAAfYeeBGQU840.jpg",
  12207. "taxCertificate": "45654654645654645645645645645654",
  12208. "taxCertificateImage": null,
  12209. "authorizationCertificateImage": null,
  12210. "provinceID": 19,
  12211. "cityID": 202,
  12212. "townID": 3202,
  12213. "address": "高傲新村",
  12214. "registeredCapital": null,
  12215. "nature": null,
  12216. "turnover": null,
  12217. "linkMan": "吴小研",
  12218. "contractPhone": null,
  12219. "contractMobile": "18666666666",
  12220. "fax": null,
  12221. "zipCode": null,
  12222. "linkMan1": "吴小研",
  12223. "duty1": null,
  12224. "contractPhone1": null,
  12225. "contractMobile1": "18666666666",
  12226. "contractQQ1": null,
  12227. "wechat1": null,
  12228. "contractEmail1": "18666666666@qq.com",
  12229. "linkMan2": "吴小研",
  12230. "duty2": null,
  12231. "contractPhone2": null,
  12232. "contractMobile2": "18666666666",
  12233. "contractQQ2": null,
  12234. "wechat2": null,
  12235. "contractEmail2": "18666666666@qq.com",
  12236. "scope": null,
  12237. "info": "45",
  12238. "productDesc": "4564",
  12239. "lng": null,
  12240. "lat": null,
  12241. "addTime": "2021-03-09 11:55:39",
  12242. "auditStatus": "1",
  12243. "auditTime": "2021-03-09 01:43:18",
  12244. "auditNote": null,
  12245. "favoriteTimes": 0,
  12246. "validFlag": "1",
  12247. "payFlag1": null,
  12248. "auditFlag1": null,
  12249. "payFlag2": null,
  12250. "auditFlag2": null,
  12251. "payFlag3": null,
  12252. "auditFlag3": null,
  12253. "note": null,
  12254. "status": 90,
  12255. "sortIndex": null,
  12256. "rate1": null,
  12257. "rate2": null,
  12258. "masterFlag": null,
  12259. "erpFlag": null,
  12260. "shopSecret": null,
  12261. "masterLogo": null,
  12262. "cooperateFlag": null,
  12263. "bail": null,
  12264. "businessScope": null,
  12265. "socialCreditCode": "987654321123456666",
  12266. "mainpro": "",
  12267. "firstShopType": "1",
  12268. "secondShopType": "1",
  12269. "medicalPracticeLicenseImg1": null,
  12270. "medicalPracticeLicenseImg2": null,
  12271. "medicalPracticeLicenseImg3": null,
  12272. "bankAccount": null,
  12273. "bankAccountName": null,
  12274. "bankName": null,
  12275. "ableRebateAmount": 0,
  12276. "totalPrice": 35.75,
  12277. "productsList": [
  12278. {
  12279. "productID": 6416,
  12280. "brandID": 1,
  12281. "tinyTypeID": 1120,
  12282. "classifyId": null,
  12283. "preferredFlag": null,
  12284. "selfTypeID": null,
  12285. "shopID": 10131,
  12286. "name": "【测试用】HydraFacial海菲秀 真空负压 深层洁净",
  12287. "aliasName": "【测试用】HydraFacial海菲秀 真空负压 深层洁净",
  12288. "searchKey": "##########",
  12289. "productRemarks": null,
  12290. "normalPrice": 35.75,
  12291. "price": 35.75,
  12292. "highestUserLevelPrice": null,
  12293. "lowestUserLevelPrice": null,
  12294. "lowestUserLevelID": null,
  12295. "price0": null,
  12296. "price0Grade": null,
  12297. "price0Text": null,
  12298. "price0TextFlag": null,
  12299. "price1": 35.75,
  12300. "price1Grade": null,
  12301. "price1Text": null,
  12302. "price1TextFlag": "2",
  12303. "price8": null,
  12304. "price8Grade": null,
  12305. "price8Text": null,
  12306. "price8TextFlag": null,
  12307. "ladderPriceFlag": "0",
  12308. "price2": null,
  12309. "price3": null,
  12310. "price4": null,
  12311. "price5": null,
  12312. "price6": null,
  12313. "price7": null,
  12314. "fee": null,
  12315. "stock": 100,
  12316. "hasSkuFlag": "1",
  12317. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHDRGAQGhIAAWEI4ChAUg291.jpg",
  12318. "propertiesInfo": null,
  12319. "addTime": "2021-03-09 13:52:49",
  12320. "updateTime": "2021-03-09 13:52:49",
  12321. "classifyAddTime": null,
  12322. "sellNumber": 0,
  12323. "weekSellNumber": null,
  12324. "beforeValidFlag": null,
  12325. "validFlag": "2",
  12326. "favoriteTimes": 0,
  12327. "commentScore": 0,
  12328. "commentTimes": 0,
  12329. "selfRecommendFlag": null,
  12330. "sysRecommendFlag": null,
  12331. "sortIndex": 0,
  12332. "featuredFlag": "0",
  12333. "featuredSortIndex": null,
  12334. "productCode": "sdfsSGZee3336416",
  12335. "rate1": null,
  12336. "rate2": null,
  12337. "unit": "台",
  12338. "synToERPFlag": null,
  12339. "allAreaFlag": "1",
  12340. "provinceIDs": "0",
  12341. "serviceNumber": "1",
  12342. "maxBuyNumber": null,
  12343. "virtualFlag": null,
  12344. "minBuyNumber": 1,
  12345. "packageCount": null,
  12346. "byFlag": null,
  12347. "normalProductFlag": 1,
  12348. "wholeSaleProductFlag": null,
  12349. "promotionProductFlag": null,
  12350. "groupBuyProductFlag": null,
  12351. "step": 1,
  12352. "speCommisionFlag": null,
  12353. "speCommision": null,
  12354. "videourl": null,
  12355. "props": null,
  12356. "providers": null,
  12357. "serviceCommissionRatio": null,
  12358. "reCommissionRatio": null,
  12359. "pushToERPName": null,
  12360. "prodBeans": null,
  12361. "useBeansFlag": null,
  12362. "privateFlag": null,
  12363. "invisibleServiceProviderIDs": null,
  12364. "displayOnCRMFlag": null,
  12365. "needServiceFlag": null,
  12366. "actFlag": 0,
  12367. "actStatus": null,
  12368. "actSort": null,
  12369. "actPrice0": null,
  12370. "actPrice1": null,
  12371. "actPrice2": null,
  12372. "actPrice3": null,
  12373. "actPrice4": null,
  12374. "actPrice5": null,
  12375. "actPrice6": null,
  12376. "actPrice7": null,
  12377. "actType": null,
  12378. "actCreateTime": null,
  12379. "actFullReduceAmount": null,
  12380. "actReduceAmount": null,
  12381. "visibility": "3",
  12382. "actFullGiftAmount": null,
  12383. "actBuyGiftNum": null,
  12384. "beginTime": null,
  12385. "endTime": null,
  12386. "shopIndexModuleID": null,
  12387. "onlineTime": null,
  12388. "downlineTime": null,
  12389. "freePostFlag": "2",
  12390. "crmBigTypeId": null,
  12391. "crmSmallTypeId": null,
  12392. "costPrice": 30,
  12393. "costProportional": null,
  12394. "costCheckFlag": "1",
  12395. "precisehKey": null,
  12396. "docBoost": null,
  12397. "cmbeanFlag": null,
  12398. "cmbeanPrice": null,
  12399. "cmbeanSort": null,
  12400. "tags": "清洁",
  12401. "surplusTime": null,
  12402. "productType": "2",
  12403. "machineType": "1",
  12404. "qualificationImg": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHDL2ADbuIAAlLT8OmIlA825.gif",
  12405. "includedTax": "1",
  12406. "taxPoint": 10,
  12407. "supplierTaxPoint": 10,
  12408. "invoiceType": "2",
  12409. "recommendType": "0",
  12410. "skuID": null,
  12411. "priceType": null,
  12412. "combinationID": null,
  12413. "combinationSort": null,
  12414. "productCategory": "1",
  12415. "auditReason": null,
  12416. "commodityType": "1",
  12417. "retailPrice": 35.75,
  12418. "discountPrice": null,
  12419. "tagsList": null,
  12420. "imageList": null,
  12421. "productDetail": null,
  12422. "productCount": 1,
  12423. "ladderPriceList": null,
  12424. "shop": null,
  12425. "sellerCartId": 3775,
  12426. "productsChecked": false,
  12427. "repurchasePriceState": false,
  12428. "initProductNum": null,
  12429. "totalPrice": null,
  12430. "failureState": null,
  12431. "smallTypeID": 1037,
  12432. "bigTypeID": 1013,
  12433. "typeName": null,
  12434. "parametersList": null,
  12435. "brandName": null,
  12436. "bigTypeName": null,
  12437. "smallTypeName": null,
  12438. "tinyTypeName": null,
  12439. "activityDiscount": null,
  12440. "promotions": null,
  12441. "giftType": null,
  12442. "userIdentity": null,
  12443. "isChecked": false,
  12444. "detailTalkFlag": null,
  12445. "shopName": null,
  12446. "beautyActFlag": null }],
  12447. "businessScopeArray": null,
  12448. "mobileCode": null,
  12449. "shopBannerList": null,
  12450. "productionLicence": null,
  12451. "hygienicLicense": null,
  12452. "taxLicense": null,
  12453. "certificateHonor": null,
  12454. "productCertification": null,
  12455. "provincialAddress": null,
  12456. "promotions": null,
  12457. "reducedPrice": null,
  12458. "normalNum": null },
  12459. {
  12460. "shopID": 10131,
  12461. "userID": 11049,
  12462. "name": "深圳市肤白貌美服务有限公司",
  12463. "sname": "肤白貌美",
  12464. "nameEn": null,
  12465. "site": null,
  12466. "ledgerNo": null,
  12467. "logo": "/userfiles/1/images/photo/2021/01/Cmis21__5o-AaNq1AAEriLZ0RzY342.jpg",
  12468. "rebateAmount": 0,
  12469. "level": null,
  12470. "score": null,
  12471. "productCount": null,
  12472. "legalPerson": null,
  12473. "businessLicense": null,
  12474. "businessLicenseImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BG8bSALKXAAAAfYeeBGQU840.jpg",
  12475. "taxCertificate": "45654654645654645645645645645654",
  12476. "taxCertificateImage": null,
  12477. "authorizationCertificateImage": null,
  12478. "provinceID": 19,
  12479. "cityID": 202,
  12480. "townID": 3202,
  12481. "address": "高傲新村",
  12482. "registeredCapital": null,
  12483. "nature": null,
  12484. "turnover": null,
  12485. "linkMan": "吴小研",
  12486. "contractPhone": null,
  12487. "contractMobile": "18666666666",
  12488. "fax": null,
  12489. "zipCode": null,
  12490. "linkMan1": "吴小研",
  12491. "duty1": null,
  12492. "contractPhone1": null,
  12493. "contractMobile1": "18666666666",
  12494. "contractQQ1": null,
  12495. "wechat1": null,
  12496. "contractEmail1": "18666666666@qq.com",
  12497. "linkMan2": "吴小研",
  12498. "duty2": null,
  12499. "contractPhone2": null,
  12500. "contractMobile2": "18666666666",
  12501. "contractQQ2": null,
  12502. "wechat2": null,
  12503. "contractEmail2": "18666666666@qq.com",
  12504. "scope": null,
  12505. "info": "45",
  12506. "productDesc": "4564",
  12507. "lng": null,
  12508. "lat": null,
  12509. "addTime": "2021-03-09 11:55:39",
  12510. "auditStatus": "1",
  12511. "auditTime": "2021-03-09 01:43:18",
  12512. "auditNote": null,
  12513. "favoriteTimes": 0,
  12514. "validFlag": "1",
  12515. "payFlag1": null,
  12516. "auditFlag1": null,
  12517. "payFlag2": null,
  12518. "auditFlag2": null,
  12519. "payFlag3": null,
  12520. "auditFlag3": null,
  12521. "note": null,
  12522. "status": 90,
  12523. "sortIndex": null,
  12524. "rate1": null,
  12525. "rate2": null,
  12526. "masterFlag": null,
  12527. "erpFlag": null,
  12528. "shopSecret": null,
  12529. "masterLogo": null,
  12530. "cooperateFlag": null,
  12531. "bail": null,
  12532. "businessScope": null,
  12533. "socialCreditCode": "987654321123456666",
  12534. "mainpro": "",
  12535. "firstShopType": "1",
  12536. "secondShopType": "1",
  12537. "medicalPracticeLicenseImg1": null,
  12538. "medicalPracticeLicenseImg2": null,
  12539. "medicalPracticeLicenseImg3": null,
  12540. "bankAccount": null,
  12541. "bankAccountName": null,
  12542. "bankName": null,
  12543. "ableRebateAmount": 0,
  12544. "totalPrice": 35.75,
  12545. "productsList": [
  12546. {
  12547. "productID": 6416,
  12548. "brandID": 1,
  12549. "tinyTypeID": 1120,
  12550. "classifyId": null,
  12551. "preferredFlag": null,
  12552. "selfTypeID": null,
  12553. "shopID": 10131,
  12554. "name": "【测试用】HydraFacial海菲秀 真空负压 深层洁净",
  12555. "aliasName": "【测试用】HydraFacial海菲秀 真空负压 深层洁净",
  12556. "searchKey": "##########",
  12557. "productRemarks": null,
  12558. "normalPrice": 35.75,
  12559. "price": 35.75,
  12560. "highestUserLevelPrice": null,
  12561. "lowestUserLevelPrice": null,
  12562. "lowestUserLevelID": null,
  12563. "price0": null,
  12564. "price0Grade": null,
  12565. "price0Text": null,
  12566. "price0TextFlag": null,
  12567. "price1": 35.75,
  12568. "price1Grade": null,
  12569. "price1Text": null,
  12570. "price1TextFlag": "2",
  12571. "price8": null,
  12572. "price8Grade": null,
  12573. "price8Text": null,
  12574. "price8TextFlag": null,
  12575. "ladderPriceFlag": "0",
  12576. "price2": null,
  12577. "price3": null,
  12578. "price4": null,
  12579. "price5": null,
  12580. "price6": null,
  12581. "price7": null,
  12582. "fee": null,
  12583. "stock": 100,
  12584. "hasSkuFlag": "1",
  12585. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHDRGAQGhIAAWEI4ChAUg291.jpg",
  12586. "propertiesInfo": null,
  12587. "addTime": "2021-03-09 13:52:49",
  12588. "updateTime": "2021-03-09 13:52:49",
  12589. "classifyAddTime": null,
  12590. "sellNumber": 0,
  12591. "weekSellNumber": null,
  12592. "beforeValidFlag": null,
  12593. "validFlag": "2",
  12594. "favoriteTimes": 0,
  12595. "commentScore": 0,
  12596. "commentTimes": 0,
  12597. "selfRecommendFlag": null,
  12598. "sysRecommendFlag": null,
  12599. "sortIndex": 0,
  12600. "featuredFlag": "0",
  12601. "featuredSortIndex": null,
  12602. "productCode": "sdfsSGZee3336416",
  12603. "rate1": null,
  12604. "rate2": null,
  12605. "unit": "台",
  12606. "synToERPFlag": null,
  12607. "allAreaFlag": "1",
  12608. "provinceIDs": "0",
  12609. "serviceNumber": "1",
  12610. "maxBuyNumber": null,
  12611. "virtualFlag": null,
  12612. "minBuyNumber": 1,
  12613. "packageCount": null,
  12614. "byFlag": null,
  12615. "normalProductFlag": 1,
  12616. "wholeSaleProductFlag": null,
  12617. "promotionProductFlag": null,
  12618. "groupBuyProductFlag": null,
  12619. "step": 1,
  12620. "speCommisionFlag": null,
  12621. "speCommision": null,
  12622. "videourl": null,
  12623. "props": null,
  12624. "providers": null,
  12625. "serviceCommissionRatio": null,
  12626. "reCommissionRatio": null,
  12627. "pushToERPName": null,
  12628. "prodBeans": null,
  12629. "useBeansFlag": null,
  12630. "privateFlag": null,
  12631. "invisibleServiceProviderIDs": null,
  12632. "displayOnCRMFlag": null,
  12633. "needServiceFlag": null,
  12634. "actFlag": 0,
  12635. "actStatus": null,
  12636. "actSort": null,
  12637. "actPrice0": null,
  12638. "actPrice1": null,
  12639. "actPrice2": null,
  12640. "actPrice3": null,
  12641. "actPrice4": null,
  12642. "actPrice5": null,
  12643. "actPrice6": null,
  12644. "actPrice7": null,
  12645. "actType": null,
  12646. "actCreateTime": null,
  12647. "actFullReduceAmount": null,
  12648. "actReduceAmount": null,
  12649. "visibility": "3",
  12650. "actFullGiftAmount": null,
  12651. "actBuyGiftNum": null,
  12652. "beginTime": null,
  12653. "endTime": null,
  12654. "shopIndexModuleID": null,
  12655. "onlineTime": null,
  12656. "downlineTime": null,
  12657. "freePostFlag": "2",
  12658. "crmBigTypeId": null,
  12659. "crmSmallTypeId": null,
  12660. "costPrice": 30,
  12661. "costProportional": null,
  12662. "costCheckFlag": "1",
  12663. "precisehKey": null,
  12664. "docBoost": null,
  12665. "cmbeanFlag": null,
  12666. "cmbeanPrice": null,
  12667. "cmbeanSort": null,
  12668. "tags": "清洁",
  12669. "surplusTime": null,
  12670. "productType": "2",
  12671. "machineType": "1",
  12672. "qualificationImg": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHDL2ADbuIAAlLT8OmIlA825.gif",
  12673. "includedTax": "1",
  12674. "taxPoint": 10,
  12675. "supplierTaxPoint": 10,
  12676. "invoiceType": "2",
  12677. "recommendType": "0",
  12678. "skuID": null,
  12679. "priceType": null,
  12680. "combinationID": null,
  12681. "combinationSort": null,
  12682. "productCategory": "1",
  12683. "auditReason": null,
  12684. "commodityType": "1",
  12685. "retailPrice": 35.75,
  12686. "discountPrice": null,
  12687. "tagsList": null,
  12688. "imageList": null,
  12689. "productDetail": null,
  12690. "productCount": 1,
  12691. "ladderPriceList": null,
  12692. "shop": null,
  12693. "sellerCartId": 3775,
  12694. "productsChecked": false,
  12695. "repurchasePriceState": false,
  12696. "initProductNum": null,
  12697. "totalPrice": null,
  12698. "failureState": null,
  12699. "smallTypeID": 1037,
  12700. "bigTypeID": 1013,
  12701. "typeName": null,
  12702. "parametersList": null,
  12703. "brandName": null,
  12704. "bigTypeName": null,
  12705. "smallTypeName": null,
  12706. "tinyTypeName": null,
  12707. "activityDiscount": null,
  12708. "promotions": null,
  12709. "giftType": null,
  12710. "userIdentity": null,
  12711. "isChecked": false,
  12712. "detailTalkFlag": null,
  12713. "shopName": null,
  12714. "beautyActFlag": null }],
  12715. "businessScopeArray": null,
  12716. "mobileCode": null,
  12717. "shopBannerList": null,
  12718. "productionLicence": null,
  12719. "hygienicLicense": null,
  12720. "taxLicense": null,
  12721. "certificateHonor": null,
  12722. "productCertification": null,
  12723. "provincialAddress": null,
  12724. "promotions": null,
  12725. "reducedPrice": null,
  12726. "normalNum": null }];
  12727. var productList = [
  12728. {
  12729. "productID": 6421,
  12730. "brandID": 25,
  12731. "tinyTypeID": 1120,
  12732. "classifyId": null,
  12733. "preferredFlag": null,
  12734. "selfTypeID": null,
  12735. "shopID": 10134,
  12736. "name": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  12737. "aliasName": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  12738. "searchKey": "##########",
  12739. "productRemarks": null,
  12740. "normalPrice": 15.25,
  12741. "price": 15.25,
  12742. "highestUserLevelPrice": null,
  12743. "lowestUserLevelPrice": null,
  12744. "lowestUserLevelID": null,
  12745. "price0": null,
  12746. "price0Grade": null,
  12747. "price0Text": null,
  12748. "price0TextFlag": null,
  12749. "price1": 15.25,
  12750. "price1Grade": null,
  12751. "price1Text": null,
  12752. "price1TextFlag": "2",
  12753. "price8": null,
  12754. "price8Grade": null,
  12755. "price8Text": null,
  12756. "price8TextFlag": null,
  12757. "ladderPriceFlag": "0",
  12758. "price2": null,
  12759. "price3": null,
  12760. "price4": null,
  12761. "price5": null,
  12762. "price6": null,
  12763. "price7": null,
  12764. "fee": null,
  12765. "stock": 100,
  12766. "hasSkuFlag": "1",
  12767. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHJGCARS7iAAVlWLR-uKU385.jpg",
  12768. "propertiesInfo": null,
  12769. "addTime": "2021-03-09 15:32:19",
  12770. "updateTime": "2021-03-09 15:32:19",
  12771. "classifyAddTime": null,
  12772. "sellNumber": 0,
  12773. "weekSellNumber": null,
  12774. "beforeValidFlag": null,
  12775. "validFlag": "2",
  12776. "favoriteTimes": 0,
  12777. "commentScore": 0,
  12778. "commentTimes": 0,
  12779. "selfRecommendFlag": null,
  12780. "sysRecommendFlag": null,
  12781. "sortIndex": 0,
  12782. "featuredFlag": "0",
  12783. "featuredSortIndex": null,
  12784. "productCode": "sdfsSGZee3336421",
  12785. "rate1": null,
  12786. "rate2": null,
  12787. "unit": "瓶",
  12788. "synToERPFlag": null,
  12789. "allAreaFlag": "1",
  12790. "provinceIDs": "0",
  12791. "serviceNumber": "1",
  12792. "maxBuyNumber": null,
  12793. "virtualFlag": null,
  12794. "minBuyNumber": 1,
  12795. "packageCount": null,
  12796. "byFlag": null,
  12797. "normalProductFlag": 1,
  12798. "wholeSaleProductFlag": null,
  12799. "promotionProductFlag": null,
  12800. "groupBuyProductFlag": null,
  12801. "step": 1,
  12802. "speCommisionFlag": null,
  12803. "speCommision": null,
  12804. "videourl": null,
  12805. "props": null,
  12806. "providers": null,
  12807. "serviceCommissionRatio": null,
  12808. "reCommissionRatio": null,
  12809. "pushToERPName": null,
  12810. "prodBeans": null,
  12811. "useBeansFlag": null,
  12812. "privateFlag": null,
  12813. "invisibleServiceProviderIDs": null,
  12814. "displayOnCRMFlag": null,
  12815. "needServiceFlag": null,
  12816. "actFlag": 0,
  12817. "actStatus": null,
  12818. "actSort": null,
  12819. "actPrice0": null,
  12820. "actPrice1": null,
  12821. "actPrice2": null,
  12822. "actPrice3": null,
  12823. "actPrice4": null,
  12824. "actPrice5": null,
  12825. "actPrice6": null,
  12826. "actPrice7": null,
  12827. "actType": null,
  12828. "actCreateTime": null,
  12829. "actFullReduceAmount": null,
  12830. "actReduceAmount": null,
  12831. "visibility": "3",
  12832. "actFullGiftAmount": null,
  12833. "actBuyGiftNum": null,
  12834. "beginTime": null,
  12835. "endTime": null,
  12836. "shopIndexModuleID": null,
  12837. "onlineTime": null,
  12838. "downlineTime": null,
  12839. "freePostFlag": "2",
  12840. "crmBigTypeId": null,
  12841. "crmSmallTypeId": null,
  12842. "costPrice": 10,
  12843. "costProportional": null,
  12844. "costCheckFlag": "1",
  12845. "precisehKey": null,
  12846. "docBoost": null,
  12847. "cmbeanFlag": null,
  12848. "cmbeanPrice": null,
  12849. "cmbeanSort": null,
  12850. "tags": "注射",
  12851. "surplusTime": null,
  12852. "productType": "1",
  12853. "machineType": "",
  12854. "qualificationImg": "",
  12855. "includedTax": "0",
  12856. "taxPoint": 10,
  12857. "supplierTaxPoint": 10,
  12858. "invoiceType": "3",
  12859. "recommendType": "0",
  12860. "skuID": null,
  12861. "priceType": null,
  12862. "combinationID": null,
  12863. "combinationSort": null,
  12864. "productCategory": "1",
  12865. "auditReason": null,
  12866. "commodityType": "1",
  12867. "retailPrice": 15.25,
  12868. "discountPrice": null,
  12869. "tagsList": null,
  12870. "imageList": null,
  12871. "productDetail": null,
  12872. "productCount": 1,
  12873. "ladderPriceList": null,
  12874. "shop": null,
  12875. "sellerCartId": 3771,
  12876. "productsChecked": false,
  12877. "repurchasePriceState": false,
  12878. "initProductNum": null,
  12879. "totalPrice": null,
  12880. "failureState": null,
  12881. "smallTypeID": 1037,
  12882. "bigTypeID": 1013,
  12883. "typeName": null,
  12884. "parametersList": null,
  12885. "brandName": null,
  12886. "bigTypeName": null,
  12887. "smallTypeName": null,
  12888. "tinyTypeName": null,
  12889. "activityDiscount": null,
  12890. "promotions": null,
  12891. "giftType": null,
  12892. "userIdentity": null,
  12893. "isChecked": false,
  12894. "detailTalkFlag": null,
  12895. "shopName": null,
  12896. "beautyActFlag": null },
  12897. {
  12898. "productID": 6421,
  12899. "brandID": 25,
  12900. "tinyTypeID": 1120,
  12901. "classifyId": null,
  12902. "preferredFlag": null,
  12903. "selfTypeID": null,
  12904. "shopID": 10134,
  12905. "name": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  12906. "aliasName": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  12907. "searchKey": "##########",
  12908. "productRemarks": null,
  12909. "normalPrice": 15.25,
  12910. "price": 15.25,
  12911. "highestUserLevelPrice": null,
  12912. "lowestUserLevelPrice": null,
  12913. "lowestUserLevelID": null,
  12914. "price0": null,
  12915. "price0Grade": null,
  12916. "price0Text": null,
  12917. "price0TextFlag": null,
  12918. "price1": 15.25,
  12919. "price1Grade": null,
  12920. "price1Text": null,
  12921. "price1TextFlag": "2",
  12922. "price8": null,
  12923. "price8Grade": null,
  12924. "price8Text": null,
  12925. "price8TextFlag": null,
  12926. "ladderPriceFlag": "0",
  12927. "price2": null,
  12928. "price3": null,
  12929. "price4": null,
  12930. "price5": null,
  12931. "price6": null,
  12932. "price7": null,
  12933. "fee": null,
  12934. "stock": 100,
  12935. "hasSkuFlag": "1",
  12936. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHJGCARS7iAAVlWLR-uKU385.jpg",
  12937. "propertiesInfo": null,
  12938. "addTime": "2021-03-09 15:32:19",
  12939. "updateTime": "2021-03-09 15:32:19",
  12940. "classifyAddTime": null,
  12941. "sellNumber": 0,
  12942. "weekSellNumber": null,
  12943. "beforeValidFlag": null,
  12944. "validFlag": "2",
  12945. "favoriteTimes": 0,
  12946. "commentScore": 0,
  12947. "commentTimes": 0,
  12948. "selfRecommendFlag": null,
  12949. "sysRecommendFlag": null,
  12950. "sortIndex": 0,
  12951. "featuredFlag": "0",
  12952. "featuredSortIndex": null,
  12953. "productCode": "sdfsSGZee3336421",
  12954. "rate1": null,
  12955. "rate2": null,
  12956. "unit": "瓶",
  12957. "synToERPFlag": null,
  12958. "allAreaFlag": "1",
  12959. "provinceIDs": "0",
  12960. "serviceNumber": "1",
  12961. "maxBuyNumber": null,
  12962. "virtualFlag": null,
  12963. "minBuyNumber": 1,
  12964. "packageCount": null,
  12965. "byFlag": null,
  12966. "normalProductFlag": 1,
  12967. "wholeSaleProductFlag": null,
  12968. "promotionProductFlag": null,
  12969. "groupBuyProductFlag": null,
  12970. "step": 1,
  12971. "speCommisionFlag": null,
  12972. "speCommision": null,
  12973. "videourl": null,
  12974. "props": null,
  12975. "providers": null,
  12976. "serviceCommissionRatio": null,
  12977. "reCommissionRatio": null,
  12978. "pushToERPName": null,
  12979. "prodBeans": null,
  12980. "useBeansFlag": null,
  12981. "privateFlag": null,
  12982. "invisibleServiceProviderIDs": null,
  12983. "displayOnCRMFlag": null,
  12984. "needServiceFlag": null,
  12985. "actFlag": 0,
  12986. "actStatus": null,
  12987. "actSort": null,
  12988. "actPrice0": null,
  12989. "actPrice1": null,
  12990. "actPrice2": null,
  12991. "actPrice3": null,
  12992. "actPrice4": null,
  12993. "actPrice5": null,
  12994. "actPrice6": null,
  12995. "actPrice7": null,
  12996. "actType": null,
  12997. "actCreateTime": null,
  12998. "actFullReduceAmount": null,
  12999. "actReduceAmount": null,
  13000. "visibility": "3",
  13001. "actFullGiftAmount": null,
  13002. "actBuyGiftNum": null,
  13003. "beginTime": null,
  13004. "endTime": null,
  13005. "shopIndexModuleID": null,
  13006. "onlineTime": null,
  13007. "downlineTime": null,
  13008. "freePostFlag": "2",
  13009. "crmBigTypeId": null,
  13010. "crmSmallTypeId": null,
  13011. "costPrice": 10,
  13012. "costProportional": null,
  13013. "costCheckFlag": "1",
  13014. "precisehKey": null,
  13015. "docBoost": null,
  13016. "cmbeanFlag": null,
  13017. "cmbeanPrice": null,
  13018. "cmbeanSort": null,
  13019. "tags": "注射",
  13020. "surplusTime": null,
  13021. "productType": "1",
  13022. "machineType": "",
  13023. "qualificationImg": "",
  13024. "includedTax": "0",
  13025. "taxPoint": 10,
  13026. "supplierTaxPoint": 10,
  13027. "invoiceType": "3",
  13028. "recommendType": "0",
  13029. "skuID": null,
  13030. "priceType": null,
  13031. "combinationID": null,
  13032. "combinationSort": null,
  13033. "productCategory": "1",
  13034. "auditReason": null,
  13035. "commodityType": "1",
  13036. "retailPrice": 15.25,
  13037. "discountPrice": null,
  13038. "tagsList": null,
  13039. "imageList": null,
  13040. "productDetail": null,
  13041. "productCount": 1,
  13042. "ladderPriceList": null,
  13043. "shop": null,
  13044. "sellerCartId": 3771,
  13045. "productsChecked": false,
  13046. "repurchasePriceState": false,
  13047. "initProductNum": null,
  13048. "totalPrice": null,
  13049. "failureState": null,
  13050. "smallTypeID": 1037,
  13051. "bigTypeID": 1013,
  13052. "typeName": null,
  13053. "parametersList": null,
  13054. "brandName": null,
  13055. "bigTypeName": null,
  13056. "smallTypeName": null,
  13057. "tinyTypeName": null,
  13058. "activityDiscount": null,
  13059. "promotions": null,
  13060. "giftType": null,
  13061. "userIdentity": null,
  13062. "isChecked": false,
  13063. "detailTalkFlag": null,
  13064. "shopName": null,
  13065. "beautyActFlag": null },
  13066. {
  13067. "productID": 6421,
  13068. "brandID": 25,
  13069. "tinyTypeID": 1120,
  13070. "classifyId": null,
  13071. "preferredFlag": null,
  13072. "selfTypeID": null,
  13073. "shopID": 10134,
  13074. "name": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  13075. "aliasName": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  13076. "searchKey": "##########",
  13077. "productRemarks": null,
  13078. "normalPrice": 15.25,
  13079. "price": 15.25,
  13080. "highestUserLevelPrice": null,
  13081. "lowestUserLevelPrice": null,
  13082. "lowestUserLevelID": null,
  13083. "price0": null,
  13084. "price0Grade": null,
  13085. "price0Text": null,
  13086. "price0TextFlag": null,
  13087. "price1": 15.25,
  13088. "price1Grade": null,
  13089. "price1Text": null,
  13090. "price1TextFlag": "2",
  13091. "price8": null,
  13092. "price8Grade": null,
  13093. "price8Text": null,
  13094. "price8TextFlag": null,
  13095. "ladderPriceFlag": "0",
  13096. "price2": null,
  13097. "price3": null,
  13098. "price4": null,
  13099. "price5": null,
  13100. "price6": null,
  13101. "price7": null,
  13102. "fee": null,
  13103. "stock": 100,
  13104. "hasSkuFlag": "1",
  13105. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHJGCARS7iAAVlWLR-uKU385.jpg",
  13106. "propertiesInfo": null,
  13107. "addTime": "2021-03-09 15:32:19",
  13108. "updateTime": "2021-03-09 15:32:19",
  13109. "classifyAddTime": null,
  13110. "sellNumber": 0,
  13111. "weekSellNumber": null,
  13112. "beforeValidFlag": null,
  13113. "validFlag": "2",
  13114. "favoriteTimes": 0,
  13115. "commentScore": 0,
  13116. "commentTimes": 0,
  13117. "selfRecommendFlag": null,
  13118. "sysRecommendFlag": null,
  13119. "sortIndex": 0,
  13120. "featuredFlag": "0",
  13121. "featuredSortIndex": null,
  13122. "productCode": "sdfsSGZee3336421",
  13123. "rate1": null,
  13124. "rate2": null,
  13125. "unit": "瓶",
  13126. "synToERPFlag": null,
  13127. "allAreaFlag": "1",
  13128. "provinceIDs": "0",
  13129. "serviceNumber": "1",
  13130. "maxBuyNumber": null,
  13131. "virtualFlag": null,
  13132. "minBuyNumber": 1,
  13133. "packageCount": null,
  13134. "byFlag": null,
  13135. "normalProductFlag": 1,
  13136. "wholeSaleProductFlag": null,
  13137. "promotionProductFlag": null,
  13138. "groupBuyProductFlag": null,
  13139. "step": 1,
  13140. "speCommisionFlag": null,
  13141. "speCommision": null,
  13142. "videourl": null,
  13143. "props": null,
  13144. "providers": null,
  13145. "serviceCommissionRatio": null,
  13146. "reCommissionRatio": null,
  13147. "pushToERPName": null,
  13148. "prodBeans": null,
  13149. "useBeansFlag": null,
  13150. "privateFlag": null,
  13151. "invisibleServiceProviderIDs": null,
  13152. "displayOnCRMFlag": null,
  13153. "needServiceFlag": null,
  13154. "actFlag": 0,
  13155. "actStatus": null,
  13156. "actSort": null,
  13157. "actPrice0": null,
  13158. "actPrice1": null,
  13159. "actPrice2": null,
  13160. "actPrice3": null,
  13161. "actPrice4": null,
  13162. "actPrice5": null,
  13163. "actPrice6": null,
  13164. "actPrice7": null,
  13165. "actType": null,
  13166. "actCreateTime": null,
  13167. "actFullReduceAmount": null,
  13168. "actReduceAmount": null,
  13169. "visibility": "3",
  13170. "actFullGiftAmount": null,
  13171. "actBuyGiftNum": null,
  13172. "beginTime": null,
  13173. "endTime": null,
  13174. "shopIndexModuleID": null,
  13175. "onlineTime": null,
  13176. "downlineTime": null,
  13177. "freePostFlag": "2",
  13178. "crmBigTypeId": null,
  13179. "crmSmallTypeId": null,
  13180. "costPrice": 10,
  13181. "costProportional": null,
  13182. "costCheckFlag": "1",
  13183. "precisehKey": null,
  13184. "docBoost": null,
  13185. "cmbeanFlag": null,
  13186. "cmbeanPrice": null,
  13187. "cmbeanSort": null,
  13188. "tags": "注射",
  13189. "surplusTime": null,
  13190. "productType": "1",
  13191. "machineType": "",
  13192. "qualificationImg": "",
  13193. "includedTax": "0",
  13194. "taxPoint": 10,
  13195. "supplierTaxPoint": 10,
  13196. "invoiceType": "3",
  13197. "recommendType": "0",
  13198. "skuID": null,
  13199. "priceType": null,
  13200. "combinationID": null,
  13201. "combinationSort": null,
  13202. "productCategory": "1",
  13203. "auditReason": null,
  13204. "commodityType": "1",
  13205. "retailPrice": 15.25,
  13206. "discountPrice": null,
  13207. "tagsList": null,
  13208. "imageList": null,
  13209. "productDetail": null,
  13210. "productCount": 1,
  13211. "ladderPriceList": null,
  13212. "shop": null,
  13213. "sellerCartId": 3771,
  13214. "productsChecked": false,
  13215. "repurchasePriceState": false,
  13216. "initProductNum": null,
  13217. "totalPrice": null,
  13218. "failureState": null,
  13219. "smallTypeID": 1037,
  13220. "bigTypeID": 1013,
  13221. "typeName": null,
  13222. "parametersList": null,
  13223. "brandName": null,
  13224. "bigTypeName": null,
  13225. "smallTypeName": null,
  13226. "tinyTypeName": null,
  13227. "activityDiscount": null,
  13228. "promotions": null,
  13229. "giftType": null,
  13230. "userIdentity": null,
  13231. "isChecked": false,
  13232. "detailTalkFlag": null,
  13233. "shopName": null,
  13234. "beautyActFlag": null },
  13235. {
  13236. "productID": 6420,
  13237. "brandID": 25,
  13238. "tinyTypeID": null,
  13239. "classifyId": null,
  13240. "preferredFlag": null,
  13241. "selfTypeID": null,
  13242. "shopID": 10134,
  13243. "name": "【测试用】润百颜注射修饰透明质酸钠凝胶1ml",
  13244. "aliasName": "【测试用】润百颜注射修饰透明质酸钠凝胶1ml",
  13245. "searchKey": "##########",
  13246. "productRemarks": null,
  13247. "normalPrice": 25.75,
  13248. "price": 25.75,
  13249. "highestUserLevelPrice": null,
  13250. "lowestUserLevelPrice": null,
  13251. "lowestUserLevelID": null,
  13252. "price0": null,
  13253. "price0Grade": null,
  13254. "price0Text": null,
  13255. "price0TextFlag": null,
  13256. "price1": 25.75,
  13257. "price1Grade": null,
  13258. "price1Text": null,
  13259. "price1TextFlag": "2",
  13260. "price8": null,
  13261. "price8Grade": null,
  13262. "price8Text": null,
  13263. "price8TextFlag": null,
  13264. "ladderPriceFlag": "0",
  13265. "price2": null,
  13266. "price3": null,
  13267. "price4": null,
  13268. "price5": null,
  13269. "price6": null,
  13270. "price7": null,
  13271. "fee": null,
  13272. "stock": 100,
  13273. "hasSkuFlag": "1",
  13274. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHIIWATL05AAGHUpelz2U374.jpg",
  13275. "propertiesInfo": null,
  13276. "addTime": "2021-03-09 15:15:45",
  13277. "updateTime": "2021-03-09 15:15:45",
  13278. "classifyAddTime": null,
  13279. "sellNumber": 0,
  13280. "weekSellNumber": null,
  13281. "beforeValidFlag": null,
  13282. "validFlag": "2",
  13283. "favoriteTimes": 0,
  13284. "commentScore": 0,
  13285. "commentTimes": 0,
  13286. "selfRecommendFlag": null,
  13287. "sysRecommendFlag": null,
  13288. "sortIndex": 0,
  13289. "featuredFlag": "0",
  13290. "featuredSortIndex": null,
  13291. "productCode": "kscz6420",
  13292. "rate1": null,
  13293. "rate2": null,
  13294. "unit": "盒",
  13295. "synToERPFlag": null,
  13296. "allAreaFlag": "1",
  13297. "provinceIDs": "0",
  13298. "serviceNumber": "1",
  13299. "maxBuyNumber": null,
  13300. "virtualFlag": null,
  13301. "minBuyNumber": 1,
  13302. "packageCount": null,
  13303. "byFlag": null,
  13304. "normalProductFlag": 1,
  13305. "wholeSaleProductFlag": null,
  13306. "promotionProductFlag": null,
  13307. "groupBuyProductFlag": null,
  13308. "step": 1,
  13309. "speCommisionFlag": null,
  13310. "speCommision": null,
  13311. "videourl": null,
  13312. "props": null,
  13313. "providers": null,
  13314. "serviceCommissionRatio": null,
  13315. "reCommissionRatio": null,
  13316. "pushToERPName": null,
  13317. "prodBeans": null,
  13318. "useBeansFlag": null,
  13319. "privateFlag": null,
  13320. "invisibleServiceProviderIDs": null,
  13321. "displayOnCRMFlag": null,
  13322. "needServiceFlag": null,
  13323. "actFlag": 0,
  13324. "actStatus": null,
  13325. "actSort": null,
  13326. "actPrice0": null,
  13327. "actPrice1": null,
  13328. "actPrice2": null,
  13329. "actPrice3": null,
  13330. "actPrice4": null,
  13331. "actPrice5": null,
  13332. "actPrice6": null,
  13333. "actPrice7": null,
  13334. "actType": null,
  13335. "actCreateTime": null,
  13336. "actFullReduceAmount": null,
  13337. "actReduceAmount": null,
  13338. "visibility": "3",
  13339. "actFullGiftAmount": null,
  13340. "actBuyGiftNum": null,
  13341. "beginTime": null,
  13342. "endTime": null,
  13343. "shopIndexModuleID": null,
  13344. "onlineTime": null,
  13345. "downlineTime": null,
  13346. "freePostFlag": "2",
  13347. "crmBigTypeId": null,
  13348. "crmSmallTypeId": null,
  13349. "costPrice": 20,
  13350. "costProportional": null,
  13351. "costCheckFlag": "1",
  13352. "precisehKey": null,
  13353. "docBoost": null,
  13354. "cmbeanFlag": null,
  13355. "cmbeanPrice": null,
  13356. "cmbeanSort": null,
  13357. "tags": "注射",
  13358. "surplusTime": null,
  13359. "productType": "1",
  13360. "machineType": "",
  13361. "qualificationImg": "",
  13362. "includedTax": "0",
  13363. "taxPoint": 10,
  13364. "supplierTaxPoint": 10,
  13365. "invoiceType": "2",
  13366. "recommendType": "0",
  13367. "skuID": null,
  13368. "priceType": null,
  13369. "combinationID": null,
  13370. "combinationSort": null,
  13371. "productCategory": "1",
  13372. "auditReason": null,
  13373. "commodityType": "1",
  13374. "retailPrice": 28.325,
  13375. "discountPrice": null,
  13376. "tagsList": null,
  13377. "imageList": null,
  13378. "productDetail": null,
  13379. "productCount": 1,
  13380. "ladderPriceList": null,
  13381. "shop": null,
  13382. "sellerCartId": 3772,
  13383. "productsChecked": false,
  13384. "repurchasePriceState": false,
  13385. "initProductNum": null,
  13386. "totalPrice": null,
  13387. "failureState": null,
  13388. "smallTypeID": null,
  13389. "bigTypeID": 1014,
  13390. "typeName": null,
  13391. "parametersList": null,
  13392. "brandName": null,
  13393. "bigTypeName": null,
  13394. "smallTypeName": null,
  13395. "tinyTypeName": null,
  13396. "activityDiscount": null,
  13397. "promotions": null,
  13398. "giftType": null,
  13399. "userIdentity": null,
  13400. "isChecked": false,
  13401. "detailTalkFlag": null,
  13402. "shopName": null,
  13403. "beautyActFlag": null },
  13404. {
  13405. "productID": 6419,
  13406. "brandID": 1,
  13407. "tinyTypeID": null,
  13408. "classifyId": null,
  13409. "preferredFlag": null,
  13410. "selfTypeID": null,
  13411. "shopID": 10134,
  13412. "name": "【测试用】Dermaheal HSR 德玛莉肌活丝蕴凝颜精华液",
  13413. "aliasName": "【测试用】Dermaheal HSR 德玛莉肌活丝蕴凝颜精华液",
  13414. "searchKey": "##########",
  13415. "productRemarks": null,
  13416. "normalPrice": 25.25,
  13417. "price": 25.25,
  13418. "highestUserLevelPrice": null,
  13419. "lowestUserLevelPrice": null,
  13420. "lowestUserLevelID": null,
  13421. "price0": null,
  13422. "price0Grade": null,
  13423. "price0Text": null,
  13424. "price0TextFlag": null,
  13425. "price1": 25.25,
  13426. "price1Grade": null,
  13427. "price1Text": null,
  13428. "price1TextFlag": "2",
  13429. "price8": null,
  13430. "price8Grade": null,
  13431. "price8Text": null,
  13432. "price8TextFlag": null,
  13433. "ladderPriceFlag": "0",
  13434. "price2": null,
  13435. "price3": null,
  13436. "price4": null,
  13437. "price5": null,
  13438. "price6": null,
  13439. "price7": null,
  13440. "fee": null,
  13441. "stock": 200,
  13442. "hasSkuFlag": "1",
  13443. "mainImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHH8aAFiGIAAGHr5DovGA124.jpg",
  13444. "propertiesInfo": null,
  13445. "addTime": "2021-03-09 15:12:28",
  13446. "updateTime": "2021-03-09 15:12:28",
  13447. "classifyAddTime": null,
  13448. "sellNumber": 0,
  13449. "weekSellNumber": null,
  13450. "beforeValidFlag": null,
  13451. "validFlag": "2",
  13452. "favoriteTimes": 0,
  13453. "commentScore": 0,
  13454. "commentTimes": 0,
  13455. "selfRecommendFlag": null,
  13456. "sysRecommendFlag": null,
  13457. "sortIndex": 0,
  13458. "featuredFlag": "0",
  13459. "featuredSortIndex": null,
  13460. "productCode": "FWLCP6419",
  13461. "rate1": null,
  13462. "rate2": null,
  13463. "unit": "片",
  13464. "synToERPFlag": null,
  13465. "allAreaFlag": "1",
  13466. "provinceIDs": "0",
  13467. "serviceNumber": "1",
  13468. "maxBuyNumber": null,
  13469. "virtualFlag": null,
  13470. "minBuyNumber": 1,
  13471. "packageCount": null,
  13472. "byFlag": null,
  13473. "normalProductFlag": 1,
  13474. "wholeSaleProductFlag": null,
  13475. "promotionProductFlag": null,
  13476. "groupBuyProductFlag": null,
  13477. "step": 1,
  13478. "speCommisionFlag": null,
  13479. "speCommision": null,
  13480. "videourl": null,
  13481. "props": null,
  13482. "providers": null,
  13483. "serviceCommissionRatio": null,
  13484. "reCommissionRatio": null,
  13485. "pushToERPName": null,
  13486. "prodBeans": null,
  13487. "useBeansFlag": null,
  13488. "privateFlag": null,
  13489. "invisibleServiceProviderIDs": null,
  13490. "displayOnCRMFlag": null,
  13491. "needServiceFlag": null,
  13492. "actFlag": 0,
  13493. "actStatus": null,
  13494. "actSort": null,
  13495. "actPrice0": null,
  13496. "actPrice1": null,
  13497. "actPrice2": null,
  13498. "actPrice3": null,
  13499. "actPrice4": null,
  13500. "actPrice5": null,
  13501. "actPrice6": null,
  13502. "actPrice7": null,
  13503. "actType": null,
  13504. "actCreateTime": null,
  13505. "actFullReduceAmount": null,
  13506. "actReduceAmount": null,
  13507. "visibility": "3",
  13508. "actFullGiftAmount": null,
  13509. "actBuyGiftNum": null,
  13510. "beginTime": null,
  13511. "endTime": null,
  13512. "shopIndexModuleID": null,
  13513. "onlineTime": null,
  13514. "downlineTime": null,
  13515. "freePostFlag": "2",
  13516. "crmBigTypeId": null,
  13517. "crmSmallTypeId": null,
  13518. "costPrice": 20,
  13519. "costProportional": null,
  13520. "costCheckFlag": "1",
  13521. "precisehKey": null,
  13522. "docBoost": null,
  13523. "cmbeanFlag": null,
  13524. "cmbeanPrice": null,
  13525. "cmbeanSort": null,
  13526. "tags": "面膜",
  13527. "surplusTime": null,
  13528. "productType": "1",
  13529. "machineType": "",
  13530. "qualificationImg": "",
  13531. "includedTax": "0",
  13532. "taxPoint": 13,
  13533. "supplierTaxPoint": 13,
  13534. "invoiceType": "1",
  13535. "recommendType": "0",
  13536. "skuID": null,
  13537. "priceType": null,
  13538. "combinationID": null,
  13539. "combinationSort": null,
  13540. "productCategory": "1",
  13541. "auditReason": null,
  13542. "commodityType": "1",
  13543. "retailPrice": 28.5325,
  13544. "discountPrice": null,
  13545. "tagsList": null,
  13546. "imageList": null,
  13547. "productDetail": null,
  13548. "productCount": 1,
  13549. "ladderPriceList": null,
  13550. "shop": null,
  13551. "sellerCartId": 3773,
  13552. "productsChecked": false,
  13553. "repurchasePriceState": false,
  13554. "initProductNum": null,
  13555. "totalPrice": null,
  13556. "failureState": null,
  13557. "smallTypeID": null,
  13558. "bigTypeID": 1018,
  13559. "typeName": null,
  13560. "parametersList": null,
  13561. "brandName": null,
  13562. "bigTypeName": null,
  13563. "smallTypeName": null,
  13564. "tinyTypeName": null,
  13565. "activityDiscount": null,
  13566. "promotions": null,
  13567. "giftType": null,
  13568. "userIdentity": null,
  13569. "isChecked": false,
  13570. "detailTalkFlag": null,
  13571. "shopName": null,
  13572. "beautyActFlag": null }];
  13573. var orderDataList = [
  13574. {
  13575. "orderID": 15212,
  13576. "orderNo": "X161613565411068",
  13577. "organizeID": 0,
  13578. "userID": 11063,
  13579. "buyUserID": 11062,
  13580. "shopOrderIDs": "19376",
  13581. "orderSubmitType": 3,
  13582. "orderType": 0,
  13583. "hasActProduct": "1",
  13584. "autoCloseTimeMills": 0,
  13585. "status": "0",
  13586. "receiptStatus": "1",
  13587. "payStatus": "1",
  13588. "sendOutStatus": "1",
  13589. "refundType": "0",
  13590. "paySuccessCounter": 0,
  13591. "payFlag": "0",
  13592. "onlinePayFlag": "0",
  13593. "productTotalFee": 500,
  13594. "orderTotalFee": 500,
  13595. "payTotalFee": 500,
  13596. "payableAmount": 500,
  13597. "balancePayFee": 0,
  13598. "preferential": 0,
  13599. "discountFee": 0,
  13600. "promotionFullReduction": 0,
  13601. "spID": 1401,
  13602. "mainSpID": 1304,
  13603. "note": null,
  13604. "clubID": 5638,
  13605. "clubScanTime": null,
  13606. "payWay": null,
  13607. "orderSource": "6",
  13608. "closeTime": null,
  13609. "confirmTime": null,
  13610. "payTime": null,
  13611. "orderTime": "2021-03-19 14:34:14",
  13612. "productCount": 1,
  13613. "presentCount": 0,
  13614. "promotionalGiftsCount": 0,
  13615. "cooFreeFlag": "0",
  13616. "cooFreeRate": 0,
  13617. "cooFreeAmount": 0,
  13618. "invoiceFlag": "0",
  13619. "confirmFlag": "0",
  13620. "clauseID": 1,
  13621. "clauseContent": null,
  13622. "clauseName": "无条款",
  13623. "updateDate": "2021-03-19 14:34:14",
  13624. "freePostFlag": "-1",
  13625. "freight": 0,
  13626. "delFlag": "0",
  13627. "freePostageTicketID": null,
  13628. "splitFlag": "1",
  13629. "closeReason": null,
  13630. "postageOrderFlag": "0",
  13631. "thirdPartyOrderNo": null,
  13632. "secondHandOrderFlag": "0",
  13633. "affirmPaymentFlag": "0",
  13634. "rebateFlag": "0",
  13635. "zeroCostFlag": 0,
  13636. "orderState": null,
  13637. "orderMark": null,
  13638. "receiptAmount": 0,
  13639. "pendingPayments": 500,
  13640. "returnedPurchaseFee": null,
  13641. "shopOrderList": [
  13642. {
  13643. "shopOrderID": 19376,
  13644. "shopOrderNo": "X16161356541106801",
  13645. "orderNo": "X161613565411068",
  13646. "orderID": 15212,
  13647. "organizeID": null,
  13648. "userID": 11063,
  13649. "shopID": 1186,
  13650. "orderPromotionsId": null,
  13651. "orderType": 0,
  13652. "orderSubmitType": 3,
  13653. "presentNum": 0,
  13654. "itemCount": 1,
  13655. "outStoreNum": 0,
  13656. "outStoreTimes": 0,
  13657. "townID": null,
  13658. "note": "",
  13659. "fee": -1,
  13660. "accountAmount": 0,
  13661. "productAmount": 8500,
  13662. "totalAmount": 500,
  13663. "needPayAmount": 500,
  13664. "discountAmount": null,
  13665. "discountFee": 0,
  13666. "preferential": 0,
  13667. "promotionFullReduction": 0,
  13668. "payFlag": "0",
  13669. "orderTime": "2021-03-19 14:34:14",
  13670. "payTime": null,
  13671. "finishTime": null,
  13672. "autoOverTimeMills": null,
  13673. "status": 1,
  13674. "payStatus": "1",
  13675. "sendOutStatus": "1",
  13676. "refundStatus": 0,
  13677. "returnGoodsStatus": null,
  13678. "receiveGoodsTime": null,
  13679. "autoReceiveTimeMills": null,
  13680. "totalAddedValueTax": null,
  13681. "canRefundAmount": 500,
  13682. "refundAmount": null,
  13683. "clubID": 5638,
  13684. "spID": 1401,
  13685. "mainSpID": 1304,
  13686. "orderBeanAmount": 0,
  13687. "useBeanAmount": 0,
  13688. "useBeanFlag": 0,
  13689. "canRefundFlag": 1,
  13690. "useBalanceFlag": 0,
  13691. "canRefundBeans": null,
  13692. "freePostageFee": null,
  13693. "freePostageTicketID": null,
  13694. "brokerage": 1090,
  13695. "delFlag": "0",
  13696. "refundsAmount": 0,
  13697. "orderStatusFlag": "1",
  13698. "buyStatus": "1",
  13699. "deliveryTimeMills": null,
  13700. "orderDeliveryID": null,
  13701. "splitFlag": "0",
  13702. "receiptedFlag": null,
  13703. "receiptedType": null,
  13704. "paying": "0",
  13705. "shopProductAmount": 7410,
  13706. "shopPostFee": 0,
  13707. "shopTaxFee": 0,
  13708. "shouldPayShopAmount": 7410,
  13709. "payedShopAmount": 0,
  13710. "shopOtherFee": 0,
  13711. "refunding": null,
  13712. "costType": null,
  13713. "proportional": null,
  13714. "modifyShouldPayNote": null,
  13715. "modifyShouldPayUserID": null,
  13716. "modifyShouldPayDate": null,
  13717. "zeroCostFlag": 0,
  13718. "shopName": "北京嘉盛壹美科技有限公司",
  13719. "shopLogo": "https://www-b.caimei365.com/img/default/suppliver.jpg",
  13720. "logisticsRecordList": null,
  13721. "orderProductList": [
  13722. {
  13723. "orderProductID": 29361,
  13724. "orderNo": "X161613565411068",
  13725. "orderID": 15212,
  13726. "shopOrderID": 19376,
  13727. "shopOrderNo": "X16161356541106801",
  13728. "shopID": 1186,
  13729. "productID": 3957,
  13730. "organizeProductID": null,
  13731. "organizeID": null,
  13732. "num": 1,
  13733. "presentNum": 0,
  13734. "outStoreType": null,
  13735. "skuID": null,
  13736. "props": null,
  13737. "propName": null,
  13738. "productNo": null,
  13739. "price": 8500,
  13740. "normalPrice": 10000,
  13741. "costPrice": 7410,
  13742. "price0": 8500,
  13743. "price1": 8500,
  13744. "totalAmount": 8500,
  13745. "totalFee": 500,
  13746. "shouldPayFee": 500,
  13747. "discount": 100,
  13748. "discountPrice": 8500,
  13749. "includedTax": "2",
  13750. "invoiceType": "3",
  13751. "taxRate": 0,
  13752. "supplierTaxRate": 0,
  13753. "addedValueTax": 0,
  13754. "totalAddedValueTax": 0,
  13755. "shouldPayTotalTax": 0,
  13756. "singleShouldPayTotalTax": 0,
  13757. "shopProductAmount": 7410,
  13758. "shopFee": 7410,
  13759. "otherFee": 0,
  13760. "cmFee": 1090,
  13761. "singleShopFee": 7410,
  13762. "singleOtherFee": 0,
  13763. "singleCmFee": 1090,
  13764. "status": null,
  13765. "commentFlag": "0",
  13766. "totalBeans": 0,
  13767. "useBalanceAmount": 0,
  13768. "useBeanAmount": null,
  13769. "notOutStore": 1,
  13770. "cmbeanPrice": null,
  13771. "isActProduct": "1",
  13772. "isGiftProduct": "0",
  13773. "productActInfo": null,
  13774. "buyAgainFlag": "0",
  13775. "confirmProductFlag": "0",
  13776. "payStatus": "0",
  13777. "shopName": "北京嘉盛壹美科技有限公司",
  13778. "name": "A-ONE TAB with wifi检测仪 面部检测仪",
  13779. "productUnit": "台",
  13780. "productImage": "https://img.caimei365.com/group1/M00/00/8A/Cmis2FpfAGOAaCQfAACFGx9pRi496.JPEG",
  13781. "actType": null,
  13782. "actPreferential": 0,
  13783. "productType": "0",
  13784. "orderPromotionsId": 397,
  13785. "preferential": 0,
  13786. "discountFee": 0,
  13787. "cancelNum": null,
  13788. "ladderPriceFlag": 0,
  13789. "shipmentsNum": null,
  13790. "returnedNum": null,
  13791. "actualCancelNum": null,
  13792. "aliasName": null,
  13793. "productCategory": "1",
  13794. "secondHandType": null,
  13795. "productPromotion": {
  13796. "id": 397,
  13797. "name": "优惠价",
  13798. "description": null,
  13799. "type": 1,
  13800. "mode": 1,
  13801. "touchPrice": 500,
  13802. "reducedPrice": null,
  13803. "beginTime": null,
  13804. "endTime": null,
  13805. "status": 1,
  13806. "supplierId": null,
  13807. "productId": null,
  13808. "orderId": 15212,
  13809. "productList": null,
  13810. "giftList": null,
  13811. "products": null },
  13812. "includedTaxFlag": null }],
  13813. "userInfo": null,
  13814. "name": null,
  13815. "receiptStatus": null,
  13816. "shopPromotion": null,
  13817. "shouHuoRen": null }],
  13818. "clubName": "正经一点机构",
  13819. "invoiceStatus": false,
  13820. "payButton": true,
  13821. "expensesOfTaxation": null },
  13822. {
  13823. "orderID": 15211,
  13824. "orderNo": "X161613560870120",
  13825. "organizeID": 0,
  13826. "userID": 11063,
  13827. "buyUserID": 11062,
  13828. "shopOrderIDs": "19375",
  13829. "orderSubmitType": 3,
  13830. "orderType": 0,
  13831. "hasActProduct": "1",
  13832. "autoCloseTimeMills": 0,
  13833. "status": "0",
  13834. "receiptStatus": "1",
  13835. "payStatus": "1",
  13836. "sendOutStatus": "1",
  13837. "refundType": "0",
  13838. "paySuccessCounter": 0,
  13839. "payFlag": "0",
  13840. "onlinePayFlag": "0",
  13841. "productTotalFee": 275008.8,
  13842. "orderTotalFee": 275008.8,
  13843. "payTotalFee": 275008.8,
  13844. "payableAmount": 275008.8,
  13845. "balancePayFee": 0,
  13846. "preferential": 0,
  13847. "discountFee": 0,
  13848. "promotionFullReduction": 0,
  13849. "spID": 1401,
  13850. "mainSpID": 1304,
  13851. "note": null,
  13852. "clubID": 5638,
  13853. "clubScanTime": null,
  13854. "payWay": null,
  13855. "orderSource": "6",
  13856. "closeTime": null,
  13857. "confirmTime": null,
  13858. "payTime": null,
  13859. "orderTime": "2021-03-19 14:33:28",
  13860. "productCount": 1,
  13861. "presentCount": 0,
  13862. "promotionalGiftsCount": 0,
  13863. "cooFreeFlag": "0",
  13864. "cooFreeRate": 0,
  13865. "cooFreeAmount": 0,
  13866. "invoiceFlag": "0",
  13867. "confirmFlag": "0",
  13868. "clauseID": 1,
  13869. "clauseContent": null,
  13870. "clauseName": "无条款",
  13871. "updateDate": "2021-03-19 14:33:28",
  13872. "freePostFlag": "-1",
  13873. "freight": 0,
  13874. "delFlag": "0",
  13875. "freePostageTicketID": null,
  13876. "splitFlag": "1",
  13877. "closeReason": null,
  13878. "postageOrderFlag": "0",
  13879. "thirdPartyOrderNo": null,
  13880. "secondHandOrderFlag": "0",
  13881. "affirmPaymentFlag": "0",
  13882. "rebateFlag": "0",
  13883. "zeroCostFlag": 0,
  13884. "orderState": null,
  13885. "orderMark": null,
  13886. "receiptAmount": 0,
  13887. "pendingPayments": 275008.8,
  13888. "returnedPurchaseFee": null,
  13889. "shopOrderList": [
  13890. {
  13891. "shopOrderID": 19375,
  13892. "shopOrderNo": "X16161356087012001",
  13893. "orderNo": "X161613560870120",
  13894. "orderID": 15211,
  13895. "organizeID": null,
  13896. "userID": 11063,
  13897. "shopID": 1001,
  13898. "orderPromotionsId": null,
  13899. "orderType": 0,
  13900. "orderSubmitType": 3,
  13901. "presentNum": 0,
  13902. "itemCount": 1,
  13903. "outStoreNum": 0,
  13904. "outStoreTimes": 0,
  13905. "townID": null,
  13906. "note": "",
  13907. "fee": -1,
  13908. "accountAmount": 0,
  13909. "productAmount": 250008,
  13910. "totalAmount": 275008.8,
  13911. "needPayAmount": 275008.8,
  13912. "discountAmount": null,
  13913. "discountFee": 0,
  13914. "preferential": 0,
  13915. "promotionFullReduction": 0,
  13916. "payFlag": "0",
  13917. "orderTime": "2021-03-19 14:33:28",
  13918. "payTime": null,
  13919. "finishTime": null,
  13920. "autoOverTimeMills": null,
  13921. "status": 1,
  13922. "payStatus": "1",
  13923. "sendOutStatus": "1",
  13924. "refundStatus": 0,
  13925. "returnGoodsStatus": null,
  13926. "receiveGoodsTime": null,
  13927. "autoReceiveTimeMills": null,
  13928. "totalAddedValueTax": null,
  13929. "canRefundAmount": 275009,
  13930. "refundAmount": null,
  13931. "clubID": 5638,
  13932. "spID": 1401,
  13933. "mainSpID": 1304,
  13934. "orderBeanAmount": 0,
  13935. "useBeanAmount": 0,
  13936. "useBeanFlag": 0,
  13937. "canRefundFlag": 1,
  13938. "useBalanceFlag": 0,
  13939. "canRefundBeans": null,
  13940. "freePostageFee": null,
  13941. "freePostageTicketID": null,
  13942. "brokerage": 274782.8,
  13943. "delFlag": "0",
  13944. "refundsAmount": 0,
  13945. "orderStatusFlag": "1",
  13946. "buyStatus": "1",
  13947. "deliveryTimeMills": null,
  13948. "orderDeliveryID": null,
  13949. "splitFlag": "0",
  13950. "receiptedFlag": null,
  13951. "receiptedType": null,
  13952. "paying": "0",
  13953. "shopProductAmount": 200,
  13954. "shopPostFee": 0,
  13955. "shopTaxFee": 26,
  13956. "shouldPayShopAmount": 226,
  13957. "payedShopAmount": 0,
  13958. "shopOtherFee": 0,
  13959. "refunding": null,
  13960. "costType": null,
  13961. "proportional": null,
  13962. "modifyShouldPayNote": null,
  13963. "modifyShouldPayUserID": null,
  13964. "modifyShouldPayDate": null,
  13965. "zeroCostFlag": 0,
  13966. "shopName": "香港丽润国际",
  13967. "shopLogo": "https://www-b.caimei365.com/uploadFile/shopLogo/ZXV6IIFSP520140415035836.jpg",
  13968. "logisticsRecordList": null,
  13969. "orderProductList": [
  13970. {
  13971. "orderProductID": 29360,
  13972. "orderNo": "X161613560870120",
  13973. "orderID": 15211,
  13974. "shopOrderID": 19375,
  13975. "shopOrderNo": "X16161356087012001",
  13976. "shopID": 1001,
  13977. "productID": 1010,
  13978. "organizeProductID": null,
  13979. "organizeID": null,
  13980. "num": 1,
  13981. "presentNum": 0,
  13982. "outStoreType": null,
  13983. "skuID": null,
  13984. "props": null,
  13985. "propName": null,
  13986. "productNo": null,
  13987. "price": 275008.8,
  13988. "normalPrice": 660,
  13989. "costPrice": 200,
  13990. "price0": 250008,
  13991. "price1": 250008,
  13992. "totalAmount": 250008,
  13993. "totalFee": 275008.8,
  13994. "shouldPayFee": 275008.8,
  13995. "discount": 100,
  13996. "discountPrice": 300009.6,
  13997. "includedTax": "0",
  13998. "invoiceType": "1",
  13999. "taxRate": 10,
  14000. "supplierTaxRate": 13,
  14001. "addedValueTax": 25000.8,
  14002. "totalAddedValueTax": 25000.8,
  14003. "shouldPayTotalTax": 26,
  14004. "singleShouldPayTotalTax": 26,
  14005. "shopProductAmount": 200,
  14006. "shopFee": 226,
  14007. "otherFee": 0,
  14008. "cmFee": 274782.8,
  14009. "singleShopFee": 226,
  14010. "singleOtherFee": 0,
  14011. "singleCmFee": 274782.8,
  14012. "status": null,
  14013. "commentFlag": "0",
  14014. "totalBeans": 0,
  14015. "useBalanceAmount": 0,
  14016. "useBeanAmount": null,
  14017. "notOutStore": 1,
  14018. "cmbeanPrice": null,
  14019. "isActProduct": "1",
  14020. "isGiftProduct": "0",
  14021. "productActInfo": null,
  14022. "buyAgainFlag": "0",
  14023. "confirmProductFlag": "0",
  14024. "payStatus": "0",
  14025. "shopName": "香港丽润国际",
  14026. "name": "大幅度第三方团雪山之恋丝绒洁面乳团雪山之恋丝绒洁面乳团雪山之恋丝绒洁面乳团雪山之恋丝绒洁面乳",
  14027. "productUnit": "100ml/瓶",
  14028. "productImage": "https://img-b.caimei365.com/group1/M00/03/09/Cmgy61-Gr6qAG5rbAADFf8tivls567.jpg",
  14029. "actType": null,
  14030. "actPreferential": 0,
  14031. "productType": "0",
  14032. "orderPromotionsId": null,
  14033. "preferential": 0,
  14034. "discountFee": 0,
  14035. "cancelNum": null,
  14036. "ladderPriceFlag": 0,
  14037. "shipmentsNum": null,
  14038. "returnedNum": null,
  14039. "actualCancelNum": null,
  14040. "aliasName": null,
  14041. "productCategory": "1",
  14042. "secondHandType": null,
  14043. "productPromotion": null,
  14044. "includedTaxFlag": null }],
  14045. "userInfo": null,
  14046. "name": null,
  14047. "receiptStatus": null,
  14048. "shopPromotion": null,
  14049. "shouHuoRen": null }],
  14050. "clubName": "正经一点机构",
  14051. "invoiceStatus": false,
  14052. "payButton": false,
  14053. "expensesOfTaxation": null },
  14054. {
  14055. "orderID": 15210,
  14056. "orderNo": "X161613547788441",
  14057. "organizeID": 0,
  14058. "userID": 11063,
  14059. "buyUserID": 11062,
  14060. "shopOrderIDs": "19374",
  14061. "orderSubmitType": 3,
  14062. "orderType": 0,
  14063. "hasActProduct": "1",
  14064. "autoCloseTimeMills": 0,
  14065. "status": "0",
  14066. "receiptStatus": "1",
  14067. "payStatus": "1",
  14068. "sendOutStatus": "1",
  14069. "refundType": "0",
  14070. "paySuccessCounter": 0,
  14071. "payFlag": "0",
  14072. "onlinePayFlag": "0",
  14073. "productTotalFee": 275008.8,
  14074. "orderTotalFee": 275008.8,
  14075. "payTotalFee": 275008.8,
  14076. "payableAmount": 275008.8,
  14077. "balancePayFee": 0,
  14078. "preferential": 0,
  14079. "discountFee": 0,
  14080. "promotionFullReduction": 0,
  14081. "spID": 1401,
  14082. "mainSpID": 1304,
  14083. "note": null,
  14084. "clubID": 5638,
  14085. "clubScanTime": null,
  14086. "payWay": null,
  14087. "orderSource": "6",
  14088. "closeTime": null,
  14089. "confirmTime": null,
  14090. "payTime": null,
  14091. "orderTime": "2021-03-19 14:31:17",
  14092. "productCount": 1,
  14093. "presentCount": 0,
  14094. "promotionalGiftsCount": 0,
  14095. "cooFreeFlag": "0",
  14096. "cooFreeRate": 0,
  14097. "cooFreeAmount": 0,
  14098. "invoiceFlag": "0",
  14099. "confirmFlag": "0",
  14100. "clauseID": 1,
  14101. "clauseContent": null,
  14102. "clauseName": "无条款",
  14103. "updateDate": "2021-03-19 14:31:17",
  14104. "freePostFlag": "-1",
  14105. "freight": 0,
  14106. "delFlag": "0",
  14107. "freePostageTicketID": null,
  14108. "splitFlag": "1",
  14109. "closeReason": null,
  14110. "postageOrderFlag": "0",
  14111. "thirdPartyOrderNo": null,
  14112. "secondHandOrderFlag": "0",
  14113. "affirmPaymentFlag": "0",
  14114. "rebateFlag": "0",
  14115. "zeroCostFlag": 0,
  14116. "orderState": null,
  14117. "orderMark": null,
  14118. "receiptAmount": 0,
  14119. "pendingPayments": 275008.8,
  14120. "returnedPurchaseFee": null,
  14121. "shopOrderList": [
  14122. {
  14123. "shopOrderID": 19374,
  14124. "shopOrderNo": "X16161354778844101",
  14125. "orderNo": "X161613547788441",
  14126. "orderID": 15210,
  14127. "organizeID": null,
  14128. "userID": 11063,
  14129. "shopID": 1001,
  14130. "orderPromotionsId": null,
  14131. "orderType": 0,
  14132. "orderSubmitType": 3,
  14133. "presentNum": 0,
  14134. "itemCount": 1,
  14135. "outStoreNum": 0,
  14136. "outStoreTimes": 0,
  14137. "townID": null,
  14138. "note": "",
  14139. "fee": -1,
  14140. "accountAmount": 0,
  14141. "productAmount": 250008,
  14142. "totalAmount": 275008.8,
  14143. "needPayAmount": 275008.8,
  14144. "discountAmount": null,
  14145. "discountFee": 0,
  14146. "preferential": 0,
  14147. "promotionFullReduction": 0,
  14148. "payFlag": "0",
  14149. "orderTime": "2021-03-19 14:31:17",
  14150. "payTime": null,
  14151. "finishTime": null,
  14152. "autoOverTimeMills": null,
  14153. "status": 1,
  14154. "payStatus": "1",
  14155. "sendOutStatus": "1",
  14156. "refundStatus": 0,
  14157. "returnGoodsStatus": null,
  14158. "receiveGoodsTime": null,
  14159. "autoReceiveTimeMills": null,
  14160. "totalAddedValueTax": null,
  14161. "canRefundAmount": 275009,
  14162. "refundAmount": null,
  14163. "clubID": 5638,
  14164. "spID": 1401,
  14165. "mainSpID": 1304,
  14166. "orderBeanAmount": 0,
  14167. "useBeanAmount": 0,
  14168. "useBeanFlag": 0,
  14169. "canRefundFlag": 1,
  14170. "useBalanceFlag": 0,
  14171. "canRefundBeans": null,
  14172. "freePostageFee": null,
  14173. "freePostageTicketID": null,
  14174. "brokerage": 274782.8,
  14175. "delFlag": "0",
  14176. "refundsAmount": 0,
  14177. "orderStatusFlag": "1",
  14178. "buyStatus": "1",
  14179. "deliveryTimeMills": null,
  14180. "orderDeliveryID": null,
  14181. "splitFlag": "0",
  14182. "receiptedFlag": null,
  14183. "receiptedType": null,
  14184. "paying": "0",
  14185. "shopProductAmount": 200,
  14186. "shopPostFee": 0,
  14187. "shopTaxFee": 26,
  14188. "shouldPayShopAmount": 226,
  14189. "payedShopAmount": 0,
  14190. "shopOtherFee": 0,
  14191. "refunding": null,
  14192. "costType": null,
  14193. "proportional": null,
  14194. "modifyShouldPayNote": null,
  14195. "modifyShouldPayUserID": null,
  14196. "modifyShouldPayDate": null,
  14197. "zeroCostFlag": 0,
  14198. "shopName": "香港丽润国际",
  14199. "shopLogo": "https://www-b.caimei365.com/uploadFile/shopLogo/ZXV6IIFSP520140415035836.jpg",
  14200. "logisticsRecordList": null,
  14201. "orderProductList": [
  14202. {
  14203. "orderProductID": 29359,
  14204. "orderNo": "X161613547788441",
  14205. "orderID": 15210,
  14206. "shopOrderID": 19374,
  14207. "shopOrderNo": "X16161354778844101",
  14208. "shopID": 1001,
  14209. "productID": 1010,
  14210. "organizeProductID": null,
  14211. "organizeID": null,
  14212. "num": 1,
  14213. "presentNum": 0,
  14214. "outStoreType": null,
  14215. "skuID": null,
  14216. "props": null,
  14217. "propName": null,
  14218. "productNo": null,
  14219. "price": 275008.8,
  14220. "normalPrice": 660,
  14221. "costPrice": 200,
  14222. "price0": 250008,
  14223. "price1": 250008,
  14224. "totalAmount": 250008,
  14225. "totalFee": 275008.8,
  14226. "shouldPayFee": 275008.8,
  14227. "discount": 100,
  14228. "discountPrice": 300009.6,
  14229. "includedTax": "0",
  14230. "invoiceType": "1",
  14231. "taxRate": 10,
  14232. "supplierTaxRate": 13,
  14233. "addedValueTax": 25000.8,
  14234. "totalAddedValueTax": 25000.8,
  14235. "shouldPayTotalTax": 26,
  14236. "singleShouldPayTotalTax": 26,
  14237. "shopProductAmount": 200,
  14238. "shopFee": 226,
  14239. "otherFee": 0,
  14240. "cmFee": 274782.8,
  14241. "singleShopFee": 226,
  14242. "singleOtherFee": 0,
  14243. "singleCmFee": 274782.8,
  14244. "status": null,
  14245. "commentFlag": "0",
  14246. "totalBeans": 0,
  14247. "useBalanceAmount": 0,
  14248. "useBeanAmount": null,
  14249. "notOutStore": 1,
  14250. "cmbeanPrice": null,
  14251. "isActProduct": "1",
  14252. "isGiftProduct": "0",
  14253. "productActInfo": null,
  14254. "buyAgainFlag": "0",
  14255. "confirmProductFlag": "0",
  14256. "payStatus": "0",
  14257. "shopName": "香港丽润国际",
  14258. "name": "大幅度第三方团雪山之恋丝绒洁面乳团雪山之恋丝绒洁面乳团雪山之恋丝绒洁面乳团雪山之恋丝绒洁面乳",
  14259. "productUnit": "100ml/瓶",
  14260. "productImage": "https://img-b.caimei365.com/group1/M00/03/09/Cmgy61-Gr6qAG5rbAADFf8tivls567.jpg",
  14261. "actType": null,
  14262. "actPreferential": 0,
  14263. "productType": "0",
  14264. "orderPromotionsId": null,
  14265. "preferential": 0,
  14266. "discountFee": 0,
  14267. "cancelNum": null,
  14268. "ladderPriceFlag": 0,
  14269. "shipmentsNum": null,
  14270. "returnedNum": null,
  14271. "actualCancelNum": null,
  14272. "aliasName": null,
  14273. "productCategory": "1",
  14274. "secondHandType": null,
  14275. "productPromotion": null,
  14276. "includedTaxFlag": null }],
  14277. "userInfo": null,
  14278. "name": null,
  14279. "receiptStatus": null,
  14280. "shopPromotion": null,
  14281. "shouHuoRen": null }],
  14282. "clubName": "正经一点机构",
  14283. "invoiceStatus": false,
  14284. "payButton": false,
  14285. "expensesOfTaxation": null },
  14286. {
  14287. "orderID": 15209,
  14288. "orderNo": "X161613544703234",
  14289. "organizeID": 0,
  14290. "userID": 11063,
  14291. "buyUserID": 11062,
  14292. "shopOrderIDs": "19373",
  14293. "orderSubmitType": 3,
  14294. "orderType": 0,
  14295. "hasActProduct": "0",
  14296. "autoCloseTimeMills": 0,
  14297. "status": "0",
  14298. "receiptStatus": "1",
  14299. "payStatus": "1",
  14300. "sendOutStatus": "1",
  14301. "refundType": "0",
  14302. "paySuccessCounter": 0,
  14303. "payFlag": "0",
  14304. "onlinePayFlag": "0",
  14305. "productTotalFee": 1800,
  14306. "orderTotalFee": 1800,
  14307. "payTotalFee": 1800,
  14308. "payableAmount": 1800,
  14309. "balancePayFee": 0,
  14310. "preferential": 0,
  14311. "discountFee": 0,
  14312. "promotionFullReduction": 0,
  14313. "spID": 1401,
  14314. "mainSpID": 1304,
  14315. "note": null,
  14316. "clubID": 5638,
  14317. "clubScanTime": null,
  14318. "payWay": null,
  14319. "orderSource": "6",
  14320. "closeTime": null,
  14321. "confirmTime": null,
  14322. "payTime": null,
  14323. "orderTime": "2021-03-19 14:30:47",
  14324. "productCount": 3,
  14325. "presentCount": 0,
  14326. "promotionalGiftsCount": 0,
  14327. "cooFreeFlag": "0",
  14328. "cooFreeRate": 0,
  14329. "cooFreeAmount": 0,
  14330. "invoiceFlag": "0",
  14331. "confirmFlag": "0",
  14332. "clauseID": 1,
  14333. "clauseContent": null,
  14334. "clauseName": "无条款",
  14335. "updateDate": "2021-03-19 14:30:47",
  14336. "freePostFlag": "-1",
  14337. "freight": 0,
  14338. "delFlag": "0",
  14339. "freePostageTicketID": null,
  14340. "splitFlag": "1",
  14341. "closeReason": null,
  14342. "postageOrderFlag": "0",
  14343. "thirdPartyOrderNo": null,
  14344. "secondHandOrderFlag": "0",
  14345. "affirmPaymentFlag": "0",
  14346. "rebateFlag": "0",
  14347. "zeroCostFlag": 0,
  14348. "orderState": null,
  14349. "orderMark": null,
  14350. "receiptAmount": 0,
  14351. "pendingPayments": 1800,
  14352. "returnedPurchaseFee": null,
  14353. "shopOrderList": [
  14354. {
  14355. "shopOrderID": 19373,
  14356. "shopOrderNo": "X16161354470323401",
  14357. "orderNo": "X161613544703234",
  14358. "orderID": 15209,
  14359. "organizeID": null,
  14360. "userID": 11063,
  14361. "shopID": 10109,
  14362. "orderPromotionsId": null,
  14363. "orderType": 0,
  14364. "orderSubmitType": 3,
  14365. "presentNum": 0,
  14366. "itemCount": 3,
  14367. "outStoreNum": 0,
  14368. "outStoreTimes": 0,
  14369. "townID": null,
  14370. "note": "",
  14371. "fee": -1,
  14372. "accountAmount": 0,
  14373. "productAmount": 1800,
  14374. "totalAmount": 1800,
  14375. "needPayAmount": 1800,
  14376. "discountAmount": null,
  14377. "discountFee": 0,
  14378. "preferential": 0,
  14379. "promotionFullReduction": 0,
  14380. "payFlag": "0",
  14381. "orderTime": "2021-03-19 14:30:47",
  14382. "payTime": null,
  14383. "finishTime": null,
  14384. "autoOverTimeMills": null,
  14385. "status": 1,
  14386. "payStatus": "1",
  14387. "sendOutStatus": "1",
  14388. "refundStatus": 0,
  14389. "returnGoodsStatus": null,
  14390. "receiveGoodsTime": null,
  14391. "autoReceiveTimeMills": null,
  14392. "totalAddedValueTax": null,
  14393. "canRefundAmount": 1800,
  14394. "refundAmount": null,
  14395. "clubID": 5638,
  14396. "spID": 1401,
  14397. "mainSpID": 1304,
  14398. "orderBeanAmount": 0,
  14399. "useBeanAmount": 0,
  14400. "useBeanFlag": 0,
  14401. "canRefundFlag": 1,
  14402. "useBalanceFlag": 0,
  14403. "canRefundBeans": null,
  14404. "freePostageFee": null,
  14405. "freePostageTicketID": null,
  14406. "brokerage": 900,
  14407. "delFlag": "0",
  14408. "refundsAmount": 0,
  14409. "orderStatusFlag": "1",
  14410. "buyStatus": "1",
  14411. "deliveryTimeMills": null,
  14412. "orderDeliveryID": null,
  14413. "splitFlag": "1",
  14414. "receiptedFlag": null,
  14415. "receiptedType": null,
  14416. "paying": "0",
  14417. "shopProductAmount": 900,
  14418. "shopPostFee": 0,
  14419. "shopTaxFee": 0,
  14420. "shouldPayShopAmount": 900,
  14421. "payedShopAmount": 0,
  14422. "shopOtherFee": 0,
  14423. "refunding": null,
  14424. "costType": null,
  14425. "proportional": null,
  14426. "modifyShouldPayNote": null,
  14427. "modifyShouldPayUserID": null,
  14428. "modifyShouldPayDate": null,
  14429. "zeroCostFlag": 0,
  14430. "shopName": "演员测试供应商AAA",
  14431. "shopLogo": "https://img-b.caimei365.com/group1/M00/02/EA/Cmgy618FyDCAcnqjAABqocyxYRw91.JPEG",
  14432. "logisticsRecordList": null,
  14433. "orderProductList": [
  14434. {
  14435. "orderProductID": 29358,
  14436. "orderNo": "X161613544703234",
  14437. "orderID": 15209,
  14438. "shopOrderID": 19373,
  14439. "shopOrderNo": "X16161354470323401",
  14440. "shopID": 10109,
  14441. "productID": 4357,
  14442. "organizeProductID": null,
  14443. "organizeID": null,
  14444. "num": 3,
  14445. "presentNum": 0,
  14446. "outStoreType": null,
  14447. "skuID": null,
  14448. "props": null,
  14449. "propName": null,
  14450. "productNo": null,
  14451. "price": 600,
  14452. "normalPrice": 500,
  14453. "costPrice": 300,
  14454. "price0": 600,
  14455. "price1": 600,
  14456. "totalAmount": 1800,
  14457. "totalFee": 1800,
  14458. "shouldPayFee": 1800,
  14459. "discount": 100,
  14460. "discountPrice": 600,
  14461. "includedTax": "2",
  14462. "invoiceType": "3",
  14463. "taxRate": 0,
  14464. "supplierTaxRate": 0,
  14465. "addedValueTax": 0,
  14466. "totalAddedValueTax": 0,
  14467. "shouldPayTotalTax": 0,
  14468. "singleShouldPayTotalTax": 0,
  14469. "shopProductAmount": 900,
  14470. "shopFee": 900,
  14471. "otherFee": 0,
  14472. "cmFee": 900,
  14473. "singleShopFee": 300,
  14474. "singleOtherFee": 0,
  14475. "singleCmFee": 300,
  14476. "status": null,
  14477. "commentFlag": "0",
  14478. "totalBeans": 0,
  14479. "useBalanceAmount": 0,
  14480. "useBeanAmount": null,
  14481. "notOutStore": 3,
  14482. "cmbeanPrice": null,
  14483. "isActProduct": "2",
  14484. "isGiftProduct": "0",
  14485. "productActInfo": null,
  14486. "buyAgainFlag": "0",
  14487. "confirmProductFlag": "0",
  14488. "payStatus": "0",
  14489. "shopName": "演员测试供应商AAA",
  14490. "name": "演员测试供应商商品显示名AAA",
  14491. "productUnit": "包",
  14492. "productImage": "https://img-b.caimei365.com/group1/M00/02/E0/Cmgy618EE1OAN0e7AAIcZ5Hb98Q16.jfif",
  14493. "actType": null,
  14494. "actPreferential": 0,
  14495. "productType": "0",
  14496. "orderPromotionsId": null,
  14497. "preferential": 0,
  14498. "discountFee": 0,
  14499. "cancelNum": null,
  14500. "ladderPriceFlag": 1,
  14501. "shipmentsNum": null,
  14502. "returnedNum": null,
  14503. "actualCancelNum": null,
  14504. "aliasName": null,
  14505. "productCategory": "1",
  14506. "secondHandType": null,
  14507. "productPromotion": null,
  14508. "includedTaxFlag": null }],
  14509. "userInfo": null,
  14510. "name": null,
  14511. "receiptStatus": null,
  14512. "shopPromotion": null,
  14513. "shouHuoRen": null }],
  14514. "clubName": "正经一点机构",
  14515. "invoiceStatus": false,
  14516. "payButton": false,
  14517. "expensesOfTaxation": null },
  14518. {
  14519. "orderID": 15208,
  14520. "orderNo": "X161613541392914",
  14521. "organizeID": 0,
  14522. "userID": 11063,
  14523. "buyUserID": 11062,
  14524. "shopOrderIDs": "19372",
  14525. "orderSubmitType": 3,
  14526. "orderType": 0,
  14527. "hasActProduct": "1",
  14528. "autoCloseTimeMills": 0,
  14529. "status": "0",
  14530. "receiptStatus": "1",
  14531. "payStatus": "1",
  14532. "sendOutStatus": "1",
  14533. "refundType": "0",
  14534. "paySuccessCounter": 0,
  14535. "payFlag": "0",
  14536. "onlinePayFlag": "0",
  14537. "productTotalFee": 116.86,
  14538. "orderTotalFee": 116.86,
  14539. "payTotalFee": 116.86,
  14540. "payableAmount": 116.86,
  14541. "balancePayFee": 0,
  14542. "preferential": 0,
  14543. "discountFee": 0,
  14544. "promotionFullReduction": 0,
  14545. "spID": 1401,
  14546. "mainSpID": 1304,
  14547. "note": null,
  14548. "clubID": 5638,
  14549. "clubScanTime": null,
  14550. "payWay": null,
  14551. "orderSource": "6",
  14552. "closeTime": null,
  14553. "confirmTime": null,
  14554. "payTime": null,
  14555. "orderTime": "2021-03-19 14:30:13",
  14556. "productCount": 7,
  14557. "presentCount": 0,
  14558. "promotionalGiftsCount": 0,
  14559. "cooFreeFlag": "0",
  14560. "cooFreeRate": 0,
  14561. "cooFreeAmount": 0,
  14562. "invoiceFlag": "0",
  14563. "confirmFlag": "0",
  14564. "clauseID": 1,
  14565. "clauseContent": null,
  14566. "clauseName": "无条款",
  14567. "updateDate": "2021-03-19 14:30:13",
  14568. "freePostFlag": "-1",
  14569. "freight": 0,
  14570. "delFlag": "0",
  14571. "freePostageTicketID": null,
  14572. "splitFlag": "1",
  14573. "closeReason": null,
  14574. "postageOrderFlag": "0",
  14575. "thirdPartyOrderNo": null,
  14576. "secondHandOrderFlag": "0",
  14577. "affirmPaymentFlag": "0",
  14578. "rebateFlag": "0",
  14579. "zeroCostFlag": 0,
  14580. "orderState": null,
  14581. "orderMark": null,
  14582. "receiptAmount": 0,
  14583. "pendingPayments": 116.86,
  14584. "returnedPurchaseFee": null,
  14585. "shopOrderList": [
  14586. {
  14587. "shopOrderID": 19372,
  14588. "shopOrderNo": "X16161354139291401",
  14589. "orderNo": "X161613541392914",
  14590. "orderID": 15208,
  14591. "organizeID": null,
  14592. "userID": 11063,
  14593. "shopID": 10134,
  14594. "orderPromotionsId": null,
  14595. "orderType": 0,
  14596. "orderSubmitType": 3,
  14597. "presentNum": 0,
  14598. "itemCount": 7,
  14599. "outStoreNum": 0,
  14600. "outStoreTimes": 0,
  14601. "townID": null,
  14602. "note": "",
  14603. "fee": -1,
  14604. "accountAmount": 0,
  14605. "productAmount": 127.25,
  14606. "totalAmount": 116.86,
  14607. "needPayAmount": 116.86,
  14608. "discountAmount": null,
  14609. "discountFee": 0,
  14610. "preferential": 0,
  14611. "promotionFullReduction": 0,
  14612. "payFlag": "0",
  14613. "orderTime": "2021-03-19 14:30:13",
  14614. "payTime": null,
  14615. "finishTime": null,
  14616. "autoOverTimeMills": null,
  14617. "status": 1,
  14618. "payStatus": "1",
  14619. "sendOutStatus": "1",
  14620. "refundStatus": 0,
  14621. "returnGoodsStatus": null,
  14622. "receiveGoodsTime": null,
  14623. "autoReceiveTimeMills": null,
  14624. "totalAddedValueTax": null,
  14625. "canRefundAmount": 116.857,
  14626. "refundAmount": null,
  14627. "clubID": 5638,
  14628. "spID": 1401,
  14629. "mainSpID": 1304,
  14630. "orderBeanAmount": 0,
  14631. "useBeanAmount": 0,
  14632. "useBeanFlag": 0,
  14633. "canRefundFlag": 1,
  14634. "useBalanceFlag": 0,
  14635. "canRefundBeans": null,
  14636. "freePostageFee": null,
  14637. "freePostageTicketID": null,
  14638. "brokerage": 38.51,
  14639. "delFlag": "0",
  14640. "refundsAmount": 0,
  14641. "orderStatusFlag": "1",
  14642. "buyStatus": "1",
  14643. "deliveryTimeMills": null,
  14644. "orderDeliveryID": null,
  14645. "splitFlag": "1",
  14646. "receiptedFlag": null,
  14647. "receiptedType": null,
  14648. "paying": "0",
  14649. "shopProductAmount": 90,
  14650. "shopPostFee": 0,
  14651. "shopTaxFee": 4.6,
  14652. "shouldPayShopAmount": 94.6,
  14653. "payedShopAmount": 0,
  14654. "shopOtherFee": 0,
  14655. "refunding": null,
  14656. "costType": null,
  14657. "proportional": null,
  14658. "modifyShouldPayNote": null,
  14659. "modifyShouldPayUserID": null,
  14660. "modifyShouldPayDate": null,
  14661. "zeroCostFlag": 0,
  14662. "shopName": "深圳市美轮美奂服务有限公司",
  14663. "shopLogo": "https://www-b.caimei365.com/img/default/suppliver.jpg",
  14664. "logisticsRecordList": null,
  14665. "orderProductList": [
  14666. {
  14667. "orderProductID": 29355,
  14668. "orderNo": "X161613541392914",
  14669. "orderID": 15208,
  14670. "shopOrderID": 19372,
  14671. "shopOrderNo": "X16161354139291401",
  14672. "shopID": 10134,
  14673. "productID": 6420,
  14674. "organizeProductID": null,
  14675. "organizeID": null,
  14676. "num": 1,
  14677. "presentNum": 0,
  14678. "outStoreType": null,
  14679. "skuID": null,
  14680. "props": null,
  14681. "propName": null,
  14682. "productNo": null,
  14683. "price": 28.325,
  14684. "normalPrice": 25.75,
  14685. "costPrice": 20,
  14686. "price0": 25.75,
  14687. "price1": 25.75,
  14688. "totalAmount": 25.75,
  14689. "totalFee": 28.33,
  14690. "shouldPayFee": 28.33,
  14691. "discount": 100,
  14692. "discountPrice": 30.905,
  14693. "includedTax": "0",
  14694. "invoiceType": "2",
  14695. "taxRate": 10,
  14696. "supplierTaxRate": 10,
  14697. "addedValueTax": 2.58,
  14698. "totalAddedValueTax": 2.58,
  14699. "shouldPayTotalTax": 2,
  14700. "singleShouldPayTotalTax": 2,
  14701. "shopProductAmount": 20,
  14702. "shopFee": 22,
  14703. "otherFee": 0,
  14704. "cmFee": 6.33,
  14705. "singleShopFee": 22,
  14706. "singleOtherFee": 0,
  14707. "singleCmFee": 6.33,
  14708. "status": null,
  14709. "commentFlag": "0",
  14710. "totalBeans": 0,
  14711. "useBalanceAmount": 0,
  14712. "useBeanAmount": null,
  14713. "notOutStore": 1,
  14714. "cmbeanPrice": null,
  14715. "isActProduct": "0",
  14716. "isGiftProduct": "0",
  14717. "productActInfo": null,
  14718. "buyAgainFlag": "0",
  14719. "confirmProductFlag": "0",
  14720. "payStatus": "0",
  14721. "shopName": "深圳市美轮美奂服务有限公司",
  14722. "name": "【测试用】润百颜注射修饰透明质酸钠凝胶1ml",
  14723. "productUnit": "盒",
  14724. "productImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHIIWATL05AAGHUpelz2U374.jpg",
  14725. "actType": null,
  14726. "actPreferential": 0,
  14727. "productType": "0",
  14728. "orderPromotionsId": null,
  14729. "preferential": 0,
  14730. "discountFee": 0,
  14731. "cancelNum": null,
  14732. "ladderPriceFlag": 0,
  14733. "shipmentsNum": null,
  14734. "returnedNum": null,
  14735. "actualCancelNum": null,
  14736. "aliasName": null,
  14737. "productCategory": "1",
  14738. "secondHandType": null,
  14739. "productPromotion": null,
  14740. "includedTaxFlag": null },
  14741. {
  14742. "orderProductID": 29356,
  14743. "orderNo": "X161613541392914",
  14744. "orderID": 15208,
  14745. "shopOrderID": 19372,
  14746. "shopOrderNo": "X16161354139291401",
  14747. "shopID": 10134,
  14748. "productID": 6419,
  14749. "organizeProductID": null,
  14750. "organizeID": null,
  14751. "num": 1,
  14752. "presentNum": 0,
  14753. "outStoreType": null,
  14754. "skuID": null,
  14755. "props": null,
  14756. "propName": null,
  14757. "productNo": null,
  14758. "price": 28.5325,
  14759. "normalPrice": 25.25,
  14760. "costPrice": 20,
  14761. "price0": 25.25,
  14762. "price1": 25.25,
  14763. "totalAmount": 25.25,
  14764. "totalFee": 28.53,
  14765. "shouldPayFee": 28.53,
  14766. "discount": 100,
  14767. "discountPrice": 31.8125,
  14768. "includedTax": "0",
  14769. "invoiceType": "1",
  14770. "taxRate": 13,
  14771. "supplierTaxRate": 13,
  14772. "addedValueTax": 3.28,
  14773. "totalAddedValueTax": 3.28,
  14774. "shouldPayTotalTax": 2.6,
  14775. "singleShouldPayTotalTax": 2.6,
  14776. "shopProductAmount": 20,
  14777. "shopFee": 22.6,
  14778. "otherFee": 0,
  14779. "cmFee": 5.93,
  14780. "singleShopFee": 22.6,
  14781. "singleOtherFee": 0,
  14782. "singleCmFee": 5.93,
  14783. "status": null,
  14784. "commentFlag": "0",
  14785. "totalBeans": 0,
  14786. "useBalanceAmount": 0,
  14787. "useBeanAmount": null,
  14788. "notOutStore": 1,
  14789. "cmbeanPrice": null,
  14790. "isActProduct": "0",
  14791. "isGiftProduct": "0",
  14792. "productActInfo": null,
  14793. "buyAgainFlag": "0",
  14794. "confirmProductFlag": "0",
  14795. "payStatus": "0",
  14796. "shopName": "深圳市美轮美奂服务有限公司",
  14797. "name": "【测试用】Dermaheal HSR 德玛莉肌活丝蕴凝颜精华液",
  14798. "productUnit": "片",
  14799. "productImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHH8aAFiGIAAGHr5DovGA124.jpg",
  14800. "actType": null,
  14801. "actPreferential": 0,
  14802. "productType": "0",
  14803. "orderPromotionsId": null,
  14804. "preferential": 0,
  14805. "discountFee": 0,
  14806. "cancelNum": null,
  14807. "ladderPriceFlag": 0,
  14808. "shipmentsNum": null,
  14809. "returnedNum": null,
  14810. "actualCancelNum": null,
  14811. "aliasName": null,
  14812. "productCategory": "1",
  14813. "secondHandType": null,
  14814. "productPromotion": null,
  14815. "includedTaxFlag": null },
  14816. {
  14817. "orderProductID": 29357,
  14818. "orderNo": "X161613541392914",
  14819. "orderID": 15208,
  14820. "shopOrderID": 19372,
  14821. "shopOrderNo": "X16161354139291401",
  14822. "shopID": 10134,
  14823. "productID": 6421,
  14824. "organizeProductID": null,
  14825. "organizeID": null,
  14826. "num": 5,
  14827. "presentNum": 0,
  14828. "outStoreType": null,
  14829. "skuID": null,
  14830. "props": null,
  14831. "propName": null,
  14832. "productNo": null,
  14833. "price": 15.25,
  14834. "normalPrice": 15.25,
  14835. "costPrice": 10,
  14836. "price0": 15.25,
  14837. "price1": 15.25,
  14838. "totalAmount": 76.25,
  14839. "totalFee": 60,
  14840. "shouldPayFee": 60,
  14841. "discount": 100,
  14842. "discountPrice": 15.25,
  14843. "includedTax": "0",
  14844. "invoiceType": "3",
  14845. "taxRate": 0,
  14846. "supplierTaxRate": 0,
  14847. "addedValueTax": 0,
  14848. "totalAddedValueTax": 0,
  14849. "shouldPayTotalTax": 0,
  14850. "singleShouldPayTotalTax": 0,
  14851. "shopProductAmount": 50,
  14852. "shopFee": 50,
  14853. "otherFee": 0,
  14854. "cmFee": 26.25,
  14855. "singleShopFee": 10,
  14856. "singleOtherFee": 0,
  14857. "singleCmFee": 5.25,
  14858. "status": null,
  14859. "commentFlag": "0",
  14860. "totalBeans": 0,
  14861. "useBalanceAmount": 0,
  14862. "useBeanAmount": null,
  14863. "notOutStore": 5,
  14864. "cmbeanPrice": null,
  14865. "isActProduct": "1",
  14866. "isGiftProduct": "0",
  14867. "productActInfo": null,
  14868. "buyAgainFlag": "0",
  14869. "confirmProductFlag": "0",
  14870. "payStatus": "0",
  14871. "shopName": "深圳市美轮美奂服务有限公司",
  14872. "name": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  14873. "productUnit": "瓶",
  14874. "productImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHJGCARS7iAAVlWLR-uKU385.jpg",
  14875. "actType": null,
  14876. "actPreferential": 0,
  14877. "productType": "0",
  14878. "orderPromotionsId": 396,
  14879. "preferential": 0,
  14880. "discountFee": 0,
  14881. "cancelNum": null,
  14882. "ladderPriceFlag": 0,
  14883. "shipmentsNum": null,
  14884. "returnedNum": null,
  14885. "actualCancelNum": null,
  14886. "aliasName": null,
  14887. "productCategory": "1",
  14888. "secondHandType": null,
  14889. "productPromotion": {
  14890. "id": 396,
  14891. "name": "优惠价",
  14892. "description": null,
  14893. "type": 1,
  14894. "mode": 1,
  14895. "touchPrice": 12,
  14896. "reducedPrice": null,
  14897. "beginTime": null,
  14898. "endTime": null,
  14899. "status": 1,
  14900. "supplierId": null,
  14901. "productId": null,
  14902. "orderId": 15208,
  14903. "productList": null,
  14904. "giftList": null,
  14905. "products": null },
  14906. "includedTaxFlag": null }],
  14907. "userInfo": null,
  14908. "name": null,
  14909. "receiptStatus": null,
  14910. "shopPromotion": null,
  14911. "shouHuoRen": null }],
  14912. "clubName": "正经一点机构",
  14913. "invoiceStatus": false,
  14914. "payButton": false,
  14915. "expensesOfTaxation": null },
  14916. {
  14917. "orderID": 15207,
  14918. "orderNo": "P161612466484974",
  14919. "organizeID": 0,
  14920. "userID": 11063,
  14921. "buyUserID": null,
  14922. "shopOrderIDs": "19371",
  14923. "orderSubmitType": 4,
  14924. "orderType": 0,
  14925. "hasActProduct": null,
  14926. "autoCloseTimeMills": 0,
  14927. "status": "0",
  14928. "receiptStatus": "1",
  14929. "payStatus": "1",
  14930. "sendOutStatus": "1",
  14931. "refundType": "0",
  14932. "paySuccessCounter": 0,
  14933. "payFlag": "0",
  14934. "onlinePayFlag": "0",
  14935. "productTotalFee": 3000,
  14936. "orderTotalFee": 3390,
  14937. "payTotalFee": 3390,
  14938. "payableAmount": 3390,
  14939. "balancePayFee": 0,
  14940. "preferential": 0,
  14941. "discountFee": 0,
  14942. "promotionFullReduction": 0,
  14943. "spID": 1401,
  14944. "mainSpID": null,
  14945. "note": "",
  14946. "clubID": 5638,
  14947. "clubScanTime": null,
  14948. "payWay": null,
  14949. "orderSource": "4",
  14950. "closeTime": null,
  14951. "confirmTime": null,
  14952. "payTime": null,
  14953. "orderTime": "2021-03-19 11:30:48",
  14954. "productCount": 10,
  14955. "presentCount": 0,
  14956. "promotionalGiftsCount": 0,
  14957. "cooFreeFlag": null,
  14958. "cooFreeRate": null,
  14959. "cooFreeAmount": null,
  14960. "invoiceFlag": null,
  14961. "confirmFlag": "0",
  14962. "clauseID": 1,
  14963. "clauseContent": "",
  14964. "clauseName": "无条款",
  14965. "updateDate": null,
  14966. "freePostFlag": "0",
  14967. "freight": 0,
  14968. "delFlag": "0",
  14969. "freePostageTicketID": null,
  14970. "splitFlag": "1",
  14971. "closeReason": null,
  14972. "postageOrderFlag": "0",
  14973. "thirdPartyOrderNo": null,
  14974. "secondHandOrderFlag": "0",
  14975. "affirmPaymentFlag": "0",
  14976. "rebateFlag": "0",
  14977. "zeroCostFlag": 0,
  14978. "orderState": null,
  14979. "orderMark": null,
  14980. "receiptAmount": 0,
  14981. "pendingPayments": 3390,
  14982. "returnedPurchaseFee": null,
  14983. "shopOrderList": [
  14984. {
  14985. "shopOrderID": 19371,
  14986. "shopOrderNo": "P16161246648497401",
  14987. "orderNo": "P161612466484974",
  14988. "orderID": 15207,
  14989. "organizeID": null,
  14990. "userID": 11063,
  14991. "shopID": 1001,
  14992. "orderPromotionsId": null,
  14993. "orderType": 0,
  14994. "orderSubmitType": 4,
  14995. "presentNum": 0,
  14996. "itemCount": 10,
  14997. "outStoreNum": 0,
  14998. "outStoreTimes": 0,
  14999. "townID": null,
  15000. "note": null,
  15001. "fee": null,
  15002. "accountAmount": 0,
  15003. "productAmount": 3000,
  15004. "totalAmount": 3390,
  15005. "needPayAmount": 3390,
  15006. "discountAmount": 0,
  15007. "discountFee": 0,
  15008. "preferential": 0,
  15009. "promotionFullReduction": 0,
  15010. "payFlag": "0",
  15011. "orderTime": "2021-03-19 11:30:48",
  15012. "payTime": null,
  15013. "finishTime": null,
  15014. "autoOverTimeMills": 0,
  15015. "status": null,
  15016. "payStatus": "1",
  15017. "sendOutStatus": "1",
  15018. "refundStatus": null,
  15019. "returnGoodsStatus": null,
  15020. "receiveGoodsTime": null,
  15021. "autoReceiveTimeMills": 0,
  15022. "totalAddedValueTax": 390,
  15023. "canRefundAmount": 0,
  15024. "refundAmount": 0,
  15025. "clubID": 5638,
  15026. "spID": null,
  15027. "mainSpID": null,
  15028. "orderBeanAmount": null,
  15029. "useBeanAmount": null,
  15030. "useBeanFlag": null,
  15031. "canRefundFlag": null,
  15032. "useBalanceFlag": null,
  15033. "canRefundBeans": null,
  15034. "freePostageFee": null,
  15035. "freePostageTicketID": null,
  15036. "brokerage": -836.3,
  15037. "delFlag": "0",
  15038. "refundsAmount": null,
  15039. "orderStatusFlag": null,
  15040. "buyStatus": null,
  15041. "deliveryTimeMills": null,
  15042. "orderDeliveryID": null,
  15043. "splitFlag": "1",
  15044. "receiptedFlag": null,
  15045. "receiptedType": null,
  15046. "paying": "0",
  15047. "shopProductAmount": 3051,
  15048. "shopPostFee": 0,
  15049. "shopTaxFee": 396.63,
  15050. "shouldPayShopAmount": 3447.63,
  15051. "payedShopAmount": 0,
  15052. "shopOtherFee": 0,
  15053. "refunding": null,
  15054. "costType": null,
  15055. "proportional": null,
  15056. "modifyShouldPayNote": null,
  15057. "modifyShouldPayUserID": null,
  15058. "modifyShouldPayDate": null,
  15059. "zeroCostFlag": 0,
  15060. "shopName": "香港丽润国际",
  15061. "shopLogo": "https://www-b.caimei365.com/uploadFile/shopLogo/ZXV6IIFSP520140415035836.jpg",
  15062. "logisticsRecordList": null,
  15063. "orderProductList": [
  15064. {
  15065. "orderProductID": 29354,
  15066. "orderNo": "P161612466484974",
  15067. "orderID": 15207,
  15068. "shopOrderID": 19371,
  15069. "shopOrderNo": "P16161246648497401",
  15070. "shopID": 1001,
  15071. "productID": 1011,
  15072. "organizeProductID": null,
  15073. "organizeID": null,
  15074. "num": 10,
  15075. "presentNum": 0,
  15076. "outStoreType": null,
  15077. "skuID": null,
  15078. "props": null,
  15079. "propName": null,
  15080. "productNo": "Q1MMB1011",
  15081. "price": 339,
  15082. "normalPrice": 446.18,
  15083. "costPrice": 305.1,
  15084. "price0": 300,
  15085. "price1": null,
  15086. "totalAmount": 3000,
  15087. "totalFee": 3390,
  15088. "shouldPayFee": 3390,
  15089. "discount": 100,
  15090. "discountPrice": 378,
  15091. "includedTax": "0",
  15092. "invoiceType": "2",
  15093. "taxRate": 13,
  15094. "supplierTaxRate": 13,
  15095. "addedValueTax": 39,
  15096. "totalAddedValueTax": 390,
  15097. "shouldPayTotalTax": 396.63,
  15098. "singleShouldPayTotalTax": 39.66,
  15099. "shopProductAmount": 3051,
  15100. "shopFee": 3836.3,
  15101. "otherFee": 0,
  15102. "cmFee": -836.3,
  15103. "singleShopFee": 383.63,
  15104. "singleOtherFee": 0,
  15105. "singleCmFee": -83.63,
  15106. "status": "0",
  15107. "commentFlag": "0",
  15108. "totalBeans": null,
  15109. "useBalanceAmount": 0,
  15110. "useBeanAmount": null,
  15111. "notOutStore": 10,
  15112. "cmbeanPrice": null,
  15113. "isActProduct": "0",
  15114. "isGiftProduct": "0",
  15115. "productActInfo": null,
  15116. "buyAgainFlag": "1",
  15117. "confirmProductFlag": "0",
  15118. "payStatus": "0",
  15119. "shopName": "香港丽润国际",
  15120. "name": "阶雪山之恋保湿滋润面霜",
  15121. "productUnit": "50ml",
  15122. "productImage": "https://img-b.caimei365.com/group1/M00/03/09/Cmgy61-Gqq6AcI4pAACGvvokTl0257.jpg",
  15123. "actType": null,
  15124. "actPreferential": 0,
  15125. "productType": "0",
  15126. "orderPromotionsId": null,
  15127. "preferential": 0,
  15128. "discountFee": 0,
  15129. "cancelNum": null,
  15130. "ladderPriceFlag": 1,
  15131. "shipmentsNum": null,
  15132. "returnedNum": null,
  15133. "actualCancelNum": null,
  15134. "aliasName": null,
  15135. "productCategory": "1",
  15136. "secondHandType": null,
  15137. "productPromotion": null,
  15138. "includedTaxFlag": null }],
  15139. "userInfo": null,
  15140. "name": null,
  15141. "receiptStatus": null,
  15142. "shopPromotion": null,
  15143. "shouHuoRen": null }],
  15144. "clubName": "正经一点机构",
  15145. "invoiceStatus": false,
  15146. "payButton": true,
  15147. "expensesOfTaxation": null },
  15148. {
  15149. "orderID": 15189,
  15150. "orderNo": "X161605858703888",
  15151. "organizeID": 0,
  15152. "userID": 11063,
  15153. "buyUserID": 11062,
  15154. "shopOrderIDs": "19353",
  15155. "orderSubmitType": 3,
  15156. "orderType": 0,
  15157. "hasActProduct": "0",
  15158. "autoCloseTimeMills": 0,
  15159. "status": "0",
  15160. "receiptStatus": "1",
  15161. "payStatus": "1",
  15162. "sendOutStatus": "1",
  15163. "refundType": "0",
  15164. "paySuccessCounter": 0,
  15165. "payFlag": "0",
  15166. "onlinePayFlag": "0",
  15167. "productTotalFee": 49.78,
  15168. "orderTotalFee": 49.78,
  15169. "payTotalFee": 49.78,
  15170. "payableAmount": 49.78,
  15171. "balancePayFee": 0,
  15172. "preferential": 0,
  15173. "discountFee": 0,
  15174. "promotionFullReduction": 0,
  15175. "spID": 1401,
  15176. "mainSpID": 1304,
  15177. "note": null,
  15178. "clubID": 5638,
  15179. "clubScanTime": null,
  15180. "payWay": null,
  15181. "orderSource": "6",
  15182. "closeTime": null,
  15183. "confirmTime": null,
  15184. "payTime": null,
  15185. "orderTime": "2021-03-18 17:09:47",
  15186. "productCount": 1,
  15187. "presentCount": 0,
  15188. "promotionalGiftsCount": 0,
  15189. "cooFreeFlag": "0",
  15190. "cooFreeRate": 0,
  15191. "cooFreeAmount": 0,
  15192. "invoiceFlag": "0",
  15193. "confirmFlag": "0",
  15194. "clauseID": 1,
  15195. "clauseContent": null,
  15196. "clauseName": "无条款",
  15197. "updateDate": "2021-03-18 17:09:47",
  15198. "freePostFlag": "-1",
  15199. "freight": 0,
  15200. "delFlag": "0",
  15201. "freePostageTicketID": null,
  15202. "splitFlag": "1",
  15203. "closeReason": null,
  15204. "postageOrderFlag": "0",
  15205. "thirdPartyOrderNo": null,
  15206. "secondHandOrderFlag": "0",
  15207. "affirmPaymentFlag": "0",
  15208. "rebateFlag": "0",
  15209. "zeroCostFlag": 0,
  15210. "orderState": null,
  15211. "orderMark": null,
  15212. "receiptAmount": 0,
  15213. "pendingPayments": 49.78,
  15214. "returnedPurchaseFee": null,
  15215. "shopOrderList": [
  15216. {
  15217. "shopOrderID": 19353,
  15218. "shopOrderNo": "X16160585870388801",
  15219. "orderNo": "X161605858703888",
  15220. "orderID": 15189,
  15221. "organizeID": null,
  15222. "userID": 11063,
  15223. "shopID": 10133,
  15224. "orderPromotionsId": null,
  15225. "orderType": 0,
  15226. "orderSubmitType": 3,
  15227. "presentNum": 0,
  15228. "itemCount": 1,
  15229. "outStoreNum": 0,
  15230. "outStoreTimes": 0,
  15231. "townID": null,
  15232. "note": "",
  15233. "fee": -1,
  15234. "accountAmount": 0,
  15235. "productAmount": 45.25,
  15236. "totalAmount": 49.78,
  15237. "needPayAmount": 49.78,
  15238. "discountAmount": null,
  15239. "discountFee": 0,
  15240. "preferential": 0,
  15241. "promotionFullReduction": 0,
  15242. "payFlag": "0",
  15243. "orderTime": "2021-03-18 17:09:47",
  15244. "payTime": null,
  15245. "finishTime": null,
  15246. "autoOverTimeMills": null,
  15247. "status": 1,
  15248. "payStatus": "1",
  15249. "sendOutStatus": "1",
  15250. "refundStatus": 0,
  15251. "returnGoodsStatus": null,
  15252. "receiveGoodsTime": null,
  15253. "autoReceiveTimeMills": null,
  15254. "totalAddedValueTax": null,
  15255. "canRefundAmount": 49.775,
  15256. "refundAmount": null,
  15257. "clubID": 5638,
  15258. "spID": 1401,
  15259. "mainSpID": 1304,
  15260. "orderBeanAmount": 0,
  15261. "useBeanAmount": 0,
  15262. "useBeanFlag": 0,
  15263. "canRefundFlag": 1,
  15264. "useBalanceFlag": 0,
  15265. "canRefundBeans": null,
  15266. "freePostageFee": null,
  15267. "freePostageTicketID": null,
  15268. "brokerage": 5.78,
  15269. "delFlag": "0",
  15270. "refundsAmount": 0,
  15271. "orderStatusFlag": "1",
  15272. "buyStatus": "1",
  15273. "deliveryTimeMills": null,
  15274. "orderDeliveryID": null,
  15275. "splitFlag": "0",
  15276. "receiptedFlag": null,
  15277. "receiptedType": null,
  15278. "paying": "0",
  15279. "shopProductAmount": 40,
  15280. "shopPostFee": 0,
  15281. "shopTaxFee": 4,
  15282. "shouldPayShopAmount": 44,
  15283. "payedShopAmount": 0,
  15284. "shopOtherFee": 0,
  15285. "refunding": null,
  15286. "costType": null,
  15287. "proportional": null,
  15288. "modifyShouldPayNote": null,
  15289. "modifyShouldPayUserID": null,
  15290. "modifyShouldPayDate": null,
  15291. "zeroCostFlag": 0,
  15292. "shopName": "深圳市采美奥泰贸易有限公司",
  15293. "shopLogo": "https://www-b.caimei365.com/uploadFile/shopLogo//userfiles/1/images/photo/2021/01/Cmis21__5o-ADIQEAAD1N_9T1C4174.jpg",
  15294. "logisticsRecordList": null,
  15295. "orderProductList": [
  15296. {
  15297. "orderProductID": 29336,
  15298. "orderNo": "X161605858703888",
  15299. "orderID": 15189,
  15300. "shopOrderID": 19353,
  15301. "shopOrderNo": "X16160585870388801",
  15302. "shopID": 10133,
  15303. "productID": 6418,
  15304. "organizeProductID": null,
  15305. "organizeID": null,
  15306. "num": 1,
  15307. "presentNum": 0,
  15308. "outStoreType": null,
  15309. "skuID": null,
  15310. "props": null,
  15311. "propName": null,
  15312. "productNo": null,
  15313. "price": 49.775,
  15314. "normalPrice": 45.25,
  15315. "costPrice": 40,
  15316. "price0": 45.25,
  15317. "price1": 45.25,
  15318. "totalAmount": 45.25,
  15319. "totalFee": 49.78,
  15320. "shouldPayFee": 49.78,
  15321. "discount": 100,
  15322. "discountPrice": 54.305,
  15323. "includedTax": "0",
  15324. "invoiceType": "2",
  15325. "taxRate": 10,
  15326. "supplierTaxRate": 10,
  15327. "addedValueTax": 4.53,
  15328. "totalAddedValueTax": 4.53,
  15329. "shouldPayTotalTax": 4,
  15330. "singleShouldPayTotalTax": 4,
  15331. "shopProductAmount": 40,
  15332. "shopFee": 44,
  15333. "otherFee": 0,
  15334. "cmFee": 5.78,
  15335. "singleShopFee": 44,
  15336. "singleOtherFee": 0,
  15337. "singleCmFee": 5.78,
  15338. "status": null,
  15339. "commentFlag": "0",
  15340. "totalBeans": 0,
  15341. "useBalanceAmount": 0,
  15342. "useBeanAmount": null,
  15343. "notOutStore": 1,
  15344. "cmbeanPrice": null,
  15345. "isActProduct": "0",
  15346. "isGiftProduct": "0",
  15347. "productActInfo": null,
  15348. "buyAgainFlag": "0",
  15349. "confirmProductFlag": "0",
  15350. "payStatus": "0",
  15351. "shopName": "深圳市采美奥泰贸易有限公司",
  15352. "name": "【测试用】EndyMed-3Deep-医学美容多功能相控射频",
  15353. "productUnit": "台",
  15354. "productImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHEMOAFVmsAAGOILQcRyE020.jpg",
  15355. "actType": null,
  15356. "actPreferential": 0,
  15357. "productType": "0",
  15358. "orderPromotionsId": null,
  15359. "preferential": 0,
  15360. "discountFee": 0,
  15361. "cancelNum": null,
  15362. "ladderPriceFlag": 0,
  15363. "shipmentsNum": null,
  15364. "returnedNum": null,
  15365. "actualCancelNum": null,
  15366. "aliasName": null,
  15367. "productCategory": "1",
  15368. "secondHandType": null,
  15369. "productPromotion": null,
  15370. "includedTaxFlag": null }],
  15371. "userInfo": null,
  15372. "name": null,
  15373. "receiptStatus": null,
  15374. "shopPromotion": null,
  15375. "shouHuoRen": null }],
  15376. "clubName": "正经一点机构",
  15377. "invoiceStatus": false,
  15378. "payButton": true,
  15379. "expensesOfTaxation": null },
  15380. {
  15381. "orderID": 15170,
  15382. "orderNo": "X161595081871691",
  15383. "organizeID": 0,
  15384. "userID": 11063,
  15385. "buyUserID": 11062,
  15386. "shopOrderIDs": "19325",
  15387. "orderSubmitType": 3,
  15388. "orderType": 0,
  15389. "hasActProduct": "0",
  15390. "autoCloseTimeMills": 0,
  15391. "status": "0",
  15392. "receiptStatus": "1",
  15393. "payStatus": "1",
  15394. "sendOutStatus": "1",
  15395. "refundType": "0",
  15396. "paySuccessCounter": 0,
  15397. "payFlag": "0",
  15398. "onlinePayFlag": "0",
  15399. "productTotalFee": 61,
  15400. "orderTotalFee": 61,
  15401. "payTotalFee": 61,
  15402. "payableAmount": 61,
  15403. "balancePayFee": 0,
  15404. "preferential": 0,
  15405. "discountFee": 0,
  15406. "promotionFullReduction": 0,
  15407. "spID": 1401,
  15408. "mainSpID": 1304,
  15409. "note": null,
  15410. "clubID": 5638,
  15411. "clubScanTime": null,
  15412. "payWay": null,
  15413. "orderSource": "6",
  15414. "closeTime": null,
  15415. "confirmTime": null,
  15416. "payTime": null,
  15417. "orderTime": "2021-03-17 11:13:38",
  15418. "productCount": 4,
  15419. "presentCount": 0,
  15420. "promotionalGiftsCount": 0,
  15421. "cooFreeFlag": "0",
  15422. "cooFreeRate": 0,
  15423. "cooFreeAmount": 0,
  15424. "invoiceFlag": "2",
  15425. "confirmFlag": "0",
  15426. "clauseID": 1,
  15427. "clauseContent": null,
  15428. "clauseName": "无条款",
  15429. "updateDate": "2021-03-17 11:13:38",
  15430. "freePostFlag": "0",
  15431. "freight": 0,
  15432. "delFlag": "0",
  15433. "freePostageTicketID": null,
  15434. "splitFlag": "1",
  15435. "closeReason": null,
  15436. "postageOrderFlag": "0",
  15437. "thirdPartyOrderNo": null,
  15438. "secondHandOrderFlag": "0",
  15439. "affirmPaymentFlag": "0",
  15440. "rebateFlag": "0",
  15441. "zeroCostFlag": 0,
  15442. "orderState": null,
  15443. "orderMark": null,
  15444. "receiptAmount": 0,
  15445. "pendingPayments": 61,
  15446. "returnedPurchaseFee": null,
  15447. "shopOrderList": [
  15448. {
  15449. "shopOrderID": 19325,
  15450. "shopOrderNo": "X16159508187169101",
  15451. "orderNo": "X161595081871691",
  15452. "orderID": 15170,
  15453. "organizeID": 0,
  15454. "userID": 11063,
  15455. "shopID": 10134,
  15456. "orderPromotionsId": null,
  15457. "orderType": 0,
  15458. "orderSubmitType": 3,
  15459. "presentNum": 0,
  15460. "itemCount": 4,
  15461. "outStoreNum": 0,
  15462. "outStoreTimes": 0,
  15463. "townID": null,
  15464. "note": "",
  15465. "fee": 0,
  15466. "accountAmount": 0,
  15467. "productAmount": 61,
  15468. "totalAmount": 61,
  15469. "needPayAmount": 61,
  15470. "discountAmount": null,
  15471. "discountFee": 0,
  15472. "preferential": 0,
  15473. "promotionFullReduction": 0,
  15474. "payFlag": "0",
  15475. "orderTime": "2021-03-17 11:13:38",
  15476. "payTime": null,
  15477. "finishTime": null,
  15478. "autoOverTimeMills": null,
  15479. "status": 1,
  15480. "payStatus": "1",
  15481. "sendOutStatus": "1",
  15482. "refundStatus": 0,
  15483. "returnGoodsStatus": null,
  15484. "receiveGoodsTime": null,
  15485. "autoReceiveTimeMills": null,
  15486. "totalAddedValueTax": null,
  15487. "canRefundAmount": 61,
  15488. "refundAmount": null,
  15489. "clubID": 5638,
  15490. "spID": 1401,
  15491. "mainSpID": 1304,
  15492. "orderBeanAmount": 0,
  15493. "useBeanAmount": 0,
  15494. "useBeanFlag": 0,
  15495. "canRefundFlag": 1,
  15496. "useBalanceFlag": 0,
  15497. "canRefundBeans": null,
  15498. "freePostageFee": null,
  15499. "freePostageTicketID": null,
  15500. "brokerage": 21,
  15501. "delFlag": "0",
  15502. "refundsAmount": 0,
  15503. "orderStatusFlag": "1",
  15504. "buyStatus": "1",
  15505. "deliveryTimeMills": null,
  15506. "orderDeliveryID": null,
  15507. "splitFlag": "1",
  15508. "receiptedFlag": null,
  15509. "receiptedType": null,
  15510. "paying": "0",
  15511. "shopProductAmount": 40,
  15512. "shopPostFee": 0,
  15513. "shopTaxFee": 0,
  15514. "shouldPayShopAmount": 40,
  15515. "payedShopAmount": 0,
  15516. "shopOtherFee": 0,
  15517. "refunding": null,
  15518. "costType": null,
  15519. "proportional": null,
  15520. "modifyShouldPayNote": null,
  15521. "modifyShouldPayUserID": null,
  15522. "modifyShouldPayDate": null,
  15523. "zeroCostFlag": 0,
  15524. "shopName": "深圳市美轮美奂服务有限公司",
  15525. "shopLogo": "https://www-b.caimei365.com/img/default/suppliver.jpg",
  15526. "logisticsRecordList": null,
  15527. "orderProductList": [
  15528. {
  15529. "orderProductID": 29294,
  15530. "orderNo": "X161595081871691",
  15531. "orderID": 15170,
  15532. "shopOrderID": 19325,
  15533. "shopOrderNo": "X16159508187169101",
  15534. "shopID": 10134,
  15535. "productID": 6421,
  15536. "organizeProductID": null,
  15537. "organizeID": 0,
  15538. "num": 4,
  15539. "presentNum": 0,
  15540. "outStoreType": null,
  15541. "skuID": null,
  15542. "props": null,
  15543. "propName": null,
  15544. "productNo": null,
  15545. "price": 15.25,
  15546. "normalPrice": 15.25,
  15547. "costPrice": 10,
  15548. "price0": 15.25,
  15549. "price1": 15.25,
  15550. "totalAmount": 61,
  15551. "totalFee": 61,
  15552. "shouldPayFee": 61,
  15553. "discount": 100,
  15554. "discountPrice": 15.25,
  15555. "includedTax": "0",
  15556. "invoiceType": "3",
  15557. "taxRate": 0,
  15558. "supplierTaxRate": 0,
  15559. "addedValueTax": 0,
  15560. "totalAddedValueTax": 0,
  15561. "shouldPayTotalTax": 0,
  15562. "singleShouldPayTotalTax": 0,
  15563. "shopProductAmount": 40,
  15564. "shopFee": 40,
  15565. "otherFee": 0,
  15566. "cmFee": 21,
  15567. "singleShopFee": 10,
  15568. "singleOtherFee": 0,
  15569. "singleCmFee": 5.25,
  15570. "status": null,
  15571. "commentFlag": "0",
  15572. "totalBeans": 0,
  15573. "useBalanceAmount": 0,
  15574. "useBeanAmount": null,
  15575. "notOutStore": 4,
  15576. "cmbeanPrice": null,
  15577. "isActProduct": "0",
  15578. "isGiftProduct": "0",
  15579. "productActInfo": null,
  15580. "buyAgainFlag": "0",
  15581. "confirmProductFlag": "0",
  15582. "payStatus": "0",
  15583. "shopName": "深圳市美轮美奂服务有限公司",
  15584. "name": "【测试用】肌本演绎【O4元素破茧疗法】25800 特惠方案",
  15585. "productUnit": "瓶",
  15586. "productImage": "https://img-b.caimei365.com/group1/M00/03/20/Cmgy62BHJGCARS7iAAVlWLR-uKU385.jpg",
  15587. "actType": null,
  15588. "actPreferential": 0,
  15589. "productType": "0",
  15590. "orderPromotionsId": null,
  15591. "preferential": 0,
  15592. "discountFee": 0,
  15593. "cancelNum": null,
  15594. "ladderPriceFlag": 0,
  15595. "shipmentsNum": null,
  15596. "returnedNum": null,
  15597. "actualCancelNum": null,
  15598. "aliasName": null,
  15599. "productCategory": "1",
  15600. "secondHandType": null,
  15601. "productPromotion": null,
  15602. "includedTaxFlag": null }],
  15603. "userInfo": null,
  15604. "name": null,
  15605. "receiptStatus": null,
  15606. "shopPromotion": null,
  15607. "shouHuoRen": null }],
  15608. "clubName": "正经一点机构",
  15609. "invoiceStatus": false,
  15610. "payButton": false,
  15611. "expensesOfTaxation": null }];
  15612. module.exports = {
  15613. addressList: addressList,
  15614. cartList: cartList,
  15615. productList: productList,
  15616. orderDataList: orderDataList };
  15617. /***/ }),
  15618. /***/ 6:
  15619. /*!*******************************************************!*\
  15620. !*** ./node_modules/@dcloudio/uni-stat/dist/index.js ***!
  15621. \*******************************************************/
  15622. /*! no static exports found */
  15623. /***/ (function(module, exports, __webpack_require__) {
  15624. "use strict";
  15625. /* WEBPACK VAR INJECTION */(function(uni) {var _package = __webpack_require__(/*! ../package.json */ 7);function _inherits(subClass, superClass) {if (typeof superClass !== "function" && superClass !== null) {throw new TypeError("Super expression must either be null or a function");}subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });if (superClass) _setPrototypeOf(subClass, superClass);}function _setPrototypeOf(o, p) {_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {o.__proto__ = p;return o;};return _setPrototypeOf(o, p);}function _createSuper(Derived) {var hasNativeReflectConstruct = _isNativeReflectConstruct();return function _createSuperInternal() {var Super = _getPrototypeOf(Derived),result;if (hasNativeReflectConstruct) {var NewTarget = _getPrototypeOf(this).constructor;result = Reflect.construct(Super, arguments, NewTarget);} else {result = Super.apply(this, arguments);}return _possibleConstructorReturn(this, result);};}function _possibleConstructorReturn(self, call) {if (call && (typeof call === "object" || typeof call === "function")) {return call;}return _assertThisInitialized(self);}function _assertThisInitialized(self) {if (self === void 0) {throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct() {if (typeof Reflect === "undefined" || !Reflect.construct) return false;if (Reflect.construct.sham) return false;if (typeof Proxy === "function") return true;try {Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));return true;} catch (e) {return false;}}function _getPrototypeOf(o) {_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {return o.__proto__ || Object.getPrototypeOf(o);};return _getPrototypeOf(o);}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;}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;}
  15626. var STAT_VERSION = _package.version;
  15627. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  15628. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  15629. var PAGE_PVER_TIME = 1800;
  15630. var APP_PVER_TIME = 300;
  15631. var OPERATING_TIME = 10;
  15632. var DIFF_TIME = 60 * 1000 * 60 * 24;
  15633. var statConfig = __webpack_require__(/*! uni-stat-config */ 8).default || __webpack_require__(/*! uni-stat-config */ 8);
  15634. var UUID_KEY = '__DC_STAT_UUID';
  15635. var UUID_VALUE = '__DC_UUID_VALUE';
  15636. function getUuid() {
  15637. var uuid = '';
  15638. if (getPlatformName() === 'n') {
  15639. try {
  15640. uuid = plus.runtime.getDCloudId();
  15641. } catch (e) {
  15642. uuid = '';
  15643. }
  15644. return uuid;
  15645. }
  15646. try {
  15647. uuid = uni.getStorageSync(UUID_KEY);
  15648. } catch (e) {
  15649. uuid = UUID_VALUE;
  15650. }
  15651. if (!uuid) {
  15652. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  15653. try {
  15654. uni.setStorageSync(UUID_KEY, uuid);
  15655. } catch (e) {
  15656. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  15657. }
  15658. }
  15659. return uuid;
  15660. }
  15661. var getSgin = function getSgin(statData) {
  15662. var arr = Object.keys(statData);
  15663. var sortArr = arr.sort();
  15664. var sgin = {};
  15665. var sginStr = '';
  15666. for (var i in sortArr) {
  15667. sgin[sortArr[i]] = statData[sortArr[i]];
  15668. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  15669. }
  15670. // const options = sginStr.substr(0, sginStr.length - 1)
  15671. // sginStr = sginStr.substr(0, sginStr.length - 1) + '&key=' + STAT_KEY;
  15672. // const si = crypto.createHash('md5').update(sginStr).digest('hex');
  15673. return {
  15674. sign: '',
  15675. options: sginStr.substr(0, sginStr.length - 1) };
  15676. };
  15677. var getSplicing = function getSplicing(data) {
  15678. var str = '';
  15679. for (var i in data) {
  15680. str += i + '=' + data[i] + '&';
  15681. }
  15682. return str.substr(0, str.length - 1);
  15683. };
  15684. var getTime = function getTime() {
  15685. return parseInt(new Date().getTime() / 1000);
  15686. };
  15687. var getPlatformName = function getPlatformName() {var _platformList;
  15688. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  15689. var platformList = (_platformList = {
  15690. 'app-plus': 'n',
  15691. 'h5': 'h5',
  15692. 'mp-weixin': 'wx' }, _defineProperty(_platformList,
  15693. aliArr.reverse().join(''), 'ali'), _defineProperty(_platformList,
  15694. 'mp-baidu', 'bd'), _defineProperty(_platformList,
  15695. 'mp-toutiao', 'tt'), _defineProperty(_platformList,
  15696. 'mp-qq', 'qq'), _defineProperty(_platformList,
  15697. 'quickapp-native', 'qn'), _defineProperty(_platformList,
  15698. 'mp-kuaishou', 'ks'), _platformList);
  15699. return platformList["mp-weixin"];
  15700. };
  15701. var getPackName = function getPackName() {
  15702. var packName = '';
  15703. if (getPlatformName() === 'wx' || getPlatformName() === 'qq') {
  15704. // 兼容微信小程序低版本基础库
  15705. if (uni.canIUse('getAccountInfoSync')) {
  15706. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  15707. }
  15708. }
  15709. return packName;
  15710. };
  15711. var getVersion = function getVersion() {
  15712. return getPlatformName() === 'n' ? plus.runtime.version : '';
  15713. };
  15714. var getChannel = function getChannel() {
  15715. var platformName = getPlatformName();
  15716. var channel = '';
  15717. if (platformName === 'n') {
  15718. channel = plus.runtime.channel;
  15719. }
  15720. return channel;
  15721. };
  15722. var getScene = function getScene(options) {
  15723. var platformName = getPlatformName();
  15724. var scene = '';
  15725. if (options) {
  15726. return options;
  15727. }
  15728. if (platformName === 'wx') {
  15729. scene = uni.getLaunchOptionsSync().scene;
  15730. }
  15731. return scene;
  15732. };
  15733. var First__Visit__Time__KEY = 'First__Visit__Time';
  15734. var Last__Visit__Time__KEY = 'Last__Visit__Time';
  15735. var getFirstVisitTime = function getFirstVisitTime() {
  15736. var timeStorge = uni.getStorageSync(First__Visit__Time__KEY);
  15737. var time = 0;
  15738. if (timeStorge) {
  15739. time = timeStorge;
  15740. } else {
  15741. time = getTime();
  15742. uni.setStorageSync(First__Visit__Time__KEY, time);
  15743. uni.removeStorageSync(Last__Visit__Time__KEY);
  15744. }
  15745. return time;
  15746. };
  15747. var getLastVisitTime = function getLastVisitTime() {
  15748. var timeStorge = uni.getStorageSync(Last__Visit__Time__KEY);
  15749. var time = 0;
  15750. if (timeStorge) {
  15751. time = timeStorge;
  15752. } else {
  15753. time = '';
  15754. }
  15755. uni.setStorageSync(Last__Visit__Time__KEY, getTime());
  15756. return time;
  15757. };
  15758. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  15759. var First_Page_residence_time = 0;
  15760. var Last_Page_residence_time = 0;
  15761. var setPageResidenceTime = function setPageResidenceTime() {
  15762. First_Page_residence_time = getTime();
  15763. if (getPlatformName() === 'n') {
  15764. uni.setStorageSync(PAGE_RESIDENCE_TIME, getTime());
  15765. }
  15766. return First_Page_residence_time;
  15767. };
  15768. var getPageResidenceTime = function getPageResidenceTime() {
  15769. Last_Page_residence_time = getTime();
  15770. if (getPlatformName() === 'n') {
  15771. First_Page_residence_time = uni.getStorageSync(PAGE_RESIDENCE_TIME);
  15772. }
  15773. return Last_Page_residence_time - First_Page_residence_time;
  15774. };
  15775. var TOTAL__VISIT__COUNT = 'Total__Visit__Count';
  15776. var getTotalVisitCount = function getTotalVisitCount() {
  15777. var timeStorge = uni.getStorageSync(TOTAL__VISIT__COUNT);
  15778. var count = 1;
  15779. if (timeStorge) {
  15780. count = timeStorge;
  15781. count++;
  15782. }
  15783. uni.setStorageSync(TOTAL__VISIT__COUNT, count);
  15784. return count;
  15785. };
  15786. var GetEncodeURIComponentOptions = function GetEncodeURIComponentOptions(statData) {
  15787. var data = {};
  15788. for (var prop in statData) {
  15789. data[prop] = encodeURIComponent(statData[prop]);
  15790. }
  15791. return data;
  15792. };
  15793. var Set__First__Time = 0;
  15794. var Set__Last__Time = 0;
  15795. var getFirstTime = function getFirstTime() {
  15796. var time = new Date().getTime();
  15797. Set__First__Time = time;
  15798. Set__Last__Time = 0;
  15799. return time;
  15800. };
  15801. var getLastTime = function getLastTime() {
  15802. var time = new Date().getTime();
  15803. Set__Last__Time = time;
  15804. return time;
  15805. };
  15806. var getResidenceTime = function getResidenceTime(type) {
  15807. var residenceTime = 0;
  15808. if (Set__First__Time !== 0) {
  15809. residenceTime = Set__Last__Time - Set__First__Time;
  15810. }
  15811. residenceTime = parseInt(residenceTime / 1000);
  15812. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  15813. if (type === 'app') {
  15814. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  15815. return {
  15816. residenceTime: residenceTime,
  15817. overtime: overtime };
  15818. }
  15819. if (type === 'page') {
  15820. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  15821. return {
  15822. residenceTime: residenceTime,
  15823. overtime: _overtime };
  15824. }
  15825. return {
  15826. residenceTime: residenceTime };
  15827. };
  15828. var getRoute = function getRoute() {
  15829. var pages = getCurrentPages();
  15830. var page = pages[pages.length - 1];
  15831. if (!page) return '';
  15832. var _self = page.$vm;
  15833. if (getPlatformName() === 'bd') {
  15834. return _self.$mp && _self.$mp.page.is;
  15835. } else {
  15836. return _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  15837. }
  15838. };
  15839. var getPageRoute = function getPageRoute(self) {
  15840. var pages = getCurrentPages();
  15841. var page = pages[pages.length - 1];
  15842. if (!page) return '';
  15843. var _self = page.$vm;
  15844. var query = self._query;
  15845. var str = query && JSON.stringify(query) !== '{}' ? '?' + JSON.stringify(query) : '';
  15846. // clear
  15847. self._query = '';
  15848. if (getPlatformName() === 'bd') {
  15849. return _self.$mp && _self.$mp.page.is + str;
  15850. } else {
  15851. return _self.$scope && _self.$scope.route + str || _self.$mp && _self.$mp.page.route + str;
  15852. }
  15853. };
  15854. var getPageTypes = function getPageTypes(self) {
  15855. if (self.mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  15856. return true;
  15857. }
  15858. return false;
  15859. };
  15860. var calibration = function calibration(eventName, options) {
  15861. // login 、 share 、pay_success 、pay_fail 、register 、title
  15862. if (!eventName) {
  15863. console.error("uni.report \u7F3A\u5C11 [eventName] \u53C2\u6570");
  15864. return true;
  15865. }
  15866. if (typeof eventName !== 'string') {
  15867. console.error("uni.report [eventName] \u53C2\u6570\u7C7B\u578B\u9519\u8BEF,\u53EA\u80FD\u4E3A String \u7C7B\u578B");
  15868. return true;
  15869. }
  15870. if (eventName.length > 255) {
  15871. console.error("uni.report [eventName] \u53C2\u6570\u957F\u5EA6\u4E0D\u80FD\u5927\u4E8E 255");
  15872. return true;
  15873. }
  15874. if (typeof options !== 'string' && typeof options !== 'object') {
  15875. console.error("uni.report [options] \u53C2\u6570\u7C7B\u578B\u9519\u8BEF,\u53EA\u80FD\u4E3A String \u6216 Object \u7C7B\u578B");
  15876. return true;
  15877. }
  15878. if (typeof options === 'string' && options.length > 255) {
  15879. console.error("uni.report [options] \u53C2\u6570\u957F\u5EA6\u4E0D\u80FD\u5927\u4E8E 255");
  15880. return true;
  15881. }
  15882. if (eventName === 'title' && typeof options !== 'string') {
  15883. console.error('uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型');
  15884. return true;
  15885. }
  15886. };
  15887. var Report_Data_Time = 'Report_Data_Time';
  15888. var Report_Status = 'Report_Status';
  15889. var isReportData = function isReportData() {
  15890. return new Promise(function (resolve, reject) {
  15891. var start_time = '';
  15892. var end_time = new Date().getTime();
  15893. var diff_time = DIFF_TIME;
  15894. var report_status = 1;
  15895. try {
  15896. start_time = uni.getStorageSync(Report_Data_Time);
  15897. report_status = uni.getStorageSync(Report_Status);
  15898. } catch (e) {
  15899. start_time = '';
  15900. report_status = 1;
  15901. }
  15902. if (report_status === '') {
  15903. requestData(function (_ref)
  15904. {var enable = _ref.enable;
  15905. uni.setStorageSync(Report_Data_Time, end_time);
  15906. uni.setStorageSync(Report_Status, enable);
  15907. if (enable === 1) {
  15908. resolve();
  15909. }
  15910. });
  15911. return;
  15912. }
  15913. if (report_status === 1) {
  15914. resolve();
  15915. }
  15916. if (!start_time) {
  15917. uni.setStorageSync(Report_Data_Time, end_time);
  15918. start_time = end_time;
  15919. }
  15920. if (end_time - start_time > diff_time) {
  15921. requestData(function (_ref2)
  15922. {var enable = _ref2.enable;
  15923. uni.setStorageSync(Report_Data_Time, end_time);
  15924. uni.setStorageSync(Report_Status, enable);
  15925. });
  15926. }
  15927. });
  15928. };
  15929. var requestData = function requestData(done) {
  15930. var formData = {
  15931. usv: STAT_VERSION,
  15932. conf: JSON.stringify({
  15933. ak: statConfig.appid }) };
  15934. uni.request({
  15935. url: STAT_URL,
  15936. method: 'GET',
  15937. data: formData,
  15938. success: function success(res) {var
  15939. data =
  15940. res.data;
  15941. if (data.ret === 0) {
  15942. typeof done === 'function' && done({
  15943. enable: data.enable });
  15944. }
  15945. },
  15946. fail: function fail(e) {
  15947. var report_status_code = 1;
  15948. try {
  15949. report_status_code = uni.getStorageSync(Report_Status);
  15950. } catch (e) {
  15951. report_status_code = 1;
  15952. }
  15953. if (report_status_code === '') {
  15954. report_status_code = 1;
  15955. }
  15956. typeof done === 'function' && done({
  15957. enable: report_status_code });
  15958. } });
  15959. };
  15960. var PagesJson = __webpack_require__(/*! uni-pages?{"type":"style"} */ 9).default;
  15961. var statConfig$1 = __webpack_require__(/*! uni-stat-config */ 8).default || __webpack_require__(/*! uni-stat-config */ 8);
  15962. var resultOptions = uni.getSystemInfoSync();var
  15963. Util = /*#__PURE__*/function () {
  15964. function Util() {_classCallCheck(this, Util);
  15965. this.self = '';
  15966. this._retry = 0;
  15967. this._platform = '';
  15968. this._query = {};
  15969. this._navigationBarTitle = {
  15970. config: '',
  15971. page: '',
  15972. report: '',
  15973. lt: '' };
  15974. this._operatingTime = 0;
  15975. this._reportingRequestData = {
  15976. '1': [],
  15977. '11': [] };
  15978. this.__prevent_triggering = false;
  15979. this.__licationHide = false;
  15980. this.__licationShow = false;
  15981. this._lastPageRoute = '';
  15982. this.statData = {
  15983. uuid: getUuid(),
  15984. ut: getPlatformName(),
  15985. mpn: getPackName(),
  15986. ak: statConfig$1.appid,
  15987. usv: STAT_VERSION,
  15988. v: getVersion(),
  15989. ch: getChannel(),
  15990. cn: '',
  15991. pn: '',
  15992. ct: '',
  15993. t: getTime(),
  15994. tt: '',
  15995. p: resultOptions.platform === 'android' ? 'a' : 'i',
  15996. brand: resultOptions.brand || '',
  15997. md: resultOptions.model,
  15998. sv: resultOptions.system.replace(/(Android|iOS)\s/, ''),
  15999. mpsdk: resultOptions.SDKVersion || '',
  16000. mpv: resultOptions.version || '',
  16001. lang: resultOptions.language,
  16002. pr: resultOptions.pixelRatio,
  16003. ww: resultOptions.windowWidth,
  16004. wh: resultOptions.windowHeight,
  16005. sw: resultOptions.screenWidth,
  16006. sh: resultOptions.screenHeight };
  16007. }_createClass(Util, [{ key: "getIsReportData", value: function getIsReportData()
  16008. {
  16009. return isReportData();
  16010. } }, { key: "_applicationShow", value: function _applicationShow()
  16011. {
  16012. if (this.__licationHide) {
  16013. getLastTime();
  16014. var time = getResidenceTime('app');
  16015. if (time.overtime) {
  16016. var options = {
  16017. path: this._lastPageRoute,
  16018. scene: this.statData.sc };
  16019. this._sendReportRequest(options);
  16020. }
  16021. this.__licationHide = false;
  16022. }
  16023. } }, { key: "_applicationHide", value: function _applicationHide(
  16024. self, type) {
  16025. this.__licationHide = true;
  16026. getLastTime();
  16027. var time = getResidenceTime();
  16028. getFirstTime();
  16029. var route = getPageRoute(this);
  16030. this._sendHideRequest({
  16031. urlref: route,
  16032. urlref_ts: time.residenceTime },
  16033. type);
  16034. } }, { key: "_pageShow", value: function _pageShow()
  16035. {
  16036. var route = getPageRoute(this);
  16037. var routepath = getRoute();
  16038. this._navigationBarTitle.config = PagesJson &&
  16039. PagesJson.pages[routepath] &&
  16040. PagesJson.pages[routepath].titleNView &&
  16041. PagesJson.pages[routepath].titleNView.titleText ||
  16042. PagesJson &&
  16043. PagesJson.pages[routepath] &&
  16044. PagesJson.pages[routepath].navigationBarTitleText || '';
  16045. if (this.__licationShow) {
  16046. getFirstTime();
  16047. this.__licationShow = false;
  16048. // console.log('这是 onLauch 之后执行的第一次 pageShow ,为下次记录时间做准备');
  16049. this._lastPageRoute = route;
  16050. return;
  16051. }
  16052. getLastTime();
  16053. this._lastPageRoute = route;
  16054. var time = getResidenceTime('page');
  16055. if (time.overtime) {
  16056. var options = {
  16057. path: this._lastPageRoute,
  16058. scene: this.statData.sc };
  16059. this._sendReportRequest(options);
  16060. }
  16061. getFirstTime();
  16062. } }, { key: "_pageHide", value: function _pageHide()
  16063. {
  16064. if (!this.__licationHide) {
  16065. getLastTime();
  16066. var time = getResidenceTime('page');
  16067. this._sendPageRequest({
  16068. url: this._lastPageRoute,
  16069. urlref: this._lastPageRoute,
  16070. urlref_ts: time.residenceTime });
  16071. this._navigationBarTitle = {
  16072. config: '',
  16073. page: '',
  16074. report: '',
  16075. lt: '' };
  16076. return;
  16077. }
  16078. } }, { key: "_login", value: function _login()
  16079. {
  16080. this._sendEventRequest({
  16081. key: 'login' },
  16082. 0);
  16083. } }, { key: "_share", value: function _share()
  16084. {
  16085. this._sendEventRequest({
  16086. key: 'share' },
  16087. 0);
  16088. } }, { key: "_payment", value: function _payment(
  16089. key) {
  16090. this._sendEventRequest({
  16091. key: key },
  16092. 0);
  16093. } }, { key: "_sendReportRequest", value: function _sendReportRequest(
  16094. options) {
  16095. this._navigationBarTitle.lt = '1';
  16096. var query = options.query && JSON.stringify(options.query) !== '{}' ? '?' + JSON.stringify(options.query) : '';
  16097. this.statData.lt = '1';
  16098. this.statData.url = options.path + query || '';
  16099. this.statData.t = getTime();
  16100. this.statData.sc = getScene(options.scene);
  16101. this.statData.fvts = getFirstVisitTime();
  16102. this.statData.lvts = getLastVisitTime();
  16103. this.statData.tvc = getTotalVisitCount();
  16104. if (getPlatformName() === 'n') {
  16105. this.getProperty();
  16106. } else {
  16107. this.getNetworkInfo();
  16108. }
  16109. } }, { key: "_sendPageRequest", value: function _sendPageRequest(
  16110. opt) {var
  16111. url =
  16112. opt.url,urlref = opt.urlref,urlref_ts = opt.urlref_ts;
  16113. this._navigationBarTitle.lt = '11';
  16114. var options = {
  16115. ak: this.statData.ak,
  16116. uuid: this.statData.uuid,
  16117. lt: '11',
  16118. ut: this.statData.ut,
  16119. url: url,
  16120. tt: this.statData.tt,
  16121. urlref: urlref,
  16122. urlref_ts: urlref_ts,
  16123. ch: this.statData.ch,
  16124. usv: this.statData.usv,
  16125. t: getTime(),
  16126. p: this.statData.p };
  16127. this.request(options);
  16128. } }, { key: "_sendHideRequest", value: function _sendHideRequest(
  16129. opt, type) {var
  16130. urlref =
  16131. opt.urlref,urlref_ts = opt.urlref_ts;
  16132. var options = {
  16133. ak: this.statData.ak,
  16134. uuid: this.statData.uuid,
  16135. lt: '3',
  16136. ut: this.statData.ut,
  16137. urlref: urlref,
  16138. urlref_ts: urlref_ts,
  16139. ch: this.statData.ch,
  16140. usv: this.statData.usv,
  16141. t: getTime(),
  16142. p: this.statData.p };
  16143. this.request(options, type);
  16144. } }, { key: "_sendEventRequest", value: function _sendEventRequest()
  16145. {var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref3$key = _ref3.key,key = _ref3$key === void 0 ? '' : _ref3$key,_ref3$value = _ref3.value,value = _ref3$value === void 0 ? "" : _ref3$value;
  16146. var route = this._lastPageRoute;
  16147. var options = {
  16148. ak: this.statData.ak,
  16149. uuid: this.statData.uuid,
  16150. lt: '21',
  16151. ut: this.statData.ut,
  16152. url: route,
  16153. ch: this.statData.ch,
  16154. e_n: key,
  16155. e_v: typeof value === 'object' ? JSON.stringify(value) : value.toString(),
  16156. usv: this.statData.usv,
  16157. t: getTime(),
  16158. p: this.statData.p };
  16159. this.request(options);
  16160. } }, { key: "getNetworkInfo", value: function getNetworkInfo()
  16161. {var _this = this;
  16162. uni.getNetworkType({
  16163. success: function success(result) {
  16164. _this.statData.net = result.networkType;
  16165. _this.getLocation();
  16166. } });
  16167. } }, { key: "getProperty", value: function getProperty()
  16168. {var _this2 = this;
  16169. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  16170. _this2.statData.v = wgtinfo.version || '';
  16171. _this2.getNetworkInfo();
  16172. });
  16173. } }, { key: "getLocation", value: function getLocation()
  16174. {var _this3 = this;
  16175. if (statConfig$1.getLocation) {
  16176. uni.getLocation({
  16177. type: 'wgs84',
  16178. geocode: true,
  16179. success: function success(result) {
  16180. if (result.address) {
  16181. _this3.statData.cn = result.address.country;
  16182. _this3.statData.pn = result.address.province;
  16183. _this3.statData.ct = result.address.city;
  16184. }
  16185. _this3.statData.lat = result.latitude;
  16186. _this3.statData.lng = result.longitude;
  16187. _this3.request(_this3.statData);
  16188. } });
  16189. } else {
  16190. this.statData.lat = 0;
  16191. this.statData.lng = 0;
  16192. this.request(this.statData);
  16193. }
  16194. } }, { key: "request", value: function request(
  16195. data, type) {var _this4 = this;
  16196. var time = getTime();
  16197. var title = this._navigationBarTitle;
  16198. data.ttn = title.page;
  16199. data.ttpj = title.config;
  16200. data.ttc = title.report;
  16201. var requestData = this._reportingRequestData;
  16202. if (getPlatformName() === 'n') {
  16203. requestData = uni.getStorageSync('__UNI__STAT__DATA') || {};
  16204. }
  16205. if (!requestData[data.lt]) {
  16206. requestData[data.lt] = [];
  16207. }
  16208. requestData[data.lt].push(data);
  16209. if (getPlatformName() === 'n') {
  16210. uni.setStorageSync('__UNI__STAT__DATA', requestData);
  16211. }
  16212. if (getPageResidenceTime() < OPERATING_TIME && !type) {
  16213. return;
  16214. }
  16215. var uniStatData = this._reportingRequestData;
  16216. if (getPlatformName() === 'n') {
  16217. uniStatData = uni.getStorageSync('__UNI__STAT__DATA');
  16218. }
  16219. // 时间超过,重新获取时间戳
  16220. setPageResidenceTime();
  16221. var firstArr = [];
  16222. var contentArr = [];
  16223. var lastArr = [];var _loop = function _loop(
  16224. i) {
  16225. var rd = uniStatData[i];
  16226. rd.forEach(function (elm) {
  16227. var newData = getSplicing(elm);
  16228. if (i === 0) {
  16229. firstArr.push(newData);
  16230. } else if (i === 3) {
  16231. lastArr.push(newData);
  16232. } else {
  16233. contentArr.push(newData);
  16234. }
  16235. });};for (var i in uniStatData) {_loop(i);
  16236. }
  16237. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  16238. var optionsData = {
  16239. usv: STAT_VERSION, //统计 SDK 版本号
  16240. t: time, //发送请求时的时间戮
  16241. requests: JSON.stringify(firstArr) };
  16242. this._reportingRequestData = {};
  16243. if (getPlatformName() === 'n') {
  16244. uni.removeStorageSync('__UNI__STAT__DATA');
  16245. }
  16246. if (data.ut === 'h5') {
  16247. this.imageRequest(optionsData);
  16248. return;
  16249. }
  16250. if (getPlatformName() === 'n' && this.statData.p === 'a') {
  16251. setTimeout(function () {
  16252. _this4._sendRequest(optionsData);
  16253. }, 200);
  16254. return;
  16255. }
  16256. this._sendRequest(optionsData);
  16257. } }, { key: "_sendRequest", value: function _sendRequest(
  16258. optionsData) {var _this5 = this;
  16259. this.getIsReportData().then(function () {
  16260. uni.request({
  16261. url: STAT_URL,
  16262. method: 'POST',
  16263. // header: {
  16264. // 'content-type': 'application/json' // 默认值
  16265. // },
  16266. data: optionsData,
  16267. success: function success() {
  16268. // if (process.env.NODE_ENV === 'development') {
  16269. // console.log('stat request success');
  16270. // }
  16271. },
  16272. fail: function fail(e) {
  16273. if (++_this5._retry < 3) {
  16274. setTimeout(function () {
  16275. _this5._sendRequest(optionsData);
  16276. }, 1000);
  16277. }
  16278. } });
  16279. });
  16280. }
  16281. /**
  16282. * h5 请求
  16283. */ }, { key: "imageRequest", value: function imageRequest(
  16284. data) {
  16285. this.getIsReportData().then(function () {
  16286. var image = new Image();
  16287. var options = getSgin(GetEncodeURIComponentOptions(data)).options;
  16288. image.src = STAT_H5_URL + '?' + options;
  16289. });
  16290. } }, { key: "sendEvent", value: function sendEvent(
  16291. key, value) {
  16292. // 校验 type 参数
  16293. if (calibration(key, value)) return;
  16294. if (key === 'title') {
  16295. this._navigationBarTitle.report = value;
  16296. return;
  16297. }
  16298. this._sendEventRequest({
  16299. key: key,
  16300. value: typeof value === 'object' ? JSON.stringify(value) : value },
  16301. 1);
  16302. } }]);return Util;}();var
  16303. Stat = /*#__PURE__*/function (_Util) {_inherits(Stat, _Util);var _super = _createSuper(Stat);_createClass(Stat, null, [{ key: "getInstance", value: function getInstance()
  16304. {
  16305. if (!this.instance) {
  16306. this.instance = new Stat();
  16307. }
  16308. return this.instance;
  16309. } }]);
  16310. function Stat() {var _this6;_classCallCheck(this, Stat);
  16311. _this6 = _super.call(this);
  16312. _this6.instance = null;
  16313. // 注册拦截器
  16314. if (typeof uni.addInterceptor === 'function' && "development" !== 'development') {
  16315. _this6.addInterceptorInit();
  16316. _this6.interceptLogin();
  16317. _this6.interceptShare(true);
  16318. _this6.interceptRequestPayment();
  16319. }return _this6;
  16320. }_createClass(Stat, [{ key: "addInterceptorInit", value: function addInterceptorInit()
  16321. {
  16322. var self = this;
  16323. uni.addInterceptor('setNavigationBarTitle', {
  16324. invoke: function invoke(args) {
  16325. self._navigationBarTitle.page = args.title;
  16326. } });
  16327. } }, { key: "interceptLogin", value: function interceptLogin()
  16328. {
  16329. var self = this;
  16330. uni.addInterceptor('login', {
  16331. complete: function complete() {
  16332. self._login();
  16333. } });
  16334. } }, { key: "interceptShare", value: function interceptShare(
  16335. type) {
  16336. var self = this;
  16337. if (!type) {
  16338. self._share();
  16339. return;
  16340. }
  16341. uni.addInterceptor('share', {
  16342. success: function success() {
  16343. self._share();
  16344. },
  16345. fail: function fail() {
  16346. self._share();
  16347. } });
  16348. } }, { key: "interceptRequestPayment", value: function interceptRequestPayment()
  16349. {
  16350. var self = this;
  16351. uni.addInterceptor('requestPayment', {
  16352. success: function success() {
  16353. self._payment('pay_success');
  16354. },
  16355. fail: function fail() {
  16356. self._payment('pay_fail');
  16357. } });
  16358. } }, { key: "report", value: function report(
  16359. options, self) {
  16360. this.self = self;
  16361. // if (process.env.NODE_ENV === 'development') {
  16362. // console.log('report init');
  16363. // }
  16364. setPageResidenceTime();
  16365. this.__licationShow = true;
  16366. this._sendReportRequest(options, true);
  16367. } }, { key: "load", value: function load(
  16368. options, self) {
  16369. if (!self.$scope && !self.$mp) {
  16370. var page = getCurrentPages();
  16371. self.$scope = page[page.length - 1];
  16372. }
  16373. this.self = self;
  16374. this._query = options;
  16375. } }, { key: "show", value: function show(
  16376. self) {
  16377. this.self = self;
  16378. if (getPageTypes(self)) {
  16379. this._pageShow(self);
  16380. } else {
  16381. this._applicationShow(self);
  16382. }
  16383. } }, { key: "ready", value: function ready(
  16384. self) {
  16385. // this.self = self;
  16386. // if (getPageTypes(self)) {
  16387. // this._pageShow(self);
  16388. // }
  16389. } }, { key: "hide", value: function hide(
  16390. self) {
  16391. this.self = self;
  16392. if (getPageTypes(self)) {
  16393. this._pageHide(self);
  16394. } else {
  16395. this._applicationHide(self, true);
  16396. }
  16397. } }, { key: "error", value: function error(
  16398. em) {
  16399. if (this._platform === 'devtools') {
  16400. if (true) {
  16401. console.info('当前运行环境为开发者工具,不上报数据。');
  16402. }
  16403. // return;
  16404. }
  16405. var emVal = '';
  16406. if (!em.message) {
  16407. emVal = JSON.stringify(em);
  16408. } else {
  16409. emVal = em.stack;
  16410. }
  16411. var options = {
  16412. ak: this.statData.ak,
  16413. uuid: this.statData.uuid,
  16414. lt: '31',
  16415. ut: this.statData.ut,
  16416. ch: this.statData.ch,
  16417. mpsdk: this.statData.mpsdk,
  16418. mpv: this.statData.mpv,
  16419. v: this.statData.v,
  16420. em: emVal,
  16421. usv: this.statData.usv,
  16422. t: getTime(),
  16423. p: this.statData.p };
  16424. this.request(options);
  16425. } }]);return Stat;}(Util);
  16426. var stat = Stat.getInstance();
  16427. var isHide = false;
  16428. var lifecycle = {
  16429. onLaunch: function onLaunch(options) {
  16430. stat.report(options, this);
  16431. },
  16432. onReady: function onReady() {
  16433. stat.ready(this);
  16434. },
  16435. onLoad: function onLoad(options) {
  16436. stat.load(options, this);
  16437. // 重写分享,获取分享上报事件
  16438. if (this.$scope && this.$scope.onShareAppMessage) {
  16439. var oldShareAppMessage = this.$scope.onShareAppMessage;
  16440. this.$scope.onShareAppMessage = function (options) {
  16441. stat.interceptShare(false);
  16442. return oldShareAppMessage.call(this, options);
  16443. };
  16444. }
  16445. },
  16446. onShow: function onShow() {
  16447. isHide = false;
  16448. stat.show(this);
  16449. },
  16450. onHide: function onHide() {
  16451. isHide = true;
  16452. stat.hide(this);
  16453. },
  16454. onUnload: function onUnload() {
  16455. if (isHide) {
  16456. isHide = false;
  16457. return;
  16458. }
  16459. stat.hide(this);
  16460. },
  16461. onError: function onError(e) {
  16462. stat.error(e);
  16463. } };
  16464. function main() {
  16465. if (true) {
  16466. uni.report = function (type, options) {};
  16467. } else { var Vue; }
  16468. }
  16469. main();
  16470. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  16471. /***/ }),
  16472. /***/ 7:
  16473. /*!******************************************************!*\
  16474. !*** ./node_modules/@dcloudio/uni-stat/package.json ***!
  16475. \******************************************************/
  16476. /*! exports provided: _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _shasum, _spec, _where, author, bugs, bundleDependencies, deprecated, description, devDependencies, files, gitHead, homepage, license, main, name, repository, scripts, version, default */
  16477. /***/ (function(module) {
  16478. module.exports = JSON.parse("{\"_from\":\"@dcloudio/uni-stat@next\",\"_id\":\"@dcloudio/uni-stat@2.0.0-32920211029001\",\"_inBundle\":false,\"_integrity\":\"sha512-J6S+RH1WSl4KP8gV9VZ1bPtxaoNezzA0hHhcoNAvaJEQYGi2NnvYslq16whGlaZpxjte1TJ/KHqC0HSP2VTwLw==\",\"_location\":\"/@dcloudio/uni-stat\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"tag\",\"registry\":true,\"raw\":\"@dcloudio/uni-stat@next\",\"name\":\"@dcloudio/uni-stat\",\"escapedName\":\"@dcloudio%2funi-stat\",\"scope\":\"@dcloudio\",\"rawSpec\":\"next\",\"saveSpec\":null,\"fetchSpec\":\"next\"},\"_requiredBy\":[\"#USER\",\"/\",\"/@dcloudio/vue-cli-plugin-uni\"],\"_resolved\":\"https://registry.npmjs.org/@dcloudio/uni-stat/-/uni-stat-2.0.0-32920211029001.tgz\",\"_shasum\":\"608f309cc23999f0895c1fb3ae61bc3f1d616d9f\",\"_spec\":\"@dcloudio/uni-stat@next\",\"_where\":\"/Users/guoshengqiang/Documents/dcloud-plugins-new/release/uniapp-cli\",\"author\":\"\",\"bugs\":{\"url\":\"https://github.com/dcloudio/uni-app/issues\"},\"bundleDependencies\":false,\"deprecated\":false,\"description\":\"\",\"devDependencies\":{\"@babel/core\":\"^7.5.5\",\"@babel/preset-env\":\"^7.5.5\",\"eslint\":\"^6.1.0\",\"rollup\":\"^1.19.3\",\"rollup-plugin-babel\":\"^4.3.3\",\"rollup-plugin-clear\":\"^2.0.7\",\"rollup-plugin-commonjs\":\"^10.0.2\",\"rollup-plugin-copy\":\"^3.1.0\",\"rollup-plugin-eslint\":\"^7.0.0\",\"rollup-plugin-json\":\"^4.0.0\",\"rollup-plugin-node-resolve\":\"^5.2.0\",\"rollup-plugin-replace\":\"^2.2.0\",\"rollup-plugin-uglify\":\"^6.0.2\"},\"files\":[\"dist\",\"package.json\",\"LICENSE\"],\"gitHead\":\"9577a22e00e4b90c8830d34f5966f1d379b455ea\",\"homepage\":\"https://github.com/dcloudio/uni-app#readme\",\"license\":\"Apache-2.0\",\"main\":\"dist/index.js\",\"name\":\"@dcloudio/uni-stat\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/dcloudio/uni-app.git\",\"directory\":\"packages/uni-stat\"},\"scripts\":{\"build\":\"NODE_ENV=production rollup -c rollup.config.js\",\"dev\":\"NODE_ENV=development rollup -w -c rollup.config.js\"},\"version\":\"2.0.0-32920211029001\"}");
  16479. /***/ }),
  16480. /***/ 8:
  16481. /*!**********************************************************************!*\
  16482. !*** D:/yuwenjun_dev/caimei-applets-hehe/pages.json?{"type":"stat"} ***!
  16483. \**********************************************************************/
  16484. /*! no static exports found */
  16485. /***/ (function(module, exports, __webpack_require__) {
  16486. "use strict";
  16487. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = { "appid": "__UNI__1EA8401" };exports.default = _default;
  16488. /***/ }),
  16489. /***/ 9:
  16490. /*!***********************************************************************!*\
  16491. !*** D:/yuwenjun_dev/caimei-applets-hehe/pages.json?{"type":"style"} ***!
  16492. \***********************************************************************/
  16493. /*! no static exports found */
  16494. /***/ (function(module, exports, __webpack_require__) {
  16495. "use strict";
  16496. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = { "pages": { "pages/tabBar/index/index": { "navigationBarTitleText": "呵呵商城", "enablePullDownRefresh": true, "backgroundColor": "#F952B7", "backgroundTextStyle": "light", "navigationStyle": "custom", "onReachBottomDistance": 100, "usingComponents": { "banner": "/components/cm-module/homeIndex/banner", "cm-active-popup": "/components/cm-module/cm-active-popup/cm-active-popup", "cm-selector-coupons": "/components/cm-module/cm-selector-coupons/cm-selector-coupons", "cm-product": "/components/cm-module/cm-product/cm-product" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "scroll-top": "/components/cm-module/scrollTop/scrollTop" } }, "pages/tabBar/cart/index": { "navigationBarTitleText": "购物车", "enablePullDownRefresh": true, "usingComponents": { "cm-coupon-list": "/components/cm-module/cm-coupon-list/cm-coupon-list", "cm-drawer": "/components/cm-module/cm-drawer/cm-drawer", "cm-cart-product": "/components/cm-module/cm-cart-product/cm-cart-product", "cm-empty": "/components/cm-module/cm-empty/cm-empty" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/tabBar/user/index": { "navigationBarTitleText": "个人中心", "enablePullDownRefresh": true, "usingComponents": { "nut-badge": "/components/thorui/tui-badge/tui-badge" }, "usingAutoImportComponents": { "tui-badge": "/components/thorui/tui-badge/tui-badge" } }, "pages/authorize/authorize": { "navigationBarTitleText": "微信授权", "usingComponents": {}, "usingAutoImportComponents": {} }, "pages/login/login": { "navigationBarTitleText": "登录", "usingComponents": { "cm-loading": "/components/cm-module/cm-loading/cm-loading" }, "usingAutoImportComponents": {} }, "pages/goods/list": { "navigationBarTitleText": "立即下单", "usingComponents": { "product-list": "/components/cm-module/listTemplate/productList" }, "usingAutoImportComponents": {} }, "pages/goods/cart": { "navigationBarTitleText": "购物车", "enablePullDownRefresh": true, "navigationStyle": "custom", "usingComponents": { "cm-coupon-list": "/components/cm-module/cm-coupon-list/cm-coupon-list", "cm-drawer": "/components/cm-module/cm-drawer/cm-drawer", "cm-cart-product": "/components/cm-module/cm-cart-product/cm-cart-product", "header-cart": "/components/cm-module/headerNavbar/header-cart", "cm-empty": "/components/cm-module/cm-empty/cm-empty" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/goods/search": { "navigationBarTitleText": "搜索", "usingComponents": { "modal-layer": "/components/cm-module/modal-layer/modal-layer" }, "usingAutoImportComponents": { "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/goods/product-detail": { "navigationBarTitleText": "商品详情", "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-tabs": "/components/thorui/tui-tabs/tui-tabs", "uni-swiper-dot": "/components/uni-components/uni-swiper-dot/uni-swiper-dot", "tui-scroll-top": "/components/thorui/tui-scroll-top/tui-scroll-top" }, "usingComponents": { "parser": "/components/jyf-Parser/index", "cm-product-price": "/components/cm-module/cm-product-price/cm-product-price", "cm-product-info": "/components/cm-module/cm-product-info/cm-product-info", "cm-coupon-list": "/components/cm-module/cm-coupon-list/cm-coupon-list", "cm-product-params": "/components/cm-module/cm-product-params/cm-product-params", "cm-goods-nav": "/components/cm-module/cm-goods-nav/cm-goods-nav" } }, "pages/goods/goods-floorMore": { "navigationBarTitleText": "商品列表", "enablePullDownRefresh": true, "usingComponents": { "cm-product": "/components/cm-module/cm-product/cm-product" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "scroll-top": "/components/cm-module/scrollTop/scrollTop" } }, "pages/goods/goods-coupon-list": { "navigationBarTitleText": "优惠券商品列表", "enablePullDownRefresh": true, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "sui-search": "/components/sui-search/sui-search", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "scroll-top": "/components/cm-module/scrollTop/scrollTop" }, "usingComponents": { "cm-empty": "/components/cm-module/cm-empty/cm-empty", "sui-search": "/components/sui-search/sui-search", "cm-product": "/components/cm-module/cm-product/cm-product", "cm-drag": "/components/cm-module/cm-drag/cm-drag" } }, "pages/goods/goods-coupon-list-search": { "navigationBarTitleText": "搜索", "usingAutoImportComponents": { "sui-search": "/components/sui-search/sui-search", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "scroll-top": "/components/cm-module/scrollTop/scrollTop", "tui-modal": "/components/thorui/tui-modal/tui-modal" }, "usingComponents": { "sui-search": "/components/sui-search/sui-search", "cm-empty": "/components/cm-module/cm-empty/cm-empty", "cm-drag": "/components/cm-module/cm-drag/cm-drag" } }, "pages/user/address/addressManage": { "navigationBarTitleText": "添加新地址", "usingComponents": { "city-picker": "/components/mpvue-citypicker/mpvueCityPicker" }, "usingAutoImportComponents": {} }, "pages/user/address/address": { "navigationBarTitleText": "地址列表", "enablePullDownRefresh": true, "onReachBottomDistance": 50, "usingComponents": {}, "usingAutoImportComponents": { "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/user/order/create-order": { "navigationBarTitleText": "确认订单", "usingComponents": { "choice-address": "/components/cm-module/createOrder/address", "goods-list": "/components/cm-module/createOrder/goodsList", "seller-freight": "/components/cm-module/createOrder/sellerFreight", "cm-coupon-list": "/components/cm-module/cm-coupon-list/cm-coupon-list", "cm-loading": "/components/cm-module/cm-loading/cm-loading" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton" } }, "pages/user/order/success": { "navigationBarTitleText": "支付结果", "navigationStyle": "custom", "usingComponents": { "header-pay": "/components/cm-module/headerNavbar/header-pay", "cm-loading": "/components/cm-module/cm-loading/cm-loading" }, "usingAutoImportComponents": {} }, "pages/user/order/error": { "navigationBarTitleText": "支付结果", "navigationStyle": "custom", "usingAutoImportComponents": {}, "usingComponents": { "header-pay": "/components/cm-module/headerNavbar/header-pay", "cm-loading": "/components/cm-module/cm-loading/cm-loading" } }, "pages/user/order/order-list": { "navigationBarTitleText": "我的订单", "navigationStyle": "custom", "usingComponents": { "header-order": "/components/cm-module/headerNavbar/header-order", "empty": "/components/cm-module/empty/empty", "order-button": "/components/cm-module/orderDetails/orderListButton", "modal-layer": "/components/cm-module/modal-layer/modal-layer", "cm-loading": "/components/cm-module/cm-loading/cm-loading" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/user/order/order-list-retail": { "navigationBarTitleText": "我的订单", "navigationStyle": "custom", "usingComponents": { "header-order": "/components/cm-module/headerNavbar/header-order", "empty": "/components/cm-module/empty/empty", "order-button": "/components/cm-module/orderDetails/orderListButton", "modal-layer": "/components/cm-module/modal-layer/modal-layer", "cm-loading": "/components/cm-module/cm-loading/cm-loading" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/user/order/order-details": { "navigationBarTitleText": "订单详情", "navigationStyle": "custom", "usingComponents": { "header-order": "/components/cm-module/headerNavbar/header-order", "order-information": "/components/cm-module/orderDetails/orderInformation", "order-address": "/components/cm-module/orderDetails/orderAddress", "goods-list": "/components/cm-module/orderDetails/goodsList", "cm-loading": "/components/cm-module/cm-loading/cm-loading", "transfe-record": "/components/cm-module/orderDetails/transfeRecord", "payment-record": "/components/cm-module/orderDetails/paymentRecord", "refund-record": "/components/cm-module/orderDetails/refundRecord", "order-button": "/components/cm-module/orderDetails/orderButton" }, "usingAutoImportComponents": { "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/user/order/order-payment": { "navigationBarTitleText": "收银台", "navigationStyle": "custom", "usingComponents": { "header-payment": "/components/cm-module/headerNavbar/header-payment" }, "usingAutoImportComponents": {} }, "pages/user/order/search-order": { "navigationBarTitleText": "订单搜索", "usingComponents": { "order-button": "/components/cm-module/orderDetails/orderListButton", "empty": "/components/cm-module/empty/empty", "cm-loading": "/components/cm-module/cm-loading/cm-loading" }, "usingAutoImportComponents": { "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "tui-modal": "/components/thorui/tui-modal/tui-modal" } }, "pages/user/order/order-logistics": { "navigationBarTitleText": "物流信息", "usingComponents": {}, "usingAutoImportComponents": {} }, "pages/user/activity/activity": { "navigationBarTitleText": "活动详情", "enablePullDownRefresh": true, "backgroundColor": "#ff457b", "backgroundTextStyle": "light", "onReachBottomDistance": 50, "usingComponents": { "cm-drag": "/components/cm-module/cm-drag/cm-drag" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore" } }, "pages/user/activity/activity-list": { "navigationBarTitleText": "活动专区", "enablePullDownRefresh": true, "onReachBottomDistance": 50, "usingComponents": {}, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore" } }, "pages/user/activity/coupon-find-list": { "navigationBarTitleText": "领券中心", "usingComponents": { "message-popup": "/components/message-popup/message-popup", "cm-coupon": "/components/cm-module/cm-coupon/cm-coupon", "cm-empty": "/components/cm-module/cm-empty/cm-empty", "cm-drawer": "/components/cm-module/cm-drawer/cm-drawer" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore", "scroll-top": "/components/cm-module/scrollTop/scrollTop", "message-popup": "/components/message-popup/message-popup" } }, "pages/user/activity/coupon-list": { "navigationBarTitleText": "优惠券", "usingComponents": { "cm-coupon": "/components/cm-module/cm-coupon/cm-coupon", "cm-empty": "/components/cm-module/cm-empty/cm-empty" }, "usingAutoImportComponents": { "tui-skeleton": "/components/thorui/tui-skeleton/tui-skeleton", "tui-tabs": "/components/thorui/tui-tabs/tui-tabs", "tui-loadmore": "/components/thorui/tui-loadmore/tui-loadmore", "tui-nomore": "/components/thorui/tui-nomore/tui-nomore" } }, "pages/goods/product": { "navigationBarTitleText": "商品详情", "navigationStyle": "custom" }, "pages/goods/product-activi": { "navigationBarTitleText": "商品详情", "navigationStyle": "custom" }, "pages/goods/good-floorMore": { "navigationBarTitleText": "商品列表", "enablePullDownRefresh": true } }, "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "呵呵商城", "navigationBarBackgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF" } };exports.default = _default;
  16497. /***/ })
  16498. }]);
  16499. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map