home_deco.vue 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758
  1. <template>
  2. <view :class="isCookie == true ? 'container prevent' : 'container' ">
  3. <!-- 专题页标题 -->
  4. <view class="topic_top_bar" v-if="is_show_top == false && is_from_found == false" @click="toBack">
  5. <image :src="imgUrl+'to_right.png'" mode="aspectFit" class="topic_back_icon"></image>
  6. <view class="topic_name">{{topic_name}}</view>
  7. </view>
  8. <!-- 小程序头部兼容 -->
  9. <view class="mp-search-box" v-if="is_show_top == true"
  10. :style="{background:tab_index == 0?pure_bg_color:top_bg}">
  11. <!-- <image :src="imgUrl+'index/scan.png'" mode="" class="scan_img" @click="scanCode"></image> -->
  12. <image :src="imgUrl+'search.png'" mode="aspectFit" class="search_img"></image>
  13. <input class="ser-input" type="text" value="输入关键字搜索" disabled @click="toSearchPage"
  14. placeholder-class="search_input" />
  15. <view class="msg_img">
  16. <image :src="imgUrl+'index_message.png'" mode="" @click="toMsg"></image>
  17. <view class="message_new" v-if="userCenterData&&userCenterData.msgNum&&userCenterData.msgNum>=1">
  18. {{userCenterData.msgNum > 9 ? '9+' : userCenterData.msgNum}}
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 头部分类 -->
  23. <tab-menu :backGround="tab_index == 0?pure_bg_color:top_bg" :tabInfo="sort_nav_list"
  24. @getChildList="getChildList" v-if="is_show_top == true && home_is_show_top_cat"></tab-menu>
  25. <!-- 头部轮播 -->
  26. <!-- 头部轮播 -->
  27. <!-- 首页装修 -->
  28. <view v-if="is_show_index == true && isShow == true"
  29. :class="isShowTab == true?(home_is_show_top_cat?'deco_wrap':(type=='home'?'deco_wrap_no_top_cat':null)):'deco_wrap2'"
  30. :style="{marginTop:is_show_top == false?'110rpx':'',marginTop:isIos?'-22rpx':0}">
  31. <view class="index_deco" v-for="(decoItem,decoIndex) in deco_info" :key="decoIndex">
  32. <view class="carousel-section" v-if="decoItem.type == 'top_cat_nav' && decoItem.data.length>0">
  33. <!-- 背景色区域 -->
  34. <view
  35. :class="decoItem.swiper_bg_style == 1?'titleNview-background top_swiper_style1':'titleNview-background top_swiper_style2'"
  36. :style="{background:titleNViewBackground,borderRadius:decoItem.swiper_bg_style == 1?'border_radius':'0'}">
  37. </view>
  38. <uni-swiper-dot :current="swiperCurrent" :info="decoItem.data" mode="dot" :dotsStyles="dotsStyles">
  39. <swiper class="carousel" circular @change="swiperChange" autoplay="true"
  40. :style="{margin:isIos?'10rpx':0}">
  41. <swiper-item v-for="(item, index) in decoItem.data" :key="index" class="carousel-item"
  42. @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.seckillId,item.info)">
  43. <image :src="item.img" />
  44. </swiper-item>
  45. </swiper>
  46. </uni-swiper-dot>
  47. </view>
  48. <!-- 公告 -->
  49. <view class="notice_box" v-if="decoItem.type == 'gonggao' && decoItem.is_show == true">
  50. <!-- 公告样式一 -->
  51. <view class="notice_wrap1" v-if="decoItem.type == 'gonggao' && decoItem.show_style == 'one'"
  52. @click="skipTo(decoItem.url_type,decoItem.url,decoItem.info.productId || decoItem.info.defaultProductId,decoItem.info.pid,decoItem.info.seckillId,decoItem.info)">
  53. <image :src="noticeImg1" mode="" class="notice_img1"></image>
  54. <marquee class="notice_content_wrap" broadcastType="text" direction="left"
  55. :broadcastData="[decoItem.text]" :broadcastStyle="broadcastStyle1"></marquee>
  56. <view class="notice_wrap1_line"></view>
  57. <view class="notice_more">>></view>
  58. </view>
  59. <!-- 公告样式二 -->
  60. <view class="notice_wrap2" v-if="decoItem.type == 'gonggao' && decoItem.show_style == 'two'"
  61. @click="skipTo(decoItem.url_type,decoItem.url,decoItem.info.productId || decoItem.info.defaultProductId,decoItem.info.pid,decoItem.info.seckillId,decoItem.info)">
  62. <image :src="noticeImg2" mode="" class="notice_img2"></image>
  63. <marquee class="notice_content_wrap2" broadcastType="text" direction="left"
  64. :broadcastData="[decoItem.text]" :broadcastStyle="broadcastStyle2"></marquee>
  65. <view class="notice_wrap2_line"></view>
  66. <view class="notice_more">>></view>
  67. </view>
  68. </view>
  69. <view class="nav_wrap" v-if="decoItem.type == 'nav' && decoItem.is_show == true">
  70. <!-- 导航样式一、二(图标在上/不显示图标) -->
  71. <view class="cate-section"
  72. v-if="decoItem.style_set == 'nav' && decoItem.icon_set == 'up' || decoItem.icon_set == 'no-icon' && decoItem.is_show == true">
  73. <view class="cate-item" v-for="(item,index) in decoItem.data" :key="index"
  74. @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.seckillId,item.info)">
  75. <image :src="item.img" v-if="decoItem.icon_set == 'up'"
  76. :style="'width:'+item.width+'rpx;height:'+item.height+'rpx'"></image>
  77. <text>{{filters.toSubstring(item.name,0,9)}}</text>
  78. </view>
  79. </view>
  80. <!-- 导航样式三 (图标文字左右显示)-->
  81. <view class="cate-section"
  82. v-if="decoItem.style_set == 'nav' && decoItem.icon_set == 'left' && decoItem.is_show == true"
  83. style="justify-content: flex-start;padding:20rpx 2rpx;">
  84. <view class="cate-item2" v-for="(item,index) in decoItem.data" :key="index"
  85. @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.seckillId,item.info)">
  86. <image :src="item.img" style="margin-right:10rpx;" mode="aspectFit"
  87. :style="'width:'+item.width+'rpx;height:'+item.height+'rpx'"></image>
  88. <view class="cate_name">{{filters.toSubstring(item.name,0,9)}}</view>
  89. </view>
  90. </view>
  91. <!-- 导航分组 -->
  92. <view class="nav_group" v-if="decoItem.style_set == 'tag-nav' && decoItem.is_show == true ">
  93. <view class="nav_group_item" v-for="(item,index) in decoItem.data" :key="index"
  94. @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.seckillId,item.info)">
  95. <image :src="item.img" mode="aspectFit"
  96. :style="'width:'+item.width+'rpx;height:'+item.height+'rpx'"></image>
  97. <view class="nav_group_name">{{item.name}}</view>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 客服 -->
  102. <view class="service_wrap" v-if="decoItem.type == 'kefu' && decoItem.is_show == true"
  103. @click="callUp(decoItem.tel)">
  104. <image :src="telImg" mode=""></image>
  105. <text>{{decoItem.text}}{{decoItem.tel}}</text>
  106. </view>
  107. <!-- 富文本 -->
  108. <view class="rich_text_wrap" v-if="decoItem.type == 'fuwenben' && decoItem.is_show == true">
  109. <rich-text :nodes="decoItem.text" class="rich_text"></rich-text>
  110. </view>
  111. <!-- 图片组合 -->
  112. <view class="combination_wrap" v-if="decoItem.type == 'tupianzuhe'">
  113. <!-- 图片组合0123 -->
  114. <view v-if="decoItem.type == 'tupianzuhe' && decoItem.sele_style<4" style="background-color: #fff;">
  115. <view class="modules-slide">
  116. <view :class="'image-list style' + decoItem.sele_style" v-if="decoItem.sele_style<3">
  117. <view
  118. :class="decoItem.sele_style == 2?'combination_style no_margin_right flex_row_start_start tupianzuhe2':'space_between combination_style'"
  119. :style="{'display':decoItem.sele_style < 2?'block':'flex'}">
  120. <view v-for="(childitem, childindex) in decoItem.data" :key="childindex"
  121. :class="decoItem.sele_style < 2?'combine1':'combine2'"
  122. :style="{'marginTop':decoItem.sele_style == 1?'20rpx':'0','marginRight':decoItem.sele_style < 3?'0':'20rpx','marginBottom':decoItem.sele_style < 3?'0':'20rpx'}">
  123. <view class="flex_column_start_center"
  124. v-if="decoItem.sele_style == 0||decoItem.sele_style == 1">
  125. <image v-if="decoItem.sele_style == 0 "
  126. @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.seckillId,childitem.info)"
  127. mode="aspectFit" :src="childitem.img"
  128. :style="{'display': 'block','width':'750rpx','height':(750*childitem.height/childitem.width)+'rpx'}">
  129. </image>
  130. <image v-if="decoItem.sele_style == 1"
  131. @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.seckillId,childitem.info)"
  132. mode="aspectFit" :src="childitem.img"
  133. :style="{'display': 'block','width':'710rpx','height':(710*childitem.height/childitem.width)+'rpx','margin-bottom':childindex == (decoItem.data.length-1)?'20rpx':0}">
  134. </image>
  135. </view>
  136. <view class="flex_row_center_center combine3" v-if="decoItem.sele_style == 2"
  137. :style="{'height':childindex%2==0?((345*childitem.height/childitem.width)+'rpx'):((345*decoItem.data[childindex-1].height/decoItem.data[childindex-1].width)+'rpx'),'margin-left':'20rpx'}">
  138. <image
  139. @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.seckillId,childitem.info)"
  140. mode="aspectFit" :src="childitem.img" style="width: 100%;height: 100%;">
  141. </image>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <view :class="'image-list style' + decoItem.sele_style" v-if="decoItem.sele_style == 3">
  147. <view class="combination_style no_margin_right2"
  148. style="display: flex;margin-bottom: 20rpx;flex-wrap:wrap">
  149. <view v-for="(childitem, childindex) in decoItem.data" :key="childindex"
  150. class="combine2">
  151. <view class="combine4"
  152. :style="{'height':childindex%3==0?((690/3*childitem.height/childitem.width)+'rpx'):(childindex%3==1?((690/3*decoItem.data[childindex-1].height/decoItem.data[childindex-1].width)+'rpx'):((690/3*decoItem.data[childindex-2].height/decoItem.data[childindex-2].width)+'rpx')),}">
  153. <image
  154. @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.seckillId,childitem.info)"
  155. mode="aspectFit" :src="childitem.img"></image>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <!--图片组合4 -->
  163. <view v-if="decoItem.type == 'tupianzuhe' && decoItem.sele_style == 4"
  164. style="background-color: #fff;">
  165. <view class="modules-slide">
  166. <view class="image-ad clearfix images-tpl">
  167. <view style="display: flex;">
  168. <view class="tupianzuhe04_left flex_row_center_center"
  169. @click="skipTo(decoItem.data[0].url_type,decoItem.data[0].url,decoItem.data[0].info.productId || decoItem.data[0].info.defaultProductId,decoItem.data[0].info.pid,decoItem.data[0].info.seckillId,decoItem.info)">
  170. <image mode="aspectFit" :src="decoItem.data[0].img"></image>
  171. </view>
  172. <view style="display: flex;flex-direction: column;justify-content: space-between;">
  173. <view class="tupianzuhe04_right_item flex_row_center_center"
  174. @click="skipTo(decoItem.data[1].url_type,decoItem.data[1].url,decoItem.data[1].info.productId || decoItem.data[1].info.defaultProductId,decoItem.data[1].info.pid,decoItem.data[1].info.seckillId,decoItem.info)">
  175. <image mode="aspectFit" :src="decoItem.data[1].img"></image>
  176. </view>
  177. <view class="tupianzuhe04_right_item flex_row_center_center"
  178. @click="skipTo(decoItem.data[2].url_type,decoItem.data[2].url,decoItem.data[2].info.productId || decoItem.data[2].info.defaultProductId,decoItem.data[2].info.pid,decoItem.data[2].info.seckillId,decoItem.info)">
  179. <image mode="aspectFit" :src="decoItem.data[2].img"></image>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <!-- 图片组合5 6 display: flex;flex-wrap:wrap;-->
  187. <view v-if="decoItem.type == 'tupianzuhe'&& decoItem.sele_style == 5 || decoItem.sele_style == 6"
  188. style="background-color: #fff;">
  189. <view class="modules-slide">
  190. <view class="image-ad clearfix images-tpl" style="padding-top: 0;">
  191. <view class="combine5_wrap" style="display:flex;flex-wrap:wrap;width:100%;"
  192. v-if="decoItem.sele_style == 5">
  193. <view v-for="(childitem, childindex) in decoItem.data" :key="childindex"
  194. class="combine5 flex_row_center_center"
  195. @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.seckillId,decoItem.info)"
  196. :style="{width: childindex == 0 || childindex == 3 ? 230 +'rpx' : 460 + 'rpx',
  197. height: '230rpx',marginTop:'20rpx',marginLeft:'20rpx',backGround:'red'}">
  198. <image mode="aspectFit" :src="childitem.img" style="width: 100%;height: 100%;">
  199. </image>
  200. </view>
  201. </view>
  202. <view class="" v-if="decoItem.sele_style == 6" style="display:flex;">
  203. <view class="combine6" style="margin-left: 20rpx;">
  204. <view class="flex_row_center_center"
  205. :style="{width:'345rpx',height:345/2+'rpx','flex-shrink':0,'margin-bottom':'20rpx'}"
  206. @click="skipTo(decoItem.data[0].url_type,decoItem.data[0].url,decoItem.data[0].info.productId || decoItem.data[0].info.defaultProductId,decoItem.data[0].info.pid,decoItem.data[0].info.seckillId,decoItem.info)">
  207. <image :src="decoItem.data[0].img" mode="aspectFit"
  208. style="width: 100%;height: 100%;"></image>
  209. </view>
  210. <view class="flex_row_center_center"
  211. :style="{width: '345rpx',height:'345rpx','flex-shrink':0}"
  212. @click="skipTo(decoItem.data[1].url_type,decoItem.data[1].url,decoItem.data[1].info.productId || decoItem.data[1].info.defaultProductId,decoItem.data[1].info.pid,decoItem.data[1].info.seckillId,decoItem.info)">
  213. <image :src="decoItem.data[1].img" mode="aspectFit"
  214. style="width: 100%;height: 100%;"></image>
  215. </view>
  216. </view>
  217. <view class="combine6">
  218. <view class="flex_row_center_center"
  219. :style="{width: '345rpx',height:'345rpx','flex-shrink':0,'margin-bottom':'20rpx'}"
  220. @click="skipTo(decoItem.data[2].url_type,decoItem.data[2].url,decoItem.data[2].info.productId || decoItem.data[2].info.defaultProductId,decoItem.data[2].info.pid,decoItem.data[2].info.seckillId,decoItem.info)">
  221. <image :src="decoItem.data[2].img" mode="aspectFit"
  222. style="width: 100%;height: 100%;"></image>
  223. </view>
  224. <view class="flex_row_center_center"
  225. :style="{width: '345rpx',height:345/2+'rpx','flex-shrink':0}"
  226. @click="skipTo(decoItem.data[3].url_type,decoItem.data[3].url,decoItem.data[3].info.productId || decoItem.data[3].info.defaultProductId,decoItem.data[3].info.pid,decoItem.data[3].info.seckillId,decoItem.info)">
  227. <image :src="decoItem.data[3].img" mode="aspectFit"
  228. style="width: 100%;height: 100%;"></image>
  229. </view>
  230. </view>
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. <!-- 图片组合7-->
  236. <view v-if="decoItem.sele_style == 7" data-index="index" style="background-color: #fff;">
  237. <view class="modules-slide">
  238. <view class="image-ad images-tpl"
  239. style="display: flex;justify-content: flex-start;align-items: center;padding-top: 0;">
  240. <view :style="{'display': 'flex','flex-wrap':'wrap','width':(670/3*2+61)+'rpx',}">
  241. <view class="flex_row_center_center"
  242. v-for="(childitem, childindex) in decoItem.data" v-if="childindex<4"
  243. :key="childindex"
  244. @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.seckillId,decoItem.info)"
  245. :style="{'margin-left':'20rpx',width:670/3+'rpx',height:670/3+'rpx',marginTop:'20rpx','flex-shrink':0}">
  246. <image mode="aspectFit" :src="childitem.img" style="width: 100%;height: 100%;">
  247. </image>
  248. </view>
  249. </view>
  250. <view class="flex_row_center_center" v-if="decoItem.data[4]"
  251. @click="skipTo(decoItem.data[4].url_type,decoItem.data[4].url,decoItem.data[4].info.productId || decoItem.data[4].info.defaultProductId,decoItem.data[4].info.pid,decoItem.data[4].info.seckillId,decoItem.info)"
  252. :style="{'margin-top':'20rpx',width:670/3+'rpx',height: (670/3*2+20) +'rpx'}">
  253. <image mode="aspectFit" :src="decoItem.data[4].img"
  254. style="width: 100%;height: 100%;"></image>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. </view>
  260. <!-- 搭配 -->
  261. <view class="match_wrap" v-if="decoItem.type == 'dapei' && decoItem.is_show == true">
  262. <view class="match_top">
  263. <view class="match_top_title" v-if="decoItem.dapei_title">{{decoItem.dapei_title}}</view>
  264. <view class="match_image_wrap flex_row_center_center">
  265. <image :src="decoItem.dapei_img" mode="" class="match_image"
  266. :style="{width:'710rpx',height:710*decoItem.height/decoItem.width+'rpx'}"></image>
  267. </view>
  268. <view class="match_top_text" v-if="decoItem.dapei_desc">{{decoItem.dapei_desc}}</view>
  269. </view>
  270. <view class="match_main_wrap">
  271. <view class="match_main" v-if="decoItem && decoItem.data && decoItem.data.info">
  272. <view class="match_item" v-for="(item,index) in decoItem.data.info" :key="index"
  273. @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
  274. <view class="match_goods_img">
  275. <image :src="item.mainImage" mode="aspectFit"></image>
  276. </view>
  277. <view class="match_goods_name">{{item.goodsName}}</view>
  278. <view class="match_goods_price">
  279. <text class="small_price">¥</text>
  280. <text
  281. class="big_price">{{filters.toSplit(filters.toFix(item.goodsPrice))[0]}}</text>.
  282. <text
  283. class="small_price">{{filters.toSplit(filters.toFix(item.goodsPrice))[1]}}</text>
  284. </view>
  285. </view>
  286. </view>
  287. </view>
  288. </view>
  289. <!-- 辅助线 -->
  290. <view class="subline_wrap" v-if="decoItem.type == 'fzx' && decoItem.is_show == true"
  291. :style="{paddingLeft:decoItem.lrmargin*2+'rpx',paddingRight:decoItem.lrmargin*2+'rpx',marginTop:decoItem.tbmargin*2+'rpx',marginBottom:decoItem.tbmargin*2+'rpx'}">
  292. <view class="subline"
  293. :style="{height:decoItem.tbmargin+'px',borderBottomColor:decoItem.color,borderBottomStyle:decoItem.val}">
  294. </view>
  295. <view :style="{height:decoItem.tbmargin+'px'}"></view>
  296. </view>
  297. <!-- 轮播图 -->
  298. <view class="carousel_bottom_wrap" v-if="decoItem.type == 'lunbo' && decoItem.is_show == true"
  299. style="padding:0;">
  300. <swiper class="carousel carousel_bottom" circular autoplay="true"
  301. :style="{width:decoItem.width+'rpx',height:decoItem.height+'rpx'}">
  302. <swiper-item v-for="(item, index) in decoItem.data" :key="index" class="carousel-item"
  303. style="padding:0;"
  304. @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.seckillId,item.info)">
  305. <image :src="item.img" class="carousel_img" mode="aspectFit" />
  306. </swiper-item>
  307. </swiper>
  308. </view>
  309. <!-- 推荐商品样式一 -->
  310. <view class="recommend_goods_wrap"
  311. v-if="decoItem.type == 'tuijianshangpin' && decoItem.show_style == 'small'" style="padding:0">
  312. <view
  313. :style="{backgroundColor:decoItem.border_style == 'border_none_grey_bg'?'f8f8f8':'#fff',paddingLeft:decoItem.page_margin*2+'rpx',paddingRight:decoItem.page_margin*2+'rpx',paddingTop:'20rpx'}"
  314. class="rec_goods_wrap">
  315. <goods-item-v :goods_info="item" :show_sale="decoItem.isshow_sales == 1?true:false"
  316. :icon_type="decoItem.cart_icon_type" :height="225" :border_radius="decoItem.border_radius"
  317. :border_style="decoItem.border_style" :goods_margin="decoItem.goods_margin"
  318. :page_margin="decoItem.page_margin" v-for="(item,index) in decoItem.data.info" :key="index"
  319. @click="skipTo(decoItem.type,item.gid,item.info)"></goods-item-v>
  320. </view>
  321. </view>
  322. <!-- 推荐商品样式二 -->
  323. <view class="recommend_goods_wrap"
  324. v-if="decoItem.type == 'tuijianshangpin' && decoItem.show_style == 'list' && decoItem.is_show == true"
  325. :style="{paddingLeft:decoItem.page_margin+'px',paddingRight:decoItem.page_margin+'px',marginTop:0,backgroundColor:decoItem.border_style == 'border_none_grey_bg'?'f8f8f8':'#fff'}">
  326. <view class="rec_goods_wrap">
  327. <view class="recommend_goods1" v-for="(item,index) in decoItem.data.info" :key="index"
  328. :style="{borderRadius:decoItem.border_radius+'px',border:decoItem.border_style == 'border_eee'?'1rpx solid #eee':'',boxShadow:decoItem.border_style == 'card-shadow'?'rgba(93, 113, 127, 0.08) 0px 2px 8px':'',marginBottom:decoItem.goods_margin+'px'}">
  329. <view class="recommend_goods_img1"
  330. @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
  331. <image :src="item.mainImage" mode="aspectFill" :style="{borderRadius:border_radius2}">
  332. </image>
  333. </view>
  334. <view class="recommend_goods_right">
  335. <view class="recommend_goods_name"
  336. @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
  337. {{item.goodsName}}
  338. </view>
  339. <view :class="decoItem.isshow_sales == 1?'':'hide_sold_wrap'">
  340. <view class="recommend_goods_price"
  341. :style="{position:decoItem.isshow_sales == 1?'absolute':'static'}">
  342. <text class="small_price">¥</text>
  343. <text class="big_price">{{$getPartNumber(item.goodsPrice,'int')}}</text>
  344. <text class="small_price">{{$getPartNumber(item.goodsPrice,'decimal')}}</text>
  345. </view>
  346. <view class="recommend_goods_bottom"
  347. :style="{position:decoItem.isshow_sales == 1?'absolute':'static',width:decoItem.isshow_sales == 1?'100%':'auto'}">
  348. <view class="have_sold" v-if="decoItem.isshow_sales == 1">
  349. 已售{{item.actualSales}}件</view>
  350. <block>
  351. <image :src="imgUrl+'add-cart.png'" mode=""
  352. v-if="decoItem.cart_icon_type == 1"
  353. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  354. </image>
  355. <image :src="icon2" mode="" v-if="decoItem.cart_icon_type == 2"
  356. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  357. </image>
  358. <image :src="icon3" mode="" v-if="decoItem.cart_icon_type == 3"
  359. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  360. </image>
  361. <image :src="icon4" mode="" v-if="decoItem.cart_icon_type == 4"
  362. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  363. </image>
  364. </block>
  365. </view>
  366. </view>
  367. </view>
  368. </view>
  369. </view>
  370. </view>
  371. <!-- 推荐商品样式三 -->
  372. <view class="recommend_goods_wrap"
  373. v-if="decoItem.type == 'tuijianshangpin' && decoItem.show_style == 'big' && decoItem.is_show == true"
  374. :style="{paddingLeft:decoItem.page_margin+'px',paddingRight:decoItem.page_margin+'px',marginTop:0,backgroundColor:decoItem.border_style == 'border_none_grey_bg'?'f8f8f8':'#fff'}">
  375. <view class="recommend_goods2" v-for="(item,index) in decoItem.data.info" :key="index"
  376. :style="{borderRadius:decoItem.border_radius+'px',border:decoItem.border_style == 'border_eee'?'1rpx solid #eee':'',boxShadow:decoItem.border_style == 'card-shadow'?'rgba(93, 113, 127, 0.08) 0px 2px 8px':'',marginBottom:decoItem.goods_margin+'px'}">
  377. <view class="recommend_goods_img2"
  378. @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
  379. <image :src="item.mainImage" mode="aspectFill" :style="{borderRadius:border_radius1}">
  380. </image>
  381. </view>
  382. <view class="recommend_goods_bottom2" :style="{borderRadius:border_radius3}">
  383. <view class="recommend_goods_name2"
  384. @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
  385. {{item.goodsName}}
  386. </view>
  387. <view class="goods_bottom"
  388. :style="{flexDirection:decoItem.isshow_sales == 1?'':'row',justifyContent:decoItem.isshow_sales == 1?'':'space-between'}">
  389. <view class="recommend_goods_price" style="color:#FC1C1C;">
  390. <text class="small_price">¥</text>
  391. <text class="big_price">{{$getPartNumber(item.goodsPrice,'int')}}</text>
  392. <text class="small_price">{{$getPartNumber(item.goodsPrice,'decimal')}}</text>
  393. </view>
  394. <view class="recommond_goods3_wrap">
  395. <view class="have_sold" v-if="decoItem.isshow_sales == 1">已售{{item.actualSales}}件
  396. </view>
  397. <image :src="imgUrl+'add-cart.png'" mode="" v-if="decoItem.cart_icon_type == 1"
  398. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  399. </image>
  400. <image :src="icon2" mode="" v-if="decoItem.cart_icon_type == 2"
  401. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  402. </image>
  403. <image :src="icon3" mode="" v-if="decoItem.cart_icon_type == 3"
  404. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  405. </image>
  406. <image :src="icon4" mode="" v-if="decoItem.cart_icon_type == 4"
  407. @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)">
  408. </image>
  409. </view>
  410. </view>
  411. </view>
  412. </view>
  413. </view>
  414. <!-- 辅助空白 -->
  415. <view class="blank_wrap" v-if="decoItem.type == 'fzkb' && decoItem.id && decoItem.is_show == true"
  416. :style="{backgroundColor:decoItem.color,height:decoItem.text+'px'}"></view>
  417. <!-- tab切换 -->
  418. <sort-list :nav_list="decoItem.data" :isShowSale="false" :borderRadius="decoItem.border_radius"
  419. v-if="decoItem.type == 'more_tab' && decoItem.is_show == true" :card_height="225"></sort-list>
  420. <!-- 直播 start -->
  421. <!-- 方案一 -->
  422. <view class="svideo" v-if="decoItem.type == 'live' && decoItem.is_show == true">
  423. <view class="svideo_title">
  424. <view class="svideo_title_l">{{decoItem.title}}</view>
  425. <view class="svideo_title_r" @click="skipTo('live_center','','')">更多直播 ></view>
  426. </view>
  427. <view class="svideo_main" v-if="decoItem.show_style == 'one' && decoItem.is_show == true">
  428. <view class="svideo_main_block svideo_main_block_l" v-for="(item,index) in decoItem.data.info"
  429. :key="index" :style="{borderRadius:decoItem.border_radius+'px'}"
  430. @click="skipTo(decoItem.type,item.liveId,item.info)">
  431. <image class="live_list_b_img_hua live_list_b_img_hua1"
  432. :src="imgUrl+'svideo/zhibo-dianzan.gif'"></image>
  433. <view class="svideo_main_block_lw">
  434. <view class="svideo_main_block_lt">
  435. <image class="svideo_block_t_img svideo_block_t_img2zb"
  436. :src="imgUrl+'svideo/zx_zhibo_gif.gif'"></image>
  437. <text class="svideo_block_t_text svideo_block_t_text2">{{item.viewingNum}}人观看</text>
  438. </view>
  439. </view>
  440. <!-- #ifdef MP-WEIXIN -->
  441. <image class="video_bg1" :src="item.liveCover"></image>
  442. <!-- #endif -->
  443. <!-- #ifndef MP-WEIXIN -->
  444. <view class="video_bg1" :style="'background-image:url('+item.liveCover+')'"></view>
  445. <!-- #endif -->
  446. <view class="svideo_main_block_zb">{{item.liveName}}</view>
  447. </view>
  448. </view>
  449. <!-- 方案2 -->
  450. <view class="svideo_main2" v-if="decoItem.show_style == 'two' && decoItem.is_show == true">
  451. <scroll-view class="svideo2_wrap scroll-view" scroll-x="true" show-scrollbar="false">
  452. <block v-for="(item, index) in decoItem.data.info" :key="index">
  453. <view class="svideo_main_block2 svideo_main_block_l2"
  454. @click="skipTo(decoItem.type,item.liveId,item.info)"
  455. :style="{borderRadius:decoItem.border_radius+'px'}">
  456. <image class="video_bg1" :src="item.liveCover"></image>
  457. <image class="live_list_b_img_hua" :src="imgUrl+'svideo/zhibo-dianzan.gif'"></image>
  458. <view class="svideo_main_block_lw">
  459. <view class="svideo_main_block_lt">
  460. <image class="svideo_block_t_img svideo_block_t_img2zb"
  461. :src="imgUrl+'svideo/zx_zhibo_gif.gif'"></image>
  462. <text
  463. class="svideo_block_t_text svideo_block_t_text2">{{item.viewingNum}}人观看</text>
  464. </view>
  465. </view>
  466. <view class="svideo_main_block_b2 svideo_main_block_b2_zb">
  467. <text>{{item.liveName}}</text>
  468. </view>
  469. </view>
  470. </block>
  471. </scroll-view>
  472. </view>
  473. </view>
  474. <!-- 直播 end -->
  475. <!-- 短视频 start -->
  476. <view class="svideo" v-if="decoItem.type == 'svideo' && decoItem.is_show == true">
  477. <view class="svideo_title">
  478. <view class="svideo_title_l">{{decoItem.title}}</view>
  479. <view class="svideo_title_r" @click="skipTo('svideo_center')">更多视频 ></view>
  480. </view>
  481. <!-- 方案一 -->
  482. <view class="svideo_main" v-if="decoItem.show_style == 'one' && decoItem.is_show == true">
  483. <view class="svideo_main_block svideo_main_block_l" v-for="(item,index) in decoItem.data.info"
  484. :key="index" @click="skipTo(decoItem.type,item)"
  485. :style="{borderRadius:decoItem.border_radius+'px'}">
  486. <view class="svideo_main_block_w">
  487. <view class="svideo_main_block_t">
  488. <image class="svideo_block_t_img svideo_block_t_img2s svideo_block_t_img0"
  489. :src="imgUrl+'svideo/zx_play.png'"></image>
  490. <text class="svideo_block_t_text">{{item.clickNum}}人观看</text>
  491. </view>
  492. </view>
  493. <image class="video_bg1" :src="item.videoImage"></image>
  494. <view class="svideo_main_block_b">{{item.videoName}}</view>
  495. </view>
  496. </view>
  497. <!-- 方案2 -->
  498. <view class="svideo_main2" v-if="decoItem.show_style == 'two' && decoItem.is_show == true">
  499. <scroll-view class="scroll-view svideo2_wrap" scroll-x="true" show-scrollbar="false">
  500. <block v-for="(item, index) in decoItem.data.info" :key="index">
  501. <view class="svideo_main_block2 svideo_main_block_l2"
  502. @click="skipTo(decoItem.type,item)"
  503. :style="{borderRadius:decoItem.border_radius+'px'}">
  504. <image class="video_bg1" :src="item.videoImage"></image>
  505. <view class="svideo_main_block_w">
  506. <view class="svideo_main_block_t">
  507. <image class="svideo_block_t_img svideo_block_t_img2 svideo_block_t_img0"
  508. :src="imgUrl+'svideo/zx_play.png'"></image>
  509. <text class="svideo_block_t_text">{{item.clickNum}}人观看</text>
  510. </view>
  511. </view>
  512. <view class="svideo_main_block_b2">{{item.videoName}}</view>
  513. </view>
  514. </block>
  515. </scroll-view>
  516. </view>
  517. <!-- 方案3 -->
  518. <view class="svideo_main5" v-if="decoItem.show_style == 'three' && decoItem.is_show == true">
  519. <block v-for="(item, index) in decoItem.data.info" :key="index">
  520. <view class="svideo_main_block5 svideo_main_block50" @click="skipTo(decoItem.type,item)"
  521. :style="{borderRadius:decoItem.border_radius+'px'}">
  522. <image class="video_bg3" :src="item.videoImage"></image>
  523. <view class="svideo_bg_img"></view>
  524. <view class="svideo_block_bgimg0">
  525. <view class="svideo_block_t5_w">
  526. <view class="svideo_block_t5">{{item.clickNum}}人观看</view>
  527. </view>
  528. <view class="svideo_block_bgimg1_wrap">
  529. <view class="svideo_block_bgimg1">
  530. <image class="video_bg" :src="item.videoImage"></image>
  531. <image class="svideo_block_bgimg3 svideo_block_t_img0 svideo_block_t_img0"
  532. :src="imgUrl+'svideo/zx_play.png'"></image>
  533. </view>
  534. </view>
  535. </view>
  536. <view class="svideo5_b">
  537. <view class="svideo5_b_title">{{item.videoName}}</view>
  538. <view class="svideo5_b_text">{{item.introduction}}</view>
  539. </view>
  540. </view>
  541. </block>
  542. </view>
  543. <!-- 方案4 -->
  544. <view class="svideo_main3" v-if="decoItem.show_style == 'four' && decoItem.is_show == true"
  545. style="padding-bottom:30rpx;">
  546. <swiper class="swiper-block" :current="1" :circular="true" :autoplay="true"
  547. @change="swiperChange2" previous-margin="120rpx" next-margin="120rpx">
  548. <block v-for="(item, index) in decoItem.data.info" :key="index" :index="index">
  549. <swiper-item :style="{left:((71+index*63)+'rpx')}"
  550. :class="swiperIndex1 == index ? 'swiper-item1' : 'swiper-item'">
  551. <view class="optionBox" style="text-align:center"
  552. @click="skipTo(decoItem.type,item)">
  553. <image mode="aspectFill" :src="item.videoImage"
  554. :class="swiperIndex1 == index ? 'active1' : 'active2'"
  555. :style="{height:'345rpx',borderRadius:decoItem.border_radius+'px'}"></image>
  556. <view class="svideo_main_block_sw">
  557. <view class="">
  558. <image class="svideo_block_t_img svideo_person_num"
  559. :src="imgUrl+'svideo/play_video.png'"></image>
  560. </view>
  561. </view>
  562. <view class="svideo_main_block_b3_w">
  563. <view class="svideo_main_block_b3">{{item.clickNum}}人观看</view>
  564. </view>
  565. </view>
  566. </swiper-item>
  567. </block>
  568. </swiper>
  569. </view>
  570. <!-- 方案5 -->
  571. <view class="svideo_main4" v-if="decoItem.show_style == 'five' && decoItem.is_show == true">
  572. <scroll-view class="scroll-view svideo4_wrap" scroll-x="true" show-scrollbar="false">
  573. <block v-for="(item, index) in decoItem.data.info" :key="index">
  574. <view class="svideo_main_block4" @click="skipTo(decoItem.type,item)"
  575. :style="{borderRadius:decoItem.border_radius+'px'}">
  576. <image class="video_bg" :src="item.videoImage"
  577. :style="{borderRadius:decoItem.border_radius+'px'}"></image>
  578. <view class="svideo_main_block_w svideo_main_block_t svideo_main_block_t0">
  579. <image class="svideo_block_t_img svideo_block_t_img24 svideo_block_t_img0"
  580. :src="imgUrl+'svideo/zx_play.png'"></image>
  581. <text class="svideo_block_t_text4">{{item.clickNum}}人观看</text>
  582. </view>
  583. <view class="svideo_main_block_b4 svideo_main_block_b40"
  584. :style="{borderRadius:[0,0,decoItem.border_radius+'px',decoItem.border_radius+'px']}">
  585. <image class="video_bg"
  586. :style="{borderRadius:[0,0,decoItem.border_radius+'px',decoItem.border_radius+'px']}"
  587. :src="imgUrl+'svideo/zx_v_bg'+(index+1)+'.png'"></image>
  588. <view class="svideo_main_block_b4_text">{{item.videoName}}</view>
  589. </view>
  590. </view>
  591. </block>
  592. </scroll-view>
  593. </view>
  594. </view>
  595. <!-- 短视频 end -->
  596. </view>
  597. </view>
  598. <!-- 顶部分类切换 -->
  599. <view class="sort_sub_wrap" v-if="tab_index != 0 && sort_obj.children.length>0">
  600. <view class="sort_sub_top">
  601. <view class="sort_sub_item" v-for="(item,index) in sort_obj.children" :key="index"
  602. @click="goGoodsList(item.categoryId)">
  603. <view class="sort_sub_img">
  604. <image :src="item.categoryImage" mode=""></image>
  605. </view>
  606. <view class="sort_sub_name">{{filterFun(item.categoryName)}}</view>
  607. </view>
  608. <view class="see_more_wrap" @click="toAllSort(sort_obj.categoryId)" v-if="sort_obj.children.length>7">
  609. <view class="more_icon_circle">
  610. <image :src="imgUrl+'index/more.png'" mode="" class="more_icon"></image>
  611. </view>
  612. <view class="see_more_text">查看更多</view>
  613. </view>
  614. </view>
  615. <view class="sort_sub_goods">
  616. <goods-item-v :goods_info="item" :show_sale="false" :icon_type="1" :border_radius="8" :height="225"
  617. v-for="(item,index) in sort_obj.goodsList" :key="index"></goods-item-v>
  618. </view>
  619. </view>
  620. <!-- 空首页装修 -->
  621. <view class="empty_sort_page" v-if="deco_info == null" style="padding-top: 35vh;">
  622. <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
  623. <view class="empty_text">首页暂未装修</view>
  624. </view>
  625. <!-- 专题空页面 -->
  626. <view class="empty_sort_page" v-if="is_show_top == false && deco_info.length == 0 && noData==false"
  627. style="padding-top: 35vh;height:100vh;">
  628. <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
  629. <view class="empty_text">{{topicNotExit?'专题页不存在':'专题页暂未装修'}}</view>
  630. </view>
  631. <!-- 分类空页面 -->
  632. <view class="empty_sort_page" v-if="tab_index > 0 && is_show_empty == true">
  633. <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
  634. <view class="empty_text">该分类暂无相关商品</view>
  635. </view>
  636. <!-- 分类空商品 -->
  637. <view class="empty_sort_page" v-if="tab_index > 0 && is_show_empty_goods == true && is_show_empty == false"
  638. style="padding-top: 260rpx;">
  639. <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
  640. <view class="empty_text">该分类暂无相关商品</view>
  641. </view>
  642. <!-- 首页开屏框 start -->
  643. <view :class="isCookie == true ? 'open_screen show-dialog' : 'open_screen hide-dialog'"
  644. v-if="isCookie == true && home_page_img&&home_page_img.length > 0 && home_page_img[0].imgUrl" @touchmove.stop.prevent="()=>{}">
  645. <view class="open_screen_con" @click="gotoGoods_detail">
  646. <view class="con_img" @click.stop="close_openScreen">
  647. <image :src="openscnImg"></image>
  648. </view>
  649. <image class="open_screen_con_img image_mode_fill_h5" mode="scaleToFill" :src="home_page_img[0].imgUrl"
  650. :style="{ width: width + 'rpx', 'height': height + 'rpx' }"></image>
  651. </view>
  652. </view>
  653. <!-- 开屏框 end -->
  654. <!-- 店铺首页开屏框 start -->
  655. <view :class="storeIsCookie == true ? 'open_screen show-dialog' : 'open_screen hide-dialog'"
  656. v-if="store_page_img && storeIsCookie == true && store_page_img.length > 0 && store_page_img[0].imgUrl">
  657. <view :style="{ width: store_width + 'rpx', 'height': store_height + 'rpx' }" class="open_screen_con"
  658. @click="gotoGoods_detail">
  659. <view class="con_img" @click.stop="close_storeOpenScreen">
  660. <image :src="openscnImg"></image>
  661. </view>
  662. <image class="open_screen_con_img" :src="store_page_img[0].imgUrl"></image>
  663. </view>
  664. </view>
  665. <!-- 开屏框 end -->
  666. </view>
  667. </template>
  668. <script module="filters" lang="wxs" src="@/utils/filter.wxs"></script>
  669. <script>
  670. import {
  671. mapState,
  672. } from 'vuex';
  673. import tabMenu from '@/components/index-tab-menu.vue'
  674. import sortList from '@/components/index-sort-list.vue'
  675. import uniSwiperDot from '@/components/uni-swiper-dot/uni-swiper-dot.vue'
  676. import marquee from '@/components/marquee.vue'
  677. import {
  678. decoType
  679. } from '@/utils/common.js'
  680. import goodsItemV from '@/components/goods_item_v.vue';
  681. import loadingState from "@/components/loading-state.vue";
  682. export default {
  683. data() {
  684. return {
  685. imgUrl: getApp().globalData.imgUrl,
  686. titleNViewBackground: '',
  687. swiperCurrent: 0,
  688. swiperLength: 0,
  689. carouselList: [],
  690. goodsList: [],
  691. current: 0, //轮播图指示点
  692. dotsStyles: {
  693. selectedBackgroundColor: '#fff',
  694. width: 8,
  695. height: 8,
  696. selectedBorder: 'none',
  697. backgroundColor: 'rgba(255,255,255,0.4)',
  698. border: 'none',
  699. bottom: 8
  700. },
  701. noticeImg1: getApp().globalData.imgUrl + 'index/notice1.png',
  702. noticeImg2: getApp().globalData.imgUrl + 'index/notice2.png',
  703. // deco_info:[] ,//首页装修数据
  704. // home_page_img:[] , //首页开屏图列表
  705. dataObj: {}, //完整版首页装修数据
  706. border_radius: '', //顶部轮播背景圆角
  707. broadcastData1: [], //公告1滚动文字
  708. broadcastData2: [], //公告2滚动文字
  709. broadcastStyle1: { //滚动文字样式设置
  710. speed: 1, //每秒30px
  711. font_size: "24", //字体大小(rpx)
  712. text_color: "#666", //字体颜色
  713. back_color: "linear-gradient(to right,rgba(250,244,244,0.2) 0%, rgba(255,244,244,1) 50%, rgba(250,244,244,0.2) 100%);", //背景色
  714. },
  715. broadcastStyle2: { //滚动文字样式设置
  716. speed: 1, //每秒30px
  717. font_size: "24", //字体大小(rpx)
  718. text_color: "#fff", //字体颜色
  719. back_color: "#3A3A3A", //背景色
  720. },
  721. telImg: getApp().globalData.imgUrl + 'index/mobile.png',
  722. sort_nav_list: [], //顶部分类列表
  723. sort_obj: {}, //二级分类列表+分类商品列表
  724. tab_index: 0, //分类切换下标
  725. is_show_index: true,
  726. adArr: [], //公告数组
  727. icon2: getApp().globalData.imgUrl + 'index/add2.png',
  728. icon3: getApp().globalData.imgUrl + 'index/add.png',
  729. icon4: getApp().globalData.imgUrl + 'index/add3.png',
  730. icon5: getApp().globalData.imgUrl + 'index/stop.png',
  731. client: '', //客户端类型
  732. isCookie: false,
  733. storeIsCookie: false,
  734. openscnImg: getApp().globalData.imgUrl + 'index/close_screen.png',
  735. isShowTab: true, //是否显示顶部分类
  736. sortLen: '', //二级分类长度
  737. isShow: true,
  738. is_show_empty: false, //是否展示分类空页面
  739. pure_bg_color: '', //顶部栏有弧度纯色
  740. border_radius1: '', //推荐商品二角度设置
  741. border_radius2: '', //推荐商品三角度设置
  742. border_radius3: '',
  743. top_bg: 'linear-gradient(90deg, #6984a4 0%, #3a4b5c 100%)', //顶部状态栏颜色
  744. noData: false, //暂无数据
  745. is_show_empty_goods: false, //是否展示分类空商品页面
  746. // #ifdef APP-PLUS || H5
  747. isIos: getApp().globalData.systemInfo.platform == 'ios', //是否ios手机
  748. // #endif
  749. goods_info: {},
  750. swiperIndex1: 1,
  751. };
  752. },
  753. components: {
  754. tabMenu,
  755. sortList,
  756. uniSwiperDot,
  757. marquee,
  758. goodsItemV
  759. },
  760. props: ['is_show_top', 'deco_info', 'topic_name', 'is_from_found', 'home_is_show_top_cat', 'home_page_img',
  761. 'width',
  762. 'height', 'store_width', 'store_height', 'store_page_img', 'topicNotExit', 'store_id', 'type'
  763. ],
  764. computed: {
  765. ...mapState(['hasLogin', 'userInfo', 'userCenterData'])
  766. },
  767. async mounted() {
  768. this.getSortList();
  769. //首页装修开平图缓存
  770. let type = this.type != undefined && this.type ? this.type : ''
  771. let cookievalue = uni.getStorageSync('homeCookie' + type);
  772. if (!cookievalue) {
  773. this.isCookie = true;
  774. uni.setStorage({
  775. key: 'homeCookie' + type,
  776. data: new Date().getTime()
  777. });
  778. } else {
  779. if (new Date().getTime() * 1 - cookievalue * 1 > 24 * 60 * 60 * 1000) {
  780. this.isCookie = true;
  781. uni.setStorage({
  782. key: 'homeCookie' + type,
  783. data: new Date().getTime()
  784. });
  785. } else {
  786. this.isCookie = false;
  787. }
  788. }
  789. //店铺首页开平图缓存
  790. if (this.store_page_img != undefined) {
  791. if (this.store_page_img.length > 0) {
  792. let storeIsCookie = uni.getStorageSync('storeIsCookie' + this.store_id);
  793. if (!storeIsCookie) {
  794. this.storeIsCookie = true;
  795. uni.setStorage({
  796. key: 'storeIsCookie' + this.store_id,
  797. data: new Date().getTime()
  798. });
  799. } else {
  800. if (new Date().getTime() * 1 - cookievalue * 1 > 24 * 60 * 60 * 1000) {
  801. this.storeIsCookie = true;
  802. uni.setStorage({
  803. key: 'storeIsCookie' + this.store_id,
  804. data: new Date().getTime()
  805. });
  806. } else {
  807. this.storeIsCookie = false;
  808. }
  809. }
  810. } else {
  811. uni.removeStorage({
  812. key: 'storeIsCookie' + this.store_id,
  813. success: function(res) {}
  814. });
  815. }
  816. }
  817. // 推荐商品圆角设置
  818. },
  819. watch: {
  820. deco_info(val) {
  821. this.noData = val && val.length == 0 ? true : false
  822. val && val.map(item => {
  823. if (item.type == 'top_cat_nav' && item.data && item.data.length > 0) {
  824. this.titleNViewBackground = 'linear-gradient(' + item.data[0].bg_color + ' 0%,' + item
  825. .data[0].bg_color +
  826. '42%,#ffffff 100%)';
  827. this.pure_bg_color = item.data[0].bg_color;
  828. } else if (item.type == 'tuijianshangpin' && item.show_style == "big") {
  829. this.border_radius1 = item.border_radius + 'px' + ' ' + item.border_radius + 'px' + ' 0 0'
  830. this.border_radius3 = '0 0 ' + item.border_radius + 'px' + ' ' + item.border_radius + 'px'
  831. } else if (item.type == 'tuijianshangpin' && item.show_style == "list") {
  832. this.border_radius2 = item.border_radius + 'px' + ' 0 0 ' + item.border_radius + 'px'
  833. }
  834. if (item.type == 'top_cat_nav') {
  835. var newList = []
  836. for (var i = 0; i < item.data.length; i++) {
  837. if (item.data[i].img) {
  838. newList.push(item.data[i])
  839. }
  840. }
  841. item.data = newList
  842. }
  843. })
  844. },
  845. },
  846. methods: {
  847. filterFun: function(value) {
  848. if (value && value.length > 4) {
  849. value = value.substring(0, 4);
  850. }
  851. return value;
  852. },
  853. //跳转商品列表
  854. goGoodsList(categoryId) {
  855. uni.navigateTo({
  856. url: '/pages/product/list?categoryId=' + categoryId
  857. })
  858. },
  859. // 扫描二维码
  860. scanCode() {
  861. uni.scanCode({
  862. success: function(res) {
  863. let gid = getSceneParam(res.result, 'gid')
  864. if (gid) {
  865. uni.navigateTo({
  866. url: '/pages/goods_detail/goods_detail?gid=' + gid
  867. })
  868. }
  869. }
  870. });
  871. },
  872. // 返回上一页
  873. toBack() {
  874. uni.navigateBack()
  875. },
  876. //轮播图切换修改背景色
  877. swiperChange(e) {
  878. const index = e.detail.current;
  879. this.swiperCurrent = index;
  880. this.deco_info && this.deco_info.map(item => {
  881. if (item.type == 'top_cat_nav') {
  882. this.pure_bg_color = item.data[index].bg_color
  883. if (item.swiper_bg_style == 1) {
  884. this.titleNViewBackground = item.data[index].bg_color
  885. } else {
  886. this.titleNViewBackground = 'linear-gradient(' + item.data[index].bg_color + ' 0%,' +
  887. item.data[index].bg_color +
  888. '42%,#ffffff 100%)'
  889. }
  890. }
  891. })
  892. },
  893. // 短视频轮播
  894. swiperChange2(e) {
  895. this.swiperIndex1 = e.detail.current
  896. },
  897. //详情页
  898. navToDetailPage(item) {
  899. //测试数据没有写id,用title代替
  900. let id = item.title;
  901. uni.navigateTo({
  902. url: `/pages/product/product?id=${id}`
  903. })
  904. },
  905. // 获取分类列表
  906. getSortList() {
  907. let param = {}
  908. param.url = 'v3/goods/front/goods/category/list'
  909. param.method = 'GET'
  910. this.$request(param).then(res => {
  911. if (res.state == 200) {
  912. this.sort_nav_list = res.data.list
  913. this.sort_nav_list.unshift({
  914. categoryName: '首页'
  915. })
  916. }
  917. })
  918. },
  919. // 获取二级分类及分类商品列表
  920. getChildList(list, index) {
  921. if (this.tab_index != index) {
  922. // 切换tab回到顶部
  923. uni.pageScrollTo({
  924. scrollTop: 0,
  925. duration: 0
  926. })
  927. this.sort_list = [];
  928. }
  929. this.tab_index = index
  930. if (index > 0) {
  931. this.sort_obj = list
  932. if (this.sort_obj.children.length > 0) {
  933. this.sortLen = this.sort_obj.children.length
  934. this.is_show_empty = false
  935. } else {
  936. this.is_show_empty = true
  937. }
  938. if (this.sortLen > 9) {
  939. this.sort_obj.children = this.sort_obj.children.slice(0, 9)
  940. }
  941. if (this.sort_obj.goodsList.length > 0) {
  942. this.is_show_empty_goods = false
  943. } else {
  944. this.is_show_empty_goods = true
  945. }
  946. this.is_show_index = false
  947. } else {
  948. this.is_show_index = true
  949. }
  950. this.isShow = false
  951. this.isShow = true
  952. },
  953. // 拨打客服电话
  954. callUp(tel) {
  955. uni.makePhoneCall({
  956. phoneNumber: tel.toString()
  957. })
  958. },
  959. toSearchPage() {
  960. const page = getCurrentPages()
  961. let curPage = page[page.length - 1]
  962. if (curPage.route == 'extra/tshou/index/index') {
  963. uni.navigateTo({
  964. url: '/extra/tshou/search/search'
  965. })
  966. } else {
  967. uni.navigateTo({
  968. url: '/pages/search/search'
  969. })
  970. }
  971. },
  972. // 相关跳转
  973. skipTo(type, url, productId, pid, seckillId, info) {
  974. if (type == 'url') { //跳转链接地址
  975. // #ifdef H5
  976. window.open(url)
  977. // #endif
  978. // #ifdef APP-PLUS
  979. plus.runtime.openURL(url) //这里默认使用外部浏览器打开而不是内部web-view组件打开
  980. // #endif
  981. // #ifdef MP
  982. uni.navigateTo({
  983. url: '/pages/index/skip_to?url=' + url
  984. })
  985. // #endif
  986. } else if (type == 'goods') { //跳转商品详情页
  987. uni.navigateTo({
  988. url: '/pages/product/detail?productId=' + productId + '&goodsId=' + url
  989. })
  990. } else if (type == 'category') { // 分类列表
  991. uni.navigateTo({
  992. url: '/pages/product/list?categoryId=' + url
  993. })
  994. } else if (type == 'keyword') { // 关键词
  995. uni.navigateTo({
  996. url: '/pages/product/list?keyword=' + url + '&source=search'
  997. })
  998. } else if (type == 'topic') { //跳转专题页
  999. uni.navigateTo({
  1000. url: '/pages/index/topic?id=' + (info.decoId ? info.decoId : info.id)
  1001. })
  1002. } else if (type == 'brand_home') { //品牌列表
  1003. uni.navigateTo({
  1004. url: '/pages/public/brand'
  1005. })
  1006. } else if (type == 'seckill') { //秒杀
  1007. uni.navigateTo({
  1008. url: '/pages/seckill/seckill?seckillId=' + seckillId
  1009. })
  1010. } else if (type == 'ladder_group') { //阶梯团
  1011. uni.navigateTo({
  1012. url: '/standard/ladder/index/index'
  1013. })
  1014. } else if (type == 'presale') { //预售入口页
  1015. uni.navigateTo({
  1016. url: '/standard/presale/index/list'
  1017. })
  1018. } else if (type == 'voucher_center') { //优惠券领券中心
  1019. uni.navigateTo({
  1020. url: '/pages/coupon/couponCenter'
  1021. })
  1022. } else if (type == 'point') { //积分商城首页
  1023. uni.reLaunch({
  1024. url: '/standard/point/index/index'
  1025. });
  1026. } else if (type == 'svideo_center') { //短视频列表
  1027. uni.navigateTo({
  1028. url: '/extra/svideo/svideoList'
  1029. })
  1030. } else if (type == 'live_center') { //直播列表
  1031. uni.navigateTo({
  1032. url: '/extra/live/liveList'
  1033. })
  1034. } else if (type == 'spreader_center') { //推手中心
  1035. if (!this.hasLogin) {
  1036. uni.showToast({
  1037. title: '请登录~',
  1038. icon: 'none',
  1039. duration: 700
  1040. })
  1041. } else {
  1042. uni.navigateTo({
  1043. url: '/extra/tshou/index/index'
  1044. })
  1045. }
  1046. } else if (type == 'live') { //直播播放页面
  1047. uni.navigateTo({
  1048. url: '/extra/live/livePlay?live_id=' + url
  1049. })
  1050. } else if (type == 'svideo') { //短视频播放页面
  1051. uni.navigateTo({
  1052. url: '/extra/svideo/svideoPlay?svideo_id=' + url + '&video_id=' + url.videoId +
  1053. '&label_id=' + url.labelId + '&author_id=' + url.authorId
  1054. })
  1055. } else if (type == 'spell_group') {
  1056. uni.navigateTo({
  1057. url: '/standard/pinGroup/index/index'
  1058. })
  1059. } else if (type == 'sign_center') {
  1060. if (!this.hasLogin) {
  1061. uni.showToast({
  1062. title: '请登录~',
  1063. icon: 'none',
  1064. duration: 700
  1065. })
  1066. } else {
  1067. uni.navigateTo({
  1068. url: '/standard/signIn/signIn'
  1069. })
  1070. }
  1071. }
  1072. },
  1073. // 跳转商品详情页
  1074. toGoodsDetail(productId, goodsId) {
  1075. uni.navigateTo({
  1076. url: '/pages/product/detail?productId=' + productId + '&goodsId=' + goodsId
  1077. })
  1078. },
  1079. // 跳转消息列表页
  1080. toMsg() {
  1081. if (!this.hasLogin) {
  1082. uni.showToast({
  1083. title: '请登录~',
  1084. icon: 'none',
  1085. duration: 700
  1086. })
  1087. } else {
  1088. uni.navigateTo({
  1089. url: '/pages/chat/list'
  1090. })
  1091. }
  1092. },
  1093. // 跳转全部分类页
  1094. toAllSort(cateId) {
  1095. let app = getApp()
  1096. app.globalData.cateId = cateId
  1097. uni.switchTab({
  1098. url: '/pages/category/category',
  1099. })
  1100. },
  1101. // 加入购物车
  1102. addCart(productId, goodsId, item) {
  1103. this.goods_info = item
  1104. if (this.userInfo.access_token) {
  1105. let param = {}
  1106. param.url = 'v3/business/front/cart/add'
  1107. param.method = 'POST'
  1108. param.data = {
  1109. productId: productId,
  1110. number: 1
  1111. }
  1112. this.$request(param).then(res => {
  1113. if (res.state == 200) {
  1114. uni.showToast({
  1115. title: res.msg,
  1116. icon: 'none'
  1117. })
  1118. } else {
  1119. uni.showToast({
  1120. title: res.msg,
  1121. icon: 'none',
  1122. duration: 700
  1123. })
  1124. }
  1125. })
  1126. } else {
  1127. let cart_list = {
  1128. storeCartGroupList: [{
  1129. promotionCartGroupList: [{
  1130. cartList: [{
  1131. buyNum: 1,
  1132. goodsId: this.goods_info.goodsId,
  1133. productId: this.goods_info.productId || this.goods_info
  1134. .defaultProductId,
  1135. productImage: this.goods_info.goodsPic ? this.goods_info
  1136. .goodsPic : this.goods_info.goodsImage,
  1137. goodsName: this.goods_info.goodsName,
  1138. isChecked: 1,
  1139. productPrice: this.goods_info.goodsPrice,
  1140. // productStock: this.goods_info.productStock
  1141. }],
  1142. }],
  1143. storeId: this.goods_info.storeId,
  1144. storeName: this.goods_info.storeName,
  1145. checkedAll: true
  1146. }],
  1147. checkedAll: true,
  1148. invalidList: []
  1149. }
  1150. let local_cart_list = uni.getStorageSync('cart_list') //购物车列表本地缓存
  1151. if (local_cart_list) {
  1152. let tmp_list1 = []
  1153. let tmp_list2 = []
  1154. cart_list.storeCartGroupList.forEach(item => {
  1155. item.promotionCartGroupList.forEach(item1 => {
  1156. item1.cartList.forEach(item2 => {
  1157. local_cart_list.storeCartGroupList.forEach(v => {
  1158. v.promotionCartGroupList.forEach(v1 => {
  1159. v1.cartList.forEach(v2 => {
  1160. if (v2.productId == item2
  1161. .productId && v
  1162. .storeId == item
  1163. .storeId) {
  1164. tmp_list1.push(v)
  1165. }
  1166. })
  1167. tmp_list2 = local_cart_list
  1168. .storeCartGroupList.filter(v => {
  1169. return v.storeId == item
  1170. .storeId
  1171. })
  1172. })
  1173. })
  1174. })
  1175. })
  1176. })
  1177. if (tmp_list1.length > 0 && tmp_list2.length > 0) { //同一店铺同一商品
  1178. local_cart_list.storeCartGroupList.map(item => {
  1179. item.promotionCartGroupList.map(item1 => {
  1180. item1.cartList.map(item2 => {
  1181. if (item2.productId == this.goods_info.productId && item
  1182. .storeId == this.goods_info.storeId) {
  1183. item2.buyNum += 1
  1184. }
  1185. })
  1186. })
  1187. })
  1188. } else if (tmp_list1.length == 0 && tmp_list2.length > 0) { //同一店铺不同商品
  1189. local_cart_list.storeCartGroupList.map(item => {
  1190. if (item.storeId == this.goods_info.storeId) {
  1191. item.promotionCartGroupList.map(item2 => {
  1192. item2.cartList.push(cart_list.storeCartGroupList[0]
  1193. .promotionCartGroupList[0].cartList[0])
  1194. })
  1195. }
  1196. })
  1197. } else { //不同店铺不同商品
  1198. local_cart_list.storeCartGroupList.push(cart_list.storeCartGroupList[0])
  1199. }
  1200. // 未登录购物车展示数据
  1201. uni.setStorage({
  1202. key: 'cart_list',
  1203. data: local_cart_list,
  1204. success: function() {
  1205. //更新购物车数量和购物车数据
  1206. }
  1207. });
  1208. } else {
  1209. uni.setStorage({
  1210. key: 'cart_list',
  1211. data: cart_list,
  1212. success: function() {
  1213. //更新购物车数量和购物车数据
  1214. }
  1215. });
  1216. }
  1217. uni.showToast({
  1218. title: '加入购物车成功!',
  1219. icon: 'none'
  1220. })
  1221. }
  1222. },
  1223. //关闭首页广告屏
  1224. close_openScreen() {
  1225. this.isCookie = false;
  1226. },
  1227. //关闭首页广告屏
  1228. close_storeOpenScreen() {
  1229. this.storeIsCookie = false;
  1230. },
  1231. //点击广告屏跳转到详情页面
  1232. gotoGoods_detail() {
  1233. this.isCookie = false;
  1234. let osValue = this.home_page_img[0];
  1235. this.$diyNavTo(osValue);
  1236. }
  1237. },
  1238. // #ifndef MP
  1239. // 标题栏input搜索框点击
  1240. onNavigationBarSearchInputClicked: async function(e) {
  1241. uni.navigateTo({
  1242. url: `/pages/search/search`
  1243. })
  1244. },
  1245. //点击导航栏 buttons 时触发
  1246. onNavigationBarButtonTap(e) {
  1247. const index = e.index;
  1248. if (index === 0) {
  1249. this.$api.msg('点击了扫描');
  1250. } else if (index === 1) {
  1251. // #ifdef APP-PLUS
  1252. const pages = getCurrentPages();
  1253. const page = pages[pages.length - 1];
  1254. const currentWebview = page.$getAppWebview();
  1255. currentWebview.hideTitleNViewButtonRedDot({
  1256. index
  1257. });
  1258. // #endif
  1259. uni.navigateTo({
  1260. url: '/pages/notice/notice'
  1261. })
  1262. }
  1263. },
  1264. // #endif
  1265. }
  1266. </script>
  1267. <style lang="scss">
  1268. // 开屏 -- start
  1269. .container {
  1270. width: 100%;
  1271. margin: 0 auto;
  1272. }
  1273. .show-dialog {
  1274. animation: 100ms showDialog linear forwards;
  1275. }
  1276. .hide-dialog {
  1277. animation: 100ms hideDialog linear forwards;
  1278. }
  1279. @keyframes hideDialog {
  1280. 0% {
  1281. opacity: 1;
  1282. }
  1283. 25% {
  1284. opacity: 0.75;
  1285. }
  1286. 50% {
  1287. opacity: 0.5;
  1288. }
  1289. 75% {
  1290. opacity: 0.25;
  1291. }
  1292. 100% {
  1293. opacity: 0;
  1294. }
  1295. }
  1296. @keyframes showDialog {
  1297. 0% {
  1298. opacity: 0;
  1299. }
  1300. 25% {
  1301. opacity: 0.25;
  1302. }
  1303. 50% {
  1304. opacity: 0.5;
  1305. }
  1306. 75% {
  1307. opacity: 0.75;
  1308. }
  1309. 100% {
  1310. opacity: 1;
  1311. }
  1312. }
  1313. .container .open_screen {
  1314. width: 750rpx;
  1315. height: calc(100vh);
  1316. position: fixed;
  1317. top: 0;
  1318. left: 0;
  1319. right: 0;
  1320. margin: 0 auto;
  1321. background-color: rgba(0, 0, 0, 0.3);
  1322. z-index: 99999;
  1323. }
  1324. .container .open_screen .open_screen_con {
  1325. maring: 0 auto;
  1326. position: absolute;
  1327. top: 50%;
  1328. left: 50%;
  1329. transform: translate(-50%, -50%);
  1330. border-radius: 15rpx;
  1331. }
  1332. .container .open_screen .open_screen_con .open_screen_con_img {
  1333. max-width: 580rpx !important;
  1334. max-height: 776rpx !important;
  1335. background-size: contain;
  1336. border-radius: 15rpx;
  1337. }
  1338. .container .open_screen .open_screen_con .con_img {
  1339. width: 58rpx;
  1340. height: 58rpx;
  1341. position: absolute;
  1342. top: -58rpx;
  1343. right: -58rpx;
  1344. }
  1345. .open_screen_con .con_img image {
  1346. width: 100%;
  1347. height: 100%;
  1348. }
  1349. // 开屏 -- end
  1350. /* #ifdef H5 */
  1351. .deco_wrap {
  1352. margin-top: 160rpx !important;
  1353. }
  1354. /* #endif */
  1355. /* #ifdef MP */
  1356. .deco_wrap {
  1357. margin-top: calc(50px + 60rpx) !important;
  1358. padding-top: 0rpx;
  1359. }
  1360. .deco_wrap2 {
  1361. margin-top: 108rpx;
  1362. }
  1363. /* #endif */
  1364. /* #ifdef APP-PLUS */
  1365. .deco_wrap {
  1366. margin-top: calc(var(--status-bar-height) + 155rpx) !important;
  1367. }
  1368. /* #endif */
  1369. .container {
  1370. // padding-top: 180rpx;
  1371. padding-bottom: 20rpx;
  1372. overflow-x: hidden;
  1373. background-color: #F5F5F5;
  1374. }
  1375. /* #ifdef APP-PLUS */
  1376. .container1 {
  1377. width: 750rpx;
  1378. padding-top: 0rpx !important;
  1379. padding-bottom: 0;
  1380. }
  1381. /* #endif */
  1382. .mp-search-box {
  1383. position: fixed;
  1384. /* #ifndef APP-PLUS */
  1385. top: 0;
  1386. /* #endif */
  1387. /* #ifdef APP-PLUS */
  1388. top: var(--status-bar-height);
  1389. /* #endif */
  1390. z-index: 9999;
  1391. width: 750rpx;
  1392. height: 50px;
  1393. padding: 0 90rpx 0 20rpx;
  1394. display: flex;
  1395. box-sizing: border-box;
  1396. align-items: center;
  1397. background: linear-gradient(90deg, #6984a4 0%, #3a4b5c 100%);
  1398. .ser-input {
  1399. flex: 1;
  1400. height: 65upx;
  1401. line-height: 56upx;
  1402. text-align: left;
  1403. font-size: 28upx;
  1404. color: #949494;
  1405. border-radius: 20px;
  1406. background: rgba(255, 255, 255, .6);
  1407. padding-left: 58rpx;
  1408. box-sizing: border-box;
  1409. background-color: #fff;
  1410. }
  1411. }
  1412. page {
  1413. .topic_top {
  1414. padding-top: 0 !important;
  1415. }
  1416. .cate-section {
  1417. position: relative;
  1418. z-index: 5;
  1419. //border-radius: 16upx 16upx 0 0;
  1420. overflow-x: hidden;
  1421. }
  1422. .carousel-section {
  1423. padding: 0 20rpx;
  1424. box-sizing: border-box;
  1425. background-color: #FFFFFF;
  1426. .titleNview-placing {
  1427. padding-top: 0;
  1428. height: 0;
  1429. }
  1430. .carousel {
  1431. .carousel-item {
  1432. padding: 0;
  1433. }
  1434. }
  1435. .swiper-dots {
  1436. left: 45upx;
  1437. bottom: 40upx;
  1438. }
  1439. }
  1440. }
  1441. .search_img {
  1442. position: absolute;
  1443. width: 36rpx;
  1444. height: 36rpx;
  1445. left: 36rpx;
  1446. top: 50%;
  1447. transform: translateY(-50%);
  1448. z-index: 99;
  1449. }
  1450. page {
  1451. background: #f5f5f5;
  1452. }
  1453. .m-t {
  1454. margin-top: 16upx;
  1455. }
  1456. /* 头部 轮播图 */
  1457. .carousel-section {
  1458. position: relative;
  1459. padding-top: 10px;
  1460. .titleNview-placing {
  1461. height: var(--status-bar-height);
  1462. padding-top: 88px;
  1463. box-sizing: content-box;
  1464. }
  1465. .titleNview-background {
  1466. position: absolute;
  1467. top: 0;
  1468. left: 0;
  1469. width: 100%;
  1470. height: 200upx;
  1471. transition: .4s;
  1472. border-radius: 0 0 30rpx 30rpx;
  1473. }
  1474. }
  1475. .carousel {
  1476. width: 100%;
  1477. height: 280upx;
  1478. .carousel-item {
  1479. width: 100%;
  1480. height: 100%;
  1481. // padding: 0 28upx !important;
  1482. overflow: hidden;
  1483. }
  1484. image {
  1485. width: 100%;
  1486. height: 100%;
  1487. border-radius: 10upx;
  1488. overflow: hidden;
  1489. }
  1490. }
  1491. .swiper-dots {
  1492. display: flex;
  1493. position: absolute;
  1494. left: 60upx;
  1495. bottom: 15upx;
  1496. width: 72upx;
  1497. height: 36upx;
  1498. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
  1499. background-size: 100% 100%;
  1500. .num {
  1501. width: 36upx;
  1502. height: 36upx;
  1503. border-radius: 50px;
  1504. font-size: 24upx;
  1505. color: #fff;
  1506. text-align: center;
  1507. line-height: 36upx;
  1508. }
  1509. .sign {
  1510. position: absolute;
  1511. top: 0;
  1512. left: 50%;
  1513. line-height: 36upx;
  1514. font-size: 12upx;
  1515. color: #fff;
  1516. transform: translateX(-50%);
  1517. }
  1518. }
  1519. /* 分类 */
  1520. .cate-section {
  1521. display: flex;
  1522. justify-content: space-around;
  1523. align-items: center;
  1524. // flex-wrap: wrap;
  1525. padding: 20rpx 0;
  1526. background: #fff;
  1527. .cate-item {
  1528. display: flex;
  1529. flex-direction: column;
  1530. align-items: center;
  1531. font-size: 26upx;
  1532. color: #303133;
  1533. flex: 1;
  1534. image {
  1535. overflow: visible;
  1536. }
  1537. }
  1538. .cate-item2 {
  1539. display: flex;
  1540. align-items: center;
  1541. font-size: 26upx;
  1542. color: #303133;
  1543. }
  1544. .cate_name {
  1545. // width: 78rpx;
  1546. }
  1547. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  1548. image {
  1549. width: 88upx;
  1550. height: 88upx;
  1551. margin-bottom: 14upx;
  1552. border-radius: 50%;
  1553. }
  1554. }
  1555. .ad-1 {
  1556. width: 100%;
  1557. height: 210upx;
  1558. padding: 10upx 0;
  1559. background: #fff;
  1560. image {
  1561. width: 100%;
  1562. height: 100%;
  1563. }
  1564. }
  1565. .notice_box {
  1566. margin: 20rpx 20rpx 0 20rpx;
  1567. background: #FFFFFF;
  1568. border-radius: 14rpx;
  1569. // margin-bottom:20rpx;
  1570. .notice_wrap1 {
  1571. width: 100%;
  1572. height: 80rpx;
  1573. margin-top: 20rpx;
  1574. background-color: #fff;
  1575. display: flex;
  1576. align-items: center;
  1577. border-radius: 14rpx;
  1578. // border-radius: 6px;
  1579. .notice_img1 {
  1580. width: 127rpx;
  1581. height: 80rpx;
  1582. border-radius: 6px 0 0 6px;
  1583. }
  1584. .notice_content_wrap {
  1585. font-size: 28rpx;
  1586. font-weight: 600;
  1587. width: 530rpx;
  1588. white-space: nowrap;
  1589. text-overflow: ellipsis;
  1590. overflow: hidden;
  1591. margin-left: -16rpx;
  1592. .notice_content_title {
  1593. color: #E1261C;
  1594. }
  1595. .notice_content {
  1596. color: #666666;
  1597. }
  1598. }
  1599. .notice_wrap1_line {
  1600. width: 1rpx;
  1601. height: 34rpx;
  1602. background-color: rgba(0, 0, 0, 0.1);
  1603. margin-left: 6rpx;
  1604. }
  1605. .notice_more {
  1606. width: 80rpx;
  1607. text-align: center;
  1608. font-size: 29rpx;
  1609. color: #2E2E2E;
  1610. font-weight: 600;
  1611. }
  1612. }
  1613. .notice_wrap2 {
  1614. width: 100%;
  1615. height: 80rpx;
  1616. // margin-bottom: 20rpx;
  1617. background-color: #3A3A3A;
  1618. display: flex;
  1619. align-items: center;
  1620. box-shadow: 1px 6px 19px 1px rgba(86, 86, 86, 0.1);
  1621. // border-radius: 6px;
  1622. .notice_img2 {
  1623. width: 138rpx;
  1624. height: 80rpx;
  1625. border-radius: 6px 0 0 6px;
  1626. }
  1627. .notice_content_wrap2 {
  1628. font-size: 26rpx;
  1629. font-weight: 600;
  1630. width: 510rpx;
  1631. white-space: nowrap;
  1632. text-overflow: ellipsis;
  1633. overflow: hidden;
  1634. color: #fff;
  1635. margin-left: 5rpx;
  1636. }
  1637. .notice_wrap2_line {
  1638. width: 1rpx;
  1639. height: 38rpx;
  1640. background-color: #fff;
  1641. margin-left: 2rpx;
  1642. }
  1643. .notice_more {
  1644. width: 80rpx;
  1645. text-align: center;
  1646. font-size: 26rpx;
  1647. color: #fff;
  1648. font-weight: 600;
  1649. }
  1650. }
  1651. }
  1652. .service_wrap {
  1653. // width:100%;
  1654. padding: 20rpx;
  1655. font-size: 26rpx;
  1656. color: #333;
  1657. background-color: #fff;
  1658. display: flex;
  1659. align-items: center;
  1660. margin: 20rpx 20rpx 0 20rpx;
  1661. border-radius: 14rpx;
  1662. image {
  1663. width: 30rpx;
  1664. height: 32rpx;
  1665. margin-right: 10rpx;
  1666. }
  1667. }
  1668. .rich_text_wrap {
  1669. font-size: 28rpx;
  1670. background: #fff;
  1671. padding: 30rpx;
  1672. box-sizing: border-box;
  1673. margin-top: 20rpx;
  1674. }
  1675. .match_wrap {
  1676. padding: 20rpx;
  1677. box-sizing: border-box;
  1678. margin-top: 20rpx;
  1679. flex-direction: column;
  1680. background-color: #fff;
  1681. .match_top {
  1682. display: flex;
  1683. flex-direction: column;
  1684. background-color: #fff;
  1685. image {
  1686. width: 100%;
  1687. }
  1688. .match_image_wrap {
  1689. width: 100%;
  1690. display: flex;
  1691. justify-content: center;
  1692. .match_image {
  1693. margin: 0 auto;
  1694. }
  1695. }
  1696. .match_top_title {
  1697. text-align: center;
  1698. padding-bottom: 20rpx;
  1699. font-size: 32rpx;
  1700. color: #333;
  1701. }
  1702. .match_top_text {
  1703. padding: 20rpx 20rpx 0;
  1704. font-size: 28rpx;
  1705. color: #333;
  1706. white-space: nowrap;
  1707. text-overflow: ellipsis;
  1708. overflow: hidden;
  1709. }
  1710. }
  1711. .match_main_wrap {
  1712. background-color: #fff;
  1713. margin-top: 20rpx;
  1714. }
  1715. .match_main {
  1716. display: flex;
  1717. justify-content: space-between;
  1718. overflow-x: scroll;
  1719. box-sizing: border-box;
  1720. .match_item {
  1721. width: 222rpx;
  1722. height: 370rpx;
  1723. margin-right: 20rpx;
  1724. background-color: #fff;
  1725. border-radius: 15rpx;
  1726. position: relative;
  1727. .match_goods_img {
  1728. width: 222rpx;
  1729. height: 222rpx;
  1730. background-color: #ccc;
  1731. border-radius: 15rpx 15rpx 0 0;
  1732. image {
  1733. width: 222rpx;
  1734. height: 222rpx;
  1735. border-radius: 10rpx 10rpx 0 0;
  1736. }
  1737. }
  1738. .match_goods_name {
  1739. font-size: 28rpx;
  1740. color: #333;
  1741. text-overflow: -o-ellipsis-lastline;
  1742. overflow: hidden;
  1743. text-overflow: ellipsis;
  1744. display: -webkit-box;
  1745. -webkit-line-clamp: 2;
  1746. line-clamp: 2;
  1747. -webkit-box-orient: vertical;
  1748. box-sizing: border-box;
  1749. padding: 10rpx 0rpx 0 0rpx;
  1750. }
  1751. .match_goods_price {
  1752. font-size: 28rpx;
  1753. color: rgb(255, 43, 32);
  1754. font-weight: 600;
  1755. position: absolute;
  1756. bottom: 12rpx;
  1757. // left: 20rpx;
  1758. }
  1759. }
  1760. }
  1761. }
  1762. .subline_wrap {
  1763. padding: 30rpx 0;
  1764. background-color: #fff;
  1765. // margin: 20rpx 20rpx 0 20rpx;
  1766. .subline {
  1767. width: 100%;
  1768. border-bottom: 1px dotted #fff;
  1769. }
  1770. }
  1771. .carousel_bottom_wrap {
  1772. padding-bottom: 20rpx;
  1773. background-color: #fff;
  1774. display: flex;
  1775. justify-content: center;
  1776. margin-top: 20rpx;
  1777. .carousel_bottom {
  1778. width: 100%;
  1779. max-height: 340rpx !important;
  1780. margin-bottom: 20rpx;
  1781. padding-top: 20rpx;
  1782. }
  1783. }
  1784. .recommend_goods_wrap {
  1785. display: flex;
  1786. justify-content: space-between;
  1787. flex-wrap: wrap;
  1788. padding: 0 20rpx;
  1789. margin-top: 20rpx;
  1790. }
  1791. .carousel_img {
  1792. // height:340rpx !important;
  1793. }
  1794. .blank_wrap {
  1795. margin: 0 20rpx;
  1796. margin-top: 20rpx;
  1797. }
  1798. .nav_wrap {
  1799. width: 100%;
  1800. padding: 0 20rpx;
  1801. box-sizing: border-box;
  1802. }
  1803. .nav_wrap::-webkit-scrollbar {
  1804. display: none;
  1805. }
  1806. .sort_sub_wrap {
  1807. width: 100%;
  1808. background: #F5F5F5;
  1809. .sort_sub_top {
  1810. margin: 180rpx 21rpx 0 21rpx;
  1811. /* #ifdef APP-PLUS */
  1812. margin-top: calc(var(--status-bar-height) + 180rpx);
  1813. /* #endif*/
  1814. /* #ifdef MP */
  1815. margin-top: calc(50px + 80rpx);
  1816. /* #endif*/
  1817. display: flex;
  1818. border-radius: 10rpx;
  1819. background-color: #fff;
  1820. padding: 0 20rpx 20rpx 20rpx;
  1821. flex-wrap: wrap;
  1822. .sort_sub_item {
  1823. display: flex;
  1824. flex-direction: column;
  1825. margin-right: 35rpx;
  1826. justify-content: center;
  1827. align-items: center;
  1828. margin-top: 20rpx;
  1829. .sort_sub_img {
  1830. width: 106rpx;
  1831. height: 106rpx;
  1832. border-radius: 50%;
  1833. margin-bottom: 20rpx;
  1834. image {
  1835. width: 106rpx;
  1836. height: 106rpx;
  1837. border-radius: 50%;
  1838. }
  1839. }
  1840. .sort_sub_name {
  1841. font-size: 24rpx;
  1842. color: #333;
  1843. font-weight: 600;
  1844. width: 96rpx;
  1845. white-space: nowrap;
  1846. text-overflow: ellipsis;
  1847. overflow: hidden;
  1848. word-break: break-all;
  1849. text-align: center;
  1850. }
  1851. }
  1852. }
  1853. .sort_sub_top>view:nth-child(5n) {
  1854. margin-right: 0 !important;
  1855. }
  1856. .sort_sub_goods {
  1857. width: 100%;
  1858. padding: 0 20rpx;
  1859. box-sizing: border-box;
  1860. display: flex;
  1861. justify-content: space-between;
  1862. flex-wrap: wrap;
  1863. margin-top: 20rpx;
  1864. }
  1865. .sort_sub_goods>view:nth-child(2n) {
  1866. margin-right: 0 !important;
  1867. }
  1868. }
  1869. // 图片组合样式
  1870. .goods {
  1871. border: none;
  1872. background: #fff;
  1873. margin-top: 0;
  1874. }
  1875. .index_block {
  1876. width: 750rpx;
  1877. clear: both;
  1878. overflow: hidden;
  1879. background: #fff;
  1880. display: block;
  1881. }
  1882. .goods .content {
  1883. background: #f0f2f5;
  1884. clear: both;
  1885. overflow: hidden;
  1886. display: block;
  1887. }
  1888. .goods .goods-small.goods-item:nth-child(2n+1) {
  1889. padding-right: 8rpx;
  1890. }
  1891. .goods-small.goods-item {
  1892. overflow: hidden;
  1893. float: left;
  1894. width: 50%;
  1895. box-sizing: border-box;
  1896. padding-bottom: 8rpx;
  1897. position: relative;
  1898. -moz-box-sizing: border-box;
  1899. -webkit-box-sizing: border-box;
  1900. }
  1901. .goods-item navigator {
  1902. display: block;
  1903. background: #fff;
  1904. }
  1905. .goods-item-pic {
  1906. vertical-align: middle;
  1907. line-height: 0;
  1908. display: table-cell;
  1909. text-align: center;
  1910. width: calc(50vw - 30rpx);
  1911. height: calc(50vw - 30rpx);
  1912. }
  1913. .goods-item-pic image {
  1914. width: calc(50vw - 30rpx);
  1915. height: calc(50vw - 30rpx);
  1916. }
  1917. .goods-small .goods-item-name {
  1918. height: 66rpx;
  1919. font-size: 26rpx;
  1920. overflow: hidden;
  1921. text-overflow: ellipsis;
  1922. display: -webkit-box;
  1923. -webkit-line-clamp: 2;
  1924. -webkit-box-orient: vertical;
  1925. word-break: break-word;
  1926. color: #232326;
  1927. margin-top: 10rpx;
  1928. line-height: 33rpx;
  1929. margin-bottom: 6rpx;
  1930. padding: 0 8rpx;
  1931. }
  1932. .goods-item-price {
  1933. color: #f23030;
  1934. display: inline-block;
  1935. padding: 0 10rpx 0 8rpx;
  1936. position: relative;
  1937. top: 2rpx;
  1938. height: 50rpx;
  1939. line-height: 50rpx;
  1940. }
  1941. .goods-item-price .yens {
  1942. font-size: 26rpx;
  1943. }
  1944. .goods-item-price .bigprice {
  1945. font-size: 32rpx;
  1946. font-weight: bold;
  1947. display: inline-block;
  1948. }
  1949. .goods-big.goods-item {
  1950. overflow: hidden;
  1951. float: left;
  1952. width: 100%;
  1953. box-sizing: border-box;
  1954. padding-bottom: 8rpx;
  1955. position: relative;
  1956. -moz-box-sizing: border-box;
  1957. -webkit-box-sizing: border-box;
  1958. padding: 16rpx 16rpx 0;
  1959. }
  1960. .goods-item-name {
  1961. height: 66rpx;
  1962. font-size: 26rpx;
  1963. overflow: hidden;
  1964. text-overflow: ellipsis;
  1965. display: -webkit-box;
  1966. -webkit-line-clamp: 2;
  1967. -webkit-box-orient: vertical;
  1968. word-break: break-word;
  1969. color: #232326;
  1970. margin-top: 10rpx;
  1971. line-height: 34rpx;
  1972. margin-bottom: 6rpx;
  1973. padding: 0 8rpx;
  1974. }
  1975. .goods-big .goods-item-price {
  1976. color: #f23030;
  1977. display: inline-block;
  1978. padding: 0 10rpx 0 8rpx;
  1979. position: relative;
  1980. top: 2rpx;
  1981. height: 50rpx;
  1982. line-height: 50rpx;
  1983. }
  1984. .goods-big .goods-item-pic image {
  1985. width: 734rpx;
  1986. height: 734rpx;
  1987. padding: 0 8rpx;
  1988. }
  1989. .hide_title .goods-item .goods-item-name {
  1990. display: none !important;
  1991. }
  1992. .hide_price .goods-item .goods-item-price {
  1993. display: none !important;
  1994. }
  1995. .goods-list.goods-item .goods-item-pic {
  1996. float: left;
  1997. width: 214rpx !important;
  1998. height: 214rpx !important;
  1999. }
  2000. .goods-list.goods-item {
  2001. overflow: hidden;
  2002. float: left;
  2003. width: 100%;
  2004. box-sizing: border-box;
  2005. padding-bottom: 8rpx;
  2006. position: relative;
  2007. -moz-box-sizing: border-box;
  2008. -webkit-box-sizing: border-box;
  2009. background: #fff;
  2010. margin-bottom: 16rpx;
  2011. }
  2012. .goods-list.goods-item .goods-item-pic image {
  2013. width: 214rpx !important;
  2014. height: 214rpx !important;
  2015. }
  2016. .goods-list .goods-item-name {
  2017. padding-top: 40rpx;
  2018. }
  2019. .goods .new-content .goods-item.goods-list .goods-item-name {
  2020. padding-top: 10rpx;
  2021. }
  2022. /*图片组合样式 */
  2023. .modules-slide {
  2024. display: block;
  2025. }
  2026. .modules-slide .image-list.style0,
  2027. .modules-slide .image-list.style0 ul {
  2028. padding: 0;
  2029. margin: 0;
  2030. box-sizing: border-box;
  2031. }
  2032. .modules-slide .image-list.style0,
  2033. .modules-slide .image-list.style0 ul {
  2034. padding: 0;
  2035. margin: 0;
  2036. box-sizing: border-box;
  2037. display: block;
  2038. }
  2039. .modules-slide .image-list ul {
  2040. overflow: hidden;
  2041. box-sizing: border-box;
  2042. display: block;
  2043. }
  2044. .modules-slide .image-list.style0 ul li {
  2045. display: block;
  2046. box-sizing: border-box;
  2047. }
  2048. .modules-slide .image-list ul li navigator {
  2049. display: block;
  2050. }
  2051. .modules-slide .image-list ul li navigator image {
  2052. width: 100%;
  2053. background: #f1f1f1;
  2054. display: block !important;
  2055. }
  2056. .modules-slide image {
  2057. max-width: 100%;
  2058. height: auto;
  2059. vertical-align: middle;
  2060. display: inline-block !important;
  2061. }
  2062. .modules-slide .image-list {
  2063. overflow: hidden;
  2064. .tupianzuhe2 {
  2065. margin-bottom: 20rpx;
  2066. flex-wrap: wrap;
  2067. }
  2068. }
  2069. .modules-slide .image-list.style1 ul li {
  2070. display: block;
  2071. margin: 0 16rpx 16rpx;
  2072. }
  2073. .modules-slide .image-list.style1 ul li image {
  2074. height: 100%;
  2075. }
  2076. .modules-slide .image-list ul li navigator image {
  2077. width: 100%;
  2078. background: #f1f1f1;
  2079. display: block !important;
  2080. }
  2081. .modules-slide .image-list.style2 ul,
  2082. .modules-slide .image-list.style3 ul {
  2083. padding-right: 16rpx;
  2084. }
  2085. .modules-slide .image-list.style2 ul li {
  2086. box-sizing: border-box;
  2087. padding: 0 0 16rpx 16rpx;
  2088. width: 50%;
  2089. float: left;
  2090. }
  2091. .modules-slide .image-list.style3 ul li {
  2092. float: left;
  2093. width: 33.33333%;
  2094. box-sizing: border-box;
  2095. padding: 0 0 16rpx 16rpx;
  2096. }
  2097. .modules-slide .image-ad {
  2098. padding: 20rpx 0;
  2099. box-sizing: border-box;
  2100. display: block;
  2101. clear: both;
  2102. overflow: hidden;
  2103. .tupianzuhe04_left {
  2104. width: calc((750rpx - 60rpx)/2);
  2105. height: calc((750rpx - 60rpx)/2 + 20rpx);
  2106. margin-right: 20rpx;
  2107. margin-left: 20rpx;
  2108. image {
  2109. width: 100%;
  2110. height: 100%
  2111. }
  2112. }
  2113. .tupianzuhe04_right_item {
  2114. width: calc((750rpx - 60rpx)/2);
  2115. height: calc((750rpx - 60rpx)/4);
  2116. image {
  2117. width: 100%;
  2118. height: 100%
  2119. }
  2120. }
  2121. }
  2122. .modules-slide .image-ad>div {
  2123. float: left;
  2124. width: 50%;
  2125. box-sizing: border-box;
  2126. }
  2127. .modules-slide .image-ad div navigator {
  2128. display: block;
  2129. margin: 0 16rpx 16rpx 0;
  2130. box-sizing: border-box;
  2131. }
  2132. .modules-slide .images-tpl image {
  2133. width: 374rpx;
  2134. vertical-align: middle;
  2135. box-sizing: border-box;
  2136. }
  2137. .modules-slide .image-ad2 {
  2138. margin: 0 16rpx 0 0;
  2139. box-sizing: border-box;
  2140. display: block;
  2141. clear: both;
  2142. overflow: hidden;
  2143. }
  2144. .modules-slide .image-ad2 .clearfix {
  2145. display: block;
  2146. clear: both;
  2147. overflow: hidden;
  2148. }
  2149. .modules-slide .image-ad2 div:first-child navigator:nth-child(1),
  2150. .modules-slide .image-ad2 div:first-child navigator:nth-child(1) image {
  2151. width: 228rpx;
  2152. }
  2153. .modules-slide .image-ad2 div:first-child .big:nth-child(2),
  2154. .modules-slide .image-ad2 div:first-child .big:nth-child(2) image {
  2155. width: 473rpx;
  2156. }
  2157. .modules-slide .image-ad2 div navigator {
  2158. display: block;
  2159. float: left;
  2160. margin: 0 0 16rpx 16rpx;
  2161. box-sizing: border-box;
  2162. }
  2163. .modules-slide .images-tpl img {
  2164. width: 100%;
  2165. vertical-align: middle;
  2166. box-sizing: border-box;
  2167. }
  2168. .modules-slide .image-ad2 div:last-child navigator:nth-child(1),
  2169. .modules-slide .image-ad2 div:last-child navigator:nth-child(1) image {
  2170. width: 473rpx;
  2171. }
  2172. .modules-slide .image-ad2 div:last-child navigator:nth-child(2),
  2173. .modules-slide .image-ad2 div:last-child navigator:nth-child(2) image {
  2174. width: 228rpx;
  2175. }
  2176. .modules-slide .image-ad3 {
  2177. padding: 0 0 0 16rpx;
  2178. box-sizing: border-box;
  2179. display: block;
  2180. clear: both;
  2181. overflow: hidden;
  2182. }
  2183. .modules-slide .image-ad3 div {
  2184. width: 367rpx;
  2185. float: left;
  2186. box-sizing: border-box;
  2187. }
  2188. .modules-slide .image-ad3 div image {
  2189. width: 351rpx;
  2190. }
  2191. .modules-slide .image-ad3 div navigator {
  2192. padding: 0 16rpx 16rpx 0;
  2193. display: inline-block;
  2194. box-sizing: border-box;
  2195. }
  2196. .modules-slide .image-ad4 {
  2197. padding: 0 16rpx 16rpx 0;
  2198. box-sizing: border-box;
  2199. display: block;
  2200. }
  2201. .modules-slide .image-ad4 div {
  2202. float: left;
  2203. width: 33.33333%;
  2204. box-sizing: border-box;
  2205. }
  2206. .modules-slide .image-ad4 div navigator {
  2207. display: block;
  2208. margin: 0 0 16rpx 16rpx;
  2209. }
  2210. .countdown {
  2211. width: 100%;
  2212. height: 49.2rpx;
  2213. line-height: 49.2rpx;
  2214. font-size: 39.4rpx;
  2215. }
  2216. .countdown .countdown-name {
  2217. float: left;
  2218. display: block;
  2219. -webkit-transform: scale(0.8);
  2220. }
  2221. .countdown .countdown-main {
  2222. display: block;
  2223. -webkit-transform: scale(0.8);
  2224. }
  2225. .countdown .countdown-num {
  2226. background-color: #000000;
  2227. display: inline-block;
  2228. padding: 0 0rpx;
  2229. width: 25px;
  2230. height: 32.2rpx;
  2231. line-height: 32.2rpx;
  2232. }
  2233. .combine1 {
  2234. display: flex !important;
  2235. flex-direction: column !important;
  2236. text-align: center;
  2237. }
  2238. .combine2 {
  2239. display: flex !important;
  2240. }
  2241. // 推荐商品
  2242. .recommend_goods1 {
  2243. width: 100%;
  2244. height: 350rpx;
  2245. display: flex;
  2246. background-color: #fff;
  2247. border-radius: 20rpx;
  2248. margin-bottom: 20rpx;
  2249. border-radius: 20rpx;
  2250. .recommend_goods_img1 {
  2251. width: 350rpx;
  2252. height: 350rpx;
  2253. margin-right: 20rpx;
  2254. image {
  2255. width: 350rpx;
  2256. height: 350rpx;
  2257. background-color: #ccc;
  2258. }
  2259. }
  2260. .recommend_goods_right {
  2261. width: 100%;
  2262. height: 350rpx;
  2263. position: relative;
  2264. .recommend_goods_name {
  2265. font-size: 30rpx;
  2266. margin-top: 20rpx;
  2267. text-overflow: -o-ellipsis-lastline;
  2268. overflow: hidden;
  2269. text-overflow: ellipsis;
  2270. display: -webkit-box;
  2271. -webkit-line-clamp: 2;
  2272. line-clamp: 2;
  2273. -webkit-box-orient: vertical;
  2274. }
  2275. .recommend_goods_price {
  2276. position: absolute;
  2277. bottom: 80rpx;
  2278. left: 0;
  2279. color: #FC1C1C;
  2280. }
  2281. .recommend_goods_bottom {
  2282. width: 100%;
  2283. position: absolute;
  2284. bottom: 20rpx;
  2285. left: 0;
  2286. display: flex;
  2287. justify-content: space-between;
  2288. image {
  2289. width: 42rpx;
  2290. height: 42rpx;
  2291. margin-right: 20rpx;
  2292. }
  2293. }
  2294. }
  2295. }
  2296. .recommend_goods2 {
  2297. display: flex;
  2298. flex-direction: column;
  2299. width: 100%;
  2300. .recommend_goods_img2 {
  2301. width: 100%;
  2302. height: 702rpx;
  2303. image {
  2304. width: 100%;
  2305. height: 702rpx;
  2306. background-color: #ccc;
  2307. }
  2308. }
  2309. .recommend_goods_bottom2 {
  2310. width: 100%;
  2311. height: 204rpx;
  2312. padding: 20rpx;
  2313. box-sizing: border-box;
  2314. background-color: #fff;
  2315. position: relative;
  2316. .recommend_goods_name2 {
  2317. font-size: 30rpx;
  2318. text-overflow: -o-ellipsis-lastline;
  2319. overflow: hidden;
  2320. text-overflow: ellipsis;
  2321. display: -webkit-box;
  2322. -webkit-line-clamp: 2;
  2323. line-clamp: 2;
  2324. -webkit-box-orient: vertical;
  2325. }
  2326. .goods_bottom {
  2327. width: 100%;
  2328. display: flex;
  2329. flex-direction: column;
  2330. image {
  2331. width: 42rpx;
  2332. height: 42rpx;
  2333. }
  2334. }
  2335. }
  2336. }
  2337. .big_price {
  2338. font-size: 34rpx;
  2339. }
  2340. .small_price {
  2341. font-size: 24rpx;
  2342. }
  2343. .combination_style {
  2344. display: flex;
  2345. }
  2346. .combination_wrap {
  2347. width: 100%;
  2348. background-color: #fff;
  2349. box-sizing: border-box;
  2350. /* #ifndef MP-WEIXIN||APP-PLUS */
  2351. margin-top: 20rpx;
  2352. /* #endif */
  2353. }
  2354. .combine6 {
  2355. display: flex;
  2356. flex-direction: column;
  2357. margin-right: 20rpx;
  2358. margin-top: 20rpx;
  2359. }
  2360. .scan_img {
  2361. width: 44rpx;
  2362. height: 44rpx;
  2363. position: absolute;
  2364. left: 15rpx;
  2365. }
  2366. .msg_img {
  2367. width: 50rpx;
  2368. height: 50rpx;
  2369. position: absolute;
  2370. right: 20rpx;
  2371. top: 50%;
  2372. transform: translateY(-50%);
  2373. align-items: center;
  2374. image {
  2375. width: 50rpx;
  2376. height: 50rpx;
  2377. }
  2378. }
  2379. .message_new {
  2380. width: 34rpx;
  2381. height: 34rpx;
  2382. background-color: #fff;
  2383. position: absolute;
  2384. top: -10rpx;
  2385. right: -12rpx;
  2386. border-radius: 50rpx;
  2387. font-size: 20rpx;
  2388. color: #FF152C;
  2389. text-align: center;
  2390. vertical-align: middle;
  2391. display: flex;
  2392. justify-content: center;
  2393. align-items: center;
  2394. }
  2395. .combine3 {
  2396. width: calc((750rpx - 60rpx)/2);
  2397. margin-top: 20rpx;
  2398. }
  2399. .combine4 {
  2400. width: calc((750rpx - 80rpx)/3);
  2401. margin-top: 20rpx;
  2402. margin-left: 20rpx;
  2403. image {
  2404. width: 100%;
  2405. height: 100%;
  2406. }
  2407. }
  2408. .paddingTB20 {
  2409. padding: 0 20rpx;
  2410. }
  2411. .no_margin_right {
  2412. padding: 0px
  2413. }
  2414. .no_margin_right>view:nth-child(2n) {
  2415. margin-right: 0 !important;
  2416. }
  2417. .no_margin_right2>view:nth-child(3n) {
  2418. margin-right: 0 !important;
  2419. }
  2420. .see_more_wrap {
  2421. display: flex;
  2422. justify-content: center;
  2423. align-items: center;
  2424. flex-direction: column;
  2425. margin-top: 14rpx;
  2426. .more_icon_circle {
  2427. width: 106rpx;
  2428. height: 106rpx;
  2429. display: flex;
  2430. justify-content: center;
  2431. align-items: center;
  2432. border-radius: 50%;
  2433. background-color: #F8F8F8;
  2434. margin-bottom: 20rpx;
  2435. .more_icon {
  2436. width: 52rpx;
  2437. height: 14rpx;
  2438. }
  2439. }
  2440. .see_more_text {
  2441. font-size: 24rpx;
  2442. color: #333;
  2443. font-weight: 600;
  2444. }
  2445. }
  2446. .carousel-section /deep/ .uni-swiper__warp {
  2447. margin-top: 158rpx !important;
  2448. }
  2449. /* #ifdef APP-PLUS */
  2450. .carousel-section /deep/ .uni-swiper__warp {
  2451. padding-top: 14rpx;
  2452. }
  2453. /* #endif */
  2454. /* #ifdef H5 */
  2455. .carousel-section /deep/ .uni-swiper__warp {
  2456. margin-top: -2rpx !important;
  2457. padding-top: 8rpx !important;
  2458. }
  2459. /* #endif */
  2460. .combine5_wrap>view:nth-child(2n) {
  2461. margin-right: 0 !important;
  2462. }
  2463. .mp-search-box /deep/ .ser-input /deep/ .uni-input-wrapper /deep/ .uni-input-input {
  2464. background-color: #fff;
  2465. }
  2466. .search_input {
  2467. text-align: left;
  2468. }
  2469. .rec_goods_wrap {
  2470. width: 750rpx;
  2471. display: flex;
  2472. justify-content: space-between;
  2473. flex-wrap: wrap;
  2474. }
  2475. .city_wrap {
  2476. font-size: 30rpx;
  2477. display: flex;
  2478. align-items: center;
  2479. color: #fff;
  2480. flex-shrink: 0;
  2481. max-width: 58px;
  2482. white-space: nowrap;
  2483. text-overflow: ellipsis;
  2484. overflow: hidden;
  2485. display: inline-block;
  2486. }
  2487. .top_icon {
  2488. width: 24rpx;
  2489. height: 24rpx;
  2490. margin-left: 11rpx;
  2491. margin-right: 17rpx;
  2492. margin-top: 2rpx;
  2493. flex-shrink: 0;
  2494. }
  2495. .deco_wrap {
  2496. width: 750rpx;
  2497. }
  2498. /* ----TAB切换:---- */
  2499. .tab_nav {
  2500. margin-top: 100rpx;
  2501. }
  2502. .tab_nav_scroll {
  2503. white-space: nowrap;
  2504. }
  2505. .tab_nav_block {
  2506. display: inline-block;
  2507. width: 25%;
  2508. text-align: center;
  2509. }
  2510. .tab_nav_block_t {
  2511. color: #2D2D2D;
  2512. font-size: 28rpx;
  2513. padding-bottom: 14rpx;
  2514. margin: 0 50rpx 4rpx 50rpx
  2515. }
  2516. .tab_nav_block_on {
  2517. color: #333333;
  2518. font-weight: 700;
  2519. font-size: 32rpx;
  2520. margin-bottom: 8rpx;
  2521. }
  2522. .tab_nav_block_i {
  2523. color: #999999;
  2524. font-size: 22rpx;
  2525. padding: 4rpx 0;
  2526. margin: 5rpx 26rpx
  2527. }
  2528. .tab_nav_block_on2 {
  2529. background-color: #FA1C1C;
  2530. color: #FFFFFF;
  2531. border-radius: 16rpx;
  2532. }
  2533. // 短视频3d轮播
  2534. .swiper-block {
  2535. width: 100%;
  2536. display: flex;
  2537. justify-content: center;
  2538. align-items: center;
  2539. height: 346rpx;
  2540. margin: 0
  2541. }
  2542. .slide-image {
  2543. height: 320rpx;
  2544. width: 520rpx;
  2545. border-radius: 9rpx;
  2546. box-shadow: 0px 0px 30rpx rgba(0, 0, 0, .2);
  2547. margin: 0rpx 30rpx;
  2548. z-index: 1;
  2549. }
  2550. .active1 {
  2551. /* transform: scale(1.44); */
  2552. transition: all .2s ease-in 0s;
  2553. height: 100%;
  2554. width: 100%;
  2555. border-radius: 16rpx;
  2556. }
  2557. .active2 {
  2558. width: 100%;
  2559. height: 100%;
  2560. border-radius: 16rpx;
  2561. }
  2562. // 空页面
  2563. .empty_sort_page {
  2564. width: 100%;
  2565. // height: 100vh;
  2566. background: #F5F5F5;
  2567. display: flex;
  2568. flex-direction: column;
  2569. align-items: center;
  2570. padding-top: 340rpx;
  2571. .empty_img {
  2572. width: 210rpx;
  2573. height: 210rpx;
  2574. margin-bottom: 32rpx;
  2575. }
  2576. .empty_text {
  2577. font-size: 26rpx;
  2578. color: #999;
  2579. }
  2580. }
  2581. .scan,
  2582. .message {
  2583. margin-left: 18rpx;
  2584. display: flex;
  2585. align-items: center;
  2586. flex-direction: column;
  2587. flex-shrink: 0;
  2588. image {
  2589. width: 34rpx;
  2590. height: 34rpx;
  2591. }
  2592. text {
  2593. color: white;
  2594. font-size: 20rpx;
  2595. line-height: 22rpx;
  2596. margin-top: 6rpx;
  2597. }
  2598. }
  2599. .search_con {
  2600. position: relative;
  2601. flex: 1;
  2602. }
  2603. .svideo_person_num {
  2604. width: 40rpx;
  2605. height: 40rpx;
  2606. border-radius: 0 0 50% 0;
  2607. }
  2608. .swiper-item {
  2609. color: #fff;
  2610. overflow: hidden;
  2611. left: 40rpx !important;
  2612. right: 20rpx;
  2613. top: 20rpx;
  2614. bottom: 20rpx;
  2615. width: 80% !important;
  2616. height: 280rpx !important;
  2617. // transform: translate(80%, 0px) translateZ(0px);
  2618. }
  2619. .swiper-item1 {
  2620. color: #fff;
  2621. box-sizing: border-box;
  2622. height: 346rpx;
  2623. width: 346rpx !important;
  2624. top: 0rpx;
  2625. bottom: 0rpx;
  2626. overflow: hidden;
  2627. left: 80rpx;
  2628. }
  2629. // 专题页头部
  2630. .topic_top_bar {
  2631. width: 750rpx;
  2632. height: 88rpx;
  2633. background-color: #fff;
  2634. display: flex;
  2635. // justify-content: center;
  2636. align-items: center;
  2637. font-size: 30rpx;
  2638. color: #2d2d2d;
  2639. position: fixed;
  2640. top: 0;
  2641. /* #ifdef MP || APP-PLUS */
  2642. padding-top: 110rpx;
  2643. padding-bottom: 48rpx;
  2644. /* #endif */
  2645. left: 0;
  2646. font-weight: 600;
  2647. z-index: 99999;
  2648. margin: 0 auto;
  2649. right: 0;
  2650. }
  2651. .topic_top_bar image {
  2652. width: 32rpx;
  2653. height: 32rpx;
  2654. }
  2655. .svideo2_wrap /deep/ .uni-scroll-view /deep/ .uni-scroll-view /deep/ .uni-scroll-view-content>view:nth-last-child(1) {
  2656. margin-right: 0 !important;
  2657. }
  2658. .top_swiper_style1 {
  2659. background: #FF1D1D;
  2660. }
  2661. .top_swiper_style2 {
  2662. background: linear-gradient(#FC1D1C 0%, #FF7A18 42%, #fff 100%);
  2663. }
  2664. .svideo4_wrap /deep/ .uni-scroll-view /deep/ .uni-scroll-view /deep/ .uni-scroll-view-content>view:nth-last-child(1) {
  2665. margin-right: 0 !important;
  2666. }
  2667. .recommond_goods3_wrap {
  2668. display: flex;
  2669. justify-content: space-between;
  2670. }
  2671. .have_sold {
  2672. font-size: 24rpx;
  2673. color: #9a9a9a;
  2674. }
  2675. .topic_back_icon {
  2676. width: 60rpx;
  2677. height: 38rpx;
  2678. margin-left: 20rpx;
  2679. }
  2680. .topic_name {
  2681. width: 100%;
  2682. text-align: center;
  2683. margin-left: -58rpx;
  2684. }
  2685. .hide_sold_wrap {
  2686. width: 100%;
  2687. position: absolute;
  2688. bottom: 20rpx;
  2689. left: 0;
  2690. display: flex;
  2691. justify-content: space-between;
  2692. }
  2693. // 导航分组
  2694. .nav_group {
  2695. padding: 0 86rpx;
  2696. display: flex;
  2697. flex-wrap: wrap;
  2698. justify-content: space-between;
  2699. .nav_group_item {
  2700. display: flex;
  2701. align-items: center;
  2702. justify-content: center;
  2703. padding-top: 40rpx;
  2704. margin-bottom: 40rpx;
  2705. image {
  2706. width: 90rpx;
  2707. height: 90rpx;
  2708. border-radius: 50%;
  2709. margin-right: 20rpx;
  2710. }
  2711. .nav_group_name {
  2712. font-size: 26rpx;
  2713. color: #333;
  2714. }
  2715. }
  2716. .nav_group_item:nth-last-child(1) {
  2717. margin-right: 0;
  2718. }
  2719. }
  2720. .nav_group>view:nth-child(2n) {
  2721. margin-right: 0;
  2722. }
  2723. // 导航分组end
  2724. .rec_goods_wrap>view:nth-child(2n) {
  2725. margin-right: 0 !important;
  2726. }
  2727. .carousel-section /deep/ .uni-swiper__warp /deep/ .uni-swiper__dots-box /deep/ .uni-swiper__dots-item {
  2728. width: 16rpx !important;
  2729. }
  2730. .deco_wrap_no_top_cat {
  2731. margin-top: 60px !important;
  2732. /* #ifdef APP-PLUS */
  2733. margin-top: calc(var(--status-bar-height) + 60px) !important;
  2734. /* #endif */
  2735. }
  2736. .rich_text /deep/ div .ql-align-center {
  2737. text-align: center;
  2738. }
  2739. .rich_text /deep/ div .ql-align-right {
  2740. text-align: right;
  2741. }
  2742. .rich_text /deep/ div .ql-align-left {
  2743. text-align: left;
  2744. }
  2745. /* #ifdef MP*/
  2746. .rich_text {
  2747. text-align: center;
  2748. }
  2749. /* #endif */
  2750. /* 短视频模块 */
  2751. /* 方案1 */
  2752. .svideo {
  2753. background-color: #FFFFFF;
  2754. margin-top: 20rpx;
  2755. // width: 100%;
  2756. box-sizing: border-box;
  2757. }
  2758. .svideo_title {
  2759. width: 100%;
  2760. font-family: PingFang SC;
  2761. color: #2D2D2D;
  2762. display: flex;
  2763. justify-content: space-between;
  2764. align-items: center;
  2765. padding: 20rpx 20rpx 20rpx 20rpx;
  2766. box-sizing: border-box;
  2767. }
  2768. .svideo_title_l {
  2769. font-size: 32rpx;
  2770. font-weight: bold;
  2771. }
  2772. .svideo_title_r {
  2773. font-size: 26rpx;
  2774. color: #666666;
  2775. font-weight: 600;
  2776. }
  2777. .svideo_main {
  2778. width: 100%;
  2779. padding: 0 20rpx 20rpx;
  2780. box-sizing: border-box;
  2781. color: #FFFFFF;
  2782. display: flex;
  2783. justify-content: space-between;
  2784. }
  2785. .svideo_main_block {
  2786. border-radius: 16rpx;
  2787. overflow: hidden;
  2788. background-color: #3a4db8;
  2789. position: relative;
  2790. height: 345rpx;
  2791. width: 345rpx;
  2792. }
  2793. .svideo_main_block_l {
  2794. margin-left: 0;
  2795. }
  2796. .svideo_main_block_r {
  2797. margin-right: 0;
  2798. }
  2799. .svideo_main_block_t {
  2800. margin: 10rpx 0 0 10rpx;
  2801. height: 36rpx;
  2802. line-height: 36rpx;
  2803. font-size: 20rpx;
  2804. background: rgba(0, 0, 0, 0.2);
  2805. padding-right: 10rpx;
  2806. border-radius: 16rpx;
  2807. position: relative;
  2808. display: inline-block;
  2809. display: flex;
  2810. align-items: center;
  2811. }
  2812. .svideo_main_block_lt {
  2813. height: 100%;
  2814. font-size: 18rpx;
  2815. // background: url("http://site7.55jimu.com/data/upload/mall/store/goods/301/301_06506538074418754.jpg");
  2816. background-color: rgba(0, 0, 0, 0.2);
  2817. padding: 3rpx 10rpx 3rpx 6rpx;
  2818. border-radius: 0 0 16rpx 0;
  2819. position: relative;
  2820. display: flex;
  2821. align-items: center;
  2822. }
  2823. .svideo_main_block_t0 {
  2824. margin: 0 16rpx 16rpx 0;
  2825. border-radius: 0rpx 0rpx 20rpx 0;
  2826. padding: 5rpx 15rpx 5rpx 0rpx;
  2827. }
  2828. .svideo_block_t_img {
  2829. // position: absolute;
  2830. // left: 0;
  2831. // top: 3rpx;
  2832. width: 36rpx;
  2833. height: 36rpx;
  2834. }
  2835. .svideo_block_t_img0 {
  2836. width: 24rpx;
  2837. height: 24rpx;
  2838. // margin-top: 4rpx;
  2839. margin-left: 6rpx;
  2840. margin-right: 7rpx;
  2841. }
  2842. .svideo_block_t_img1 {
  2843. width: 22rpx;
  2844. height: 22rpx;
  2845. // margin-top: 6rpx;
  2846. }
  2847. .svideo_block_t_img2 {
  2848. // margin-top: -4rpx;
  2849. }
  2850. .svideo_block_t_img2zb {
  2851. margin-top: -1rpx;
  2852. margin-left: 4rpx;
  2853. }
  2854. .svideo_block_t_img24 {
  2855. margin-top: 1rpx;
  2856. }
  2857. .svideo_main_block_b {
  2858. font-size: 26rpx;
  2859. white-space: nowrap;
  2860. text-overflow: ellipsis;
  2861. overflow: hidden;
  2862. word-break: break-all;
  2863. position: absolute;
  2864. bottom: 20rpx;
  2865. padding: 0 20rpx;
  2866. width: 100%
  2867. }
  2868. .svideo_block_t_text {
  2869. // padding-left: 35rpx;
  2870. }
  2871. .svideo_block_t_text2 {
  2872. padding-left: 6rpx;
  2873. font-size: 22rpx;
  2874. }
  2875. /* 方案2 */
  2876. .svideo_main2 {
  2877. color: #FFFFFF;
  2878. flex-direction: row;
  2879. overflow: auto;
  2880. flex-wrap: nowrap;
  2881. width: auto;
  2882. box-sizing: border-box;
  2883. padding: 0 20rpx;
  2884. }
  2885. .svideo_main_block2 {
  2886. margin: 0 20rpx 10rpx 20rpx;
  2887. border-radius: 16rpx;
  2888. overflow: hidden;
  2889. background-color: #3a4db8;
  2890. position: relative;
  2891. height: 224rpx;
  2892. width: 224rpx;
  2893. display: inline-block;
  2894. }
  2895. .svideo_main2_scroll {
  2896. min-width: 100%;
  2897. }
  2898. .svideo_main_block_c2 {
  2899. margin: 20rpx 0;
  2900. }
  2901. .svideo_main_block_l2 {
  2902. margin-left: 0;
  2903. }
  2904. .svideo_main_block_b2 {
  2905. font-size: 24rpx;
  2906. white-space: nowrap;
  2907. text-overflow: ellipsis;
  2908. overflow: hidden;
  2909. word-break: break-all;
  2910. position: absolute;
  2911. bottom: 0rpx;
  2912. box-sizing: border-box;
  2913. padding-left: 10rpx;
  2914. padding-right: 8rpx;
  2915. width: 100%;
  2916. height: 40rpx;
  2917. line-height: 40rpx;
  2918. background-color: rgba(0, 0, 0, 0.3);
  2919. }
  2920. .svideo_main_block_b2_zb text {
  2921. width: 85%;
  2922. white-space: nowrap;
  2923. text-overflow: ellipsis;
  2924. overflow: hidden;
  2925. word-break: break-all;
  2926. display: inline-block;
  2927. }
  2928. /* 方案三 */
  2929. .svideo_main3 {
  2930. color: #FFFFFF;
  2931. flex-direction: row;
  2932. overflow: hidden;
  2933. flex-wrap: nowrap;
  2934. width: auto;
  2935. }
  2936. .svideo_main_block3 {
  2937. margin: 20rpx;
  2938. border-radius: 16rpx;
  2939. overflow: hidden;
  2940. background-color: #3a4db8;
  2941. position: relative;
  2942. height: 345rpx;
  2943. width: 345rpx;
  2944. display: inline-block;
  2945. }
  2946. .svideo_main_block_l3 {
  2947. width: 280rpx;
  2948. height: 280rpx;
  2949. }
  2950. .svideo_main3_scroll {
  2951. width: 180vw;
  2952. vertical-align: middle;
  2953. display: flex;
  2954. align-items: center;
  2955. margin-left: -140rpx;
  2956. }
  2957. .svideo_main_block_c3 {
  2958. margin-left: 0;
  2959. margin-right: 0;
  2960. }
  2961. .svideo_main_block_r3 {
  2962. width: 280rpx;
  2963. height: 280rpx;
  2964. }
  2965. .svideo_main_block_b3 {
  2966. font-size: 26rpx;
  2967. background: rgba(1, 1, 1, 0.2);
  2968. padding: 0 24rpx;
  2969. color: #FFFFFF;
  2970. border-radius: 24rpx;
  2971. height: 100%;
  2972. }
  2973. .svideo_main_block_b3_w {
  2974. display: flex;
  2975. justify-content: center;
  2976. align-items: center;
  2977. position: absolute;
  2978. left: 0;
  2979. bottom: 20rpx;
  2980. right: 0;
  2981. height: 48rpx;
  2982. line-height: 48rpx;
  2983. }
  2984. /* 方案4 */
  2985. .svideo_main4 {
  2986. color: #FFFFFF;
  2987. flex-direction: row;
  2988. overflow: auto;
  2989. flex-wrap: nowrap;
  2990. width: auto;
  2991. padding: 0 20rpx;
  2992. }
  2993. .svideo_main_block4 {
  2994. margin: 0 20rpx 20rpx 20rpx;
  2995. margin-left: 0;
  2996. border-radius: 16rpx;
  2997. overflow: hidden;
  2998. background-color: #3a4db8;
  2999. position: relative;
  3000. height: 300rpx;
  3001. width: 300rpx;
  3002. display: inline-block;
  3003. }
  3004. .scroll-view {
  3005. width: 100%;
  3006. white-space: nowrap;
  3007. }
  3008. .svideo_main_block_b4 {
  3009. font-size: 24rpx;
  3010. position: absolute;
  3011. bottom: 0rpx;
  3012. box-sizing: border-box;
  3013. margin-left: 30rpx;
  3014. margin-right: 30rpx;
  3015. width: 100%;
  3016. height: 90rpx;
  3017. line-height: 110rpx;
  3018. /* 换图片 */
  3019. }
  3020. .svideo_main_block_b4_text {
  3021. position: absolute;
  3022. left: 20rpx;
  3023. top: 0;
  3024. right: 20rpx;
  3025. height: 90rpx;
  3026. line-height: 90rpx;
  3027. text-align: center;
  3028. z-index: 683;
  3029. white-space: nowrap;
  3030. text-overflow: ellipsis;
  3031. overflow: hidden;
  3032. word-break: break-all;
  3033. box-sizing: border-box;
  3034. margin-top: 16rpx;
  3035. font-size: 24rpx;
  3036. }
  3037. .svideo_main_block_b40 {
  3038. margin-left: 0;
  3039. margin-right: 0;
  3040. }
  3041. .svideo_block_t_text4 {
  3042. font-size: 20rpx;
  3043. // padding-left: 20rpx;
  3044. }
  3045. /* -------------方案5--------- */
  3046. .svideo_main5 {
  3047. width: 100%;
  3048. color: #FFFFFF;
  3049. display: flex;
  3050. flex-direction: row;
  3051. overflow: auto;
  3052. flex-wrap: nowrap;
  3053. width: auto;
  3054. background-color: #F8F8F8;
  3055. padding: 0 20rpx;
  3056. box-sizing: border-box;
  3057. justify-content: space-between;
  3058. }
  3059. .svideo_main_block5 {
  3060. display: inline-block;
  3061. border-radius: 16rpx;
  3062. overflow: hidden;
  3063. width: 345rpx;
  3064. }
  3065. .svideo_main_block50 {
  3066. position: relative;
  3067. }
  3068. .svideo_block_bgimg0 {
  3069. height: 274rpx;
  3070. width: 346rpx
  3071. }
  3072. .svideo5_b {
  3073. background-color: #fff;
  3074. height: 146rpx;
  3075. display: flex;
  3076. flex-direction: column;
  3077. justify-content: center;
  3078. align-items: center;
  3079. }
  3080. .svideo5_b_title {
  3081. width: 290rpx;
  3082. color: #333333;
  3083. font-size: 28rpx;
  3084. font-weight: bold;
  3085. margin-top: 16rpx;
  3086. white-space: nowrap;
  3087. text-overflow: ellipsis;
  3088. overflow: hidden;
  3089. }
  3090. .svideo5_b_text {
  3091. width: 290rpx;
  3092. color: #666666;
  3093. font-size: 26rpx;
  3094. white-space: nowrap;
  3095. text-overflow: ellipsis;
  3096. overflow: hidden;
  3097. }
  3098. .svideo_block_t5_w {
  3099. display: flex;
  3100. justify-content: center;
  3101. margin-top: 32rpx;
  3102. }
  3103. .svideo_block_t5 {
  3104. margin: 16rpx;
  3105. height: 32rpx;
  3106. line-height: 34rpx;
  3107. font-size: 20rpx;
  3108. background-color: rgba(1, 1, 1, 0.7);
  3109. padding: 0 20rpx;
  3110. border-radius: 16rpx;
  3111. position: relative;
  3112. display: inline-block;
  3113. color: #FFFFFF;
  3114. opacity: 0.7;
  3115. margin-bottom: 30rpx;
  3116. z-index: 99;
  3117. }
  3118. .svideo_block_bgimg1_wrap {
  3119. display: flex;
  3120. justify-content: center;
  3121. align-items: center;
  3122. }
  3123. .svideo_block_bgimg1 {
  3124. width: 230rpx;
  3125. height: 230rpx;
  3126. border-radius: 115rpx;
  3127. overflow: hidden;
  3128. background-color: red;
  3129. display: flex;
  3130. justify-content: center;
  3131. align-items: center;
  3132. position: relative;
  3133. }
  3134. .svideo_block_bgimg2 {
  3135. width: 40rpx;
  3136. height: 40rpx;
  3137. }
  3138. .svideo_block_bgimg3 {
  3139. position: absolute;
  3140. width: 60rpx;
  3141. height: 60rpx;
  3142. }
  3143. /* ------------- 直播列表/短视频列表*/
  3144. .svideo_main_block_zb {
  3145. font-size: 26rpx;
  3146. white-space: nowrap;
  3147. text-overflow: ellipsis;
  3148. overflow: hidden;
  3149. word-break: break-all;
  3150. position: absolute;
  3151. bottom: 10rpx;
  3152. padding: 0 20rpx;
  3153. width: 80%
  3154. }
  3155. .live_list_b {
  3156. width: 346rpx;
  3157. border-radius: 16rpx;
  3158. overflow: hidden;
  3159. margin: 10rpx 0 10rpx 0;
  3160. }
  3161. .live_list_b_img {
  3162. width: 100%;
  3163. height: 346rpx;
  3164. overflow: hidden;
  3165. position: relative;
  3166. }
  3167. .live_list_b_img_img {
  3168. position: absolute;
  3169. width: 346rpx;
  3170. height: 346rpx;
  3171. }
  3172. .live_list_b_img_hua {
  3173. position: absolute;
  3174. width: 90rpx;
  3175. height: 300rpx;
  3176. right: 5rpx;
  3177. bottom: 3rpx;
  3178. z-index: 990
  3179. }
  3180. .live_list_b_img_hua1 {
  3181. bottom: 10rpx;
  3182. }
  3183. .live_list_b_text {
  3184. font-size: 20rpx;
  3185. color: #fff;
  3186. margin-left: 30rpx;
  3187. }
  3188. .live_list_b_tip2 {
  3189. padding: 4rpx 10rpx;
  3190. height: 30rpx;
  3191. display: flex;
  3192. justify-content: center;
  3193. align-items: center;
  3194. background-image: url("http://site7.55jimu.com/data/upload/mall/store/goods/301/301_06506538074418754.jpg");
  3195. /* 换地址,要用服务器地址 */
  3196. border-radius: 16rpx;
  3197. margin-left: 12rpx;
  3198. margin-top: 10rpx;
  3199. position: relative;
  3200. }
  3201. .live_list_img_bottom1 {
  3202. font-size: 30rpx;
  3203. padding: 10rpx 10rpx 4rpx 10rpx;
  3204. color: #2D2D2D;
  3205. text-overflow: -o-ellipsis-lastline;
  3206. overflow: hidden;
  3207. text-overflow: ellipsis;
  3208. display: -webkit-box;
  3209. -webkit-line-clamp: 2;
  3210. line-clamp: 2;
  3211. -webkit-box-orient: vertical;
  3212. }
  3213. .live_list_main5 {
  3214. display: flex;
  3215. flex-wrap: wrap;
  3216. flex-direction: row;
  3217. overflow: auto;
  3218. width: auto;
  3219. justify-content: space-between;
  3220. padding: 20rpx;
  3221. background-color: #fff;
  3222. }
  3223. .live_list_text3 {
  3224. border-radius: 15rpx;
  3225. background-color: red;
  3226. font-size: 22rpx;
  3227. padding: 0 10rpx;
  3228. color: #fff;
  3229. line-height: 30rpx;
  3230. position: absolute;
  3231. right: -1rpx;
  3232. top: 4rpx;
  3233. }
  3234. .live_list_text30 {
  3235. background-color: #BCAEFE;
  3236. }
  3237. .live_panic_buy3 {
  3238. border: none;
  3239. position: relative;
  3240. }
  3241. .live_panic_time_i {
  3242. white-space: nowrap;
  3243. text-overflow: ellipsis;
  3244. overflow: hidden;
  3245. word-break: break-all;
  3246. width: 35%;
  3247. color: #9A9A9A;
  3248. margin: 0 8rpx
  3249. }
  3250. .live_panic_time_v {
  3251. width: 60%;
  3252. }
  3253. .active_panic_time_img2 {
  3254. width: 40rpx;
  3255. height: 40rpx;
  3256. margin-right: 5rpx;
  3257. border-radius: 20rpx;
  3258. overflow: hidden;
  3259. }
  3260. /* ------ */
  3261. .active_panic_text2 {
  3262. margin: 0 5rpx;
  3263. }
  3264. .active_top_tip20 {
  3265. font-size: 22rpx;
  3266. padding-top: 0;
  3267. padding-bottom: 0;
  3268. line-height: 30rpx;
  3269. }
  3270. .active .tab_nav_block_t {
  3271. color: #FC1C1C;
  3272. font-size: 30rpx;
  3273. border-bottom: 2px solid #FC1C1C;
  3274. font-weight: bold
  3275. }
  3276. .active .tab_nav_block_i {
  3277. color: #FC1C1C;
  3278. font-size: 22rpx
  3279. }
  3280. .video_bg {
  3281. width: 100%;
  3282. height: 100%;
  3283. z-index: 99;
  3284. }
  3285. .video_bg1 {
  3286. width: 100%;
  3287. height: 100%;
  3288. position: absolute;
  3289. left: 0;
  3290. top: 0;
  3291. background-position: center center;
  3292. // background-size: contain;
  3293. background-size: cover;
  3294. background-repeat: no-repeat;
  3295. }
  3296. .svideo_main_block_w {
  3297. z-index: 99;
  3298. position: absolute;
  3299. top: 0;
  3300. left: 0;
  3301. }
  3302. .svideo_main_block_sw {
  3303. z-index: 3;
  3304. position: absolute;
  3305. top: 0;
  3306. left: 0;
  3307. width: 40rpx;
  3308. height: 50rpx;
  3309. }
  3310. .svideo_main_block_lw {
  3311. z-index: 3;
  3312. position: absolute;
  3313. top: 0;
  3314. left: 0;
  3315. }
  3316. .video_bg3 {
  3317. z-index: 3;
  3318. position: absolute;
  3319. top: 0;
  3320. left: 0;
  3321. width: 184px;
  3322. height: 163px;
  3323. // opacity: 0.2;
  3324. }
  3325. .svideo_main5>view:nth-child(1) .svideo_bg_img {
  3326. position: absolute;
  3327. top: 0;
  3328. left: 0;
  3329. background: #B9E5FF;
  3330. opacity: 0.7;
  3331. width: 184px;
  3332. height: 163px;
  3333. z-index: 10;
  3334. }
  3335. .svideo_main5>view:nth-child(2) .svideo_bg_img {
  3336. position: absolute;
  3337. top: 0;
  3338. left: 0;
  3339. background: #FFCEB9;
  3340. opacity: 0.7;
  3341. width: 184px;
  3342. height: 163px;
  3343. z-index: 10;
  3344. }
  3345. </style>