123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664 |
- <template>
- <view :class="isCookie == true ? 'container prevent' : 'container' ">
- <!-- 小程序头部兼容 -->
- <view class="mp-search-box" v-if="is_show_top == true" :style="{background:pure_bg_color}">
- <image class="return" @click="back" :src="imgUrl+'point/return.png'" mode=""></image>
- <view class="title">
- {{$L('积分商城')}}
- </view>
- <image v-if="activity_open" class="search" @click="goSearch" :src="imgUrl+'point/search.png'" mode=""></image>
- </view>
- <!-- 头部分类 -->
- <tab-menu :backGround="pure_bg_color" :tabInfo="sort_nav_list" @getChildList="getChildList" v-if="activity_open&&is_show_top == true && home_is_show_top_cat"></tab-menu>
- <!-- 头部轮播 -->
- <!-- 头部轮播 -->
- <!-- 首页装修 -->
- <view v-if="activity_open&&is_show_index == true && isShow == true" :class="isShowTab == true?(home_is_show_top_cat?'deco_wrap':'deco_wrap_no_top_cat'):'deco_wrap2'"
- :style="{marginTop:is_show_top == false?'110rpx':'',marginTop:isIos?'-22rpx':0}">
- <view class="index_deco" v-for="(decoItem,decoIndex) in deco_info" :key="decoIndex">
- <view class="carousel-section deco_carousel-section" style="padding-top: 10rpx;" v-if="decoItem.type == 'top_cat_nav' && decoItem.data.length>0">
- <!-- 背景色区域 -->
- <view :class="decoItem.swiper_bg_style == 1?'titleNview-background top_swiper_style1':'titleNview-background top_swiper_style2'"
- :style="{background:titleNViewBackground,borderRadius:decoItem.swiper_bg_style == 1?'border_radius':'0'}"></view>
- <uni-swiper-dot :current="swiperCurrent" :info="decoItem.data" mode="dot" :dotsStyles="dotsStyles">
- <swiper class="carousel" circular @change="swiperChange" autoplay="true" :style="{margin:isIos?'10rpx':0}">
- <swiper-item v-for="(item, index) in decoItem.data" :key="index" class="carousel-item" @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.labelName)">
- <image :src="item.img" />
- </swiper-item>
- </swiper>
- </uni-swiper-dot>
- </view>
- <!-- 公告 -->
- <view class="notice_box" v-if="decoItem.type == 'gonggao' && decoItem.is_show == true">
- <!-- 公告样式一 -->
- <view class="notice_wrap1" v-if="decoItem.type == 'gonggao' && decoItem.show_style == 'one'" @click="skipTo(decoItem.url_type,decoItem.url,decoItem.info.productId || decoItem.info.defaultProductId,decoItem.info.pid,decoItem.info.labelName)">
- <image :src="noticeImg1" mode="" class="notice_img1"></image>
- <marquee class="notice_content_wrap" broadcastType="text" direction="left" :broadcastData="[decoItem.text]"
- :broadcastStyle="broadcastStyle1"></marquee>
- <view class="notice_wrap1_line"></view>
- <view class="notice_more">>></view>
- </view>
- <!-- 公告样式二 -->
- <view class="notice_wrap2" v-if="decoItem.type == 'gonggao' && decoItem.show_style == 'two'" @click="skipTo(decoItem.url_type,decoItem.url,decoItem.info.productId || decoItem.info.defaultProductId,decoItem.info.pid,decoItem.info.labelName)">
- <image :src="noticeImg2" mode="" class="notice_img2"></image>
- <marquee class="notice_content_wrap2" broadcastType="text" direction="left" :broadcastData="[decoItem.text]"
- :broadcastStyle="broadcastStyle2"></marquee>
- <view class="notice_wrap2_line"></view>
- <view class="notice_more">>></view>
- </view>
- </view>
- <view class="nav_wrap" v-if="decoItem.type == 'nav' && decoItem.is_show == true">
- <!-- 导航样式一、二(图标在上/不显示图标) -->
- <view class="cate-section" v-if="decoItem.style_set == 'nav' && decoItem.icon_set == 'up' || decoItem.icon_set == 'no-icon' && decoItem.is_show == true">
- <view class="cate-item" v-for="(item,index) in decoItem.data" :key="index" @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.labelName)">
- <image :src="item.img" v-if="decoItem.icon_set == 'up'"></image>
- <text>{{filters.toSubstring(item.name,0,9)}}</text>
- </view>
- </view>
- <!-- 导航样式三 (图标文字左右显示)-->
- <view class="cate-section" v-if="decoItem.style_set == 'nav' && decoItem.icon_set == 'left' && decoItem.is_show == true"
- style="justify-content: flex-start;padding:20rpx 2rpx;">
- <view class="cate-item2" v-for="(item,index) in decoItem.data" :key="index" @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.labelName)">
- <image :src="item.img" style="margin-right:10rpx;" mode="aspectFit"></image>
- <view class="cate_name">{{filters.toSubstring(item.name,0,9)}}</view>
- </view>
- </view>
- <!-- 导航分组 -->
- <view class="nav_group" v-if="decoItem.style_set == 'tag-nav' && decoItem.is_show == true ">
- <view class="nav_group_item" v-for="(item,index) in decoItem.data" :key="index" @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.labelName)">
- <image :src="item.img" mode="aspectFit"></image>
- <view class="nav_group_name">{{item.name}}</view>
- </view>
- </view>
- </view>
- <!-- 客服 -->
- <view class="service_wrap" v-if="decoItem.type == 'kefu' && decoItem.is_show == true" @click="callUp(decoItem.tel)">
- <image :src="telImg" mode=""></image>
- <text>{{decoItem.text}}{{decoItem.tel}}</text>
- </view>
- <!-- 富文本 -->
- <view class="rich_text_wrap" v-if="decoItem.type == 'fuwenben' && decoItem.is_show == true">
- <rich-text :nodes="decoItem.text" class="rich_text"></rich-text>
- </view>
- <!-- 图片组合 -->
- <view class="combination_wrap" v-if="decoItem.type == 'tupianzuhe'">
- <!-- 图片组合0123 -->
- <view v-if="decoItem.type == 'tupianzuhe' && decoItem.sele_style<4" style="background-color: #fff;">
- <view class="modules-slide">
- <view :class="'image-list style' + decoItem.sele_style" v-if="decoItem.sele_style<3">
- <view :class="decoItem.sele_style == 2?'combination_style no_margin_right flex_row_start_start tupianzuhe2':'space_between combination_style'"
- :style="{'display':decoItem.sele_style < 2?'block':'flex'}">
- <view v-for="(childitem, childindex) in decoItem.data" :key="childindex" :class="decoItem.sele_style < 2?'combine1':'combine2'"
- :style="{'marginTop':decoItem.sele_style == 1?'20rpx':'0','marginRight':decoItem.sele_style < 3?'0':'20rpx','marginBottom':decoItem.sele_style < 3?'0':'20rpx'}">
- <view class="flex_column_start_center" v-if="decoItem.sele_style == 0||decoItem.sele_style == 1">
- <image v-if="decoItem.sele_style == 0 " @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.labelName)"
- mode="aspectFit" :src="childitem.img" :style="{'display': 'block','width':'750rpx','height':(750*childitem.height/childitem.width)+'rpx'}"></image>
- <image v-if="decoItem.sele_style == 1" @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.labelName)"
- mode="aspectFit" :src="childitem.img" :style="{'display': 'block','width':'710rpx','height':(710*childitem.height/childitem.width)+'rpx','margin-bottom':childindex == (decoItem.data.length-1)?'20rpx':0}"></image>
- </view>
- <view class="flex_row_center_center combine3" v-if="decoItem.sele_style == 2" :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'}">
- <image @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.labelName)"
- mode="aspectFit" :src="childitem.img" style="width: 100%;height: 100%;"></image>
- </view>
- </view>
- </view>
- </view>
- <view :class="'image-list style' + decoItem.sele_style" v-if="decoItem.sele_style == 3">
- <view class="combination_style no_margin_right2" style="display: flex;margin-bottom: 20rpx;flex-wrap:wrap">
- <view v-for="(childitem, childindex) in decoItem.data" :key="childindex" class="combine2">
- <view class="combine4" :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')),}">
- <image @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.labelName)"
- mode="aspectFit" :src="childitem.img"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!--图片组合4 -->
- <view v-if="decoItem.type == 'tupianzuhe' && decoItem.sele_style == 4" style="background-color: #fff;">
- <view class="modules-slide">
- <view class="image-ad clearfix images-tpl">
- <view style="display: flex;">
- <view class="tupianzuhe04_left flex_row_center_center" @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.labelName">
- <image mode="aspectFit" :src="decoItem.data[0].img"></image>
- </view>
- <view style="display: flex;flex-direction: column;justify-content: space-between;">
- <view class="tupianzuhe04_right_item flex_row_center_center" @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.labelName)">
- <image mode="aspectFit" :src="decoItem.data[1].img"></image>
- </view>
- <view class="tupianzuhe04_right_item flex_row_center_center" @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.labelName)">
- <image mode="aspectFit" :src="decoItem.data[2].img"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 图片组合5 6 display: flex;flex-wrap:wrap;-->
- <view v-if="decoItem.type == 'tupianzuhe'&& decoItem.sele_style == 5 || decoItem.sele_style == 6" style="background-color: #fff;">
- <view class="modules-slide">
- <view class="image-ad clearfix images-tpl" style="padding-top: 0;">
- <view class="combine5_wrap" style="display:flex;flex-wrap:wrap;width:100%;" v-if="decoItem.sele_style == 5">
- <view v-for="(childitem, childindex) in decoItem.data" :key="childindex" class="combine5 flex_row_center_center"
- @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.labelName)"
- :style="{width: childindex == 0 || childindex == 3 ? 230 +'rpx' : 460 + 'rpx',
- height: '230rpx',marginTop:'20rpx',marginLeft:'20rpx',backGround:'red'}">
- <image mode="aspectFit" :src="childitem.img" style="width: 100%;height: 100%;"></image>
- </view>
- </view>
- <view class="" v-if="decoItem.sele_style == 6" style="display:flex;">
- <view class="combine6" style="margin-left: 20rpx;">
- <view class="flex_row_center_center" :style="{width:'345rpx',height:345/2+'rpx','flex-shrink':0,'margin-bottom':'20rpx'}"
- @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.labelName)">
- <image :src="decoItem.data[0].img" mode="aspectFit" style="width: 100%;height: 100%;"></image>
- </view>
- <view class="flex_row_center_center" :style="{width: '345rpx',height:'345rpx','flex-shrink':0}" @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.labelName)">
- <image :src="decoItem.data[1].img" mode="aspectFit" style="width: 100%;height: 100%;"></image>
- </view>
- </view>
- <view class="combine6">
- <view class="flex_row_center_center" :style="{width: '345rpx',height:'345rpx','flex-shrink':0,'margin-bottom':'20rpx'}"
- @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.labelName)">
- <image :src="decoItem.data[2].img" mode="aspectFit" style="width: 100%;height: 100%;"></image>
- </view>
- <view class="flex_row_center_center" :style="{width: '345rpx',height:345/2+'rpx','flex-shrink':0}" @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.labelName)">
- <image :src="decoItem.data[3].img" mode="aspectFit" style="width: 100%;height: 100%;"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 图片组合7-->
- <view v-if="decoItem.sele_style == 7" data-index="index" style="background-color: #fff;">
- <view class="modules-slide">
- <view class="image-ad images-tpl" style="display: flex;justify-content: flex-start;align-items: center;padding-top: 0;">
- <view :style="{'display': 'flex','flex-wrap':'wrap','width':(670/3*2+61)+'rpx',}">
- <view class="flex_row_center_center" v-for="(childitem, childindex) in decoItem.data" v-if="childindex<4" :key="childindex"
- @click="skipTo(childitem.url_type,childitem.url,childitem.info.productId || childitem.info.defaultProductId,childitem.info.pid,childitem.info.labelName)"
- :style="{'margin-left':'20rpx',width:670/3+'rpx',height:670/3+'rpx',marginTop:'20rpx','flex-shrink':0}">
- <image mode="aspectFit" :src="childitem.img" style="width: 100%;height: 100%;"></image>
- </view>
- </view>
- <view class="flex_row_center_center" v-if="decoItem.data[4]" @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.labelName)"
- :style="{'margin-top':'20rpx',width:670/3+'rpx',height: (670/3*2+20) +'rpx'}">
- <image mode="aspectFit" :src="decoItem.data[4].img" style="width: 100%;height: 100%;"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 搭配 -->
- <view class="match_wrap" v-if="decoItem.type == 'dapei' && decoItem.is_show == true">
- <view class="match_top">
- <view class="match_top_title" v-if="decoItem.dapei_title">{{decoItem.dapei_title}}</view>
- <view class="match_image_wrap flex_row_center_center">
- <image :src="decoItem.dapei_img" mode="" class="match_image" :style="{width:'710rpx',height:710*decoItem.height/decoItem.width+'rpx'}"></image>
- </view>
- <view class="match_top_text" v-if="decoItem.dapei_desc">{{decoItem.dapei_desc}}</view>
- </view>
- <view class="match_main_wrap">
- <view class="match_main" v-if="decoItem && decoItem.data && decoItem.data.info">
- <view class="match_item" v-for="(item,index) in decoItem.data.info" :key="index" @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
- <view class="match_goods_img">
- <image :src="item.mainImage" mode="aspectFit"></image>
- </view>
- <view class="match_goods_name">{{item.goodsName}}</view>
- <view class="match_goods_price">
- <text class="small_price">¥</text>
- <text class="big_price">{{filters.toSplit(filters.toFix(item.goodsPrice))[0]}}</text>.
- <text class="small_price">{{filters.toSplit(filters.toFix(item.goodsPrice))[1]}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 辅助线 -->
- <view class="subline_wrap" v-if="decoItem.type == 'fzx' && decoItem.is_show == true" :style="{paddingLeft:decoItem.lrmargin*2+'rpx',paddingRight:decoItem.lrmargin*2+'rpx',marginTop:decoItem.tbmargin*2+'rpx',marginBottom:decoItem.tbmargin*2+'rpx'}">
- <view class="subline" :style="{height:decoItem.tbmargin+'px',borderBottomColor:decoItem.color,borderBottomStyle:decoItem.val}"></view>
- <view :style="{height:decoItem.tbmargin+'px'}"></view>
- </view>
- <!-- 轮播图 -->
- <view class="carousel_bottom_wrap" v-if="decoItem.type == 'lunbo' && decoItem.is_show == true" style="padding:0;">
- <swiper class="carousel carousel_bottom" circular autoplay="true" :style="{width:decoItem.width+'rpx',height:decoItem.height+'rpx'}">
- <swiper-item v-for="(item, index) in decoItem.data" :key="index" class="carousel-item" style="padding:0;" @click="skipTo(item.url_type,item.url,item.info.productId || item.info.defaultProductId,item.info.pid,item.info.labelName)">
- <image :src="item.img" class="carousel_img" />
- </swiper-item>
- </swiper>
- </view>
- <!-- 推荐商品样式一 -->
- <view class="recommend_goods_wrap" v-if="decoItem.type == 'tuijianshangpin' && decoItem.show_style == 'small'"
- style="padding:0">
- <view :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'}"
- class="rec_goods_wrap">
- <recommendItemV :goods_info="item" :show_sale="decoItem.isshow_sales == 1?true:false" :icon_type="decoItem.cart_icon_type"
- :height="225" :border_radius="decoItem.border_radius" :border_style="decoItem.border_style" :goods_margin="decoItem.goods_margin"
- :page_margin="decoItem.page_margin" v-for="(item,index) in decoItem.data.info" :key="index" @click="skipTo(decoItem.type,item.gid,item.info)">
- </recommendItemV>
- </view>
- </view>
- <!-- 推荐商品样式二 -->
- <view class="recommend_goods_wrap" v-if="decoItem.type == 'tuijianshangpin' && decoItem.show_style == 'list' && decoItem.is_show == true"
- :style="{paddingLeft:decoItem.page_margin+'px',paddingRight:decoItem.page_margin+'px',marginTop:0,backgroundColor:decoItem.border_style == 'border_none_grey_bg'?'f8f8f8':'#fff'}">
- <view class="rec_goods_wrap">
- <recommendItemV :goods_info="item" :show_sale="decoItem.isshow_sales == 1?true:false" :icon_type="decoItem.cart_icon_type"
- :height="225" :border_radius="decoItem.border_radius" :border_style="decoItem.border_style" :goods_margin="decoItem.goods_margin"
- :page_margin="decoItem.page_margin" v-for="(item,index) in decoItem.data.info" :key="index" @click="skipTo(decoItem.type,item.gid,item.info)">
- </recommendItemV>
- <!-- <view class="recommend_goods1" v-for="(item,index) in decoItem.data.info" :key="index" :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'}">
- <view class="recommend_goods_img1" @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
- <image :src="item.mainImage" mode="aspectFill" :style="{borderRadius:border_radius2}"></image>
- </view>
- <view class="recommend_goods_right">
- <view class="recommend_goods_name" @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">{{item.goodsName}}</view>
- <view :class="decoItem.isshow_sales == 1?'':'hide_sold_wrap'">
- <view class="recommend_goods_price" :style="{position:decoItem.isshow_sales == 1?'absolute':'static'}">
- <text class="small_price">¥</text>
- <text class="big_price">{{$getPartNumber(item.goodsPrice,'int')}}</text>
- <text class="small_price">{{$getPartNumber(item.goodsPrice,'decimal')}}</text>
- </view>
- <view class="recommend_goods_bottom" :style="{position:decoItem.isshow_sales == 1?'absolute':'static',width:decoItem.isshow_sales == 1?'100%':'auto'}">
- <view class="have_sold" v-if="decoItem.isshow_sales == 1">已售{{item.actualSales}}件</view>
- <block>
- <image :src="imgUrl+'add-cart.png'" mode="" v-if="decoItem.cart_icon_type == 1" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- <image :src="icon2" mode="" v-if="decoItem.cart_icon_type == 2" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- <image :src="icon3" mode="" v-if="decoItem.cart_icon_type == 3" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- <image :src="icon4" mode="" v-if="decoItem.cart_icon_type == 4" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- </block>
- </view>
- </view>
- </view>
- </view> -->
- </view>
- </view>
- <!-- 推荐商品样式三 -->
- <view class="recommend_goods_wrap" v-if="decoItem.type == 'tuijianshangpin' && decoItem.show_style == 'big' && decoItem.is_show == true"
- :style="{paddingLeft:decoItem.page_margin+'px',paddingRight:decoItem.page_margin+'px',marginTop:0,backgroundColor:decoItem.border_style == 'border_none_grey_bg'?'f8f8f8':'#fff'}">
- <recommendItemV :goods_info="item" :show_sale="decoItem.isshow_sales == 1?true:false" :icon_type="decoItem.cart_icon_type"
- :height="225" :border_radius="decoItem.border_radius" :border_style="decoItem.border_style" :goods_margin="decoItem.goods_margin"
- :page_margin="decoItem.page_margin" v-for="(item,index) in decoItem.data.info" :key="index" @click="skipTo(decoItem.type,item.gid,item.info)">
- </recommendItemV>
- <!-- <view class="recommend_goods2" v-for="(item,index) in decoItem.data.info" :key="index" :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'}">
- <view class="recommend_goods_img2" @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">
- <image :src="item.mainImage" mode="aspectFill" :style="{borderRadius:border_radius1}"></image>
- </view>
- <view class="recommend_goods_bottom2" :style="{borderRadius:border_radius3}">
- <view class="recommend_goods_name2" @click="toGoodsDetail(item.productId || item.defaultProductId,item.goodsId)">{{item.goodsName}}</view>
- <view class="goods_bottom" :style="{flexDirection:decoItem.isshow_sales == 1?'':'row',justifyContent:decoItem.isshow_sales == 1?'':'space-between'}">
- <view class="recommend_goods_price" style="color:#FC1C1C;">
- <text class="small_price">¥</text>
- <text class="big_price">{{$getPartNumber(item.goodsPrice,'int')}}</text>
- <text class="small_price">{{$getPartNumber(item.goodsPrice,'decimal')}}</text>
- </view>
- <view class="recommond_goods3_wrap">
- <view class="have_sold" v-if="decoItem.isshow_sales == 1">已售{{item.actualSales}}件</view>
- <image :src="imgUrl+'add-cart.png'" mode="" v-if="decoItem.cart_icon_type == 1" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- <image :src="icon2" mode="" v-if="decoItem.cart_icon_type == 2" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- <image :src="icon3" mode="" v-if="decoItem.cart_icon_type == 3" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- <image :src="icon4" mode="" v-if="decoItem.cart_icon_type == 4" @click="addCart(item.productId || item.defaultProductId,item.goodsId,item)"></image>
- </view>
- </view>
- </view>
- </view> -->
- </view>
- <!-- 辅助空白 -->
- <view class="blank_wrap" v-if="decoItem.type == 'fzkb' && decoItem.id && decoItem.is_show == true" :style="{backgroundColor:decoItem.color,height:decoItem.text+'px'}"></view>
- <!-- tab切换 -->
- <sort-list :nav_list="decoItem.data" :isShowSale="false" :borderRadius="decoItem.border_radius" v-if="decoItem.type == 'more_tab' && decoItem.is_show == true"
- :card_height="225"></sort-list>
- </view>
- </view>
- <view class="carousel-section laber_banner_list" v-if="activity_open&&tab_index > 0&&laber_banner_list.length>0">
- <!-- 背景色区域 -->
- <view :class="swiper_bg_style == 1?'titleNview-background top_swiper_style1':'titleNview-background top_swiper_style2'"
- :style="{background:titleNViewBackground,borderRadius:swiper_bg_style == 1?'border_radius':'0'}"></view>
- <uni-swiper-dot mode="dot" :dotsStyles="dotsStyles">
- <swiper class="carousel" circular @change="labelSwiperChange" autoplay="true" :style="{margin:isIos?'10rpx':0}">
- <swiper-item v-for="(item, index) in laber_banner_list" :key="index" class="carousel-item" @click="skipTo(item.link_type,item.link_value,(item.info?(item.info.productId || item.info.defaultProductId):''),(item.info?item.info.pid:''),(item.info?item.info.labelName:''))">
- <image :src="item.imgUrl" />
- </swiper-item>
- </swiper>
- </uni-swiper-dot>
- </view>
- <!-- 顶部分类切换 -->
- <view :class="{sort_sub_wrap:true,laber_banner_list:laber_banner_list.length==0}" v-if="activity_open&&tab_index != 0 && sort_obj.children.length>0">
- <view class="sort_sub_top">
- <view class="sort_sub_item" v-for="(item,index) in sort_obj.children" :key="index" @click="goGoodsList(item.labelName,item.labelId)">
- <view class="sort_sub_img">
- <image :src="item.image" mode=""></image>
- </view>
- <view class="sort_sub_name">{{filterFun(item.labelName)}}</view>
- </view>
- <view class="see_more_wrap" @click="goGoodsList('more',sort_obj.labelId)" v-if="sort_obj.children.length>7">
- <view class="more_icon_circle">
- <image :src="imgUrl+'index/more.png'" mode="" class="more_icon"></image>
- </view>
- <view class="see_more_text">{{$L('查看更多')}}</view>
- </view>
- </view>
- <view class="sort_sub_goods">
- <recommendItemV :goods_info="item" :show_sale="false" :icon_type="1" :border_radius="8" :height="225" v-for="(item,index) in sort_obj.goodsList"
- :key="index"></recommendItemV>
- </view>
- <recommendItemList ref='recommendList'></recommendItemList>
- </view>
- <!-- 空首页装修 -->
- <view class="empty_sort_page" v-if="activity_open&&tab_index == 0&&deco_info == null" style="padding-top: 35vh;">
- <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
- <view class="empty_text">{{$L('首页暂未装修')}}</view>
- </view>
- <!-- 分类空页面 -->
- <view class="empty_sort_page" v-if="activity_open&&tab_index > 0 && is_show_empty == true">
- <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
- <view class="empty_text">{{$L('该分类暂无相关商品')}}</view>
- </view>
- <!-- 首页开屏框 start -->
- <view :class="pointIsCookie == true ? 'open_screen show-dialog' : 'open_screen hide-dialog'" v-if="activity_open&&pointIsCookie == true && home_page_img.length > 0 && home_page_img[0].imgUrl">
- <view :style="{ width: width + 'rpx', 'height': height + 'rpx' }" class="open_screen_con" @click="gotoGoods_detail">
- <view class="con_img" @click.stop="close_openScreen">
- <image :src="openscnImg"></image>
- </view>
- <image class="open_screen_con_img" :src="home_page_img[0].imgUrl"></image>
- </view>
- </view>
- <!-- 开屏框 end -->
- <!-- 活动未开启 start-->
- <notOpen v-if='!activity_open'></notOpen>
- <!-- 活动未开启 end -->
- </view>
- </template>
- <script module="filters" lang="wxs" src="@/utils/filter.wxs"></script>
- <script>
- import {
- mapState,
- } from 'vuex';
- import tabMenu from './index-tab-menu.vue'
- import sortList from './index-sort-list.vue'
- import uniSwiperDot from './uni-swiper-dot/uni-swiper-dot.vue'
- import marquee from './marquee.vue'
- import {
- decoType
- } from '@/utils/common.js'
- import goodsItemV from './goods_item_v.vue';
- import loadingState from "./loading-state.vue";
- import recommendItemV from './recommend_item_v.vue'
- import recommendItemList from './recommend_list.vue'
- import notOpen from './not_open.vue'
- export default {
- data() {
- return {
- imgUrl: getApp().globalData.imgUrl,
- titleNViewBackground: '',
- swiperCurrent: 0,
- swiperLength: 0,
- carouselList: [],
- goodsList: [],
- current: 0, //轮播图指示点
- dotsStyles: {
- selectedBackgroundColor: '#fff',
- width: 8,
- height: 8,
- selectedBorder: 'none',
- backgroundColor: 'rgba(255,255,255,0.4)',
- border: 'none',
- bottom: 8
- },
- noticeImg1: getApp().globalData.imgUrl + 'index/notice1.png',
- noticeImg2: getApp().globalData.imgUrl + 'index/notice2.png',
- // deco_info:[] ,//首页装修数据
- // home_page_img:[] , //首页开屏图列表
- dataObj: {}, //完整版首页装修数据
- border_radius: '', //顶部轮播背景圆角
- broadcastData1: [], //公告1滚动文字
- broadcastData2: [], //公告2滚动文字
- broadcastStyle1: { //滚动文字样式设置
- speed: 1, //每秒30px
- font_size: "24", //字体大小(rpx)
- text_color: "#666", //字体颜色
- 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%);", //背景色
- },
- broadcastStyle2: { //滚动文字样式设置
- speed: 1, //每秒30px
- font_size: "24", //字体大小(rpx)
- text_color: "#fff", //字体颜色
- back_color: "#3A3A3A", //背景色
- },
- telImg: getApp().globalData.imgUrl + 'index/mobile.png',
- sort_nav_list: [], //顶部分类列表
- sort_obj: {}, //二级分类列表+分类商品列表
- tab_index: 0, //分类切换下标
- is_show_index: true,
- adArr: [], //公告数组
- icon2: getApp().globalData.imgUrl + 'index/add2.png',
- icon3: getApp().globalData.imgUrl + 'index/add.png',
- icon4: getApp().globalData.imgUrl + 'index/add3.png',
- icon5: getApp().globalData.imgUrl + 'index/stop.png',
- client: '', //客户端类型
- isCookie: false,
- storeIsCookie: false,
- openscnImg: getApp().globalData.imgUrl + 'index/close_screen.png',
- isShowTab: true, //是否显示顶部分类
- sortLen: '', //二级分类长度
- isShow: true,
- is_show_empty: false, //是否展示分类空页面
- pure_bg_color: '', //顶部栏有弧度纯色
- border_radius1: '', //推荐商品二角度设置
- border_radius2: '', //推荐商品三角度设置
- border_radius3: '',
- top_bg: '#7B2AD0', //顶部状态栏颜色
- noData: false, //暂无数据
- is_show_empty_goods: false, //是否展示分类空商品页面
- // #ifdef APP-PLUS
- isIos: getApp().globalData.systemInfo.platform == 'ios', //是否ios手机
- // #endif
- // #ifndef APP-PLUS
- isIos: false,
- // #endif
- goods_info: {},
- laber_banner_list: [],
- pointIsCookie: false,
- swiper_bg_style: 2,
- };
- },
- components: {
- tabMenu,
- sortList,
- uniSwiperDot,
- marquee,
- goodsItemV,
- recommendItemV,
- recommendItemList,
- notOpen
- },
- props: ['is_show_top', 'deco_info', 'topic_name', 'is_from_found', 'home_is_show_top_cat', 'home_page_img', 'width',
- 'height', 'store_width', 'store_height', 'store_page_img','activity_open'
- ],
- computed: {
- ...mapState(['hasLogin', 'userInfo', 'userCenterData'])
- },
- async mounted() {
- this.deco_info && this.deco_info.map(item => {
- if (item.type == 'top_cat_nav') {
- this.swiper_bg_style = item.swiper_bg_style
- }
- })
- this.getSortList();
- //首页装修开平图缓存
- let cookievalue = uni.getStorageSync('pointIsCookie');
- if (!cookievalue) {
- this.pointIsCookie = true;
- uni.setStorage({
- key: 'pointIsCookie',
- data: new Date().getTime()
- });
- } else {
- if(new Date().getTime()*1 - cookievalue*1 > 24*60*60*1000){
- this.pointIsCookie = true;
- uni.setStorage({
- key: 'pointIsCookie',
- data: new Date().getTime()
- });
- }else{
- this.pointIsCookie = false;
- }
- }
- },
- watch: {
- deco_info(val) {
- this.noData = val && val.length == 0 ? true : false
- val && val.map(item => {
- if (item.type == 'tuijianshangpin' && item.show_style == "big") {
- this.border_radius1 = item.border_radius + 'px' + ' ' + item.border_radius + 'px' + ' 0 0'
- this.border_radius3 = '0 0 ' + item.border_radius + 'px' + ' ' + item.border_radius + 'px'
- } else if (item.type == 'tuijianshangpin' && item.show_style == "list") {
- this.border_radius2 = item.border_radius + 'px' + ' 0 0 ' + item.border_radius + 'px'
- }
- })
- },
- },
- methods: {
- getMoreData(){
- if(this.tab_index>0){
- this.$refs.recommendList.getMoreData();
- }
- },
- back() {
- uni.reLaunch({
- url: '/pages/index/index'
- })
- },
- goSearch() {
- uni.navigateTo({
- url: '/standard/point/search/search'
- })
- },
- filterFun: function(value) {
- if (value && value.length > 4) {
- value = value.substring(0, 4);
- }
- return value;
- },
- //跳转商品列表
- goGoodsList(type, labelId) {
- uni.navigateTo({
- url: '/standard/point/search/good_list?labelId=' + labelId + '&type=' + type
- })
- },
- //轮播图切换修改背景色
- swiperChange(e) {
- const index = e.detail.current;
- this.swiperCurrent = index;
- this.deco_info && this.deco_info.map(item => {
- if (item.type == 'top_cat_nav') {
- this.pure_bg_color = item.data[index].bg_color
- if (item.swiper_bg_style == 1) {
- this.titleNViewBackground = item.data[index].bg_color
- } else {
- this.titleNViewBackground='linear-gradient(' + item.data[index].bg_color + ' 0%,' + item.data[index].bg_color +' 42%,#ffffff 100%) '
- }
- }
- })
- },
- labelSwiperChange(e) {
- const index = e.detail.current;
- this.swiperCurrent = index;
- this.pure_bg_color = this.laber_banner_list[index].bg_color
- if (this.swiper_bg_style == 1) {
- this.titleNViewBackground = this.laber_banner_list[index].bg_color
- } else {
- this.titleNViewBackground = 'linear-gradient(' + this.laber_banner_list[index].bg_color + ' 0%,' + this.laber_banner_list[index].bg_color +
- ' 42%,#ffffff 100%)'
- }
- },
- // 获取分类列表
- getSortList() {
- let param = {}
- param.url = 'v3/integral/front/integral/mall/list'
- param.method = 'GET'
- this.$request(param).then(res => {
- if (res.state == 200) {
- this.sort_nav_list = res.data.list
- this.sort_nav_list.unshift({
- labelName: '首页'
- })
- }
- })
- },
- // 获取二级分类及分类商品列表
- getChildList(list, index) {
- if (this.tab_index != index) {
- // 切换tab回到顶部
- uni.pageScrollTo({
- scrollTop: 0,
- duration: 0
- })
- this.sort_list = [];
- }
- this.tab_index = index
- if (index > 0) {
- this.sort_obj = list
- if (this.sort_obj.children.length) {
- this.sortLen = this.sort_obj.children.length
- this.is_show_empty = false
- } else {
- this.is_show_empty = true
- }
- if (this.sort_obj.data) {
- var newList=[]
- this.laber_banner_list = JSON.parse(this.sort_obj.data)
- this.laber_banner_list.map((item)=>{
- if(item.imgUrl){
- newList.push(item)
- }
- })
- this.laber_banner_list=newList
- } else {
- this.laber_banner_list = []
- }
- if (this.sortLen > 9) {
- this.sort_obj.children = this.sort_obj.children.slice(0, 9)
- }
- this.is_show_index = false
- } else {
- this.is_show_index = true
- }
- this.isShow = false
- this.isShow = true
- },
- // 拨打客服电话
- callUp(tel) {
- uni.makePhoneCall({
- phoneNumber: tel.toString()
- })
- },
- toSearchPage() {
- uni.navigateTo({
- url: '/pages/search/search'
- })
- },
- // 相关跳转
- skipTo(type, url, productId, pid, labelName) {
- if (type == 'url') { //跳转链接地址
- if(!url){
- return
- }
- // #ifdef H5
- window.open(url)
- // #endif
- // #ifdef APP-PLUS
- plus.runtime.openURL(url) //这里默认使用外部浏览器打开而不是内部web-view组件打开
- // #endif
- // #ifdef MP
- uni.navigateTo({
- url: '/standard/index/skip_to?url=' + url
- })
- // #endif
- } else if (type == 'goods') { //跳转商品详情页
- uni.navigateTo({
- url: '/standard/point/product/detail?productId=' + productId + '&goodsId=' + url
- })
- } else if (type == 'keyword') { // 关键词
- uni.navigateTo({
- url: '/standard/point/search/search?keyword=' + url
- })
- } else if (type == 'category') { //跳转分类
- uni.navigateTo({
- url: '/standard/point/search/good_list?labelId=' + url + '&type=' + labelName
- })
- }
- },
- // 跳转商品详情页
- toGoodsDetail(productId, goodsId) {
- uni.navigateTo({
- url: '/pages/product/detail?productId=' + productId + '&goodsId=' + goodsId
- })
- },
- // 加入购物车
- addCart(productId, goodsId, item) {
- this.goods_info = item
- if (this.userInfo.access_token) {
- let param = {}
- param.url = 'v3/business/front/cart/add'
- param.method = 'POST'
- param.data = {
- productId: productId,
- number: 1
- }
- this.$request(param).then(res => {
- if (res.state == 200) {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- duration: 700
- })
- }
- })
- } else {
- let cart_list = {
- storeCartGroupList: [{
- promotionCartGroupList: [{
- cartList: [{
- buyNum: 1,
- goodsId: this.goods_info.goodsId,
- productId: this.goods_info.productId || this.goods_info.defaultProductId,
- productImage: this.goods_info.goodsPic ? this.goods_info.goodsPic : this.goods_info.goodsImage,
- goodsName: this.goods_info.goodsName,
- isChecked: 1,
- productPrice: this.goods_info.goodsPrice,
- // productStock: this.goods_info.productStock
- }],
- }],
- storeId: this.goods_info.storeId,
- storeName: this.goods_info.storeName,
- checkedAll: true
- }],
- checkedAll: true,
- invalidList: []
- }
- let local_cart_list = uni.getStorageSync('cart_list') //购物车列表本地缓存
- if (local_cart_list) {
- let tmp_list1 = []
- let tmp_list2 = []
- cart_list.storeCartGroupList.forEach(item => {
- item.promotionCartGroupList.forEach(item1 => {
- item1.cartList.forEach(item2 => {
- local_cart_list.storeCartGroupList.forEach(v => {
- v.promotionCartGroupList.forEach(v1 => {
- v1.cartList.forEach(v2 => {
- if (v2.productId == item2.productId && v.storeId == item.storeId) {
- tmp_list1.push(v)
- }
- })
- tmp_list2 = local_cart_list.storeCartGroupList.filter(v => {
- return v.storeId == item.storeId
- })
- })
- })
- })
- })
- })
- if (tmp_list1.length > 0 && tmp_list2.length > 0) { //同一店铺同一商品
- local_cart_list.storeCartGroupList.map(item => {
- item.promotionCartGroupList.map(item1 => {
- item1.cartList.map(item2 => {
- if (item2.productId == this.goods_info.productId && item.storeId == this.goods_info.storeId) {
- item2.buyNum += 1
- }
- })
- })
- })
- } else if (tmp_list1.length == 0 && tmp_list2.length > 0) { //同一店铺不同商品
- local_cart_list.storeCartGroupList.map(item => {
- if (item.storeId == this.goods_info.storeId) {
- item.promotionCartGroupList.map(item2 => {
- item2.cartList.push(cart_list.storeCartGroupList[0].promotionCartGroupList[0].cartList[0])
- })
- }
- })
- } else { //不同店铺不同商品
- local_cart_list.storeCartGroupList.push(cart_list.storeCartGroupList[0])
- }
- // 未登录购物车展示数据
- uni.setStorage({
- key: 'cart_list',
- data: local_cart_list,
- success: function() {
- //更新购物车数量和购物车数据
- }
- });
- } else {
- uni.setStorage({
- key: 'cart_list',
- data: cart_list,
- success: function() {
- //更新购物车数量和购物车数据
- }
- });
- }
- uni.showToast({
- title: '加入购物车成功!',
- icon: 'none'
- })
- }
- },
- //关闭首页广告屏
- close_openScreen() {
- this.pointIsCookie = false;
- },
- //点击广告屏跳转到详情页面
- gotoGoods_detail() {
- this.pointIsCookie = false;
- let osValue = this.home_page_img[0];
- this.diyNavToOfIntegral(osValue);
- },
- //积分商城模块跳转通用函数
- diyNavToOfIntegral(val){
- if (val.link_type == 'url') {
- //链接地址,只有h5可以跳转外部链接,其他端都不可以
- // #ifdef H5
- window.location.href = val.link_value;
- // #endif
- // #ifdef APP-PLUS
- plus.runtime.openURL(val.link_value) //这里默认使用外部浏览器打开而不是内部web-view组件打开
- // #endif
-
- // #ifdef MP
- uni.navigateTo({
- url: '/pages/index/skip_to?url=' + val.link_value
- })
- // #endif
- } else if (val.link_type == 'keyword') {
- //关键词
- uni.navigateTo({
- url: `/standard/point/search/search?keyword=${encodeURIComponent(val.link_value)}&source=search`
- });
- } else if (val.link_type == 'goods') {
- //商品
- uni.navigateTo({
- url: '/standard/point/product/detail?productId=' + val.info.productId
- })
- } else if (val.link_type == 'category') {
- //商品分类
- let url = `/standard/point/search/good_list?labelId=${val.info.labelId}&type=${val.info.labelName}`;
- if (val.info.grade == 3) {
- url += '&pid=' + val.info.pid;
- }
- uni.navigateTo({
- url: url
- })
- }
- },
- },
-
- // #ifndef MP
- // 标题栏input搜索框点击
- onNavigationBarSearchInputClicked: async function(e) {
- uni.navigateTo({
- url: `/pages/search/search`
- })
- },
- //点击导航栏 buttons 时触发
- onNavigationBarButtonTap(e) {
- const index = e.index;
- if (index === 0) {
- this.$api.msg('点击了扫描');
- } else if (index === 1) {
- // #ifdef APP-PLUS
- const pages = getCurrentPages();
- const page = pages[pages.length - 1];
- const currentWebview = page.$getAppWebview();
- currentWebview.hideTitleNViewButtonRedDot({
- index
- });
- // #endif
- uni.navigateTo({
- url: '/pages/notice/notice'
- })
- }
- },
- // #endif
- }
- </script>
- <style lang="scss">
- /deep/.uni-swiper-wrapper{
- border-radius: 5px!important;
- }
- // 开屏 -- start
- .container {
- width: 750rpx;
- margin: 0 auto;
- // position: relative;
- // background-color: #fff;
- /* #ifdef H5 */
- margin-top: -24rpx;
- /* #endif */
- /* #ifdef MP */
- margin-top: 10rpx;
- /* #endif */
- }
- .prevent {
- // width: 100vw;
- // // height: calc(100vh + 98rpx);
- // position: fixed;
- // top: 0;
- // left: 0;
- // overflow: hidden;
- }
- .show-dialog {
- animation: 100ms showDialog linear forwards;
- }
- .hide-dialog {
- animation: 100ms hideDialog linear forwards;
- }
- @keyframes hideDialog {
- 0% {
- opacity: 1;
- }
- 25% {
- opacity: 0.75;
- }
- 50% {
- opacity: 0.5;
- }
- 75% {
- opacity: 0.25;
- }
- 100% {
- opacity: 0;
- }
- }
- @keyframes showDialog {
- 0% {
- opacity: 0;
- }
- 25% {
- opacity: 0.25;
- }
- 50% {
- opacity: 0.5;
- }
- 75% {
- opacity: 0.75;
- }
- 100% {
- opacity: 1;
- }
- }
- .container .open_screen {
- width: 750rpx;
- height: 100vh;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- margin: 0 auto;
- background-color: rgba(0, 0, 0, 0.3);
- z-index: 99999;
- }
- .container .open_screen .open_screen_con {
- maring: 0 auto;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- border-radius: 15rpx;
- }
- .container .open_screen .open_screen_con .open_screen_con_img {
- width: 100%;
- height: 100%;
- background-size: contain;
- border-radius: 15rpx;
- }
- .container .open_screen .open_screen_con .con_img {
- width: 58rpx;
- height: 58rpx;
- position: absolute;
- top: -58rpx;
- right: -58rpx;
- }
- .open_screen_con .con_img image {
- width: 100%;
- height: 100%;
- }
- // 开屏 -- end
- /* #ifdef H5 */
- .deco_wrap {
- margin-top: calc(var(--status-bar-height) + 87rpx) !important;
- }
- /* #endif */
- /* #ifdef MP */
- .deco_wrap {
- margin-top: calc(var(--status-bar-height) + 96rpx) !important;
- padding-top: 7rpx;
- }
- .deco_wrap2 {
- margin-top: 108rpx;
- }
- /* #endif */
- /* #ifdef APP-PLUS */
- .deco_wrap {
- margin-top: calc(var(--status-bar-height) + 155rpx) !important;
- }
- /* #endif */
- .container {
- // padding-top: 180rpx;
- padding-bottom: 20rpx;
- overflow-x: hidden;
- background-color: #F5F5F5;
- }
- /* #ifdef APP-PLUS */
- .container1 {
- width: 750rpx;
- padding-top: 0rpx !important;
- padding-bottom: 0;
- }
- /* #endif */
- .mp-search-box {
- position: fixed;
- /* #ifndef APP-PLUS */
- top: 0;
- /* #endif */
- /* #ifdef APP-PLUS */
- top: var(--status-bar-height);
- /* #endif */
- // #ifdef APP-PLUS */
- // top: var(--status-bar-height);
- // /* #endif
- z-index: 9999;
- width: 750rpx;
- height: 50px;
- padding: 0 20rpx 0 20rpx;
- display: flex;
- box-sizing: border-box;
- align-items: center;
- background: $point-index-title-color;
- .return {
- width: 17rpx;
- height: 29rpx;
- }
- .title {
- width: 663rpx;
- text-align: center;
- font-size: 36rpx;
- color: white;
- }
- .search {
- width: 30rpx;
- height: 30rpx;
- }
- }
- page {
- .topic_top {
- padding-top: 0 !important;
- }
- .cate-section {
- position: relative;
- z-index: 5;
- //border-radius: 16upx 16upx 0 0;
- overflow-x: hidden;
- }
- .carousel-section {
- padding: 0 20rpx;
- box-sizing: border-box;
- background-color: #FFFFFF;
- .titleNview-placing {
- padding-top: 0;
- height: 0;
- }
- .carousel {
- .carousel-item {
- padding: 0;
- }
- }
- .swiper-dots {
- left: 45upx;
- bottom: 40upx;
- }
- }
- }
- .search_img {
- position: absolute;
- width: 30rpx;
- height: 36rpx;
- left: 36rpx;
- top: 50%;
- transform: translateY(-50%);
- z-index: 99;
- }
- page {
- background: #f5f5f5;
- }
- .m-t {
- margin-top: 16upx;
- }
- /* 头部 轮播图 */
- .carousel-section {
- position: relative;
- padding-top: 10px;
- .titleNview-placing {
- height: var(--status-bar-height);
- padding-top: 44px;
- box-sizing: content-box;
- }
- .titleNview-background {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100px;
- transition: .4s;
- border-radius: 0 0 30rpx 30rpx;
- }
- }
- .carousel {
- width: 100%;
- height: 280upx;
- .carousel-item {
- width: 100%;
- height: 100%;
- // padding: 0 28upx !important;
- overflow: hidden;
- }
- image {
- width: 100%;
- height: 100%;
- border-radius: 10upx;
- overflow: hidden;
- }
- }
- .swiper-dots {
- display: flex;
- position: absolute;
- left: 60upx;
- bottom: 15upx;
- width: 72upx;
- height: 36upx;
- 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==);
- background-size: 100% 100%;
- .num {
- width: 36upx;
- height: 36upx;
- border-radius: 50px;
- font-size: 24upx;
- color: #fff;
- text-align: center;
- line-height: 36upx;
- }
- .sign {
- position: absolute;
- top: 0;
- left: 50%;
- line-height: 36upx;
- font-size: 12upx;
- color: #fff;
- transform: translateX(-50%);
- }
- }
- /* 分类 */
- .cate-section {
- display: flex;
- justify-content: space-around;
- align-items: center;
- // flex-wrap: wrap;
- padding: 20rpx 0;
- background: #fff;
- .cate-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: 26upx;
- color: #303133;
- flex: 1;
- image {
- overflow: visible;
- }
- }
- .cate-item2 {
- display: flex;
- align-items: center;
- font-size: 26upx;
- color: #303133;
- }
- .cate_name {
- // width: 78rpx;
- }
- /* 原图标颜色太深,不想改图了,所以加了透明度 */
- image {
- width: 88upx;
- height: 88upx;
- margin-bottom: 14upx;
- border-radius: 50%;
- }
- }
- .ad-1 {
- width: 100%;
- height: 210upx;
- padding: 10upx 0;
- background: #fff;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .notice_box {
- margin: 20rpx 20rpx 0 20rpx;
- background: #FFFFFF;
- border-radius: 14rpx;
- // margin-bottom:20rpx;
- .notice_wrap1 {
- width: 100%;
- height: 80rpx;
- margin-top: 20rpx;
- background-color: #fff;
- display: flex;
- align-items: center;
- border-radius: 14rpx;
- // border-radius: 6px;
- .notice_img1 {
- width: 127rpx;
- height: 80rpx;
- border-radius: 6px 0 0 6px;
- }
- .notice_content_wrap {
- font-size: 28rpx;
- font-weight: 600;
- width: 530rpx;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- margin-left: -16rpx;
- .notice_content_title {
- color: #E1261C;
- }
- .notice_content {
- color: #666666;
- }
- }
- .notice_wrap1_line {
- width: 1rpx;
- height: 34rpx;
- background-color: rgba(0, 0, 0, 0.1);
- margin-left: 6rpx;
- }
- .notice_more {
- width: 80rpx;
- text-align: center;
- font-size: 29rpx;
- color: #2E2E2E;
- font-weight: 600;
- }
- }
- .notice_wrap2 {
- width: 100%;
- height: 80rpx;
- // margin-bottom: 20rpx;
- background-color: #3A3A3A;
- display: flex;
- align-items: center;
- box-shadow: 1px 6px 19px 1px rgba(86, 86, 86, 0.1);
- // border-radius: 6px;
- .notice_img2 {
- width: 138rpx;
- height: 80rpx;
- border-radius: 6px 0 0 6px;
- }
- .notice_content_wrap2 {
- font-size: 26rpx;
- font-weight: 600;
- width: 510rpx;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- color: #fff;
- margin-left: 5rpx;
- }
- .notice_wrap2_line {
- width: 1rpx;
- height: 38rpx;
- background-color: #fff;
- margin-left: 2rpx;
- }
- .notice_more {
- width: 80rpx;
- text-align: center;
- font-size: 26rpx;
- color: #fff;
- font-weight: 600;
- }
- }
- }
- .service_wrap {
- // width:100%;
- padding: 20rpx;
- font-size: 26rpx;
- color: #333;
- background-color: #fff;
- display: flex;
- align-items: center;
- margin: 20rpx 20rpx 0 20rpx;
- border-radius: 14rpx;
- image {
- width: 30rpx;
- height: 32rpx;
- margin-right: 10rpx;
- }
- }
- .rich_text_wrap {
- font-size: 28rpx;
- background: #fff;
- padding: 30rpx;
- box-sizing: border-box;
- margin-top: 20rpx;
- }
- .match_wrap {
- padding: 20rpx;
- box-sizing: border-box;
- margin-top: 20rpx;
- flex-direction: column;
- background-color: #fff;
- .match_top {
- display: flex;
- flex-direction: column;
- background-color: #fff;
- image {
- width: 100%;
- }
- .match_image_wrap {
- width: 100%;
- display: flex;
- justify-content: center;
- .match_image {
- margin: 0 auto;
- }
- }
- .match_top_title {
- text-align: center;
- padding-bottom: 20rpx;
- font-size: 32rpx;
- color: #333;
- }
- .match_top_text {
- padding: 20rpx 20rpx 0;
- font-size: 28rpx;
- color: #333;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- }
- .match_main_wrap {
- background-color: #fff;
- margin-top: 20rpx;
- }
- .match_main {
- display: flex;
- justify-content: space-between;
- overflow-x: scroll;
- box-sizing: border-box;
- .match_item {
- width: 222rpx;
- height: 370rpx;
- margin-right: 20rpx;
- background-color: #fff;
- border-radius: 15rpx;
- position: relative;
- .match_goods_img {
- width: 222rpx;
- height: 222rpx;
- background-color: #ccc;
- border-radius: 15rpx 15rpx 0 0;
- image {
- width: 222rpx;
- height: 222rpx;
- border-radius: 10rpx 10rpx 0 0;
- }
- }
- .match_goods_name {
- font-size: 28rpx;
- color: #333;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- box-sizing: border-box;
- padding: 10rpx 0rpx 0 0rpx;
- }
- .match_goods_price {
- font-size: 28rpx;
- color: rgb(255, 43, 32);
- font-weight: 600;
- position: absolute;
- bottom: 12rpx;
- // left: 20rpx;
- }
- }
- }
- }
- .subline_wrap {
- padding: 30rpx 0;
- background-color: #fff;
- // margin: 20rpx 20rpx 0 20rpx;
- .subline {
- width: 100%;
- border-bottom: 1px dotted #fff;
- }
- }
- .carousel_bottom_wrap {
- padding-bottom: 20rpx;
- background-color: #fff;
- display: flex;
- justify-content: center;
- margin-top: 20rpx;
- .carousel_bottom {
- width: 100%;
- height: 340rpx;
- margin-bottom: 20rpx;
- padding-top: 20rpx;
- }
- }
- .recommend_goods_wrap {
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- padding: 0 20rpx;
- margin-top: 20rpx;
- }
- .carousel_img {
- // height:340rpx !important;
- }
- .blank_wrap {
- margin: 0 20rpx;
- margin-top: 20rpx;
- }
- .nav_wrap {
- width: 100%;
- // padding: 0 20rpx;
- box-sizing: border-box;
- }
- .nav_wrap::-webkit-scrollbar {
- display: none;
- }
- .laber_banner_list {
- margin-top: 98rpx;
- /* #ifdef MP */
- margin-top: 160rpx;
- /* #endif */
- /* #ifdef APP-PLUS */
- margin-top: 220rpx;
- /* #endif*/
- }
- .sort_sub_wrap {
- width: 100%;
- background: #F5F5F5;
- .sort_sub_top {
- // width: 89.5%;
- display: flex;
- // border-radius: 10rpx;
- background-color: #fff;
- padding: 0rpx 20rpx 20rpx 20rpx;
- flex-wrap: wrap;
- box-sizing: border-box;
- .sort_sub_item {
- display: flex;
- flex-direction: column;
- margin-right: 44rpx;
- justify-content: center;
- align-items: center;
- margin-top: 20rpx;
- .sort_sub_img {
- width: 106rpx;
- height: 106rpx;
- border-radius: 50%;
- margin-bottom: 20rpx;
- image {
- width: 106rpx;
- height: 106rpx;
- border-radius: 50%;
- }
- }
- .sort_sub_name {
- font-size: 24rpx;
- color: #333;
- font-weight: 600;
- width: 96rpx;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- text-align: center;
- }
- }
- }
- .sort_sub_top>view:nth-child(5n) {
- margin-right: 0 !important;
- }
- /* #ifdef APP-PLUS*/
- &,.laber_banner_list{
- .sort_sub_top{
- padding-top: 20rpx;
- }
- }
- /* #endif*/
- .sort_sub_goods {
- width: 100%;
- padding: 0 20rpx;
- box-sizing: border-box;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- margin-top: 20rpx;
- }
- .sort_sub_goods>view:nth-child(2n) {
- margin-right: 0 !important;
- }
- }
- // 图片组合样式
- .goods {
- border: none;
- background: #fff;
- margin-top: 0;
- }
- .index_block {
- width: 750rpx;
- clear: both;
- overflow: hidden;
- background: #fff;
- display: block;
- }
- .goods .content {
- background: #f0f2f5;
- clear: both;
- overflow: hidden;
- display: block;
- }
- .goods .goods-small.goods-item:nth-child(2n+1) {
- padding-right: 8rpx;
- }
- .goods-small.goods-item {
- overflow: hidden;
- float: left;
- width: 50%;
- box-sizing: border-box;
- padding-bottom: 8rpx;
- position: relative;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- }
- .goods-item navigator {
- display: block;
- background: #fff;
- }
- .goods-item-pic {
- vertical-align: middle;
- line-height: 0;
- display: table-cell;
- text-align: center;
- width: calc(50vw - 30rpx);
- height: calc(50vw - 30rpx);
- }
- .goods-item-pic image {
- width: calc(50vw - 30rpx);
- height: calc(50vw - 30rpx);
- }
- .goods-small .goods-item-name {
- height: 66rpx;
- font-size: 26rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- word-break: break-word;
- color: #232326;
- margin-top: 10rpx;
- line-height: 33rpx;
- margin-bottom: 6rpx;
- padding: 0 8rpx;
- }
- .goods-item-price {
- color: #f23030;
- display: inline-block;
- padding: 0 10rpx 0 8rpx;
- position: relative;
- top: 2rpx;
- height: 50rpx;
- line-height: 50rpx;
- }
- .goods-item-price .yens {
- font-size: 26rpx;
- }
- .goods-item-price .bigprice {
- font-size: 32rpx;
- font-weight: bold;
- display: inline-block;
- }
- .goods-big.goods-item {
- overflow: hidden;
- float: left;
- width: 100%;
- box-sizing: border-box;
- padding-bottom: 8rpx;
- position: relative;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- padding: 16rpx 16rpx 0;
- }
- .goods-item-name {
- height: 66rpx;
- font-size: 26rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- word-break: break-word;
- color: #232326;
- margin-top: 10rpx;
- line-height: 34rpx;
- margin-bottom: 6rpx;
- padding: 0 8rpx;
- }
- .goods-big .goods-item-price {
- color: #f23030;
- display: inline-block;
- padding: 0 10rpx 0 8rpx;
- position: relative;
- top: 2rpx;
- height: 50rpx;
- line-height: 50rpx;
- }
- .goods-big .goods-item-pic image {
- width: 734rpx;
- height: 734rpx;
- padding: 0 8rpx;
- }
- .hide_title .goods-item .goods-item-name {
- display: none !important;
- }
- .hide_price .goods-item .goods-item-price {
- display: none !important;
- }
- .goods-list.goods-item .goods-item-pic {
- float: left;
- width: 214rpx !important;
- height: 214rpx !important;
- }
- .goods-list.goods-item {
- overflow: hidden;
- float: left;
- width: 100%;
- box-sizing: border-box;
- padding-bottom: 8rpx;
- position: relative;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- background: #fff;
- margin-bottom: 16rpx;
- }
- .goods-list.goods-item .goods-item-pic image {
- width: 214rpx !important;
- height: 214rpx !important;
- }
- .goods-list .goods-item-name {
- padding-top: 40rpx;
- }
- .goods .new-content .goods-item.goods-list .goods-item-name {
- padding-top: 10rpx;
- }
- /*图片组合样式 */
- .modules-slide {
- display: block;
- }
- .modules-slide .image-list.style0,
- .modules-slide .image-list.style0 ul {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- }
- .modules-slide .image-list.style0,
- .modules-slide .image-list.style0 ul {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- display: block;
- }
- .modules-slide .image-list ul {
- overflow: hidden;
- box-sizing: border-box;
- display: block;
- }
- .modules-slide .image-list.style0 ul li {
- display: block;
- box-sizing: border-box;
- }
- .modules-slide .image-list ul li navigator {
- display: block;
- }
- .modules-slide .image-list ul li navigator image {
- width: 100%;
- background: #f1f1f1;
- display: block !important;
- }
- .modules-slide image {
- max-width: 100%;
- height: auto;
- vertical-align: middle;
- display: inline-block !important;
- }
- .modules-slide .image-list {
- overflow: hidden;
- .tupianzuhe2 {
- margin-bottom: 20rpx;
- flex-wrap: wrap;
- }
- }
- .modules-slide .image-list.style1 ul li {
- display: block;
- margin: 0 16rpx 16rpx;
- }
- .modules-slide .image-list.style1 ul li image {
- height: 100%;
- }
- .modules-slide .image-list ul li navigator image {
- width: 100%;
- background: #f1f1f1;
- display: block !important;
- }
- .modules-slide .image-list.style2 ul,
- .modules-slide .image-list.style3 ul {
- padding-right: 16rpx;
- }
- .modules-slide .image-list.style2 ul li {
- box-sizing: border-box;
- padding: 0 0 16rpx 16rpx;
- width: 50%;
- float: left;
- }
- .modules-slide .image-list.style3 ul li {
- float: left;
- width: 33.33333%;
- box-sizing: border-box;
- padding: 0 0 16rpx 16rpx;
- }
- .modules-slide .image-ad {
- padding: 20rpx 0;
- box-sizing: border-box;
- display: block;
- clear: both;
- overflow: hidden;
- .tupianzuhe04_left {
- width: calc((750rpx - 60rpx)/2);
- height: calc((750rpx - 60rpx)/2 + 20rpx);
- margin-right: 20rpx;
- margin-left: 20rpx;
- image {
- width: 100%;
- height: 100%
- }
- }
- .tupianzuhe04_right_item {
- width: calc((750rpx - 60rpx)/2);
- height: calc((750rpx - 60rpx)/4);
- image {
- width: 100%;
- height: 100%
- }
- }
- }
- .modules-slide .image-ad>div {
- float: left;
- width: 50%;
- box-sizing: border-box;
- }
- .modules-slide .image-ad div navigator {
- display: block;
- margin: 0 16rpx 16rpx 0;
- box-sizing: border-box;
- }
- .modules-slide .images-tpl image {
- width: 374rpx;
- vertical-align: middle;
- box-sizing: border-box;
- }
- .modules-slide .image-ad2 {
- margin: 0 16rpx 0 0;
- box-sizing: border-box;
- display: block;
- clear: both;
- overflow: hidden;
- }
- .modules-slide .image-ad2 .clearfix {
- display: block;
- clear: both;
- overflow: hidden;
- }
- .modules-slide .image-ad2 div:first-child navigator:nth-child(1),
- .modules-slide .image-ad2 div:first-child navigator:nth-child(1) image {
- width: 228rpx;
- }
- .modules-slide .image-ad2 div:first-child .big:nth-child(2),
- .modules-slide .image-ad2 div:first-child .big:nth-child(2) image {
- width: 473rpx;
- }
- .modules-slide .image-ad2 div navigator {
- display: block;
- float: left;
- margin: 0 0 16rpx 16rpx;
- box-sizing: border-box;
- }
- .modules-slide .images-tpl img {
- width: 100%;
- vertical-align: middle;
- box-sizing: border-box;
- }
- .modules-slide .image-ad2 div:last-child navigator:nth-child(1),
- .modules-slide .image-ad2 div:last-child navigator:nth-child(1) image {
- width: 473rpx;
- }
- .modules-slide .image-ad2 div:last-child navigator:nth-child(2),
- .modules-slide .image-ad2 div:last-child navigator:nth-child(2) image {
- width: 228rpx;
- }
- .modules-slide .image-ad3 {
- padding: 0 0 0 16rpx;
- box-sizing: border-box;
- display: block;
- clear: both;
- overflow: hidden;
- }
- .modules-slide .image-ad3 div {
- width: 367rpx;
- float: left;
- box-sizing: border-box;
- }
- .modules-slide .image-ad3 div image {
- width: 351rpx;
- }
- .modules-slide .image-ad3 div navigator {
- padding: 0 16rpx 16rpx 0;
- display: inline-block;
- box-sizing: border-box;
- }
- .modules-slide .image-ad4 {
- padding: 0 16rpx 16rpx 0;
- box-sizing: border-box;
- display: block;
- }
- .modules-slide .image-ad4 div {
- float: left;
- width: 33.33333%;
- box-sizing: border-box;
- }
- .modules-slide .image-ad4 div navigator {
- display: block;
- margin: 0 0 16rpx 16rpx;
- }
- .countdown {
- width: 100%;
- height: 49.2rpx;
- line-height: 49.2rpx;
- font-size: 39.4rpx;
- }
- .countdown .countdown-name {
- float: left;
- display: block;
- -webkit-transform: scale(0.8);
- }
- .countdown .countdown-main {
- display: block;
- -webkit-transform: scale(0.8);
- }
- .countdown .countdown-num {
- background-color: #000000;
- display: inline-block;
- padding: 0 0rpx;
- width: 25px;
- height: 32.2rpx;
- line-height: 32.2rpx;
- }
- .combine1 {
- display: flex !important;
- flex-direction: column !important;
- text-align: center;
- }
- .combine2 {
- display: flex !important;
- }
- // 推荐商品
- .recommend_goods1 {
- width: 100%;
- height: 350rpx;
- display: flex;
- background-color: #fff;
- border-radius: 20rpx;
- margin-bottom: 20rpx;
- border-radius: 20rpx;
- .recommend_goods_img1 {
- width: 350rpx;
- height: 350rpx;
- margin-right: 20rpx;
- image {
- width: 350rpx;
- height: 350rpx;
- background-color: #ccc;
- }
- }
- .recommend_goods_right {
- width: 100%;
- height: 350rpx;
- position: relative;
- .recommend_goods_name {
- font-size: 30rpx;
- margin-top: 20rpx;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .recommend_goods_price {
- position: absolute;
- bottom: 80rpx;
- left: 0;
- color: #FC1C1C;
- }
- .recommend_goods_bottom {
- width: 100%;
- position: absolute;
- bottom: 20rpx;
- left: 0;
- display: flex;
- justify-content: space-between;
- image {
- width: 42rpx;
- height: 42rpx;
- margin-right: 20rpx;
- }
- }
- }
- }
- .recommend_goods2 {
- display: flex;
- flex-direction: column;
- width: 100%;
- .recommend_goods_img2 {
- width: 100%;
- height: 702rpx;
- image {
- width: 100%;
- height: 702rpx;
- background-color: #ccc;
- }
- }
- .recommend_goods_bottom2 {
- width: 100%;
- height: 204rpx;
- padding: 20rpx;
- box-sizing: border-box;
- background-color: #fff;
- position: relative;
- .recommend_goods_name2 {
- font-size: 30rpx;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .goods_bottom {
- width: 100%;
- display: flex;
- flex-direction: column;
- image {
- width: 42rpx;
- height: 42rpx;
- }
- }
- }
- }
- .big_price {
- font-size: 34rpx;
- }
- .small_price {
- font-size: 24rpx;
- }
- .combination_style {
- display: flex;
- }
- .combination_wrap {
- width: 100%;
- background-color: #fff;
- box-sizing: border-box;
- margin-top: 20rpx;
- }
- .combine6 {
- display: flex;
- flex-direction: column;
- margin-right: 20rpx;
- margin-top: 20rpx;
- }
- .scan_img {
- width: 44rpx;
- height: 44rpx;
- position: absolute;
- left: 15rpx;
- }
- .msg_img {
- width: 50rpx;
- height: 50rpx;
- position: absolute;
- right: 20rpx;
- top: 50%;
- transform: translateY(-50%);
- image {
- width: 50rpx;
- height: 50rpx;
- }
- }
- .combine3 {
- width: calc((750rpx - 60rpx)/2);
- margin-top: 20rpx;
- }
- .combine4 {
- width: calc((750rpx - 80rpx)/3);
- margin-top: 20rpx;
- margin-left: 20rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .paddingTB20 {
- padding: 0 20rpx;
- }
- .no_margin_right {
- padding: 0px
- }
- .no_margin_right>view:nth-child(2n) {
- margin-right: 0 !important;
- }
- .no_margin_right2>view:nth-child(3n) {
- margin-right: 0 !important;
- }
- .see_more_wrap {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- margin-top: 14rpx;
- .more_icon_circle {
- width: 106rpx;
- height: 106rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 50%;
- background-color: #F8F8F8;
- margin-bottom: 20rpx;
- .more_icon {
- width: 52rpx;
- height: 14rpx;
- }
- }
- .see_more_text {
- font-size: 24rpx;
- color: #333;
- font-weight: 600;
- }
- }
- .carousel-section /deep/ .uni-swiper__warp {
- // margin-top: calc(44px + 70rpx) !important;
- }
- /* #ifdef APP-PLUS */
- .laber_banner_list /deep/ .uni-swiper__warp {
- padding-top: 14rpx;
- }
- /* #endif */
- /* #ifdef H5 */
- .carousel-section /deep/ .uni-swiper__warp {
- margin-top: -2rpx !important;
- padding-top: 8rpx !important;
- }
- /* #endif */
- .combine5_wrap>view:nth-child(2n) {
- margin-right: 0 !important;
- }
- .mp-search-box /deep/ .ser-input /deep/ .uni-input-wrapper /deep/ .uni-input-input {
- background-color: #fff;
- }
- .search_input {
- text-align: left;
- }
- .rec_goods_wrap {
- width: 750rpx;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- .city_wrap {
- font-size: 30rpx;
- display: flex;
- align-items: center;
- color: #fff;
- flex-shrink: 0;
- max-width: 58px;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- display: inline-block;
- }
- .top_icon {
- width: 24rpx;
- height: 24rpx;
- margin-left: 11rpx;
- margin-right: 17rpx;
- margin-top: 2rpx;
- flex-shrink: 0;
- }
- .deco_wrap {
- width: 750rpx;
- }
- /* ----TAB切换:---- */
- .tab_nav {
- margin-top: 100rpx;
- }
- .tab_nav_scroll {
- white-space: nowrap;
- }
- .tab_nav_block {
- display: inline-block;
- width: 25%;
- text-align: center;
- }
- .tab_nav_block_t {
- color: #2D2D2D;
- font-size: 28rpx;
- padding-bottom: 14rpx;
- margin: 0 50rpx 4rpx 50rpx
- }
- .tab_nav_block_on {
- color: #333333;
- font-weight: 700;
- font-size: 32rpx;
- margin-bottom: 8rpx;
- }
- .tab_nav_block_i {
- color: #999999;
- font-size: 22rpx;
- padding: 4rpx 0;
- margin: 5rpx 26rpx
- }
- .tab_nav_block_on2 {
- background-color: #FA1C1C;
- color: #FFFFFF;
- border-radius: 16rpx;
- }
- // 短视频3d轮播
- .swiper-block {
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 346rpx;
- margin: 0
- }
- .slide-image {
- height: 320rpx;
- width: 520rpx;
- border-radius: 9rpx;
- box-shadow: 0px 0px 30rpx rgba(0, 0, 0, .2);
- margin: 0rpx 30rpx;
- z-index: 1;
- }
- .active1 {
- /* transform: scale(1.44); */
- transition: all .2s ease-in 0s;
- height: 100%;
- width: 100%;
- border-radius: 16rpx;
- }
- .active2 {
- width: 100%;
- height: 100%;
- border-radius: 16rpx;
- }
- // 空页面
- .empty_sort_page {
- width: 100%;
- // height: 100vh;
- background: #F5F5F5;
- display: flex;
- flex-direction: column;
- align-items: center;
- padding-top: 340rpx;
- .empty_img {
- width: 210rpx;
- height: 210rpx;
- margin-bottom: 32rpx;
- }
- .empty_text {
- font-size: 26rpx;
- color: #999;
- }
- }
- .scan,
- .message {
- margin-left: 18rpx;
- display: flex;
- align-items: center;
- flex-direction: column;
- flex-shrink: 0;
- image {
- width: 34rpx;
- height: 34rpx;
- }
- text {
- color: white;
- font-size: 20rpx;
- line-height: 22rpx;
- margin-top: 6rpx;
- }
- }
- .search_con {
- position: relative;
- flex: 1;
- }
- .svideo_person_num {
- width: 40rpx;
- height: 40rpx;
- border-radius: 0 0 50% 0;
- }
- .swiper-item {
- color: #fff;
- overflow: hidden;
- left: 40rpx !important;
- right: 20rpx;
- top: 20rpx;
- bottom: 20rpx;
- width: 80% !important;
- height: 280rpx !important;
- // transform: translate(80%, 0px) translateZ(0px);
- }
- .swiper-item1 {
- color: #fff;
- box-sizing: border-box;
- height: 346rpx;
- width: 346rpx !important;
- top: 0rpx;
- bottom: 0rpx;
- overflow: hidden;
- left: 80rpx;
- }
- // 专题页头部
- .topic_top_bar {
- width: 750rpx;
- height: 88rpx;
- background-color: #fff;
- display: flex;
- // justify-content: center;
- align-items: center;
- font-size: 30rpx;
- color: #2d2d2d;
- position: fixed;
- top: 0;
- /* #ifdef MP || APP-PLUS */
- padding-top: 110rpx;
- padding-bottom: 48rpx;
- /* #endif */
- left: 0;
- font-weight: 600;
- z-index: 99999;
- margin: 0 auto;
- right: 0;
- }
- .svideo2_wrap /deep/ .uni-scroll-view /deep/ .uni-scroll-view /deep/ .uni-scroll-view-content>view:nth-last-child(1) {
- margin-right: 0 !important;
- }
- .top_swiper_style1 {
- background: $point-index-title-color;
- }
- .top_swiper_style2 {
- background: linear-gradient($point-index-title-color 0%, $point-index-title-color 42%, #fff 100%);
- }
- .svideo4_wrap /deep/ .uni-scroll-view /deep/ .uni-scroll-view /deep/ .uni-scroll-view-content>view:nth-last-child(1) {
- margin-right: 0 !important;
- }
- .recommond_goods3_wrap {
- display: flex;
- justify-content: space-between;
- }
- .have_sold {
- font-size: 24rpx;
- color: #9a9a9a;
- }
- .topic_back_icon {
- width: 60rpx;
- height: 38rpx;
- padding-left: 20rpx;
- }
- .topic_name {
- width: 100%;
- text-align: center;
- margin-left: -58rpx;
- }
- .hide_sold_wrap {
- width: 100%;
- position: absolute;
- bottom: 20rpx;
- left: 0;
- display: flex;
- justify-content: space-between;
- }
- // 导航分组
- .nav_group {
- padding: 0 86rpx;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- .nav_group_item {
- display: flex;
- align-items: center;
- justify-content: center;
- padding-top: 40rpx;
- margin-bottom: 40rpx;
- image {
- width: 90rpx;
- height: 90rpx;
- border-radius: 50%;
- margin-right: 20rpx;
- }
- .nav_group_name {
- font-size: 26rpx;
- color: #333;
- }
- }
- .nav_group_item:nth-last-child(1) {
- margin-right: 0;
- }
- }
- .nav_group>view:nth-child(2n) {
- margin-right: 0;
- }
- // 导航分组end
- .rec_goods_wrap>view:nth-child(2n) {
- margin-right: 0 !important;
- }
- .carousel-section /deep/ .uni-swiper__warp /deep/ .uni-swiper__dots-box /deep/ .uni-swiper__dots-item {
- width: 16rpx !important;
- }
- .deco_wrap_no_top_cat {
- margin-top: 38rpx !important;
- /* #ifdef MP || APP-PLUS */
- margin-top: 94rpx !important;
- /* #endif */
- }
- .rich_text /deep/ div .ql-align-center {
- text-align: center;
- }
- .rich_text /deep/ div .ql-align-right {
- text-align: right;
- }
- .rich_text /deep/ div .ql-align-left {
- text-align: left;
- }
- /* #ifdef MP*/
- .rich_text {
- text-align: center;
- }
- /* #endif */
- /* #ifdef APP-PLUS*/
- .deco_carousel-section{
- padding-top: 0!important;
- }
- /* #endif */
- </style>
|