preview.vue 252KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <!-- 新增 -->
  8. <el-row :gutter="24">
  9. <el-col :span="6">
  10. <el-tabs type="border-card" style="width:100%" @tab-click="handleClick" v-model="activeNameOne">
  11. <el-tab-pane label="首页" name="index">
  12. <!-- <span slot="label" @click="myindex()">首页</span> -->
  13. <el-tabs v-model="activeName" @tab-click = "handleClickTwo">
  14. <el-tab-pane label="新增模块" name="first">
  15. <new-feature v-on:getHospitaldata='getHospitaldata'></new-feature>
  16. </el-tab-pane>
  17. <el-tab-pane label="已使用" name="used">
  18. <!-- <span slot="label" name="second" @click="clickAddmodel()">已使用</span> -->
  19. <div class="used" v-for="(item,index) in this.modelform" :key="item.id">
  20. <ul>
  21. <li>
  22. <span class="name">{{item.title}}</span>
  23. <span class="icon">
  24. <i class="el-icon-edit-outline" @click="editModelByID(item.id,item.mode_type,index)"></i>
  25. <i class="el-icon-delete" @click="deleteModleById(item.id,index);deletelinkaddress()"></i>
  26. </span>
  27. </li>
  28. </ul>
  29. </div>
  30. </el-tab-pane>
  31. </el-tabs>
  32. </el-tab-pane>
  33. <el-tab-pane label="联系我们" name="contactus">
  34. <!-- <span slot="label" @click="myindextwo()">联系我们</span> -->
  35. <el-tabs v-model="activeNameThree" @tab-click="handleClickThree">
  36. <el-tab-pane label="新增模块" name="three">
  37. <add-contact v-on:getOrderModel='getOrderModel'></add-contact>
  38. </el-tab-pane>
  39. <el-tab-pane label="已使用" name="usedtwo">
  40. <!-- <span slot="label" name="four" @click="clickmodel()">已使用</span> -->
  41. <div class="used" v-for="(item,index) in this.model" :key="item.id">
  42. <ul>
  43. <li>
  44. <span class="name">{{item.title}}</span>
  45. <span class="icon">
  46. <i class="el-icon-edit-outline" @click="eidtmodel(item.id,item.mode_type,index)"></i>
  47. <i class="el-icon-delete" @click="deletemodle(item.id,index)"></i>
  48. </span>
  49. </li>
  50. </ul>
  51. </div>
  52. </el-tab-pane>
  53. </el-tabs>
  54. </el-tab-pane>
  55. </el-tabs>
  56. </el-col>
  57. <!-- 编辑医院介绍 -->
  58. <el-dialog
  59. title="编辑医院介绍"
  60. :visible.sync="hosipitalVisible"
  61. width="50%"
  62. center>
  63. <el-form ref="hispitalform" :model="hispitalform" label-width="90px" :rules="rules">
  64. <el-form-item label="模块标题:" required prop="title">
  65. <el-input v-model="hispitalform.title"></el-input>
  66. </el-form-item>
  67. <el-form-item label="排序值:" required prop="sort">
  68. <el-input v-model="hispitalform.sort" type="number"></el-input>
  69. </el-form-item>
  70. <el-form-item label="医院介绍:" required prop="introduction">
  71. <keep-alive v-show="neditorshow">
  72. <neditor ref="neditor"
  73. id="editortwo"
  74. v-bind:r_content="hispitalform.introduction">
  75. </neditor>
  76. </keep-alive>
  77. </el-form-item>
  78. </el-form>
  79. <span slot="footer" class="dialog-footer">
  80. <el-button @click="hosipitalVisible = false">取 消</el-button>
  81. <el-button type="primary" @click="SaveHospital('hispitalform')">确 定</el-button>
  82. </span>
  83. </el-dialog>
  84. <el-dialog
  85. title="新增图片"
  86. :visible.sync="adddialogVisible"
  87. width="30%"
  88. center>
  89. <el-form label-width="90px" ref="addform" :model="addform" :rules="rules">
  90. <el-form-item label="模块标题:" required prop="title">
  91. <el-input v-model="addform.title"></el-input>
  92. </el-form-item>
  93. <el-form-item label="排序值:" required prop="sort">
  94. <el-input v-model="addform.sort" type="number"></el-input>
  95. </el-form-item>
  96. <el-form-item label="添加图片:">
  97. <div class="flex-img">
  98. <div class="el-upload-list el-upload-list--picture-card">
  99. <div class="el-upload-list__item is-success" v-for="(it,index) in this.rotationdatatwo" :key="it.id">
  100. <img class="flex-img__image" :src="it.images">
  101. <label class="el-upload-list__item-status-label">
  102. <i class="el-icon-upload-success el-icon-check"></i>
  103. </label>
  104. <span class="el-upload-list__item-actions">
  105. <span class="el-upload-list__item-delete">
  106. <i class="el-icon-edit-outline" @click="singleVisible = true;editSingleVisible(it.id)"></i>
  107. <i class="el-icon-delete" @click="deleteSingleImages(it.id,it.modeid,index)"></i>
  108. </span>
  109. </span>
  110. </div>
  111. </div>
  112. <div class="addpicrot" @click="editRotationVisible = true" v-show="uploadimageshow">
  113. <div class="addpicones">
  114. <li class="el-icon-plus"></li>
  115. <div class="addpictwos">
  116. <span>新增图片</span>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <p class="tips">图片已上传{{uploadImages}}张,最多上传9张</p>
  122. </el-form-item>
  123. </el-form>
  124. <span slot="footer" class="dialog-footer">
  125. <el-button @click="adddialogVisible = false">取 消</el-button>
  126. <el-button type="primary" @click="AddRotationVisible('addform')">确 定</el-button>
  127. </span>
  128. </el-dialog>
  129. <el-dialog
  130. title="编辑图片5"
  131. :visible.sync="singleVisible"
  132. width="30%"
  133. center>
  134. <el-form ref="singform" :model="singform" label-width="90px" :rules="rules">
  135. <el-form-item label="图片编辑:" required prop="images">
  136. <el-col :span="5">
  137. <el-upload
  138. :data="editcheckdata"
  139. class="avatar-uploader"
  140. action="https://upload.qiniup.com"
  141. :show-file-list="false"
  142. :on-success="singformAvatarSuccess"
  143. :before-upload="singformAvatarUpload">
  144. <img v-if="singform.images" :src="singform.images" class="avatar">
  145. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  146. </el-upload>
  147. </el-col>
  148. <el-col :span="19">
  149. <div class="tpic">
  150. <img :src="singform.images" style="width:250px;height:150px">
  151. </div>
  152. </el-col>
  153. </el-form-item>
  154. <el-form-item label="排序值:" required prop="sort">
  155. <el-input v-model="singform.sort" style="width:300px" type="number"></el-input>
  156. </el-form-item>
  157. <div class="tipstwo"><p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p></div>
  158. <el-form-item label="图片链接:" required prop= "piclink">
  159. <el-radio-group v-model="singform.piclink">
  160. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclink(gender.id)" >{{gender.name}}</el-radio>
  161. </el-radio-group>
  162. </el-form-item>
  163. <el-form-item label="链接地址:" v-show="showpiclink">
  164. <el-col :span="15">
  165. <el-input v-model="singform.linkaddress"></el-input>
  166. </el-col>
  167. <el-col :span="4">
  168. <el-button size="medium" @click="GetLinkAddress(singform.linkid);addressVisible = true">设置链接</el-button>
  169. </el-col>
  170. </el-form-item>
  171. </el-form>
  172. <span slot="footer" class="dialog-footer">
  173. <el-button @click="singleVisible = false">取 消</el-button>
  174. <el-button type="primary" @click="UpdateSingleForm('singform');">确 定</el-button>
  175. </span>
  176. </el-dialog>
  177. <!-- <el-dialog
  178. title="添加图片:"
  179. :visible.sync="addpicdialogVisibletwo"
  180. width="30%"
  181. center>
  182. <el-form>
  183. <el-form-item label="添加图片:">
  184. <el-upload
  185. :data="editcheckdata"
  186. class="avatar-uploader"
  187. action="https://upload.qiniup.com"
  188. :show-file-list="false"
  189. :on-success="singformAvatarSuccess"
  190. :before-upload="singformAvatarUpload">
  191. <img v-if="singform.images" :src="singform.images" class="avatar">
  192. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  193. </el-upload>
  194. </el-form-item>
  195. </el-form>
  196. <span slot="footer" class="dialog-footer">
  197. <el-button @click="addpicdialogVisibletwo = false">取 消</el-button>
  198. <el-button type="primary" @click="addpicdialogVisibletwo = false">确 定</el-button>
  199. </span>
  200. </el-dialog> -->
  201. <!-- 新增编辑轮播图 -->
  202. <el-dialog
  203. title="编辑图片"
  204. :visible.sync="editRotationVisible"
  205. width="30%"
  206. center>
  207. <el-form label-width="90px" ref="editpicform" :model="editpicform" :rules="rules">
  208. <el-form-item label="图片编辑:" required prop="images">
  209. <el-col :span="5">
  210. <el-upload
  211. :data="navigationData"
  212. class="avatar-uploader"
  213. action="https://upload.qiniup.com"
  214. :show-file-list="false"
  215. :on-success="edithandleAvatarSuccess"
  216. :before-upload="editbeforeAvatarUpload">
  217. <img v-if="editpicform.images" :src="editpicform.images" class="avatar">
  218. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  219. </el-upload>
  220. <!-- <div class="addrot" @click="addpicdialogVisible = true">
  221. <div class="addrotone">
  222. <i class="el-icon-plus"></i>
  223. </div>
  224. <div class="addrotwo">
  225. <span>新增图片</span>
  226. </div>
  227. </div> -->
  228. </el-col>
  229. <el-col :span="19" v-show="picshow">
  230. <div class="tpic">
  231. <img :src="editpicform.images" style="width:250px;height:150px">
  232. </div>
  233. </el-col>
  234. </el-form-item>
  235. <el-form-item label="排序值:" required prop="sort">
  236. <el-input v-model="editpicform.sort" type="number"></el-input>
  237. </el-form-item>
  238. <div class="tipstwo"><p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p></div>
  239. <el-form-item label="图片链接:" required prop="piclink">
  240. <el-radio-group v-model="editpicform.piclink" >
  241. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclink(gender.id)" >{{gender.name}}</el-radio>
  242. </el-radio-group>
  243. </el-form-item>
  244. <el-form-item label="链接地址:" v-show="showpiclink">
  245. <el-col :span="15">
  246. <el-input v-model="editpicform.linkaddress" :disabled="true"></el-input>
  247. </el-col>
  248. <el-col :span="4">
  249. <el-button size="medium" @click="addressVisibleTwo = true">设置链接</el-button>
  250. </el-col>
  251. </el-form-item>
  252. </el-form>
  253. <span slot="footer" class="dialog-footer">
  254. <el-button @click="editRotationVisible = false">取 消</el-button>
  255. <el-button type="primary" @click="addEditPicForm('editpicform');">确 定</el-button>
  256. </span>
  257. </el-dialog>
  258. <el-dialog
  259. title="设置图片链接地址"
  260. :visible.sync="addressVisibleTwo"
  261. width="30%"
  262. center>
  263. <el-form :model="refform" ref="refform" :rules="rules">
  264. <el-form-item label="自定义链接地址:" prop="defineaddress">
  265. <el-input style="width:300px" v-model="refform.defineaddress"></el-input>
  266. </el-form-item>
  267. </el-form>
  268. <span slot="footer" class="dialog-footer">
  269. <el-button @click="addressVisibleTwo = false">取 消</el-button>
  270. <el-button type="primary" @click="AddLinkAddressFour('refform')">确 定</el-button>
  271. </span>
  272. </el-dialog>
  273. <el-dialog
  274. title="设置图片链接地址"
  275. :visible.sync="addressVisible"
  276. width="30%"
  277. center>
  278. <el-form :model="refform" ref="refform" :rules="rules">
  279. <el-form-item label="自定义链接地址:" prop="defineaddress">
  280. <el-input style="width:300px" v-model="refform.defineaddress"></el-input>
  281. </el-form-item>
  282. </el-form>
  283. <span slot="footer" class="dialog-footer">
  284. <el-button @click="addressVisible = false">取 消</el-button>
  285. <el-button type="primary" @click="AddLinkAddressTwo('refform')">确 定</el-button>
  286. </span>
  287. </el-dialog>
  288. <!-- 编辑科室介绍 -->
  289. <el-dialog
  290. title="编辑科室介绍"
  291. :visible.sync="officeVisible"
  292. width="50%"
  293. center>
  294. <el-form ref="officeform" :model="officeform" label-width="90px" :rules="rules">
  295. <el-form-item label="模块标题:" required prop="title">
  296. <el-input v-model="officeform.title"></el-input>
  297. </el-form-item>
  298. <el-form-item label="排序值:" required prop="sort">
  299. <el-input v-model="officeform.sort" type="number"></el-input>
  300. </el-form-item>
  301. <el-form-item label="科室介绍:" required prop="introduction">
  302. <keep-alive>
  303. <neditor ref="neditor"
  304. id="editorfour"
  305. v-bind:r_content="officeform.introduction">
  306. </neditor>
  307. </keep-alive>
  308. </el-form-item>
  309. </el-form>
  310. <span slot="footer" class="dialog-footer">
  311. <el-button @click="officeVisible = false">取 消</el-button>
  312. <el-button type="primary" @click="SaveOffice('officeform')">确 定</el-button>
  313. </span>
  314. </el-dialog>
  315. <!-- 编辑名医介绍 -->
  316. <el-dialog
  317. title="新增名医介绍"
  318. :visible.sync="docVisible"
  319. width="550px"
  320. center>
  321. <el-form ref="doctorform" :model="doctorform" label-width="90px" :rules="rules" >
  322. <el-form-item label="模块标题:" required prop="title">
  323. <el-input v-model="doctorform.title"></el-input>
  324. </el-form-item>
  325. <el-form-item label="排序值:" required prop="sort">
  326. <el-input v-model="doctorform.sort" type="number"></el-input>
  327. <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
  328. </el-form-item>
  329. <el-form-item label="新增名医:" v-model="doctorform.image">
  330. <div class="flex-img">
  331. <div class="el-upload-list el-upload-list--picture-card" >
  332. <div class="el-upload-list__item is-success" v-for="(item,index) in this.docimages" :key="item.id">
  333. <img class="flex-img__image" :src="item.dochead">
  334. <label class="el-upload-list__item-status-label">
  335. <i class="el-icon-upload-success el-icon-check"></i>
  336. </label>
  337. <span class="el-upload-list__item-actions">
  338. <span class="el-upload-list__item-delete">
  339. <i class="el-icon-edit-outline" @click="editcenterDialogVisible = true;editImages(item.id);"></i>
  340. <i class="el-icon-delete" @click="deleteDoctor(item.id,index)"></i>
  341. </span>
  342. </span>
  343. </div>
  344. </div>
  345. <div class="addrot" @click="centerDialogVisible = true;getQueryDocInfo()">
  346. <div class="addrotone">
  347. <i class="el-icon-plus"></i>
  348. </div>
  349. <div class="addrotwo">
  350. <span>新增名医</span>
  351. </div>
  352. </div>
  353. <!-- <img src="static/images/u646.png" @click="centerDialogVisible = true"> -->
  354. </div>
  355. </el-form-item>
  356. </el-form>
  357. <span slot="footer" class="dialog-footer">
  358. <el-button @click="docVisible = false;">取 消</el-button>
  359. <el-button type="primary" @click="SaveDocdata('doctorform');">确 定</el-button>
  360. </span>
  361. </el-dialog>
  362. <!-- 编辑名医介绍 -->
  363. <el-dialog
  364. title="编辑医生介绍"
  365. :visible.sync="editcenterDialogVisible"
  366. width="50%"
  367. center>
  368. <el-form label-width="90px" class="clearfix" :model="editdocfrom" ref="editdocfrom" :rules="rules">
  369. <el-row :span=20>
  370. <el-col :span="10">
  371. <el-form-item label="医生姓名:" required prop="doc_name">
  372. <el-input v-model="editdocfrom.doc_name"></el-input>
  373. </el-form-item>
  374. </el-col>
  375. <el-col :span="12">
  376. <el-form-item label="医生职称:" required prop="doc_postion">
  377. <el-select v-model="editdocfrom.doc_postion" placeholder="请选择">
  378. <el-option
  379. v-for="item in positions"
  380. :key="item.index"
  381. :label="item.name"
  382. :value="item.index">
  383. </el-option>
  384. </el-select>
  385. </el-form-item>
  386. </el-col>
  387. </el-row>
  388. <el-row :span=20>
  389. <el-form-item label="医生头像:" required prop="dochead">
  390. <el-col :span="10">
  391. <el-upload
  392. :data="doctorDatatwo"
  393. class="avatar-uploader"
  394. action="https://upload.qiniup.com"
  395. :show-file-list="false"
  396. :on-success="handleAvatarSuccesstwo"
  397. :before-upload="beforeAvatarUploadtwo">
  398. <img v-if="editdocfrom.dochead" :src="editdocfrom.dochead" class="avatar">
  399. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  400. </el-upload>
  401. </el-col>
  402. <el-col :span="12">
  403. <el-form-item label="排序值:" required prop="doc_sort">
  404. <el-input v-model="editdocfrom.doc_sort" type="number"></el-input>
  405. </el-form-item>
  406. </el-col>
  407. </el-form-item>
  408. </el-row>
  409. <el-row :span=20>
  410. <el-form-item label="医生简介:" required prop="docintroduction">
  411. <keep-alive>
  412. <neditor ref="neditor"
  413. id="editor"
  414. v-bind:r_content="editdocfrom.docintroduction">
  415. </neditor>
  416. </keep-alive>
  417. </el-form-item>
  418. </el-row>
  419. </el-form>
  420. <span slot="footer" class="dialog-footer">
  421. <el-button @click="editdocVisible();editcenterDialogVisible = false;">取 消</el-button>
  422. <el-button type="primary" @click="saveDocInfo('editdocfrom')">确 定</el-button>
  423. </span>
  424. </el-dialog>
  425. <!-- 编辑页面 -->
  426. <el-dialog
  427. title="编辑医生介绍"
  428. :visible.sync="centerDialogVisible"
  429. width="50%"
  430. center>
  431. <el-form label-width="90px" class="clearfix" :model="eidtDoctorform" ref="eidtDoctorform" :rules="rules">
  432. <el-row :span=20>
  433. <el-col :span="12">
  434. <el-form-item label="医生姓名:">
  435. <el-select v-model="eidtDoctorform.name" placeholder="请选择" @change="change(eidtDoctorform.name)">
  436. <el-option
  437. v-for="item in docnames"
  438. :key="item.id"
  439. :label="item.name"
  440. :value="item.id"
  441. >
  442. </el-option>
  443. </el-select>
  444. </el-form-item>
  445. </el-col>
  446. <el-col :span="12">
  447. <el-form-item label="医生职称:" required prop="user_title">
  448. <el-select v-model="eidtDoctorform.user_title" placeholder="请选择">
  449. <el-option
  450. v-for="item in positions"
  451. :key="item.index"
  452. :label="item.name"
  453. :value="item.index">
  454. </el-option>
  455. </el-select>
  456. </el-form-item>
  457. </el-col>
  458. </el-row>
  459. <el-row :span=20>
  460. <el-form-item label="医生头像:" required prop="dochead">
  461. <el-col :span="5">
  462. <el-upload
  463. :data="doctorData"
  464. class="avatar-uploader"
  465. action="https://upload.qiniup.com"
  466. :show-file-list="false"
  467. :on-success="handleAvatarSuccess"
  468. :before-upload="beforeAvatarUpload">
  469. <img v-if="eidtDoctorform.dochead" :src="eidtDoctorform.dochead" class="avatar">
  470. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  471. </el-upload>
  472. </el-col>
  473. <el-col :span="16">
  474. <el-form-item label="排序值:" required prop="sort">
  475. <el-input v-model="eidtDoctorform.sort" type="number"></el-input>
  476. </el-form-item>
  477. </el-col>
  478. </el-form-item>
  479. </el-row>
  480. <el-row :span=20>
  481. <el-form-item label="医生简介:" required prop="content">
  482. <keep-alive>
  483. <neditor ref="neditor"
  484. id="editor"
  485. v-bind:r_content="eidtDoctorform.content">
  486. </neditor>
  487. </keep-alive>
  488. </el-form-item>
  489. </el-row>
  490. </el-form>
  491. <span slot="footer" class="dialog-footer">
  492. <el-button @click="centerDialogVisible = false">取 消</el-button>
  493. <el-button type="primary" @click="AddDoctorInfoTwo('eidtDoctorform')">确 定</el-button>
  494. </span>
  495. </el-dialog>
  496. <!-- 编辑科室环境 -->
  497. <el-dialog
  498. title="新增科室环境"
  499. :visible.sync="offficeEnviromentVisible"
  500. width="550px"
  501. center>
  502. <el-form ref="keform" :model="keform" label-width="110px" :rules="rules">
  503. <el-form-item label="模块标题: " required prop="title">
  504. <el-input v-model="keform.title"></el-input>
  505. </el-form-item>
  506. <el-form-item label="排序值: " required prop="sort">
  507. <el-input v-model="keform.sort" type="number"></el-input>
  508. <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
  509. </el-form-item>
  510. <el-form-item label="新增科室环境:">
  511. <div class="flex-img">
  512. <div class="el-upload-list el-upload-list--picture-card">
  513. <div class="el-upload-list__item is-success" v-for="(it,index) in this.rotationdata" :key="it.id">
  514. <img class="flex-img__image" :src="it.enviroimages">
  515. <label class="el-upload-list__item-status-label">
  516. <i class="el-icon-upload-success el-icon-check"></i>
  517. </label>
  518. <span class="el-upload-list__item-actions">
  519. <span class="el-upload-list__item-delete">
  520. <i class="el-icon-edit-outline" @click="officetwoVisbile(it.id);officetwoVisible = true"></i>
  521. <i class="el-icon-delete" @click="deleteOfficeById(it.id,index)"></i><br>
  522. </span>
  523. </span>
  524. </div>
  525. </div>
  526. <div class="addpicrot" @click="officethreeVisible = true">
  527. <div class="addpicones">
  528. <li class="el-icon-plus"></li>
  529. <div class="addpictwos">
  530. <span>新增图片</span>
  531. </div>
  532. </div>
  533. </div>
  534. </div>
  535. </el-form-item>
  536. </el-form>
  537. <span slot="footer" class="dialog-footer">
  538. <el-button @click="offficeEnviromentVisible = false">取 消</el-button>
  539. <el-button type="primary" @click="SaveOfficeEnvironment('keform')">确 定</el-button>
  540. </span>
  541. </el-dialog>
  542. <el-dialog
  543. title="图片编辑"
  544. :visible.sync="officetwoVisible"
  545. width="30%"
  546. center>
  547. <el-form label-width="90px" :model="officeformthree" ref="officeformthree" :rules="rules">
  548. <el-form-item label="图片编辑:" required prop="officeImages">
  549. <el-upload
  550. :data="keData"
  551. class="avatar-uploader"
  552. action="https://upload.qiniup.com"
  553. :show-file-list="false"
  554. :on-success="handleAvatarSuccessthree"
  555. :before-upload="beforeAvatarUploadthree">
  556. <img v-if="officeformthree.officeImages" :src="officeformthree.officeImages" class="avatar">
  557. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  558. </el-upload>
  559. </el-form-item>
  560. <el-form-item label="排序:" required="sort">
  561. <el-input v-model="officeformthree.sort"></el-input>
  562. </el-form-item>
  563. </el-form>
  564. <span slot="footer" class="dialog-footer">
  565. <el-button @click="officetwoVisible = false">取 消</el-button>
  566. <el-button type="primary" @click="AddOfficeTwo('officeformthree');officetwoVisible = false">确 定</el-button>
  567. </span>
  568. </el-dialog>
  569. <el-dialog
  570. title="添加图片"
  571. :visible.sync="officethreeVisible"
  572. width="30%"
  573. center>
  574. <el-form label-width="90px" :model="officeformtwo" ref="officeformtwo" :rules="rules">
  575. <el-form-item label="图片编辑:" required prop="officeImages">
  576. <el-upload
  577. :data="keData"
  578. class="avatar-uploader"
  579. action="https://upload.qiniup.com"
  580. :show-file-list="false"
  581. :on-success="imageKeuSccesstwo"
  582. :before-upload="beforekeUpload">
  583. <img v-if="officeformtwo.officeImages" :src="officeformtwo.officeImages" class="avatar">
  584. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  585. </el-upload>
  586. </el-form-item>
  587. <el-form-item label="排序:" required prop="sort">
  588. <el-input v-model="officeformtwo.sort"></el-input>
  589. </el-form-item>
  590. </el-form>
  591. <span slot="footer" class="dialog-footer">
  592. <el-button @click="officethreeVisible = false">取 消</el-button>
  593. <el-button type="primary" @click="AddOfficeThreeVisible('officeformtwo');officethreeVisible = false">确 定</el-button>
  594. </span>
  595. </el-dialog>
  596. <!-- 编辑文章列表 -->
  597. <el-dialog
  598. title="编辑文章列表"
  599. :visible.sync="ArticleVisible"
  600. width="30%"
  601. center>
  602. <el-form ref="articeform" :model="articeform" label-width="110px">
  603. <el-form-item label="文章标题:">
  604. <el-input v-model="articeform.title"></el-input>
  605. </el-form-item>
  606. <el-form-item label="排序值:">
  607. <el-input v-model="articeform.sort" type="number"></el-input>
  608. </el-form-item>
  609. <el-form-item label="文章分类:">
  610. <el-select v-model="articeform.category" style="width:49%;float:left;">
  611. <el-option
  612. v-for="item in articeType"
  613. :key="item.id"
  614. :label="item.name"
  615. :value="item.id">
  616. </el-option>
  617. </el-select>
  618. <el-select v-model="articeform.categoryone" style="width:49%;float:right;">
  619. <el-option
  620. v-for="item in articeTypelist"
  621. :key="item.id"
  622. :label="item.name"
  623. :value="item.id">
  624. </el-option>
  625. </el-select>
  626. </el-form-item>
  627. <el-form-item label="展示条数:">
  628. <el-input v-model="articeform.number"></el-input>
  629. </el-form-item>
  630. </el-form>
  631. <span slot="footer" class="dialog-footer">
  632. <el-button @click="ArticleVisible = false">取 消</el-button>
  633. <el-button type="primary" @click="UpdatedArticeDetail('articeform');ArticleVisible = false">确 定</el-button>
  634. </span>
  635. </el-dialog>
  636. <!-- 编辑活动列表 -->
  637. <el-dialog
  638. title="编辑活动列表"
  639. :visible.sync="activityVisible"
  640. width="30%"
  641. center>
  642. <el-form label-width="100px" model="activitform" ref="activitform">
  643. <el-form-item label="模块标题:">
  644. <el-input v-model="activitform.title"></el-input>
  645. </el-form-item>
  646. <el-form-item label="排序:">
  647. <el-input v-model="activitform.sort"></el-input>
  648. </el-form-item>
  649. <el-form-item label="首页展示条数:">
  650. <el-input v-model="activitform.number"></el-input>
  651. </el-form-item>
  652. </el-form>
  653. <span slot="footer" class="dialog-footer">
  654. <el-button @click="activityVisible = false">取 消</el-button>
  655. <el-button type="primary" @click="editActivit('activitform')">确 定</el-button>
  656. </span>
  657. </el-dialog>
  658. <!-- 编辑联系我们轮播图 -->
  659. <el-dialog
  660. title="编辑轮播图"
  661. :visible.sync="edialogVisible"
  662. width="30%"
  663. center>
  664. <el-form ref="rotationform" :model="rotationform" label-width="90px" :rules="rules" >
  665. <el-form-item label="模块标题:" required prop="title">
  666. <el-input v-model="rotationform.title" ></el-input>
  667. </el-form-item>
  668. <el-form-item label="排序值:" required prop="sort">
  669. <el-input v-model="rotationform.sort" type="number"></el-input>
  670. <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
  671. </el-form-item>
  672. <el-form-item label="添加图片:" v-model="rotationform.rotationImages">
  673. <div class="flex-img">
  674. <div class="el-upload-list el-upload-list--picture-card" >
  675. <div class="el-upload-list__item is-success" v-for="(item,index) in this.rotationdataThree" :key="item.id">
  676. <img class="flex-img__image" :src="item.images">
  677. <label class="el-upload-list__item-status-label">
  678. <i class="el-icon-upload-success el-icon-check"></i>
  679. </label>
  680. <span class="el-upload-list__item-actions">
  681. <span class="el-upload-list__item-delete">
  682. <i class="el-icon-edit-outline" @click="editVisible = true;editVisibleByid(item.id)"></i>
  683. <i class="el-icon-delete" @click="deleteImages(item.id,index)"></i>
  684. </span>
  685. </span>
  686. </div>
  687. </div>
  688. <div class="addpicrot" @click="addVisible = true">
  689. <div class="addpicones">
  690. <li class="el-icon-plus"></li>
  691. <div class="addpictwos">
  692. <span>新增图片</span>
  693. </div>
  694. </div>
  695. </div>
  696. </div>
  697. </el-form-item>
  698. </el-form>
  699. <span slot="footer" class="dialog-footer">
  700. <el-button @click="edialogVisible = false">取 消</el-button>
  701. <el-button type="primary" @click="AddedialogVisible('rotationform');edialogVisible = false">确 定</el-button>
  702. </span>
  703. </el-dialog>
  704. <!-- 编辑图片 -->
  705. <el-dialog
  706. title="编辑图片"
  707. :visible.sync="addVisible"
  708. width="30%"
  709. center>
  710. <el-form label-width="90px" ref="picform" :model="picform" :rules="rules">
  711. <el-form-item label="图片编辑:" required prop="images">
  712. <el-col :span="5">
  713. <el-upload
  714. :data="navigationData"
  715. class="avatar-uploader"
  716. action="https://upload.qiniup.com"
  717. :show-file-list="false"
  718. :on-success="handleEditSuccess"
  719. :before-upload="handleEditAvatarUpload">
  720. <img v-if="picform.images" :src="picform.images" class="avatar">
  721. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  722. </el-upload>
  723. <!-- <div class="addpicrot" @click="addVisibleTwo = true">
  724. <div class="addpicones">
  725. <li class="el-icon-plus"></li>
  726. <div class="addpictwos">
  727. <span>新增图片</span>
  728. </div>
  729. </div>
  730. </div> -->
  731. </el-col>
  732. <el-col :span="10" v-show="picshow">
  733. <div class="tpic" style="width:250px;height:150px">
  734. <img :src="picform.images" style="width:250px;height:150px">
  735. </div>
  736. </el-col>
  737. </el-form-item>
  738. <el-form-item label="排序值:" required prop="sort">
  739. <el-input v-model="picform.sort" type="number"></el-input>
  740. </el-form-item>
  741. <el-form-item label="图片链接:">
  742. <el-radio-group v-model="picform.piclink" >
  743. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclink(gender.id)" >{{gender.name}}</el-radio>
  744. </el-radio-group>
  745. </el-form-item>
  746. <el-form-item label="链接地址:" v-show="showpiclink">
  747. <el-col :span="15">
  748. <el-input v-model="picform.linkaddress"></el-input>
  749. </el-col>
  750. <el-col :span="4">
  751. <el-button size="medium" @click="linkaddressVisible = true">设置链接</el-button>
  752. </el-col>
  753. </el-form-item>
  754. </el-form>
  755. <span slot="footer" class="dialog-footer">
  756. <el-button @click="addVisible = false">取 消</el-button>
  757. <el-button type="primary" @click="addeditpic('picform');addVisible = false">确 定</el-button>
  758. </span>
  759. </el-dialog>
  760. <!-- <el-dialog
  761. title="新增图片"
  762. :visible.sync="addVisibleTwo"
  763. width="30%"
  764. :before-close="handleClose">
  765. <el-form>
  766. <el-form-item label="添加图片:">
  767. <el-upload
  768. :data="navigationData"
  769. class="avatar-uploader"
  770. action="https://upload.qiniup.com"
  771. :show-file-list="false"
  772. :on-success="handleEditSuccess"
  773. :before-upload="handleEditAvatarUpload">
  774. <img v-if="picform.images" :src="picform.images" class="avatar">
  775. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  776. </el-upload>
  777. </el-form-item>
  778. </el-form>
  779. <span slot="footer" class="dialog-footer">
  780. <el-button @click="addVisibleTwo = false">取 消</el-button>
  781. <el-button type="primary" @click="addVisibleTwo = false">确 定</el-button>
  782. </span>
  783. </el-dialog> -->
  784. <el-dialog
  785. title="设置图片链接地址5"
  786. :visible.sync="linkaddressVisible"
  787. width="30%"
  788. center>
  789. <el-form :model="picformTwo" ref="picformTwo" label-width="120px">
  790. <el-form-item label="站外链接:">
  791. <el-input style="width:300px" v-model="picformTwo.defineaddress"></el-input>
  792. </el-form-item>
  793. </el-form>
  794. <span slot="footer" class="dialog-footer">
  795. <el-button @click="linkaddressVisible = false">取 消</el-button>
  796. <el-button type="primary" @click="AddPiCLink('picformTwo');linkaddressVisible = false">确 定</el-button>
  797. </span>
  798. </el-dialog>
  799. <!-- 编辑图片 -->
  800. <el-dialog
  801. title="编辑图片"
  802. :visible.sync="editVisible"
  803. width="30%"
  804. center>
  805. <el-form label-width="90px" ref="editpic" :model="editpic" :rules="rules">
  806. <el-form-item label="图片编辑:" required props="images">
  807. <el-upload
  808. :data="navigationData"
  809. class="avatar-uploader"
  810. action="https://upload.qiniup.com"
  811. :show-file-list="false"
  812. :on-success="handleEditpicSuccess"
  813. :before-upload="handleEditpicAvatarUpload">
  814. <img v-if="editpic.images" :src="editpic.images" class="avatar">
  815. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  816. </el-upload>
  817. </el-form-item>
  818. <el-form-item label="排序值:" required props="sort">
  819. <el-input v-model="editpic.sort" type="number"></el-input>
  820. </el-form-item>
  821. <el-form-item label="图片链接:">
  822. <el-radio-group v-model="editpic.piclink" >
  823. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclink(gender.id)" >{{gender.name}}</el-radio>
  824. </el-radio-group>
  825. </el-form-item>
  826. <el-form-item label="链接地址:" v-show="showpiclink">
  827. <el-col :span="15">
  828. <el-input v-model="editpic.linkaddress"></el-input>
  829. </el-col>
  830. <el-col :span="4">
  831. <el-button size="medium" @click="setlinkVisible = true;getLinkAddressDetail(editpic.linkid)">设置链接</el-button>
  832. </el-col>
  833. </el-form-item>
  834. </el-form>
  835. <span slot="footer" class="dialog-footer">
  836. <el-button @click="editVisible = false">取 消</el-button>
  837. <el-button type="primary" @click="SaveEditPic('editpic');editVisible = false">确 定</el-button>
  838. </span>
  839. </el-dialog>
  840. <!-- 设置链接 -->
  841. <el-dialog
  842. title="设置图片链接地址"
  843. :visible.sync="setlinkVisible"
  844. width="30%"
  845. center>
  846. <el-form :model="picformThree" ref="picformThree" label-width="120px">
  847. <el-form-item label="站外链接:">
  848. <el-input style="width:300px" v-model="picformThree.defineaddress"></el-input>
  849. </el-form-item>
  850. </el-form>
  851. <span slot="footer" class="dialog-footer">
  852. <el-button @click="setlinkVisible = false">取 消</el-button>
  853. <el-button type="primary" @click="UpdatePicFormThree('picformThree');">确 定</el-button>
  854. </span>
  855. </el-dialog>
  856. <!-- 编辑工作时间 -->
  857. <el-dialog
  858. title="编辑工作时间"
  859. :visible.sync="dialogVisiblefour"
  860. width="30%"
  861. center
  862. >
  863. <el-form label-width="90px" ref="workform" :model="workform" :rules="rules">
  864. <el-form-item label="模块标题:" required prop="title" >
  865. <el-input v-model="workform.title" ></el-input>
  866. </el-form-item>
  867. <el-form-item label="模块排序:" required prop="sort">
  868. <el-input v-model="workform.sort"></el-input>
  869. </el-form-item>
  870. <el-form-item label="工作时间:" required prop="worktime">
  871. <el-input type="textarea" v-model="workform.worktime">
  872. </el-input>
  873. </el-form-item>
  874. </el-form>
  875. <span slot="footer" class="dialog-footer">
  876. <el-button @click="dialogVisiblefour = false">取 消</el-button>
  877. <el-button type="primary" @click="SaveWorkTime('workform')">确 定</el-button>
  878. </span>
  879. </el-dialog>
  880. <!-- 编辑乘车方式 -->
  881. <el-dialog
  882. title="编辑乘车方式"
  883. :visible.sync="dialogVisiblefive"
  884. width="30%"
  885. center>
  886. <el-form label-width="90px" ref="rideform" :model="rideform">
  887. <el-form-item label="模块标题:" >
  888. <el-input v-model="rideform.title" required prop="title" ></el-input>
  889. </el-form-item>
  890. <el-form-item label="模块排序:">
  891. <el-input v-model="rideform.sort" required prop="sort"></el-input>
  892. </el-form-item>
  893. <el-form-item label="乘车方式:">
  894. <el-input type="textarea" v-model="rideform.ride_way" rquired prop="rideway">
  895. </el-input>
  896. </el-form-item>
  897. </el-form>
  898. <span slot="footer" class="dialog-footer">
  899. <el-button @click="dialogVisiblefive = false">取 消</el-button>
  900. <el-button type="primary" @click="saverideway('rideform')">确 定</el-button>
  901. </span>
  902. </el-dialog>
  903. <!--添加导航设置-->
  904. <el-dialog
  905. title="添加导航"
  906. :visible.sync="navigationVisible"
  907. width="35%"
  908. center>
  909. <el-form label-width="180px" ref="navigationform" :model="navigationform" :rules="rules">
  910. <el-form-item label="导航标题:" required prop="navtitle">
  911. <el-input v-model="navigationform.navtitle"></el-input>
  912. </el-form-item>
  913. <el-form-item label="导航图标(选中):" required prop="navigationImages">
  914. <el-upload
  915. :data="navigationData"
  916. class="avatar-uploader"
  917. action="https://upload.qiniup.com"
  918. :show-file-list="false"
  919. :on-success="navigationAvatarSuccess"
  920. :before-upload="navigationbeforeAvatarUpload">
  921. <img v-if="navigationform.navigationImages" :src="navigationform.navigationImages" class="avatar">
  922. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  923. </el-upload>
  924. </el-form-item>
  925. <el-form-item label="导航图标(未选中)">
  926. <el-upload
  927. :data="navigationData"
  928. class="avatar-uploader"
  929. action="https://upload.qiniup.com"
  930. :show-file-list="false"
  931. :on-success="navigationAvatarSuccessone"
  932. :before-upload="navigationbeforeAvatarUploadone">
  933. <img v-if="navigationform.nonavigationImages" :src="navigationform.nonavigationImages" class="avatar">
  934. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  935. </el-upload>
  936. </el-form-item>
  937. <el-form-item label="跳转设置:" required prop="jumpset">
  938. <el-radio-group v-model="navigationform.jumpset">
  939. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="selectGender(gender.id)">{{gender.name}}</el-radio>
  940. </el-radio-group>
  941. </el-form-item>
  942. <el-form-item>
  943. <el-col :span="18" >
  944. <el-input v-show="define" v-model="navigationform.navigationaddress" :disabled="true"></el-input>
  945. </el-col>
  946. <el-col :span="4">
  947. <el-button size="medium" @click="linkVisible=true;" v-show="define">设置链接</el-button>
  948. </el-col>
  949. </el-form-item>
  950. </el-form>
  951. <span slot="footer" class="dialog-footer">
  952. <el-button @click="navigationVisible = false">取 消</el-button>
  953. <el-button type="primary" @click="addNavigation('navigationform')">确 定</el-button>
  954. </span>
  955. </el-dialog>
  956. <el-dialog
  957. title="设置链接地址"
  958. :visible.sync="linkVisible"
  959. width="30%"
  960. center>
  961. <el-form ref="navigationlinkform" :model="navigationlinkform">
  962. <el-form-item label="链接类型:">
  963. <el-radio-group v-model="navigationlinkform.linktype">
  964. <el-radio :label="item.id" :value="item.id" v-for="(item,index) in defineOptions" :key="index" @change="selectItemThree(item.id)">{{item.name}}</el-radio>
  965. </el-radio-group>
  966. </el-form-item>
  967. <el-form-item label="链接类型:" v-show="definetwo">
  968. <el-select v-model="navigationlinkform.navitionlinktype" placeholder="请选择">
  969. <el-option
  970. v-for="item in navitionlinkType"
  971. :key="item.id"
  972. :label="item.name"
  973. :value="item.id">
  974. </el-option>
  975. </el-select>
  976. </el-form-item>
  977. <el-form-item label="电话号码:" v-show="definethree">
  978. <el-input style="width:400px" v-model="navigationlinkform.phone"></el-input>
  979. </el-form-item>
  980. <el-form-item label="站外链接:" v-show="definefour">
  981. <el-input style="width:400px" v-model="navigationlinkform.outstationlink"></el-input>
  982. </el-form-item>
  983. </el-form>
  984. <span slot="footer" class="dialog-footer">
  985. <el-button @click="linkVisible = false">取 消</el-button>
  986. <el-button type="primary" @click="addNavigationlinkform('navigationlinkform');">确 定</el-button>
  987. </span>
  988. </el-dialog>
  989. <!-- 编辑导航 -->
  990. <el-dialog
  991. title="编辑导航"
  992. :visible.sync="editNavigationVisible"
  993. width="30%"
  994. center>
  995. <el-form label-width="130px" ref="editNavigationform" :model="editNavigationform" :rules="rules">
  996. <el-form-item label="导航标题:" required prop="navtitle">
  997. <el-input v-model="editNavigationform.navtitle"></el-input>
  998. </el-form-item>
  999. <el-form-item label="导航图标(选中):" required="checkImages">
  1000. <el-upload
  1001. :data="editcheckdata"
  1002. class="avatar-uploader"
  1003. action="https://upload.qiniup.com"
  1004. :show-file-list="false"
  1005. :on-success="editNaviAvatarSuccess"
  1006. :before-upload="editNaviAvatarUpload">
  1007. <img v-if="editNavigationform.navimages" :src="editNavigationform.navimages" class="avatar">
  1008. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  1009. </el-upload>
  1010. </el-form-item>
  1011. <el-form-item label="导航图标(未选中)" required="nonavimages">
  1012. <el-upload
  1013. :data="editcheckdatatwo"
  1014. class="avatar-uploader"
  1015. action="https://upload.qiniup.com"
  1016. :show-file-list="false"
  1017. :on-success="editNaviAvatarSuccessone"
  1018. :before-upload="editNaviAvatarUploadone">
  1019. <img v-if="editNavigationform.nonavimages" :src="editNavigationform.nonavimages" class="avatar">
  1020. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  1021. </el-upload>
  1022. </el-form-item>
  1023. <el-form-item label="跳转设置:">
  1024. <el-radio-group v-model="editNavigationform.jumpset">
  1025. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="selectGender(gender.id)">{{gender.name}}</el-radio>
  1026. </el-radio-group>
  1027. </el-form-item>
  1028. <el-form-item>
  1029. <el-col :span="18" >
  1030. <el-input v-show="define" v-model="editNavigationform.navaddress" :disabled="true"></el-input>
  1031. </el-col>
  1032. <el-col :span="4">
  1033. <el-button size="medium" @click="dialogVisible=true;SetlinkAddress(editNavigationform.linkid)" v-show="define">设置链接</el-button>
  1034. </el-col>
  1035. </el-form-item>
  1036. </el-form>
  1037. <span slot="footer" class="dialog-footer">
  1038. <el-button @click="editNavigationVisible = false">取 消</el-button>
  1039. <el-button type="primary" @click="SaveNavigation('editNavigationform');">确 定</el-button>
  1040. </span>
  1041. </el-dialog>
  1042. <el-dialog
  1043. title="设置链接"
  1044. :visible.sync="dialogVisible"
  1045. width="30%"
  1046. center>
  1047. <el-form ref="editnavigationlinkform" :model="editnavigationlinkform">
  1048. <el-form-item label="链接类型:">
  1049. <el-radio-group v-model="editnavigationlinkform.linktype">
  1050. <el-radio :label="item.id" :value="item.id" v-for="(item,index) in defineOptions" :key="index" @change="selectItemTwo(item.id)">{{item.name}}</el-radio>
  1051. </el-radio-group>
  1052. </el-form-item>
  1053. <el-form-item label="链接类型:" v-show="definetwo">
  1054. <el-select v-model="editnavigationlinkform.navitionlinktype" placeholder="请选择">
  1055. <el-option
  1056. v-for="item in navitionlinkTypeThree"
  1057. :key="item.id"
  1058. :label="item.name"
  1059. :value="item.id">
  1060. </el-option>
  1061. </el-select>
  1062. </el-form-item>
  1063. <el-form-item label="电话号码:" v-show="definethree">
  1064. <el-input style="width:400px" v-model="editnavigationlinkform.phone"></el-input>
  1065. </el-form-item>
  1066. <el-form-item label="站外链接:" v-show="definefour">
  1067. <el-input style="width:400px" v-model="editnavigationlinkform.outstationlink"></el-input>
  1068. </el-form-item>
  1069. </el-form>
  1070. <span slot="footer" class="dialog-footer">
  1071. <el-button @click="dialogVisible = false">取 消</el-button>
  1072. <el-button type="primary" @click="UpdateEditNavigationLinkform('editnavigationlinkform')">确 定</el-button>
  1073. </span>
  1074. </el-dialog>
  1075. <el-dialog
  1076. title="编辑魔方导航"
  1077. :visible.sync="edtimacdialogVisible"
  1078. width="30%"
  1079. center>
  1080. <el-form label-width="130px" :model="macform" ref="macform">
  1081. <el-form-item label="模块标题:">
  1082. <el-input v-model="macform.title"></el-input>
  1083. </el-form-item>
  1084. <el-form-item label="排序值:">
  1085. <el-input v-model="macform.sort" type="number"></el-input>
  1086. </el-form-item>
  1087. <el-form-item label="新增魔方导航:" v-model="macform.macimages">
  1088. <div class="flex-img">
  1089. <div class="el-upload-list el-upload-list--picture-card" v-for="(item,index) in macdataImages" :key="item.id">
  1090. <div class="el-upload-list__item is-success">
  1091. <img class="flex-img__image" :src="item.margimage">
  1092. <label class="el-upload-list__item-status-label">
  1093. <i class="el-icon-upload-success el-icon-check"></i>
  1094. </label>
  1095. <span class="el-upload-list__item-actions">
  1096. <span class="el-upload-list__item-delete">
  1097. <i class="el-icon-edit-outline" @click="EditMacImages(item.id);linkVisiblethree=true"></i>
  1098. <i class="el-icon-delete" @click="deleteMacImagesDetail(item.id,index)" ></i><br>
  1099. <i class="yangshi">{{item.margtitle}}</i>
  1100. </span>
  1101. </span>
  1102. </div>
  1103. </div>
  1104. <div class="addpicrot" @click="editImagesVisbile = true">
  1105. <div class="addpicones">
  1106. <li class="el-icon-plus"></li>
  1107. <div class="addpictwos">
  1108. <span>新增图片</span>
  1109. </div>
  1110. </div>
  1111. </div>
  1112. </div>
  1113. </el-form-item>
  1114. </el-form>
  1115. <span slot="footer" class="dialog-footer">
  1116. <el-button @click="edtimacdialogVisible = false">取 消</el-button>
  1117. <el-button type="primary" @click="UpdateMacform('macform');edtimacdialogVisible = false">确 定</el-button>
  1118. </span>
  1119. </el-dialog>
  1120. <el-dialog
  1121. title="新增魔法导航"
  1122. :visible.sync="editImagesVisbile"
  1123. width="30%"
  1124. center>
  1125. <el-form label-width="90px" ref="macgicform" :model="macgicform" :rules="rules">
  1126. <el-form-item label="导航标题:" required prop="title">
  1127. <el-input v-model="macgicform.title"></el-input>
  1128. </el-form-item>
  1129. <el-form-item label="导航图标:" required prop="macgicimages">
  1130. <el-upload
  1131. :data="editcheckdata"
  1132. class="avatar-uploader"
  1133. action="https://upload.qiniup.com"
  1134. :show-file-list="false"
  1135. :on-success="editNaviAvatarSuccesstwo"
  1136. :before-upload="editNaviAvatarUploadtwo">
  1137. <img v-if="macgicform.macgicimages" :src="macgicform.macgicimages" class="avatar">
  1138. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  1139. </el-upload>
  1140. </el-form-item>
  1141. <el-form-item label="跳转设置:" required prop="jumpset">
  1142. <el-radio-group v-model="macgicform.jumpset">
  1143. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="selectGender(gender.id)">{{gender.name}}</el-radio>
  1144. </el-radio-group>
  1145. </el-form-item>
  1146. <el-form-item v-show="define">
  1147. <el-col :span="18" >
  1148. <el-input v-model="macgicform.linkaddress" :disabled="true"></el-input>
  1149. </el-col>
  1150. <el-col :span="4">
  1151. <el-button size="medium" @click="linkVisibletwo=true">设置链接</el-button>
  1152. </el-col>
  1153. </el-form-item>
  1154. </el-form>
  1155. <span slot="footer" class="dialog-footer">
  1156. <el-button @click="editImagesVisbile = false">取 消</el-button>
  1157. <el-button type="primary" @click="AddMacgicform('macgicform');">确 定</el-button>
  1158. </span>
  1159. </el-dialog>
  1160. <el-dialog
  1161. title="设置链接地址"
  1162. :visible.sync="linkVisibletwo"
  1163. width="30%"
  1164. center>
  1165. <el-form ref="linkformtwo" :model="linkformtwo">
  1166. <el-form-item label="链接类型:" >
  1167. <el-radio-group v-model="linkformtwo.linktype">
  1168. <el-radio :label="item.id" :value="item.id" v-for="(item,index) in defineOptions" :key="index" @change="selectItemEdit(item.id)">{{item.name}}</el-radio>
  1169. </el-radio-group>
  1170. </el-form-item>
  1171. <el-form-item label="链接类型:" v-show="definetwo">
  1172. <el-select v-model="linkformtwo.instationlink" placeholder="请选择">
  1173. <el-option
  1174. v-for="item in modelTtile"
  1175. :key="item.id"
  1176. :label="item.title"
  1177. :value="item.id">
  1178. </el-option>
  1179. </el-select>
  1180. </el-form-item>
  1181. <el-form-item label="电话号码:" v-show="definethree">
  1182. <el-input style="width:400px" v-model="linkformtwo.phone"></el-input>
  1183. </el-form-item>
  1184. <el-form-item label="站外链接:" v-show="definefour">
  1185. <el-input style="width:400px" v-model="linkformtwo.outstationlink"></el-input>
  1186. </el-form-item>
  1187. </el-form>
  1188. <span slot="footer" class="dialog-footer">
  1189. <el-button @click="linkVisibletwo = false">取 消</el-button>
  1190. <el-button type="primary" @click="AddMacLinkAddress('linkformtwo');">确 定</el-button>
  1191. </span>
  1192. </el-dialog>
  1193. <el-dialog
  1194. title="新增魔方导航"
  1195. :visible.sync="linkVisiblethree"
  1196. width="30%"
  1197. center>
  1198. <el-form label-width="90px" :model="editmacform" ref="editmacform">
  1199. <el-form-item label="导航标题:">
  1200. <el-input v-model="editmacform.margtitle"></el-input>
  1201. </el-form-item>
  1202. <el-form-item label="导航图标:">
  1203. <el-upload
  1204. :data="editcheckdata"
  1205. class="avatar-uploader"
  1206. action="https://upload.qiniup.com/"
  1207. :show-file-list="false"
  1208. :on-success="editNaviAvatarSuccessthree"
  1209. :before-upload="editNaviAvatarUploadthree">
  1210. <img v-if="editmacform.margimage" :src="editmacform.margimage" class="avatar">
  1211. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  1212. </el-upload>
  1213. </el-form-item>
  1214. <el-form-item label="跳转设置:">
  1215. <el-radio-group v-model="editmacform.jumpset">
  1216. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="selectGendertwo(gender.id)">{{gender.name}}</el-radio>
  1217. </el-radio-group>
  1218. </el-form-item>
  1219. <el-form-item v-show="definefive">
  1220. <el-col :span="18" >
  1221. <el-input v-model="editmacform.marginaddress" :disabled="true"></el-input>
  1222. </el-col>
  1223. <el-col :span="4">
  1224. <el-button size="medium" @click="linkVisiblefour=true;getLikeMacAddressById(editmacform.marginaddress);">设置链接</el-button>
  1225. </el-col>
  1226. </el-form-item>
  1227. </el-form>
  1228. <span slot="footer" class="dialog-footer">
  1229. <el-button @click="linkVisiblethree = false">取 消</el-button>
  1230. <el-button type="primary" @click="UpdateEditMacform('editmacform');linkVisiblethree = false">确 定</el-button>
  1231. </span>
  1232. </el-dialog>
  1233. <el-dialog
  1234. title="设置链接地址"
  1235. :visible.sync="linkVisiblefour"
  1236. width="30%"
  1237. center>
  1238. <el-form ref="linkformfive" :model="linkformfive">
  1239. <el-form-item label="链接类型:" >
  1240. <el-radio-group v-model="linkformfive.linktype">
  1241. <el-radio :label="item.id" :value="item.id" v-for="(item,index) in defineOptions" :key="index" @change="selectItem(item.id)">{{item.name}}</el-radio>
  1242. </el-radio-group>
  1243. </el-form-item>
  1244. <el-form-item label="链接类型:" v-show="definetwo">
  1245. <el-select v-model="linkformfive.instationlink" placeholder="请选择"
  1246. @change="changeOptionType">
  1247. <el-option
  1248. v-for="item in modelTtile"
  1249. :key="item.id"
  1250. :label="item.title"
  1251. :value="item.id">
  1252. </el-option>
  1253. </el-select>
  1254. </el-form-item>
  1255. <el-form-item label="电话号码:" v-show="definethree">
  1256. <el-input v-model="linkformfive.phone" style="width:400px"></el-input>
  1257. </el-form-item>
  1258. <el-form-item label="站外链接:" v-show="definefour">
  1259. <el-input v-model="linkformfive.outstationlink" style="width:400px"></el-input>
  1260. </el-form-item>
  1261. </el-form>
  1262. <span slot="footer" class="dialog-footer">
  1263. <el-button @click="linkVisiblefour = false">取 消</el-button>
  1264. <el-button type="primary" @click="UpdateLinkAddress('linkformfive');">确 定</el-button>
  1265. </span>
  1266. </el-dialog>
  1267. <el-dialog
  1268. title="编辑联系方式"
  1269. :visible.sync="contact"
  1270. width="30%"
  1271. center>
  1272. <el-form label-width="90px" :model="contactform" ref="contactform">
  1273. <el-form-item label="模块标题:">
  1274. <el-input v-model="contactform.title"></el-input>
  1275. </el-form-item>
  1276. <el-form-item label="排序值:">
  1277. <el-input v-model="contactform.sort" type="number"></el-input>
  1278. <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
  1279. </el-form-item>
  1280. <el-form-item label="联系方式:" v-for="(it,index) in this.Connectways" :key="it.id">
  1281. <div class="used">
  1282. <ul>
  1283. <li>
  1284. <span class="name">{{it.title}}</span>
  1285. <span class="icon">
  1286. <i class="el-icon-edit-outline" @click="editConnecway(it.id);contacttwo=true"></i>
  1287. <i class="el-icon-delete" @click="deleteConnecWay(it.id,index)"></i>
  1288. </span>
  1289. </li>
  1290. </ul>
  1291. </div>
  1292. </el-form-item>
  1293. </el-form>
  1294. <span slot="footer" class="dialog-footer">
  1295. <el-button @click="contactthree = true">添加联系方式</el-button>
  1296. <el-button @click="contact = false">取 消</el-button>
  1297. <el-button type="primary" @click="UpdateContactform('contactform');contact = false">确 定</el-button>
  1298. </span>
  1299. </el-dialog>
  1300. <el-dialog
  1301. title="编辑联系方式"
  1302. :visible.sync="contacttwo"
  1303. width="30%"
  1304. center>
  1305. <el-form label-width="90px" :model="connectform" ref="connectform">
  1306. <el-form-item label="标题:">
  1307. <el-input v-model="connectform.title"></el-input>
  1308. </el-form-item>
  1309. <el-form-item label="联系方式:">
  1310. <el-row>
  1311. <el-col :span="20">
  1312. <el-radio-group v-model="connectform.connecway">
  1313. <el-radio :label="way.id" :value="way.id" v-for="(way,index) in connections" :key="index">{{way.name}}</el-radio>
  1314. </el-radio-group>
  1315. </el-col>
  1316. </el-row>
  1317. </el-form-item>
  1318. <el-form-item label="内容:">
  1319. <el-input v-model="connectform.content"></el-input>
  1320. </el-form-item>
  1321. </el-form>
  1322. <span slot="footer" class="dialog-footer">
  1323. <el-button @click="contacttwo = false">取 消</el-button>
  1324. <el-button type="primary" @click="UpdateConnectform('connectform');contacttwo = false">确 定</el-button>
  1325. </span>
  1326. </el-dialog>
  1327. <el-dialog
  1328. title="新增联系方式"
  1329. :visible.sync="contactthree"
  1330. width="30%"
  1331. center>
  1332. <el-form label-width="90px" ref="contacthreeform" :model="contacthreeform">
  1333. <el-form-item label="标题:">
  1334. <el-input v-model="contacthreeform.title"></el-input>
  1335. </el-form-item>
  1336. <el-form-item label="联系方式:">
  1337. <el-row>
  1338. <el-col :span="20">
  1339. <el-radio-group v-model="contacthreeform.connecway">
  1340. <el-radio :label="way.id" :value="way.id" v-for="(way,index) in connections" :key="index">{{way.name}}</el-radio>
  1341. </el-radio-group>
  1342. </el-col>
  1343. </el-row>
  1344. </el-form-item>
  1345. <el-form-item label="内容:">
  1346. <el-input v-model="contacthreeform.content"></el-input>
  1347. </el-form-item>
  1348. </el-form>
  1349. <span slot="footer" class="dialog-footer">
  1350. <el-button @click="contactthree = false">取 消</el-button>
  1351. <el-button type="primary" @click="addConnectways('contacthreeform');contactthree = false">确 定</el-button>
  1352. </span>
  1353. </el-dialog>
  1354. <el-dialog
  1355. title="编辑医院地址"
  1356. :visible.sync="HospitalIntroduction"
  1357. width="30%"
  1358. center>
  1359. <el-form :model="hospitaladdress" ref="hospitaladdress" label-width="90px">
  1360. <el-form-item label="模块标题:">
  1361. <el-input v-model="hospitaladdress.title"></el-input>
  1362. </el-form-item>
  1363. <el-form-item label="排序:">
  1364. <el-input v-model="hospitaladdress.sort"></el-input>
  1365. </el-form-item>
  1366. <el-form-item label="医院地址:">
  1367. <el-input v-model="hospitaladdress.hosaddress" @input="changeInput($event)"></el-input>
  1368. </el-form-item>
  1369. <!-- <el-form-item label="医院地图:">
  1370. <baidu-map>
  1371. <bm-overview-map anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :isOpen="true"></bm-overview-map>
  1372. <bm-local-search :keyword="hospitaladdress.hosaddress" :auto-viewport="true" style="display:none" :center="location" :zoom="zoom"></bm-local-search>
  1373. <bm-view class="map"></bm-view>
  1374. </baidu-map>
  1375. </el-form-item> -->
  1376. </el-form>
  1377. <span slot="footer" class="dialog-footer">
  1378. <el-button @click="HospitalIntroduction = false">取 消</el-button>
  1379. <el-button type="primary" @click="UpdateHospitalAddress('hospitaladdress');HospitalIntroduction = false">确 定</el-button>
  1380. </span>
  1381. </el-dialog>
  1382. <!-- 手机模拟页面 -->
  1383. <el-col :span="10" class="one">
  1384. <div class="phone">
  1385. <div class="time">9:42</div>
  1386. <div class="xinhao"></div>
  1387. <div class="wifi"></div>
  1388. <div class="dian"></div>
  1389. <div class="scroll">
  1390. <div class="swiper-container bannerSwiper swiper-no-swiping">
  1391.     <div class="swiper-wrapper">
  1392. <div class="swiper-slide">
  1393. <div v-for="item in this.patientModels" :key="item.id" v-show="modelshowtwo">
  1394. <!-- 轮播图 -->
  1395. <div v-if="item.mode_type == 1" class="modeone">
  1396. <mt-swipe :auto="2000" class="swipertwo">
  1397. <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
  1398. <img :src="it.images" style="width:318px;height:9.4375rem">
  1399. </mt-swipe-item>
  1400. </mt-swipe>
  1401. </div>
  1402. <!-- 魔方导航 -->
  1403. <div class="btnList" v-if="item.mode_type== 8">
  1404. <div class="btnOne" v-for="it in item.Editmargin" :key="it.id" @click="NavigationClick(it.marginaddress)">
  1405. <div>
  1406. <img :src="it.margimage" alt />
  1407. </div>
  1408. <div>
  1409. <p class="title">{{it.margtitle}}</p>
  1410. </div>
  1411. </div>
  1412. </div>
  1413. <!-- 文章列表 -->
  1414. <div class="dynamic" v-if="item.mode_type == 6">
  1415. <div class="common_title">
  1416. <div class="one"></div>
  1417. <div class="dynamicTxt">{{item.title}}</div>
  1418. <div class="dymore">
  1419. <p>
  1420. 查看更多
  1421. <i class="iconfont">&#xe632;</i>
  1422. </p>
  1423. </div>
  1424. </div>
  1425. <div class="content">
  1426. <div class="contentOne" v-for="it in Articlelist" :key="it.id">
  1427. <div class="img">
  1428. <img :src="it.imgs" style="width:100%;height:100%" alt />
  1429. </div>
  1430. <div class="detail">
  1431. <p class="detailTitle">{{it.title}}</p>
  1432. <!-- <p class="detailMessage"></p> -->
  1433. </div>
  1434. </div>
  1435. </div>
  1436. </div>
  1437. <!-- 医院介绍 -->
  1438. <div class="common" v-if="item.mode_type == 2">
  1439. <div class="common_title">
  1440. <div class="one"></div>
  1441. <div class="dynamicTxt">{{item.title}}</div>
  1442. <div class="dymore">
  1443. <p>
  1444. 查看更多
  1445. <i class="iconfont">&#xe632;</i>
  1446. </p>
  1447. </div>
  1448. </div>
  1449. <div class="commonBox">
  1450. <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
  1451. </div>
  1452. </div>
  1453. <!-- 科室介绍 -->
  1454. <div class="common" v-if="item.mode_type == 3">
  1455. <div class="common_title">
  1456. <div class="one"></div>
  1457. <div class="dynamicTxt">{{item.title}}</div>
  1458. <div class="dymore">
  1459. <p>
  1460. 查看更多
  1461. <i class="iconfont">&#xe632;</i>
  1462. </p>
  1463. </div>
  1464. </div>
  1465. <div class="commonBox">
  1466. <div class="commonMessage" v-html="item.Offices.introduction"></div>
  1467. </div>
  1468. </div>
  1469. <!-- 医护团队 -->
  1470. <div class="dynamic" v-if="item.mode_type == 4">
  1471. <div class="common_title">
  1472. <div class="one"></div>
  1473. <div class="dynamicTxt">{{item.title}}</div>
  1474. <div class="dymore">
  1475. <p>
  1476. 查看更多
  1477. <i class="iconfont">&#xe632;</i>
  1478. </p>
  1479. </div>
  1480. </div>
  1481. <div class="content">
  1482. <div class="contentOne" v-for="doc in item.Editdoctor" :key="doc.id">
  1483. <div class="img">
  1484. <img :src="doc.dochead" style="width:100%;height:100%" alt />
  1485. </div>
  1486. <div class="detail">
  1487. <p class="detailTitle">{{doc.doc_name}}</p>
  1488. <p class="detailMessage" v-html="doc.docintroduction"></p>
  1489. </div>
  1490. </div>
  1491. </div>
  1492. </div>
  1493. <!-- 科室环境 -->
  1494. <div class="dynamic" v-if="item.mode_type == 5">
  1495. <div class="common_title">
  1496. <div class="one"></div>
  1497. <div class="dynamicTxt">{{item.title}}</div>
  1498. </div>
  1499. <div class="imgs">
  1500. <div class="swiper-container imgSwiper">
  1501. <div class="swiper-wrapper">
  1502. <div class="swiper-slide carousel" v-for="itms in item.Enviroimages" :key="itms.id">
  1503. <img class="img" :src="itms.enviroimages" :preview="itms.modeid" />
  1504. </div>
  1505. </div>
  1506. </div>
  1507. </div>
  1508. </div>
  1509. <!-- 医院活动 -->
  1510. <div class="dynamic bottom" v-if="item.mode_type == 7">
  1511. <div class="common_title">
  1512. <div class="one"></div>
  1513. <div class="dynamicTxt">{{item.title}}</div>
  1514. <div class="dymore">
  1515. <p>
  1516. 查看更多
  1517. <i class="iconfont">&#xe632;</i>
  1518. </p>
  1519. </div>
  1520. </div>
  1521. <div class="content">
  1522. <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
  1523. <div class="img">
  1524. <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
  1525. </div>
  1526. <div class="detail">
  1527. <p class="detailTitle">{{it.title}}</p>
  1528. </div>
  1529. </div>
  1530. </div>
  1531. </div>
  1532. </div>
  1533. <div v-show="modelshow">
  1534. <div v-for="item in this.ordmodel" :key="item.id">
  1535. <div v-if="item.mode_type == 1">
  1536. <mt-swipe :auto="4000" class="swipertwo">
  1537. <mt-swipe-item v-for="it in item.Conrotation" :key="it.id">
  1538. <img :src="it.images" style="width:318px;height:230px" >
  1539. </mt-swipe-item>
  1540. </mt-swipe>
  1541. </div>
  1542. <div v-if="item.mode_type == 2" class="oldmodetwo">
  1543. <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span></div>
  1544. </div>
  1545. <div v-if="item.mode_type == 3">
  1546. <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
  1547. <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span><br>
  1548. </div>
  1549. </div>
  1550. <div class="oldmodefour" v-if="item.mode_type == 4">
  1551. <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span></div>
  1552. </div>
  1553. <div class="oldmodethree" v-if="item.mode_type == 5">
  1554. <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Rideway.ride_way}}</span></div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. </div>
  1559. </div>
  1560.     </div>
  1561. </div>
  1562. <div class="scroll" v-show="defalutshow">暂无数据</div>
  1563. <!-- 医院介绍详情页-->
  1564. <div class="scroll" v-show="shows" v-html="hospitalform.introduction" id="target"></div>
  1565. <!-- <div class="xiangqing" v-show="shows" v-html="hospitalform.introduction"></div> -->
  1566. <!-- 科室介绍详情页 -->
  1567. <div class="scroll" v-html="officeform.introduction" v-show="keshow" id="targettwo"></div>
  1568. <!--名医介绍详情 -->
  1569. <div class="scroll" v-show="docshow" id="targetthree">
  1570. <div class="docone" v-for="item in this.editdocfrom" :key="item.id" @click="GetDoctorDetail(item.id)">
  1571. <div class="doctwo">
  1572. <img :src="item.dochead" style="width:80px;height:80px">
  1573. </div>
  1574. <div class="docthree">
  1575. <span class="docfour">{{item.doc_name}}</span>
  1576. </div>
  1577. <div class="docfive">
  1578. <span class="docsix" v-html="item.docintroduction"></span>
  1579. </div>
  1580. </div>
  1581. </div>
  1582. <!--科室环境详情 -->
  1583. <div class="scroll" v-show="OfficeEnviromentShow" id="targetfour">
  1584. <div class="swiperimages">
  1585. <div class="swiper-container swiperfour" >
  1586. <div class="swiper-wrapper" id="wrappertwo" >
  1587. <div class="swiper-slide " v-for="it in keEnvironmentImages" :key="it.id">
  1588. <img :src="it.enviroimages" style="width:150px;height:140px;border-radius:5px;"/>
  1589. </div>
  1590. </div>
  1591. </div>
  1592. </div>
  1593. </div>
  1594. <!-- 文章列表详情 -->
  1595. <div class="scroll" v-show="ArticlelistShow" id="targetfive">
  1596. <div class="actilist" v-for="it in Articlelist" :key="it.id" @click="GetArticleListDetail(it.id)">
  1597. <div class="acthead">
  1598. <img :src="it.imgs" style="width:80px;height:80px">
  1599. </div>
  1600. <div class="actcontent">
  1601. <div class="actname"><span>{{it.title}}</span></div>
  1602. <!-- <div class="actcomments">阅读:{{it.real_read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div> -->
  1603. </div>
  1604. </div>
  1605. </div>
  1606. <!-- 活动列表详情 -->
  1607. <div class="scroll" v-show="ActivitieslistShow" id="targetsix">
  1608. <div class="actilist" v-for="it in Activitieslist" :key="it.id" @click="ActivitiesListInfo(it.id)">
  1609. <div class="acthead">
  1610. <img :src="it.poster_photo" style="width:80px;height:80px">
  1611. </div>
  1612. <div class="actcontent">
  1613. <div class="actname"><span>{{it.title}}</span></div>
  1614. <!-- <div class="actcomments">阅读:{{it.read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div>
  1615. <div class="progress">
  1616. <el-progress :percentage="0"></el-progress>
  1617. </div> -->
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <!-- 单个医生详情页-->
  1622. <div class="scroll" v-show="docshowinfo">
  1623. <div class="docheadimages">
  1624. <div class="doctorhead">
  1625. <img :src="editdoctor.dochead" style="widht:100%;height:100%">
  1626. </div>
  1627. <div class="doctorname">
  1628. 姓名:{{editdoctor.doc_name}}
  1629. </div>
  1630. <div class="docposition">
  1631. 职位:{{editdoctor.doc_postion}}
  1632. </div>
  1633. </div>
  1634. <div class="doctorintroduction">
  1635. 医生简介:
  1636. </div>
  1637. <div class="doctorintroductiontwo" v-html="editdoctor.docintroduction">
  1638. </div>
  1639. </div>
  1640. <!-- 单个文章详情页 -->
  1641. <div class="scroll" v-show="articlelistshowinfo">
  1642. <div class="articletitle">
  1643. {{articlistinfo.title}}
  1644. </div>
  1645. <div class="aticlecontent" v-html="articlistinfo.content">
  1646. </div>
  1647. </div>
  1648. <!-- 单个活动详情页 -->
  1649. <div class="scroll" v-show="activitesShowinfo">
  1650. <div class="activitesimages">
  1651. <img :src="activitiesInfo.poster_photo" style="width:100%;height:100%">
  1652. </div>
  1653. <div class="activitestitle">
  1654. 活动标题:{{activitiesInfo.title}}
  1655. </div>
  1656. <div class="activitestitle">
  1657. 活动副标题:{{activitiesInfo.subtitle}}
  1658. </div>
  1659. <div class="activitestitle">
  1660. 活动详细地址:{{activitiesInfo.address}}
  1661. </div>
  1662. <div class="activitestitle">
  1663. 开始时间: {{staffCreateTime(activitiesInfo.start_time)}}
  1664. </div>
  1665. <div class="activitestitle">
  1666. 结束时间:{{staffCreateTime(activitiesInfo.end_time)}}
  1667. </div>
  1668. <div class="activitestitle">
  1669. 报名须知:{{activitiesInfo.sign_up_notice}}
  1670. </div>
  1671. <div class="activitestitle">
  1672. 联系方式:{{activitiesInfo.phone_number}}
  1673. </div>
  1674. <div class="activitestitle">
  1675. 限制人数:{{activitiesInfo.limit_num}}
  1676. </div>
  1677. <div class="activitestitle">
  1678. 已报名人数:{{activitiesInfo.join_num}}
  1679. </div>
  1680. </div>
  1681. <!-- 返回首页 -->
  1682. <!-- <div class="returnpage" v-show="returnshow" @click="returnClick()">
  1683. <div class="returnimages">
  1684. <img src="static/images/u373.png">
  1685. </div>
  1686. <div class="rebacktwo">
  1687. <span>返回</span>
  1688. </div>
  1689. </div> -->
  1690. <div class="reback" v-show="showback" @click="returnIndex()">
  1691. <div class="rebackone">
  1692. <img src="static/images/u373.png">
  1693. </div>
  1694. <div class="rebacktwo">
  1695. <span>首页</span>
  1696. </div>
  1697. </div>
  1698. <!-- 回到顶部 -->
  1699. <div class="reindex" v-show="showindex" @click="returntop()">
  1700. <div class="reindexone">
  1701. <img src="static/images/u378.png">
  1702. </div>
  1703. <div class="reindextwo">
  1704. <span>顶部</span>
  1705. </div>
  1706. </div>
  1707. <div id="qrcode" class="qrcode"></div>
  1708. <!-- 分享管理 -->
  1709. <!-- <div class="dfont">
  1710. <img src="static/images/u642.png">
  1711. </div> -->
  1712. <!-- <div class="done">
  1713. <span @click="sharemanage()">分享管理</span>
  1714. </div> -->
  1715. <div class="dfont2">
  1716. <img src="static/images/u645.png">
  1717. </div>
  1718. <div class="done2">
  1719. <span @click="navigationset()">导航设置</span>
  1720. </div>
  1721. </div>
  1722. <div class="macgic">
  1723. <div class="macgicone" v-for="item in this.navigationdatatwo" :key="item.id">
  1724. <div class="macgicfive">
  1725. <img :src="item.nonavimages" style="width:30px; height:30px">
  1726. </div>
  1727. <div class="macgicsix">
  1728. {{item.navtitle}}
  1729. </div>
  1730. <!-- <img :src="item.navimages" style="width:30px; height:30px" @click="callPhone(item.navtitle,item.navaddress)"> -->
  1731. </div>
  1732. </div>
  1733. <!-- <div class="tabs">
  1734. <ul class="tabList">
  1735. <li class="tabOne" v-for="item in this.navigationdatatwo" :key="item.id" @click="CallPhone(item.linktype,item.navaddress)">
  1736. <img :src="item.navimages" alt />
  1737. <span>{{item.navtitle}}</span>
  1738. </li>
  1739. </ul>
  1740. </div> -->
  1741. </el-col>
  1742. <el-col :span="7" >
  1743. <div class="share" v-show="navigation">
  1744. <div class="share2">
  1745. <span class="share3">导航设置</span>
  1746. </div>
  1747. <div class="navigacontent">
  1748. <div class="navigationone" v-for="(item,index) in this.navigationdata" :key="item.id">
  1749. <div class="navitwo">
  1750. <img :src="item.navimages" style="width:35px;height:35px">
  1751. </div>
  1752. <div class="navithree">
  1753. <span>{{item.navtitle}}</span>
  1754. </div>
  1755. <div class="navifour">
  1756. <span class="el-icon-edit-outline" @click="editNavigationVisible = true;editNavigation(item.id);"></span>
  1757. </div>
  1758. <div class="navifive">
  1759. <span class="el-icon-delete" @click="deleteNavigation(item.id,index)"></span>
  1760. </div>
  1761. </div>
  1762. <div class="addbutton">
  1763. <el-button size="medium" style="width:100px" @click="navigationVisible = true">添加</el-button>
  1764. </div>
  1765. </div>
  1766. </div>
  1767. </el-col>
  1768. <el-col :span="7">
  1769. <div class="share" v-show="share">
  1770. <div class="share2">
  1771. <span class="share3" >分享管理</span>
  1772. </div>
  1773. <div class="navigacontent">
  1774. <div class="sharecontent">
  1775. <div class="shareexam"><span>设置后效果实例:</span></div>
  1776. <div class="shareimg">
  1777. <div class="sharetwoimg">
  1778. <div class="sharefont">
  1779. <span class="sharefontone">{{shareInfo.share_title}}</span>
  1780. </div>
  1781. <div class="sharethree">
  1782. <span class="sharefour">{{shareInfo.share_introduction}}</span>
  1783. </div>
  1784. <div class="sharefive" v-show="sharefive">
  1785. <img :src="shareInfo.share_images" style="width:65px;height:70px">
  1786. </div>
  1787. </div>
  1788. <div class="triangle"></div>
  1789. <div class="sharepic" v-show="sharepic">
  1790. <img :src="shareInfo.share_images" style="width:50px;height:50px">
  1791. </div>
  1792. </div>
  1793. <div class="inputone">
  1794. <span class="inputfont">分享标题:</span>
  1795. </div>
  1796. <div class="inputwo">
  1797. <el-input :disabled="disabled" v-model="shareform.sharetitle"></el-input>
  1798. </div>
  1799. <div class="inputhree">
  1800. <span class="inputfont">分享简介:</span>
  1801. </div>
  1802. <div class="inpufive">
  1803. <el-input :disabled="disabled" v-model="shareform.shareintroduction"></el-input>
  1804. </div>
  1805. <div class="inputsix">
  1806. <span class="inputfont">分享图标:</span>
  1807. </div>
  1808. <div class="inputten">
  1809. <img :src="shareInfo.share_images" style="width:100px;height:100px">
  1810. </div>
  1811. <div class="inputserven">
  1812. <el-upload
  1813. :data="sharedata"
  1814. class="avatar-uploader"
  1815. action="https://upload.qiniup.com"
  1816. :show-file-list="false"
  1817. :on-success="shareAvatarSuccess"
  1818. :before-upload="shareAvatarUpload"
  1819. v-show="shareshow">
  1820. <img v-if="shareform.shareImages" :src="shareform.shareImages" class="avatar">
  1821. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  1822. </el-upload>
  1823. </div>
  1824. </div>
  1825. <div class="addbuttontwo">
  1826. <el-button size="medium" type="primary" style="width:130px" @click="changbutton();"><span id="edit">编辑</span></el-button>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. </el-col>
  1831. </el-row>
  1832. </div>
  1833. </div>
  1834. </template>
  1835. <script>
  1836. import BreadCrumb from "../components/bread-crumb";
  1837. import NewFeature from "./components/new-feature";
  1838. import UsedList from "./components/used-list";
  1839. import ContactUs from "./components/contact-us";
  1840. import AddContact from "./components/add-contact";
  1841. import { getToken } from '@/api/qiniu'
  1842. import { getFileExtension} from '@/utils/tools'
  1843. import { Swipe, SwipeItem } from 'mint-ui';
  1844. import Vue from 'vue';
  1845. import 'mint-ui/lib/style.css';
  1846. import {GetUserdModel,eidtmodel,editRideWay,SaveWorkTime,saverideway,editHospital,SaveHospital,editOffice,editDoc,
  1847. deleteModleById,SaveOffice,editImages,saveDocInfo,deleteDoctor,SaveDocdata,editOfficeEnviroment,SaveOfficeEnvironment,
  1848. getQueryNewModel,getHospital,getHospitaldata,hispitalmore,officemore,docmore,kemore,articlemore,Activitiesmore,kemoreaddNavigation,getNavigationList,addNavigation,
  1849. AddShareInfo,getShareInfo,deleteNavigation,deletemodle,editNavigation,SaveNavigation,getactivity,getMacImages,SaveActivit,getOrderModel,
  1850. GetRotationImages,getRotationDetail,editVisibleByid,deleteImages,deleteSingleImages,SaveEditPic,addeditpic,AddedialogVisible,geteditRotationImages,
  1851. editSingleVisible,UpdateSingleForm,addEditPicForm,getEditImages,AddRotationVisible,getActivities,getArticlelist,getArticleType,editGetArticlistDetail,UpdatedArticeDetail,
  1852. AddOfficeThreeVisible,getEnImages,getEnImagesTwo,officetwoVisbile,AddOfficetTwo,deleteOfficeById,GetArticleById,GetAllActivity,AddLinkAddress,getAllConnecWay,getConnecWay,editConnecway,
  1853. UpdateConnectform,deleteConnecWay,UpdateContactform,addConnectways,getHospitalIntroduction,UpdateHospitalAddress,AddPiCLink,getLinkAddressDetail,UpdatePicFormThree,getEnImagesThree,
  1854. AddMacgicform,getMacImagesDetail,deleteMacImagesDetail,UpdateMacform,getEditMacImageDetail,UpdateEditMacform,getLikeMacAddressById,GetArticleName,GetAllArticelist,UpdateLinkAddress,
  1855. AddMacLinkAddress,GetLinkAddress,addNavigationlinkform,getNavgitionlinkAddress,UpdateEditNavigationLinkform,getQueryDocInfo,change,AddDoctorInfoTwo,navigationset,GetNavigationData,getAllModelTitle,GetDoctorDetail,
  1856. GetArticleListDetail,ActivitiesListInfo,AddLinkAddressTwo,GetLinkAddressByLinkid,AddLinkAddressFour,GetMagicClickByLinkid} from '@/api/site/site'
  1857. import { IncomingMessage, get } from 'http';
  1858. import { isIP, isIPv4 } from 'net';
  1859. import Swiper from "swiper";
  1860. import { constants } from 'crypto';
  1861. import QRCode from 'qrcodejs2';
  1862. import newsInformationVue from './components/news-information.vue';
  1863. import Neditor from '@/components/Neditor'
  1864. import { rejects, fail, strictEqual } from 'assert';
  1865. import { copyFile } from 'fs';
  1866. import { truncateSync } from 'fs';
  1867. import { isAbsolute } from 'path';
  1868. import { stringify } from 'querystring';
  1869. import {checkNumber,uParseTime} from "@/utils/tools";
  1870. export default {
  1871. name: "preview",
  1872. components: {
  1873. Neditor,
  1874. BreadCrumb,
  1875. NewFeature,
  1876. UsedList,
  1877. AddContact,
  1878. ContactUs,
  1879. },
  1880. data() {
  1881. var checkNumberRule = (rule, value, callback) => {
  1882. if (!checkNumber(value)) {
  1883. callback(new Error('请输入1-99的整数'));
  1884. }else {
  1885. callback();
  1886. }
  1887. };
  1888. return {
  1889. radio:3,
  1890. scrollTop: 0,
  1891. timer: null,
  1892. modeltitle:[],
  1893. hospitalform:[],
  1894. patientModels:[
  1895. {
  1896. images:[],
  1897. macimages:[],
  1898. mactitle:[],
  1899. }
  1900. ],
  1901. maclist:[{macimg:"",mactitle:""} ],
  1902. keEnvironmentImages:[],
  1903. ordrotaionImages:[],
  1904. doctors:[],
  1905. rotatationImages:[],
  1906. macImages:[],
  1907. Activitieslist:[],
  1908. Articlelist:[],
  1909. Connectways:[],
  1910. crumbs: [{ path: false, name: "预览" }],
  1911. activeName: 'first',
  1912. activeNameOne: 'index',
  1913. activeNameThree: 'three',
  1914. name: "car",
  1915. modelshow:false,
  1916. modelshowtwo:true,
  1917. show:true,
  1918. defalutshow:false,
  1919. shows:false,
  1920. keshow:false,
  1921. docshow:false,
  1922. OfficeEnviromentShow:false,
  1923. ArticlelistShow:false,
  1924. ActivitieslistShow:false,
  1925. MacnavigationShow:false,
  1926. showimages:true,
  1927. showimage:false,
  1928. edialogVisible:false,
  1929. dialogVisibletwo:false,
  1930. dialogVisiblefour:false,
  1931. dialogVisiblefive:false,
  1932. hosipitalVisible:false,
  1933. dialogVisible:false,
  1934. adddialogVisible:false,
  1935. officeVisible:false,
  1936. docVisible:false,
  1937. comshow:false,
  1938. centerDialogVisible:false,
  1939. editcenterDialogVisible:false,
  1940. offficeEnviromentVisible:false,
  1941. ArticleVisible:false,
  1942. navigation:false,
  1943. share:false,
  1944. navigationVisible:false,
  1945. linkVisible:false,
  1946. linkVisibletwo:false,
  1947. linkVisiblethree:false,
  1948. linkVisiblefour:false,
  1949. linkaddressVisible:false,
  1950. addressVisible:false,
  1951. addressVisibleTwo:false,
  1952. define:true,
  1953. definetwo:false,
  1954. definethree:false,
  1955. definefour:false,
  1956. definefive:false,
  1957. disabled:true,
  1958. showback:false,
  1959. showindex:false,
  1960. editNavigationVisible:false,
  1961. activityVisible:false,
  1962. addVisible:false,
  1963. addVisibleTwo:false,
  1964. picshow:false,
  1965. showpiclink:false,
  1966. linkTypeShow:false,
  1967. zhanShow:false,
  1968. definelinkShow:false,
  1969. editRotationVisible:false,
  1970. editVisible:false,
  1971. setlinkVisible:false,
  1972. singleVisible:false,
  1973. singformdialogVisible:false,
  1974. edtimacdialogVisible:false,
  1975. editImagesVisbile:false,
  1976. officetwoVisible:false,
  1977. officethreeVisible:false,
  1978. addpicdialogVisible:false,
  1979. addpicdialogVisibletwo:false,
  1980. HospitalIntroduction:false,
  1981. picshow:false,
  1982. contact:false,
  1983. contacttwo:false,
  1984. contactthree:false,
  1985. linkshow:false,
  1986. docshowinfo:false,
  1987. articlelistshowinfo:false,
  1988. activitesShowinfo:false,
  1989. returnshow:false,
  1990. ellipsis:'',
  1991. docnames:[],
  1992. articeType:[
  1993. {id:1,name:"SCRM"},
  1994. {id:2,name:"酷医云"},
  1995. ],
  1996. articeTypelist:[],
  1997. articeOptions: [
  1998. { id: 1 ,name:"文章"},
  1999. { id: 2, name:"活动"}
  2000. ],
  2001. articeTypeOptions:[],
  2002. optiontype: [
  2003. {id:1,name:"文章"},
  2004. {id:2,name:"活动"},
  2005. {id:3,name:"肾科咨询"},
  2006. {id:4,name:"肾科动态"},
  2007. {id:5,name:"肾科科普"},
  2008. {id:6,name:"生活"},
  2009. {id:7,name:"肾友故事"},
  2010. ],
  2011. navitionlinkType:[
  2012. {id:1,name:"首页"},
  2013. {id:2,name:"微商城"},
  2014. {id:3,name:"联系我们"},
  2015. ],
  2016. navitionlinkTypeThree:[
  2017. {id:1,name:"首页"},
  2018. {id:2,name:"微商城"},
  2019. {id:3,name:"联系我们"},
  2020. ],
  2021. option:[
  2022. ],
  2023. ops: {
  2024. vuescroll: {},
  2025. scrollPanel: {},
  2026. ail: {
  2027. keepShow:true
  2028. },
  2029. bar: {
  2030. hoverStyle: false,
  2031. onlyShowBarOnScroll: true, //是否只有滚动的时候才显示滚动条
  2032. background: 'red',
  2033. }
  2034. },
  2035. keEnvironmentImages:[],
  2036. qiniuDomain: 'https://images.shengws.com/',
  2037. rotationData: { token:'',key: '' },
  2038. doctorDatatwo: { token: '', key: '' },
  2039. doctorData:{ token:'',key:'' },
  2040. navigationData:{ token:'',key:''},
  2041. sharedata:{ token:'',key:''},
  2042. editcheckdata: { token:'',key:''},
  2043. editcheckdatatwo: { token:'',key:''},
  2044. picform:{
  2045. images:"",
  2046. sort:"",
  2047. piclink:"",
  2048. linkaddress:"",
  2049. modeid:"",
  2050. },
  2051. picformTwo:{
  2052. defineaddress:"",
  2053. },
  2054. picformThree:{
  2055. id:"",
  2056. defineaddress:"",
  2057. },
  2058. editpicform:{
  2059. images:"",
  2060. sort:"",
  2061. piclink:1,
  2062. linkaddress:"",
  2063. linkid:"",
  2064. },
  2065. editpic:{
  2066. images:"",
  2067. sort:"",
  2068. piclink:"",
  2069. modeid:"",
  2070. },
  2071. officeform:{
  2072. title:"",
  2073. sort:"",
  2074. introduction:"",
  2075. },
  2076. officeformtwo:{
  2077. officeImages:"",
  2078. sort:"",
  2079. },
  2080. officeformthree:{
  2081. id:"",
  2082. officeImages:"",
  2083. sort:"",
  2084. modelid:"",
  2085. },
  2086. eidtDoctorform:{
  2087. name:"",
  2088. user_title:"",
  2089. dochead:"",
  2090. sort:"",
  2091. content:"",
  2092. },
  2093. rotationform:{
  2094. id:"",
  2095. title:"",
  2096. sort:"",
  2097. rotationImages:[],
  2098. },
  2099. workform:{
  2100. title:"",
  2101. sort:"",
  2102. worktime:"",
  2103. },
  2104. rideform:{
  2105. title:"",
  2106. sort:"",
  2107. ride_way:"",
  2108. },
  2109. doctorform:{
  2110. title:"",
  2111. sort:"",
  2112. image:"",
  2113. modleid:"",
  2114. },
  2115. docimages:[],
  2116. docimage:[],
  2117. model:{
  2118. id:"",
  2119. title:"",
  2120. sort:"",
  2121. },
  2122. officeform:{
  2123. title:"",
  2124. sort:"",
  2125. introduction:"",
  2126. },
  2127. modelform:{
  2128. id:"",
  2129. title:"",
  2130. sort:"",
  2131. },
  2132. hispitalform:{
  2133. title:"",
  2134. sort:"",
  2135. introduction:"",
  2136. },
  2137. editdocfrom:{
  2138. doc_name:"",
  2139. dochead:"",
  2140. doc_postion:"",
  2141. doc_sort:"",
  2142. docintroduction:"",
  2143. },
  2144. keform:{
  2145. title:"",
  2146. sort:"",
  2147. keImages:[],
  2148. },
  2149. navigationform:{
  2150. id:"",
  2151. navtitle:"",
  2152. navigationImages:"",
  2153. nonavigationImages:"",
  2154. navigationaddress:"",
  2155. jumpset:1,
  2156. linkid:"",
  2157. linktype:"",
  2158. },
  2159. shareform:{
  2160. sharetitle:"",
  2161. shareintroduction:"",
  2162. shareImages:"",
  2163. },
  2164. addform:{
  2165. id:"",
  2166. title:"",
  2167. sort:"",
  2168. images:[],
  2169. model_id:"",
  2170. },
  2171. singform:{
  2172. id:"",
  2173. images:"",
  2174. sort:"",
  2175. piclink:"",
  2176. linkaddress:"",
  2177. modeid:"",
  2178. linkid:"",
  2179. },
  2180. macform:{
  2181. id:"",
  2182. title:"",
  2183. sort:"",
  2184. macimages:[],
  2185. },
  2186. macgicform:{
  2187. title:"",
  2188. sort:"",
  2189. macgicimages:"",
  2190. jumpset:1,
  2191. linkaddress:"",
  2192. },
  2193. editmacform:{
  2194. margtitle:"",
  2195. margimage:"",
  2196. marginaddress:"",
  2197. jumpset:1,
  2198. },
  2199. macdataImages:[],
  2200. images:"",
  2201. positions:[
  2202. { index: 1, name: '医士' },
  2203. { index: 2, name: '医师' },
  2204. { index: 3, name: '住院医师' },
  2205. { index: 4, name: '主治医师' },
  2206. { index: 5, name: '副主任医师' },
  2207. { index: 6, name: '主任医师' },
  2208. { index: 7, name: '护士' },
  2209. { index: 8, name: '护师' },
  2210. { index: 9, name: '主管护师' },
  2211. { index: 10, name: '副主任护师' },
  2212. { index: 11, name: '主任护师' },
  2213. { index: 12, name: '运营专员' },
  2214. ],
  2215. genderOptions:[
  2216. {id:1, name:'自定义'},
  2217. {id:2, name:'不跳转'},
  2218. ],
  2219. genderPicLink:[
  2220. {id:1,name:"无"},
  2221. {id:2,name:"自定义"},
  2222. ],
  2223. linkType:[
  2224. {id:1,name:"无"},
  2225. {id:2,name:"站内链接"},
  2226. {id:3,name:"站外链接"},
  2227. ],
  2228. defineOptions:[
  2229. {id:1,name:'无'},
  2230. {id:2,name:'站内链接'},
  2231. {id:3,name:'电话'},
  2232. {id:4,name:'站外链接'},
  2233. ],
  2234. neditorshow:true,
  2235. linkform:{
  2236. linktype:"",
  2237. linkdetail:"",
  2238. actitype:"",
  2239. phone:"",
  2240. offsitelink:"",
  2241. },
  2242. refform:{
  2243. defineaddress:"",
  2244. },
  2245. editNavigationform:{
  2246. navtitle:"",
  2247. navimages:"",
  2248. nonavimages:"",
  2249. jumpset:1,
  2250. navaddress:"",
  2251. linkid:"",
  2252. linktype:"",
  2253. },
  2254. activitform:{
  2255. ttile:"",
  2256. sort:"",
  2257. number:"",
  2258. },
  2259. contactform:{
  2260. title:"",
  2261. sort:"",
  2262. connectway:"",
  2263. },
  2264. connectform:{
  2265. title:"",
  2266. connecway:"",
  2267. cotent:"",
  2268. },
  2269. contacthreeform:{
  2270. title:"",
  2271. connecway:"",
  2272. content:"",
  2273. },
  2274. connections:[
  2275. {id:1,name:'电话'},
  2276. {id:2,name:'非电话'},
  2277. ],
  2278. hospitaladdress:{
  2279. title:"",
  2280. sort:"",
  2281. hosaddress:"",
  2282. },
  2283. rules: {
  2284. title: [{required: true, message: "请填写模块标题",},],
  2285. sort: [{required: true,message:"请填写排序值"},{validator:checkNumberRule}],
  2286. introduction: [{required: true,message:"请填写医院介绍"}],
  2287. image: [{required: true,message:"请填写新增名医"}],
  2288. docname: [{required:true,message:"请填写医生姓名"}],
  2289. docHead: [{required: true,message:"请填写医生头像"}],
  2290. dochead: [{required: true,message:"请填写医生头像"}],
  2291. docpositional:[{required:true,message:"请填写医生职位"}],
  2292. docintroduction:[{required:true,message:"请填写医生简介"}],
  2293. images:[{required:true,message:"请添加图片"}],
  2294. keimages:[{required:true,message:"请填写新增科室环境"}],
  2295. user_title:[{required:true,message:"请填写医生职称"}],
  2296. docimages:[{required:true,message:"请填写新增名医"}],
  2297. navtitle:[{required:true,message:"请填写导航标题"}],
  2298. navigationImages:[{required:true,message:"请填写导航图标"}],
  2299. worktime:[{required:true,message:"请填写工作时间"}],
  2300. rideway:[{required:true,message:"请填写乘车方式"}],
  2301. navigatitle:[{required:true,message:"请填写导航标题"}],
  2302. navimages:[{required:true,message:"导航图标选中"}],
  2303. nonavimages:[{required:true,message:"导航图标未选中"}],
  2304. officeImages:[{required:true,message:"请上传图片"}],
  2305. jumpset:[{required:true,message:"请选择跳转设置"}],
  2306. piclink:[{required:true,message:"请选择图片链接"}],
  2307. doc_name:[{required:true,message:"请编辑医生姓名"}],
  2308. defineaddress:[{required:true,message:"请填写站外地址"}],
  2309. },
  2310. keData: { token: '' ,key: ''},
  2311. navigationdata:[],
  2312. navigationdatatwo:[],
  2313. shareInfo:[],
  2314. shareshow:false,
  2315. ordmodel:[
  2316. {
  2317. images:[],
  2318. }
  2319. ],
  2320. rotationdata:[],
  2321. rotationdatatwo:[],
  2322. rotationdataThree:[],
  2323. articeform:{
  2324. title:"",
  2325. sort:"",
  2326. category:"",
  2327. categoryone:"",
  2328. },
  2329. typeShow:false,
  2330. articeNamelist:[],
  2331. articeTitlelist:[],
  2332. linkformfive:{
  2333. id:"",
  2334. linktype:'',
  2335. instationlink:'',
  2336. articetype:'',
  2337. title:'',
  2338. phone:'',
  2339. outstationlink:'',
  2340. linkaddress:'',
  2341. },
  2342. linkformtwo:{
  2343. linktype:'',
  2344. instationlink:'',
  2345. phone:'',
  2346. outstationlink:'',
  2347. linkaddress:'',
  2348. },
  2349. uploadImages:0,
  2350. uploadimageshow:true,
  2351. navigationlinkform:{
  2352. id:"",
  2353. linktype:"",
  2354. navitionlinktype:"",
  2355. phone:"",
  2356. outstationlink:"",
  2357. instationlink:"",
  2358. linkaddress:"",
  2359. },
  2360. editnavigationlinkform:{
  2361. id:"",
  2362. linktype:1,
  2363. navitionlinktype:"",
  2364. phone:"",
  2365. outstationlink:"",
  2366. linkaddress:"",
  2367. },
  2368. sharefive:false,
  2369. sharepic:false,
  2370. showrotation:true,
  2371. modelTtile:[],
  2372. editdoctor:{},
  2373. articlistinfo:{},
  2374. activitiesInfo:{},
  2375. };
  2376. },
  2377. methods:{
  2378. initSwiper() {
  2379. var mySwiper1 = new Swiper(".bannerSwiper", {
  2380. loop: false, // 循环模式选项
  2381. // 如果需要分页器
  2382. pagination: {
  2383. el: ".swiper-pagination"
  2384. },
  2385. autoplay: {
  2386. disableOnInteraction: false
  2387. }
  2388. });
  2389. var mySwiper2 = new Swiper(".imgSwiper", {
  2390. slidesPerView: 2
  2391. });
  2392. },
  2393. staffCreateTime(time) {
  2394. return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
  2395. },
  2396. changeInput(e){
  2397. this.$forceUpdate();
  2398. },
  2399. changeType(id){
  2400. if(id == 1){
  2401. this.typeShow = true;
  2402. this.GetAllArticelist();
  2403. }
  2404. if(id == 2){
  2405. this.typeShow = false;
  2406. this.GetAllActivity();
  2407. // GetAllActivity().then(response=>{
  2408. // if(response.data.state == 1){
  2409. // var activtity = response.data.data.activtity;
  2410. // console.log("所有活动",activtity)
  2411. // this.articeNamelist = response.data.data.activtity;
  2412. // }
  2413. // })
  2414. }
  2415. },
  2416. changeTypetwo(id){
  2417. GetArticleById(id).then(response=>{
  2418. if(response.data.state == 1){
  2419. var articlelist = response.data.data.articlelist;
  2420. this.articeNamelist = response.data.data.articlelist;
  2421. }
  2422. })
  2423. },
  2424. AddLinkAddressTwo(formName){
  2425. console.log("站外地址:",this.refform.defineaddress)
  2426. this.$refs[formName].validate((valid)=>{
  2427. if(valid){
  2428. AddLinkAddressTwo(this.refform.defineaddress).then(response=>{
  2429. if(response.data.state == 1){
  2430. this.refform.defineaddress = "";
  2431. this.addressVisible = false;
  2432. var patientLinkaddress = response.data.data.patientLinkaddress;
  2433. this.singform.linkaddress = patientLinkaddress.defineaddress;
  2434. this.singform.linkid = patientLinkaddress.id;
  2435. console.log("数据数据返回",patientLinkaddress)
  2436. }
  2437. })
  2438. }
  2439. })
  2440. },
  2441. AddLinkAddressFour(formName){
  2442. this.$refs[formName].validate((valid)=>{
  2443. if(valid){
  2444. AddLinkAddressFour(this.refform.defineaddress).then(response=>{
  2445. if(response.data.state == 1){
  2446. this.addressVisibleTwo = false;
  2447. var linkaddress = response.data.data.linkaddress;
  2448. this.editpicform.linkaddress = linkaddress.defineaddress;
  2449. this.editpicform.linkid = linkaddress.id;
  2450. this.refform.defineaddress = "";
  2451. console.log("问问",linkaddress)
  2452. }
  2453. })
  2454. }
  2455. })
  2456. },
  2457. changeTypeThree(id){
  2458. if(id == 1){
  2459. this.linkshow = true;
  2460. }
  2461. if(id == 2){
  2462. this.linkshow = false;
  2463. GetAllActivity(this.articeNamelist).then(response=>{
  2464. if(response.data.state == 1){
  2465. var activtity = response.data.data.activtity;
  2466. console.log("所有活动",activtity)
  2467. this.articeNamelist = response.data.data.activtity;
  2468. }
  2469. })
  2470. }
  2471. },
  2472. changeOptionType(id){
  2473. if(id=1){
  2474. this.getArticleType();
  2475. }
  2476. if(id=2){
  2477. }
  2478. if(id=3){
  2479. }
  2480. if(id=4){
  2481. }
  2482. if(id=5){
  2483. }
  2484. if(id=6){
  2485. }
  2486. if(id=7){
  2487. }
  2488. },
  2489. AddPiCLink(formName){
  2490. this.$refs[formName].validate((valid)=>{
  2491. if(valid){
  2492. AddPiCLink(this.picformTwo).then(response=>{
  2493. if(response.data.state == 1){
  2494. var conlinkaddress = response.data.data.conlinkaddress;
  2495. console.log("小心得按",conlinkaddress)
  2496. this.picform.linkaddress = conlinkaddress.defineaddress;
  2497. }
  2498. })
  2499. }
  2500. })
  2501. },
  2502. getLinkAddressDetail(id){
  2503. getLinkAddressDetail(id,this.picformThree).then(response=>{
  2504. if(response.data.state == 1){
  2505. var conlinkaddress = response.data.data.conlinkaddress;
  2506. this.picformThree.defineaddress = conlinkaddress.defineaddress;
  2507. this.picformThree.id = conlinkaddress.id;
  2508. console.log("conlinkaddress是什么?",conlinkaddress)
  2509. }
  2510. })
  2511. },
  2512. UpdatePicFormThree(formName){
  2513. this.$refs[formName].validate((valid)=>{
  2514. UpdatePicFormThree(this.picformThree.id,this.picformThree).then(response=>{
  2515. if(response.data.state == 1){
  2516. this.setlinkVisible = false;
  2517. var conlinkaddress = response.data.data.conlinkaddress;
  2518. this.editpic.linkaddress = conlinkaddress.defineaddress;
  2519. }
  2520. })
  2521. })
  2522. },
  2523. getHospital(){
  2524. getHospital().then(response=>{
  2525. if(response.data.state == 1){
  2526. this.hospitalform = response.data.data.hostital;
  2527. }
  2528. })
  2529. },
  2530. getHospitaldata(){
  2531. getHospitaldata().then(response=>{
  2532. if(response.data.state == 1){
  2533. this.patientModels = response.data.data.patientModels;
  2534. var patientModels = response.data.data.patientModels;
  2535. // var articles = response.data.data.articles;
  2536. // this.Articlelist = articles;
  2537. // console.log("文章码子是",articles)
  2538. console.log("数据是什么",this.patientModels)
  2539. }
  2540. })
  2541. },
  2542. getOrderModel(){
  2543. getOrderModel().then(response=>{
  2544. if(response.data.state == 1){
  2545. var ordmodel = response.data.data.ordmodel;
  2546. this.ordmodel = response.data.data.ordmodel;
  2547. // var images = [];
  2548. // console.log("我爱你中国",this.ordmodel);
  2549. // for (let index = 0; index < this.ordmodel.length; index++) {
  2550. // var rotationImages = this.ordmodel[index].Oldration.rotation_images;
  2551. // console.log("rotationImages",rotationImages)
  2552. // var rotationImagess = rotationImages.split(",");
  2553. // console.log("rotationImagess",rotationImagess)
  2554. // images = rotationImagess;
  2555. // this.ordmodel[index]["images"] = images;
  2556. // }
  2557. console.log("mawenqiang",this.ordmodel)
  2558. }
  2559. })
  2560. },
  2561. myindex(){
  2562. this.modelshowtwo = true;
  2563. this.modelshow = false;
  2564. },
  2565. myindextwo(){
  2566. this.modelshowtwo= false;
  2567. this.modelshow = true;
  2568. },
  2569. handleClick(tab,event){
  2570. if(this.activeNameOne == "index"){
  2571. this.modelshowtwo = true;
  2572. this.modelshow = false;
  2573. }
  2574. if(this.activeNameOne == "contactus"){
  2575. this.modelshowtwo = false;
  2576. this.modelshow = true;
  2577. }
  2578. },
  2579. handleClickTwo(tab,event){
  2580. if(this.activeName == "used"){
  2581. this.getQueryNewModel();
  2582. }
  2583. },
  2584. handleClickThree(tab,event){
  2585. if(this.activeNameThree == "usedtwo"){
  2586. this.GetUserdModel();
  2587. }
  2588. },
  2589. sharemanage(){
  2590. this.navigation = false;
  2591. this.share = true;
  2592. },
  2593. navigationset(){
  2594. navigationset().then(response=>{
  2595. if(response.data.state == 1){
  2596. var sgjPatientNavigation = response.data.data.sgjPatientNavigation;
  2597. var navigations = response.data.data.navigations;
  2598. for (let index = 0; index < navigations.length; index++) {
  2599. navigations[0].nonavimages = "https://images.shengws.com/2089_o_1571990714383.png";
  2600. }
  2601. this.navigationdata = navigations;
  2602. this.navigationdatatwo = navigations;
  2603. console.log("this.navigationdatatwo是什么?",navigations)
  2604. this.navigation = true;
  2605. this.share = false;
  2606. }
  2607. })
  2608. },
  2609. handleEditSuccess(res,file){
  2610. this.picform.images = this.qiniuDomain + res.url;
  2611. this.picshow = true;
  2612. },
  2613. handleEditAvatarUpload(file){
  2614. var fileType = file.type
  2615. const isJPG = fileType.indexOf("image") > -1;
  2616. const isLt2M = file.size / 1024 / 1024 < 2;
  2617. if (!isJPG) {
  2618. this.$message.error("只能上传图片");
  2619. return false;
  2620. }
  2621. if (!isLt2M) {
  2622. this.$message.error("图片大小不能超过 2MB!");
  2623. return false;
  2624. }
  2625. var date = new Date()
  2626. var ext = getFileExtension(file.name)
  2627. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2628. this.loadingText = '封面图片上传中'
  2629. const _self = this
  2630. return new Promise((resolve, reject) => {
  2631. getToken().then(response => {
  2632. const token= response.data.data.uptoken
  2633. console.log("导航图标token是什么?",token)
  2634. _self._data.navigationData.token = token;
  2635. _self._data.navigationData.key = key;
  2636. resolve(true)
  2637. }).catch(err => {
  2638. reject(false)
  2639. })
  2640. })
  2641. return isJPG && isLt2M;
  2642. },
  2643. handleEditpicSuccess(res,file){
  2644. this.editpic.images = this.qiniuDomain + res.url;
  2645. },
  2646. handleEditpicAvatarUpload(file){
  2647. var fileType = file.type
  2648. const isJPG = fileType.indexOf("image") > -1;
  2649. const isLt2M = file.size / 1024 / 1024 < 2;
  2650. if (!isJPG) {
  2651. this.$message.error("只能上传图片");
  2652. return false;
  2653. }
  2654. if (!isLt2M) {
  2655. this.$message.error("图片大小不能超过 2MB!");
  2656. return false;
  2657. }
  2658. var date = new Date()
  2659. var ext = getFileExtension(file.name)
  2660. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2661. this.loadingText = '封面图片上传中'
  2662. const _self = this
  2663. return new Promise((resolve, reject) => {
  2664. getToken().then(response => {
  2665. const token= response.data.data.uptoken
  2666. console.log("导航图标token是什么?",token)
  2667. _self._data.navigationData.token = token;
  2668. _self._data.navigationData.key = key;
  2669. resolve(true)
  2670. }).catch(err => {
  2671. reject(false)
  2672. })
  2673. })
  2674. return isJPG && isLt2M;
  2675. },
  2676. //轮播图
  2677. RotationchartSuccess(res,file,filelist){
  2678. this.rotationform.rotationImages.push(this.qiniuDomain + res.url);
  2679. console.log("双层地址",file.url)
  2680. console.log("联系我们轮播图地址",this.rotationform.rotationImages);
  2681. },
  2682. beforeRotationUpload(file){
  2683. console.log("尺寸",file.size)
  2684. const isJPG = file.type === 'image/jpeg';
  2685. const isLt2M = file.size / 1024 / 1024 < 2;
  2686. if (!isJPG) {
  2687. this.$message.error('上传头像图片只能是 JPG 格式!');
  2688. }
  2689. if (!isLt2M) {
  2690. this.$message.error('上传头像图片大小不能超过 2MB!');
  2691. }
  2692. var date = new Date()
  2693. var ext = getFileExtension(file.name)
  2694. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2695. const _self = this
  2696. return new Promise((resolve, reject) => {
  2697. getToken().then(response => {
  2698. const token= response.data.data.uptoken
  2699. console.log("联系我们轮播图token是什么?",token)
  2700. _self._data.rotationData.token = token;
  2701. _self._data.rotationData.key = key;
  2702. resolve(true)
  2703. }).catch(err => {
  2704. reject(false)
  2705. })
  2706. })
  2707. return isJPG && isLt2M;
  2708. },
  2709. edithandleAvatarSuccess(res){
  2710. this.editpicform.images = this.qiniuDomain + res.url;
  2711. this.picshow = true;
  2712. },
  2713. editbeforeAvatarUpload(file){
  2714. console.log("上传类型",file.type)
  2715. var fileType = file.type
  2716. const isJPG = fileType.indexOf("image") > -1;
  2717. const isLt2M = file.size / 1024 / 1024 < 2;
  2718. if (!isJPG) {
  2719. this.$message.error("只能上传图片");
  2720. return false;
  2721. }
  2722. if (!isLt2M) {
  2723. this.$message.error("图片大小不能超过 2MB!");
  2724. return false;
  2725. }
  2726. var date = new Date()
  2727. var ext = getFileExtension(file.name)
  2728. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2729. const _self = this
  2730. return new Promise((resolve, reject) => {
  2731. getToken().then(response => {
  2732. const token= response.data.data.uptoken
  2733. console.log("token是什么?",token)
  2734. _self._data.navigationData.token = token;
  2735. _self._data.navigationData.key = key;
  2736. resolve(true)
  2737. }).catch(err => {
  2738. reject(false)
  2739. })
  2740. })
  2741. return isJPG && isLt2M;
  2742. },
  2743. handleAvatarSuccess(res, file) {
  2744. this.eidtDoctorform.dochead = this.qiniuDomain + res.url;
  2745. },
  2746. navigationAvatarSuccess(res,file){
  2747. this.navigationform.navigationImages = this.qiniuDomain + res.url;
  2748. },
  2749. navigationbeforeAvatarUpload(file){
  2750. var fileType = file.type
  2751. const isJPG = fileType.indexOf("image") > -1;
  2752. const isLt2M = file.size / 1024 / 1024 < 2;
  2753. if (!isJPG) {
  2754. this.$message.error("只能上传图片");
  2755. return false;
  2756. }
  2757. if (!isLt2M) {
  2758. this.$message.error("图片大小不能超过 2MB!");
  2759. return false;
  2760. }
  2761. var date = new Date()
  2762. var ext = getFileExtension(file.name)
  2763. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2764. this.loadingText = '封面图片上传中'
  2765. const _self = this
  2766. return new Promise((resolve, reject) => {
  2767. getToken().then(response => {
  2768. const token= response.data.data.uptoken
  2769. console.log("导航图标token是什么?",token)
  2770. _self._data.navigationData.token = token;
  2771. _self._data.navigationData.key = key;
  2772. resolve(true)
  2773. }).catch(err => {
  2774. reject(false)
  2775. })
  2776. })
  2777. return isJPG && isLt2M;
  2778. },
  2779. navigationAvatarSuccessone(res,file){
  2780. this.navigationform.nonavigationImages = this.qiniuDomain + res.url;
  2781. },
  2782. navigationbeforeAvatarUploadone(file){
  2783. var fileType = file.type
  2784. const isJPG = fileType.indexOf("image") > -1;
  2785. const isLt2M = file.size / 1024 / 1024 < 2;
  2786. if (!isJPG) {
  2787. this.$message.error("只能上传图片");
  2788. return false;
  2789. }
  2790. if (!isLt2M) {
  2791. this.$message.error("图片大小不能超过 2MB!");
  2792. return false;
  2793. }
  2794. var date = new Date()
  2795. var ext = getFileExtension(file.name)
  2796. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2797. this.loadingText = '封面图片上传中'
  2798. const _self = this
  2799. return new Promise((resolve, reject) => {
  2800. getToken().then(response => {
  2801. const token= response.data.data.uptoken
  2802. console.log("导航图标token是什么?",token)
  2803. _self._data.navigationData.token = token;
  2804. _self._data.navigationData.key = key;
  2805. resolve(true)
  2806. }).catch(err => {
  2807. reject(false)
  2808. })
  2809. })
  2810. return isJPG && isLt2M;
  2811. },
  2812. beforeAvatarUpload(file) {
  2813. var fileType = file.type
  2814. const isJPG = fileType.indexOf("image") > -1;
  2815. const isLt2M = file.size / 1024 / 1024 < 2;
  2816. if (!isJPG) {
  2817. this.$message.error("只能上传图片");
  2818. return false;
  2819. }
  2820. if (!isLt2M) {
  2821. this.$message.error("图片大小不能超过 2MB!");
  2822. return false;
  2823. }
  2824. var date = new Date()
  2825. var ext = getFileExtension(file.name)
  2826. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2827. this.uploading = true;
  2828. this.loadingText = '封面图片上传中'
  2829. const _self = this
  2830. return new Promise((resolve, reject) => {
  2831. getToken().then(response => {
  2832. const token= response.data.data.uptoken
  2833. console.log("医生头像token是什么?",token)
  2834. _self._data.doctorData.token = token;
  2835. _self._data.doctorData.key = key;
  2836. resolve(true)
  2837. }).catch(err => {
  2838. reject(false)
  2839. this.uploading = false;
  2840. })
  2841. })
  2842. return isJPG && isLt2M;
  2843. },
  2844. //分享管理
  2845. shareAvatarSuccess(res,file){
  2846. this.shareform.shareImages =this.qiniuDomain + res.url
  2847. },
  2848. shareAvatarUpload(file){
  2849. var fileType = file.type
  2850. const isJPG = fileType.indexOf("image") > -1;
  2851. const isLt2M = file.size / 1024 / 1024 < 2;
  2852. if (!isJPG) {
  2853. this.$message.error("只能上传图片");
  2854. return false;
  2855. }
  2856. if (!isLt2M) {
  2857. this.$message.error("图片大小不能超过 2MB!");
  2858. return false;
  2859. }
  2860. var date = new Date()
  2861. var ext = getFileExtension(file.name)
  2862. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2863. this.uploading = true;
  2864. this.loadingText = '封面图片上传中'
  2865. const _self = this
  2866. return new Promise((resolve, reject) => {
  2867. getToken().then(response => {
  2868. const token= response.data.data.uptoken
  2869. console.log("医生头像token是什么?",token)
  2870. _self._data.sharedata.token = token;
  2871. _self._data.sharedata.key = key;
  2872. resolve(true)
  2873. }).catch(err => {
  2874. reject(false)
  2875. this.uploading = false;
  2876. })
  2877. })
  2878. return isJPG && isLt2M;
  2879. },
  2880. editNaviAvatarSuccess(res,file){
  2881. this.editNavigationform.navimages = this.qiniuDomain + res.url;
  2882. },
  2883. editNaviAvatarUpload(file){
  2884. var fileType = file.type
  2885. const isJPG = fileType.indexOf("image") > -1;
  2886. const isLt2M = file.size / 1024 / 1024 < 2;
  2887. if (!isJPG) {
  2888. this.$message.error("只能上传图片");
  2889. return false;
  2890. }
  2891. if (!isLt2M) {
  2892. this.$message.error("图片大小不能超过 2MB!");
  2893. return false;
  2894. }
  2895. var date = new Date()
  2896. var ext = getFileExtension(file.name)
  2897. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2898. this.uploading = true;
  2899. this.loadingText = '封面图片上传中'
  2900. const _self = this
  2901. return new Promise((resolve, reject) => {
  2902. getToken().then(response => {
  2903. const token= response.data.data.uptoken
  2904. console.log("医生头像token是什么?",token)
  2905. _self._data.editcheckdata.token = token;
  2906. _self._data.editcheckdata.key = key;
  2907. resolve(true)
  2908. }).catch(err => {
  2909. reject(false)
  2910. this.uploading = false;
  2911. })
  2912. })
  2913. return isJPG && isLt2M;
  2914. },
  2915. editNaviAvatarSuccessone(res,file){
  2916. this.editNavigationform.nonavimages = this.qiniuDomain + res.url;
  2917. console.log("这是",this.qiniuDomain + res.url)
  2918. console.log("只是什么",this.editNavigationform.nonavimages)
  2919. },
  2920. editNaviAvatarUploadone(file){
  2921. var fileType = file.type
  2922. const isJPG = fileType.indexOf("image") > -1;
  2923. const isLt2M = file.size / 1024 / 1024 < 2;
  2924. if (!isJPG) {
  2925. this.$message.error("只能上传图片");
  2926. return false;
  2927. }
  2928. if (!isLt2M) {
  2929. this.$message.error("图片大小不能超过 2MB!");
  2930. return false;
  2931. }
  2932. var date = new Date()
  2933. var ext = getFileExtension(file.name)
  2934. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2935. const _self = this
  2936. return new Promise((resolve, reject) => {
  2937. getToken().then(response => {
  2938. const token= response.data.data.uptoken
  2939. console.log("token是什么?",token)
  2940. _self._data.editcheckdatatwo.token = token;
  2941. _self._data.editcheckdatatwo.key = key;
  2942. resolve(true)
  2943. }).catch(err => {
  2944. reject(false)
  2945. })
  2946. })
  2947. return isJPG && isLt2M;
  2948. },
  2949. singformAvatarSuccess(res,file){
  2950. this.singform.images = this.qiniuDomain + res.url;
  2951. },
  2952. singformAvatarUpload(file){
  2953. var fileType = file.type
  2954. const isJPG = fileType.indexOf("image") > -1;
  2955. const isLt2M = file.size / 1024 / 1024 < 2;
  2956. if (!isJPG) {
  2957. this.$message.error("只能上传图片");
  2958. return false;
  2959. }
  2960. if (!isLt2M) {
  2961. this.$message.error("图片大小不能超过 2MB!");
  2962. return false;
  2963. }
  2964. var date = new Date()
  2965. var ext = getFileExtension(file.name)
  2966. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  2967. this.uploading = true;
  2968. this.loadingText = '封面图片上传中'
  2969. const _self = this
  2970. return new Promise((resolve, reject) => {
  2971. getToken().then(response => {
  2972. const token= response.data.data.uptoken
  2973. console.log("医生头像token是什么?",token)
  2974. _self._data.editcheckdata.token = token;
  2975. _self._data.editcheckdata.key = key;
  2976. resolve(true)
  2977. }).catch(err => {
  2978. reject(false)
  2979. this.uploading = false;
  2980. })
  2981. })
  2982. return isJPG && isLt2M;
  2983. },
  2984. editNaviAvatarSuccesstwo(res,file){
  2985. this.macgicform.macgicimages = this.qiniuDomain + res.url;
  2986. },
  2987. editNaviAvatarUploadtwo(file){
  2988. var fileType = file.type
  2989. const isJPG = fileType.indexOf("image") > -1;
  2990. const isLt2M = file.size / 1024 / 1024 < 2;
  2991. if (!isJPG) {
  2992. this.$message.error("只能上传图片");
  2993. return false;
  2994. }
  2995. if (!isLt2M) {
  2996. this.$message.error("图片大小不能超过 2MB!");
  2997. return false;
  2998. }
  2999. var date = new Date()
  3000. var ext = getFileExtension(file.name)
  3001. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  3002. this.uploading = true;
  3003. this.loadingText = '封面图片上传中'
  3004. const _self = this
  3005. return new Promise((resolve, reject) => {
  3006. getToken().then(response => {
  3007. const token= response.data.data.uptoken
  3008. console.log("魔方导航token是什么?",token)
  3009. _self._data.editcheckdata.token = token;
  3010. _self._data.editcheckdata.key = key;
  3011. resolve(true)
  3012. }).catch(err => {
  3013. reject(false)
  3014. this.uploading = false;
  3015. })
  3016. })
  3017. return isJPG && isLt2M;
  3018. },
  3019. editNaviAvatarSuccessthree(res,file){
  3020. this.editmacform.margimage = this.qiniuDomain + res.url;
  3021. },
  3022. editNaviAvatarUploadthree(file){
  3023. var fileType = file.type
  3024. const isJPG = fileType.indexOf("image") > -1;
  3025. const isLt2M = file.size / 1024 / 1024 < 2;
  3026. if (!isJPG) {
  3027. this.$message.error("只能上传图片");
  3028. return false;
  3029. }
  3030. if (!isLt2M) {
  3031. this.$message.error("图片大小不能超过 2MB!");
  3032. return false;
  3033. }
  3034. var date = new Date()
  3035. var ext = getFileExtension(file.name)
  3036. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  3037. this.uploading = true;
  3038. this.loadingText = '封面图片上传中'
  3039. const _self = this
  3040. return new Promise((resolve, reject) => {
  3041. getToken().then(response => {
  3042. const token= response.data.data.uptoken
  3043. console.log("魔方导航token是什么?",token)
  3044. _self._data.editcheckdata.token = token;
  3045. _self._data.editcheckdata.key = key;
  3046. resolve(true)
  3047. }).catch(err => {
  3048. reject(false)
  3049. this.uploading = false;
  3050. })
  3051. })
  3052. return isJPG && isLt2M;
  3053. },
  3054. //添加轮播图
  3055. addRotationUpload(formName){
  3056. this.$refs[formName].validate((valid)=>{
  3057. if(valid){
  3058. addRotationUpload(this.rotationform).then(response=>{
  3059. if(response.data.state==1){
  3060. var connecmodel = response.data.data.connecmodel;
  3061. this.slideshow = false;
  3062. console.log("返回值",connecmodel);
  3063. }
  3064. });
  3065. }
  3066. })
  3067. },
  3068. addEditPicForm(formName){
  3069. if(this.editpicform.linkid == ""){
  3070. this.editpicform.linkid = 0;
  3071. }
  3072. var sorts = this.editpicform.sort;
  3073. var sort = parseInt(sorts);
  3074. this.editpicform.sort = sort;
  3075. this.$refs[formName].validate((valid)=>{
  3076. if(valid){
  3077. addEditPicForm(this.addform.id,this.editpicform).then(response=>{
  3078. if(response.data.state == 1){
  3079. this.editRotationVisible = false;
  3080. var editpiclink = response.data.data.editpiclink;
  3081. var editpiclinks = response.data.data.editpiclinks;
  3082. console.log("editpiclink是什么?",editpiclinks)
  3083. this.rotationdatatwo = editpiclinks;
  3084. var total = response.data.data.total;
  3085. this.uploadImages = response.data.data.total;
  3086. if(total>=9){
  3087. this.uploadimageshow = false;
  3088. }
  3089. // this.getEditImages();
  3090. // this.getEnImagesTwo();
  3091. this.editpicform.images = "";
  3092. this.editpicform.sort = "";
  3093. this.editpicform.piclink = "";
  3094. this.editpicform.linkaddress = "";
  3095. this.picshow = false;
  3096. console.log("返回数据",editpiclink);
  3097. }
  3098. })
  3099. }
  3100. })
  3101. },
  3102. AddRotationVisible(formName){
  3103. var sorts = this.addform.sort;
  3104. var sort = parseInt(sorts);
  3105. this.addform.sort = sort;
  3106. console.log("哈哈哈",this.addform.sort)
  3107. var images = [];
  3108. for (let index = 0; index < this.rotationdatatwo.length; index++) {
  3109. images.push(this.rotationdatatwo[index].images);
  3110. }
  3111. this.addform.images = images;
  3112. this.$refs[formName].validate((valid)=>{
  3113. if(valid){
  3114. AddRotationVisible(this.addform.id,this.addform).then(response=>{
  3115. if(response.data.state == 1){
  3116. this.adddialogVisible = false;
  3117. var patientRotation = response.data.data.patientRotation;
  3118. console.log("patientRotation是什么",patientRotation)
  3119. var model = response.data.data.model;
  3120. console.log("model是什么",model)
  3121. this.getQueryNewModel();
  3122. this.getHospitaldata();
  3123. this.getEnImagesTwo();
  3124. }
  3125. })
  3126. }
  3127. })
  3128. },
  3129. // 查看医院详情
  3130. hispitalmore(id){
  3131. hispitalmore(id).then(response=>{
  3132. if(response.data.state == 1){
  3133. var hospital = response.data.data.hospital;
  3134. this.hospitalform = response.data.data.hospital;
  3135. console.log("医院详情数据",hospital)
  3136. console.log("医院详情数据是",this.hospitalform)
  3137. this.modelshowtwo = false;
  3138. this.shows = true;
  3139. this.showback = true;
  3140. this.showindex = true;
  3141. }
  3142. })
  3143. },
  3144. returnIndex(){
  3145. this.defalutshow = false;
  3146. this.modelshowtwo = true;
  3147. this.shows = false;
  3148. this.showback = false;
  3149. this.showindex = false;
  3150. this.docshow = false;
  3151. this.shows = false;
  3152. this.keshow = false;
  3153. this.OfficeEnviromentShow = false;
  3154. this.ArticlelistShow = false;
  3155. this.ActivitieslistShow = false;
  3156. this.activitiesInfo = false;
  3157. this.articlistinfo = false;
  3158. this.docshowinfo = false;
  3159. },
  3160. //查看科室详情
  3161. officemore(id){
  3162. officemore(id).then(response=>{
  3163. if(response.data.state ==1){
  3164. var offices = response.data.data.offices;
  3165. this.officeform = response.data.data.offices;
  3166. console.log("科室详情数据",offices)
  3167. this.modelshowtwo = false;
  3168. this.keshow = true;
  3169. this.showback = true;
  3170. this.showindex = true;
  3171. }
  3172. })
  3173. },
  3174. // 查看名医详情
  3175. docmore(id){
  3176. docmore(id).then(response=>{
  3177. if(response.data.state == 1){
  3178. var editdoctor = response.data.data.editdoctor;
  3179. this.editdocfrom = response.data.data.editdoctor;
  3180. this.modelshowtwo = false;
  3181. this.docshow = true;
  3182. this.showback = true;
  3183. this.showindex = true;
  3184. console.log("编辑医生返回数据",editdoctor)
  3185. }
  3186. })
  3187. },
  3188. // 查看科室环境详情
  3189. kemore(id){
  3190. kemore(id).then(response=>{
  3191. if(response.data.state == 1 ){
  3192. var offenvironment = response.data.data.offenvironment;
  3193. this.keEnvironmentImages = offenvironment;
  3194. console.log("科室环境详情页",offenvironment)
  3195. this.modelshowtwo = false;
  3196. this.OfficeEnviromentShow = true;
  3197. this.showback = true;
  3198. this.showindex = true;
  3199. }
  3200. })
  3201. },
  3202. articlemore(id){
  3203. articlemore(id).then(response=>{
  3204. if(response.data.state == 1){
  3205. var articlelist = response.data.data.articlelists;
  3206. this.articlelist = response.data.data.articlelists;
  3207. this.modelshowtwo = false;
  3208. this.showback = true;
  3209. this.showindex = true;
  3210. this.ArticlelistShow = true;
  3211. console.log("得到获取文章列表",articlelist);
  3212. }
  3213. })
  3214. },
  3215. // 查看活动列表详情
  3216. Activitiesmore(id){
  3217. Activitiesmore(id).then(response=>{
  3218. if(response.data.state == 1){
  3219. var activity = response.data.data.activity;
  3220. this.Activitieslist = response.data.data.activity;
  3221. this.modelshowtwo = false;
  3222. this.ActivitieslistShow = true;
  3223. this.showback = true;
  3224. this.showindex = true;
  3225. console.log("获取活动列表",activity)
  3226. }
  3227. })
  3228. },
  3229. indexone(){
  3230. this.shows = false;
  3231. this.show = true;
  3232. },
  3233. // callback(){
  3234. // target.scrollIntoView();
  3235. // },
  3236. //查询联系我们已使用的模块
  3237. GetUserdModel(){
  3238. GetUserdModel().then(response=>{
  3239. if(response.data.state==1){
  3240. this.model = response.data.data.model;
  3241. // console.log("模型",this.model);
  3242. }
  3243. })
  3244. },
  3245. clickmodel(){
  3246. this.GetUserdModel();
  3247. },
  3248. clickAddmodel(){
  3249. this.getQueryNewModel();
  3250. },
  3251. //查询首页已使用的模块
  3252. getQueryNewModel(){
  3253. getQueryNewModel().then(response=>{
  3254. if(response.data.state ==1){
  3255. var model = response.data.data.model;
  3256. this.modelform = response.data.data.model;
  3257. console.log("这是啥",this.modelform)
  3258. }
  3259. });
  3260. },
  3261. editModelByID(id,modetype,index){
  3262. if(modetype == 1){
  3263. this.adddialogVisible = true;
  3264. geteditRotationImages(id,this.addform).then(response=>{
  3265. if(response.data.state == 1){
  3266. var model = response.data.data.model;
  3267. console.log("patient",model)
  3268. this.addform = response.data.data.model;
  3269. var editpiclink = response.data.data.editpiclink;
  3270. this.rotationdatatwo = response.data.data.editpiclink;
  3271. this.uploadImages = response.data.data.total;
  3272. console.log("海珍数据",editpiclink)
  3273. }
  3274. })
  3275. }
  3276. if(modetype == 2){
  3277. this.hosipitalVisible = true;
  3278. editHospital(id).then(response=>{
  3279. if(response.data.state == 1){
  3280. var hospital = response.data.data.hospital;
  3281. this.hispitalform = response.data.data.hospital;
  3282. }
  3283. });
  3284. }
  3285. if(modetype == 3){
  3286. this.officeVisible = true;
  3287. editOffice(id).then(response=>{
  3288. if(response.data.state == 1){
  3289. this.officeform = response.data.data.offices;
  3290. }
  3291. })
  3292. }
  3293. if(modetype == 4){
  3294. this.docVisible = true;
  3295. editDoc(id).then(response=>{
  3296. if(response.data.state == 1){
  3297. this.doctorform = response.data.data.editdoctor;
  3298. var editdoctor = response.data.data.editdoctor;
  3299. this.doctorform.modleid = this.doctorform.id;
  3300. console.log("我爱你中国",this.doctorform)
  3301. var editdoctors = response.data.data.editdoctors;
  3302. this.docimages = response.data.data.editdoctors;
  3303. }
  3304. })
  3305. }
  3306. if(modetype == 5){
  3307. this.offficeEnviromentVisible = true;
  3308. editOfficeEnviroment(id).then(response=>{
  3309. if(response.data.state ==1){
  3310. var model = response.data.data.model;
  3311. this.keform = model;
  3312. // var OfficeEnvironment = response.data.data.offenvironment;
  3313. // this.keform = response.data.data.offenvironment;
  3314. // console.log("科室环境",OfficeEnvironment);
  3315. this.rotationdata = response.data.data.patientenviroimages;
  3316. }
  3317. })
  3318. }
  3319. if(modetype == 6){
  3320. this.ArticleVisible = true;
  3321. editGetArticlistDetail(id).then(response=>{
  3322. if(response.data.state == 1){
  3323. var articlelist = response.data.data.articlelist;
  3324. this.articeform = response.data.data.articlelist;
  3325. }
  3326. })
  3327. }
  3328. if(modetype == 7){
  3329. this.activityVisible = true;
  3330. getactivity(id).then(response=>{
  3331. if(response.data.state ==1){
  3332. var addactivity = response.data.data.addactivity;
  3333. this.activitform = response.data.data.addactivity;
  3334. console.log("数据",addactivity)
  3335. this.getHospitaldata();
  3336. }
  3337. })
  3338. }
  3339. if(modetype == 8){
  3340. this.edtimacdialogVisible = true;
  3341. getMacImages(id).then(response=>{
  3342. if(response.data.state == 1){
  3343. var macnavigation = response.data.data.macnavigation;
  3344. this.macdataImages = response.data.data.macnavigation;
  3345. var model = response.data.data.model;
  3346. this.macform = response.data.data.model;
  3347. console.log("返回查询数据",this.macdataImages)
  3348. }
  3349. })
  3350. }
  3351. },
  3352. editImages(id){
  3353. editImages(id).then(response=>{
  3354. if(response.data.state == 1){
  3355. var editdoctor = response.data.data.editdoctor;
  3356. this.editdocfrom = response.data.data.editdoctor;
  3357. console.log("数据",editdoctor);
  3358. }
  3359. })
  3360. },
  3361. editVisibleByid(id){
  3362. editVisibleByid(id).then(response=>{
  3363. if(response.data.state == 1){
  3364. var conrotation = response.data.data.conrotation;
  3365. console.log("hheh",conrotation)
  3366. this.editpic = response.data.data.conrotation;
  3367. this.showpiclink = true;
  3368. }
  3369. })
  3370. },
  3371. deleteImages(id,index){
  3372. deleteImages(id,index).then(response=>{
  3373. if(response.data.state == 1){
  3374. var total = response.data.data.total;
  3375. this.uploadImages = total;
  3376. this.rotationdataThree.splice(index,1);
  3377. }
  3378. })
  3379. },
  3380. deleteSingleImages(id,modeid,index){
  3381. this.$confirm('确定要删除图片吗?删除后该图片将无法恢复','删除提示!',{
  3382. dangerouslyUseHTMLString:true,
  3383. confirmButtonText: '确定',
  3384. cancelButtonText: '取消',
  3385. type: 'warning'
  3386. }).then(()=>{
  3387. deleteSingleImages(id,modeid,index).then(response=>{
  3388. if(response.data.state ==1){
  3389. this.rotationdatatwo.splice(index,1);
  3390. var total = response.data.data.total;
  3391. console.log("total是什么",total)
  3392. this.uploadImages = total;
  3393. this.uploadimageshow = true;
  3394. }
  3395. })
  3396. })
  3397. },
  3398. SaveEditPic(formName){
  3399. this.$refs[formName].validate((valid)=>{
  3400. if(valid){
  3401. var sorts = this.editpic.sort;
  3402. var sort = parseInt(sorts);
  3403. this.editpic.sort = sort;
  3404. SaveEditPic(this.editpic.id,this.editpic).then(response=>{
  3405. if(response.data.state == 1){
  3406. var conrotation = response.data.data.conrotation;
  3407. var conrotations = response.data.data.conrotations;
  3408. console.log("conrotations是什么",conrotations)
  3409. this.rotationdataThree = response.data.data.conrotations;
  3410. // this.getEnImagesThree();
  3411. console.log("更新的数据",conrotation)
  3412. }
  3413. })
  3414. }
  3415. })
  3416. },
  3417. addeditpic(formName){
  3418. var sorts = this.picform.sort;
  3419. var sort = parseInt(sorts);
  3420. this.picform.sort = sort;
  3421. this.$refs[formName].validate((valid)=>{
  3422. if(valid){
  3423. addeditpic(this.rotationform.id,this.picform).then(response=>{
  3424. if(response.data.state == 1){
  3425. var conrotation = response.data.data.conrotation;
  3426. var conrotations = response.data.data.conrotations;
  3427. console.log("钟无艳",conrotations)
  3428. this.rotationdataThree = response.data.data.conrotations;
  3429. console.log("添加数据",conrotation)
  3430. // this.getEnImagesThree();
  3431. }
  3432. })
  3433. }
  3434. })
  3435. },
  3436. AddedialogVisible(formName){
  3437. var sorts = this.rotationform.sort;
  3438. var sort = parseInt(sorts);
  3439. this.rotationform.sort = sort;
  3440. var images = [];
  3441. for (let index = 0; index < this.rotationdataThree.length; index++) {
  3442. images.push(this.rotationdataThree[index].images);
  3443. }
  3444. this.rotationform.rotationImages = images;
  3445. this.$refs[formName].validate((valid)=>{
  3446. if(valid){
  3447. AddedialogVisible(this.rotationform.id,this.rotationform).then(response=>{
  3448. if(response.data.state == 1){
  3449. var oldrotation = response.data.data.oldrotation;
  3450. console.log(oldrotation)
  3451. var ordmodel = response.data.data.ordmodel;
  3452. console.log(ordmodel);
  3453. this.getOrderModel();
  3454. this.GetUserdModel();
  3455. }
  3456. })
  3457. }
  3458. })
  3459. },
  3460. GetRotationImages(){
  3461. GetRotationImages().then(response=>{
  3462. if(response.data.state == 1){
  3463. var conrotations = response.data.data.conrotations;
  3464. console.log("获取轮播图片",conrotations)
  3465. this.rotationdata = response.data.data.conrotations;
  3466. console.log("hheh",this.rotationdata);
  3467. }
  3468. })
  3469. },
  3470. getEditImages(){
  3471. getEditImages().then(response=>{
  3472. if(response.data.state == 1){
  3473. var editpiclinks = response.data.data.editpiclinks;
  3474. this.rotationdata = response.data.data.editpiclinks;
  3475. console.log("好嗨哦",editpiclinks)
  3476. }
  3477. })
  3478. },
  3479. getEnImages(){
  3480. getEnImages().then(response=>{
  3481. if(response.data.state == 1){
  3482. var enviroimages = response.data.data.enviroimages;
  3483. console.log("中国人",enviroimages)
  3484. this.rotationdata = response.data.data.enviroimages;
  3485. }
  3486. })
  3487. },
  3488. getEnImagesTwo(){
  3489. getEnImagesTwo().then(response=>{
  3490. if(response.data.state == 1){
  3491. var editpiclink = response.data.data.editpiclink;
  3492. console.log("图片是什么",editpiclink)
  3493. this.rotationdatatwo = editpiclink;
  3494. }
  3495. })
  3496. },
  3497. getEnImagesThree(){
  3498. getEnImagesThree().then(response=>{
  3499. if(response.data.state == 1){
  3500. var conrotation = response.data.data.conrotation;
  3501. console.log("conrotation",conrotation)
  3502. this.rotationdataThree = response.data.data.conrotation;
  3503. }
  3504. })
  3505. },
  3506. editSingleVisible(id){
  3507. editSingleVisible(id,this.addform).then(response=>{
  3508. if(response.data.state == 1){
  3509. var editpiclink = response.data.data.editpiclink;
  3510. console.log("我的数据是",editpiclink)
  3511. if(editpiclink.piclink == 1){
  3512. this.showpiclink = false;
  3513. }
  3514. if(editpiclink.piclink == 2){
  3515. this.showpiclink = true;
  3516. }
  3517. this.singform = response.data.data.editpiclink;
  3518. }
  3519. })
  3520. },
  3521. UpdateSingleForm(formName){
  3522. this.$refs[formName].validate((valid)=>{
  3523. if(valid){
  3524. var sorts = this.singform.sort;
  3525. var sort = parseInt(sorts);
  3526. this.singform.sort = sort;
  3527. console.log("轮播图排序值:",sorts)
  3528. UpdateSingleForm(this.singform.id,this.singform).then(response=>{
  3529. if(response.data.state == 1){
  3530. this.singleVisible = false;
  3531. var editpiclink = response.data.data.editpiclink;
  3532. console.log("更改数据",editpiclink);
  3533. var patientEditpiclink = response.data.data.patientEditpiclink;
  3534. console.log("这个是什么运营呢",patientEditpiclink)
  3535. this.rotationdatatwo = response.data.data.patientEditpiclink;
  3536. }
  3537. })
  3538. }
  3539. })
  3540. },
  3541. saveDocInfo(formName){
  3542. this.$refs[formName].validate((valid)=>{
  3543. if(valid){
  3544. var sorts = this.editdocfrom.doc_sort
  3545. var sort = parseInt(sorts)
  3546. this.editdocfrom.doc_sort = sort
  3547. this.editdocfrom.docintroduction = this.$refs.neditor.content;
  3548. saveDocInfo(this.editdocfrom.id,this.editdocfrom).then(response=>{
  3549. if(response.data.state == 1){
  3550. var doctor = response.data.data.editdoctor;
  3551. var editdoctors = response.data.data.editdoctors;
  3552. console.log("返回数据",doctor);
  3553. this.editcenterDialogVisible = false;
  3554. this.$message.success("保存成功")
  3555. // this.getQueryDoCHead();
  3556. this.docimages = editdoctors;
  3557. }
  3558. })
  3559. }
  3560. })
  3561. },
  3562. clickimgs(linkid){
  3563. GetLinkAddressByLinkid(linkid).then(response=>{
  3564. if(response.data.state == 1){
  3565. var linkaddress = response.data.data.linkaddress;
  3566. console.log("返回数据是什么",linkaddress)
  3567. window.location.href = linkaddress.defineaddress;
  3568. }
  3569. })
  3570. // window.location.href = "http://www.baidu.com";
  3571. },
  3572. deleteDoctor(id,index){
  3573. this.$confirm('确认要删除吗?删除后信息将无法恢复','删除提示!',{
  3574. dangerouslyUseHTMLString:true,
  3575. confirmButtonText: '确定',
  3576. cancelButtonText: '取消',
  3577. type: 'warning'
  3578. }).then(()=>{
  3579. deleteDoctor(id,index).then(response=>{
  3580. if(response.data.state == 1){
  3581. this.docimages.splice(index,1)
  3582. }
  3583. }).catch(e=>{});
  3584. }).catch(e=>{});
  3585. },
  3586. SaveDocdata(formName){
  3587. var images = [];
  3588. for (let index = 0; index < this.docimages.length; index++) {
  3589. images.push(this.docimages[index].dochead);
  3590. }
  3591. this.doctorform.image = images,
  3592. this.$refs[formName].validate((valid)=>{
  3593. if(valid){
  3594. var sorts = this.doctorform.sort
  3595. var sort = parseInt(sorts)
  3596. this.doctorform.sort = sort
  3597. SaveDocdata(this.doctorform.id,this.doctorform).then(response=>{
  3598. if(response.data.state == 1){
  3599. var docinofo = response.data.data.docinfo;
  3600. var model = response.data.data.model;
  3601. console.log("返回数据",docinofo)
  3602. console.log("返回数据",model)
  3603. this.$message.success("保存成功")
  3604. this.docVisible = false;
  3605. this.getQueryNewModel();
  3606. this.getHospitaldata();
  3607. }
  3608. })
  3609. }
  3610. })
  3611. },
  3612. editdocVisible(){
  3613. this.editcenterDialogVisible = false;
  3614. },
  3615. SaveHospital(formName){
  3616. this.hispitalform.introduction = this.$refs.neditor.content;
  3617. var sort = this.hispitalform.sort
  3618. var sor = parseInt(sort)
  3619. this.hispitalform.sort = sor;
  3620. console.log("文章内容",this.$refs.neditor.content)
  3621. this.$refs[formName].validate((valid)=>{
  3622. if(valid){
  3623. SaveHospital(this.hispitalform.id,this.hispitalform).then(response=>{
  3624. if(response.data.state ==1){
  3625. var hospital = response.data.data.hospital;
  3626. var model = response.data.data.model;
  3627. this.hosipitalVisible = false;
  3628. this.getQueryNewModel();
  3629. this.getHospitaldata();
  3630. }
  3631. })
  3632. }
  3633. })
  3634. },
  3635. deleteModleById(id,index){
  3636. this.$confirm('确认要删除该组件吗?删除后该组件将无法恢复','删除提示!',{
  3637. dangerouslyUseHTMLString:true,
  3638. confirmButtonText: '确定',
  3639. cancelButtonText: '取消',
  3640. type: 'warning'
  3641. }).then(()=>{
  3642. deleteModleById(id).then(response=>{
  3643. if(response.data.state == 1){
  3644. this.modelform.splice(index,1);
  3645. this.getHospitaldata();
  3646. }
  3647. }).catch(e=>{});
  3648. }).catch(e=>{});
  3649. },
  3650. SaveOffice(formName){
  3651. this.officeform.introduction = this.$refs.neditor.content;
  3652. var sort = this.officeform.sort
  3653. var sor = parseInt(sort)
  3654. this.officeform.sort = sor;
  3655. console.log("数据模块",this.officeform)
  3656. this.$refs[formName].validate((valid)=>{
  3657. if(valid){
  3658. SaveOffice(this.officeform.id,this.officeform).then(response=>{
  3659. if(response.data.state==1){
  3660. var office = response.data.data.offices;
  3661. var model = response.data.data.model;
  3662. console.log("返回数据",office)
  3663. console.log("返回数据",model)
  3664. this.officeVisible = false;
  3665. this.getQueryNewModel();
  3666. this.getHospitaldata();
  3667. }
  3668. })
  3669. }
  3670. })
  3671. },
  3672. eidtmodel(id,modetype,index){
  3673. if(modetype == 1){
  3674. this.edialogVisible = true;
  3675. getRotationDetail(id).then(response=>{
  3676. if(response.data.state == 1){
  3677. var oldrotation = response.data.data.oldrotation;
  3678. console.log("oldrotation是什么",oldrotation)
  3679. this.rotationform = response.data.data.oldrotation;
  3680. // console.log("rotationform",this.rotationform)
  3681. var conrotation = response.data.data.conrotation;
  3682. this.rotationdataThree = response.data.data.conrotation;
  3683. console.log("conrotation是什么",conrotation);
  3684. }
  3685. })
  3686. }
  3687. if(modetype == 2){
  3688. this.HospitalIntroduction = true;
  3689. getHospitalIntroduction(id,this.hospitaladdress).then(response=>{
  3690. if(response.data.state == 1){
  3691. var ordmodel = response.data.data.ordmodel;
  3692. this.hospitaladdress = response.data.data.ordmodel;
  3693. var hosaddress = response.data.data.hosaddress;
  3694. console.log("hosaddress是什么",hosaddress)
  3695. this.hospitaladdress.hosaddress = hosaddress.address;
  3696. }
  3697. })
  3698. }
  3699. if(modetype == 3){
  3700. this.contact = true;
  3701. getConnecWay(id).then(response=>{
  3702. if(response.data.state == 1){
  3703. var ordmodel = response.data.data.ordmodel;
  3704. this.contactform = response.data.data.ordmodel;
  3705. }
  3706. })
  3707. }
  3708. if(modetype == 4){
  3709. this.dialogVisiblefour = true;
  3710. eidtmodel(id).then(response=>{
  3711. if(response.data.state==1){
  3712. var worktime = response.data.data.worktime;
  3713. this.workform = response.data.data.worktime;
  3714. console.log("返回数据",worktime);
  3715. }
  3716. });
  3717. }
  3718. if(modetype == 5){
  3719. this.dialogVisiblefive = true;
  3720. editRideWay(id).then(response=>{
  3721. if(response.data.state == 1){
  3722. var rideway = response.data.data.rideway;
  3723. this.rideform = response.data.data.rideway;
  3724. console.log("乘车方式返回数据",rideway);
  3725. }
  3726. })
  3727. }
  3728. },
  3729. AddOfficeThreeVisible(formName){
  3730. var sort = this.officeformtwo.sort;
  3731. var sor = parseInt(sort);
  3732. this.officeformtwo.sort = sor;
  3733. this.$refs[formName].validate((valid)=>{
  3734. if(valid){
  3735. AddOfficeThreeVisible(this.keform.id,this.officeformtwo).then(response=>{
  3736. if(response.data.state == 1){
  3737. var enviroimages = response.data.data.enviroimages;
  3738. var patientenviroimages = response.data.data.patientEnviroimages;
  3739. this.rotationdata = patientenviroimages;
  3740. // this.getEnImages();
  3741. }
  3742. })
  3743. }
  3744. })
  3745. },
  3746. AddOfficeTwo(formName){
  3747. var sort = this.officeformthree.sort
  3748. var sor = parseInt(sort);
  3749. this.officeformthree.sort = sor;
  3750. this.$refs[formName].validate((valid)=>{
  3751. if(valid){
  3752. AddOfficetTwo(this.officeformthree.id,this.officeformthree).then(response=>{
  3753. if(response.data.state == 1){
  3754. var enviroimages = response.data.data.enviroimages;
  3755. var patientEnviroimages = response.data.data.patientEnviroimages;
  3756. // console.log("娃哈哈",patientEnviroimages)
  3757. this.rotationdata = response.data.data.patientEnviroimages;
  3758. // this.getEnImages();
  3759. }
  3760. })
  3761. }
  3762. })
  3763. },
  3764. officetwoVisbile(id){
  3765. officetwoVisbile(id,this.officeformthree).then(response=>{
  3766. if(response.data.state == 1){
  3767. // this.officeformthree = response.data.data.enviroimages;
  3768. var enviroimages = response.data.data.enviroimages;
  3769. console.log("中秋是什么",enviroimages)
  3770. this.officeformthree.id = enviroimages.id;
  3771. this.officeformthree.sort = enviroimages.sort;
  3772. this.officeformthree.officeImages = enviroimages.enviroimages;
  3773. this.officeformthree.modelid = enviroimages.modeid;
  3774. }
  3775. })
  3776. },
  3777. deleteOfficeById(id,index){
  3778. deleteOfficeById(id,index).then(response=>{
  3779. if(response.data.state == 1){
  3780. this.rotationdata.splice(index,1)
  3781. }
  3782. })
  3783. },
  3784. SaveOfficeEnvironment(formName){
  3785. var sort = this.keform.sort
  3786. var sor = parseInt(sort)
  3787. this.keform.sort = sor;
  3788. var images = [];
  3789. for (let index = 0; index < this.rotationdata.length; index++) {
  3790. images.push (this.rotationdata[index].enviroimages);
  3791. }
  3792. this.keform.keImages = images;
  3793. this.$refs[formName].validate((valid)=>{
  3794. if(valid){
  3795. SaveOfficeEnvironment(this.keform.id,this.keform).then(response=>{
  3796. if(response.data.state == 1){
  3797. var patientOffenvironment = response.data.data.patientOffenvironment;
  3798. var model = response.data.data.model;
  3799. this.offficeEnviromentVisible = false;
  3800. this.getQueryNewModel();
  3801. this.getHospitaldata();
  3802. }
  3803. })
  3804. }
  3805. })
  3806. },
  3807. UpdatedArticeDetail(formName){
  3808. var sort = this.articeform.sort;
  3809. var sor = parseInt(sort);
  3810. this.articeform.sort = sor;
  3811. var number = this.articeform.number;
  3812. var numbers = parseInt(number);
  3813. this.articeform.number = numbers;
  3814. UpdatedArticeDetail(this.articeform.id,this.articeform).then(response=>{
  3815. if(response.data.state == 1){
  3816. var articlelist = response.data.data.articlelist;
  3817. var model = response.data.data.model;
  3818. this.getQueryNewModel();
  3819. this.getHospitaldata();
  3820. this.getArticlelist();
  3821. }
  3822. })
  3823. },
  3824. editActivit(formName){
  3825. var sort = this.activitform.sort;
  3826. var sor = parseInt(sort);
  3827. this.activitform.sort =sor;
  3828. var number = this.activitform.number;
  3829. var number = parseInt(number);
  3830. this.activitform.number = number;
  3831. this.$refs[formName].validate((valid)=>{
  3832. if(valid){
  3833. SaveActivit(this.activitform.id,this.activitform).then(response=>{
  3834. if(response.data.state == 1){
  3835. var addactivity = response.data.data.addactivity;
  3836. console.log("数据返回",addactivity)
  3837. this.activityVisible = false;
  3838. this.getQueryNewModel();
  3839. this.getHospitaldata();
  3840. this.getActivities();
  3841. }
  3842. })
  3843. }
  3844. })
  3845. },
  3846. getActivities(){
  3847. getActivities(this.Activitieslist).then(response=>{
  3848. if(response.data.state ==1){
  3849. var activity = response.data.data.activity;
  3850. this.Activitieslist = response.data.data.activity;
  3851. console.log("活动列表",activity);
  3852. console.log(this.Activitieslist)
  3853. }
  3854. })
  3855. },
  3856. getArticlelist(){
  3857. getArticlelist(this.Articlelist).then(response=>{
  3858. if(response.data.state ==1){
  3859. var articlelist = response.data.data.articlelists;
  3860. this.Articlelist = response.data.data.articlelists;
  3861. console.log("得到文章列表",this.Articlelist);
  3862. }
  3863. })
  3864. },
  3865. handleAvatarSuccesstwo(res,file){
  3866. this.editdocfrom.dochead = this.qiniuDomain + res.url;
  3867. },
  3868. beforeAvatarUploadtwo(file) {
  3869. var fileType = file.type
  3870. const isJPG = fileType.indexOf("image") > -1;
  3871. const isLt2M = file.size / 1024 / 1024 < 2;
  3872. if (!isJPG) {
  3873. this.$message.error("只能上传图片");
  3874. return false;
  3875. }
  3876. if (!isLt2M) {
  3877. this.$message.error("图片大小不能超过 2MB!");
  3878. return false;
  3879. }
  3880. var date = new Date()
  3881. var ext = getFileExtension(file.name)
  3882. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  3883. this.uploading = true;
  3884. this.loadingText = '封面图片上传中'
  3885. const _self = this
  3886. return new Promise((resolve, reject) => {
  3887. getToken().then(response => {
  3888. const token= response.data.data.uptoken
  3889. console.log("医生头像token是什么?",token)
  3890. _self._data.doctorDatatwo.token = token;
  3891. _self._data.doctorDatatwo.key = key;
  3892. resolve(true)
  3893. }).catch(err => {
  3894. reject(false)
  3895. this.uploading = false;
  3896. })
  3897. })
  3898. return isJPG && isLt2M;
  3899. },
  3900. handleAvatarSuccessthree(res,file){
  3901. this.officeformthree.officeImages = this.qiniuDomain + res.url;
  3902. },
  3903. beforeAvatarUploadthree(file){
  3904. var fileType = file.type
  3905. const isJPG = fileType.indexOf("image") > -1;
  3906. const isLt2M = file.size / 1024 / 1024 < 2;
  3907. if (!isJPG) {
  3908. this.$message.error("只能上传图片");
  3909. return false;
  3910. }
  3911. if (!isLt2M) {
  3912. this.$message.error("图片大小不能超过 2MB!");
  3913. return false;
  3914. }
  3915. var date = new Date()
  3916. var ext = getFileExtension(file.name)
  3917. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  3918. const _self = this
  3919. return new Promise((resolve, reject) => {
  3920. getToken().then(response => {
  3921. const tokentree = response.data.data.uptoken
  3922. console.log("科室token是什么?",tokentree)
  3923. _self._data.keData.token = tokentree;
  3924. _self._data.keData.key = key;
  3925. resolve(true)
  3926. }).catch(err => {
  3927. reject(false)
  3928. })
  3929. })
  3930. },
  3931. imageKeuSccesstwo(res,file){
  3932. console.log("图片路径",this.qiniuDomain + res.url)
  3933. this.officeformtwo.officeImages = this.qiniuDomain + res.url;
  3934. // this.keform.keImages.push(this.keform.keimages);
  3935. // console.log("图片数组",this.keform.keImages)
  3936. },
  3937. beforekeUpload(file){
  3938. var fileType = file.type
  3939. const isJPG = fileType.indexOf("image") > -1;
  3940. const isLt2M = file.size / 1024 / 1024 < 2;
  3941. if (!isJPG) {
  3942. this.$message.error("只能上传图片");
  3943. return false;
  3944. }
  3945. if (!isLt2M) {
  3946. this.$message.error("图片大小不能超过 2MB!");
  3947. return false;
  3948. }
  3949. var date = new Date()
  3950. var ext = getFileExtension(file.name)
  3951. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
  3952. const _self = this
  3953. return new Promise((resolve, reject) => {
  3954. getToken().then(response => {
  3955. const tokentree = response.data.data.uptoken
  3956. console.log("科室token是什么?",tokentree)
  3957. _self._data.keData.token = tokentree;
  3958. _self._data.keData.key = key;
  3959. resolve(true)
  3960. }).catch(err => {
  3961. reject(false)
  3962. })
  3963. })
  3964. },
  3965. deletemodle(id,index){
  3966. this.$confirm('确认要删除该模块么?删除后该条信息将无法恢复','删除提示!',{
  3967. dangerouslyUseHTMLString:true,
  3968. confirmButtonText: '确定',
  3969. cancelButtonText: '取消',
  3970. type: 'warning'
  3971. }).then(()=>{
  3972. deletemodle(id).then(response=>{
  3973. if(response.data.state == 1){
  3974. this.model.splice(index,1);
  3975. this.getOrderModel();
  3976. }
  3977. }).catch(e=>{});
  3978. }).catch(e=>{});
  3979. },
  3980. SaveWorkTime(formName){
  3981. var sorts = this.workform.sort
  3982. var sort = parseInt(sorts)
  3983. this.workform.sort = sort
  3984. this.$refs[formName].validate((valid)=>{
  3985. if(valid){
  3986. SaveWorkTime(this.workform.id,this.workform).then(response=>{
  3987. if(response.data.state == 1){
  3988. var patientWorktime = response.data.data.patientWorktime;
  3989. console.log("返回数据",patientWorktime);
  3990. this.dialogVisiblefour = false;
  3991. this.$message.success('数据保存成功');
  3992. this.GetUserdModel();
  3993. this.getOrderModel();
  3994. }
  3995. })
  3996. }
  3997. })
  3998. },
  3999. saverideway(formName){
  4000. var sorts = this.rideform.sort
  4001. var sort = parseInt(sorts)
  4002. this.rideform.sort = sort
  4003. this.$refs[formName].validate((valid)=>{
  4004. if(valid){
  4005. saverideway(this.rideform.id,this.rideform).then(response=>{
  4006. this.dialogVisiblefive = false;
  4007. if(response.data.state ==1 ){
  4008. var ridewaymodel = response.data.data.ridewaymodel;
  4009. console.log("返回数据",ridewaymodel);
  4010. // this.$message.success("数据保存成功");
  4011. this.GetUserdModel();
  4012. this.getOrderModel();
  4013. }
  4014. })
  4015. }
  4016. })
  4017. },
  4018. MagicClick(linkid){
  4019. GetMagicClickByLinkid(linkid).then(response=>{
  4020. if(response.data.state ==1){
  4021. var magiclink = response.data.data.magiclink;
  4022. console.log("magiclink",magiclink)
  4023. window.location.href = magiclink.linkaddress;
  4024. }
  4025. })
  4026. },
  4027. selectpiclink(id){
  4028. if(id == 1){
  4029. this.showpiclink = false;
  4030. }
  4031. if(id == 2){
  4032. this.showpiclink = true;
  4033. }
  4034. },
  4035. selectlinkType(id){
  4036. if(id == 1){
  4037. this.linkTypeShow = false;
  4038. this.zhanShow = false;
  4039. this.definelinkShow = false;
  4040. this.refform.contenttype = "";
  4041. }
  4042. if(id == 2){
  4043. this.linkTypeShow = false;
  4044. this.zhanShow = true;
  4045. this.definelinkShow = false;
  4046. this.refform.contenttype = "";
  4047. }
  4048. if(id == 3){
  4049. this.linkTypeShow = false;
  4050. this.zhanShow = false;
  4051. this.definelinkShow = true;
  4052. this.refform.contenttype = "";
  4053. }
  4054. },
  4055. selectlinkTypeTwo(id){
  4056. if(id == 1){
  4057. this.linkTypeShow = false;
  4058. this.zhanShow = false;
  4059. this.definelinkShow = false;
  4060. }
  4061. if(id == 2){
  4062. this.linkTypeShow = false;
  4063. this.zhanShow = true;
  4064. this.definelinkShow = false;
  4065. }
  4066. if(id == 3){
  4067. this.linkTypeShow = false;
  4068. this.zhanShow = false;
  4069. this.definelinkShow = true;
  4070. }
  4071. },
  4072. selectGender(id){
  4073. if(id == 1){
  4074. this.define = true;
  4075. }
  4076. if(id == 2){
  4077. this.define = false;
  4078. }
  4079. },
  4080. selectGendertwo(id){
  4081. if(id == 1){
  4082. this.definefive = true;
  4083. }
  4084. if(id == 2){
  4085. this.definefive = false;
  4086. }
  4087. },
  4088. selectItemThree(id){
  4089. if(id == 1){
  4090. this.definetwo = false;
  4091. this.definethree = false;
  4092. this.definefour = false;
  4093. this.navigationlinkform.navitionlinktype = "";
  4094. this.navigationlinkform.phone = "";
  4095. this.navigationlinkform.outstationlink = "";
  4096. this.navigationlinkform.linkaddress = "";
  4097. }
  4098. if(id==2){
  4099. this.definetwo = true;
  4100. this.definethree = false;
  4101. this.definefour = false;
  4102. this.navigationlinkform.phone = "";
  4103. this.navigationlinkform.outstationlink = "";
  4104. this.navigationlinkform.navitionlinktype = "";
  4105. this.navigationlinkform.linkaddress = "";
  4106. }
  4107. if(id==3){
  4108. this.definethree = true;
  4109. this.definetwo = false;
  4110. this.definefour = false;
  4111. this.navigationlinkform.navitionlinktype = "";
  4112. this.navigationlinkform.outstationlink = "";
  4113. this.navigationlinkform.phone = "";
  4114. this.navigationlinkform.linkaddress = "";
  4115. }
  4116. if(id==4){
  4117. this.definefour = true;
  4118. this.definetwo = false;
  4119. this.definethree = false;
  4120. this.navigationlinkform.navitionlinktype = "";
  4121. this.navigationlinkform.phone = "";
  4122. this.navigationlinkform.outstationlink = "";
  4123. this.navigationlinkform.linkaddress = "";
  4124. }
  4125. },
  4126. selectItem(id){
  4127. if(id == 1){
  4128. this.definetwo = false;
  4129. this.definethree = false;
  4130. this.definefour = false;
  4131. }
  4132. if(id==2){
  4133. this.definetwo = true;
  4134. this.definethree = false;
  4135. this.definefour = false;
  4136. }
  4137. if(id==3){
  4138. this.definethree = true;
  4139. this.definetwo = false;
  4140. this.definefour = false;
  4141. }
  4142. if(id==4){
  4143. this.definefour = true;
  4144. this.definetwo = false;
  4145. this.definethree = false;
  4146. }
  4147. },
  4148. selectItemEdit(id){
  4149. if(id == 1){
  4150. this.definetwo = false;
  4151. this.definethree = false;
  4152. this.definefour = false;
  4153. this.linkformtwo.instationlink = "";
  4154. this.linkformtwo.phone = "";
  4155. this.linkformtwo.outstationlink = "";
  4156. }
  4157. if(id==2){
  4158. this.definetwo = true;
  4159. this.definethree = false;
  4160. this.definefour = false;
  4161. this.linkformtwo.phone = "";
  4162. this.linkformtwo.outstationlink = "";
  4163. }
  4164. if(id==3){
  4165. this.definethree = true;
  4166. this.definetwo = false;
  4167. this.definefour = false;
  4168. this.linkformtwo.instationlink = "";
  4169. this.linkformtwo.outstationlink = "";
  4170. }
  4171. if(id==4){
  4172. this.definefour = true;
  4173. this.definetwo = false;
  4174. this.definethree = false;
  4175. this.linkformtwo.instationlink = "";
  4176. this.linkformtwo.phone = "";
  4177. }
  4178. },
  4179. selectItemTwo(id){
  4180. if(id == 1){
  4181. this.definetwo = false;
  4182. this.definethree = false;
  4183. this.definefour = false;
  4184. this.editnavigationlinkform.navitionlinktype = "";
  4185. this.editnavigationlinkform.phone = "";
  4186. this.editnavigationlinkform.outstationlink = "";
  4187. }
  4188. if(id==2){
  4189. this.definetwo = true;
  4190. this.definethree = false;
  4191. this.definefour = false;
  4192. this.editnavigationlinkform.navitionlinktype = "";
  4193. this.editnavigationlinkform.phone = "";
  4194. this.editnavigationlinkform.outstationlink = "";
  4195. this.editnavigationlinkform.linkaddress = "";
  4196. }
  4197. if(id==3){
  4198. this.definethree = true;
  4199. this.definetwo = false;
  4200. this.definefour = false;
  4201. this.editnavigationlinkform.navitionlinktype = "";
  4202. this.editnavigationlinkform.phone = "";
  4203. this.editnavigationlinkform.outstationlink = "";
  4204. this.editnavigationlinkform.linkaddress = "";
  4205. }
  4206. if(id==4){
  4207. this.definefour = true;
  4208. this.definetwo = false;
  4209. this.definethree = false;
  4210. this.editnavigationlinkform.navitionlinktype = 0;
  4211. this.editnavigationlinkform.phone = "";
  4212. this.editnavigationlinkform.outstationlink = "";
  4213. this.editnavigationlinkform.linkaddress = "";
  4214. }
  4215. },
  4216. qrcode () {
  4217. let qrcode = new QRCode('qrcode', {
  4218. width: 100,
  4219. height: 100, // 高度
  4220. // text:'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
  4221. text:'http://jk.test.sgjyun.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
  4222. })
  4223. console.log(qrcode)
  4224. },
  4225. //添加导航设置
  4226. addNavigation(formName){
  4227. this.$refs[formName].validate((valid)=>{
  4228. if(valid){
  4229. addNavigation(this.navigationform).then(response=>{
  4230. if(response.data.state == 1){
  4231. var navigation = response.data.data.navigation;
  4232. this.navigationform = "",
  4233. console.log("返回数据",navigation)
  4234. this.navigationVisible = false;
  4235. this.getNavigationList();
  4236. }
  4237. })
  4238. }
  4239. })
  4240. },
  4241. //获取导航列表
  4242. getNavigationList(){
  4243. getNavigationList().then(response=>{
  4244. if(response.data.state ==1){
  4245. var navigation = response.data.data.navigation;
  4246. this.navigationdata = response.data.data.navigation;
  4247. console.log("查询数据",navigation)
  4248. }
  4249. })
  4250. },
  4251. deleteNavigation(id,index){
  4252. this.$confirm('确认要删除该导航吗?删除后该条信息将无法恢复','删除提示!',{
  4253. dangerouslyUseHTMLString:true,
  4254. confirmButtonText: '确定',
  4255. cancelButtonText: '取消',
  4256. type: 'warning'
  4257. }).then(()=>{
  4258. deleteNavigation(id).then(response=>{
  4259. if( response.data.state == 1){
  4260. this.navigationdata.splice(index,1)
  4261. this.navigationdatatwo.splice(index,1)
  4262. }
  4263. }).catch(e=>{});
  4264. }).catch(e=>{});
  4265. },
  4266. editNavigation(id){
  4267. editNavigation(id).then(response=>{
  4268. if(response.data.state==1){
  4269. var navigation = response.data.data.navigation;
  4270. this.editNavigationform = response.data.data.navigation;
  4271. console.log("返回的导航数据",navigation);
  4272. }
  4273. })
  4274. },
  4275. SaveNavigation(formName){
  4276. this.$refs[formName].validate((valid)=>{
  4277. if(valid){
  4278. SaveNavigation(this.editNavigationform.id,this.editNavigationform).then(response=>{
  4279. if(response.data.state == 1){
  4280. var navigation = response.data.data.navigation;
  4281. var navigations = response.data.data.navigations;
  4282. this.navigationdatatwo = navigations;
  4283. console.log("旺仔小牛奶",navigation)
  4284. this.editNavigationVisible = false;
  4285. console.log("更新的数据",navigation);
  4286. this.getNavigationList();
  4287. }
  4288. })
  4289. }
  4290. })
  4291. },
  4292. changbutton(){
  4293. var content = document.getElementById('edit').innerHTML;
  4294. if(content == "编辑"){
  4295. document.getElementById('edit').innerHTML = "确认";
  4296. this.disabled = false;
  4297. this.shareshow = true;
  4298. }
  4299. if(content == "确认"){
  4300. document.getElementById('edit').innerHTML = "编辑";
  4301. this.disabled = true;
  4302. this.shareshow = false;
  4303. AddShareInfo(this.shareform).then(response=>{
  4304. if(response.data.state == 1){
  4305. var share = response.data.data.share;
  4306. this.getShareInfo();
  4307. console.log("数据返回",share);
  4308. }
  4309. })
  4310. }
  4311. },
  4312. getShareInfo(){
  4313. getShareInfo().then(response=>{
  4314. if(response.data.state == 1){
  4315. var share = response.data.data.share;
  4316. this.shareInfo = response.data.data.share;
  4317. this.sharefive = true;
  4318. this.sharepic = true;
  4319. console.log("返回分享数据",share)
  4320. }
  4321. })
  4322. },
  4323. returntop(){
  4324. this.scrollToTopTimer();
  4325. },
  4326. getArticleType(){
  4327. getArticleType(this.articeTypelist).then(response=>{
  4328. if(response.data.state == 1){
  4329. var category = response.data.data.category;
  4330. this.articeTypelist = response.data.data.category;
  4331. this.articeTypeOptions = response.data.data.category;
  4332. console.log("文章分类是什么",this.articeTypelist);
  4333. }
  4334. })
  4335. },
  4336. getAllConnecWay(){
  4337. getAllConnecWay(this.Connectways).then(response=>{
  4338. if(response.data.state == 1){
  4339. var connect = response.data.data.connect;
  4340. console.log("联系是什么",connect)
  4341. this.Connectways = response.data.data.connect;
  4342. console.log("方法试试",this.Connectways)
  4343. }
  4344. })
  4345. },
  4346. editConnecway(id){
  4347. editConnecway(id).then(response=>{
  4348. if(response.data.state == 1){
  4349. var connection = response.data.data.connection;
  4350. this.connectform = response.data.data.connection;
  4351. }
  4352. })
  4353. },
  4354. UpdateConnectform(formName){
  4355. this.$refs[formName].validate((valid)=>{
  4356. UpdateConnectform(this.connectform.id,this.connectform).then(response=>{
  4357. if(response.data.state == 1){
  4358. var connection = response.data.data.connection;
  4359. this.getAllConnecWay();
  4360. }
  4361. })
  4362. })
  4363. },
  4364. deleteConnecWay(id,index){
  4365. deleteConnecWay(id).then(response=>{
  4366. if(response.data.state == 1){
  4367. this.Connectways.splice(index,1)
  4368. }
  4369. })
  4370. },
  4371. UpdateContactform(formName){
  4372. var sort = this.contactform.sort;
  4373. var sorts = parseInt(sort);
  4374. this.contactform.sort = sorts;
  4375. this.$refs[formName].validate((valid)=>{
  4376. if(valid){
  4377. UpdateContactform(this.contactform.id,this.contactform).then(response=>{
  4378. if(response.data.state == 1){
  4379. var ordmodel = response.data.data.ordmodel;
  4380. var connectway = response.data.data.connectway;
  4381. this.getOrderModel();
  4382. this.GetUserdModel();
  4383. }
  4384. })
  4385. }
  4386. })
  4387. },
  4388. addConnectways(formName){
  4389. this.$refs[formName].validate((valid)=>{
  4390. if(valid){
  4391. addConnectways(this.contacthreeform).then(response=>{
  4392. if(response.data.state == 1){
  4393. var connection = response.data.data.connection;
  4394. this.getAllConnecWay();
  4395. }
  4396. })
  4397. }
  4398. })
  4399. },
  4400. UpdateHospitalAddress(formName){
  4401. var sort = this.hospitaladdress.sort;
  4402. var sorts = parseInt(sort)
  4403. this.hospitaladdress.sort = sorts;
  4404. this.$refs[formName].validate((valid)=>{
  4405. if(valid){
  4406. UpdateHospitalAddress(this.hospitaladdress.id,this.hospitaladdress).then(response=>{
  4407. if(response.data.state ==1){
  4408. var ordmodel = response.data.data.ordmodel;
  4409. var hosaddress = response.data.data.hosaddress;
  4410. this.getOrderModel();
  4411. this.GetUserdModel();
  4412. }
  4413. })
  4414. }
  4415. })
  4416. },
  4417. AddMacgicform(formName){
  4418. this.$refs[formName].validate((valid)=>{
  4419. if(valid){
  4420. AddMacgicform(this.macform.id,this.macgicform).then(response=>{
  4421. if(response.data.state == 1){
  4422. var editmargin = response.data.data.editmargin;
  4423. this.editImagesVisbile = false;
  4424. this.getMacImagesDetail();
  4425. this.macgicform = "";
  4426. }
  4427. })
  4428. }
  4429. })
  4430. },
  4431. deleteMacImagesDetail(id,index){
  4432. deleteMacImagesDetail(id).then(response=>{
  4433. if(response.data.state == 1){
  4434. this.macdataImages.splice(index,1);
  4435. }
  4436. })
  4437. },
  4438. EditMacImages(id){
  4439. getEditMacImageDetail(id).then(response=>{
  4440. if(response.data.state == 1){
  4441. var editmargin = response.data.data.editmargin;
  4442. console.log("editmargin",editmargin)
  4443. if(editmargin.jumpset == 1){
  4444. this.definefive = true;
  4445. }
  4446. if(editmargin.jumpset == 2){
  4447. this.definefive = false
  4448. }
  4449. this.editmacform = editmargin;
  4450. }
  4451. })
  4452. },
  4453. getMacImagesDetail(){
  4454. getMacImagesDetail(this.macform.id).then(response=>{
  4455. if(response.data.state == 1){
  4456. this.macdataImages = response.data.data.editmargin;
  4457. }
  4458. })
  4459. },
  4460. UpdateMacform(formName){
  4461. var sort = this.macform.sort;
  4462. var sorts = parseInt(sort);
  4463. this.macform.sort = sorts;
  4464. this.$refs[formName].validate((valid)=>{
  4465. if(valid){
  4466. UpdateMacform(this.macform.id,this.macform).then(response=>{
  4467. if(response.data.state == 1){
  4468. var model = response.data.data.model;
  4469. this.getMacImagesDetail();
  4470. this.getQueryNewModel();
  4471. this.getHospitaldata();
  4472. }
  4473. })
  4474. }
  4475. })
  4476. },
  4477. UpdateEditMacform(formName){
  4478. this.$refs[formName].validate((valid)=>{
  4479. if(valid){
  4480. UpdateEditMacform(this.editmacform.id,this.editmacform).then(response=>{
  4481. if(response.data.state == 1 ){
  4482. var editmargin = response.data.data.editmargin;
  4483. this.getMacImagesDetail();
  4484. }
  4485. })
  4486. }
  4487. })
  4488. },
  4489. getLikeMacAddressById(id){
  4490. getLikeMacAddressById(id,this.linkform).then(response=>{
  4491. if(response.data.state ==1){
  4492. var magiclink = response.data.data.magiclink;
  4493. this.linkformfive = response.data.data.magiclink;
  4494. console.log("中秋快乐",magiclink)
  4495. }
  4496. })
  4497. },
  4498. GetArticleName(id){
  4499. GetArticleName(id).then(response=>{
  4500. if(response.data.state == 1){
  4501. var articlelist = response.data.data.articlelist;
  4502. console.log("文章姓名列表",articlelist)
  4503. this.linkformfive.title = "";
  4504. this.articeTitlelist = articlelist;
  4505. }
  4506. })
  4507. },
  4508. getAllArticelist(){
  4509. GetAllArticelist().then(response=>{
  4510. if(response.data.state == 1){
  4511. var articles = response.data.data.articles;
  4512. console.log("article是什么",articles)
  4513. this.articeTitlelist = articles;
  4514. this.articeNamelist = articles;
  4515. }
  4516. })
  4517. },
  4518. UpdateLinkAddress(formName){
  4519. // if(this.linkformfive.instationlink == ""){
  4520. // this.linkformfive.instationlink = 0;
  4521. // }
  4522. var instationlink = this.linkformfive.instationlink;
  4523. var instationlinks = parseInt(instationlink);
  4524. this.linkformfive.instationlink = instationlinks;
  4525. this.linkformfive.linkaddress = this.linkformfive.instationlink;
  4526. console.log("哈哈哈哈哈哈哈", this.linkformfive.linkaddress)
  4527. this.$refs[formName].validate((valid)=>{
  4528. if(valid){
  4529. UpdateLinkAddress(this.linkformfive.id,this.linkformfive).then(response=>{
  4530. if(response.data.state == 1){
  4531. var magiclink = response.data.data.magiclink;
  4532. var model = response.data.data.model;
  4533. console.log("magiclink",magiclink)
  4534. console.log("model",model)
  4535. this.linkVisiblefour = false;
  4536. this.linkformfive.articetype = "";
  4537. this.linkformfive.instationlink = "";
  4538. this.linkformfive.phone = "";
  4539. this.linkformfive.outstationlink = "";
  4540. this.linkformfive.title = "";
  4541. this.editmacform.marginaddress = magiclink.linkaddress;
  4542. if(model.mode_type == 1){
  4543. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4544. }
  4545. if(model.mode_type == 2){
  4546. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4547. this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4548. }
  4549. if(model.mode_type == 3){
  4550. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4551. this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4552. }
  4553. if(model.mode_type == 4){
  4554. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4555. this.editmacform.marginaddress = "http:/jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4556. }
  4557. if(model.mode_type == 5){
  4558. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4559. }
  4560. if(model.mode_type == 6){
  4561. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4562. this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4563. }
  4564. if(model.mode_type == 7){
  4565. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4566. this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4567. }
  4568. if(model.mode_type == 8){
  4569. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4570. }
  4571. }
  4572. })
  4573. }
  4574. })
  4575. },
  4576. AddMacLinkAddress(formName){
  4577. if(this.linkformtwo.instationlink == ""){
  4578. this.linkformtwo.instationlink = 0;
  4579. }
  4580. var instationlink = this.linkformtwo.instationlink;
  4581. var instationlinks = parseInt(instationlink)
  4582. this.linkformtwo.instationlink = instationlinks;
  4583. // this.linkformtwo.linkaddress = this.linkformtwo.instationlink;
  4584. this.$refs[formName].validate((valid)=>{
  4585. if(valid){
  4586. AddMacLinkAddress(this.linkformtwo).then(response=>{
  4587. if(response.data.state == 1){
  4588. this.linkVisibletwo = false;
  4589. var magiclink = response.data.data.magiclink;
  4590. console.log("magiclink",magiclink)
  4591. var model = response.data.data.model;
  4592. console.log("model",model);
  4593. if(model.mode_type == 1){
  4594. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4595. }
  4596. if(model.mode_type == 2){
  4597. // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4598. this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4599. }
  4600. if(model.mode_type == 3){
  4601. // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4602. this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4603. }
  4604. if(model.mode_type == 4){
  4605. // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4606. this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4607. }
  4608. if(model.mode_type == 5){
  4609. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4610. }
  4611. if(model.mode_type == 6){
  4612. // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4613. this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4614. }
  4615. if(model.mode_type == 7){
  4616. // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4617. this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4618. }
  4619. if(model.mode_type == 8){
  4620. // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
  4621. }
  4622. }
  4623. })
  4624. }
  4625. })
  4626. },
  4627. GetLinkAddress(id){
  4628. GetLinkAddress(id).then(response=>{
  4629. if(response.data.state == 1){
  4630. var linkaddress = response.data.data.linkaddress;
  4631. this.refform = linkaddress;
  4632. console.log("中秋快乐",linkaddress)
  4633. }
  4634. })
  4635. },
  4636. GetAllActivity(){
  4637. GetAllActivity().then(response=>{
  4638. if(response.data.state == 1){
  4639. var activtity = response.data.data.activtity;
  4640. console.log("所有活动",activtity)
  4641. this.articeNamelist = response.data.data.activtity;
  4642. }
  4643. })
  4644. },
  4645. addNavigationlinkform(formName){
  4646. var navitionlinktype = this.navigationlinkform.navitionlinktype;
  4647. console.log("navitionlinktype",navitionlinktype)
  4648. if(navitionlinktype == ""){
  4649. navitionlinktype = 0;
  4650. }
  4651. var navitionlinktype = parseInt(navitionlinktype)
  4652. this.navigationlinkform.navitionlinktype = navitionlinktype;
  4653. console.log('地址',this.navigationlinkform.navitionlinktype)
  4654. if(this.navigationlinkform.phone == ""){
  4655. this.navigationlinkform.phone = '0'+this.navigationlinkform.phone;
  4656. }
  4657. if(this.navigationlinkform.outstationlink == ""){
  4658. this.navigationlinkform.outstationlink = '0'+this.navigationlinkform.outstationlink;
  4659. }
  4660. if(this.navigationlinkform.navitionlinktype == 1){
  4661. // this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
  4662. this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
  4663. }
  4664. if(this.navigationlinkform.navitionlinktype == 2){
  4665. this.navigationlinkform.linkaddress = "http://shop.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&fxtoken=bdc5659cbd1bd67baa9af215b0d6ae4c&fxorgid=3877&timestamp=1571050598&fxadmin=185&wxref=mp.weixin.qq.com#wechat_redirect";
  4666. }
  4667. if(this.navigationlinkform.navitionlinktype == 3){
  4668. // this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/contactus?orgid="+this.$store.getters.xt_user.org_id;
  4669. this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/contactus?orgid="+this.$store.getters.xt_user.org_id;
  4670. }
  4671. this.$refs[formName].validate((valid)=>{
  4672. if(valid){
  4673. addNavigationlinkform(this.navigationlinkform).then(response=>{
  4674. if(response.data.state == 1){
  4675. this.linkVisible = false;
  4676. var navgationlink = response.data.data.navgationlink;
  4677. console.log("address",navgationlink);
  4678. if(navgationlink.phone == "" && navgationlink.outstationlink == ""){
  4679. this.navigationform.navigationaddress = navgationlink.linkaddress;
  4680. }
  4681. if(navgationlink.outstationlink == "" && navgationlink.linkaddress == ""){
  4682. this.navigationform.navigationaddress = navgationlink.phone;
  4683. }
  4684. if(navgationlink.phone == "" && navgationlink.linkaddress == ""){
  4685. this.navigationform.navigationaddress = navgationlink.outstationlink;
  4686. }
  4687. this.navigationform.linkid = navgationlink.id;
  4688. this.navigationform.linktype = navgationlink.linktype;
  4689. }
  4690. })
  4691. }
  4692. })
  4693. },
  4694. SetlinkAddress(id){
  4695. getNavgitionlinkAddress(id).then(response=>{
  4696. if(response.data.state == 1){
  4697. var navgationlink = response.data.data.navgationlink;
  4698. console.log("navgationlink是什么",navgationlink)
  4699. this.editnavigationlinkform = navgationlink;
  4700. this.editnavigationlinkform.id = navgationlink.id;
  4701. if(navgationlink.linktype == 1){
  4702. this.definetwo = false;
  4703. this.definethree = false;
  4704. this.definefour = false;
  4705. }
  4706. if(navgationlink.linktype == 2){
  4707. this.definethree = false;
  4708. this.definefour = false;
  4709. this.definetwo = true;
  4710. }
  4711. if(navgationlink.linktype == 3){
  4712. this.definetwo = false;
  4713. this.definefour = false;
  4714. this.definethree = true;
  4715. }
  4716. if(navgationlink.linktype == 4){
  4717. this.definetwo = false;
  4718. this.definethree = false;
  4719. this.definefour = true;
  4720. }
  4721. }
  4722. })
  4723. },
  4724. UpdateEditNavigationLinkform(formName){
  4725. if(this.editnavigationlinkform.navitionlinktype == ""){
  4726. this.editnavigationlinkform.navitionlinktype = 0;
  4727. }
  4728. var navigationlinktype = this.editnavigationlinkform.navitionlinktype;
  4729. console.log("navigationlinktype",navigationlinktype)
  4730. var navigationlinktypes = parseInt(navigationlinktype)
  4731. this.editnavigationlinkform.navitionlinktype = navigationlinktypes;
  4732. if(this.editnavigationlinkform.navitionlinktype == 1){
  4733. // this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
  4734. this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
  4735. }
  4736. if(this.editnavigationlinkform.navitionlinktype == 2){
  4737. this.editnavigationlinkform.linkaddress = "http://shop.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&fxtoken=bdc5659cbd1bd67baa9af215b0d6ae4c&fxorgid=3877&timestamp=1571050598&fxadmin=185&wxref=mp.weixin.qq.com#wechat_redirect";
  4738. // this.editnavigationlinkform.linkaddress = "http://shop.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&fxtoken=bdc5659cbd1bd67baa9af215b0d6ae4c&fxorgid=3877&timestamp=1571050598&fxadmin=185&wxref=mp.weixin.qq.com#wechat_redirect";
  4739. }
  4740. if(this.editnavigationlinkform.navitionlinktype == 3){
  4741. // this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
  4742. this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
  4743. }
  4744. this.$refs[formName].validate(response=>{
  4745. UpdateEditNavigationLinkform(this.editnavigationlinkform.id,this.editnavigationlinkform).then(response=>{
  4746. if(response.data.state == 1){
  4747. this.dialogVisible = false;
  4748. var navgationlink = response.data.data.navgationlink;
  4749. this.editNavigationform.linkid = navgationlink.id;
  4750. this.editNavigationform.linktype = navgationlink.linktype;
  4751. console.log("navgationlink",navgationlink)
  4752. console.log(this.editNavigationform.linkid)
  4753. if(navgationlink.outstationlink == "" && navgationlink.phone == ""){
  4754. this.editNavigationform.navaddress = navgationlink.linkaddress;
  4755. }
  4756. if(navgationlink.linkaddress == "" && navgationlink.outstationlink == ""){
  4757. this.editNavigationform.navaddress = navgationlink.phone;
  4758. }
  4759. if(navgationlink.linkaddress == "" && navgationlink.phone == ""){
  4760. this.editNavigationform.navaddress = navgationlink.outstationlink;
  4761. }
  4762. }
  4763. })
  4764. })
  4765. },
  4766. scrollToTop() {
  4767. this.scrollTop = document.getElementById('target').scrollTop
  4768. this.scrollTop = document.getElementById('targettwo').scrollTop
  4769. this.scrollTop = document.getElementById('targetthre').scrollTop
  4770. this.scrollTop = document.getElementById('targetfour').scrollTop
  4771. this.scrollTop = document.getElementById('targetfive').scrollTop
  4772. this.scrollTop = document.getElementById('targetsix').scrollTop
  4773. },
  4774. backTop() {
  4775. this.timer = setInterval(()=>{
  4776. this.scrollToTopTimer()
  4777. },20)
  4778. },
  4779. scrollToTopTimer() {
  4780. let scrollTop = this.scrollTop
  4781. console.log("scrollTop是什么?",scrollTop)
  4782. if(scrollTop > 0) {
  4783. scrollTop -= 100
  4784. if(scrollTop <= 0) {
  4785. scrollTop = 0
  4786. clearInterval(this.timer)
  4787. }
  4788. }
  4789. document.getElementById('target').scrollTop = scrollTop
  4790. document.getElementById('targettwo').scrollTop = scrollTop
  4791. document.getElementById('targetthree').scrollTop = scrollTop
  4792. document.getElementById('targetfour').scrollTop = scrollTop
  4793. document.getElementById('targetfive').scrollTop = scrollTop
  4794. document.getElementById('targetsix').scrollTop = scrollTop
  4795. },
  4796. getQueryDocInfo(){
  4797. getQueryDocInfo().then(response=>{
  4798. if(response.data.state==1){
  4799. this.docnames = response.data.data.doctor;
  4800. console.log("获取医生信息",response.data.data.doctor)
  4801. }
  4802. })
  4803. },
  4804. change(id){
  4805. change(id).then(response=>{
  4806. if(response.data.state == 1){
  4807. var docinfo = response.data.data.docinfo;
  4808. this.eidtDoctorform = response.data.data.docinfo;
  4809. console.log("编辑医生返回数据",docinfo);
  4810. }
  4811. })
  4812. },
  4813. AddDoctorInfoTwo(formName){
  4814. var sort = this.eidtDoctorform.sort;
  4815. var sorts = parseInt(sort);
  4816. this.eidtDoctorform.sort = sorts;
  4817. console.log("排序值",sorts)
  4818. this.$refs[formName].validate((valid)=>{
  4819. if(valid){
  4820. AddDoctorInfoTwo(this.doctorform.modleid,this.eidtDoctorform).then(response=>{
  4821. if(response.data.state == 1){
  4822. this.centerDialogVisible = false;
  4823. var editdoctor = response.data.data.editdoctor;
  4824. this.docimages = response.data.data.editdoctors;
  4825. }
  4826. })
  4827. }
  4828. })
  4829. },
  4830. GetNavigationData(){
  4831. GetNavigationData().then(response=>{
  4832. if(response.data.state == 1){
  4833. var navigation = response.data.data.navigation;
  4834. for (let index = 0; index < navigation.length; index++) {
  4835. navigation[0].nonavimages = "https://images.shengws.com/2089_o_1571990714383.png";
  4836. }
  4837. console.log("navigation是设么",navigation)
  4838. this.navigationdatatwo = navigation;
  4839. }
  4840. })
  4841. },
  4842. getAllModelTitle(){
  4843. getAllModelTitle().then(response=>{
  4844. if(response.data.state == 1){
  4845. var patientModels = response.data.data.patientModels;
  4846. this.modelTtile = patientModels;
  4847. console.log("模块标题是什么",patientModels)
  4848. }
  4849. })
  4850. },
  4851. callPhone(title,address){
  4852. if(title == "首页"){
  4853. this.modelshow = false
  4854. this.modelshowtwo = true;
  4855. this.getHospitaldata();
  4856. }
  4857. if(title == "联系我们"){
  4858. this.modelshowtwo = false;
  4859. this.modelshow = true;
  4860. this.getOrderModel();
  4861. }
  4862. if(title == "在线客服"){
  4863. window.location.href = 'tel://'+address+'';
  4864. }
  4865. if(title == "微商城"){
  4866. window.location.href = address;
  4867. }
  4868. },
  4869. GetDoctorDetail(id){
  4870. this.docshow = false;
  4871. this.docshowinfo = true;
  4872. this.returnshow = true;
  4873. GetDoctorDetail(id).then(response=>{
  4874. if(response.data.state ==1){
  4875. var editdoctor = response.data.data.editdoctor;
  4876. if(editdoctor.doc_postion == 1){
  4877. editdoctor.doc_postion = "医士"
  4878. }
  4879. if(editdoctor.doc_postion == 2){
  4880. editdoctor.doc_postion = "医师"
  4881. }
  4882. if(editdoctor.doc_postion == 3){
  4883. editdoctor.doc_postion = "住院医生"
  4884. }
  4885. if(editdoctor.doc_postion == 4){
  4886. editdoctor.doc_postion = "主治医生"
  4887. }
  4888. if(editdoctor.doc_postion == 5){
  4889. editdoctor.doc_postion = "副主任医生"
  4890. }
  4891. if(editdoctor.doc_postion == 6){
  4892. editdoctor.doc_postion = "主任医师"
  4893. }
  4894. if(editdoctor.doc_postion == 7){
  4895. editdoctor.doc_postion = "护士"
  4896. }
  4897. if(editdoctor.doc_postion == 8){
  4898. editdoctor.doc_postion = "护师"
  4899. }
  4900. if(editdoctor.doc_postion == 9){
  4901. editdoctor.doc_postion = "主管护师"
  4902. }
  4903. if(editdoctor.doc_postion == 10){
  4904. editdoctor.doc_postion = "副主任护师"
  4905. }
  4906. if(editdoctor.doc_postion == 11){
  4907. editdoctor.doc_postion = "主任护师"
  4908. }
  4909. this.editdoctor = editdoctor;
  4910. console.log('医生详情是',editdoctor)
  4911. }
  4912. })
  4913. },
  4914. GetArticleListDetail(id){
  4915. this.ArticlelistShow = false;
  4916. this.articlelistshowinfo = true;
  4917. this.returnshow = true;
  4918. GetArticleListDetail(id).then(response=>{
  4919. if(response.data.state ==1){
  4920. var articles = response.data.data.articles;
  4921. console.log("articels",articles)
  4922. this.articlistinfo = articles;
  4923. }
  4924. })
  4925. },
  4926. ActivitiesListInfo(id){
  4927. this.ActivitieslistShow = false;
  4928. this.activitesShowinfo = true;
  4929. this.returnshow = true;
  4930. ActivitiesListInfo(id).then(response=>{
  4931. if(response.data.state == 1){
  4932. var activity = response.data.data.activity
  4933. console.log("activity",activity)
  4934. this.activitiesInfo = activity;
  4935. }
  4936. })
  4937. },
  4938. // returnClick(){
  4939. // this.docshowinfo = false;
  4940. // this.articlelistshowinfo = false;
  4941. // this.activitesShowinfo = false;
  4942. // this.returnshow = false;
  4943. // this.docshow = true;
  4944. // this.ArticlelistShow = true;
  4945. // this.ActivitieslistShow = true;
  4946. // }
  4947. },
  4948. destroyed(){
  4949. clearInterval(this.timer)
  4950. document.getElementById('target').removeEventListener('scroll', this.scrollToTop);
  4951. document.getElementById('targettwo').removeEventListener('scroll', this.scrollToTop);
  4952. document.getElementById('targetthree').removeEventListener('scroll', this.scrollToTop);
  4953. document.getElementById('targetfour').removeEventListener('scroll', this.scrollToTop);
  4954. document.getElementById('targetfive').removeEventListener('scroll', this.scrollToTop);
  4955. document.getElementById('targetsix').removeEventListener('scroll', this.scrollToTop);
  4956. },
  4957. created(){
  4958. this.GetUserdModel();
  4959. this.getQueryNewModel();
  4960. this.getHospital();
  4961. this.getNavigationList();
  4962. this.getShareInfo();
  4963. this.getHospitaldata();
  4964. this.getOrderModel();
  4965. this.GetRotationImages();
  4966. this.getEditImages();
  4967. this.getActivities();
  4968. this.getArticlelist();
  4969. this.getArticleType();
  4970. this.getEnImages();
  4971. this.getAllConnecWay();
  4972. this.getEnImagesTwo();
  4973. this.getEnImagesThree();
  4974. this.getMacImagesDetail();
  4975. this.getAllArticelist();
  4976. this.GetAllActivity();
  4977. this.GetNavigationData();
  4978. this.getAllModelTitle();
  4979. },
  4980. // updated(){
  4981. // let obj = document.getElementById('content');
  4982. // // console.log("obj谁什么?",obj)
  4983. // let imgs = obj.getElementsByTagName('img');
  4984. // console.log("imgs是什么?",imgs)
  4985. // for(let i=0;i<imgs.length;i++){
  4986. // imgs[i].style.width = '332px';
  4987. // imgs[i].style.height = '100px';
  4988. // }
  4989. // let ycontent = document.getElementById('ycontent');
  4990. // let ximgs = ycontent.getElementsByTagName('img');
  4991. // for(let j=0;j<ximgs.length;j++){
  4992. // ximgs[j].style.width = '332px';
  4993. // ximgs[j].style.height = '100px';
  4994. // }
  4995. // },
  4996. mounted(){
  4997. this.qrcode();
  4998. this.initSwiper();
  4999. },
  5000. updated(){
  5001. this.initSwiper();
  5002. // this.$previewRefresh();
  5003. }
  5004. }
  5005. </script>
  5006. <style rel="stylesheet/scss" lang="scss" scoped>
  5007. @import "../../assets/styles/mixin.scss";
  5008. .done{
  5009. position: absolute;
  5010. width: 80px;
  5011. height: 20px;
  5012. // border:solid 1px red;
  5013. margin-left: 430px;
  5014. margin-top: 460px;
  5015. font-size: 14px;
  5016. }
  5017. .done2{
  5018. position: absolute;
  5019. width: 80px;
  5020. height: 20px;
  5021. // border:solid 1px red;
  5022. margin-left: 430px;
  5023. margin-top: 510px;
  5024. font-size: 14px;
  5025. }
  5026. .dfont2{
  5027. position: absolute;
  5028. width: 40px;
  5029. height: 40px;
  5030. // border:solid 1px red;
  5031. margin-left: 390px;
  5032. margin-top: 500px;
  5033. }
  5034. .dfont{
  5035. position: absolute;
  5036. width: 40px;
  5037. height: 40px;
  5038. // border:solid 1px red;
  5039. margin-top: 450px;
  5040. margin-left: 390px;
  5041. // margin-left: 380px;
  5042. // margin-top: -200px;
  5043. }
  5044. .dfon{
  5045. position: absolute;
  5046. width: 70px;
  5047. height: 20px;
  5048. // border:solid 1px red;
  5049. margin-top: 675px;
  5050. margin-left: 920px;
  5051. }
  5052. .dtwo{
  5053. position: absolute;
  5054. width:50px;
  5055. height: 50px;
  5056. // border:solid 1px red;
  5057. margin-top: 670px;
  5058. }
  5059. .used {
  5060. ul {
  5061. li {
  5062. height: 44px;
  5063. line-height: 44px;
  5064. font-size: 14px;
  5065. display: flex;
  5066. color: #606266;
  5067. align-items: center;
  5068. justify-content: space-between;
  5069. border-bottom: 1px solid #e4e7ed;
  5070. i {
  5071. font-size: 19px;
  5072. margin: 0 6px;
  5073. cursor: pointer;
  5074. }
  5075. }
  5076. }
  5077. }
  5078. .el-row {
  5079. margin-bottom: 20px;
  5080. &:last-child {
  5081. margin-bottom: 0;
  5082. }
  5083. }
  5084. .el-col {
  5085. border-radius: 4px;
  5086. }
  5087. .qrcode{
  5088. position: absolute;
  5089. width: 110px;
  5090. height: 110px;
  5091. // border: solid 1px red;
  5092. margin-left: 400px;
  5093. margin-top: 50px;
  5094. }
  5095. .share{
  5096. position: relative;
  5097. width: 350px;
  5098. height: 720px;
  5099. border: solid 1px black;
  5100. // margin-left: -10px;
  5101. margin-top: 10px;
  5102. margin-left: 100px;
  5103. }
  5104. .share2{
  5105. position: absolute;
  5106. width: 348px;
  5107. height: 50px;
  5108. // border: solid 1px red;
  5109. background-color: #333333;
  5110. color: white;
  5111. }
  5112. .share3{
  5113. position: absolute;
  5114. margin-left: 150px;
  5115. margin-top: 15px;
  5116. }
  5117. .wrapper {
  5118. width: 314px;
  5119. // border: solid 1px green;
  5120. height: 660px;
  5121. }
  5122. .more{
  5123. position: absolute;
  5124. font-size: 14px;
  5125. color:black;
  5126. margin-left: 220px;
  5127. margin-top: -22px;
  5128. }
  5129. .one{
  5130. display: flex;
  5131. justify-content: space-around;
  5132. }
  5133. .phone{
  5134. float: left;
  5135. width: 380px;
  5136. height: 750px;
  5137. background: url(../../assets/img/phone.png) 50% no-repeat;
  5138. margin-top: -8px;
  5139. // border:solid 1px red;
  5140. }
  5141. .macgic{
  5142. @include border-top;
  5143. position: absolute;
  5144. width: 319px;
  5145. height:60px;
  5146. background-color: white;
  5147. // border: solid 1px #333333;
  5148. // margin-left: 32px;
  5149. margin-top: 652px;
  5150. z-index: 999;
  5151. // border:solid 1px red;
  5152. }
  5153. .macgicone{
  5154. // position: absolute;
  5155. width: 30px;
  5156. height: 50px;
  5157. // border: solid 1px red;
  5158. margin-top: 10px;
  5159. margin-left: 40px;
  5160. display: inline-block;
  5161. }
  5162. .macgicfive{
  5163. width: 28px;
  5164. height: 20px;
  5165. // border: solid 1px blue;
  5166. margin-bottom: 8px;
  5167. }
  5168. .macgictwo{
  5169. position: absolute;
  5170. width: 30px;
  5171. height: 30px;
  5172. // border:solid 1px red;
  5173. margin-top:15px;
  5174. margin-left:100px;
  5175. }
  5176. .macgicsix{
  5177. position: absolute;
  5178. width: 60px;
  5179. height: 20px;
  5180. // border:solid 1px red;
  5181. font-size: 14px;
  5182. margin-left: -15px;
  5183. text-align: center;
  5184. // margin-left: 5px;
  5185. }
  5186. .macgicthree{
  5187. position: absolute;
  5188. width: 30px;
  5189. height: 30px;
  5190. // border:solid 1px red;
  5191. margin-left: 170px;
  5192. margin-top: 15px;
  5193. }
  5194. .macgicfour{
  5195. position: absolute;
  5196. width:30px;
  5197. height: 30px;
  5198. // border:solid 1px red;
  5199. margin-left: 240px;
  5200. margin-top: 15px;
  5201. }
  5202. .time{
  5203. width: 34px;
  5204. height: 20px;
  5205. margin-top: 44px;
  5206. margin-left: 55px;
  5207. font-size: 8px;
  5208. }
  5209. .xinhao{
  5210. width: 50px;
  5211. height: 50px;
  5212. background: url(../../assets/img/xinhao.png) 30% no-repeat;
  5213. margin-top: -40px;
  5214. margin-left: 270px;
  5215. background-size: 15px;
  5216. }
  5217. .wifi{
  5218. background: url(../../assets/img/wifi.png) 30% no-repeat;
  5219. width: 70px;
  5220. height: 60px;
  5221. background-size: 10px;
  5222. margin-top: -55px;
  5223. margin-left: 280px;
  5224. }
  5225. .dian{
  5226. background: url(../../assets/img/dian.png) 30% no-repeat;
  5227. width: 70px;
  5228. height: 60px;
  5229. background-size: 12px;
  5230. margin-top: -58px;
  5231. margin-left: 300px;
  5232. }
  5233. .mint-swipe{
  5234. height: 200px;
  5235. width: 318px;
  5236. top:-22px;
  5237. }
  5238. .mint-swipe-item{
  5239. &:nth-child(1){
  5240. background-color: white;
  5241. }
  5242. &:nth-child(2){
  5243. background-color: white;
  5244. }
  5245. &:nth-child(3){
  5246. background-color: white;
  5247. }
  5248. }
  5249. .lunimage{
  5250. width: 390px;
  5251. height: 180px;
  5252. // border:solid 1px red;
  5253. margin-left: -40px;
  5254. }
  5255. .scroll{
  5256. margin-left: 33px;
  5257. width: 314px;
  5258. height: 660px;
  5259. border: 1px;
  5260. margin-top:-22px;
  5261. overflow-y: auto;
  5262. position: absolute;
  5263. // border: 1px solid red;
  5264. }
  5265. ::-webkit-scrollbar{width:0px;}
  5266. ::-webkit-scrollbar-track{background-color:white;}
  5267. ::-webkit-scrollbar-thumb{background-color:white;}
  5268. ::-webkit-scrollbar-thumb:hover {background-color:white}
  5269. ::-webkit-scrollbar-thumb:active {background-color:white}
  5270. #new{
  5271. position: relative;
  5272. width: 150px;
  5273. height: 200px;
  5274. border: solid red;
  5275. margin-top: -50px;
  5276. }
  5277. officexiangqing{
  5278. position: relative;
  5279. width: 315px;
  5280. height: 650px;
  5281. border: 1px solid red;
  5282. margin-left: 32px;
  5283. margin-top: -22px;
  5284. font-size: 14px;
  5285. overflow-y: auto;
  5286. color: black;
  5287. }
  5288. .backindex{
  5289. width: 50px;
  5290. height: 50px;
  5291. border: solid 1px red;
  5292. background-color: red;
  5293. margin-left: 850px;
  5294. margin-top: 350px;
  5295. }
  5296. .myjsfont{
  5297. font-size: 14px;
  5298. margin-top: -125px;
  5299. margin-bottom: 100px;
  5300. margin-left: 8px;
  5301. color: #FF6600;
  5302. }
  5303. .addbutton{
  5304. width: 104px;
  5305. height: 40px;
  5306. font-size: 14px;
  5307. color: #FF6600;
  5308. margin-top: 50px;
  5309. margin-left: 150px;
  5310. // border: solid 1px red;
  5311. }
  5312. .addbuttontwo{
  5313. width: 104px;
  5314. height: 40px;
  5315. font-size: 14px;
  5316. color: #FF6600;
  5317. margin-top: 300px;
  5318. margin-left: 120px;
  5319. }
  5320. //编辑名医样式
  5321. .avatar-uploader{
  5322. border: 1px dashed #d9d9d9;
  5323. border-radius: 6px;
  5324. cursor: pointer;
  5325. position: relative;
  5326. overflow: hidden;
  5327. width: 100px;
  5328. height: 100px;
  5329. border-color: #409EFF;
  5330. // text-align: center;
  5331. // font-size: 14px;
  5332. }
  5333. .avatar-uploader-icon {
  5334. font-size: 28px;
  5335. color: #8c939d;
  5336. width: 50px;
  5337. height: 50px;
  5338. line-height: 50px;
  5339. margin-left: 25px;
  5340. margin-top: 25px;
  5341. text-align: center;
  5342. }
  5343. // 样式
  5344. .clickmore{
  5345. width: 200px;
  5346. height: 200px;
  5347. border: solid 1px red;
  5348. }
  5349. .parent{
  5350. width: 320px;
  5351. height: 230px;
  5352. /* background-color: rgba(204, 204, 204, 1); */
  5353. }
  5354. .box{
  5355. width: 320px;
  5356. height: 8px;
  5357. background-color: rgba(204, 204, 204, 1);
  5358. }
  5359. .modeone{
  5360. width:318px;
  5361. height: 9.4375rem;
  5362. // border:solid 1px red ;
  5363. }
  5364. .oldmodeone{
  5365. font-size: 1rem;
  5366. font-weight: 600;
  5367. color: rgba(7, 18, 40, 1);
  5368. width: 318px;
  5369. height: 100%;
  5370. // border: solid 1px red;
  5371. margin-bottom: 5px;
  5372. line-height: 2.375rem;
  5373. }
  5374. .swipertwo{
  5375. width:318px;
  5376. height: 9.4375rem;
  5377. margin-top: 25px;
  5378. // border:solid 1px red;
  5379. }
  5380. .modetwo{
  5381. width: 320px;
  5382. // border:solid 1px red;
  5383. // height: 250px;
  5384. // border:solid 1px red;
  5385. /* border: solid 1px red; */
  5386. /* background-color: red; */
  5387. }
  5388. .modethree{
  5389. width: 320px;
  5390. // height: 230px;
  5391. // /* border: solid 1px blue; */
  5392. // /* background-color: blue; */
  5393. }
  5394. .modefour{
  5395. width:320px;
  5396. height: 230px;
  5397. }
  5398. .modefive{
  5399. width:320px;
  5400. height: 200px;
  5401. // border: solid 1px red;
  5402. }
  5403. .modesix{
  5404. width:320px;
  5405. min-height: 250px;
  5406. // border: solid 1px red;
  5407. margin-bottom: 5px;
  5408. }
  5409. .modeseven{
  5410. width:320px;
  5411. min-height: 250px;
  5412. margin-bottom: 5px;
  5413. }
  5414. .actilist{
  5415. width:300px;
  5416. height: 90px;
  5417. // border:solid 1px red;
  5418. margin-left: 5px;
  5419. }
  5420. .acthead{
  5421. width: 80px;
  5422. height: 80px;
  5423. // border: solid 1px red;
  5424. margin-left: 5px;
  5425. margin-top: 5px;
  5426. }
  5427. .actcontent{
  5428. width: 200px;
  5429. height: 80px;
  5430. // border: solid 1px red;
  5431. margin-left: 90px;
  5432. margin-top: -82px;
  5433. }
  5434. .actname{
  5435. width:190px;
  5436. height: 16px;
  5437. // border:solid 1px red;
  5438. margin-left: 5px;
  5439. margin-top: 10px;
  5440. font-size: 14px;
  5441. overflow: hidden;
  5442. text-overflow: ellipsis;
  5443. display: -webkit-box;
  5444. -webkit-line-clamp: 1;
  5445. -webkit-box-orient: vertical;
  5446. }
  5447. .actcomments{
  5448. width: 190px;
  5449. height: 20px;
  5450. // border:solid 1px red;
  5451. margin-left: 5px;
  5452. margin-top: 2px;
  5453. font-size: 14px;
  5454. }
  5455. .progress{
  5456. width:190px;
  5457. height: 20px;
  5458. // border:solid 1px red;
  5459. margin-left: 5px;
  5460. margin-top: 2px;
  5461. font-size: 14px;
  5462. }
  5463. .modeeight{
  5464. width: 314px;
  5465. height:100%;
  5466. // border:solid 1px red;
  5467. }
  5468. .block{
  5469. width: 60px;
  5470. display: inline-block;
  5471. // border:solid 1px blue;
  5472. height: 80px;
  5473. margin-left:10px;
  5474. margin-right: 2px;
  5475. vertical-align: top;
  5476. margin-top: 5px;
  5477. }
  5478. .macimg{
  5479. width: 46px;
  5480. height: 50px;
  5481. // border:solid 1px red;
  5482. margin-top: 2px;
  5483. margin-bottom: 5px;
  5484. margin-left: 4px;
  5485. }
  5486. #macimgtwo{
  5487. width:58px;
  5488. height:18px;
  5489. font-size:14px;
  5490. position:absolute;
  5491. // overflow:hidden;
  5492. // border: solid 1px red;
  5493. text-align: center;
  5494. margin-left: -1px;
  5495. }
  5496. .mac{
  5497. position: absolute;
  5498. width: 300px;
  5499. height: 70px;
  5500. // border:solid 1px red;
  5501. margin-left: 5px;
  5502. }
  5503. .mactwo{
  5504. position: absolute;
  5505. width: 60px;
  5506. height: 70px;
  5507. // border: solid 1px red;
  5508. left: 80px;
  5509. }
  5510. .macthree{
  5511. position: absolute;
  5512. width: 60px;
  5513. height: 70px;
  5514. // border: solid 1px red;
  5515. left: 155px;
  5516. }
  5517. .macfour{
  5518. position: absolute;
  5519. width: 60px;
  5520. height: 70px;
  5521. // border: solid 1px red;
  5522. left: 230px;
  5523. }
  5524. .macone{
  5525. position: absolute;
  5526. width: 60px;
  5527. height: 70px;
  5528. // border: solid 1px red;
  5529. left: 5px;
  5530. }
  5531. .definemac{
  5532. position: absolute;
  5533. width: 300px;
  5534. height: 70px;
  5535. border: solid 1px red;
  5536. margin-top: 75px;
  5537. margin-left: 5px;
  5538. }
  5539. .definemacone{
  5540. position: absolute;
  5541. width: 60px;
  5542. height: 70px;
  5543. border:solid 1px red;
  5544. left: 5px;
  5545. float: left;
  5546. }
  5547. .deone{
  5548. width:45px;
  5549. height: 45px;
  5550. // border:solid 1px red;
  5551. margin-left: 8px;
  5552. margin-top: 5px;
  5553. }
  5554. .detwo{
  5555. width:60px;
  5556. height: 20px;
  5557. // border: solid 1px red;
  5558. margin-top: 2px;
  5559. font-size: 14px;
  5560. text-align: center;
  5561. // font-size: 14px;
  5562. // color: black;
  5563. }
  5564. .dethree{
  5565. font-size: 14px;
  5566. // color: black;
  5567. font-family: Arial, Helvetica, sans-serif;
  5568. }
  5569. .picone{
  5570. width: 45px;
  5571. height: 45px;
  5572. // border: solid 1px red;
  5573. margin-left: 8px;
  5574. margin-top: 5px;
  5575. }
  5576. .pictwo{
  5577. width:60px;
  5578. height: 20px;
  5579. // border: solid 1px red;
  5580. margin-top: 2px;
  5581. font-size: 14px;
  5582. text-align: center;
  5583. }
  5584. .logo{
  5585. position: absolute;
  5586. margin-left: 280px;
  5587. margin-top: -16px;
  5588. }
  5589. .kefont{
  5590. font-size: 14px;
  5591. color: red;
  5592. margin-left: 8px;
  5593. margin-top: -20px;
  5594. }
  5595. .more{
  5596. position: absolute;
  5597. font-size: 14px;
  5598. color:black;
  5599. margin-left: 220px;
  5600. margin-top: -15px;
  5601. }
  5602. .hoscontent{
  5603. height:auto!important;
  5604. height:200px;
  5605. min-height:200px;
  5606. font-size: 14px;
  5607. overflow: hidden;
  5608. text-overflow: ellipsis;
  5609. display: -webkit-box;
  5610. -webkit-line-clamp: 6;
  5611. -webkit-box-orient: vertical;
  5612. // border: solid 1px red;
  5613. margin-top: 7px;
  5614. }
  5615. .xcontent{
  5616. height:auto!important;
  5617. height:200px;
  5618. min-height:200px;
  5619. font-size: 14px;
  5620. overflow: hidden;
  5621. text-overflow: ellipsis;
  5622. display: -webkit-box;
  5623. -webkit-line-clamp: 6;
  5624. -webkit-box-orient: vertical;
  5625. // border: solid 1px red;
  5626. margin-top: 7px;
  5627. }
  5628. #yycontent{
  5629. overflow: hidden;
  5630. text-overflow: ellipsis;
  5631. display: -webkit-box;
  5632. -webkit-line-clamp: 6;
  5633. -webkit-box-orient: vertical;
  5634. }
  5635. #zzcontent{
  5636. overflow: hidden;
  5637. text-overflow: ellipsis;
  5638. display: -webkit-box;
  5639. -webkit-line-clamp: 5;
  5640. -webkit-box-orient: vertical;
  5641. }
  5642. .docborde{
  5643. width: 320px;
  5644. height: 200px;
  5645. // border: solid 1px red;
  5646. overflow: hidden;
  5647. }
  5648. .docborder{
  5649. width: 320px;
  5650. height: 100px;
  5651. /* border: solid 1px red; */
  5652. background-color: rgba(242, 242, 242, 1);
  5653. margin-top: 8px;
  5654. }
  5655. .docheart{
  5656. width: 310px;
  5657. height: 92px;
  5658. // border: solid 1px blue;
  5659. background-color: rgba(242, 242, 242, 1);
  5660. margin-top: 5px;
  5661. margin-left: 3px;
  5662. }
  5663. .docimage{
  5664. width: 80px;
  5665. height: 80px;
  5666. margin-left: 10px;
  5667. padding-top: 5px;
  5668. }
  5669. .doctitle{
  5670. width: 80px;
  5671. height: 20px;
  5672. // border: solid 1px blue;
  5673. float: right;
  5674. margin-right: 120px;
  5675. margin-top: -75px;
  5676. font-size: 14px;
  5677. }
  5678. .doccontent{
  5679. width: 180px;
  5680. height: 34px;
  5681. // border: solid 1px red;
  5682. margin-top: -50px;
  5683. margin-left: 108px;
  5684. font-size: 14px;
  5685. overflow: hidden;
  5686. }
  5687. .docnamefont{
  5688. font-size: 14px;
  5689. }
  5690. .dochead{
  5691. position:absolute;
  5692. width:80px;
  5693. height: 80px;
  5694. /* border:solid 1px green; */
  5695. margin-top: 10px;
  5696. margin-left: 10px;
  5697. }
  5698. .docname{
  5699. position: absolute;
  5700. width:50px;
  5701. height: 20px;
  5702. /* border: solid 1px green; */
  5703. margin-left: 130px;
  5704. margin-top: 20px;
  5705. font-size: 14px;
  5706. color:black;
  5707. }
  5708. .docintroduction{
  5709. font-size: 14px;
  5710. color: black;
  5711. }
  5712. .docone{
  5713. width:310px;
  5714. height:100px;
  5715. // border: solid red 1px;
  5716. margin-left: 5px;
  5717. overflow: hidden;
  5718. }
  5719. .doctwo{
  5720. width:80px;
  5721. height: 80px;
  5722. // border: solid red 1px;
  5723. margin-top: 10px;
  5724. margin-left: 5px;
  5725. }
  5726. .docthree{
  5727. width: 50px;
  5728. height: 20px;
  5729. // border:solid red 1px;
  5730. margin-left: 100px;
  5731. margin-top: -75px;
  5732. }
  5733. .docfour{
  5734. font-size: 14px;
  5735. }
  5736. .docfive{
  5737. width:200px;
  5738. height: 50px;
  5739. // border:solid 1px red;
  5740. margin-left: 100px;
  5741. margin-top: 5px;
  5742. }
  5743. .docsix{
  5744. font-size: 14px;
  5745. overflow: hidden;
  5746. text-overflow: ellipsis;
  5747. display: -webkit-box;
  5748. -webkit-line-clamp: 3;
  5749. -webkit-box-orient: vertical
  5750. }
  5751. .xxcontent{
  5752. overflow: hidden;
  5753. text-overflow: ellipsis;
  5754. display: -webkit-box;
  5755. -webkit-line-clamp: 2;
  5756. -webkit-box-orient: vertical;
  5757. }
  5758. #wrappertwo{
  5759. width: 50%;
  5760. }
  5761. #wrapperthree{
  5762. width: 50%;
  5763. margin-top: 5px;
  5764. }
  5765. .swiperimages{
  5766. width: 320px;
  5767. height: 150px;
  5768. // border: solid 1px red;
  5769. margin-top: 20px;
  5770. z-index: 999;
  5771. }
  5772. #swiperimagestwo{
  5773. width:314px;
  5774. height: 150px;
  5775. margin-top: 20px;
  5776. overflow: hidden;
  5777. // border: solid 1px red;
  5778. }
  5779. .navigationone{
  5780. position: relative;
  5781. width: 330px;
  5782. height: 50px;
  5783. border: solid 1px rgba(242, 242, 242, 1);
  5784. margin-top: 10px;
  5785. margin-left: 10px;
  5786. }
  5787. .navigacontent{
  5788. position: relative;
  5789. width:348px;
  5790. height: 670px;
  5791. border:solid 0.1px rgba(242, 242, 242, 1);
  5792. margin-top: 50px;
  5793. }
  5794. .navitwo{
  5795. width: 35px;
  5796. height: 35px;
  5797. // border: solid 1px blue;
  5798. margin-top: 7px;
  5799. margin-left: 20px;
  5800. }
  5801. .navithree{
  5802. width:120px;
  5803. height: 30px;
  5804. margin-left: 60px;
  5805. margin-top: -25px;
  5806. font-size: 14px;
  5807. }
  5808. .navifour{
  5809. width: 30px;
  5810. height: 30px;
  5811. margin-left: 230px;
  5812. margin-top: -27px;
  5813. // border: solid 1px red;
  5814. }
  5815. .navifive{
  5816. width: 30px;
  5817. height: 30px;
  5818. margin-left: 260px;
  5819. margin-top: -30px;
  5820. // border: solid 1px red;
  5821. }
  5822. .sharecontent{
  5823. width:345px;
  5824. height: 245px;
  5825. // border: solid 1px red;
  5826. }
  5827. .shareexam{
  5828. width:120px;
  5829. height:23px;
  5830. // border: solid 1px red;
  5831. margin-top: 10px;
  5832. margin-left: 10px;
  5833. }
  5834. .shareimg{
  5835. width:347px;
  5836. height:190px;
  5837. // border:solid 1px red;
  5838. background-color:rgba(242, 242, 242, 1);
  5839. }
  5840. .sharetwoimg{
  5841. position: absolute;
  5842. width:250px;
  5843. height: 160px;
  5844. // border:solid 1px red;
  5845. margin-left: 10px;
  5846. margin-top: 15px;
  5847. background-color: #d9d9d9;
  5848. border-radius: 5%;
  5849. }
  5850. .triangle{
  5851. margin: 0px;
  5852. border-width: 10px;
  5853. border-style: solid;
  5854. border-color: #d9d9d9 transparent transparent;
  5855. padding: 0px;
  5856. width: 0px;
  5857. height: 0px;
  5858. left: 260px;
  5859. top: 70px;
  5860. position: absolute;
  5861. transform:rotate(270deg);
  5862. }
  5863. .sharepic{
  5864. position: absolute;
  5865. width: 50px;
  5866. height: 50px;
  5867. // border: 1px solid red;
  5868. margin-left: 280px;
  5869. margin-top: 20px;
  5870. }
  5871. .sharefont{
  5872. position: absolute;
  5873. width:220px;
  5874. height: 65px;
  5875. // border: solid 1px red;
  5876. left: 10px;
  5877. top: 15px;
  5878. }
  5879. .sharefontone{
  5880. font-size: 16px;
  5881. font-weight: 100;
  5882. overflow: hidden;
  5883. text-overflow: ellipsis;
  5884. display: -webkit-box;
  5885. -webkit-line-clamp: 3;
  5886. -webkit-box-orient: vertical
  5887. }
  5888. .sharethree{
  5889. position: absolute;
  5890. width: 150px;
  5891. height: 70px;
  5892. // border:solid 1px red;
  5893. top: 75px;
  5894. left: 10px;
  5895. }
  5896. .sharefour{
  5897. font-size: 14px;
  5898. overflow: hidden;
  5899. text-overflow: ellipsis;
  5900. display: -webkit-box;
  5901. -webkit-line-clamp: 4;
  5902. -webkit-box-orient: vertical
  5903. }
  5904. .sharefive{
  5905. position: absolute;
  5906. width: 65px;
  5907. height: 70px;
  5908. // border: 1px solid red;
  5909. top: 75px;
  5910. left:165px;
  5911. }
  5912. .inputone{
  5913. position: relative;
  5914. width: 70px;
  5915. height: 25px;
  5916. // border: solid 1px red;
  5917. top:30px;
  5918. left:10px;
  5919. }
  5920. .inputfont{
  5921. font-size: 14px;
  5922. }
  5923. .inputwo{
  5924. position: relative;
  5925. width: 330px;
  5926. height: 40px;
  5927. // border: solid 1px red;
  5928. left: 10px;
  5929. top: 40px;
  5930. }
  5931. .inputhree{
  5932. position: relative;
  5933. width: 70px;
  5934. height: 25px;
  5935. // border: solid 1px red;
  5936. top:50px;
  5937. left:10px;
  5938. }
  5939. .inpufive{
  5940. position: relative;
  5941. width: 330px;
  5942. height: 40px;
  5943. // border: solid 1px red;
  5944. left: 10px;
  5945. top: 60px;
  5946. }
  5947. .inputsix{
  5948. position: relative;
  5949. width: 330px;
  5950. height: 40px;
  5951. // border: solid 1px red;
  5952. left: 10px;
  5953. top: 70px;
  5954. }
  5955. .inputserven{
  5956. position: relative;
  5957. width:100px;
  5958. height: 100px;
  5959. // border: solid 1px red;
  5960. top: 50px;
  5961. left:120px;
  5962. }
  5963. .inputten{
  5964. position: absolute;
  5965. width:100px;
  5966. height:100px;
  5967. // border: solid 1px red;
  5968. margin-top: 50px;
  5969. margin-left: 10px;
  5970. }
  5971. .returnpage{
  5972. position: absolute;
  5973. width: 50px;
  5974. height: 50px;
  5975. border:solid 1px rgb(255, 252, 252);
  5976. background-color: rgba(255, 255, 255, 1);
  5977. margin-top: 190px;
  5978. margin-left: 298px;
  5979. }
  5980. .returnimages{
  5981. position: absolute;
  5982. width: 20px;
  5983. height: 20px;
  5984. // border: solid 1px red;
  5985. left: 13px;
  5986. top: 5px;
  5987. }
  5988. .reback{
  5989. position: absolute;
  5990. width:50px;
  5991. height: 50px;
  5992. border:solid 1px rgb(255, 252, 252);
  5993. margin-left: 298px;
  5994. margin-top: 250px;
  5995. // margin-left: 298px;
  5996. // margin-top: -390px;
  5997. background-color: rgba(255, 255, 255, 1);
  5998. }
  5999. .rebackone{
  6000. position: absolute;
  6001. width:20px;
  6002. height: 20px;
  6003. // border: solid 1px red;
  6004. left: 13px;
  6005. top:5px;
  6006. }
  6007. .reindexone{
  6008. position: absolute;
  6009. width:20px;
  6010. height: 20px;
  6011. // border: solid 1px red;
  6012. left:13px;
  6013. top:5px;
  6014. }
  6015. .rebacktwo{
  6016. position: absolute;
  6017. width: 30px;
  6018. height: 20px;
  6019. // border:solid 1px red;
  6020. left: 10px;
  6021. top: 28px;
  6022. font-size: 14px;
  6023. color: #FF6600;
  6024. }
  6025. .reindextwo{
  6026. position: absolute;
  6027. width: 30px;
  6028. height: 20px;
  6029. left: 10px;
  6030. top:28px;
  6031. font-size: 14px;
  6032. color: #FF6600;
  6033. }
  6034. .reindex{
  6035. position: absolute;
  6036. width: 50px;
  6037. height: 50px;
  6038. border: solid 1px rgba(255, 255, 255, 1);
  6039. background-color: solid 1px rgba(255, 255, 255, 1);
  6040. margin-left: 300px;
  6041. margin-top: 310px;
  6042. }
  6043. .oldmodetwo{
  6044. width: 300px;
  6045. height: 100%;
  6046. /* border: solid 1px red; */
  6047. // margin-bottom: 5px;
  6048. font-size: 1rem;
  6049. font-weight: 600;
  6050. color: rgba(7, 18, 40, 1);
  6051. line-height: 2.375rem;
  6052. }
  6053. .oldmodefour{
  6054. width: 300px;
  6055. height: 30px;
  6056. /* border:solid 1px red; */
  6057. // margin-bottom: 5px;
  6058. font-size: 1rem;
  6059. font-weight: 600;
  6060. color: rgba(7, 18, 40, 1);
  6061. line-height: 2.375rem;
  6062. }
  6063. .oldmodethree{
  6064. width: 300px;
  6065. height: 100%;
  6066. /* border:solid 1px red; */
  6067. font-size: 14px;
  6068. // margin-bottom: 10px;
  6069. font-size: 1rem;
  6070. font-weight: 600;
  6071. color: rgba(7, 18, 40, 1);
  6072. line-height: 2.375rem;
  6073. }
  6074. .oldmodefive{
  6075. width:315px;
  6076. height: 200px;
  6077. /* border: solid 1px red; */
  6078. margin-bottom: 5px;
  6079. }
  6080. .addrot{
  6081. width: 100px;
  6082. height: 100px;
  6083. border: dashed 1px #409EFF;
  6084. }
  6085. .addrotone{
  6086. font-size: 30px;
  6087. width:50px;
  6088. height: 50px;
  6089. // border: solid 1px red;
  6090. margin-left: 35px;
  6091. margin-top: 35px;
  6092. }
  6093. .addrotwo{
  6094. width:60px;
  6095. height: 30px;
  6096. // border: solid 1px #409EFF;
  6097. margin-left: 25px;
  6098. margin-top: -25px;
  6099. }
  6100. .el-upload-list--picture-card .el-upload-list__item {
  6101. overflow: hidden;
  6102. background-color: #fff;
  6103. border: 1px solid #c0ccda;
  6104. border-radius: 6px;
  6105. -webkit-box-sizing: border-box;
  6106. box-sizing: border-box;
  6107. width: 100px;
  6108. height: 100px;
  6109. margin: 0 8px 8px 0;
  6110. display: inline-block;
  6111. }
  6112. .flex-img__image{
  6113. width: 100%;
  6114. height: 100%;
  6115. }
  6116. .addpicrot{
  6117. width: 100px;
  6118. height: 100px;
  6119. border: dashed 1px #409EFF;
  6120. }
  6121. .addpicones{
  6122. width: 30px;
  6123. height: 30px;
  6124. // border: solid 1px red;
  6125. margin-top: 30px;
  6126. margin-left: 30px;
  6127. font-size: 30px;
  6128. }
  6129. .addpictwos{
  6130. width: 70px;
  6131. height: 30px;
  6132. font-size: 14px;
  6133. // border: solid 1px red;
  6134. margin-left: -8px;
  6135. margin-top: -10px;
  6136. }
  6137. .avatar{
  6138. width:100px;
  6139. height: 100px;
  6140. }
  6141. .tpic{
  6142. margin-left: 50px;
  6143. }
  6144. .map {
  6145. width: 100%;
  6146. height: 400px;
  6147. }
  6148. .yangshi{
  6149. font-size: 14px;
  6150. margin-top: 25px;
  6151. }
  6152. .tips {
  6153. font-size: 12px;
  6154. line-height: 18px;
  6155. }
  6156. .tipstwo{
  6157. width:300px;
  6158. height: 20px;
  6159. // border:solid 1px red;
  6160. margin-left: 90px;
  6161. }
  6162. .modelshowtwo{
  6163. width: 100%;
  6164. height: 100%;
  6165. // border: solid 1px red;
  6166. }
  6167. .docheadimages{
  6168. width: 100%;
  6169. height: 80px;
  6170. // border:solid 1px red;
  6171. margin-top: 5px;
  6172. margin-left: 5px;
  6173. margin-bottom: 5px;
  6174. }
  6175. .doctorhead{
  6176. position: absolute;
  6177. width: 60px;
  6178. height: 60px;
  6179. // border: solid 1px red;
  6180. margin-left: 10px;
  6181. margin-top: 10px;
  6182. }
  6183. .doctorname{
  6184. position: absolute;
  6185. width: 100px;
  6186. height: 20px;
  6187. // border:solid 1px red;
  6188. margin-top: 15px;
  6189. margin-left: 80px;
  6190. font-size: 14px;
  6191. }
  6192. .docposition{
  6193. position: absolute;
  6194. width: 100px;
  6195. height: 20px;
  6196. // border:solid 1px red;
  6197. margin-top: 40px;
  6198. margin-left: 80px;
  6199. font-size: 14px;
  6200. }
  6201. .doctorintroduction{
  6202. margin-left: 15px;
  6203. height: 20px;
  6204. // border:solid 1px red;
  6205. margin-bottom: 5px;
  6206. font-size: 14px;
  6207. }
  6208. .doctorintroductiontwo{
  6209. margin-left: 16px;
  6210. height: 100%;
  6211. // border:solid 1px red;
  6212. font-size: 14px;
  6213. }
  6214. .articletitle{
  6215. width: 100%;
  6216. height: 20px;
  6217. font-size: 20px;
  6218. // border:solid 1px red;
  6219. // margin-left: 50px;
  6220. margin-left: 100px;
  6221. margin-top: 5px;
  6222. vertical-align: center;
  6223. }
  6224. .aticlecontent{
  6225. width: 100%;
  6226. height: 100%;
  6227. font-size: 14px;
  6228. }
  6229. .activitesimages{
  6230. width: 100%;
  6231. height: 200px;
  6232. // border:solid 1px red;
  6233. }
  6234. .activitestitle{
  6235. width: 100%;
  6236. min-height: 20px;
  6237. // border:solid 1px red;
  6238. font-size: 14px;
  6239. }
  6240. .banner {
  6241. height: 9.4375rem;
  6242. border:solid 1px red;
  6243. }
  6244. .btnList {
  6245. display: flex;
  6246. justify-content: space-around;
  6247. align-items: center;
  6248. flex-wrap: wrap;
  6249. width: 100%;
  6250. // height: 180px;
  6251. margin-top: 1.25rem;
  6252. // border:solid 1px yellow;
  6253. }
  6254. .btnOne {
  6255. display: block;
  6256. width: 25%;
  6257. text-align: center;
  6258. height: 5rem;
  6259. img {
  6260. margin-bottom: 0.3125rem;
  6261. text-align: center;
  6262. width: 3.125rem;
  6263. height: 3.125rem;
  6264. border-radius: 50%;
  6265. }
  6266. .title {
  6267. width: 100%;
  6268. height: 1.125rem;
  6269. line-height: 1.125rem;
  6270. font-size: 0.875rem;
  6271. text-align: center;
  6272. }
  6273. }
  6274. .dynamic {
  6275. margin-top: 3.0625rem;
  6276. // border: solid 1px red;
  6277. }
  6278. .common_title {
  6279. width: 20.9375rem;
  6280. height: 1.125rem;
  6281. margin: 0 auto;
  6282. }
  6283. .dynamicTxt {
  6284. float: left;
  6285. width: 6rem;
  6286. height: 1.125rem;
  6287. line-height: 1.125rem;
  6288. font-size: 1.125rem;
  6289. font-weight: 600;
  6290. color: rgba(7, 18, 40, 1);
  6291. }
  6292. .one {
  6293. margin-top: 0.125rem;
  6294. margin-right: 0.375rem;
  6295. float: left;
  6296. width: 0.125rem;
  6297. height: 0.875rem;
  6298. background: linear-gradient(
  6299. 0deg,
  6300. rgba(114, 182, 253, 1),
  6301. rgba(52, 119, 254, 1)
  6302. );
  6303. box-shadow: 0px 3px 12px 0px rgba(60, 127, 254, 0.2);
  6304. border-radius: 3px;
  6305. }
  6306. .dymore {
  6307. float: right;
  6308. margin-right: 20px;
  6309. p {
  6310. color: #b6bac1;
  6311. height: 1.125rem;
  6312. line-height: 1.125rem;
  6313. }
  6314. }
  6315. .contentOne {
  6316. margin: auto;
  6317. margin-top: 1.125rem;
  6318. width: 20.875rem;
  6319. height: 7.4375rem;
  6320. background: rgba(255, 255, 255, 1);
  6321. box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
  6322. border-radius: 1rem;
  6323. padding-left: 1rem;
  6324. padding-top: 1.125rem;
  6325. box-sizing: border-box;
  6326. .img {
  6327. float: left;
  6328. width: 5rem;
  6329. height: 5rem;
  6330. img {
  6331. border-radius: 0.75rem;
  6332. }
  6333. }
  6334. .detail {
  6335. float: left;
  6336. margin-left: 0.8125rem;
  6337. width: 13.125rem;
  6338. .detailTitle {
  6339. margin-top: 8px;
  6340. font-size: 15px;
  6341. margin-top: 0.5rem;
  6342. width: 12.6875rem;
  6343. height: 1rem;
  6344. line-height: 1rem;
  6345. font-size: 0.9375rem;
  6346. font-weight: 600;
  6347. color: rgba(7, 18, 40, 1);
  6348. overflow: hidden;
  6349. text-overflow: ellipsis;
  6350. display: -webkit-box;
  6351. -webkit-line-clamp: 1;
  6352. -webkit-box-orient: vertical;
  6353. }
  6354. .detailMessage {
  6355. margin-top: 0.25rem;
  6356. width: 13.25rem;
  6357. height: 3.3rem;
  6358. font-size: 0.75rem;
  6359. font-weight: 400;
  6360. color: rgba(155, 155, 155, 1);
  6361. line-height: 1.125rem;
  6362. overflow: hidden;
  6363. text-overflow: ellipsis;
  6364. display: -webkit-box;
  6365. -webkit-line-clamp: 1;
  6366. -webkit-box-orient: vertical;
  6367. // border: solid 1px red;
  6368. }
  6369. }
  6370. // border: solid 1px red;
  6371. }
  6372. .common {
  6373. margin-top: 1.875rem;
  6374. .commonBox {
  6375. margin: auto;
  6376. margin-top: 1.25rem;
  6377. width: 20.875rem;
  6378. height: 20.3125rem;
  6379. background: rgba(255, 255, 255, 1);
  6380. box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
  6381. border-radius: 16px;
  6382. padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
  6383. overflow: hidden;
  6384. text-overflow: ellipsis;
  6385. }
  6386. .commonImg {
  6387. width: 18.4375rem;
  6388. height: 10.5625rem;
  6389. border-radius: 10px;
  6390. }
  6391. .commonMessage {
  6392. margin-top: 1.375rem;
  6393. width: 17.75rem;
  6394. height: 15rem;
  6395. font-size: 0.875rem;
  6396. color: rgba(60, 60, 60, 1);
  6397. line-height: 1.375rem;
  6398. overflow: hidden;
  6399. // border: solid 1px red;
  6400. display: -webkit-box;
  6401. -webkit-line-clamp: 8;
  6402. -webkit-box-orient: vertical;
  6403. p {
  6404. height: 100%;
  6405. line-height: 1.375rem;
  6406. }
  6407. }
  6408. // border:solid 1px red;
  6409. }
  6410. .imgs {
  6411. margin-top: 1.875rem;
  6412. // height: 7.8125rem;
  6413. overflow-x: hidden;
  6414. img {
  6415. width: 10.75rem;
  6416. height: 7.8125rem;
  6417. border-radius: 10px;
  6418. }
  6419. .carousel {
  6420. width: 100%;
  6421. height: 100%;
  6422. float: left;
  6423. padding-left: 1.25rem;
  6424. }
  6425. }
  6426. .tabs {
  6427. @include border-top;
  6428. width: 100%;
  6429. margin-top: 660px;
  6430. margin-left: -400px;
  6431. height: 3.125rem;
  6432. box-sizing: border-box;
  6433. border:solid 1px red;
  6434. z-index: 999999;
  6435. }
  6436. .tabList {
  6437. display: flex;
  6438. justify-content: space-around;
  6439. height: 100%;
  6440. .tabOne {
  6441. display: flex;
  6442. flex-direction: column;
  6443. justify-content: center;
  6444. align-items: center;
  6445. img {
  6446. // margin-top: 0.5rem;
  6447. width: 1.875rem;
  6448. height: 1.875rem;
  6449. }
  6450. span {
  6451. font-size: 0.75rem;
  6452. color: #999;
  6453. // line-height: 1.3125rem;
  6454. }
  6455. }
  6456. // border:solid 1px blue;
  6457. }
  6458. </style>