detail.vue 156 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091
  1. <template>
  2. <view class="container" v-if="isLoading">
  3. <!-- #ifndef MP-WEIXIN -->
  4. <block v-if="!isNavShow">
  5. <view class="go_back" @click="goBack()">
  6. <image :src="imgUrl + '/point/goods/go_back.png'" mode=""></image>
  7. </view>
  8. <view class="go_more" @tap="tipsShow">
  9. <image :src="imgUrl + '/goods_detail/more_tips.png'" mode=""></image>
  10. <block v-if="tips_show">
  11. <view class="triangle-up"> </view>
  12. <view class="tips">
  13. <button v-for="(item, index) in tips" :key="index" class="tips_pre" @tap="handleLink"
  14. :data-link="item.tips_link" :open-type="item.type" :data-type="item.type" plain="true">
  15. <image :src="item.tips_img"></image>
  16. <text>{{item.tips_name}}</text>
  17. </button>
  18. </view>
  19. </block>
  20. </view>
  21. </block>
  22. <!-- #endif -->
  23. <!-- 透明遮罩层 -->
  24. <view class="transparent_mask" v-if="transparent_mask" @tap="hideMask"></view>
  25. <!-- #ifdef APP-PLUS -->
  26. <view class="fixed_top_status_bar" :class="{fixed_top_status_bar_no_opcity:noOpcity}"></view>
  27. <!-- #endif -->
  28. <view class="nav_list" v-if="isNavShow" :class="{nav_list_no_opcity:noOpcity}">
  29. <!-- #ifndef MP-WEIXIN -->
  30. <view class="go_back_nav flex_row_center_center" @click="goBack()">
  31. <image :src="imgUrl + '/point/goods/back.png'" mode=""></image>
  32. </view>
  33. <!-- #endif -->
  34. <view class="nav_list_pre" v-if="recommendedList && recommendedList.length > 0"
  35. :class="{nav_list_pre_active:currentNav == item.id}" v-for="(item,index) in navList" :key="index"
  36. @click="clickNav(item.id)">
  37. {{item.text}}
  38. </view>
  39. <view class="nav_list_pre" v-if="recommendedList && recommendedList.length == 0"
  40. :class="{nav_list_pre_active:currentNav == item.id}" v-for="(item,index) in navListNoRecommend"
  41. :key="index" @click="clickNav(item.id)">
  42. {{item.text}}
  43. </view>
  44. <view class="more_tips" @tap="tipsShow">
  45. <image class="more" :src="imgUrl + 'goods_detail/more.png'"></image>
  46. <block v-if="tips_show">
  47. <view class="triangle-up"> </view>
  48. <view class="tips">
  49. <button v-for="(item, index) in tips" :key="index" class="tips_pre" @tap="handleLink"
  50. :data-link="item.tips_link" :open-type="item.type" :data-type="item.type" plain="true">
  51. <image :src="item.tips_img"></image>
  52. <text>{{item.tips_name}}</text>
  53. </button>
  54. </view>
  55. </block>
  56. </view>
  57. </view>
  58. <view class="carousel" id="nav1">
  59. <uni-swiper-dot :info="isChoice == 'default'?defaultProduct.goodsPics:choiceSpecDes.goodsPics"
  60. :current="goodsVideo?(current-1):current" :showControls='showControls' field="content" :mode="mode">
  61. <swiper class="swiper-box" @change="change">
  62. <!-- #ifdef H5 -->
  63. <swiper-item v-if="goodsVideo">
  64. <image :src="isChoice == 'default'?defaultProduct.goodsPics[0]:choiceSpecDes.goodsPics[0]"
  65. class="slide-image"></image>
  66. <image :src="imgUrl+'play.png'" class="play_btn" @click="toPlayPage"></image>
  67. </swiper-item>
  68. <!-- #endif -->
  69. <!-- #ifdef MP-WEIXIN|| APP-PLUS -->
  70. <swiper-item v-if="goodsVideo">
  71. <block v-if="!playVFlag">
  72. <image :src="isChoice == 'default'?defaultProduct.goodsPics[0]:choiceSpecDes.goodsPics[0]"
  73. class="slide-image"></image>
  74. <image :src="imgUrl+'play.png'" class="play_btn" @click="playVideo('on')"></image>
  75. </block>
  76. <block v-else>
  77. <video controls :src="goodsVideo" class="video_btn"
  78. :poster="isChoice == 'default'?defaultProduct.goodsPics[0]:choiceSpecDes.goodsPics[0]"
  79. autoplay="true" @ended="playVideo('end')">
  80. </video>
  81. </block>
  82. </swiper-item>
  83. <!-- #endif -->
  84. <!-- 默认规格 图 start-->
  85. <block
  86. v-if="defaultProduct && defaultProduct.goodsPics && defaultProduct.goodsPics.length > 0 && isChoice == 'default'">
  87. <swiper-item class="swiper-item" v-for="(item,index) in defaultProduct.goodsPics" :key="index">
  88. <view class="image-wrapper">
  89. <image :src="item" class="loaded" mode="aspectFit"></image>
  90. </view>
  91. </swiper-item>
  92. </block>
  93. <!-- 默认规格 图 end-->
  94. <!-- 选择规格的图 start-->
  95. <block
  96. v-else-if="choiceSpecDes && choiceSpecDes.goodsPics && choiceSpecDes.goodsPics.length > 0 && isChoice == 'choice'">
  97. <swiper-item class="swiper-item" v-for="(item,index) in choiceSpecDes.goodsPics" :key="index">
  98. <view class="image-wrapper">
  99. <image :src="item" class="loaded" mode="aspectFit"></image>
  100. </view>
  101. </swiper-item>
  102. </block>
  103. <!-- 选择规格的图 end-->
  104. </swiper>
  105. </uni-swiper-dot>
  106. </view>
  107. <!-- 秒杀活动 start -->
  108. <view class="second_kill" v-if="secKillInfo && (secKillInfo.state == 1 || secKillInfo.state == 2)">
  109. <!-- 秒杀活动 secKillInfo.state :1未开始 2进行中 3结束-->
  110. <!-- 秒杀活动进行中 start -->
  111. <view class="second_kill_con"
  112. :style="'background-image:url('+imgUrl+'goods_detail/second_kill_bg.png);background-size:100% 100%;background-repeat:no-repeat;'">
  113. <!-- 活动进行中 start -->
  114. <view class="second_kill_left" v-if="secKillInfo.state == 2">
  115. <!-- 秒杀价 -->
  116. <view class="second_kill_goods_price"
  117. v-if="filters.toSplit(filters.toFix(secKillInfo.seckillPrice))[0] && filters.toSplit(filters.toFix(secKillInfo.seckillPrice))[1]">
  118. <text>¥</text><text>{{filters.toSplit(filters.toFix(secKillInfo.seckillPrice))[0]}}</text>.<text>{{filters.toSplit(filters.toFix(secKillInfo.seckillPrice))[1]}}</text>
  119. </view>
  120. <!-- 在售价 -->
  121. <view class="second_kill_price line_through">
  122. <text>{{$L('原价')}}:¥{{filters.toFix(secKillInfo.productPrice)}}</text>
  123. </view>
  124. </view>
  125. <!-- 活动进行中 end -->
  126. <!-- 活动未开始 start -->
  127. <view class="second_kill_left" v-else>
  128. <!-- 在售价 -->
  129. <view class="second_kill_goods_price"
  130. v-if="filters.toSplit(filters.toFix(secKillInfo.productPrice))[0] && filters.toSplit(filters.toFix(secKillInfo.productPrice))[1]">
  131. <text>¥</text><text>{{filters.toSplit(filters.toFix(secKillInfo.productPrice))[0]}}</text>.<text>{{filters.toSplit(filters.toFix(secKillInfo.productPrice))[1]}}</text>
  132. </view>
  133. <!-- 秒杀价 -->
  134. <view class="second_kill_price">
  135. <text>{{$L('秒杀价')}}:¥ {{filters.toFix(secKillInfo.seckillPrice)}}</text>
  136. </view>
  137. </view>
  138. <!-- 活动未开始 end -->
  139. <view class="second_kill_right">
  140. <view class="second_kill_text">
  141. {{secKillInfo.state == 1 ? $L('距开始') : secKillInfo.state == 2 ? $L('距结束') : ''}}
  142. </view>
  143. <view class="sec_kill_countdown">
  144. <text class="day" v-show="secKillDay != '00'">{{secKillDay}}天</text>
  145. <text class="time">{{secKillHr}}</text>
  146. <text class="time_tips">:</text>
  147. <text class="time">{{secKillMin}}</text>
  148. <text class="time_tips">:</text>
  149. <text class="time">{{secKillSec}}</text>
  150. </view>
  151. </view>
  152. </view>
  153. <!-- 秒杀活动进行中 end -->
  154. <view class="sec_kill_preview" v-if="secKillInfo.state == 1">
  155. <view class="sec_kill_preview_left">
  156. {{$L('秒杀预告')}}: {{secKillInfo.startTime + ' '+$L("开始")}}
  157. </view>
  158. <view class="sec_kill_preview_right flex_row_center_center" v-if="!secKillInfo.isRemind"
  159. @click="secKillPreview">
  160. <image :src="imgUrl + 'goods_detail/time.png'" mode=""></image>
  161. <view class="tip" style="line-height: 12px">{{$L('提醒我')}}</view>
  162. </view>
  163. <view class="cancel_preview" v-else @click="secKillPreview">
  164. {{$L('取消提醒')}}
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 秒杀活动 end -->
  169. <!-- 阶梯团活动start -->
  170. <view class="ladder" v-if="valiInfo(ladderInfo)">
  171. <ladderInfo :ladderInfo="ladderInfo" :ladderProcess="ladderProcess" @getGoodsDetail="getGoodsDetail">
  172. </ladderInfo>
  173. </view>
  174. <!-- 阶梯团活动end -->
  175. <!-- 预售 start -->
  176. <view v-if="valiInfo(preSellInfo)&&preSellInfo.pre_run!=3">
  177. <preInfo :preSellInfo="preSellInfo" @getGoodsDetail="getGoodsDetail"></preInfo>
  178. </view>
  179. <!-- 预售 end -->
  180. <!-- 拼团start -->
  181. <view v-if="valiInfo(pinInfo)">
  182. <pinInfo :pinInfo="pinInfo" @getGoodsDetail="getGoodsDetail"></pinInfo>
  183. </view>
  184. <!-- 拼团end -->
  185. <!-- 有活动商品样式 start -->
  186. <view class="introduce_section_activity"
  187. v-if="valiInfo(secKillInfo)||valiInfo(ladderInfo)||valiInfo(preSellInfo)||valiInfo(pinInfo)">
  188. <view class="activity_goods_des">
  189. <view class="activity_goods_name">
  190. {{goodsData.goodsName}}
  191. </view>
  192. <view class="activity_share_collection">
  193. <view class="activity_goods_collection" @click="collectGoods">
  194. <text class="iconfont iconaixin1" v-if="goodsData.followGoods"></text>
  195. <text class="iconfont iconaixin" v-else></text>
  196. <text class="show_text">{{goodsData.followGoods ? $L("已收藏") : $L("收藏")}}</text>
  197. </view>
  198. <view class="activity_goods_share" @click="goShare">
  199. <text class="iconfont iconfenxiang"></text>
  200. <text class="show_text">{{$L('分享')}}</text>
  201. </view>
  202. </view>
  203. </view>
  204. <view class="activity_goods_brief" v-if="goodsData.goodsBrief">
  205. {{goodsData.goodsBrief}}
  206. </view>
  207. </view>
  208. <!-- 有活动商品样式 end -->
  209. <!-- 无活动商品 start-->
  210. <view class="introduce_section" v-else>
  211. <view class="price_part flex_row_between_center">
  212. <view class="left">
  213. <view class="sell_price" v-if="defaultProduct.productPrice || choiceSpecDes.productPrice">
  214. <text class="unit">¥ </text>
  215. <text
  216. class="price_int">{{isChoice == 'default' ? $getPartNumber(defaultProduct.productPrice,'int') : $getPartNumber(choiceSpecDes.productPrice,'int')}}</text>
  217. <text
  218. class="price_decimal">{{isChoice == 'default' ? $getPartNumber(defaultProduct.productPrice,'decimal') : $getPartNumber(choiceSpecDes.productPrice,'decimal')}}</text>
  219. </view>
  220. <view class="original_price" v-if="defaultProduct.marketPrice">
  221. ¥
  222. {{isChoice == 'default' ? filters.toFix(defaultProduct.marketPrice) : filters.toFix(choiceSpecDes.marketPrice)}}
  223. </view>
  224. </view>
  225. <view class="right flex_row_end_center">
  226. <view class="flex_column_center_center collection" @click="collectGoods">
  227. <text class="iconfont iconaixin1" v-if="goodsData.followGoods"></text>
  228. <text class="iconfont iconaixin" v-else></text>
  229. <text class="show_text">{{goodsData.followGoods ? $L("已收藏") : $L("收藏")}}</text>
  230. </view>
  231. <view class="flex_column_center_center" @click="goShare">
  232. <text class="iconfont iconfenxiang"></text>
  233. <text class="show_text">{{$L('分享')}}</text>
  234. </view>
  235. </view>
  236. </view>
  237. <text class="goods_name">{{goodsData.goodsName}}</text>
  238. <view class="goods_ad" v-if="goodsData.goodsBrief">{{goodsData.goodsBrief}}</view>
  239. </view>
  240. <!-- 无活动商品 end -->
  241. <!-- 阶梯团 进度 start -->
  242. <view v-if="valiInfo(ladderInfo)&&ladderInfo.ruleList&&ladderInfo.ladder_run==2">
  243. <ladderProgress :ladderInfo="ladderInfo"></ladderProgress>
  244. </view>
  245. <!-- 阶梯团 进度 end -->
  246. <!-- 选择规格 start -->
  247. <view class="spec_con" @click="showSpecModel('')">
  248. <view class="spec_left">
  249. <view class="spec_left_title">{{$L('已选')}}</view>
  250. <view class="spec_left_content" v-if="defaultProduct.getSpecValues || choiceSpecDes.getSpecValues">
  251. {{isChoice == 'default' ? defaultProduct.getSpecValues : choiceSpecDes.getSpecValues}}
  252. </view>
  253. <view class="spec_left_content" v-else>{{$L('默认')}}</view>
  254. </view>
  255. <image :src="imgUrl+'goods_detail/right_down.png'" mode="" class="spec_right"></image>
  256. </view>
  257. <!-- 选择规格 end -->
  258. <!-- 发货地址,及运费 start -->
  259. <view class="deliver_goods" v-if="deliverInfo" @click="showAddress">
  260. <view class="deliver_goods_con">
  261. <view class="deliver_goods_left">
  262. <view class="deliver_goods_title">{{$L('送至')}}</view>
  263. <view class="deliver_goods_address">
  264. <image :src="imgUrl+'location_on.png'" mode=""></image>
  265. <text :class="{addressDefault:!curAddress}">{{curAddress?curAddress:'请选择地址'}}</text>
  266. </view>
  267. </view>
  268. <view class="deliver_goods_center" v-if="deliverInfo.expressFee!=undefined">{{$L('快递')}}:{{filters.toFix(deliverInfo.expressFee)}}元</view>
  269. <view class="deliver_goods_right">{{$L('已销')}}{{goodsData.sales ? goodsData.sales : 0}}</view>
  270. </view>
  271. </view>
  272. <!-- 发货地址,及运费 end -->
  273. <!-- 拼团成员列表start -->
  274. <view class="pin_group_con" v-if="valiInfo(pinInfo)">
  275. <pinGroupList :goodsId="pinInfo.goodsId" :spellId="pinInfo.spellId" @handleJoinGroup="handleJoinGroup"
  276. @make_group_more_fun="make_group_more_fun" ref="pinGroup"></pinGroupList>
  277. </view>
  278. <!-- 拼团成员列表end -->
  279. <!-- 活动 start-->
  280. <view class="activity" v-if="(couponList && couponList.length > 0)||(fullDisList && fullDisList.length > 0)" @touchmove.prevent='()=>{}'
  281. @scroll.prevent='()=>{}'>
  282. <!-- 领券 start -->
  283. <view class="" v-if="couponList && couponList.length > 0">
  284. <view class="activity_coupons" @click.prevent="openCouponModel">
  285. <view class="activity_coupons_left">
  286. <view class="activity_coupons_tips">{{$L('活动')}}</view>
  287. <view class="activity_coupons_center">
  288. <text class="activity_coupons_title">{{$L('领券')}}</text>
  289. <view class="activity_coupons_list">
  290. <view class="activity_coupons_pre"
  291. :style="{backgroundImage: 'url('+imgUrl +'goods_detail/activity_coupon_bg.png)'}"
  292. v-for="(item,index) in couponList" v-if="index < 2">
  293. {{item.couponContent}}
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. <view class="activity_conpons_right">
  299. <image :src="imgUrl+'goods_detail/right_down.png'" mode=""></image>
  300. </view>
  301. </view>
  302. </view>
  303. <!-- 领券 end -->
  304. <!-- 满优惠 start -->
  305. <view class="" v-if="fullDisList && fullDisList.length > 0" @click="openFullDisModel">
  306. <view :class="{full_discount:true,padd20:!(couponList && couponList.length > 0)}" v-for="(item,index) in fullDisList" :key="index">
  307. <view class="activity_coupons_tips" v-if="!(couponList && couponList.length > 0)">{{$L('活动')}}</view>
  308. <text :class="{full_discount_title:true,discount_title_no_ma:!(couponList && couponList.length > 0)}">{{item.promotionName}}</text>
  309. <view class="full_discount_list">
  310. <text v-for="(item1,index1) in item.descriptionList" :key="index1">{{item1}}</text>
  311. </view>
  312. <!-- <text class="full_discount_list" v-for="(item1,index1) in item.descriptionList" :key="index1">{{item1}}</text> -->
  313. </view>
  314. </view>
  315. <!-- 满优惠 end -->
  316. </view>
  317. <!-- 活动 end-->
  318. <!-- 优惠券弹框 start -->
  319. <uni-popup ref="couponModel" type="bottom" @touchmove.stop.prevent="moveHandle" class="popup_container">
  320. <view class="coupon_model">
  321. <view class="coupon_model_title">
  322. <text>{{$L('领取优惠券')}}</text>
  323. <image :src="imgUrl+'goods_detail/close.png'" mode="" @click="closeModel"></image>
  324. </view>
  325. <scroll-view class="coupon_model_list" scroll-y="true">
  326. <view class="my_coupon_pre" v-for="(item,index) in couponList" :key="index">
  327. <view class="coupon_pre_top" :style="{backgroundImage:'url(' + item.couponBg + ')'}">
  328. <view class="coupon_pre_left">
  329. <!-- 固定券 start -->
  330. <view class="coupon_pre_price" v-if="item.couponType == 1">
  331. <text class="unit">¥ </text>
  332. <text class="price_int">{{$getPartNumber(item.publishValue,'int')}}</text>
  333. </view>
  334. <!-- 固定券 end -->
  335. <!-- 折扣券 start -->
  336. <view class="coupon_pre_price" v-if="item.couponType == 2">
  337. <view class=""></view>
  338. <text
  339. class="price_int">{{filters.toSplit(filters.toFixNum(item.publishValue,1))[0]}}</text>.
  340. <text
  341. class="price_decimal">{{filters.toSplit(filters.toFixNum(item.publishValue,1))[1]}}</text>
  342. <text class="price_decimal">{{$L('折')}}</text>
  343. </view>
  344. <!-- 折扣券 end -->
  345. <!-- 随机券 start -->
  346. <view class="coupon_pre_price" v-if="item.couponType == 3">
  347. <text class="unit">¥ </text>
  348. <text class="price_int">{{$getPartNumber(item.randomMax,'int')}}</text>
  349. </view>
  350. <!-- 随机券 end -->
  351. <view class="coupon_pre_active">{{item.couponContent}}</view>
  352. </view>
  353. <view class="coupon_pre_cen">
  354. <view class="coupon_pre_title">{{item.useTypeValue}}</view>
  355. <view class="coupon_pre_time">{{item.effectiveStart}}~{{item.effectiveEnd}}</view>
  356. <view class="coupon_pre_rules" @click="descriptionOpen(item.couponId)">
  357. <text>{{$L('使用规则')}}</text>
  358. <image :src="item.isOpen ? imgUrl + 'coupon/up.png' : imgUrl + 'coupon/down.png'"
  359. mode=""></image>
  360. </view>
  361. </view>
  362. <view class="coupon_pre_right" v-if="item.isReceive == 3">{{$L('已抢完')}}</view>
  363. <view class="coupon_pre_right" v-if="item.isReceive == 2">{{$L('已领')}}</view>
  364. <view class="coupon_pre_right" v-if="item.isReceive == 1" @click="goReceive(item)">
  365. {{$L('立即领取')}}
  366. </view>
  367. </view>
  368. <view class="coupon_rules" v-if="item.isOpen == true">
  369. <view class="coupon_rules_title">{{$L('使用规则')}}:{{item.description}}</view>
  370. </view>
  371. <view class="coupon_type">{{item.couponTypeValue}}</view>
  372. <view class="coupon_progress" v-if="item.isReceive != 3">
  373. {{$L('已抢')}}{{item.receivePercent}}%
  374. <view class="progress_con">
  375. <progress :percent="item.receivePercent" stroke-width="3" activeColor="#FFFFFF"
  376. backgroundColor="#FF1919" border-radius='2px' />
  377. </view>
  378. </view>
  379. </view>
  380. </scroll-view>
  381. </view>
  382. </uni-popup>
  383. <!-- 优惠券弹框 end -->
  384. <!-- 满优惠弹框 start -->
  385. <uni-popup ref="fullDisModel" type="bottom" @touchmove.stop.prevent="moveHandle">
  386. <view class="fulldis_model">
  387. <view class="fulldis_model_title">
  388. <text>{{$L('满优惠')}}</text>
  389. <image :src="imgUrl+'goods_detail/close.png'" mode="" @click="closeModel"></image>
  390. </view>
  391. <scroll-view class="fulldis_model_list" scroll-y="true">
  392. <view v-for="(item,index) in fullDisList" :key="index">
  393. <view class="fulldis_model_pre" v-for="(item1,index1) in item.descriptionList" :key="index1">
  394. <view class="fulldis_pre_tips"></view>
  395. <view class="fulldis_pre_con">
  396. {{item1}}
  397. </view>
  398. </view>
  399. </view>
  400. </scroll-view>
  401. <view class="full_dis_tips">
  402. {{$L('以上优惠仅为初步预估,实际以结算最终价格为准!以上优惠仅为初步预估,实际以结算最终价格为准!结算最终价格为准!')}}
  403. </view>
  404. </view>
  405. </uni-popup>
  406. <!-- 满优惠弹框 end -->
  407. <view class="deliver_addr">
  408. </view>
  409. <!-- 服务 start -->
  410. <view class="service" v-if="goodsData && goodsData.serviceLabels && goodsData.serviceLabels.length > 0"
  411. @click="serviceModel">
  412. <view class="service_left">
  413. <view class="service_title">
  414. {{$L('服务')}}
  415. </view>
  416. <view class="service_con">
  417. <view class="service_pre" v-for="(item,index) in goodsData.serviceLabels" :key="index"
  418. v-if="index < 3">
  419. <text class="service_pre_tips"></text>
  420. <text>{{item.labelName}}</text>
  421. </view>
  422. </view>
  423. </view>
  424. <view class="service_right">
  425. <image :src="imgUrl+'goods_detail/right_down.png'" mode=""></image>
  426. </view>
  427. </view>
  428. <!-- 服务 end -->
  429. <!-- 服务弹框 start -->
  430. <uni-popup ref="serviceModel" type="bottom" @touchmove.stop.prevent="moveHandle">
  431. <view class="service_model">
  432. <view class="service_model_top">
  433. <text>{{$L('服务')}}</text>
  434. <image :src="imgUrl+'goods_detail/close.png'" mode="" @click="closeModel"></image>
  435. </view>
  436. <scroll-view class="uni-list service_model_list" scroll-y="true">
  437. <view class="service_list_pre" v-for="(item,index) in goodsData.serviceLabels" :key="index">
  438. <view class="service_list_title">{{item.labelName}}</view>
  439. <view class="service_list_des">{{item.description}}</view>
  440. </view>
  441. </scroll-view>
  442. </view>
  443. </uni-popup>
  444. <!-- 服务弹框 end -->
  445. <!-- 评价 start-->
  446. <view class="eva_section" id="nav2">
  447. <view class="e_header flex_row_between_center">
  448. <view class="left flex_row_start_end">
  449. <text class="tit">{{$L('商品评价')}}</text>
  450. <text class="e_num"
  451. v-if="goodsCommentsInfo && goodsCommentsInfo.commentsCount">({{goodsCommentsInfo.commentsCount}})</text>
  452. <text class="e_rate"
  453. v-if="goodsCommentsInfo && goodsCommentsInfo.highPercent">{{goodsCommentsInfo.highPercent != '0%' ? '好评率'+goodsCommentsInfo.highPercent : $L("暂无好评")}}</text>
  454. </view>
  455. <view class="right flex_row_end_center" @click="goEvaluation">
  456. <text class="view_more">{{$L('查看更多')}}</text>
  457. <image :src="imgUrl+'goods_detail/right_down.png'" mode="" class="right_down"></image>
  458. </view>
  459. </view>
  460. <view class="eva_box flex_column_start_start"
  461. v-if="goodsCommentsInfo && goodsCommentsInfo.list && goodsCommentsInfo.list.length > 0">
  462. <view class="e_member_info flex_row_start_center">
  463. <image class="portrait" :src="goodsCommentsInfo.list[0].memberAvatar" mode="aspectFill"></image>
  464. <text class="name">{{filters.toAnonymous(goodsCommentsInfo.list[0].memberName)}}</text>
  465. <!-- 只读状态 -->
  466. <uni-rate :readonly="true" :value="goodsCommentsInfo.list[0].score" active-color="red"
  467. disabledColor="#ccc" :size="18" />
  468. </view>
  469. <text class="con" v-if="goodsCommentsInfo.list[0].content">{{goodsCommentsInfo.list[0].content}}</text>
  470. <text class="con"
  471. v-else>{{goodsCommentsInfo.list[0].score>=4?$L("好评"):(goodsCommentsInfo.list[0].score<2?$L("差评"):$L("中评"))}}</text>
  472. </view>
  473. </view>
  474. <!-- 评价end -->
  475. <!-- 店铺 start -->
  476. <view class="shop">
  477. <view class="shop_des" @click="goShopHome()">
  478. <view class="shop_des_image">
  479. <image :src="storeInf.storeLogo" mode="" class=""></image>
  480. </view>
  481. <view class="shop_des_con">
  482. <view class="shop_con_title">{{storeInf.storeName}}</view>
  483. <view class="shop_con_type">
  484. <view class="shop_type" v-if="storeInf.isOwnStore == 1">{{$L('自营')}}</view>
  485. <view class="shop_follow_num">
  486. {{storeInf.followNumber ? storeInf.followNumber : 0 }}{{$L('人关注')}}
  487. </view>
  488. </view>
  489. </view>
  490. </view>
  491. <view class="shop_des_list">
  492. <view class="shop_des_pre">
  493. <text>{{$L('描述相符')}}</text>
  494. <text>{{filters.toFixNum(storeInf.descriptionScore,1)}}{{$L('分')}}</text>
  495. <image
  496. :src="storeInf.descriptionScore > 4 ? imgUrl + 'goods_detail/high.png' : storeInf.descriptionScore < 2 ? imgUrl + 'goods_detail/low.png' : imgUrl + 'goods_detail/middle.png'"
  497. mode=""></image>
  498. </view>
  499. <view class="shop_des_pre">
  500. <text>{{$L('服务态度')}}</text>
  501. <text>{{filters.toFixNum(storeInf.serviceScore,1)}}{{$L('分')}}</text>
  502. <image
  503. :src="storeInf.serviceScore > 4 ? imgUrl + 'goods_detail/high.png' : storeInf.serviceScore < 2 ? imgUrl + 'goods_detail/low.png' : imgUrl + 'goods_detail/middle.png'"
  504. mode=""></image>
  505. </view>
  506. <view class="shop_des_pre">
  507. <text>{{$L('发货速度')}}</text>
  508. <text>{{filters.toFixNum(storeInf.deliverScore,1)}}{{$L('分')}}</text>
  509. <image
  510. :src="storeInf.deliverScore > 4 ? imgUrl + 'goods_detail/high.png' : storeInf.deliverScore < 2 ? imgUrl + 'goods_detail/low.png' : imgUrl + 'goods_detail/middle.png'"
  511. mode=""></image>
  512. </view>
  513. </view>
  514. <view class="shop_links">
  515. <image :src="imgUrl + 'goods_detail/contact_service.png'" mode="" @click="toKefu"></image>
  516. <image :src="imgUrl + 'goods_detail/go_store.png'" mode="" @click="goShopHome()"></image>
  517. </view>
  518. </view>
  519. <!-- 店铺 end -->
  520. <!-- 店铺推荐 start-->
  521. <view class="store_recommend" id="nav3" v-if="recommendedList && recommendedList.length > 0">
  522. <view class="store_recommend_top">
  523. <view class="store_recommend_title">{{$L('店铺推荐')}}</view>
  524. <!-- <view class="store_recommend_more" @click="toStoreGoodList()">
  525. <text>查看更多</text>
  526. <image :src="imgUrl+'goods_detail/right_down_red.png'" mode="" class="right_down"></image>
  527. </view> -->
  528. </view>
  529. <view class="store_recommend_list">
  530. <view class="store_recommend_pre" v-for="(item,index) in recommendedList" :key="index"
  531. @click="goProductDetail(item.defaultProductId)" v-if="index < 6">
  532. <view class="store_reco_pre_image">
  533. <image :src="item.goodsImage" mode=""></image>
  534. <view class="store_reco_pre_price">
  535. <text class="unit">¥</text>
  536. <text class="price_int">{{$getPartNumber(item.goodsPrice,'int')}}</text>
  537. <text class="price_decimal">{{$getPartNumber(item.goodsPrice,'decimal')}}</text>
  538. </view>
  539. </view>
  540. <view class="store_reco_pre_name">{{item.goodsName}}</view>
  541. </view>
  542. </view>
  543. </view>
  544. <!-- 店铺推荐 end -->
  545. <!-- 规格参数 start -->
  546. <view class="spec_param" v-if="goodsParameterList && goodsParameterList.length > 0">
  547. <view class="spec_param_title">
  548. <text>{{$L('规格参数')}}</text>
  549. <image class="image_mode_fill_h5" :src="imgUrl + 'goods_detail/spec_param_bg.png'" mode=""></image>
  550. </view>
  551. <view class="spec_param_list" :class="{open_param:openGoodsParam}">
  552. <view class="spec_param_pre" v-for="(item,index) in goodsParameterList">
  553. <text>{{item.parameterName}}</text>
  554. <text>{{item.parameterValue}}</text>
  555. </view>
  556. </view>
  557. <view class="spec_param_fold" @click="handleGoodsParam" v-if="goodsParameterList.length > 5">
  558. <text>{{openGoodsParam ? $L("收起") :$L("展开")}}</text>
  559. <image :src="openGoodsParam ? imgUrl + 'goods_detail/up.png' : imgUrl + 'goods_detail/down.png'"
  560. mode=""></image>
  561. </view>
  562. </view>
  563. <!-- 规格参数 end -->
  564. <view class="detail-desc" id="nav4">
  565. <view class="detail-desc_title">
  566. <text>{{$L('商品详情')}}</text>
  567. <image class="image_mode_fill_h5" :src="imgUrl + 'goods_detail/spec_param_bg.png'" mode="widthFix"></image>
  568. </view>
  569. <jyf-parser :html="goodsData.goodsDetails" ref="description"></jyf-parser>
  570. <view style="width: 750rpx;height: 100rpx;" />
  571. </view>
  572. <!-- 底部操作菜单 -->
  573. <view class="page_bottom">
  574. <view class="p_b_btn" @click="goShopHome()">
  575. <image :src="imgUrl + 'goods_detail/store.png'" mode=""></image>
  576. <text class="show_text">{{$L('店铺')}}</text>
  577. </view>
  578. <view url="/pages/index/index" open-type="switchTab" @click="toKefu" class="p_b_btn">
  579. <image :src="imgUrl + 'goods_detail/service.png'" mode="" class="service_img"></image>
  580. <text class="show_text">{{$L('客服')}}</text>
  581. </view>
  582. <navigator url="/pages/cart/cart" open-type="switchTab" class="p_b_btn">
  583. <image :src="imgUrl + 'goods_detail/cart.png'" mode="" class="cart_img"></image>
  584. <text class="show_text">{{$L('购物车')}}</text>
  585. <text class="cart_num" v-if="cartNumShow && cartNum > 0">{{cartNum}}</text>
  586. </navigator>
  587. <!-- 活动商品 start -->
  588. <block v-if="valiInfo(secKillInfo)&& secKillInfo.state == 2">
  589. <!-- 秒杀活动 立即秒杀 已抢完 start -->
  590. <view class="action_btn_group">
  591. <button type="primary" class="action_btn instant_second_kill flex_row_center_center"
  592. @click="showSpecModel"
  593. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock!=0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock != 0)">{{$L('立即秒杀')}}</button>
  594. <button type="primary" class="action_btn seckill_finished flex_row_center_center"
  595. @click="showSpecModel" v-else>{{$L('已抢完')}}</button>
  596. </view>
  597. <!-- 秒杀活动 立即秒杀 已抢完 end -->
  598. </block>
  599. <block v-else-if="valiInfo(preSellInfo)&&preSellInfo.pre_run!=1">
  600. <!-- 预售活动 立即付定金,全款支付 start -->
  601. <view class="action_btn_group">
  602. <block
  603. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  604. <button type="primary" class="action_btn not_stock flex_row_center_center"
  605. @click="showSpecModel">{{$L('库存不足')}}</button>
  606. </block>
  607. <block v-else>
  608. <button type="primary" class="action_btn preSale_btn_deposit flex_row_center_center"
  609. @click="showSpecModel">立即付定金¥{{preSellInfo.firstMoney}}</button>
  610. <button type="primary" class="action_btn preSale_btn_buy flex_row_center_center"
  611. @click="showSpecModel">立即购买</button>
  612. </block>
  613. </view>
  614. </block>
  615. <block v-else-if="valiInfo(ladderInfo)&&ladderInfo.ladder_run==2">
  616. <view class="action_btn_group">
  617. <button type="primary" class="action_btn not_stock flex_row_center_center" @click="showSpecModel"
  618. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">{{$L('库存不足')}}</button>
  619. <view @tap.stop="showSpecModel" class="ladder_btn" data-type="jtt" v-else>{{$L('立即付定金')}}</view>
  620. </view>
  621. </block>
  622. <block v-else-if="valiInfo(pinInfo)&&pinInfo.state==1">
  623. <block
  624. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  625. <view class="action_btn_group">
  626. <button type="primary" class="action_btn not_stock flex_row_center_center"
  627. @click="showSpecModel">{{$L('库存不足')}}</button>
  628. </view>
  629. </block>
  630. <block v-else>
  631. <view class="pinGroup_btn">
  632. <view class="group_shopping_alone" @tap="showSpecModel('pinAlone')" data-alonePin="true">
  633. <view class="group_alone_price">¥{{pinInfo.productPrice}}</view>
  634. <view class="group_alone_title">单独买</view>
  635. </view>
  636. <view class="go_group" @tap="showSpecModel('pinLeague')" data-alonePin="false">
  637. <view class="go_group_price">¥{{pinInfo.leaderPrice?pinInfo.leaderPrice:pinInfo.spellPrice}}
  638. </view>
  639. <view class="go_group_title">{{'去开团'}}</view>
  640. </view>
  641. </view>
  642. </block>
  643. </block>
  644. <!-- 活动商品 end -->
  645. <!-- 正常商品 start -->
  646. <block v-else>
  647. <!--商品已下架 start -->
  648. <view class="action_btn_group" v-if="goodsData.state != 3">
  649. <button type="primary" class="action_btn not_stock flex_row_center_center">{{$L('商品已下架')}}</button>
  650. </view>
  651. <!--商品已下架 end -->
  652. <!--库存不足start -->
  653. <view class="action_btn_group"
  654. v-else-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  655. <button type="primary" class="action_btn not_stock flex_row_center_center"
  656. @click="showSpecModel">{{$L('库存不足')}}</button>
  657. </view>
  658. <!--库存不足 end -->
  659. <!-- 普通商品 start -->
  660. <view class="action_btn_group" v-else>
  661. <button type="primary" class="action_btn add_cart_btn flex_row_center_center"
  662. @click="showSpecModel('add')">{{$L('加入购物车')}}</button>
  663. <button type="primary" class="action_btn buy_now_btn flex_row_center_center"
  664. @click="showSpecModel('buy')">{{$L('立即购买')}}</button>
  665. </view>
  666. <!-- 普通商品 end -->
  667. </block>
  668. <!-- 正常商品 end -->
  669. </view>
  670. <!-- 分享 -->
  671. <share ref="share" :contentHeight="580" :shareList="shareList"></share>
  672. <uni-popup ref="popup" type="dialog" @touchmove.stop.prevent="moveHandle">
  673. <uni-popup-dialog type="input" :title="dialogTitle" :content="dialogCon" :duration="2000"
  674. before-close="true" @close="dialogCancle" @confirm="dialogConfirm"></uni-popup-dialog>
  675. </uni-popup>
  676. <!-- 分享弹框 start -->
  677. <view class="share_model" v-if="share_model" @touchmove.stop.prevent="moveHandle">
  678. <view class="share_model_list">
  679. <!-- #ifdef H5 -->
  680. <view class="share_model_pre" @tap.stop="sldShareBrower" v-if="isWeiXinBrower">
  681. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  682. <text>{{$L('微信好友')}}</text>
  683. </view>
  684. <!-- #endif -->
  685. <!-- #ifdef MP-WEIXIN -->
  686. <button open-type="share" class="share_model_pre">
  687. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  688. <text>{{$L('微信好友')}}</text>
  689. </button>
  690. <!-- #endif -->
  691. <!-- #ifdef APP-PLUS -->
  692. <view class="share_model_pre" @tap.stop="sldShare(0,'WXSceneSession')">
  693. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  694. <text>{{$L('微信好友')}}</text>
  695. </view>
  696. <view class="share_model_pre" @tap.stop="sldShare(0,'WXSenceTimeline')">
  697. <image :src="imgUrl+'goods_detail/wechat_moments.png'" mode=""></image>
  698. <text>{{$L('微信朋友圈')}}</text>
  699. </view>
  700. <!-- #endif -->
  701. <view class="share_model_pre">
  702. <image :src="imgUrl+'goods_detail/poster.png'" mode="" @click="getPoster"></image>
  703. <text>{{$L('生成海报')}}</text>
  704. </view>
  705. </view>
  706. <view class="share_model_close" @click="closeShareModel">
  707. <image :src="imgUrl+'goods_detail/share_close.png'" mode=""></image>
  708. </view>
  709. </view>
  710. <!-- 分享弹框 end -->
  711. <!-- 生成海报 start-->
  712. <view class="poster" v-if="poster" @touchmove.stop.prevent="moveHandle">
  713. <!-- 分享海报弹框 start -->
  714. <view class="share_model" :class="{poster_share_model:poster}">
  715. <image :src="sharePoster" mode="" class="poster_image" @longtap.stop="downloadPoster"></image>
  716. <view class="share_model_list">
  717. <!-- #ifdef MP-WEIXIN -->
  718. <view class="share_model_pre" @tap.stop="downloadPoster">
  719. <image :src="imgUrl+'goods_detail/poster.png'" mode=""></image>
  720. <text>{{$L('下载海报')}}</text>
  721. </view>
  722. <!-- #endif -->
  723. <!-- #ifdef APP-PLUS -->
  724. <view class="share_model_pre" @tap.stop="downloadPoster">
  725. <image :src="imgUrl+'goods_detail/poster.png'" mode=""></image>
  726. <text>{{$L('保存海报')}}</text>
  727. </view>
  728. <view class="share_model_pre" @tap.stop="sldShare(2,'WXSceneSession')">
  729. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  730. <text>{{$L('微信好友')}}</text>
  731. </view>
  732. <view class="share_model_pre" @tap.stop="sldShare(2,'WXSenceTimeline')">
  733. <image :src="imgUrl+'goods_detail/wechat_moments.png'" mode=""></image>
  734. <text>{{$L('微信朋友圈')}}</text>
  735. </view>
  736. <!-- #endif -->
  737. </view>
  738. <!-- #ifndef H5 -->
  739. <view class="share_model_close" @click="closeShareModel">
  740. <image :src="imgUrl+'goods_detail/share_close.png'" mode=""></image>
  741. </view>
  742. <!-- #endif -->
  743. <!-- #ifdef H5 -->
  744. <image :src="imgUrl+'goods_detail/poster_share.png'" mode="" class="poster_share_img"
  745. @longtap.stop="downloadPoster"></image>
  746. <image :src="imgUrl+'goods_detail/poster_share_close.png'" mode="" class="poster_share_close"
  747. @click.stop="closePoster"></image>
  748. <!-- #endif -->
  749. </view>
  750. <!-- 分享海报弹框 end -->
  751. </view>
  752. <!-- 生成海报 end-->
  753. <!-- 微信浏览器分享提示 start-->
  754. <view class="wx_brower_share_mask" v-if="showWeiXinBrowerTip">
  755. <view class="wx_brower_share_top_wrap">
  756. <image :src="imgUrl+'wx_share_tip.png'" mode="widthFix" @tap="closeShareModel"
  757. class="wx_brower_share_img"></image>
  758. </view>
  759. </view>
  760. <!-- 微信浏览器分享提示 end-->
  761. <!-- 规格弹框 start -->
  762. <uni-popup class="spec_model" ref="specModel" type="bottom" @touchmove.stop.prevent="moveHandle">
  763. <view class="spec_model_con">
  764. <view class="spec_model_content">
  765. <view class="spec_model_top">
  766. <view class="spec_model_goods">
  767. <view class="spec_goods_image"
  768. v-if="defaultProduct && defaultProduct.goodsPics && defaultProduct.goodsPics[0] && isChoice == 'default'">
  769. <image :src="defaultProduct.goodsPics[0]" mode="aspectFit"></image>
  770. </view>
  771. <view class="spec_goods_image"
  772. v-else-if="choiceSpecDes && choiceSpecDes.goodsPics && choiceSpecDes.goodsPics[0] && isChoice == 'choice'">
  773. <image :src="choiceSpecDes.goodsPics[0]" mode="aspectFit"></image>
  774. </view>
  775. <view class="spec_goods_right">
  776. <view class="spec_goods_price_con">
  777. <view class="spec_prices">
  778. <!-- 立即秒杀进行中 start -->
  779. <view class="spec_goods_price" v-if="secKillInfo && secKillInfo.state == 2">
  780. <text>¥</text>
  781. <text>{{$getPartNumber(secKillInfo.seckillPrice,'int')}}</text>
  782. <text>{{$getPartNumber(secKillInfo.seckillPrice,'decimal')}}</text>
  783. </view>
  784. <!-- 立即秒杀进行中 end -->
  785. <!-- 预售 start -->
  786. <!-- 立即付定金 start -->
  787. <view class="spec_goods_price"
  788. v-else-if="preSellInfo && preSellInfo.type == 1&&preSellInfo.pre_run==2">
  789. <text>¥</text>
  790. <text>{{$getPartNumber(preSellInfo.firstMoney,'int')}}</text>
  791. <text>{{$getPartNumber(preSellInfo.firstMoney,'decimal')}}</text>
  792. </view>
  793. <!-- 立即付定金 end -->
  794. <!-- 全款 start -->
  795. <view class="spec_goods_price"
  796. v-else-if="preSellInfo && preSellInfo.type == 2&&preSellInfo.pre_run==2">
  797. <text>¥</text>
  798. <text>{{$getPartNumber(preSellInfo.presellPrice,'int')}}</text>
  799. <text>{{$getPartNumber(preSellInfo.presellPrice,'decimal')}}</text>
  800. </view>
  801. <!-- 全款 end -->
  802. <!-- 预售 end -->
  803. <!-- 阶梯团start -->
  804. <view class="spec_goods_price" v-else-if="JSON.stringify(ladderInfo)!='{}'">
  805. <text>¥</text>
  806. <text>{{$getPartNumber(ladderInfo.advanceDeposit,'int')}}</text>
  807. <text>{{$getPartNumber(ladderInfo.advanceDeposit,'decimal')}}</text>
  808. </view>
  809. <!-- 阶梯团end -->
  810. <!-- 拼团start -->
  811. <view class="spec_goods_price"
  812. v-else-if="JSON.stringify(pinInfo)!='{}'&&pinButState">
  813. <text>¥</text>
  814. <text>{{$getPartNumber(pinInfo.leaderPrice?(pinButState==3?pinInfo.spellPrice:pinInfo.leaderPrice):pinInfo.spellPrice,'int')}}</text>
  815. <text>{{$getPartNumber(pinInfo.leaderPrice?(pinButState==3?pinInfo.spellPrice:pinInfo.leaderPrice):pinInfo.spellPrice,'decimal')}}</text>
  816. </view>
  817. <!-- 拼团end -->
  818. <!-- 正常商品start -->
  819. <view class="spec_goods_price"
  820. v-else-if="isChoice == 'default' && defaultProduct.productPrice">
  821. <text>¥</text>
  822. <text>{{$getPartNumber(defaultProduct.productPrice,'int')}}</text>
  823. <text>{{$getPartNumber(defaultProduct.productPrice,'decimal')}}</text>
  824. </view>
  825. <view class="spec_goods_price" v-else-if="choiceSpecDes.productPrice">
  826. <text>¥</text>
  827. <text>{{$getPartNumber(choiceSpecDes.productPrice,'int')}}</text>
  828. <text>{{$getPartNumber(choiceSpecDes.productPrice,'decimal')}}</text>
  829. </view>
  830. <!-- 正常商品end -->
  831. </view>
  832. <!-- 活动标识 start -->
  833. <view class="sec_kill_tips"
  834. v-if="secKillInfo && (secKillInfo.state == 2 || secKillInfo.state == 1)">
  835. {{$L('限时秒杀')}}
  836. </view>
  837. <view class="pre_sale_tips"
  838. v-if="JSON.stringify(preSellInfo)!='{}'&&preSellInfo.pre_run==2">{{$L("预售")}}
  839. </view>
  840. <text class="ladder_regiment_tips"
  841. v-if="JSON.stringify(ladderInfo)!='{}'">{{$L('阶梯团')}}</text>
  842. <text class="pin_tips"
  843. v-if="JSON.stringify(pinInfo)!='{}'&&pinButState">{{$L('拼团')}}</text>
  844. <!-- 活动标识 end -->
  845. </view>
  846. <!-- 已下架商品 start -->
  847. <view class="spec_goods_des" v-if="goodsData.state!=3">
  848. {{$L('商品已下架')}}
  849. </view>
  850. <!-- 已下架商品 end -->
  851. <!-- 普通商品 start -->
  852. <view class="spec_goods_des" v-else>
  853. {{$L('已选规格')}}:
  854. <text
  855. v-if="defaultProduct.getSpecValues || choiceSpecDes.getSpecValues">{{isChoice == 'default' ? defaultProduct.getSpecValues : choiceSpecDes.getSpecValues}}</text>
  856. <text v-else>{{$L('默认')}}</text>
  857. </view>
  858. <!-- 普通商品 end -->
  859. </view>
  860. </view>
  861. <image :src="imgUrl+'goods_detail/close.png'" mode="" class="close_spec"
  862. @click="closeSpecModel"></image>
  863. </view>
  864. <scroll-view scroll-y="true" class="spec_content">
  865. <view class="spec_list" v-if="specs && specs.length > 0">
  866. <view class="spec_list_pre" v-for="(item,index) in specs" :key="index">
  867. <view class="spec_list_pre_name">{{item.specName}}</view>
  868. <block v-if="item && item.specValueList && item.specValueList.length > 0"
  869. v-for="(item1,index1) in item.specValueList" :key='index1'>
  870. <!-- checkState : 1-选中,2-可选,3-禁用 -->
  871. <view class="spec_list_pre_desc"
  872. :class="{spec_list_pre_desc_disabled:item1.checkState == '3'}"
  873. v-if="item1.checkState == '3'">
  874. <view class="spec_list_pre_con">
  875. <image :src="item1.image" mode="" v-if="item1.image"></image>
  876. <text>{{item1.specValue}}</text>
  877. </view>
  878. </view>
  879. <view class="spec_list_pre_desc"
  880. :class="{spec_list_pre_desc_active:item1.checkState == '1'}"
  881. @click="selectSpecVal('choice',item.specId,item1.specValueId)" v-else>
  882. <view class="spec_list_pre_con">
  883. <image :src="item1.image" mode="" v-if="item1.image"></image>
  884. <text>{{item1.specValue}}</text>
  885. </view>
  886. </view>
  887. </block>
  888. </view>
  889. </view>
  890. <view class="spec_num">
  891. <view class="spec_num_left">
  892. {{$L('购买数量')}}
  893. </view>
  894. <view class="spec_num_right">
  895. <text @click="editNum('reduce')" :class="{no_edit:currentSpecNum==1}">-</text>
  896. <input type="number" v-model="currentSpecNum" @input="editNum('edit',$event)" />
  897. <text @click="editNum('add')" :class="{no_edit:noEdit}">+</text>
  898. </view>
  899. </view>
  900. </scroll-view>
  901. </view>
  902. <!-- 规格弹框的底部按钮 start -->
  903. <!-- 秒杀商品start -->
  904. <block v-if="JSON.stringify(secKillInfo) != '{}' && secKillInfo.state == 2 ">
  905. <!-- 秒杀已抢完 start -->
  906. <view class="spec_btn"
  907. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  908. <button type="primary" class="spec_not_stock spec_btn_only">{{$L('已抢完')}}</button>
  909. </view>
  910. <!-- 秒杀已抢完 end -->
  911. <!--立即秒杀 start -->
  912. <view class="spec_btn" @click="buy" v-else>
  913. <button type="primary" class="spec_seckill_btn spec_btn_only">{{$L('立即秒杀')}}</button>
  914. </view>
  915. <!--立即秒杀 end -->
  916. </block>
  917. <!-- 秒杀商品end -->
  918. <!-- 预售活动 start -->
  919. <block v-else-if="valiInfo(preSellInfo)&&preSellInfo.pre_run!=1">
  920. <view class="spec_btn"
  921. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  922. <button type="primary" class="spec_not_stock spec_btn_only">{{$L('库存不足')}}</button>
  923. </view>
  924. <!--立即付定金/全款支付 start -->
  925. <view class="spec_btn" v-else @click="buy">
  926. <button type="primary"
  927. :class="{spec_deposit_btn:preSellInfo.type == 1,spec_seckill_btn:preSellInfo.type == 2,spec_btn_only:true}">{{preSellInfo.type == 1?`${$L("立即付定金")}¥${preSellInfo.firstMoney}`:$L("立即购买")}}</button>
  928. </view>
  929. <!--立即付定金/全款支付 end -->
  930. </block>
  931. <!-- 预售活动 end -->
  932. <!-- 阶梯团活动start -->
  933. <block v-else-if="valiInfo(ladderInfo)&&ladderInfo.ladder_run==2">
  934. <view class="spec_btn"
  935. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  936. <button type="primary" class="spec_not_stock spec_btn_only">{{$L('库存不足')}}</button>
  937. </view>
  938. <view class="spec_btn" v-else>
  939. <view @click="buy" class="specifications_btn2">
  940. <text>{{$L('立即付定金')}}</text>
  941. </view>
  942. </view>
  943. </block>
  944. <!-- 阶梯团活动end -->
  945. <!-- 拼团活动start -->
  946. <block v-else-if="JSON.stringify(pinInfo)!='{}'&&pinInfo.state == 1">
  947. <view class="spec_btn"
  948. v-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  949. <button type="primary" class="spec_not_stock spec_btn_only">{{$L('库存不足')}}</button>
  950. </view>
  951. <block v-else>
  952. <view class="spec_btn" v-if="!pinButState" @click="buy">
  953. <button type="primary" class="specifications_bottom_btn3">
  954. <text>{{$L("单独买")}}</text>
  955. <text>(¥{{pinInfo.productPrice}})</text>
  956. </button>
  957. </view>
  958. <view class="spec_btn" v-if="pinButState==1" @click="buy">
  959. <button type="primary" class="specifications_bottom_btn4">
  960. <text>{{$L("去开团")}}</text>
  961. <text>(¥{{pinInfo.leaderPrice?(pinButState==3?pinInfo.spellPrice:pinInfo.leaderPrice):pinInfo.spellPrice}})</text>
  962. </button>
  963. </view>
  964. <view class="spec_btn" v-if="pinButState==2">
  965. <view class="specification_add" @tap="buy">
  966. <text>¥{{pinInfo.productPrice}}</text>
  967. <text>{{$L("单独买")}}</text>
  968. </view>
  969. <view class="specification_buy" @tap="buy">
  970. <text>¥{{pinInfo.leaderPrice?(pinButState==3?pinInfo.spellPrice:pinInfo.leaderPrice):pinInfo.spellPrice}}</text>
  971. <text>{{$L("去开团")}}</text>
  972. </view>
  973. </view>
  974. <view class="spec_btn" v-if="pinButState==3" @click="buy">
  975. <button type="primary" class="specifications_bottom_btn4">
  976. <text>{{$L("去参团")}}</text>
  977. <text>(¥{{pinInfo.leaderPrice?(pinButState==3?pinInfo.spellPrice:pinInfo.leaderPrice):pinInfo.spellPrice}})</text>
  978. </button>
  979. </view>
  980. </block>
  981. </block>
  982. <!-- 拼团活动end -->
  983. <block v-else>
  984. <!-- 商品下架 start -->
  985. <text>{{showSpecModelType}}</text>
  986. <view class="spec_btn" v-if="goodsData.state!=3">
  987. <button type="primary" class="spec_not_stock spec_btn_only">{{$L('商品已下架')}}</button>
  988. </view>
  989. <!-- 商品下架 end -->
  990. <!--库存不足 start -->
  991. <view class="spec_btn"
  992. v-else-if="(isChoice == 'default' && defaultProduct && defaultProduct.productStock==0) || (isChoice == 'choice' && choiceSpecDes && choiceSpecDes.productStock == 0)">
  993. <button type="primary" class="spec_not_stock spec_btn_only">{{$L('库存不足')}}</button>
  994. </view>
  995. <!--库存不足 end -->
  996. <!-- 普通商品 start-->
  997. <block v-else>
  998. <view class="spec_btn" v-if="showSpecModelType == ''">
  999. <text class="spec_add_cart_btn" @click="addCart">{{$L('加入购物车')}}</text>
  1000. <text class="spec_buy_btn" @click="buy">{{$L('立即购买')}}</text>
  1001. </view>
  1002. <view class="spec_btn" v-if="showSpecModelType == 'add'">
  1003. <text class="spec_add_cart_btn spec_btn_only" @click="addCart">{{$L('加入购物车')}}</text>
  1004. </view>
  1005. <view class="spec_btn" v-if="showSpecModelType == 'buy'">
  1006. <text class="spec_buy_btn spec_btn_only" @click="buy">{{$L('立即购买')}}</text>
  1007. </view>
  1008. </block>
  1009. <!-- 普通商品 end-->
  1010. </block>
  1011. </view>
  1012. <!-- 规格弹框的底部按钮 end -->
  1013. </uni-popup>
  1014. <!-- 规格弹框 end -->
  1015. <uni-popup ref="addressModel" type="bottom" @touchmove.stop.prevent="moveHandle">
  1016. <view class="address_list_con">
  1017. <view class="address_top">
  1018. <view class="back_view">
  1019. <image src="" mode=""></image>
  1020. </view>
  1021. <view class="address_top_text">配送至</view>
  1022. <image :src="imgUrl+'goods_detail/close.png'" mode="" @click="addressClose"></image>
  1023. </view>
  1024. <scroll-view scroll-y="true" class="address_list" @touchmove.stop.prevent="moveHandle">
  1025. <view v-for="(item, index) in addressList" :key="index" @click="checkAddress(item)"
  1026. :class="{'list':true}">
  1027. <view class="wrapper flex_row_start_center">
  1028. <image v-if="sourceId==item.addressId" :src="imgUrl+'location_on.png'"></image>
  1029. <image :src="imgUrl+'location.png'" v-else></image>
  1030. <image src="" mode="" v-else></image>
  1031. <view class="flex_column_start_start">
  1032. <view class="address-box">
  1033. <text
  1034. :class="{address:true,address_on:sourceId==item.addressId}">{{item.addressAll}}
  1035. {{item.detailAddress}}</text>
  1036. </view>
  1037. </view>
  1038. </view>
  1039. <view class="wrapper_right">
  1040. <image v-if="sourceId==item.addressId" :src="imgUrl+'checked.png'" class="checkedIcon"></image>
  1041. </view>
  1042. </view>
  1043. </scroll-view>
  1044. <view class="other_address">
  1045. <view class="other_btn" @click="chooseArea">选择其他地址</view>
  1046. </view>
  1047. </view>
  1048. </uni-popup>
  1049. <uni-popup ref="popLogin" type="dialog">
  1050. <uni-popup-dialog type="input" title ="提示" content="请登录?" :duration="2000" @confirm="confirmLogin"></uni-popup-dialog>
  1051. </uni-popup>
  1052. <selectAddress ref='selectAddress' :sel_data='selAddressData' @selectAddress="successSelectAddress" :isBack="isBack" @backToAdd="backToAdd">
  1053. </selectAddress>
  1054. </view>
  1055. </template>
  1056. <script module="filters" lang="wxs" src="../../utils/filter.wxs"></script>
  1057. <script>
  1058. import selectAddress from '@/components/yixuan-selectAddress/yixuan-selectAddress';
  1059. import share from '@/components/share';
  1060. import uniPopup from '@/components/uni-popup/uni-popup.vue'
  1061. import uniPopupMessage from '@/components/uni-popup/uni-popup-message.vue'
  1062. import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
  1063. import jyfParser from "@/components/jyf-parser/jyf-parser";
  1064. import uniSwiperDot from "@/components/uni-swiper-dot/uni-swiper-dot.vue";
  1065. import pinInfo from '@/components/activityDetail/pinGroup/pinInfo.vue'
  1066. import pinGroupList from '@/components/activityDetail/pinGroup/pinGroupList.vue'
  1067. import preInfo from '@/components/activityDetail/preSale/preInfo.vue'
  1068. import ladderInfo from '@/components/activityDetail/ladderGroup/ladderInfo.vue'
  1069. import ladderProgress from '@/components/activityDetail/ladderGroup/ladderProgress.vue'
  1070. import {
  1071. mapState,
  1072. mapMutations
  1073. } from 'vuex';
  1074. export default {
  1075. components: {
  1076. selectAddress,
  1077. share,
  1078. uniPopup,
  1079. uniPopupMessage,
  1080. uniPopupDialog,
  1081. jyfParser,
  1082. uniSwiperDot,
  1083. pinInfo,
  1084. pinGroupList,
  1085. preInfo,
  1086. ladderInfo,
  1087. ladderProgress,
  1088. },
  1089. data() {
  1090. return {
  1091. imgUrl: getApp().globalData.imgUrl,
  1092. dialogTitle: '温馨提示!',
  1093. dialogCon: '您需要先登录哦~',
  1094. goodsData: {},
  1095. specSelected: [],
  1096. statistics: {}, //商品评价数据
  1097. shareList: [],
  1098. selAddressData: [],
  1099. addressAll: '请选择所在地区',
  1100. addressList: [], //地址列表
  1101. goodsId: '', //商品id
  1102. curFreight: '', //当前运费
  1103. currentSelId: '', //默认选中第一个地址
  1104. share_model: false, //分享弹框
  1105. isNavShow: false, //是否显示导航
  1106. navList: [{
  1107. text: '商品',
  1108. id: 0,
  1109. },
  1110. {
  1111. text: '评价',
  1112. id: 1
  1113. },
  1114. {
  1115. text: '推荐',
  1116. id: 2
  1117. },
  1118. {
  1119. text: '详情',
  1120. id: 3
  1121. }
  1122. ],
  1123. navListNoRecommend: [{
  1124. text: '商品',
  1125. id: 0,
  1126. },
  1127. {
  1128. text: '评价',
  1129. id: 1
  1130. },
  1131. {
  1132. text: '详情',
  1133. id: 3
  1134. }
  1135. ],
  1136. currentNav: 0, //当前点击的默认是第一项
  1137. nav1ScrollTop: 0, //商品模块距离顶部的距离
  1138. nav2ScrollTop: 0, //评价模块距离顶部的距离
  1139. nav3ScrollTop: 0, //推荐模块距离顶部的距离
  1140. nav4ScrollTop: 0, //详情模块距离顶部的距离
  1141. codeImg: '', //海报图片
  1142. poster: false, //生成海报
  1143. specModel: false, //规格弹框
  1144. currentSpecNum: 1, //当前规格弹框中的购买数量
  1145. couponList: [], //优惠券列表
  1146. defaultProduct: {}, //默认货品信息
  1147. specs: [], //商品规格列表
  1148. choiceSpecDes: {}, //选择规格之后,要修改的数据信息
  1149. isChoice: 'default', //是默认选中的,还是点击选择规格之后的 default:默认 choice:选择
  1150. productId: '', //货品id
  1151. sharePoster: '',
  1152. isWeiXinBrower: false, //是否微信浏览器
  1153. showWeiXinBrowerTip: false, //微信浏览器分享的提示操作
  1154. source: 2, //来源,终端类型,1、pc 2、app;3、公众号或微信内部浏览器;4、小程序
  1155. mode: 'nav', //轮播图的显示样式类型
  1156. current: 0, //轮播图默认显示第一页
  1157. showSpecModelType: '', //规格弹框的底部按钮的显示类型 默认:加入购物车及立即购买都有 add:加入购物车 buy:立即购买 nosocket库存不足 offshelf商品下架
  1158. noOpcity: false, //顶部导航的背景是否有透明度,轮播图以上有,以下没有
  1159. isLoading: false,
  1160. cartNum: 0, //购物车数量
  1161. cartNumShow: false, //购物车数量的角标是否显示
  1162. storeInf: {}, //店铺信息
  1163. goodsCommentsInfo: {}, //评价信息
  1164. recommendedList: [], //店铺推荐列表
  1165. deliverInfo: {}, //发货地及运费信息
  1166. transparent_mask: false, //透明遮罩蒙层
  1167. tips_show: false, //分享链接弹框
  1168. tips: [{
  1169. tips_img: getApp().globalData.imgUrl + 'goods_detail/home.png',
  1170. tips_name: '首页',
  1171. tips_link: '/pages/index/index',
  1172. type: 'switchTab'
  1173. },
  1174. {
  1175. tips_img: getApp().globalData.imgUrl + 'goods_detail/go_cart.png',
  1176. tips_name: '购物车',
  1177. tips_link: '/pages/cart/cart',
  1178. type: 'switchTab'
  1179. },
  1180. {
  1181. tips_img: getApp().globalData.imgUrl + 'goods_detail/preson.png',
  1182. tips_name: '个人中心',
  1183. tips_link: '/pages/user/user',
  1184. type: 'switchTab'
  1185. }
  1186. ],
  1187. storeInf: {}, //店铺信息
  1188. goodsParameterList: [], //规格参数列表
  1189. openGoodsParam: false, //规格参数超出5行,点击展开,收起
  1190. pageCurrent: 1, //优惠券列表,页
  1191. pageSize: 10, //优惠券列表 每页的条数
  1192. goReceiveBg: getApp().globalData.imgUrl + 'coupon/coupon_pre_bg.png', //立即领取背景
  1193. finishReceiveBg: getApp().globalData.imgUrl + 'coupon/finishReceiveBg.png', //已抢完背景
  1194. hasReceiveBg: getApp().globalData.imgUrl + 'coupon/hasReceiveBg.png', //已领取背景
  1195. fullDisList: [], //满优惠列表
  1196. promotionId: '', //活动id
  1197. secKillInfo: {}, //秒杀活动详情信息
  1198. secKillDay: '00', //秒杀活动倒计时 天
  1199. secKillHr: '00', //秒杀活动倒计时 时
  1200. secKillMin: '00', //秒杀活动倒计时 分
  1201. secKillSec: '00', //秒杀活动倒计时 秒
  1202. preSellInfo: {}, // 预售商品详情信息
  1203. noEdit: false, //不可编辑
  1204. ladderInfo: {}, //阶梯团信息
  1205. ladderDay: 0, //天
  1206. ladderHour: 0, //时
  1207. ladderMinute: 0, //分钟
  1208. ladderSecond: 0, //秒
  1209. ladderProcess: '', //阶梯团进度
  1210. pinInfo: {}, //拼团信息
  1211. spellTeamId: 0, //拼团团队Id
  1212. pinButState: null, //拼团按钮状态,
  1213. showState: 0, //当当前页面进入到下一个页面时,将此值置为1,上一个页面回退到当前页面时,再onShow里判断,防止onShow触发过多
  1214. spreaderMemberId: 0, //专门的推手分享ID设置
  1215. goodsVideo: '',
  1216. showControls: true, //是否显示轮播角标
  1217. playVFlag: false,
  1218. address_list: [],
  1219. curAddress: '',
  1220. sourceId: '',
  1221. selAddressData: [],
  1222. isBack:true
  1223. };
  1224. },
  1225. computed: {
  1226. ...mapState(['hasLogin', 'userInfo', 'userCenterData']),
  1227. },
  1228. // 监听返回事件
  1229. onBackPress(e) {
  1230. },
  1231. async onLoad(options) {
  1232. uni.showLoading({
  1233. title: '加载中!'
  1234. })
  1235. this.productId = options.productId;
  1236. this.showState = 0
  1237. this.goodsId = options.goodsId;
  1238. if (options.scene) {
  1239. let url = decodeURIComponent(options.scene);
  1240. let url_param_array = url.split(',');
  1241. this.productId = url_param_array[0];
  1242. this.goodsId = url_param_array[1];
  1243. this.spreaderMemberId = url_param_array[2] ? url_param_array[2] : 0
  1244. }
  1245. this.getGoodsDetail(this.productId);
  1246. this.addLook(this.productId);
  1247. //#ifdef APP-PLUS
  1248. this.source = 2;
  1249. //#endif
  1250. //#ifdef H5
  1251. this.source = 3;
  1252. //#endif
  1253. //#ifdef MP-WEIXIN
  1254. this.source = 4;
  1255. //#endif
  1256. //#ifdef H5
  1257. this.source = 3;
  1258. //#endif
  1259. //#ifdef MP-WEIXIN
  1260. this.source = 4;
  1261. //#endif
  1262. this.sharePoster = getApp().globalData.apiUrl + 'v3/goods/front/goods/share/sharePosters?productId=' + this
  1263. .productId +
  1264. '&source=' + this.source;
  1265. if (options.videoId) {
  1266. //更新视频商品点击量
  1267. this.updateVideoClick(options.videoId, this.goodsId)
  1268. }
  1269. uni.getSystemInfo({
  1270. success: (res) => {
  1271. let clientHeight = res.windowHeight,
  1272. clientWidth = res.windowWidth,
  1273. rpxR = 750 / clientWidth;
  1274. let calc = clientHeight * rpxR;
  1275. this.winHeight = calc;
  1276. }
  1277. })
  1278. // #ifdef H5
  1279. this.isWeiXinBrower = this.$isWeiXinBrower();
  1280. // #endif
  1281. this.goTop(); //一键回到页面顶部
  1282. //如果路由参数有推手ID,则是推手分享的商品,建立关系
  1283. if (options.u && this.hasLogin) {
  1284. this.spreaderMemberId = options.u
  1285. this.estabTs()
  1286. } else if (options.u && !this.hasLogin) {
  1287. uni.setStorageSync('u', this.spreaderMemberId)
  1288. }
  1289. },
  1290. onShow() {
  1291. if (this.showState == 1) {
  1292. this.getGoodsDetail(this.productId);
  1293. }
  1294. },
  1295. onShareAppMessage: function() {
  1296. return {
  1297. title: this.goodsData.goodsName,
  1298. path: '/pages/product/detail?productId=' + this.productId + '&goodsId=' + this.goodsId,
  1299. imageUrl: this.goodsData.shareImage
  1300. };
  1301. },
  1302. //页面滚动事件
  1303. onPageScroll(res) {
  1304. //监听滚动事件,获取滚动条的当前位置
  1305. this.tips_show = false
  1306. if (res.scrollTop > 50) {
  1307. this.isNavShow = true
  1308. if (res.scrollTop > 350) {
  1309. this.noOpcity = true
  1310. } else {
  1311. this.noOpcity = false;
  1312. }
  1313. if (res.scrollTop < this.nav2ScrollTop) {
  1314. this.currentNav = 0;
  1315. } else {
  1316. if (this.recommendedList && this.recommendedList.length > 0) { //有推荐
  1317. if (res.scrollTop >= this.nav2ScrollTop && res.scrollTop < this.nav3ScrollTop) {
  1318. this.currentNav = 1
  1319. } else if (res.scrollTop >= this.nav3ScrollTop && res.scrollTop < this.nav4ScrollTop) {
  1320. this.currentNav = 2
  1321. } else if (res.scrollTop >= this.nav4ScrollTop) {
  1322. this.currentNav = 3;
  1323. }
  1324. } else { //无推荐
  1325. if (res.scrollTop >= this.nav2ScrollTop && res.scrollTop < this.nav4ScrollTop) {
  1326. this.currentNav = 1
  1327. } else if (res.scrollTop >= this.nav4ScrollTop) {
  1328. this.currentNav = 2
  1329. }
  1330. }
  1331. }
  1332. } else {
  1333. this.isNavShow = false;
  1334. }
  1335. },
  1336. methods: {
  1337. ...mapMutations(['saveChatBaseInfo']),
  1338. //更新视频商品点击量
  1339. updateVideoClick(videoId, goodsId) {
  1340. let param = {}
  1341. param.data = {}
  1342. param.url = 'v3/video/front/video/updateGoodsClickNum'
  1343. param.method = 'GET'
  1344. param.data.videoId = videoId
  1345. param.data.goodsId = goodsId
  1346. this.$request(param).then(res => {
  1347. if (res.state == 200) {}
  1348. })
  1349. },
  1350. //进入详情时请求足迹接口,加入足迹
  1351. addLook(productId) {
  1352. this.$request({
  1353. url: 'v3/member/front/productLookLog/add',
  1354. data: {
  1355. productId: this.productId, //货品id
  1356. },
  1357. method: 'POST'
  1358. }).then(res => {
  1359. if (res.state == 200) {} else {
  1360. this.$api.msg(res.msg);
  1361. }
  1362. })
  1363. },
  1364. //如果推手分享,则建立推手分享关系
  1365. estabTs() {
  1366. let {
  1367. spreaderMemberId
  1368. } = this
  1369. this.$request({
  1370. url: '/v3/spreader/front/spreaderShare/editRelation',
  1371. method: "POST",
  1372. data: {
  1373. spreaderMemberId
  1374. }
  1375. }).then(res => {
  1376. if (res.state = 200) {
  1377. console.log()
  1378. }
  1379. })
  1380. },
  1381. successSelectAddress(address) { //选择成功回调
  1382. this.curAddress = ''
  1383. address.map((item) => {
  1384. this.curAddress += item.name;
  1385. })
  1386. let regionCode = address[address.length-2].code
  1387. this.getUserEx(regionCode)
  1388. },
  1389. //获取页面元素模块距离顶部的距离
  1390. getSelectorQuery() {
  1391. let query = uni.createSelectorQuery().in(this);
  1392. // 获取状态栏的高度
  1393. let statusBarHeight = 0;
  1394. // #ifdef APP-PLUS
  1395. let systemInfo = uni.getSystemInfoSync();
  1396. statusBarHeight = systemInfo.statusBarHeight;
  1397. // #endif
  1398. //获取对应模块到顶部的距离
  1399. query.select('#nav1').boundingClientRect((res) => {
  1400. if (res) {
  1401. this.nav1ScrollTop = res.top - (50 + statusBarHeight);
  1402. }
  1403. }).exec()
  1404. query.select('#nav2').boundingClientRect((res) => {
  1405. if (res) {
  1406. this.nav2ScrollTop = res.top - (50 + statusBarHeight);
  1407. }
  1408. }).exec()
  1409. this.$nextTick(function() {
  1410. if (this.recommendedList && this.recommendedList.length > 0) { //有店铺推荐模块
  1411. query.select('#nav3').boundingClientRect((res) => {
  1412. if (res) {
  1413. this.nav3ScrollTop = res.top - (50 + statusBarHeight);
  1414. }
  1415. }).exec()
  1416. }
  1417. })
  1418. query.select('#nav4').boundingClientRect((res) => {
  1419. if (res) {
  1420. this.nav4ScrollTop = res.top - (50 + statusBarHeight);
  1421. }
  1422. }).exec()
  1423. },
  1424. //点击导航
  1425. clickNav(navId) {
  1426. this.currentNav = navId;
  1427. if (navId == 0) {
  1428. this.isNavShow = true;
  1429. uni.pageScrollTo({
  1430. scrollTop: 0,
  1431. duration: 300
  1432. })
  1433. this.isNavShow = false;
  1434. } else if (navId == 1) {
  1435. uni.pageScrollTo({
  1436. scrollTop: this.nav2ScrollTop,
  1437. duration: 300
  1438. })
  1439. } else if (navId == 2) {
  1440. uni.pageScrollTo({
  1441. scrollTop: this.nav3ScrollTop,
  1442. duration: 300
  1443. })
  1444. } else if (navId == 3) {
  1445. uni.pageScrollTo({
  1446. scrollTop: this.nav4ScrollTop,
  1447. duration: 300
  1448. })
  1449. }
  1450. },
  1451. //轮播图切换
  1452. change: function(e) {
  1453. this.current = e.detail.current;
  1454. if (this.goodsVideo && e.detail.current == 0) {
  1455. this.showControls = false
  1456. } else {
  1457. this.showControls = true
  1458. }
  1459. },
  1460. //跳转客服页面
  1461. toKefu() {
  1462. if (!this.hasLogin) {
  1463. uni.showToast({
  1464. title: '请登录',
  1465. icon: 'none'
  1466. })
  1467. return;
  1468. }
  1469. let chatBaseInfo = {};
  1470. chatBaseInfo.memberId = this.userCenterData.memberId;
  1471. chatBaseInfo.memberName = this.userCenterData.memberName;
  1472. chatBaseInfo.memberNickName = this.userCenterData.memberNickName;
  1473. chatBaseInfo.memberAvatar = this.userCenterData.memberAvatar;
  1474. chatBaseInfo.storeId = this.goodsData.storeInf.storeId;
  1475. chatBaseInfo.storeLogo = this.goodsData.storeInf.storeLogo;
  1476. chatBaseInfo.storeName = this.goodsData.storeInf.storeName;
  1477. chatBaseInfo.source = 'goods';
  1478. chatBaseInfo.showData = {
  1479. 'productId': this.goodsData.defaultProduct.productId,
  1480. 'goodsName': this.goodsData.goodsName,
  1481. 'goodsImage': this.goodsData.shareImage,
  1482. 'goodsPrice': this.goodsData.defaultProduct.productPrice,
  1483. }
  1484. this.saveChatBaseInfo(chatBaseInfo);
  1485. uni.navigateTo({
  1486. url: '/pages/chat/detail?vid=' + this.goodsData.storeInf.storeId
  1487. })
  1488. },
  1489. //浏览器分享
  1490. sldShareBrower() {
  1491. this.showWeiXinBrowerTip = true;
  1492. this.share_model = false;
  1493. let {
  1494. goodsData
  1495. } = this;
  1496. },
  1497. backToAdd(){
  1498. this.$refs.selectAddress.hidden()
  1499. this.$refs.addressModel.open()
  1500. },
  1501. showAddress() {
  1502. if(!this.hasLogin||this.addressList.length==0){
  1503. this.$refs.selectAddress.showNoMask()
  1504. this.isBack = false
  1505. }else{
  1506. this.$refs.addressModel.open()
  1507. this.isBack = true
  1508. }
  1509. },
  1510. chooseArea() {
  1511. this.$refs.addressModel.close()
  1512. this.$refs.selectAddress.showNoMask()
  1513. },
  1514. // 点击播放按钮,或者视频播放结束隐藏视频组件
  1515. playVideo(type) {
  1516. if (type == 'on') {
  1517. this.playVFlag = true
  1518. } else if (type == 'end') {
  1519. this.playVFlag = false
  1520. }
  1521. },
  1522. //分享 type:分享类型 0 图文 2图片,scene 场景 WXSceneSession:分享朋友 WXSenceTimeline:分享朋友圈
  1523. sldShare: function(type, scene) {
  1524. let shareData = {};
  1525. let {
  1526. goodsData,
  1527. sharePoster
  1528. } = this;
  1529. if (type == 0) {
  1530. shareData.href = goodsData.shareLink;
  1531. shareData.title = goodsData.goodsName;
  1532. shareData.summary = goodsData.goodsBrief;
  1533. shareData.imageUrl = goodsData.shareImage;
  1534. } else if (type == 2) {
  1535. shareData.imageUrl = sharePoster;
  1536. }
  1537. this.$weiXinAppShare(type, scene, shareData);
  1538. this.closeShareModel(); //关闭分享
  1539. },
  1540. //回到页面顶部
  1541. goTop() {
  1542. uni.pageScrollTo({
  1543. scrollTop: 0,
  1544. duration: 300
  1545. });
  1546. this.currentNav = 0;
  1547. },
  1548. //获取商品详情信息
  1549. getGoodsDetail(productId) {
  1550. this.$request({
  1551. url: 'v3/goods/front/goods/details',
  1552. data: {
  1553. productId: this.productId, //货品id
  1554. goodsId: this.goodsId, //商品id
  1555. source: this.source,
  1556. }
  1557. }).then(res => {
  1558. if (res.state == 200) {
  1559. this.goodsData = res.data; //详情信息
  1560. this.goodsId = res.data.goodsId
  1561. this.defaultProduct = res.data.defaultProduct; //默认货品信息
  1562. this.specs = res.data.specs; //规格列表
  1563. this.storeInf = res.data.storeInf; //店铺信息
  1564. this.deliverInfo = res.data.deliverInfo; //发货地及运费信息
  1565. this.goodsVideo = res.data.goodsVideo,
  1566. this.showControls = this.goodsVideo ? false : true;
  1567. this.goodsParameterList = [];
  1568. if (this.goodsData.brandName) {
  1569. this.goodsParameterList.push({
  1570. parameterName: '品牌',
  1571. parameterValue: this.goodsData.brandName
  1572. })
  1573. }
  1574. this.goodsParameterList = this.goodsParameterList.concat(res.data
  1575. .goodsParameterList); //规格参数列表
  1576. this.isLoading = true;
  1577. uni.hideLoading();
  1578. this.promotionId = this.defaultProduct.promotionId; //活动id
  1579. if (this.promotionId && this.defaultProduct.promotionType == 104) { // 秒杀
  1580. this.getSecKill();
  1581. } else if (this.defaultProduct.promotionType == 103) { // 预售
  1582. this.getPreSell();
  1583. } else {
  1584. this.secKillInfo = {};
  1585. this.preSellInfo = {};
  1586. }
  1587. if (this.promotionId && this.defaultProduct.promotionType == 102) { //拼团
  1588. this.getPinInfo()
  1589. } else {
  1590. this.pinInfo = {}
  1591. }
  1592. if (this.promotionId && this.defaultProduct.promotionType == 105) {
  1593. this.getLadder()
  1594. } else {
  1595. this.ladderInfo = {}
  1596. }
  1597. this.$weiXinBrowerShare(1, {
  1598. title: this.goodsData.goodsName,
  1599. desc: this.goodsData.goodsBrief,
  1600. link: this.goodsData.shareLink,
  1601. imgUrl: this.goodsData.shareImage,
  1602. });
  1603. } else {
  1604. //错误提示
  1605. this.$api.msg(res.msg);
  1606. uni.navigateBack();
  1607. }
  1608. }).then(() => {
  1609. this.getGoodsComment(); //评价信息
  1610. this.getRecommend(); //获取店铺推荐商品列表
  1611. this.getCouponList(); //获取优惠券列表
  1612. this.fullDiscountList(); //获取满优惠列表
  1613. this.getCartNum(); //获取购物车数据
  1614. this.getAddressList()
  1615. }).then(() => {
  1616. this.getSelectorQuery();
  1617. }).catch((e) => {})
  1618. },
  1619. //获取预售商品详情
  1620. getPreSell() {
  1621. let param = {};
  1622. param.url = 'v3/promotion/front/preSell/detail';
  1623. param.method = 'GET';
  1624. param.data = {};
  1625. param.data.productId = this.productId;
  1626. param.data.promotionId = this.promotionId;
  1627. this.$request(param).then(res => {
  1628. if (res.state == 200) {
  1629. let now = new Date()
  1630. let preStartDate = new Date(res.data.startTime)
  1631. let preEndDate = new Date(res.data.endTime)
  1632. let result = res.data;
  1633. this.preSellInfo = result;
  1634. this.productId = this.preSellInfo.productId;
  1635. this.preSellInfo.endTime = this.formatPreTime(new Date(res.data.endTime))
  1636. this.preSellInfo.startTime = this.formatPreTime(new Date(res.data.startTime))
  1637. if (now > preStartDate && now < preEndDate) {
  1638. this.preSellInfo.pre_run = 2 //活动进行中
  1639. } else if (now < preStartDate) {
  1640. this.preSellInfo.pre_run = 1 //活动未开始
  1641. } else if (now > preEndDate) {
  1642. this.preSellInfo.pre_run = 3 //活动已结束
  1643. }
  1644. } else {
  1645. this.$api.msg(res.msg);
  1646. }
  1647. }).catch((e) => {
  1648. //异常处理
  1649. })
  1650. },
  1651. formatPreTime(time) {
  1652. let op = new Date(time)
  1653. let year = op.getFullYear()
  1654. let month = op.getMonth() + 1
  1655. let day = op.getDate()
  1656. let hour = op.getHours()
  1657. let minute = op.getMinutes()
  1658. let part1 = [year, month, day].map(i => i.toString().length < 2 ? `0${i}` : i).join('-')
  1659. let part2 = [hour, minute].map(i => i.toString().length < 2 ? `0${i}` : i).join(':')
  1660. return part1 + ' ' + part2
  1661. },
  1662. //获取拼团商品信息
  1663. getPinInfo() {
  1664. if (this.secInterval) {
  1665. clearInterval(this.secInterval);
  1666. }
  1667. let param = {};
  1668. param.url = 'v3/promotion/front/spell/detail';
  1669. param.method = 'GET';
  1670. param.data = {};
  1671. param.data.productId = this.productId;
  1672. param.data.promotionId = this.promotionId;
  1673. this.$request(param).then(res => {
  1674. if (res.state == 200) {
  1675. let result = res.data;
  1676. this.pinInfo = result;
  1677. } else {
  1678. this.$api.msg(res.msg);
  1679. }
  1680. })
  1681. },
  1682. make_group_more_fun() {
  1683. this.transparent_mask = true
  1684. },
  1685. handleJoinGroup(e) {
  1686. if (e.pinState == 1) {
  1687. this.transparent_mask = true
  1688. this.spellTeamId = e.spellTeamId
  1689. } else if (e.pinState == 2) {
  1690. this.transparent_mask = false
  1691. } else if (e.pinState == 3) {
  1692. this.transparent_mask = false
  1693. this.showSpecModel('joinLeague')
  1694. }
  1695. },
  1696. //获取秒杀商品详情
  1697. getSecKill() {
  1698. if (this.secInterval) {
  1699. clearInterval(this.secInterval);
  1700. }
  1701. let param = {};
  1702. param.url = 'v3/promotion/front/seckill/detail';
  1703. param.method = 'GET';
  1704. param.data = {};
  1705. param.data.productId = this.productId;
  1706. param.data.promotionId = this.promotionId;
  1707. this.$request(param).then(res => {
  1708. if (res.state == 200) {
  1709. let result = res.data;
  1710. this.secKillInfo = result;
  1711. this.productId = this.secKillInfo.productId;
  1712. if (this.secKillInfo.state == 1 || this.secKillInfo.state == 2) {
  1713. let countTime = 0;
  1714. countTime = this.secKillInfo.distanceEndTime; //剩余时间 秒
  1715. this.secInterval = setInterval(() => {
  1716. if (countTime == 0) {
  1717. //倒计时结束,清除倒计时
  1718. clearInterval(this.secInterval);
  1719. this.getGoodsDetail(this.secKillInfo.productId)
  1720. } else {
  1721. countTime--;
  1722. let day = parseInt(countTime / 60 / 60 / 24);
  1723. let hours = parseInt(countTime / 60 / 60 % 24);
  1724. let minutes = parseInt(countTime / 60 % 60);
  1725. let seconds = parseInt(countTime % 60);
  1726. this.secKillDay = day;
  1727. this.secKillHr = hours > 9 ? hours : '0' + hours;
  1728. this.secKillMin = minutes > 9 ? minutes : '0' + minutes;
  1729. this.secKillSec = seconds > 9 ? seconds : '0' + seconds;
  1730. }
  1731. }, 1000)
  1732. }
  1733. } else {
  1734. this.$api.msg(res.msg);
  1735. }
  1736. }).catch((e) => {
  1737. //异常处理
  1738. })
  1739. },
  1740. // 阶梯团商品详情
  1741. getLadder() {
  1742. if (this.secInterval) {
  1743. clearInterval(this.secInterval);
  1744. }
  1745. let param = {};
  1746. param.url = 'v3/promotion/front/ladder/group/detail';
  1747. param.method = 'GET';
  1748. param.data = {};
  1749. param.data.productId = this.productId;
  1750. param.data.promotionId = this.promotionId;
  1751. this.$request(param).then(res => {
  1752. if (res.state == 200) {
  1753. let result = res.data;
  1754. this.ladderInfo = result;
  1755. this.productId = this.ladderInfo.productId;
  1756. this.ladderProcess = result.joinedNum < result.ruleList[result.ruleList.length - 1]
  1757. .joinGroupNum ? (result.joinedNum / result.ruleList[result.ruleList.length - 1]
  1758. .joinGroupNum) * 100 : 100
  1759. let now = new Date()
  1760. let start = new Date(this.ladderInfo.startTime)
  1761. let end = new Date(this.ladderInfo.endTime)
  1762. if (now < start) {
  1763. this.ladderInfo.ladder_run = 1
  1764. } else if (now > start && now < end) {
  1765. this.ladderInfo.ladder_run = 2
  1766. } else {
  1767. this.ladderInfo.ladder_run = 3
  1768. }
  1769. } else {
  1770. this.$api.msg(res.msg);
  1771. }
  1772. }).catch((e) => {
  1773. //异常处理
  1774. })
  1775. },
  1776. //秒杀活动提醒我及取消提醒
  1777. secKillPreview() {
  1778. if (!this.hasLogin) {
  1779. //提示登陆
  1780. this.$refs.popup.open();
  1781. return;
  1782. } else {
  1783. let param = {};
  1784. param.url = 'v3/promotion/front/seckill/isRemind';
  1785. param.method = 'POST';
  1786. param.data = {};
  1787. param.data.key = this.userInfo.access_token;
  1788. param.data.stageProductId = this.secKillInfo.stageProductId; //秒杀商品id
  1789. this.$request(param).then(res => {
  1790. if (res.state == 200) {
  1791. this.$api.msg(res.msg);
  1792. this.secKillInfo.isRemind = !this.secKillInfo.isRemind;
  1793. } else {
  1794. this.$api.msg(res.msg);
  1795. }
  1796. }).catch((e) => {
  1797. //异常处理
  1798. })
  1799. }
  1800. },
  1801. /**选择规格值
  1802. * @param {Object} type 类型 值:choice,规格选择 default:默认
  1803. * @param {Object} specId 父级规格值
  1804. * @param {Object} specValueId 点击的当前的规格值
  1805. */
  1806. selectSpecVal(type, specId, specValueId) {
  1807. let that = this;
  1808. this.isChoice = type == 'choice' ? 'choice' : 'default';
  1809. let curParSpec = []; //当前点击的规格的父级id的当前项
  1810. curParSpec = that.specs.filter(item => item.specId == specId);
  1811. let curSPec = []; //当前点击的规格的规格id的当前项
  1812. curSPec = curParSpec[0].specValueList.filter(item1 => item1.specValueId == specValueId);
  1813. curSPec[0].checkState = 1;
  1814. //被选择的规格值的id
  1815. let choiceSpecIds = [];
  1816. that.specs.forEach(item => {
  1817. if (item.specId != specId) {
  1818. item.specValueList.forEach(item1 => {
  1819. if (item1.checkState == '1') { // checkState: 1-选中,2-可选,3-禁用
  1820. choiceSpecIds.push(item1.specValueId)
  1821. }
  1822. })
  1823. } else {
  1824. choiceSpecIds.push(specValueId);
  1825. }
  1826. })
  1827. let param = {};
  1828. param.url = 'v3/goods/front/goods/productInfo';
  1829. param.method = 'GET';
  1830. param.data = {};
  1831. param.data.goodsId = that.goodsId;
  1832. param.data.specValueIds = choiceSpecIds.join(',');
  1833. that.$request(param).then(res => {
  1834. if (res.state == 200) {
  1835. let result = res.data;
  1836. that.choiceSpecDes = result.defaultProduct;
  1837. that.productId = result.defaultProduct.productId;
  1838. that.deliverInfo = result.deliverInfo; //地址及运费
  1839. that.specs = result.specs; //规格列表
  1840. that.goodsData.shareLink = result.shareLink;
  1841. that.current = 0;
  1842. that.promotionId = that.choiceSpecDes.promotionId; //活动id
  1843. that.currentSpecNum = 1;
  1844. // if (that.promotionId && that.choiceSpecDes.promotionType == 104) { //秒杀
  1845. // that.getSecKill();
  1846. // } else if(that.promotionId && that.choiceSpecDes.promotionType == 102){//拼团
  1847. // this.pinButState = 2
  1848. // that.getPinInfo()
  1849. // }else if(that.promotionId && that.choiceSpecDes.promotionType == 105){
  1850. // that.getLadder()
  1851. // }else if(that.promotionId && that.choiceSpecDes.promotionType == 103){
  1852. // that.getPreSell()
  1853. // }else {
  1854. // that.secKillInfo = {};
  1855. // that.pinInfo = {};
  1856. // that.preSellInfo = {}
  1857. // that.ladderInfo = {}
  1858. // that.getGoodsDetail(that.productId);
  1859. // }
  1860. } else {
  1861. this.$api.msg(res.msg);
  1862. }
  1863. }).catch((e) => {
  1864. //异常处理
  1865. })
  1866. },
  1867. //获取商品评价
  1868. getGoodsComment() {
  1869. let param = {};
  1870. param.url = 'v3/goods/front/goods/comment';
  1871. param.method = 'GET';
  1872. param.data = {};
  1873. param.data.productId = this.productId;
  1874. this.$request(param).then(res => {
  1875. if (res.state == 200) {
  1876. let result = res.data;
  1877. this.goodsCommentsInfo = result;
  1878. } else {
  1879. this.$api.msg(res.msg);
  1880. }
  1881. }).catch((e) => {
  1882. //异常处理
  1883. })
  1884. },
  1885. //分享
  1886. share() {
  1887. this.$refs.share.toggleMask();
  1888. },
  1889. //加入购物车功能
  1890. addCart() {
  1891. if (!this.hasLogin) {
  1892. let cart_list = {
  1893. storeCartGroupList: [{
  1894. promotionCartGroupList: [{
  1895. cartList: [{
  1896. buyNum: this.currentSpecNum,
  1897. goodsId: this.goodsId - 0,
  1898. productId: this.productId - 0,
  1899. productImage: this.isChoice == 'default' ? this
  1900. .defaultProduct.goodsPics[0] : this.choiceSpecDes
  1901. .goodsPics[
  1902. 0],
  1903. goodsName: this.goodsData.goodsName,
  1904. isChecked: 1,
  1905. productPrice: this.isChoice == 'default' ? this
  1906. .defaultProduct.productPrice : this.choiceSpecDes
  1907. .productPrice,
  1908. productStock: this.isChoice == 'default' ? this
  1909. .defaultProduct.productStock : this.choiceSpecDes
  1910. .productStock
  1911. }],
  1912. }],
  1913. storeId: this.storeInf.storeId,
  1914. storeName: this.storeInf.storeName,
  1915. checkedAll: true
  1916. }],
  1917. checkedAll: true,
  1918. invalidList: []
  1919. }
  1920. //未登录加入本地缓存
  1921. let local_cart_list = uni.getStorageSync('cart_list') //购物车列表本地缓存
  1922. if (local_cart_list) { //如果不是第一次存储
  1923. let tmp_list1 = []
  1924. let tmp_list2 = []
  1925. cart_list.storeCartGroupList.forEach(item => {
  1926. item.promotionCartGroupList.forEach(item1 => {
  1927. item1.cartList.forEach(item2 => {
  1928. local_cart_list.storeCartGroupList.forEach(v => {
  1929. v.promotionCartGroupList.forEach(v1 => {
  1930. v1.cartList.forEach(v2 => {
  1931. if (v2.productId == item2
  1932. .productId && v
  1933. .storeId == item
  1934. .storeId) {
  1935. tmp_list1.push(v)
  1936. }
  1937. })
  1938. })
  1939. })
  1940. tmp_list2 = local_cart_list.storeCartGroupList.filter(v => {
  1941. return v.storeId == item.storeId
  1942. })
  1943. })
  1944. })
  1945. })
  1946. if (tmp_list1.length > 0 && tmp_list2.length > 0) { //同一店铺同一商品
  1947. local_cart_list.storeCartGroupList.map(item => {
  1948. item.promotionCartGroupList.map(item1 => {
  1949. item1.cartList.map(item2 => {
  1950. if (item2.productId == this.productId && item.storeId ==
  1951. this.storeInf.storeId) {
  1952. item2.buyNum += this.currentSpecNum
  1953. }
  1954. })
  1955. })
  1956. })
  1957. } else if (tmp_list1.length == 0 && tmp_list2.length > 0) { //同一店铺不同商品
  1958. local_cart_list.storeCartGroupList.map(item => {
  1959. if (item.storeId == this.storeInf.storeId) {
  1960. item.promotionCartGroupList.map(item2 => {
  1961. item2.cartList.push(cart_list.storeCartGroupList[0]
  1962. .promotionCartGroupList[0].cartList[0])
  1963. })
  1964. }
  1965. })
  1966. } else { //不同店铺不同商品
  1967. local_cart_list.storeCartGroupList.push(cart_list.storeCartGroupList[0])
  1968. }
  1969. // 未登录购物车展示数据
  1970. uni.setStorage({
  1971. key: 'cart_list',
  1972. data: local_cart_list,
  1973. success: function() {
  1974. //更新购物车数量和购物车数据
  1975. }
  1976. });
  1977. } else {
  1978. uni.setStorage({
  1979. key: 'cart_list',
  1980. data: cart_list,
  1981. success: function() {
  1982. //更新购物车数量和购物车数据
  1983. }
  1984. });
  1985. }
  1986. uni.showToast({
  1987. title: '加入购物车成功!',
  1988. icon: 'none',
  1989. duration: 700
  1990. })
  1991. this.$refs.specModel.close();
  1992. this.getNoLoginCartNum();
  1993. } else { //已登录
  1994. this.$request({
  1995. url: 'v3/business/front/cart/add',
  1996. data: {
  1997. productId: this.productId,
  1998. number: this.currentSpecNum,
  1999. },
  2000. method: 'POST'
  2001. }).then(res => {
  2002. if (res.state == 200) {
  2003. //更新购物车数量
  2004. this.$refs.specModel.close();
  2005. this.$api.msg(res.msg);
  2006. this.getCartNum();
  2007. } else {
  2008. this.$api.msg(res.msg);
  2009. }
  2010. }).catch((e) => {})
  2011. }
  2012. },
  2013. //确认下单
  2014. buy() {
  2015. if (!this.hasLogin) {
  2016. this.$refs.popLogin.open()
  2017. return
  2018. } else {
  2019. this.editNum('edit');
  2020. this.$refs.specModel.close();
  2021. let param = {
  2022. url: 'v3/business/front/orderOperate/check',
  2023. method: 'POST',
  2024. header: {
  2025. "Content-Type": "application/json"
  2026. },
  2027. data: {
  2028. isCart: false,
  2029. productId: this.productId,
  2030. number: this.currentSpecNum,
  2031. source: 1
  2032. }
  2033. }
  2034. uni.showLoading()
  2035. uni.setStorageSync('addressId',this.sourceId)
  2036. this.$request(param).then(res => {
  2037. if (res.state == 200) {
  2038. uni.hideLoading()
  2039. //从这里跳转页面后置为1,从一个页面返回回来,将在onShow里调用getGoodsDetail
  2040. this.showState = 1
  2041. if (JSON.stringify(this.pinInfo) != '{}' && this.pinButState == 0) {
  2042. uni.navigateTo({
  2043. url: `/pages/order/confirmOrder?orderType=1&goodsId=${this.goodsId}&productId=${this.productId}&numbers=${this.currentSpecNum}&ifcart=2&isAloneBuy=true`
  2044. })
  2045. } else if (JSON.stringify(this.pinInfo) != '{}' && (this.pinButState == 1)) {
  2046. uni.navigateTo({
  2047. url: `/pages/order/confirmOrder?orderType=1&goodsId=${this.goodsId}&productId=${this.productId}&numbers=${this.currentSpecNum}&ifcart=2&isAloneBuy=false`
  2048. })
  2049. } else if (JSON.stringify(this.pinInfo) != '{}' && this.pinButState == 3) {
  2050. uni.navigateTo({
  2051. url: `/pages/order/confirmOrder?orderType=1&goodsId=${this.goodsId}&productId=${this.productId}&numbers=${this.currentSpecNum}&ifcart=2&isAloneBuy=false&spellTeamId=${this.spellTeamId}`
  2052. })
  2053. } else {
  2054. uni.navigateTo({
  2055. url: `/pages/order/confirmOrder?orderType=1&goodsId=${this.goodsId}&productId=${this.productId}&numbers=${this.currentSpecNum}&ifcart=2`
  2056. })
  2057. }
  2058. } else if (res.state == 267) {
  2059. this.$api.msg(res.data.stateValue)
  2060. } else {
  2061. this.$api.msg(res.msg)
  2062. }
  2063. })
  2064. }
  2065. },
  2066. moveHandle() {},
  2067. confirmLogin(){
  2068. const page = getCurrentPages();
  2069. let url = page[page.length - 1].route;
  2070. const options = page[page.length - 1].options;
  2071. for (let i in options) {
  2072. if (url.indexOf('?') > -1) {
  2073. url += `&${i}=${options[i]}`;
  2074. } else {
  2075. url += `?${i}=${options[i]}`;
  2076. }
  2077. }
  2078. url = '/' + url;
  2079. uni.setStorageSync('fromurl', url);
  2080. uni.navigateTo({
  2081. url: '/pages/public/login'
  2082. });
  2083. },
  2084. //收藏、取消收藏事件
  2085. collectGoods() {
  2086. if (!this.hasLogin) {
  2087. //提示登陆
  2088. this.$refs.popup.open();
  2089. return;
  2090. } else {
  2091. this.$request({
  2092. url: 'v3/member/front/followProduct/edit',
  2093. data: {
  2094. productIds: this.defaultProduct.productId,
  2095. isCollect: !this.goodsData.followGoods
  2096. },
  2097. method: 'POST',
  2098. }).then(res => {
  2099. if (res.state == 200) {
  2100. this.goodsData.followGoods = this.goodsData.followGoods == undefined ? true : !this
  2101. .goodsData.followGoods;
  2102. this.$api.msg(res.msg);
  2103. } else {
  2104. this.$api.msg(res.msg);
  2105. }
  2106. }).catch((e) => {
  2107. //异常处理
  2108. })
  2109. }
  2110. },
  2111. //弹层取消事件
  2112. dialogCancle() {
  2113. this.$refs.popup.close();
  2114. },
  2115. //弹层确认事件
  2116. dialogConfirm() {
  2117. uni.navigateTo({
  2118. url: `/pages/public/login`
  2119. })
  2120. this.$refs.popup.close();
  2121. },
  2122. //去商品评价页面
  2123. goEvaluation() {
  2124. uni.navigateTo({
  2125. url: '/pages/product/evaluation?productId=' + this.productId
  2126. })
  2127. },
  2128. //服务弹框
  2129. serviceModel() {
  2130. this.$refs.serviceModel.open();
  2131. },
  2132. //满优惠弹框
  2133. openFullDisModel() {
  2134. this.$refs.fullDisModel.open();
  2135. },
  2136. //关闭弹框
  2137. closeModel() {
  2138. this.$refs.serviceModel.close();
  2139. this.$refs.couponModel.close();
  2140. this.$refs.fullDisModel.close();
  2141. },
  2142. //获取商品详情页,店铺优惠券
  2143. getCouponList() {
  2144. console.log(this.storeInf.storeId,'ssssss')
  2145. this.$request({
  2146. url: 'v3/promotion/front/coupon/storeCouponList',
  2147. data: {
  2148. storeId: this.storeInf.storeId, //店铺id
  2149. current: this.pageCurrent,
  2150. pageSize: this.pageSize,
  2151. }
  2152. }).then(res => {
  2153. if (res.state == 200) {
  2154. this.couponList = res.data.list; //优惠券列表
  2155. this.couponList.forEach((item, index) => {
  2156. item.isOpen = false;
  2157. if (item.isReceive == 3) {
  2158. item.couponBg = this.finishReceiveBg;
  2159. }
  2160. if (item.isReceive == 2) {
  2161. item.couponBg = this.hasReceiveBg;
  2162. }
  2163. if (item.isReceive == 1) {
  2164. item.couponBg = this.goReceiveBg;
  2165. }
  2166. })
  2167. } else {
  2168. //错误提示
  2169. this.$api.msg(res.msg);
  2170. }
  2171. }).catch((e) => {})
  2172. },
  2173. //领券弹框
  2174. openCouponModel() {
  2175. this.$refs.couponModel.open();
  2176. },
  2177. //规则展开
  2178. descriptionOpen(couponId) {
  2179. this.couponList.map(item => {
  2180. if (item.couponId == couponId) {
  2181. if (item.description != '') {
  2182. item.isOpen = !item.isOpen
  2183. this.$forceUpdate()
  2184. }
  2185. }
  2186. })
  2187. },
  2188. //立即领取
  2189. goReceive(item) {
  2190. let couponId = item.couponId
  2191. let param = {};
  2192. param.url = 'v3/promotion/front/coupon/receiveCoupon';
  2193. param.method = 'GET';
  2194. param.data = {};
  2195. param.data.couponId = couponId;
  2196. this.$request(param).then(res => {
  2197. if (res.state == 200) {
  2198. let result = res.data;
  2199. this.$api.msg('领取成功!');
  2200. this.getCouponList();
  2201. } else {
  2202. this.$api.msg(res.msg);
  2203. this.getCouponList();
  2204. }
  2205. }).catch((e) => {
  2206. //异常处理
  2207. })
  2208. },
  2209. //获取满优惠列表
  2210. fullDiscountList() {
  2211. let that = this;
  2212. let param = {};
  2213. param.url = 'v3/goods/front/goods/activityList';
  2214. param.method = 'GET';
  2215. param.data = {};
  2216. param.data.productId = this.productId;
  2217. this.$request(param).then(res => {
  2218. if (res.state == 200) {
  2219. let result = res.data;
  2220. this.fullDisList = result;
  2221. } else {
  2222. this.$api.msg(res.msg);
  2223. }
  2224. }).catch((e) => {
  2225. //异常处理
  2226. })
  2227. },
  2228. //获取店铺推荐商品信息
  2229. getRecommend() {
  2230. let that = this;
  2231. let param = {};
  2232. param.url = 'v3/goods/front/goods/recommendList';
  2233. param.method = 'GET';
  2234. param.data = {};
  2235. param.data.queryType = 'goods';
  2236. param.data.productId = this.productId;
  2237. this.$request(param).then(res => {
  2238. if (res.state == 200) {
  2239. let result = res.data;
  2240. this.recommendedList = result.list;
  2241. this.getSelectorQuery();
  2242. } else {
  2243. this.$api.msg(res.msg);
  2244. }
  2245. }).catch((e) => {
  2246. //异常处理
  2247. })
  2248. },
  2249. //去分享
  2250. goShare() {
  2251. this.share_model = true;
  2252. },
  2253. //关闭分享弹框
  2254. closeShareModel() {
  2255. this.share_model = false;
  2256. this.showWeiXinBrowerTip = false;
  2257. this.poster = false;
  2258. },
  2259. //获取海报
  2260. getPoster() {
  2261. this.share_model = false;
  2262. this.showWeiXinBrowerTip = false;
  2263. this.poster = true;
  2264. },
  2265. //下载海报
  2266. downloadPoster() {
  2267. let {
  2268. sharePoster
  2269. } = this;
  2270. let _this = this;
  2271. uni.downloadFile({
  2272. url: sharePoster,
  2273. success: res_info => {
  2274. if (res_info.statusCode == 200) {
  2275. uni.getSetting({
  2276. success(res_down) {
  2277. if (!res_down.authSetting['scope.writePhotosAlbum']) {
  2278. uni.showModal({
  2279. title: '提示',
  2280. content: '您好,需要开启相册权限',
  2281. showCancel: false,
  2282. success(res) {
  2283. if (res.confirm) {
  2284. uni.authorize({
  2285. scope: 'scope.writePhotosAlbum',
  2286. success() {
  2287. // 用户已经同意,后续调用时不会弹窗询问
  2288. _this.saveHb(res_info
  2289. .tempFilePath);
  2290. },
  2291. fail() {
  2292. //拒绝授权
  2293. uni.showToast({
  2294. title: '抱歉,没有授权无法下载海报',
  2295. icon: 'none'
  2296. });
  2297. }
  2298. });
  2299. }
  2300. }
  2301. });
  2302. } else {
  2303. _this.saveHb(res_info.tempFilePath);
  2304. }
  2305. }
  2306. });
  2307. } else {
  2308. uni.showToast({
  2309. title: '下载失败',
  2310. icon: 'none'
  2311. });
  2312. _this.poster = true;
  2313. }
  2314. }
  2315. })
  2316. //#ifdef H5
  2317. //阻止浏览器默认行为
  2318. document.oncontextmenu = function(e) {
  2319. e.preventDefault()
  2320. }
  2321. //#endif
  2322. },
  2323. /**
  2324. * 保存图片
  2325. */
  2326. saveHb: function(img) {
  2327. let _this = this;
  2328. uni.saveImageToPhotosAlbum({
  2329. filePath: img,
  2330. success: function(data) {
  2331. _this.poster = false;
  2332. uni.showToast({
  2333. title: '已保存到本地',
  2334. icon: 'success',
  2335. duration: 2000
  2336. });
  2337. },
  2338. complete: function(res) {}
  2339. });
  2340. },
  2341. //关闭海报
  2342. closePoster() {
  2343. this.poster = false;
  2344. },
  2345. //打开规格弹框
  2346. showSpecModel(type) {
  2347. //如果是购买操作,并且商品总库存为0
  2348. if ((type === 'buy' || typeof type !== 'string') && !this.defaultProduct.productStock) {
  2349. return;
  2350. }
  2351. if (type == 'add') {
  2352. this.showSpecModelType = 'add'
  2353. } else if (type == 'buy') {
  2354. this.showSpecModelType = 'buy'
  2355. } else if (type == 'offshelf') {
  2356. this.showSpecModelType = 'offshelf'
  2357. } else if (type == 'nosocket') {
  2358. this.showSpecModelType = 'nosocket'
  2359. } else if (type == 'pinAlone' && this.valiInfo(this.pinInfo)) {
  2360. this.pinButState = 0
  2361. } else if (type == 'pinLeague' && this.valiInfo(this.pinInfo)) {
  2362. this.pinButState = 1
  2363. } else if ((!type) && this.valiInfo(this.pinInfo)) {
  2364. this.pinButState = 2
  2365. } else if (type == 'joinLeague') {
  2366. this.pinButState = 3
  2367. } else {
  2368. this.showSpecModelType = ''
  2369. }
  2370. this.$forceUpdate()
  2371. this.$refs.specModel.open();
  2372. },
  2373. //统一处理活动商品的数量的加及编辑
  2374. activityAddEdit(type) {
  2375. let that = this;
  2376. that.currentSpecNum = that.currentSpecNum.toString().replace(/\D/g, '');
  2377. if (that.currentSpecNum == '' || that.currentSpecNum < 0) {
  2378. setTimeout(() => {
  2379. that.currentSpecNum = 1;
  2380. }, 0)
  2381. return;
  2382. }
  2383. let activityLimitNumber = 0; //活动的限购数量 0代表不限购
  2384. let activityProductStock = 0; //活动的库存
  2385. if (this.isChoice == 'default') {
  2386. activityProductStock = this.defaultProduct.productStock
  2387. } else if (isChoice == 'choice') {
  2388. activityProductStock = this.choiceSpecDes.productStock
  2389. }
  2390. if (that.secKillInfo && that.secKillInfo.state == 2) { //秒杀活动进行中
  2391. activityLimitNumber = that.secKillInfo.upperLimit;
  2392. } else if (this.valiInfo(that.preSellInfo) && that.preSellInfo.startTime) { //预售进行中
  2393. activityLimitNumber = that.preSellInfo.buyLimit;
  2394. } else if (this.valiInfo(that.pinInfo)) {
  2395. activityLimitNumber = that.pinInfo.buyLimit;
  2396. } else if (this.valiInfo(that.ladderInfo)) {
  2397. activityLimitNumber = that.ladderInfo.buyLimitNum;
  2398. }
  2399. if ((activityLimitNumber < activityProductStock) && activityLimitNumber > 0) { // 限购数 < 库存
  2400. if (that.currentSpecNum >= activityLimitNumber) {
  2401. setTimeout(() => {
  2402. that.currentSpecNum = activityLimitNumber;
  2403. that.noEdit = true;
  2404. }, 0)
  2405. return;
  2406. } else {
  2407. setTimeout(() => {
  2408. type == 'add' ? that.currentSpecNum++ : that.currentSpecNum;
  2409. }, 0)
  2410. that.noEdit = false;
  2411. return;
  2412. }
  2413. } else { //限购数 > 库存
  2414. if (that.currentSpecNum < activityProductStock) {
  2415. if (that.currentSpecNum == 0 || that.currentSpecNum < 0) {
  2416. setTimeout(() => {
  2417. that.currentSpecNum = 1;
  2418. }, 0)
  2419. return;
  2420. } else {
  2421. if (that.currentSpecNum > 999) {
  2422. setTimeout(() => {
  2423. that.currentSpecNum = 999;
  2424. }, 0)
  2425. that.noEdit = true;
  2426. return;
  2427. } else {
  2428. setTimeout(() => {
  2429. type == 'add' ? that.currentSpecNum++ : that.currentSpecNum;
  2430. }, 0)
  2431. that.noEdit = false;
  2432. return;
  2433. }
  2434. }
  2435. } else {
  2436. setTimeout(() => {
  2437. that.currentSpecNum = activityProductStock;
  2438. }, 0)
  2439. that.noEdit = true;
  2440. return;
  2441. }
  2442. }
  2443. },
  2444. //编辑数量
  2445. editNum(type, e) {
  2446. let that = this;
  2447. if (type == 'add') {
  2448. if (this.valiInfo(that.preSellInfo) && that.preSellInfo.startTime != '') {
  2449. that.activityAddEdit('add');
  2450. } else if (this.valiInfo(that.secKillInfo) && that.secKillInfo.state == 2) { //秒杀活动进行中
  2451. that.activityAddEdit('add');
  2452. } else if (this.valiInfo(that.ladderInfo)) {
  2453. that.activityAddEdit('add');
  2454. } else if (this.valiInfo(that.pinInfo)) {
  2455. that.activityAddEdit('add');
  2456. } else {
  2457. if ((that.isChoice == 'default' && that.currentSpecNum >= that.defaultProduct.productStock) || (
  2458. that.isChoice ==
  2459. 'choice' && that.currentSpecNum >= that.choiceSpecDes.productStock)) {
  2460. if (that.defaultProduct.productStock == 0 || that.choiceSpecDes.productStock == 0) {
  2461. that.currentSpecNum = 1;
  2462. } else {
  2463. console.log('23333')
  2464. that.currentSpecNum = that.isChoice == 'default' ? that.defaultProduct.productStock : that
  2465. .choiceSpecDes.productStock;
  2466. }
  2467. that.noEdit = true;
  2468. } else {
  2469. if (that.currentSpecNum > 999) {
  2470. that.currentSpecNum = 999;
  2471. that.noEdit = true;
  2472. } else {
  2473. that.currentSpecNum++;
  2474. that.noEdit = false;
  2475. }
  2476. }
  2477. }
  2478. } else if (type == 'edit') {
  2479. if (that.currentSpecNum == '' || that.currentSpecNum < 0) {
  2480. setTimeout(() => {
  2481. that.currentSpecNum = 1;
  2482. }, 0)
  2483. return;
  2484. }
  2485. if (this.valiInfo(that.preSellInfo) && that.preSellInfo.startTime != '') {
  2486. that.activityAddEdit('edit');
  2487. } else if (this.valiInfo(that.secKillInfo) && that.secKillInfo.state == 2) { //秒杀活动进行中
  2488. that.activityAddEdit('edit');
  2489. } else if (this.valiInfo(that.ladderInfo)) {
  2490. that.activityAddEdit('edit');
  2491. } else if (this.valiInfo(this.pinInfo)) {
  2492. that.activityAddEdit('edit');
  2493. } else {
  2494. if ((that.isChoice == 'default' && that.currentSpecNum > that.defaultProduct.productStock) || (that.isChoice == 'choice' && that.currentSpecNum > that.choiceSpecDes.productStock)) {
  2495. setTimeout(() => {
  2496. this.currentSpecNum = that.isChoice == 'default' ? that.defaultProduct.productStock : that.choiceSpecDes.productStock;
  2497. }, 0)
  2498. that.noEdit = true;
  2499. return;
  2500. } else {
  2501. that.currentSpecNum = e && e.detail.value ? e.detail.value : that.currentSpecNum;
  2502. if (that.currentSpecNum == 0 || that.currentSpecNum < 0) {
  2503. setTimeout(() => {
  2504. that.currentSpecNum = 1;
  2505. }, 0)
  2506. return;
  2507. } else {
  2508. that.currentSpecNum = that.currentSpecNum.toString().replace(/\D/g, '');
  2509. if (that.currentSpecNum > 999) {
  2510. setTimeout(() => {
  2511. that.currentSpecNum = 999;
  2512. }, 0)
  2513. that.noEdit = true;
  2514. return;
  2515. } else {
  2516. setTimeout(() => {
  2517. that.currentSpecNum = that.currentSpecNum;
  2518. }, 0)
  2519. that.noEdit = false;
  2520. }
  2521. }
  2522. }
  2523. }
  2524. } else if (type == 'reduce') {
  2525. if (that.currentSpecNum > 1) {
  2526. that.currentSpecNum--;
  2527. that.noEdit = false;
  2528. } else {
  2529. that.currentSpecNum = 1;
  2530. }
  2531. }
  2532. },
  2533. //关闭规格弹框
  2534. closeSpecModel() {
  2535. this.$refs.specModel.close();
  2536. },
  2537. //去商品详情页面
  2538. goGoodsDetail(defaultProductId, goodsId) {
  2539. uni.navigateTo({
  2540. url: '/pages/product/detail?productId=' + defaultProductId + '&goodsId=' + goodsId
  2541. })
  2542. },
  2543. //获取购物车数据
  2544. getCartNum() {
  2545. if (this.hasLogin) {
  2546. let param = {};
  2547. param.url = 'v3/business/front/cart/cartList';
  2548. param.method = 'GET';
  2549. param.data = {};
  2550. param.data.key = this.userInfo.access_token;
  2551. this.$request(param).then(res => {
  2552. if (res.state == 200) {
  2553. let result = res.data;
  2554. this.cartNum = result.availableCartNum;
  2555. this.cartNumShow = true;
  2556. } else {
  2557. this.$api.msg(res.msg);
  2558. }
  2559. }).catch((e) => {
  2560. //异常处理
  2561. })
  2562. } else {
  2563. this.getNoLoginCartNum();
  2564. }
  2565. },
  2566. //获取未登录,购物车数量
  2567. getNoLoginCartNum() {
  2568. this.cartNum = 0;
  2569. let cart_list = uni.getStorageSync('cart_list');
  2570. if (cart_list && cart_list.storeCartGroupList) {
  2571. cart_list.storeCartGroupList.map(item => {
  2572. item.promotionCartGroupList.map(item1 => {
  2573. item1.cartList.map(item2 => {
  2574. this.cartNum++;
  2575. })
  2576. })
  2577. })
  2578. }
  2579. this.cartNumShow = true;
  2580. },
  2581. //去店铺页面
  2582. goShopHome() {
  2583. uni.navigateTo({
  2584. url: '/pages/store/shopHomePage?vid=' + this.goodsData.storeInf.storeId
  2585. })
  2586. },
  2587. //去店铺商品列表页面
  2588. toStoreGoodList() {
  2589. uni.navigateTo({
  2590. url: '/pages/store/shopHomePage?vid=' + this.goodsData.storeInf.storeId + '&good_list=1'
  2591. })
  2592. },
  2593. //分享链接的弹框展示
  2594. tipsShow() {
  2595. this.tips_show = !this.tips_show;
  2596. this.transparent_mask = !this.transparent_mask;
  2597. },
  2598. //三点分享链接
  2599. handleLink(e) {
  2600. let link = e.currentTarget.dataset.link;
  2601. let type = e.currentTarget.dataset.type;
  2602. if (type != 'share') {
  2603. wx.switchTab({
  2604. url: link
  2605. });
  2606. }
  2607. this.setData({
  2608. tips_show: false
  2609. })
  2610. },
  2611. //隐藏透明遮罩层
  2612. hideMask() {
  2613. this.transparent_mask = false;
  2614. this.tips_show = false;
  2615. this.$refs.pinGroup.join_group = false
  2616. this.$refs.pinGroup.make_group_more = false
  2617. },
  2618. //展开规格参数
  2619. handleGoodsParam() {
  2620. this.openGoodsParam = !this.openGoodsParam;
  2621. },
  2622. //去商品详情页
  2623. goProductDetail(defaultProductId) {
  2624. uni.navigateTo({
  2625. url: '/pages/product/detail?productId=' + defaultProductId
  2626. })
  2627. },
  2628. //返回上一页
  2629. goBack() {
  2630. // #ifdef H5
  2631. //vue router 可以返回uni.navigateBack失败的页面,但是会重新加载
  2632. let a = this.$router.go(-1);
  2633. //router.go失败之后则重定向到商城首页
  2634. if (a == undefined) {
  2635. uni.reLaunch({
  2636. url: '/pages/index/index'
  2637. })
  2638. }
  2639. return;
  2640. // #endif
  2641. uni.navigateBack({
  2642. delta: 1
  2643. })
  2644. },
  2645. valiInfo(info) {
  2646. return JSON.stringify(info) != '{}'
  2647. },
  2648. //h5跳转新页面播放视频
  2649. toPlayPage() {
  2650. uni.navigateTo({
  2651. url: '/pages/product/video?video_url=' + this.goodsVideo + '&posterImage=' + this
  2652. .defaultProduct.goodsPics[0],
  2653. });
  2654. },
  2655. //获取地址列表
  2656. getAddressList() {
  2657. this.$request({
  2658. url: 'v3/member/front/memberAddress/list',
  2659. method: 'GET'
  2660. }).then(res => {
  2661. if (res.state == 200) {
  2662. if (res.data.list.length > 0) {
  2663. this.addressList = res.data.list = res.data.list;
  2664. if (this.addressList.findIndex(i => i.isDefault == 1) > 0) {
  2665. let index = this.addressList.findIndex(i => i.isDefault == 1)
  2666. this.curAddress = this.addressList[index].addressAll + "" + this.addressList[index]
  2667. .detailAddress
  2668. this.sourceId = this.addressList[index].addressId
  2669. } else {
  2670. this.curAddress = this.addressList[0].addressAll + "" + this.addressList[0]
  2671. .detailAddress
  2672. this.sourceId = this.addressList[0].addressId
  2673. }
  2674. if (uni.getStorageSync('addressId')) {
  2675. let addressID = uni.getStorageSync('addressId')
  2676. if(res.data.list.filter(i => i.addressId == addressID)[0]){
  2677. let tmp = res.data.list.filter(i => i.addressId == addressID)[0]
  2678. this.curAddress = tmp.addressAll + "" + tmp.detailAddress
  2679. this.sourceId = tmp.addressId
  2680. }
  2681. }
  2682. } else {
  2683. this.$api.msg(res.msg);
  2684. }
  2685. }
  2686. })
  2687. },
  2688. checkAddress(item) {
  2689. this.sourceId = item.addressId
  2690. this.$refs.addressModel.close()
  2691. this.curAddress = item.addressAll + "" + item.detailAddress
  2692. uni.setStorageSync('addressId',this.sourceId)
  2693. let cityCode = item.cityCode
  2694. this.getUserEx(cityCode)
  2695. },
  2696. addressClose() {
  2697. this.$refs.addressModel.close()
  2698. },
  2699. //用于切换地址,获取运费
  2700. getUserEx(cityCode) {
  2701. this.$request({
  2702. url:'/v3/goods/front/goods/calculateExpress',
  2703. data:{
  2704. cityCode,
  2705. productId: this.productId
  2706. }
  2707. }).then(res => {
  2708. if (res.state == 200) {
  2709. this.deliverInfo.expressFee = res.data
  2710. }else{
  2711. this.$api.msg(res.msg)
  2712. }
  2713. })
  2714. },
  2715. }
  2716. }
  2717. </script>
  2718. <style lang='scss'>
  2719. page {
  2720. background: $bg-color-split;
  2721. /* padding-bottom: 100rpx; */
  2722. width: 750rpx;
  2723. margin: 0 auto;
  2724. }
  2725. .container {
  2726. position: relative;
  2727. }
  2728. .go_back {
  2729. width: 50rpx;
  2730. height: 50rpx;
  2731. position: absolute;
  2732. /* #ifdef H5 */
  2733. top: 28rpx;
  2734. /* #endif */
  2735. /* #ifdef APP-PLUS */
  2736. top: 28rpx;
  2737. /* #endif */
  2738. left: 25rpx;
  2739. z-index: 99;
  2740. image {
  2741. width: 50rpx;
  2742. height: 50rpx;
  2743. }
  2744. }
  2745. .go_more {
  2746. width: 50rpx;
  2747. height: 50rpx;
  2748. position: absolute;
  2749. /* #ifdef H5 */
  2750. top: 28rpx;
  2751. /* #endif */
  2752. /* #ifdef APP-PLUS */
  2753. top: 28rpx;
  2754. /* #endif */
  2755. right: 25rpx;
  2756. z-index: 99;
  2757. image {
  2758. width: 50rpx;
  2759. height: 50rpx;
  2760. }
  2761. .triangle-up {
  2762. position: absolute;
  2763. display: block;
  2764. top: 40rpx;
  2765. right: -15rpx;
  2766. width: 0rpx;
  2767. height: 0rpx;
  2768. background: #FFFFFF;
  2769. border: 1px solid #CCCCCC;
  2770. &::before {
  2771. box-sizing: content-box;
  2772. width: 0;
  2773. height: 0;
  2774. position: absolute;
  2775. top: -2px;
  2776. right: 25rpx;
  2777. padding: 0;
  2778. border-bottom: 8px solid #ffffff;
  2779. border-top: 8px solid transparent;
  2780. border-left: 8px solid transparent;
  2781. border-right: 8px solid transparent;
  2782. display: block;
  2783. content: '';
  2784. z-index: 12;
  2785. }
  2786. &::after {
  2787. box-sizing: content-box;
  2788. width: 0px;
  2789. height: 0px;
  2790. position: absolute;
  2791. top: -5px;
  2792. right: 20rpx;
  2793. padding: 0;
  2794. border-bottom: 9px solid rgba(102, 102, 102, 0.1);
  2795. border-top: 9px solid transparent;
  2796. border-left: 9px solid transparent;
  2797. border-right: 10px solid transparent;
  2798. display: block;
  2799. content: '';
  2800. z-index: 10
  2801. }
  2802. }
  2803. .tips {
  2804. position: absolute;
  2805. z-index: 20;
  2806. top: 70rpx;
  2807. right: -10rpx;
  2808. width: 226rpx;
  2809. background: rgba(255, 255, 255, 1);
  2810. box-shadow: 0px 0px 10rpx 0px rgba(102, 102, 102, 0.2);
  2811. opacity: 0.94;
  2812. border-radius: 15rpx;
  2813. display: flex;
  2814. flex-direction: column;
  2815. .tips_pre {
  2816. width: 100%;
  2817. height: 88rpx;
  2818. display: flex;
  2819. align-items: center;
  2820. padding-left: 40rpx;
  2821. box-sizing: border-box;
  2822. }
  2823. button::after {
  2824. border: none;
  2825. border-bottom: 1rpx solid #f1f1f1;
  2826. }
  2827. button[plain] {
  2828. border: none;
  2829. }
  2830. image {
  2831. width: 32rpx;
  2832. height: 32rpx;
  2833. margin-right: 20rpx;
  2834. }
  2835. text {
  2836. font-size: 26rpx;
  2837. font-family: PingFang SC;
  2838. font-weight: 500;
  2839. color: rgba(51, 51, 51, 1);
  2840. line-height: 32rpx;
  2841. }
  2842. }
  2843. }
  2844. .icon-you {
  2845. font-size: $font-base;
  2846. color: #888;
  2847. }
  2848. /* 透明遮罩层 */
  2849. .transparent_mask {
  2850. width: 100%;
  2851. height: 100%;
  2852. position: fixed;
  2853. background: rgba(0, 0, 0, 1);
  2854. opacity: 0.4;
  2855. top: 0;
  2856. left: 0;
  2857. z-index: 10;
  2858. }
  2859. .fixed_top_status_bar {
  2860. position: fixed;
  2861. /* #ifdef APP-PLUS */
  2862. height: var(--status-bar-height);
  2863. /* #endif */
  2864. /* #ifndef APP-PLUS */
  2865. height: 0;
  2866. /* #endif */
  2867. top: 0;
  2868. left: 0;
  2869. right: 0;
  2870. z-index: 99;
  2871. background: rgba(250, 250, 250, 0.9);
  2872. }
  2873. .fixed_top_status_bar_no_opcity {
  2874. background: #FFFFFF;
  2875. }
  2876. .nav_list {
  2877. display: flex;
  2878. justify-content: space-between;
  2879. position: fixed;
  2880. width: 750rpx;
  2881. height: 100rpx;
  2882. background: rgba(250, 250, 250, 0.9);
  2883. padding: 0 50rpx 0 20rpx;
  2884. /* #ifdef MP-WEIXIN */
  2885. padding-left: 20rpx;
  2886. /* #endif */
  2887. align-items: center;
  2888. z-index: 50;
  2889. .go_back_nav {
  2890. width: 50rpx;
  2891. height: 50rpx;
  2892. image {
  2893. width: 20rpx;
  2894. height: 32rpx;
  2895. }
  2896. }
  2897. .nav_list_pre {
  2898. font-size: 32rpx;
  2899. font-family: PingFang SC;
  2900. font-weight: 500;
  2901. color: #333333;
  2902. line-height: 32rpx;
  2903. padding-bottom: 5rpx;
  2904. }
  2905. .nav_list_pre_active {
  2906. border-bottom: 5rpx solid #FC1C1C;
  2907. }
  2908. /* 三点更多分享 */
  2909. .more_tips {
  2910. position: relative;
  2911. display: flex;
  2912. align-items: center;
  2913. .more {
  2914. width: 50rpx;
  2915. height: 50rpx;
  2916. }
  2917. .triangle-up {
  2918. position: absolute;
  2919. display: block;
  2920. top: 40rpx;
  2921. left: 25rpx;
  2922. width: 0rpx;
  2923. height: 0rpx;
  2924. background: #FFFFFF;
  2925. border: 1px solid #CCCCCC;
  2926. &::before {
  2927. box-sizing: content-box;
  2928. width: 0;
  2929. height: 0;
  2930. position: absolute;
  2931. top: -2px;
  2932. right: 25rpx;
  2933. padding: 0;
  2934. border-bottom: 8px solid #ffffff;
  2935. border-top: 8px solid transparent;
  2936. border-left: 8px solid transparent;
  2937. border-right: 8px solid transparent;
  2938. display: block;
  2939. content: '';
  2940. z-index: 12;
  2941. }
  2942. &::after {
  2943. box-sizing: content-box;
  2944. width: 0px;
  2945. height: 0px;
  2946. position: absolute;
  2947. top: -5px;
  2948. right: 20rpx;
  2949. padding: 0;
  2950. border-bottom: 9px solid rgba(102, 102, 102, 0.1);
  2951. border-top: 9px solid transparent;
  2952. border-left: 9px solid transparent;
  2953. border-right: 10px solid transparent;
  2954. display: block;
  2955. content: '';
  2956. z-index: 10
  2957. }
  2958. }
  2959. .tips {
  2960. position: absolute;
  2961. z-index: 20;
  2962. top: 70rpx;
  2963. right: -30rpx;
  2964. width: 226rpx;
  2965. background: rgba(255, 255, 255, 1);
  2966. box-shadow: 0px 0px 10rpx 0px rgba(102, 102, 102, 0.2);
  2967. opacity: 0.94;
  2968. border-radius: 15rpx;
  2969. display: flex;
  2970. flex-direction: column;
  2971. .tips_pre {
  2972. width: 100%;
  2973. height: 88rpx;
  2974. display: flex;
  2975. align-items: center;
  2976. padding-left: 40rpx;
  2977. box-sizing: border-box;
  2978. }
  2979. button::after {
  2980. border: none;
  2981. border-bottom: 1rpx solid #f1f1f1;
  2982. }
  2983. button[plain] {
  2984. border: none;
  2985. }
  2986. image {
  2987. width: 32rpx;
  2988. height: 32rpx;
  2989. margin-right: 20rpx;
  2990. }
  2991. text {
  2992. font-size: 26rpx;
  2993. font-family: PingFang SC;
  2994. font-weight: 500;
  2995. color: rgba(51, 51, 51, 1);
  2996. line-height: 32rpx;
  2997. }
  2998. }
  2999. }
  3000. }
  3001. .nav_list_no_opcity {
  3002. background: #FFFFFF;
  3003. }
  3004. .carousel {
  3005. height: 750rpx;
  3006. position: relative;
  3007. /* #ifdef APP-PLUS */
  3008. margin-top: var(--status-bar-height);
  3009. /* #endif */
  3010. .swiper-box {
  3011. width: 750rpx;
  3012. height: 750rpx;
  3013. }
  3014. swiper {
  3015. height: 100%;
  3016. }
  3017. .image-wrapper {
  3018. width: 100%;
  3019. height: 100%;
  3020. }
  3021. .swiper-item {
  3022. display: flex;
  3023. justify-content: center;
  3024. align-content: center;
  3025. height: 750rpx;
  3026. overflow: hidden;
  3027. image {
  3028. max-width: 100%;
  3029. max-height: 100%;
  3030. }
  3031. }
  3032. }
  3033. /* 拼团购买按钮start */
  3034. .group_shopping {
  3035. display: flex;
  3036. align-items: center;
  3037. }
  3038. .pinGroup_btn{
  3039. display: flex;
  3040. }
  3041. .group_shopping_alone {
  3042. width: 223rpx;
  3043. height: 70rpx;
  3044. background: linear-gradient(45deg, rgba(255, 121, 24, 1) 0%, rgba(254, 160, 13, 1) 100%);
  3045. border-radius: 34rpx 0 0 34rpx;
  3046. display: flex;
  3047. flex-direction: column;
  3048. align-items: center;
  3049. justify-content: center;
  3050. }
  3051. .group_alone_price {
  3052. font-size: 24rpx;
  3053. font-family: PingFang SC;
  3054. font-weight: 500;
  3055. color: rgba(255, 255, 255, 1);
  3056. line-height: 30rpx;
  3057. }
  3058. .group_alone_title {
  3059. font-size: 24rpx;
  3060. font-family: PingFang SC;
  3061. font-weight: 500;
  3062. color: rgba(255, 255, 255, 1);
  3063. line-height: 30rpx;
  3064. }
  3065. .go_group {
  3066. width: 197rpx;
  3067. height: 70rpx;
  3068. background: linear-gradient(45deg, rgba(251, 45, 45, 1) 0%, rgba(252, 87, 42, 1) 100%);
  3069. border-radius: 0 34rpx 34rpx 0;
  3070. display: flex;
  3071. flex-direction: column;
  3072. align-items: center;
  3073. justify-content: center;
  3074. }
  3075. .go_group_price {
  3076. font-size: 24rpx;
  3077. font-family: PingFang SC;
  3078. font-weight: 500;
  3079. color: rgba(255, 255, 255, 1);
  3080. line-height: 30rpx;
  3081. }
  3082. .go_group_title {
  3083. font-size: 24rpx;
  3084. font-family: PingFang SC;
  3085. font-weight: 500;
  3086. color: rgba(255, 255, 255, 1);
  3087. line-height: 30rpx;
  3088. }
  3089. .make_group {
  3090. display: flex;
  3091. align-items: center;
  3092. width: 100%;
  3093. justify-content: space-between;
  3094. }
  3095. .make_group_num {
  3096. font-size: 26rpx;
  3097. font-family: PingFang SC;
  3098. font-weight: 500;
  3099. color: rgba(45, 45, 45, 1);
  3100. line-height: 45rpx;
  3101. }
  3102. .make_groip_more {
  3103. display: flex;
  3104. align-items: center;
  3105. }
  3106. .make_groip_more text {
  3107. font-size: 24rpx;
  3108. font-family: PingFang SC;
  3109. font-weight: 500;
  3110. color: rgba(251, 27, 27, 1);
  3111. }
  3112. .make_groip_more image {
  3113. width: 12rpx;
  3114. height: 20rpx;
  3115. }
  3116. /* 拼团购买按钮end */
  3117. /* 秒杀活动 start */
  3118. .second_kill {
  3119. width: 750rpx;
  3120. }
  3121. .second_kill_con {
  3122. width: 750rpx;
  3123. height: 126rpx;
  3124. padding-left: 114rpx;
  3125. padding-right: 20rpx;
  3126. box-sizing: border-box;
  3127. display: flex;
  3128. align-items: center;
  3129. justify-content: space-between;
  3130. margin-top: -2rpx;
  3131. }
  3132. .second_kill_left {
  3133. display: flex;
  3134. flex-direction: column;
  3135. justify-content: center;
  3136. }
  3137. .second_kill_goods_price {
  3138. font-size: 30rpx;
  3139. font-family: PingFang SC;
  3140. font-weight: bold;
  3141. color: #FFFFFF;
  3142. margin-bottom: 8rpx;
  3143. }
  3144. .second_kill_goods_price text:nth-child(2) {
  3145. font-size: 40rpx;
  3146. }
  3147. .second_kill_price {
  3148. font-size: 24rpx;
  3149. font-family: PingFang SC;
  3150. font-weight: 500;
  3151. color: #FFFFFF;
  3152. opacity: 0.8;
  3153. }
  3154. .line_through {
  3155. text-decoration: line-through;
  3156. }
  3157. .second_kill_right {
  3158. display: flex;
  3159. flex-direction: column;
  3160. justify-content: center;
  3161. align-items: center;
  3162. }
  3163. .second_kill_text {
  3164. font-size: 24rpx;
  3165. font-family: PingFang SC;
  3166. font-weight: 600;
  3167. color: #FF2930;
  3168. margin-bottom: 20rpx;
  3169. }
  3170. .sec_kill_countdown {
  3171. display: flex;
  3172. align-items: center;
  3173. font-size: 20rpx;
  3174. font-family: PingFang SC;
  3175. font-weight: 500;
  3176. color: #FF333A;
  3177. line-height: 34rpx;
  3178. }
  3179. .sec_kill_countdown .day {
  3180. margin-right: 10rpx;
  3181. }
  3182. .sec_kill_countdown .time {
  3183. background: #FF1F26;
  3184. width: 34rpx;
  3185. height: 34rpx;
  3186. border-radius: 50%;
  3187. line-height: 34rpx;
  3188. text-align: center;
  3189. color: #FFFFFF;
  3190. }
  3191. .sec_kill_countdown .time_tips {
  3192. color: #FF3C42;
  3193. margin: 0 5rpx;
  3194. }
  3195. .sec_kill_preview {
  3196. display: flex;
  3197. align-items: center;
  3198. justify-content: space-between;
  3199. padding: 0 20rpx;
  3200. box-sizing: border-box;
  3201. width: 750rpx;
  3202. height: 50rpx;
  3203. }
  3204. .sec_kill_preview_left {
  3205. font-size: 24rpx;
  3206. font-family: PingFang SC;
  3207. font-weight: 500;
  3208. color: #666666;
  3209. }
  3210. .sec_kill_preview_right {
  3211. display: flex;
  3212. align-items: center;
  3213. width: 136px;
  3214. height: 34px;
  3215. background: #FF2B32;
  3216. border-radius: 17px;
  3217. display: flex;
  3218. align-items: center;
  3219. justify-content: center;
  3220. transform: scale(.5);
  3221. margin-right: -34px;
  3222. }
  3223. .sec_kill_preview_right image {
  3224. width: 46rpx;
  3225. height: 48rpx;
  3226. margin: 0 10rpx 0 10rpx;
  3227. }
  3228. .sec_kill_preview_right .tip {
  3229. font-size: 24px;
  3230. font-family: PingFang SC;
  3231. font-weight: 500;
  3232. color: #FFFFFF;
  3233. line-height: 24px;
  3234. letter-spacing: 2rpx;
  3235. }
  3236. .cancel_preview {
  3237. width: 136px;
  3238. height: 34px;
  3239. background: #999999;
  3240. border-radius: 17px;
  3241. font-size: 22px;
  3242. font-family: PingFang SC;
  3243. font-weight: 500;
  3244. color: #FFFFFF;
  3245. text-align: center;
  3246. line-height: 22px;
  3247. display: flex;
  3248. align-items: center;
  3249. justify-content: center;
  3250. transform: scale(.5);
  3251. margin-right: -34px;
  3252. }
  3253. /* 秒杀活动 end */
  3254. /* 阶梯团活动 */
  3255. .ladder {
  3256. position: relative;
  3257. display: flex;
  3258. align-items: center;
  3259. width: 100%;
  3260. height: 140rpx;
  3261. overflow: hidden;
  3262. }
  3263. /* 阶梯团活动end */
  3264. .addressDefault{
  3265. color: #999999 !important;
  3266. }
  3267. /* 有活动的商品描述详情 start */
  3268. .introduce_section_activity {
  3269. background: #FFFFFF;
  3270. padding: 28rpx 0 30rpx 0;
  3271. margin-bottom: 20rpx;
  3272. .activity_goods_des {
  3273. display: flex;
  3274. justify-content: space-between;
  3275. padding: 0 30rpx 0 21rpx;
  3276. .activity_goods_name {
  3277. width: 533rpx;
  3278. font-size: 32rpx;
  3279. font-family: PingFang SC;
  3280. font-weight: bold;
  3281. color: #333333;
  3282. line-height: 48rpx;
  3283. text-overflow: -o-ellipsis-lastline;
  3284. overflow: hidden;
  3285. text-overflow: ellipsis;
  3286. display: -webkit-box;
  3287. -webkit-line-clamp: 2;
  3288. line-clamp: 2;
  3289. -webkit-box-orient: vertical;
  3290. }
  3291. .activity_share_collection {
  3292. display: flex;
  3293. .activity_goods_collection {
  3294. display: flex;
  3295. flex-direction: column;
  3296. align-items: center;
  3297. width: 100rpx;
  3298. .iconfont {
  3299. font-size: 44rpx;
  3300. }
  3301. .iconaixin1 {
  3302. color: #FB1C1C;
  3303. }
  3304. .show_text {
  3305. font-size: 22rpx;
  3306. font-family: PingFang SC;
  3307. font-weight: 500;
  3308. color: #2D2D2D;
  3309. }
  3310. }
  3311. .activity_goods_share {
  3312. display: flex;
  3313. flex-direction: column;
  3314. align-items: center;
  3315. margin-left: 15rpx;
  3316. .iconfont {
  3317. font-size: 44rpx;
  3318. }
  3319. .show_text {
  3320. font-size: 22rpx;
  3321. font-family: PingFang SC;
  3322. font-weight: 500;
  3323. color: #2D2D2D;
  3324. }
  3325. }
  3326. }
  3327. }
  3328. .activity_goods_brief {
  3329. width: 681rpx;
  3330. font-size: 28rpx;
  3331. font-family: PingFang SC;
  3332. font-weight: 500;
  3333. color: #555555;
  3334. line-height: 36rpx;
  3335. overflow: hidden;
  3336. text-overflow: ellipsis;
  3337. white-space: nowrap;
  3338. padding: 0 20rpx;
  3339. box-sizing: border-box;
  3340. margin-top: 8px;
  3341. }
  3342. }
  3343. /* 有活动的商品描述详情 end */
  3344. /* 标题简介 */
  3345. .introduce_section {
  3346. background: #fff;
  3347. padding: 20rpx;
  3348. margin-bottom: 20rpx;
  3349. .price_part {
  3350. .left {
  3351. display: flex;
  3352. flex-direction: column;
  3353. .sell_price {
  3354. color: $main-color;
  3355. .unit {
  3356. font-size: 26rpx;
  3357. font-weight: bold;
  3358. }
  3359. .price_int {
  3360. font-size: 50rpx;
  3361. line-height: 50rpx;
  3362. margin-left: 4rpx;
  3363. font-weight: bold;
  3364. }
  3365. .price_decimal {
  3366. font-size: 26rpx;
  3367. font-weight: bold;
  3368. }
  3369. }
  3370. .original_price {
  3371. color: #949494;
  3372. font-size: 22rpx;
  3373. text-decoration: line-through;
  3374. }
  3375. }
  3376. .right {
  3377. .collection {
  3378. display: flex;
  3379. flex-direction: column;
  3380. width: 72rpx;
  3381. white-space: nowrap;
  3382. .iconaixin1 {
  3383. color: #f80f0c;
  3384. }
  3385. .iconaixin {
  3386. color: #2D2D2D;
  3387. }
  3388. text {
  3389. font-size: 22rpx;
  3390. font-family: PingFang SC;
  3391. font-weight: 500;
  3392. color: #2D2D2D;
  3393. }
  3394. }
  3395. view {
  3396. .iconfont {
  3397. font-size: 50rpx;
  3398. color: #2D2D2D;
  3399. &.active {
  3400. color: $main-color;
  3401. }
  3402. }
  3403. .show_text {
  3404. color: #2D2D2D;
  3405. font-size: 22rpx;
  3406. &.active {
  3407. color: $main-color;
  3408. }
  3409. }
  3410. &:last-child {
  3411. margin-left: 25rpx;
  3412. }
  3413. }
  3414. }
  3415. }
  3416. .goods_name {
  3417. font-size: 32rpx;
  3418. font-weight: 600;
  3419. color: #333;
  3420. line-height: 45rpx;
  3421. overflow: hidden;
  3422. text-overflow: ellipsis;
  3423. display: -webkit-box;
  3424. -webkit-line-clamp: 2;
  3425. -webkit-box-orient: vertical;
  3426. word-break: break-word;
  3427. margin-top: 20rpx;
  3428. }
  3429. .goods_ad {
  3430. color: #666666;
  3431. font-size: 28rpx;
  3432. line-height: 60rpx;
  3433. height: 60rpx;
  3434. overflow: hidden;
  3435. text-overflow: ellipsis;
  3436. white-space: nowrap;
  3437. }
  3438. .coupon-tip {
  3439. align-items: center;
  3440. padding: 4rpx 10rpx;
  3441. background: $uni-color-primary;
  3442. font-size: $font-sm;
  3443. color: #fff;
  3444. border-radius: 6rpx;
  3445. line-height: 1;
  3446. transform: translateY(-4rpx);
  3447. }
  3448. }
  3449. /* 分享 */
  3450. .share-section {
  3451. display: flex;
  3452. align-items: center;
  3453. color: $font-color-base;
  3454. background: linear-gradient(left, #fdf5f6, #fbebf6);
  3455. padding: 12rpx 30rpx;
  3456. .share-icon {
  3457. display: flex;
  3458. align-items: center;
  3459. width: 70rpx;
  3460. height: 30rpx;
  3461. line-height: 1;
  3462. border: 1px solid $uni-color-primary;
  3463. border-radius: 4rpx;
  3464. position: relative;
  3465. overflow: hidden;
  3466. font-size: 22rpx;
  3467. color: $uni-color-primary;
  3468. &:after {
  3469. content: '';
  3470. width: 50rpx;
  3471. height: 50rpx;
  3472. border-radius: 50%;
  3473. left: -20rpx;
  3474. top: -12rpx;
  3475. position: absolute;
  3476. background: $uni-color-primary;
  3477. }
  3478. }
  3479. .icon-xingxing {
  3480. position: relative;
  3481. z-index: 1;
  3482. font-size: 24rpx;
  3483. margin-left: 2rpx;
  3484. margin-right: 10rpx;
  3485. color: #fff;
  3486. line-height: 1;
  3487. }
  3488. .tit {
  3489. font-size: $font-base;
  3490. margin-left: 10rpx;
  3491. }
  3492. .icon-bangzhu1 {
  3493. padding: 10rpx;
  3494. font-size: 30rpx;
  3495. line-height: 1;
  3496. }
  3497. .share-btn {
  3498. flex: 1;
  3499. text-align: right;
  3500. font-size: $font-sm;
  3501. color: $uni-color-primary;
  3502. }
  3503. .icon-you {
  3504. font-size: $font-sm;
  3505. margin-left: 4rpx;
  3506. color: $uni-color-primary;
  3507. }
  3508. }
  3509. .spec_con {
  3510. padding: 0 8rpx 0 20rpx;
  3511. box-sizing: border-box;
  3512. display: flex;
  3513. justify-content: space-between;
  3514. align-items: center;
  3515. height: 90rpx;
  3516. background: #FFFFFF;
  3517. .spec_left {
  3518. display: flex;
  3519. align-items: center;
  3520. .spec_left_title {
  3521. font-size: 26rpx;
  3522. font-family: PingFang SC;
  3523. font-weight: 500;
  3524. color: #666666;
  3525. line-height: 45rpx;
  3526. margin-right: 35rpx;
  3527. }
  3528. .spec_left_content {
  3529. width: 550rpx;
  3530. white-space: nowrap;
  3531. text-overflow: ellipsis;
  3532. overflow: hidden;
  3533. word-break: break-all;
  3534. font-size: 28rpx;
  3535. font-family: PingFang SC;
  3536. font-weight: 500;
  3537. color: #343434;
  3538. line-height: 45rpx;
  3539. margin-right: 10rpx;
  3540. }
  3541. }
  3542. .spec_right {
  3543. width: 36rpx;
  3544. height: 36rpx;
  3545. }
  3546. }
  3547. .c-list {
  3548. font-size: $font-sm;
  3549. color: $font-color-base;
  3550. background: #fff;
  3551. .c-row {
  3552. display: flex;
  3553. align-items: center;
  3554. padding: 20rpx 20rpx;
  3555. position: relative;
  3556. }
  3557. .tit {
  3558. color: #666;
  3559. font-size: 26rpx;
  3560. margin-right: 35rpx;
  3561. }
  3562. .con {
  3563. flex: 1;
  3564. color: #333;
  3565. font-size: 28rpx;
  3566. .selected-text {
  3567. margin-right: 10rpx;
  3568. }
  3569. }
  3570. .bz-list {
  3571. height: 40rpx;
  3572. font-size: $font-sm;
  3573. color: $font-color-dark;
  3574. text {
  3575. display: inline-block;
  3576. margin-right: 30rpx;
  3577. }
  3578. }
  3579. .con-list {
  3580. flex: 1;
  3581. display: flex;
  3582. flex-direction: column;
  3583. color: $font-color-dark;
  3584. line-height: 40rpx;
  3585. }
  3586. .red {
  3587. color: $uni-color-primary;
  3588. }
  3589. }
  3590. /* 发货地址及运费 start */
  3591. .deliver_goods {
  3592. height: 100rpx;
  3593. background: #FFFFFF;
  3594. border-top: 1rpx solid #f2f2f2;
  3595. .deliver_goods_con {
  3596. margin: 0 20rpx;
  3597. height: 100rpx;
  3598. display: flex;
  3599. justify-content: space-between;
  3600. align-items: center;
  3601. .deliver_goods_left {
  3602. display: flex;
  3603. align-items: center;
  3604. .deliver_goods_title {
  3605. font-size: 28rpx;
  3606. font-family: PingFang SC;
  3607. font-weight: 500;
  3608. color: #666666;
  3609. margin-right: 36rpx;
  3610. }
  3611. .deliver_goods_address {
  3612. display: flex;
  3613. align-items: center;
  3614. image {
  3615. width: 34rpx;
  3616. height: 38rpx;
  3617. margin-right: 10rpx;
  3618. }
  3619. text {
  3620. display: inline-block;
  3621. font-size: 28rpx;
  3622. font-family: PingFang SC;
  3623. font-weight: 500;
  3624. color: #333333;
  3625. line-height: 45rpx;
  3626. width: 230rpx;
  3627. overflow: hidden;
  3628. text-overflow: ellipsis;
  3629. white-space: nowrap;
  3630. }
  3631. }
  3632. }
  3633. .deliver_goods_center {
  3634. font-size: 28rpx;
  3635. font-family: PingFang SC;
  3636. font-weight: 500;
  3637. color: #2D2D2D;
  3638. line-height: 45rpx;
  3639. }
  3640. .deliver_goods_right {
  3641. font-size: 28rpx;
  3642. font-family: PingFang SC;
  3643. font-weight: 500;
  3644. color: #777777;
  3645. line-height: 45rpx;
  3646. }
  3647. }
  3648. }
  3649. /* 发货地址及运费 end */
  3650. /* 活动 start */
  3651. .activity {
  3652. background: #FFFFFF;
  3653. margin-top: 20rpx;
  3654. padding: 30rpx 0;
  3655. box-sizing: border-box;
  3656. .activity_coupons_tips {
  3657. font-size: 28rpx;
  3658. font-family: PingFang SC;
  3659. font-weight: 500;
  3660. color: #666666;
  3661. line-height: 45rpx;
  3662. }
  3663. /* 领券 start */
  3664. .activity_coupons {
  3665. display: flex;
  3666. justify-content: space-between;
  3667. align-items: center;
  3668. width: 100%;
  3669. padding: 0 8rpx 0 20rpx;
  3670. .activity_coupons_left {
  3671. display: flex;
  3672. align-items: center;
  3673. .activity_coupons_center {
  3674. display: flex;
  3675. align-items: center;
  3676. .activity_coupons_title {
  3677. font-size: 28rpx;
  3678. font-family: PingFang SC;
  3679. font-weight: 500;
  3680. color: #FC2D2D;
  3681. margin: 0 20rpx 0 35rpx;
  3682. }
  3683. .activity_coupons_list {
  3684. display: flex;
  3685. align-items: center;
  3686. .activity_coupons_pre {
  3687. width: 181rpx;
  3688. height: 42rpx;
  3689. background-size: 100% 100%;
  3690. font-size: 24rpx;
  3691. font-family: PingFang SC;
  3692. font-weight: 500;
  3693. color: #FC2D2D;
  3694. line-height: 42rpx;
  3695. text-align: center;
  3696. margin-right: 20rpx;
  3697. }
  3698. }
  3699. }
  3700. }
  3701. .activity_conpons_right {
  3702. width: 36rpx;
  3703. height: 36rpx;
  3704. image {
  3705. width: 36rpx;
  3706. height: 36rpx;
  3707. }
  3708. }
  3709. }
  3710. /* 领券 end */
  3711. /* 满优惠 start */
  3712. .full_discount {
  3713. padding-left: 109rpx;
  3714. display: flex;
  3715. align-items: center;
  3716. margin-top: 28rpx;
  3717. &.padd20{
  3718. padding-left: 20rpx !important;
  3719. margin-top: 0rpx !important;
  3720. }
  3721. .full_discount_title {
  3722. font-size: 28rpx;
  3723. font-family: PingFang SC;
  3724. font-weight: 500;
  3725. color: #FC2D2D;
  3726. }
  3727. .discount_title_no_ma{
  3728. margin-left: 20rpx;
  3729. }
  3730. .full_discount_list {
  3731. display: flex;
  3732. align-items: center;
  3733. margin-left: 19rpx;
  3734. font-size: 28rpx;
  3735. font-family: PingFang SC;
  3736. font-weight: 500;
  3737. color: #333333;
  3738. display: inline-block;
  3739. white-space: nowrap;
  3740. text-overflow: ellipsis;
  3741. overflow: hidden;
  3742. word-break: break-all;
  3743. width: 500rpx;
  3744. }
  3745. }
  3746. /* 满优惠 end */
  3747. }
  3748. /* 活动 end */
  3749. /* 积分 start */
  3750. .integral {
  3751. background: #FFFFFF;
  3752. .integral_content {
  3753. border-top: 1rpx solid #f2f2f2;
  3754. display: flex;
  3755. align-items: center;
  3756. height: 100rpx;
  3757. padding: 0 20rpx;
  3758. .integral_title {
  3759. font-size: 28rpx;
  3760. font-family: PingFang SC;
  3761. font-weight: 500;
  3762. color: #666666;
  3763. }
  3764. .integral_con {
  3765. font-size: 28rpx;
  3766. font-family: PingFang SC;
  3767. font-weight: 500;
  3768. color: #333333;
  3769. margin-left: 35rpx;
  3770. }
  3771. }
  3772. }
  3773. /* 积分 end */
  3774. /* 服务 start */
  3775. .service {
  3776. height: 90rpx;
  3777. display: flex;
  3778. align-items: center;
  3779. justify-content: space-between;
  3780. padding: 0 8rpx 0 20rpx;
  3781. box-sizing: border-box;
  3782. background: #FFFFFF;
  3783. margin-top: 20rpx;
  3784. .service_left {
  3785. display: flex;
  3786. align-items: center;
  3787. height: 90rpx;
  3788. .service_title {
  3789. font-size: 26rpx;
  3790. font-family: PingFang SC;
  3791. font-weight: 500;
  3792. color: #666666;
  3793. line-height: 45rpx;
  3794. margin-right: 37rpx;
  3795. }
  3796. .service_con {
  3797. display: flex;
  3798. align-items: center;
  3799. display: inline;
  3800. width: 580rpx;
  3801. overflow: hidden;
  3802. text-overflow: ellipsis;
  3803. word-break: break-all;
  3804. white-space: nowrap;
  3805. .service_pre {
  3806. display: inline-block;
  3807. margin-right: 20rpx;
  3808. .service_pre_tips {
  3809. width: 5rpx;
  3810. height: 5rpx;
  3811. background: #FF0000;
  3812. border-radius: 50%;
  3813. margin-right: 10rpx;
  3814. display: inline-block;
  3815. vertical-align: middle;
  3816. }
  3817. text:nth-child(2) {
  3818. font-size: 24rpx;
  3819. font-family: PingFang SC;
  3820. font-weight: 400;
  3821. color: #555555;
  3822. line-height: 90rpx;
  3823. }
  3824. }
  3825. }
  3826. }
  3827. .service_right {
  3828. display: flex;
  3829. align-items: center;
  3830. image {
  3831. width: 36rpx;
  3832. height: 36rpx;
  3833. }
  3834. }
  3835. }
  3836. /* 服务 end */
  3837. /* 服务弹框 start */
  3838. .service_model {
  3839. width: 100%;
  3840. height: 640rpx;
  3841. background: #FFFFFF;
  3842. border-radius: 15rpx 15rpx 0 0;
  3843. .service_model_top {
  3844. width: 100%;
  3845. height: 100rpx;
  3846. border-radius: 15rpx 15rpx 0 0;
  3847. display: flex;
  3848. align-items: center;
  3849. justify-content: space-between;
  3850. padding: 0 12rpx 0 30rpx;
  3851. box-sizing: border-box;
  3852. position: absolute;
  3853. z-index: 10;
  3854. top: 0;
  3855. border-bottom: 1rpx solid #f2f2f2;
  3856. text {
  3857. font-size: 32rpx;
  3858. font-family: PingFang SC;
  3859. font-weight: bold;
  3860. color: #333333;
  3861. line-height: 32rpx;
  3862. }
  3863. image {
  3864. width: 46rpx;
  3865. height: 46rpx;
  3866. }
  3867. }
  3868. .service_model_list {
  3869. padding-top: 100rpx;
  3870. box-sizing: border-box;
  3871. height: 640rpx;
  3872. .service_list_pre {
  3873. margin-left: 30rpx;
  3874. border-bottom: 1rpx solid #F5F5F5;
  3875. padding: 30rpx 30rpx 30rpx 0;
  3876. box-sizing: border-box;
  3877. .service_list_title {
  3878. font-size: 28rpx;
  3879. font-family: PingFang SC;
  3880. font-weight: 500;
  3881. color: #333333;
  3882. line-height: 45rpx;
  3883. }
  3884. .service_list_des {
  3885. font-size: 24rpx;
  3886. font-family: PingFang SC;
  3887. font-weight: 400;
  3888. color: #999999;
  3889. line-height: 45rpx;
  3890. margin-top: 19rpx;
  3891. word-break: break-all;
  3892. }
  3893. }
  3894. }
  3895. }
  3896. /* 服务弹框 end */
  3897. /* 优惠券弹框 start */
  3898. .coupon_model {
  3899. width: 100%;
  3900. height: 900rpx;
  3901. background: #F5F5F5;
  3902. border-radius: 15rpx 15rpx 0 0;
  3903. .coupon_model_title {
  3904. width: 100%;
  3905. height: 100rpx;
  3906. border-radius: 15rpx 15rpx 0 0;
  3907. display: flex;
  3908. align-items: center;
  3909. justify-content: space-between;
  3910. padding: 0 12rpx 0 30rpx;
  3911. box-sizing: border-box;
  3912. position: absolute;
  3913. z-index: 10;
  3914. top: 0;
  3915. background: #FFFFFF;
  3916. border-bottom: 1rpx solid #f2f2f2;
  3917. text {
  3918. font-size: 32rpx;
  3919. font-family: PingFang SC;
  3920. font-weight: bold;
  3921. color: #333333;
  3922. line-height: 32rpx;
  3923. }
  3924. image {
  3925. width: 46rpx;
  3926. height: 46rpx;
  3927. }
  3928. }
  3929. .coupon_model_list {
  3930. box-sizing: border-box;
  3931. height: 880rpx;
  3932. width: 750rpx;
  3933. overflow-x: hidden;
  3934. padding: 120rpx 20rpx 0;
  3935. box-sizing: border-box;
  3936. .my_coupon_pre {
  3937. margin-bottom: 20rpx;
  3938. position: relative;
  3939. .coupon_pre_top {
  3940. width: 710rpx;
  3941. height: 190rpx;
  3942. background-size: 100% 100%;
  3943. display: flex;
  3944. align-items: center;
  3945. .coupon_pre_left {
  3946. display: flex;
  3947. flex-direction: column;
  3948. width: 203rpx;
  3949. align-items: center;
  3950. .coupon_pre_price {
  3951. font-size: 20rpx;
  3952. font-family: Source Han Sans CN;
  3953. font-weight: bold;
  3954. color: #F20C06;
  3955. line-height: 31rpx;
  3956. text:nth-child(2) {
  3957. font-size: 48rpx;
  3958. font-family: Source Han Sans CN;
  3959. font-weight: bold;
  3960. color: #F30801;
  3961. line-height: 31rpx;
  3962. }
  3963. }
  3964. .coupon_pre_active {
  3965. font-size: 24rpx;
  3966. font-family: Source Han Sans CN;
  3967. font-weight: 400;
  3968. color: #F6130E;
  3969. line-height: 31rpx;
  3970. margin-top: 20rpx;
  3971. }
  3972. }
  3973. .coupon_pre_cen {
  3974. display: felx;
  3975. flex-direction: column;
  3976. flex: 1;
  3977. padding-left: 44rpx;
  3978. .coupon_pre_title {
  3979. font-size: 30rpx;
  3980. font-family: PingFang SC;
  3981. font-weight: bold;
  3982. color: #111111;
  3983. line-height: 31rpx;
  3984. }
  3985. .coupon_pre_time {
  3986. font-size: 24rpx;
  3987. font-family: PingFang SC;
  3988. font-weight: 500;
  3989. color: #333333;
  3990. line-height: 31rpx;
  3991. margin: 21rpx 0 17rpx;
  3992. }
  3993. .coupon_pre_rules {
  3994. display: flex;
  3995. align-items: center;
  3996. text {
  3997. font-size: 24rpx;
  3998. font-family: PingFang SC;
  3999. font-weight: 500;
  4000. color: #999999;
  4001. line-height: 31rpx;
  4002. }
  4003. image {
  4004. width: 12rpx;
  4005. height: 7rpx;
  4006. margin-left: 20rpx;
  4007. }
  4008. }
  4009. }
  4010. .coupon_pre_right {
  4011. width: 130rpx;
  4012. box-sizing: border-box;
  4013. font-size: 24rpx;
  4014. font-family: Source Han Sans CN;
  4015. font-weight: 400;
  4016. color: #FFFFFF;
  4017. text-align: center;
  4018. }
  4019. }
  4020. .coupon_rules {
  4021. width: 710rpx;
  4022. padding: 20rpx 0 20rpx 43rpx;
  4023. box-sizing: border-box;
  4024. font-size: 22rpx;
  4025. font-family: PingFang SC;
  4026. font-weight: 500;
  4027. color: #666666;
  4028. line-height: 30rpx;
  4029. background: #FFFFFF;
  4030. border-top: 1rpx solid #f2f2f2;
  4031. border-radius: 0 0 15rpx 15rpx;
  4032. .coupon_rules_title {
  4033. margin-bottom: 10rpx;
  4034. }
  4035. }
  4036. .coupon_type {
  4037. position: absolute;
  4038. top: 0;
  4039. left: 0;
  4040. padding: 0 5rpx;
  4041. height: 30rpx;
  4042. background: linear-gradient(0deg, #FF3000 0%, #FB3E31 0%, #FF3728 0%, #FF142F 100%);
  4043. font-size: 20rpx;
  4044. font-family: Source Han Sans CN;
  4045. font-weight: 400;
  4046. color: #FFFFFF;
  4047. line-height: 30rpx;
  4048. text-align: center;
  4049. border-radius: 15rpx 0 15rpx 0;
  4050. }
  4051. .coupon_progress {
  4052. position: absolute;
  4053. width: 130rpx;
  4054. top: 10rpx;
  4055. right: 0rpx;
  4056. display: flex;
  4057. flex-direction: column;
  4058. align-items: center;
  4059. font-size: 18rpx;
  4060. font-family: Source Han Sans CN;
  4061. font-weight: 400;
  4062. color: #FFFFFF;
  4063. line-height: 31rpx;
  4064. .progress_con {
  4065. width: 84rpx;
  4066. margin-top: 5rpx;
  4067. border-radius: 5rpx;
  4068. progress {
  4069. border: 1rpx solid #FFFFFF;
  4070. border-radius: 5rpx;
  4071. }
  4072. }
  4073. }
  4074. }
  4075. }
  4076. }
  4077. /* 优惠券弹框 end */
  4078. /* 满优惠弹框 */
  4079. .fulldis_model {
  4080. width: 100%;
  4081. height: 900rpx;
  4082. background: #FFFFFF;
  4083. border-radius: 15rpx 15rpx 0 0;
  4084. .fulldis_model_title {
  4085. width: 100%;
  4086. height: 100rpx;
  4087. border-radius: 15rpx 15rpx 0 0;
  4088. display: flex;
  4089. align-items: center;
  4090. justify-content: space-between;
  4091. padding: 0 12rpx 0 30rpx;
  4092. box-sizing: border-box;
  4093. position: absolute;
  4094. z-index: 10;
  4095. top: 0;
  4096. background: #FFFFFF;
  4097. border-bottom: 1rpx solid #f2f2f2;
  4098. text {
  4099. font-size: 32rpx;
  4100. font-family: PingFang SC;
  4101. font-weight: bold;
  4102. color: #333333;
  4103. line-height: 32rpx;
  4104. }
  4105. image {
  4106. width: 46rpx;
  4107. height: 46rpx;
  4108. }
  4109. }
  4110. .fulldis_model_list {
  4111. padding-top: 150rpx;
  4112. box-sizing: border-box;
  4113. height: 720rpx;
  4114. width: 750rpx;
  4115. /* background: #FFFFFF; */
  4116. border-radius: 15rpx 15rpx 0 0;
  4117. .fulldis_model_pre {
  4118. display: flex;
  4119. padding-left: 44rpx;
  4120. box-sizing: border-box;
  4121. margin-bottom: 57rpx;
  4122. flex-shrink: 0;
  4123. .fulldis_pre_tips {
  4124. width: 10rpx;
  4125. height: 10rpx;
  4126. background: #FF3636;
  4127. border-radius: 50%;
  4128. margin-top: 15rpx;
  4129. }
  4130. .fulldis_pre_con {
  4131. width: 650rpx;
  4132. font-size: 28rpx;
  4133. font-family: PingFang SC;
  4134. font-weight: bold;
  4135. color: #333333;
  4136. line-height: 39rpx;
  4137. margin-left: 20rpx;
  4138. }
  4139. }
  4140. }
  4141. .full_dis_tips {
  4142. font-size: 22rpx;
  4143. font-family: PingFang SC;
  4144. font-weight: 500;
  4145. color: #999999;
  4146. line-height: 38rpx;
  4147. padding: 0 69rpx 60rpx 66rpx;
  4148. box-sizing: border-box;
  4149. background: #FFFFFF;
  4150. }
  4151. }
  4152. /* 评价 start*/
  4153. .eva_section {
  4154. display: flex;
  4155. flex-direction: column;
  4156. padding: 30rpx 0 30rpx;
  4157. background: #fff;
  4158. margin-top: 20rpx;
  4159. .e_header {
  4160. height: 33rpx;
  4161. display: flex;
  4162. align-items: center;
  4163. padding: 0 8rpx 0 20rpx;
  4164. box-sizing: border-box;
  4165. .left {
  4166. color: #333333;
  4167. /* display: flex;
  4168. align-items: center; */
  4169. .tit {
  4170. font-size: 30rpx;
  4171. }
  4172. .e_num {
  4173. font-size: 30rpx;
  4174. margin-left: 6rpx;
  4175. padding-bottom: 4rpx;
  4176. }
  4177. .e_rate {
  4178. color: #666;
  4179. font-size: 22rpx;
  4180. margin-left: 19rpx;
  4181. }
  4182. }
  4183. .right {
  4184. color: #666666;
  4185. .view_more {
  4186. font-size: 24rpx;
  4187. }
  4188. .iconfont {
  4189. font-size: 18rpx;
  4190. }
  4191. }
  4192. }
  4193. .eva_box {
  4194. .e_member_info {
  4195. margin-top: 30rpx;
  4196. padding: 0 20rpx;
  4197. .portrait {
  4198. width: 50rpx;
  4199. height: 50rpx;
  4200. border-radius: 50%;
  4201. }
  4202. .name {
  4203. color: #2D2D2D;
  4204. font-size: 26rpx;
  4205. margin: 0 20rpx;
  4206. }
  4207. }
  4208. .con {
  4209. color: #333333;
  4210. font-size: 26rpx;
  4211. line-height: 38rpx;
  4212. overflow: hidden;
  4213. text-overflow: ellipsis;
  4214. display: -webkit-box;
  4215. -webkit-line-clamp: 2;
  4216. -webkit-box-orient: vertical;
  4217. word-break: break-word;
  4218. width: 710rpx;
  4219. margin: 20rpx auto 0;
  4220. }
  4221. .view_more_eva {
  4222. width: 100%;
  4223. color: #2D2D2D;
  4224. font-size: 26rpx;
  4225. margin-top: 22rpx;
  4226. &:before {
  4227. content: ' ';
  4228. width: 160rpx;
  4229. height: 1rpx;
  4230. background: rgba(0, 0, 0, .1);
  4231. margin-right: 20rpx;
  4232. }
  4233. &:after {
  4234. content: ' ';
  4235. width: 160rpx;
  4236. height: 1rpx;
  4237. background: rgba(0, 0, 0, .1);
  4238. margin-left: 20rpx;
  4239. }
  4240. }
  4241. }
  4242. }
  4243. /* 评价 end */
  4244. /* 买家秀 start */
  4245. .buy_show {
  4246. background: #FFFFFF;
  4247. .buy_show_top {
  4248. height: 80rpx;
  4249. border-top: 1rpx solid #f2f2f2;
  4250. margin: 0 20rpx;
  4251. padding: 31rpx 0 20rpx 0;
  4252. display: flex;
  4253. align-items: center;
  4254. justify-content: space-between;
  4255. .buy_show_title {
  4256. font-size: 30rpx;
  4257. font-family: PingFang SC;
  4258. font-weight: 500;
  4259. color: #2D2D2D;
  4260. }
  4261. .buy_show_more {
  4262. text {
  4263. font-size: 26rpx;
  4264. font-family: PingFang SC;
  4265. font-weight: 500;
  4266. color: #FC281F;
  4267. line-height: 45rpx;
  4268. }
  4269. image {
  4270. width: 12rpx;
  4271. height: 20rpx;
  4272. margin-left: 18rpx;
  4273. }
  4274. }
  4275. }
  4276. .buy_show_con {
  4277. display: flex;
  4278. align-items: center;
  4279. padding-bottom: 20rpx;
  4280. .buy_show_pre {
  4281. width: 177rpx;
  4282. height: 177rpx;
  4283. }
  4284. .buy_show_pre:nth-child(1) {
  4285. border-radius: 15rpx 0 0 15rpx;
  4286. }
  4287. .buy_show_pre:nth-last-child(1) {
  4288. border-radius: 0 15rpx 15rpx 0;
  4289. }
  4290. .only {
  4291. border-radius: 15rpx;
  4292. }
  4293. }
  4294. }
  4295. /* 买家秀 end */
  4296. /* 店铺 start */
  4297. .shop {
  4298. background-color: #FFFFFF;
  4299. margin-top: 20rpx;
  4300. padding-top: 30rpx;
  4301. .shop_des {
  4302. display: flex;
  4303. align-items: center;
  4304. .shop_des_image {
  4305. width: 100rpx;
  4306. height: 100rpx;
  4307. border-radius: 15rpx;
  4308. margin: 0 20rpx;
  4309. image {
  4310. width: 100rpx;
  4311. height: 100rpx;
  4312. border-radius: 15rpx;
  4313. }
  4314. }
  4315. .shop_des_con {
  4316. display: flex;
  4317. flex-direction: column;
  4318. justify-content: center;
  4319. .shop_con_title {
  4320. font-size: 32rpx;
  4321. font-family: PingFang SC;
  4322. font-weight: 500;
  4323. color: #2D2D2D;
  4324. line-height: 45rpx;
  4325. }
  4326. .shop_con_type {
  4327. display: flex;
  4328. align-items: center;
  4329. .shop_type {
  4330. width: 60px;
  4331. height: 30px;
  4332. color: #FFFFFF;
  4333. background: #F30300;
  4334. border-radius: 15px;
  4335. font-size: 26px;
  4336. text-align: center;
  4337. line-height: 30px;
  4338. display: flex;
  4339. align-items: center;
  4340. justify-content: center;
  4341. transform: scale(0.5);
  4342. margin-left: -15px;
  4343. margin-right: -15px;
  4344. }
  4345. .shop_follow_num {
  4346. font-size: 24rpx;
  4347. font-family: PingFang SC;
  4348. font-weight: 500;
  4349. color: #999999;
  4350. line-height: 45rpx;
  4351. margin-left: 20rpx;
  4352. }
  4353. }
  4354. }
  4355. }
  4356. .shop_des_list {
  4357. display: flex;
  4358. align-items: center;
  4359. padding: 0 20rpx 30rpx 20rpx;
  4360. margin-top: 30rpx;
  4361. .shop_des_pre {
  4362. display: flex;
  4363. align-items: center;
  4364. border-right: 1rpx solid #f2f2f2;
  4365. padding-right: 25rpx;
  4366. margin-right: 25rpx;
  4367. white-space: nowrap;
  4368. &:nth-last-child(1) {
  4369. padding-right: 0;
  4370. margin-right: 0;
  4371. border-right: 0;
  4372. }
  4373. text:nth-of-type(1) {
  4374. font-size: 24rpx;
  4375. font-family: PingFang SC;
  4376. font-weight: 500;
  4377. color: #555555;
  4378. line-height: 45rpx;
  4379. }
  4380. text:nth-of-type(2) {
  4381. font-size: 24rpx;
  4382. font-family: PingFang SC;
  4383. font-weight: bold;
  4384. color: #F5100D;
  4385. line-height: 45rpx;
  4386. margin: 0 8rpx;
  4387. }
  4388. image {
  4389. width: 30rpx;
  4390. height: 30rpx;
  4391. }
  4392. }
  4393. }
  4394. .shop_links {
  4395. height: 108rpx;
  4396. border-top: 1rpx solid #f2f2f2;
  4397. display: flex;
  4398. justify-content: space-between;
  4399. padding: 0 149rpx 0 161rpx;
  4400. box-sizing: border-box;
  4401. align-items: center;
  4402. image {
  4403. width: 172rpx;
  4404. height: 48rpx;
  4405. }
  4406. }
  4407. }
  4408. /* 店铺 end */
  4409. /* 店铺推荐 start */
  4410. .store_recommend {
  4411. background-color: #FFFFFF;
  4412. margin-top: 20rpx;
  4413. padding-top: 30rpx;
  4414. .store_recommend_top {
  4415. display: flex;
  4416. justify-content: space-between;
  4417. align-items: center;
  4418. padding: 0 20rpx;
  4419. margin-bottom: 30rpx;
  4420. .store_recommend_title {
  4421. font-size: 30rpx;
  4422. font-family: PingFang SC;
  4423. font-weight: 500;
  4424. color: #333333;
  4425. line-height: 45rpx;
  4426. }
  4427. .store_recommend_more {
  4428. text {
  4429. font-size: 26rpx;
  4430. font-family: PingFang SC;
  4431. font-weight: 500;
  4432. color: #FC281F;
  4433. line-height: 45rpx;
  4434. }
  4435. image {
  4436. width: 12rpx;
  4437. height: 20rpx;
  4438. margin-left: 18rpx;
  4439. }
  4440. }
  4441. }
  4442. .store_recommend_list {
  4443. display: flex;
  4444. flex-wrap: wrap;
  4445. padding: 0 20rpx;
  4446. .store_recommend_pre {
  4447. margin-right: 20rpx;
  4448. margin-bottom: 30rpx;
  4449. &:nth-of-type(3n) {
  4450. margin-right: 0;
  4451. }
  4452. .store_reco_pre_image {
  4453. position: relative;
  4454. width: 223rpx;
  4455. height: 223rpx;
  4456. border-radius: 15rpx;
  4457. image {
  4458. width: 223rpx;
  4459. height: 223rpx;
  4460. border-radius: 15rpx;
  4461. }
  4462. .store_reco_pre_price {
  4463. width: 223rpx;
  4464. height: 40rpx;
  4465. background: rgba(0, 0, 0, 0.3);
  4466. border-radius: 0 0 15rpx 15rpx;
  4467. position: absolute;
  4468. bottom: 0;
  4469. left: 0;
  4470. font-size: 20rpx;
  4471. font-family: PingFang SC;
  4472. font-weight: 500;
  4473. color: #FFFFFF;
  4474. text-align: center;
  4475. text:nth-child(2) {
  4476. font-size: 26rpx;
  4477. }
  4478. }
  4479. }
  4480. .store_reco_pre_name {
  4481. font-size: 28rpx;
  4482. font-family: PingFang SC;
  4483. font-weight: 500;
  4484. color: #2D2D2D;
  4485. line-height: 36rpx;
  4486. width: 223rpx;
  4487. text-overflow: -o-ellipsis-lastline;
  4488. overflow: hidden;
  4489. text-overflow: ellipsis;
  4490. display: -webkit-box;
  4491. -webkit-line-clamp: 2;
  4492. line-clamp: 2;
  4493. -webkit-box-orient: vertical;
  4494. margin-top: 20rpx;
  4495. }
  4496. }
  4497. }
  4498. }
  4499. /* 店铺推荐 end */
  4500. /* 规格参数 start */
  4501. .spec_param {
  4502. background: #FFFFFF;
  4503. margin-top: 20rpx;
  4504. padding-bottom: 30rpx;
  4505. .spec_param_title {
  4506. display: flex;
  4507. flex-direction: column;
  4508. padding: 30rpx 0 0 38rpx;
  4509. text {
  4510. font-size: 28rpx;
  4511. font-family: PingFang SC;
  4512. font-weight: bold;
  4513. color: #2D2D2D;
  4514. line-height: 36rpx;
  4515. }
  4516. image {
  4517. width: 675rpx;
  4518. height: 22rpx;
  4519. }
  4520. }
  4521. .spec_param_list {
  4522. padding: 0 20rpx;
  4523. max-height: 350rpx;
  4524. margin-top: 20rpx;
  4525. box-sizing: border-box;
  4526. .spec_param_pre {
  4527. width: 710rpx;
  4528. height: 70rpx;
  4529. display: flex;
  4530. align-items: center;
  4531. font-size: 24rpx;
  4532. font-family: Source Han Sans CN;
  4533. font-weight: 400;
  4534. color: #777777;
  4535. line-height: 36rpx;
  4536. border: 1rpx solid #f2f2f2;
  4537. border-bottom: 0;
  4538. text:nth-child(1) {
  4539. width: 167rpx;
  4540. height: 70rpx;
  4541. border-right: 1rpx solid #f2f2f2;
  4542. line-height: 70rpx;
  4543. text-align: right;
  4544. padding-right: 20rpx;
  4545. }
  4546. text:nth-child(2) {
  4547. width: 541rpx;
  4548. height: 70rpx;
  4549. line-height: 70rpx;
  4550. padding-left: 20rpx;
  4551. box-sizing: border-box;
  4552. }
  4553. }
  4554. .spec_param_pre:nth-last-child(1) {
  4555. border-bottom: 1rpx solid #F2F2F2;
  4556. }
  4557. }
  4558. .open_param {
  4559. height: auto;
  4560. }
  4561. .spec_param_fold {
  4562. display: flex;
  4563. align-items: center;
  4564. justify-content: center;
  4565. padding-top: 30rpx;
  4566. text {
  4567. font-size: 24rpx;
  4568. font-family: Source Han Sans CN;
  4569. font-weight: 400;
  4570. color: #777777;
  4571. }
  4572. image {
  4573. width: 20rpx;
  4574. height: 12rpx;
  4575. margin-left: 10rpx;
  4576. }
  4577. }
  4578. }
  4579. /* 规格参数 end */
  4580. /* 详情 */
  4581. .detail-desc {
  4582. background: #fff;
  4583. margin-top: 20rpx;
  4584. overflow-x: hidden;
  4585. padding: 30rpx 20rpx;
  4586. box-sizing: border-box;
  4587. .detail-desc_title {
  4588. margin-bottom: 30rpx;
  4589. display: flex;
  4590. flex-direction: column;
  4591. text {
  4592. font-size: 28rpx;
  4593. font-family: PingFang SC;
  4594. font-weight: bold;
  4595. color: #2D2D2D;
  4596. line-height: 36rpx;
  4597. text-align: center;
  4598. }
  4599. image {
  4600. width: 675rpx;
  4601. }
  4602. }
  4603. }
  4604. /* 弹出层 */
  4605. .popup {
  4606. position: fixed;
  4607. left: 0;
  4608. top: 0;
  4609. right: 0;
  4610. bottom: 0;
  4611. z-index: 99;
  4612. &.show {
  4613. display: block;
  4614. .mask {
  4615. animation: showPopup 0.2s linear both;
  4616. }
  4617. .layer {
  4618. animation: showLayer 0.2s linear both;
  4619. }
  4620. }
  4621. &.hide {
  4622. .mask {
  4623. animation: hidePopup 0.2s linear both;
  4624. }
  4625. .layer {
  4626. animation: hideLayer 0.2s linear both;
  4627. }
  4628. }
  4629. &.none {
  4630. display: none;
  4631. }
  4632. .mask {
  4633. position: fixed;
  4634. top: 0;
  4635. width: 100%;
  4636. height: 100%;
  4637. z-index: 1;
  4638. background-color: rgba(0, 0, 0, 0.4);
  4639. }
  4640. .layer {
  4641. position: fixed;
  4642. z-index: 99;
  4643. bottom: 0;
  4644. width: 100%;
  4645. min-height: 40vh;
  4646. border-radius: 10rpx 10rpx 0 0;
  4647. background-color: #fff;
  4648. .btn {
  4649. height: 66rpx;
  4650. line-height: 66rpx;
  4651. border-radius: 100rpx;
  4652. background: $uni-color-primary;
  4653. font-size: $font-base;
  4654. color: #fff;
  4655. margin: 30rpx auto 20rpx;
  4656. }
  4657. }
  4658. .back_view{
  4659. display: flex;
  4660. align-items: center;
  4661. image{
  4662. width: 30rpx;
  4663. height: 30rpx;
  4664. }
  4665. text{
  4666. font-size: 28rpx;
  4667. }
  4668. }
  4669. @keyframes showPopup {
  4670. 0% {
  4671. opacity: 0;
  4672. }
  4673. 100% {
  4674. opacity: 1;
  4675. }
  4676. }
  4677. @keyframes hidePopup {
  4678. 0% {
  4679. opacity: 1;
  4680. }
  4681. 100% {
  4682. opacity: 0;
  4683. }
  4684. }
  4685. @keyframes showLayer {
  4686. 0% {
  4687. transform: translateY(120%);
  4688. }
  4689. 100% {
  4690. transform: translateY(0%);
  4691. }
  4692. }
  4693. @keyframes hideLayer {
  4694. 0% {
  4695. transform: translateY(0);
  4696. }
  4697. 100% {
  4698. transform: translateY(120%);
  4699. }
  4700. }
  4701. }
  4702. .uni-swiper-dot,
  4703. .swiper-box,
  4704. .video_btn,
  4705. .swiper_item,
  4706. .slide-image {
  4707. width: 100%;
  4708. height: 750rpx;
  4709. }
  4710. /* 底部操作菜单 */
  4711. .page_bottom {
  4712. position: fixed;
  4713. left: 0rpx;
  4714. right: 0rpx;
  4715. margin: 0 auto;
  4716. bottom: 0rpx;
  4717. z-index: 95;
  4718. display: flex;
  4719. justify-content: space-evenly;
  4720. align-items: center;
  4721. width: 750rpx;
  4722. /*height: 98rpx;*/
  4723. background: #fff;
  4724. box-shadow: 0px 0px 20px 0px rgba(86, 86, 86, 0.2);
  4725. padding-bottom: constant(safe-area-inset-bottom);
  4726. /* 兼容 iOS < 11.2 */
  4727. padding-bottom: env(safe-area-inset-bottom);
  4728. /* 兼容 iOS >= 11.2 */
  4729. box-sizing: border-box;
  4730. .p_b_btn {
  4731. display: flex;
  4732. flex-direction: column;
  4733. align-items: center;
  4734. justify-content: center;
  4735. font-size: $font-sm;
  4736. color: $font-color-base;
  4737. width: 96rpx;
  4738. height: 80rpx;
  4739. position: relative;
  4740. margin-top: 12rpx;
  4741. image {
  4742. width: 40rpx;
  4743. height: 40rpx;
  4744. margin-bottom: 10rpx;
  4745. }
  4746. .show_text {
  4747. color: #2D2D2D;
  4748. font-size: 20rpx;
  4749. }
  4750. .cart_num {
  4751. position: absolute;
  4752. width: 30rpx;
  4753. height: 30rpx;
  4754. text-align: center;
  4755. background: rgba(252, 45, 45, 1);
  4756. border-radius: 50%;
  4757. font-size: 18rpx;
  4758. font-family: PingFang SC;
  4759. font-weight: 500;
  4760. color: rgba(255, 255, 255, 1);
  4761. line-height: 30rpx;
  4762. right: 10rpx;
  4763. top: -8rpx;
  4764. z-index: 5;
  4765. }
  4766. }
  4767. .ladder_btn {
  4768. width: 420rpx;
  4769. height: 70rpx;
  4770. background: linear-gradient(45deg, rgba(255, 122, 24, 1) 0%, rgba(254, 161, 14, 1) 100%);
  4771. border-radius: 35rpx;
  4772. font-size: 28rpx;
  4773. font-family: PingFang SC;
  4774. font-weight: 500;
  4775. color: rgba(255, 255, 255, 1);
  4776. line-height: 70rpx;
  4777. text-align: center;
  4778. }
  4779. .action_btn_group {
  4780. display: flex;
  4781. height: 70rpx;
  4782. overflow: hidden;
  4783. margin-left: 20rpx;
  4784. .action_btn {
  4785. height: 100%;
  4786. font-size: 32rpx;
  4787. &::after {
  4788. border: none;
  4789. }
  4790. }
  4791. .add_cart_btn {
  4792. width: 223rpx;
  4793. background: #FF821C;
  4794. border-radius: 35rpx 0 0 35rpx;
  4795. }
  4796. .buy_now_btn {
  4797. width: 197rpx;
  4798. background: #F30300;
  4799. border-radius: 0 35rpx 35rpx 0;
  4800. }
  4801. .not_stock {
  4802. width: 420rpx;
  4803. background: #ADADAD;
  4804. border-radius: 35rpx;
  4805. }
  4806. .instant_second_kill {
  4807. width: 420rpx;
  4808. height: 70rpx;
  4809. background: linear-gradient(45deg, rgba(252, 45, 45, 1) 0%, rgba(253, 87, 43, 1) 100%);
  4810. border-radius: 35rpx;
  4811. font-size: 28rpx;
  4812. font-family: PingFang SC;
  4813. font-weight: 500;
  4814. color: rgba(255, 255, 255, 1);
  4815. line-height: 30rpx;
  4816. display: flex;
  4817. align-items: center;
  4818. justify-content: center;
  4819. }
  4820. .instant_pay_deposit {
  4821. width: 420rpx;
  4822. height: 70rpx;
  4823. background: linear-gradient(45deg, #FF7A18 0%, #FEA10E 100%);
  4824. border-radius: 35rpx;
  4825. font-size: 28rpx;
  4826. font-family: PingFang SC;
  4827. font-weight: 500;
  4828. color: #FFFFFF;
  4829. line-height: 26rpx;
  4830. }
  4831. .seckill_finished {
  4832. width: 420rpx;
  4833. height: 70rpx;
  4834. background: #999999;
  4835. border-radius: 35rpx;
  4836. font-size: 28rpx;
  4837. font-family: PingFang SC;
  4838. font-weight: 500;
  4839. color: #FFFFFF;
  4840. line-height: 30rpx;
  4841. }
  4842. .preSale_btn_deposit{
  4843. height: 70rpx;
  4844. background: linear-gradient(45deg, #FF7A18 0%, #FEA10E 100%);
  4845. border-radius: 35rpx 0 0 35rpx;
  4846. font-size: 28rpx;
  4847. font-family: PingFang SC;
  4848. font-weight: 500;
  4849. line-height: 30rpx;
  4850. padding: 0 20rpx;
  4851. }
  4852. .preSale_btn_buy{
  4853. height: 70rpx;
  4854. background: linear-gradient(45deg, rgba(252, 45, 45, 1) 0%, rgba(253, 87, 43, 1) 100%);
  4855. border-radius: 0 35rpx 35rpx 0;
  4856. font-size: 28rpx;
  4857. font-family: PingFang SC;
  4858. font-weight: 500;
  4859. color: rgba(255, 255, 255, 1);
  4860. line-height: 30rpx;
  4861. padding: 0 30rpx;
  4862. }
  4863. }
  4864. }
  4865. .share_model {
  4866. width: 750rpx;
  4867. height: 100%;
  4868. position: fixed;
  4869. top: 0;
  4870. left: 0;
  4871. right: 0;
  4872. margin: 0 auto;
  4873. background: rgba(0, 0, 0, 0.6);
  4874. z-index: 100;
  4875. }
  4876. .share_model_list {
  4877. display: flex;
  4878. justify-content: space-around;
  4879. padding: 0 50rpx;
  4880. box-sizing: border-box;
  4881. position: fixed;
  4882. bottom: 150rpx;
  4883. z-index: 110;
  4884. width: 750rpx;
  4885. .share_model_pre {
  4886. display: flex;
  4887. flex-direction: column;
  4888. align-items: center;
  4889. background: transparent;
  4890. border-radius: 0;
  4891. height: auto;
  4892. line-height: auto;
  4893. &::after {
  4894. border-width: 0;
  4895. }
  4896. image {
  4897. width: 105rpx;
  4898. height: 105rpx;
  4899. }
  4900. text {
  4901. font-size: 24rpx;
  4902. font-family: PingFang SC;
  4903. font-weight: 500;
  4904. color: #FFFFFF;
  4905. line-height: 36rpx;
  4906. margin-top: 30rpx;
  4907. }
  4908. }
  4909. }
  4910. .share_model_close {
  4911. width: 46rpx;
  4912. height: 46rpx;
  4913. bottom: 60rpx;
  4914. position: fixed;
  4915. z-index: 110;
  4916. left: 0;
  4917. right: 0;
  4918. margin: 0 auto;
  4919. image {
  4920. width: 46rpx;
  4921. height: 46rpx;
  4922. }
  4923. }
  4924. button {
  4925. padding: 0;
  4926. margin: 0;
  4927. }
  4928. .poster {
  4929. width: 750rpx;
  4930. height: 100%;
  4931. position: fixed;
  4932. top: 0;
  4933. left: 0;
  4934. right: 0;
  4935. margin: 0 auto;
  4936. background: rgba(0, 0, 0, 0.6);
  4937. z-index: 100;
  4938. .poster_image {
  4939. width: 541rpx;
  4940. height: 837rpx;
  4941. background: #FFFFFF;
  4942. border-radius: 20rpx;
  4943. position: absolute;
  4944. left: 105rpx;
  4945. /* #ifdef H5 */
  4946. bottom: 360rpx;
  4947. /* #endif */
  4948. /* #ifndef H5 */
  4949. bottom: 380rpx;
  4950. /* #endif */
  4951. }
  4952. .poster_share_img {
  4953. width: 390rpx;
  4954. height: 90rpx;
  4955. /* left: 179rpx; */
  4956. position: absolute;
  4957. bottom: 177rpx;
  4958. margin: 72rpx 0 22rpx;
  4959. }
  4960. .poster_share_close {
  4961. width: 49rpx;
  4962. height: 49rpx;
  4963. position: absolute;
  4964. /* left: 351rpx; */
  4965. bottom: 105rpx;
  4966. }
  4967. /* #ifdef H5 */
  4968. .poster_share_model {
  4969. width: 750rpx;
  4970. height: 100%;
  4971. position: fixed;
  4972. display: flex;
  4973. flex-direction: column;
  4974. justify-content: center;
  4975. align-items: center;
  4976. .poster_image {
  4977. width: 541rpx;
  4978. height: 837rpx;
  4979. background: #FFFFFF;
  4980. border-radius: 20rpx;
  4981. }
  4982. .poster_share_img {
  4983. width: 390rpx;
  4984. height: 90rpx;
  4985. margin: 72rpx 0 22rpx;
  4986. }
  4987. .poster_share_close {
  4988. width: 49rpx;
  4989. height: 49rpx;
  4990. }
  4991. }
  4992. /* #endif */
  4993. }
  4994. .spec_model {
  4995. /* width:750rpx;
  4996. height:100%;
  4997. position: fixed;
  4998. top: 0;
  4999. left: 0;
  5000. background: rgba(0,0,0,0.6);
  5001. z-index: 250; */
  5002. .spec_model_con {
  5003. width: 750rpx;
  5004. height: 900rpx;
  5005. background: #FFFFFF;
  5006. border-radius: 10rpx 10rpx 0;
  5007. position: fixed;
  5008. bottom: 0;
  5009. left: 0;
  5010. right: 0;
  5011. margin: 0 auto;
  5012. z-index: 150;
  5013. .spec_model_content {
  5014. padding-bottom: 115rpx;
  5015. .spec_model_top {
  5016. display: flex;
  5017. justify-content: space-between;
  5018. padding: 30rpx 22rpx 0 30rpx;
  5019. box-sizing: border-box;
  5020. .spec_model_goods {
  5021. display: flex;
  5022. height: 151rpx;
  5023. align-items: center;
  5024. .spec_goods_image {
  5025. width: 151rpx;
  5026. height: 151rpx;
  5027. background: #EEEEEE;
  5028. border-radius: 15rpx;
  5029. image {
  5030. width: 151rpx;
  5031. height: 151rpx;
  5032. border-radius: 15rpx;
  5033. }
  5034. }
  5035. .spec_goods_right {
  5036. margin-left: 30rpx;
  5037. flex-shrink: 0;
  5038. .spec_goods_price_con {
  5039. display: flex;
  5040. align-items: center;
  5041. .spec_prices {
  5042. .spec_goods_price {
  5043. display: inline-block;
  5044. text {
  5045. font-size: 24rpx;
  5046. font-family: PingFang SC;
  5047. font-weight: 500;
  5048. color: #FC1C1C;
  5049. }
  5050. text:nth-child(2) {
  5051. font-size: 50rpx;
  5052. }
  5053. }
  5054. }
  5055. .sec_kill_tips {
  5056. width: 130rpx;
  5057. height: 40rpx;
  5058. background: linear-gradient(90deg, #FFAA06 0%, #FF8323 0%, #FC5300 0%, #FF1353 100%);
  5059. border-radius: 20rpx;
  5060. font-size: 24rpx;
  5061. font-family: PingFang SC;
  5062. font-weight: 500;
  5063. color: #FFFFFF;
  5064. text-align: center;
  5065. line-height: 40rpx;
  5066. margin-left: 20px;
  5067. }
  5068. .pre_sale_tips {
  5069. width: 76rpx;
  5070. height: 38rpx;
  5071. background: linear-gradient(90deg, #891ff7, #da01e8);
  5072. border-radius: 18rpx;
  5073. font-size: 22rpx;
  5074. font-family: PingFang SC;
  5075. font-weight: 500;
  5076. color: #fff;
  5077. display: flex;
  5078. align-items: center;
  5079. justify-content: center;
  5080. margin-left: 20px;
  5081. }
  5082. .ladder_regiment_tips {
  5083. width: 100rpx;
  5084. height: 40rpx;
  5085. background: linear-gradient(90deg, #FF7A18 0%, #FEA10E 100%);
  5086. border-radius: 20rpx;
  5087. font-size: 24rpx;
  5088. font-family: PingFang SC;
  5089. font-weight: 500;
  5090. color: #FFFFFF;
  5091. display: flex;
  5092. align-items: center;
  5093. justify-content: center;
  5094. margin-left: 20rpx;
  5095. }
  5096. .pin_tips {
  5097. width: 80rpx;
  5098. height: 40rpx;
  5099. background: linear-gradient(90deg, #FC1C1C 0%, #FF6C00 100%);
  5100. border-radius: 20rpx;
  5101. font-size: 24rpx;
  5102. font-family: PingFang SC;
  5103. font-weight: 500;
  5104. color: #FFFFFF;
  5105. display: flex;
  5106. align-items: center;
  5107. justify-content: center;
  5108. margin-left: 20rpx;
  5109. }
  5110. }
  5111. .spec_goods_des {
  5112. font-size: 28rpx;
  5113. font-family: PingFang SC;
  5114. font-weight: 500;
  5115. color: #343434;
  5116. margin-top: 19rpx;
  5117. width: 450rpx;
  5118. white-space: nowrap;
  5119. text-overflow: ellipsis;
  5120. overflow: hidden;
  5121. word-break: break-all;
  5122. }
  5123. }
  5124. }
  5125. .close_spec {
  5126. width: 46rpx;
  5127. height: 46rpx;
  5128. }
  5129. }
  5130. .spec_content {
  5131. height: 620rpx;
  5132. .spec_list {
  5133. margin: 0 30rpx;
  5134. padding-top: 34rpx;
  5135. .spec_list_pre {
  5136. border-bottom: 1rpx solid #F5F5F5;
  5137. .spec_list_pre_name {
  5138. font-size: 28rpx;
  5139. font-family: PingFang SC;
  5140. font-weight: 500;
  5141. color: #666666;
  5142. margin-bottom: 30rpx;
  5143. }
  5144. .spec_list_pre_desc {
  5145. display: inline-table;
  5146. padding: 13rpx 25rpx;
  5147. box-sizing: border-box;
  5148. box-sizing: border-box;
  5149. background: #F5F5F5;
  5150. border-radius: 50rpx;
  5151. margin-bottom: 30rpx;
  5152. margin-right: 30rpx;
  5153. border: 1rpx solid #F5F5F5;
  5154. .spec_list_pre_con {
  5155. display: flex;
  5156. align-items: center;
  5157. text {
  5158. font-size: 26rpx;
  5159. font-family: PingFang SC;
  5160. font-weight: 500;
  5161. color: #343434;
  5162. text-align: center;
  5163. }
  5164. image {
  5165. width: 36rpx;
  5166. height: 36rpx;
  5167. margin-right: 20rpx;
  5168. }
  5169. }
  5170. }
  5171. .spec_list_pre_desc_active {
  5172. background: #FFFFFF;
  5173. border: 1rpx solid #FC1C1C;
  5174. .spec_list_pre_con {
  5175. text {
  5176. color: #FC1C1C;
  5177. }
  5178. }
  5179. }
  5180. .spec_list_pre_desc_disabled {
  5181. background: #F5F5F5;
  5182. opacity: 0.2;
  5183. .spec_list_pre_con {
  5184. text {
  5185. color: #2D2D2D;
  5186. }
  5187. }
  5188. }
  5189. }
  5190. }
  5191. .spec_num {
  5192. height: 50rpx;
  5193. display: flex;
  5194. justify-content: space-between;
  5195. align-items: center;
  5196. padding: 0 20rpx 0 30rpx;
  5197. box-sizing: border-box;
  5198. margin-top: 16rpx;
  5199. .spec_num_left {
  5200. font-size: 28rpx;
  5201. font-family: PingFang SC;
  5202. font-weight: 500;
  5203. color: #666666;
  5204. text {
  5205. color: #949494;
  5206. }
  5207. }
  5208. .spec_num_right {
  5209. width: 182rpx;
  5210. height: 50rpx;
  5211. border: 1rpx solid #EDEDED;
  5212. border-radius: 6rpx;
  5213. display: flex;
  5214. justify-content: center;
  5215. align-items: center;
  5216. font-size: 24rpx;
  5217. font-family: PingFang SC;
  5218. font-weight: bold;
  5219. color: #A6A6A6;
  5220. line-height: 30rpx;
  5221. text {
  5222. width: 51rpx;
  5223. height: 50rpx;
  5224. text-align: center;
  5225. line-height: 50rpx;
  5226. border-left: 1rpx solid #EDEDED;
  5227. &.no_edit {
  5228. background: #F8F8F8;
  5229. opacity: 0.5;
  5230. color: #949494;
  5231. }
  5232. }
  5233. text:nth-child(1) {
  5234. color: #949494;
  5235. border-right: 1rpx solid #EDEDED;
  5236. border-left: none;
  5237. }
  5238. input {
  5239. width: 78rpx;
  5240. height: 50rpx;
  5241. line-height: 50rpx;
  5242. text-align: center;
  5243. font-size: 24rpx;
  5244. }
  5245. }
  5246. }
  5247. }
  5248. }
  5249. .spec_btn {
  5250. width: 750rpx;
  5251. height: 98rpx;
  5252. background: #FFFFFF;
  5253. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(86, 86, 86, 0.08);
  5254. display: flex;
  5255. align-items: center;
  5256. justify-content: center;
  5257. position: fixed;
  5258. bottom: 0;
  5259. /* #ifdef MP-WEIXIN */
  5260. height: calc(98rpx + env(safe-area-inset-top));
  5261. padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  5262. padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
  5263. /* #endif */
  5264. .spec_add_cart_btn {
  5265. width: 345rpx;
  5266. height: 70rpx;
  5267. background: #FF821C;
  5268. border-radius: 35rpx 0 0 35rpx;
  5269. font-size: 30rpx;
  5270. font-family: PingFang SC;
  5271. font-weight: 500;
  5272. color: #FFFFFF;
  5273. text-align: center;
  5274. line-height: 70rpx;
  5275. }
  5276. .spec_buy_btn {
  5277. width: 345rpx;
  5278. height: 70rpx;
  5279. background: #F30300;
  5280. border-radius: 0 35rpx 35rpx 0;
  5281. font-size: 30rpx;
  5282. font-family: PingFang SC;
  5283. font-weight: 500;
  5284. color: #FFFFFF;
  5285. text-align: center;
  5286. line-height: 70rpx;
  5287. }
  5288. .spec_not_stock {
  5289. background: #ADADAD;
  5290. border-radius: 35rpx;
  5291. font-size: 30rpx;
  5292. font-family: PingFang SC;
  5293. font-weight: 500;
  5294. color: #FFFFFF;
  5295. text-align: center;
  5296. line-height: 70rpx;
  5297. }
  5298. .spec_seckill_btn {
  5299. background: linear-gradient(45deg, #fc2d2d 0%, #fd572b 100%);
  5300. border-radius: 35rpx;
  5301. font-size: 30rpx;
  5302. font-family: PingFang SC;
  5303. font-weight: 500;
  5304. color: #FFFFFF;
  5305. text-align: center;
  5306. line-height: 70rpx;
  5307. }
  5308. .spec_btn_only {
  5309. width: 690rpx;
  5310. height: 70rpx;
  5311. border-radius: 35rpx;
  5312. text-align: center;
  5313. line-height: 70rpx;
  5314. }
  5315. .specifications_btn2 {
  5316. width: 690rpx;
  5317. height: 70rpx;
  5318. background: linear-gradient(45deg, #FF5C00 0%, #FCE000 0%, #FE8300 0%, #FB9721 100%);
  5319. border-radius: 35rpx;
  5320. display: flex;
  5321. align-items: center;
  5322. justify-content: center;
  5323. font-size: 28rpx;
  5324. font-family: PingFang SC;
  5325. font-weight: 500;
  5326. color: #FFFFFF;
  5327. line-height: 32rpx;
  5328. }
  5329. .specifications_bottom_btn3 {
  5330. width: 690rpx;
  5331. height: 70rpx;
  5332. background: linear-gradient(45deg, #FF5D00 0%, #FCE000 0%, #FE8400 0%, #FB9721 100%);
  5333. border-radius: 35rpx;
  5334. font-size: 28rpx;
  5335. font-family: PingFang SC;
  5336. font-weight: 500;
  5337. color: #FFFFFF;
  5338. line-height: 30rpx;
  5339. display: flex;
  5340. align-items: center;
  5341. justify-content: center;
  5342. }
  5343. .specifications_bottom_btn4 {
  5344. width: 690rpx;
  5345. height: 70rpx;
  5346. background: linear-gradient(45deg, #FB2D2D 0%, #FC572A 100%);
  5347. border-radius: 35rpx;
  5348. font-size: 28rpx;
  5349. font-family: PingFang SC;
  5350. font-weight: 500;
  5351. color: #FFFFFF;
  5352. line-height: 30rpx;
  5353. display: flex;
  5354. align-items: center;
  5355. justify-content: center;
  5356. }
  5357. /* .specification_btn1 {
  5358. display: flex;
  5359. align-items: center;
  5360. font-size: 28rpx;
  5361. font-family: PingFang SC;
  5362. font-weight: 500;
  5363. color: #FFFFFF;
  5364. line-height: 32rpx;
  5365. } */
  5366. .specification_add {
  5367. width: 347rpx;
  5368. height: 70rpx;
  5369. background: linear-gradient(45deg, #FF7918 0%, #FEA00D 100%);
  5370. border-radius: 34rpx 0 0 34rpx;
  5371. display: flex;
  5372. align-items: center;
  5373. justify-content: center;
  5374. color: #fff;
  5375. font-size: 28rpx;
  5376. }
  5377. .specification_add text:nth-of-type(1),
  5378. .specification_buy text:nth-of-type(1) {
  5379. margin-right: 20rpx;
  5380. }
  5381. .specification_buy {
  5382. width: 343rpx;
  5383. height: 70rpx;
  5384. background: linear-gradient(45deg, #FB2D2D 0%, #FC572A 100%);
  5385. border-radius: 0 34rpx 34rpx 0;
  5386. display: flex;
  5387. align-items: center;
  5388. justify-content: center;
  5389. color: #fff;
  5390. font-size: 28rpx;
  5391. }
  5392. }
  5393. }
  5394. }
  5395. /* //sdasdasd */
  5396. .right_down {
  5397. width: 36rpx;
  5398. height: 36rpx;
  5399. }
  5400. .play_btn {
  5401. width: 90rpx;
  5402. height: 90rpx;
  5403. position: absolute;
  5404. left: 50%; //起始是在body中,横向距左50%的位置
  5405. top: 50%; //起始是在body中,纵向距上50%的位置,这个点相当于body的中心点,div的左上角的定位
  5406. transform: translate(-50%, -50%); //水平、垂直都居中,也可以写成下面的方式
  5407. }
  5408. .uni-transition {
  5409. width: 750rpx;
  5410. margin: 0 auto;
  5411. }
  5412. .address_list {
  5413. width: 750rpx;
  5414. height: 680rpx;
  5415. /* position: fixed;
  5416. bottom: 0;
  5417. left: 0;
  5418. right: 0; */
  5419. margin: 0 auto;
  5420. z-index: 150;
  5421. /* overflow: scroll; */
  5422. background-color: #fff;
  5423. }
  5424. .address_list_con {
  5425. border-radius: 5px 5px 0;
  5426. }
  5427. .other_address {
  5428. width: 100%;
  5429. display: flex;
  5430. align-items: center;
  5431. justify-content: center;
  5432. height: 130rpx;
  5433. background: #fff;
  5434. .other_btn {
  5435. width: 668rpx;
  5436. height: 80rpx;
  5437. background: linear-gradient(-90deg, #FC1D1C 0%, #FF7A18 100%);
  5438. border-radius: 44rpx;
  5439. display: flex;
  5440. align-items: center;
  5441. justify-content: center;
  5442. font-size: 34rpx;
  5443. font-family: PingFang SC;
  5444. font-weight: 500;
  5445. color: #FEFEFE;
  5446. }
  5447. }
  5448. .address_top {
  5449. padding: 20rpx 30rpx;
  5450. border-radius: 5px 5px 0 0;
  5451. font-size: 32rpx;
  5452. font-family: PingFang SC;
  5453. font-weight: bold;
  5454. color: #333333;
  5455. display: flex;
  5456. justify-content: space-between;
  5457. align-items: center;
  5458. background: #fff;
  5459. border-bottom: 0.5px solid #f2f2f2;
  5460. image {
  5461. width: 50rpx;
  5462. height: 50rpx;
  5463. }
  5464. }
  5465. .list {
  5466. display: flex;
  5467. /* flex-direction: column; */
  5468. align-items: center;
  5469. justify-content: flex-start;
  5470. padding: 24rpx 30rpx;
  5471. background: #fff;
  5472. position: relative;
  5473. &.b-b {
  5474. /* &:after {
  5475. position: absolute;
  5476. z-index: 3;
  5477. left: 20rpx;
  5478. right: 0;
  5479. height: 0;
  5480. content: '';
  5481. -webkit-transform: scaleY(0.5);
  5482. transform: scaleY(0.5);
  5483. border-bottom: 1px solid rgba(0, 0, 0, .1);
  5484. } */
  5485. }
  5486. }
  5487. .wrapper {
  5488. flex: 1;
  5489. background: #fff;
  5490. .iconfont {
  5491. color: $main-color;
  5492. font-size: 32rpx;
  5493. margin-right: 30rpx;
  5494. }
  5495. image {
  5496. width: 36rpx;
  5497. height: 38rpx;
  5498. margin-right: 22rpx;
  5499. }
  5500. }
  5501. .wrapper_right{
  5502. .checkedIcon{
  5503. width: 32rpx;
  5504. height: 24rpx;
  5505. margin-left: 30rpx;
  5506. }
  5507. }
  5508. .address-box {
  5509. display: flex;
  5510. align-items: center;
  5511. .address {
  5512. font-size: 28rpx;
  5513. color: #333;
  5514. line-height: 38rpx;
  5515. margin-top: 5rpx;
  5516. word-break: break-all;
  5517. max-width: 570rpx;
  5518. }
  5519. .tag {
  5520. width: 63rpx;
  5521. height: 30rpx;
  5522. margin-left: 20rpx;
  5523. margin-right: 0rpx;
  5524. }
  5525. }
  5526. .address_on {
  5527. color: #FB4444 !important;
  5528. }
  5529. .u-box {
  5530. font-size: 30rpx;
  5531. color: $font-color-light;
  5532. color: $main-font-color;
  5533. font-weight: bold;
  5534. .name {
  5535. margin-right: 70rpx;
  5536. }
  5537. }
  5538. </style>