12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841 |
- <template>
- <div class="sld_diy">
- <div v-for="(item, index) in decorateData.data" v-bind:key="index">
- <el-carousel
- v-if="item.json_data && item.json_data.type == 'main_banner'"
- height="457px"
- arrow="never"
- >
- <el-carousel-item
- v-for="(item_banner, index_banner) in item.json_data.data"
- :key="index_banner"
- >
- <a href="javascript:void(0)" @click="diyNavTo(item_banner)">
- <img v-bind:src="item_banner.imgUrl" />
- </a>
- </el-carousel-item>
- </el-carousel>
- <div class="home-slider" v-if="item.json_data && item.json_data.type == 'main_banner_pc'">
- <div class="s1">
- <CategorySortTop/>
- </div>
- <div class="s2">
- <el-carousel
- v-if="item.json_data && item.json_data.type == 'main_banner_pc'"
- height="306px"
- arrow="never"
- >
- <el-carousel-item
- v-for="(item_banner, index_banner) in item.json_data.data"
- :key="index_banner"
- >
- <a href="javascript:void(0)" @click="diyNavTo(item_banner)">
- <img v-bind:src="item_banner.imgUrl" />
- <!-- <div :style="`background-image:url(${item_banner.imgUrl})`"></div> -->
- </a>
- </el-carousel-item>
- </el-carousel>
- </div>
- <div class="s3">
- <a href="javascript:void(0)" @click="diyNavTo(item.json_data.info.left)">
- <p class="title" >
- {{ item.json_data.info.left.title.initialValue }}
- </p>
- </a>
- <p class="link" v-if="!filtersStore.getLoginFlag">
- <nuxt-link to="/login">
- <span>{{L['登录']}}</span>
- </nuxt-link>
- </p>
- <p class="link" v-if="!filtersStore.getLoginFlag">
- <nuxt-link to="/register">
- <span>{{L['注册']}}</span>
- </nuxt-link>
- </p>
- <p class="link" @click="loginOut" v-if="filtersStore.getLoginFlag">
- <a >{{L['退出']}}</a>
- </p>
- <!-- <p class="link">-->
- <!-- <nuxt-link to="/home/contact">-->
- <!-- <span>{{L['发布需求']}}</span>-->
- <!-- </nuxt-link>-->
- <!-- </p>-->
- <p class="link" @click="goSupplierUrl">
- <!-- <nuxt-link to="http://seller.b2b.test.advichcloud.com/user/login">-->
- <a>{{L['供应商']}}</a>
- <!-- </nuxt-link>-->
- </p>
- <a href="javascript:void(0)" v-for="(val, key) in item.json_data.info.right"
- :key="key"
- @click="diyNavTo(val)">
- <p class="desc">
- {{ quillEscapeToHtml(val.title.initialValue) }}
- </p>
- </a>
- </div>
- </div>
- <!-- adv_01 start-->
- <div
- class="adv_01_wrap"
- v-if="item.json_data && item.json_data.type == 'adv_01'"
- :class="{
- adv_01_wrap_full: item.json_data.full_screen && item.json_data.full_screen == 1,
- }"
- :style="{
- height: item.json_data.data.height + 'px',
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <a href="javascript:void(0)" @click="diyNavTo(item.json_data.data)">
- <img class="adv_01_img" v-bind:src="item.json_data.data.imgUrl" />
- </a>
- </div>
- <!-- adv_01 end-->
- <!-- adv_02 start-->
- <div
- class="adv_02_part"
- v-if="item.json_data && item.json_data.type == 'adv_02'"
- :style="{
- height:
- (item.json_data.padding_top ? item.json_data.padding_top : 0) +
- (item.json_data.padding_bottom ? item.json_data.padding_bottom : 0) +
- 344 +
- 'px',
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_02_left" @click="diyNavTo(item.json_data.left.data)">
- <a
- href="javascript:void(0)"
- v-if="item.json_data.left.data.imgUrl != undefined"
- >
- <img v-bind:src="item.json_data.left.data.imgUrl" />
- </a>
- </div>
- <div class="adv_02_center">
- <span class="split_h"></span>
- <div
- class="goods_item clearfix"
- v-for="(item_center, index_center) in item.json_data.center.data.goods_data"
- v-bind:key="index_center"
- @click="goGoodsDetail(item_center)"
- >
- <a target="_blank" href="javascript:void(0)">
- <div class="left">
- <img v-bind:src="item_center.mainImage" />
- </div>
- <div class="right">
- <p class="goods_name">{{ item_center.goodsName }}</p>
- <!-- <p class="buy_num">-->
- <!-- {{ item_center.actualSales * 1 + item_center.virtualSales * 1-->
- <!-- }}{{ L["人购买"] }}-->
- <!-- </p>-->
- <!-- <div class="price">-->
- <!-- <span class="unit">¥</span>-->
- <!-- <span class="integer">{{ item_center.goodsPrice }}</span>-->
- <!-- </div>-->
- <!-- <a class="buy" href="javascript:void(0)">{{ L["立即抢购"] }}</a>-->
- </div>
- </a>
- </div>
- <span class="split_v"></span>
- </div>
- <div class="adv_02_right">
- <span
- class="right_img_item"
- v-for="(item_right, index_right) in item.json_data.right.data"
- v-bind:key="index_right"
- @click="diyNavTo(item_right)"
- >
- <a href="javascript:void(0)">
- <img v-bind:src="item_right.imgUrl" />
- </a>
- </span>
- </div>
- </div>
- <!-- adv_02 end-->
- <!-- adv_04 start-->
- <div
- class="w_sld_react_1210 adv_04_wrap"
- v-if="item.json_data && item.json_data.type == 'adv_04'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="floor_title">
- <h2>
- <font
- v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
- > </font
- >
- <span v-bind:style="{ color: item.json_data.title_info.title_color }">{{
- item.json_data.title_info.title_name
- }}</span>
- <font
- v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
- > </font
- >
- </h2>
- </div>
- <div class="floor_goods">
- <div
- class="item"
- v-for="(item_main, index_main) in item.json_data.data.goods_data"
- v-bind:key="index_main"
- >
- <div class="wrap">
- <router-link
- target="_blank"
- :to="'/goods/detail/'+ calcProductName(item_main.goodsName) +'_'+ item_main.productId"
- >
- <div href="javascript:void(0)" class="example_text">
- <img v-bind:src="item_main.mainImage" />
- </div>
- <p class="title">
- <a href="javascript:void(0)" title>{{ item_main.goodsName }}</a>
- </p>
- <!-- <p class="price">-->
- <!-- <span>-->
- <!-- <span class="money_number">{{ item_main.goodsMoney || '面议' }}</span>-->
- <!-- </span>-->
- <!-- </p>-->
- </router-link>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_04 end-->
- <!-- adv_05 start-->
- <div
- class="w_sld_react_1210 adv_05_wrap"
- v-if="item.json_data && item.json_data.type == 'adv_05'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="floor">
- <div class="floor_layout">
- <div>
- <div class="floor_title">
- <h2>
- <span class="main_title">{{
- item.json_data.title_info.title.initialValue
- }}</span>
- <span class="sub_title">{{
- item.json_data.title_info &&
- item.json_data.title_info.sub_title.initialValue
- }}</span>
- </h2>
- <div class="right_action" v-if="item.json_data.title_info.link_type">
- <a @click="diyNavTo(item.json_data.title_info)">
- {{ L["查看更多"] }}
- <i>>></i>
- </a>
- </div>
- </div>
- <div class="floor_content">
- <div class="floor_left">
- <div class="floor_bg_img">
- <a
- class="ad_img example_text"
- href="javascript:void(0)"
- @click="diyNavTo(item.json_data.left.data)"
- >
- <img v-bind:src="item.json_data.left.data.imgUrl" />
- </a>
- </div>
- <div class="floor_words">
- <div class="floor_words_top_title">
- <font></font>
- <span>{{
- item.json_data.left.cat_data.title_info.title_name
- }}</span>
- <font></font>
- </div>
- <ul>
- <li
- v-for="(item_left_cat, index_left_cat) in item.json_data.left
- .cat_data.cat_datas"
- v-bind:key="index_left_cat"
- >
- <a
- href="javascript:void(0)"
- :title="item_left_cat.categoryName"
- @click="goGoodsListByCatId(item_left_cat.categoryId,item_left_cat.categoryName)"
- >{{ item_left_cat.categoryName }}</a
- >
- </li>
- </ul>
- </div>
- </div>
- <div class="floor_right" style="border-color: rgb(252, 88, 99)">
- <div class="floor_right_main">
- <div class="floor_content">
- <div
- class="big_item item"
- v-if="item.json_data.center.data.goods_data.length"
- >
- <div
- class="wrap"
- @click="goGoodsDetail(item.json_data.center.data.goods_data[0])"
- >
- <div class="left_pic">
- <a href="javascript:void(0)" class="ad_img example_text">
- <img
- v-bind:src="
- item.json_data.center.data.goods_data[0].mainImage
- "
- alt="item.json_data.center.data.goods_data[0].goodsName"
- />
- </a>
- </div>
- <div class="right_info">
- <p class="title">
- <a
- href="javascript:void(0)"
- :title="
- item.json_data.center.data.goods_data[0].goodsName
- "
- >{{
- item.json_data.center.data.goods_data[0].goodsName
- }}</a
- >
- </p>
- <!-- <p class="price">-->
- <!-- <span class="money_number">{{-->
- <!-- item.json_data.center.data.goods_data[0].goodsMoney || '面议'-->
- <!-- }}</span>-->
- <!-- </p>-->
- </div>
- </div>
- </div>
- <div
- class="item"
- v-if="item.json_data.center.data.goods_data.length > 1"
- >
- <div
- class="wrap"
- @click="goGoodsDetail(item.json_data.center.data.goods_data[1])"
- >
- <a class="ad_img" href="javascript:void(0)">
- <img
- v-bind:src="
- item.json_data.center.data.goods_data[1].mainImage
- "
- alt="item.json_data.center.data.goods_data[1].goodsName"
- />
- </a>
- <p class="title">
- <a
- href="javascript:void(0)"
- :title="item.json_data.center.data.goods_data[1].goodsName"
- >{{ item.json_data.center.data.goods_data[1].goodsName }}</a
- >
- </p>
- <!-- <p class="price">-->
- <!-- <span class="money_number">{{-->
- <!-- item.json_data.center.data.goods_data[1].goodsMoney || '面议'-->
- <!-- }}</span>-->
- <!-- </p>-->
- </div>
- </div>
- <template
- v-for="(item_center_bottom, index_center_bottom) in item.json_data
- .center.data.goods_data"
- >
- <div
- class="item bottom_item"
- :key="index_center_bottom"
- v-if="index_center_bottom > 1"
- @click="goGoodsDetail(item_center_bottom)"
- >
- <div class="wrap">
- <a href="javascript:void(0)" class="ad_img example_text">
- <img
- v-bind:src="item_center_bottom.mainImage"
- alt="item_center_bottom.goodsName"
- />
- </a>
- <p class="title">
- <a
- href="javascript:void(0)"
- :title="item_center_bottom.goodsName"
- >{{ item_center_bottom.goodsName }}</a
- >
- </p>
- <!-- <p class="price">-->
- <!-- <span class="money_number">{{-->
- <!-- item_center_bottom.goodsMoney || '面议'-->
- <!-- }}</span>-->
- <!-- </p>-->
- </div>
- </div>
- </template>
- </div>
- </div>
- <div class="floor_right_new">
- <div class="floor_right_new_top_title">
- <font style="background: #fc585a"></font>
- <span style="color: #fc585a">{{
- item.json_data.right.title_info.title_name
- }}</span>
- <font style="background: #fc585a"></font>
- </div>
- <div class="floor_content">
- <div
- class="item"
- v-for="(item_right_goods, index_right_goods) in item.json_data
- .right.data.goods_data"
- v-bind:key="index_right_goods"
- >
- <div class="wrap" @click="goGoodsDetail(item_right_goods)">
- <div class="left_pic">
- <a href="javascript:void(0)" class="ad_img example_text">
- <img
- v-bind:src="item_right_goods.mainImage"
- alt="item_right_goods.goodsName"
- />
- </a>
- </div>
- <div class="right_info">
- <p class="title">
- <a
- href="javascript:void(0)"
- :title="item_right_goods.goodsName"
- >{{ item_right_goods.goodsName }}</a
- >
- </p>
- <!-- <p class="price">-->
- <!-- <span class="money_number">{{-->
- <!-- item_right_goods.goodsMoney || '面议'-->
- <!-- }}</span>-->
- <!-- </p>-->
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_05 end-->
- <!-- adv_06 start-->
- <div
- v-if="item.json_data && item.json_data.type == 'adv_06'"
- class="adv_06 com_1210_center"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_06_wrap">
- <div
- class="item"
- v-for="(item_child, index_child) in item.json_data.data"
- v-bind:key="index_child"
- >
- <a href="javascript:void(0)" @click="diyNavTo(item_child)">
- <img v-bind:src="item_child.imgUrl" />
- </a>
- </div>
- </div>
- </div>
- <!-- adv_06 end-->
- <!-- adv_07 start-->
- <div
- class="w_sld_react_1210 adv_07"
- v-if="item.json_data && item.json_data.type == 'adv_07'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_07_wrap">
- <div
- class="item"
- v-for="(item_child, index_child) in item.json_data.data"
- :key="index_child"
- >
- <a
- href="javascript:void(0);"
- @click="diyNavTo(item_child)"
- v-if="item_child.imgUrl"
- >
- <img :src="item_child.imgUrl" />
- </a>
- <a class="show_tip" href="javascript:void(0);" v-else>
- <span>此处添加【403*高度不限】图片</span>
- </a>
- </div>
- </div>
- </div>
- <!-- adv_07 end-->
- <!-- adv_08 start-->
- <div
- class="w_sld_react_1210 adv_08 com_1210_center"
- v-if="item.json_data && item.json_data.type == 'adv_08'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_08_wrap">
- <div
- class="item"
- v-for="(item_main, index_main) in item.json_data.data"
- v-bind:key="index_main"
- @click="diyNavTo(item_main)"
- >
- <a href="javascript:void(0)">
- <img v-bind:src="item_main.imgUrl" />
- </a>
- </div>
- </div>
- </div>
- <!-- adv_08 end-->
- <!-- adv_09 start-->
- <div
- class="adv_09 com_1210_center"
- v-if="item.json_data && item.json_data.type == 'adv_09'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_09_wrap">
- <div class="item left">
- <div
- class="top_title"
- v-bind:style="{
- backgroundColor: item.json_data.left.title_info.title_bg_color,
- color: item.json_data.left.title_info.title_color,
- }"
- >
- {{ item.json_data.left.title_info.title_name }}
- </div>
- <div class="main_con">
- <a
- class="first show_tip"
- href
- v-for="(item_left, index_left) in item.json_data.left.data"
- v-bind:key="index_left"
- @click="diyNavTo(item_left)"
- >
- <img v-bind:src="item_left.imgUrl" />
- </a>
- </div>
- </div>
- <div class="item center">
- <div
- class="top_title"
- v-bind:style="{
- backgroundColor: item.json_data.center.title_info.title_bg_color,
- color: item.json_data.center.title_info.title_color,
- }"
- >
- {{ item.json_data.center.title_info.title_name }}
- </div>
- <div class="main_con">
- <a
- class="show_tip"
- href
- v-for="(item_center, index_center) in item.json_data.center.data"
- v-bind:key="index_center"
- @click="diyNavTo(item_center)"
- >
- <img v-bind:src="item_center.imgUrl" />
- </a>
- </div>
- </div>
- <div class="item right">
- <div
- class="top_title"
- v-bind:style="{
- backgroundColor: item.json_data.right.title_info.title_bg_color,
- color: item.json_data.right.title_info.title_color,
- }"
- >
- {{ item.json_data.right.title_info.title_name }}
- </div>
- <div class="main_con">
- <a
- class="show_tip"
- href
- v-for="(item_right, index_right) in item.json_data.right.data"
- v-bind:key="index_right"
- @click="diyNavTo(item_right)"
- >
- <img v-bind:src="item_right.imgUrl" />
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_09 end-->
- <!-- adv_10 start-->
- <div
- class="adv_10 com_1210_center"
- v-if="item.json_data && item.json_data.type == 'adv_10'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_10_wrap">
- <div
- class="row_one"
- v-for="(item_one, index_one) in item.json_data.row_one.data"
- v-bind:key="index_one"
- >
- <a href="javascript:void(0)" @click="diyNavTo(item_one)">
- <img v-bind:src="item_one.imgUrl" />
- </a>
- </div>
- <div class="row_four">
- <a
- href="javascript:void(0)"
- v-for="(item_four, index_four) in item.json_data.row_four.data"
- v-bind:key="index_four"
- @click="diyNavTo(item_four)"
- >
- <img v-bind:src="item_four.imgUrl" />
- </a>
- </div>
- <div class="row_five">
- <a
- href="javascript:void(0)"
- v-for="(item_five, index_five) in item.json_data.row_five.data"
- v-bind:key="index_five"
- @click="diyNavTo(item_five)"
- >
- <img v-bind:src="item_five.imgUrl" />
- </a>
- </div>
- </div>
- </div>
- <!-- adv_10 end-->
- <!-- adv_11 start-->
- <div
- class="adv_11 com_1210_center"
- v-if="item.json_data && item.json_data.type == 'adv_11'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_11_wrap">
- <div class="item row_left">
- <a
- href="javascript:void(0)"
- v-for="(item_left, index_left) in item.json_data.row_left.data"
- v-bind:key="index_left"
- v-bind:class="{ lb_margin: index_left % 2 == 1 }"
- @click="diyNavTo(item_left)"
- >
- <img v-bind:src="item_left.imgUrl" />
- </a>
- </div>
- <div class="item row_right">
- <div class="top">
- <a
- href="javascript:void(0)"
- v-if="item.json_data.row_right.top.data[0] != undefined"
- @click="diyNavTo(item.json_data.row_right.top.data[0])"
- >
- <img v-bind:src="item.json_data.row_right.top.data[0].imgUrl" />
- </a>
- </div>
- <div class="bottom">
- <a
- href="javascript:void(0)"
- v-if="item.json_data.row_right.bottom.data[0] != undefined"
- @click="diyNavTo(item.json_data.row_right.bottom.data[0])"
- >
- <img v-bind:src="item.json_data.row_right.bottom.data[0].imgUrl" />
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_11 end-->
- <!-- adv_12 start-->
- <div
- class="adv_12 com_1210_center"
- v-if="item.json_data && item.json_data.type == 'adv_12'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_12_wrap">
- <div class="item left clear_padding">
- <a
- class="l_img"
- href="javascript:void(0)"
- @click="diyNavTo(item.json_data.left.data[0])"
- >
- <img v-bind:src="item.json_data.left.data[0].imgUrl" />
- </a>
- </div>
- <div class="item center">
- <a
- v-for="(item_center, index_center) in item.json_data.center.data"
- v-bind:key="index_center"
- v-bind:class="{ l_b_margin: index_center % 2 == 1 }"
- @click="diyNavTo(item_center)"
- >
- <img v-bind:src="item_center.imgUrl" />
- </a>
- </div>
- <div class="item right">
- <div class="title_wrap" @click="diyNavTo(item.json_data.right.title_info)">
- <a class="title" href="javascript:void(0)">{{
- item.json_data.right.title_info.title.initialValue
- }}</a>
- <span> 》</span>
- <a href="javascript:void(0)" class="subtitle">{{
- item.json_data.right.title_info.sub_title.initialValue
- }}</a>
- </div>
- <div class="img_top">
- <a
- href="javascript:void(0)"
- @click="diyNavTo(item.json_data.right.top.data[0])"
- >
- <img v-bind:src="item.json_data.right.top.data[0].imgUrl" />
- </a>
- </div>
- <div class="img_bottom">
- <a
- class="l_img"
- href="javascript:void(0)"
- v-for="(item_right_bottom, index_right_bottom) in item.json_data.right
- .bottom.data"
- v-bind:key="index_right_bottom"
- @click="diyNavTo(item_right_bottom)"
- >
- <img v-bind:src="item_right_bottom.imgUrl" />
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_12 end-->
- <!-- adv_13 start-->
- <div
- class="w_sld_react_1210 adv_13 com_1210_center"
- v-if="item.json_data && item.json_data.type == 'adv_13'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_13_wrap">
- <div class="item right" @click="diyNavTo(item.json_data.left.title_info)">
- <div class="title_wrap">
- <a class="title" href="javascript:void(0)">{{
- item.json_data.left.title_info.title.initialValue
- }}</a>
- <span> 》</span>
- <a class="subtitle" href="javascript:void(0)">{{
- item.json_data.left.title_info.sub_title.initialValue
- }}</a>
- </div>
- <div class="img_top">
- <a
- class
- href="javascript:void(0)"
- @click="diyNavTo(item.json_data.left.top.data[0])"
- >
- <img v-bind:src="item.json_data.left.top.data[0].imgUrl" />
- </a>
- </div>
- <div class="img_bottom">
- <a
- class
- href="javascript:void(0)"
- v-for="(item_left_bottom, index_left_bottom) in item.json_data.left.bottom
- .data"
- v-bind:key="index_left_bottom"
- v-bind:class="{ l_b_margin: index_left_bottom % 2 == 0 }"
- @click="diyNavTo(item_left_bottom)"
- >
- <img v-bind:src="item_left_bottom.imgUrl" />
- </a>
- </div>
- </div>
- <div class="item right">
- <div class="title_wrap" @click="diyNavTo(item.json_data.center.title_info)">
- <a class="title" href="javascript:void(0)">{{
- item.json_data.center.title_info.title.initialValue
- }}</a>
- <span> 》</span>
- <a class="subtitle" href="javascript:void(0)">{{
- item.json_data.center.title_info.sub_title.initialValue
- }}</a>
- </div>
- <div class="img_top">
- <a
- href="javascript:void(0)"
- @click="diyNavTo(item.json_data.center.top.data[0])"
- >
- <img v-bind:src="item.json_data.center.top.data[0].imgUrl" />
- </a>
- </div>
- <div class="img_bottom">
- <a
- class="l_img"
- href="javascript:void(0)"
- v-for="(item_center_bottom, index_center_bottom) in item.json_data.center
- .bottom.data"
- v-bind:key="index_center_bottom"
- @click="diyNavTo(item_center_bottom)"
- >
- <img v-bind:src="item_center_bottom.imgUrl" />
- </a>
- </div>
- </div>
- <div class="item left clear_padding">
- <a
- class="l_img"
- href="javascript:void(0)"
- @click="diyNavTo(item.json_data.right.data[0])"
- >
- <img :src="item.json_data.right.data[0].imgUrl" />
- </a>
- </div>
- </div>
- </div>
- <!-- adv_13 end-->
- <!-- adv_19 start-->
- <div
- class="w_sld_react_1210 adv_19"
- v-if="item.json_data && item.json_data.type == 'adv_19'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_19_wrap">
- <div
- v-for="(items, index) in item.json_data.data"
- :key="index"
- class="item left"
- >
- <div
- class="top_title"
- :style="{ backgroundColor: items.top.title_info.title_bg_color }"
- >
- <div class="l_title" :style="{ color: items.top.title_info.title_color }">
- {{
- items.top.title_info.title_name
- ? items.top.title_info.title_name
- : "添加标题"
- }}
- </div>
- <div class="r_title">
- <ul>
- <li
- v-for="(val, key) in items.center.right"
- :key="key"
- :class="{ sel_tab: key == items.cur_tab }"
- @mouseover="adv19Tab(item.dataId, index, key, items)"
- >
- <span class="con">
- {{
- val.title_info.title_name ? val.title_info.title_name : "添加内容"
- }}
- </span>
- </li>
- </ul>
- </div>
- </div>
- <div class="center">
- <div class="l_center">
- <a href="javascript:;" @click="diyNavTo(items.center.left.data[0])">
- <img
- v-if="items.center.left.data[0].imgUrl"
- :src="items.center.left.data[0].imgUrl"
- />
- <span v-else>此处添加【186*340】图片</span>
- </a>
- </div>
- <div class="r_center">
- <div class="tabs_panel">
- <div
- v-for="(val, key) in items.center.right[items.cur_tab].data"
- :key="key"
- class="item"
- >
- <div class="title_wrap">
- <a class="main_title" href="javascript:;" @click="diyNavTo(val)">
- {{ val.main_title ? val.main_title : "图片标题" }}
- </a>
- <a class="sub_title" href="javascript:;" @click="diyNavTo(val)">
- {{ val.sub_title ? val.sub_title : "图片子标题" }}
- </a>
- </div>
- <div class="bottom_img">
- <a
- class="sld_com_no_img"
- href="javascript:;"
- @click="diyNavTo(val)"
- >
- <img v-if="val.imgUrl" :src="val.imgUrl" />
- <span v-else>此处添加【172*106】图片</span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="bottom">
- <a
- v-for="(val, key) in items.bottom.data"
- :key="key"
- class="sld_com_no_img"
- href="javascript:;"
- @click="diyNavTo(val)"
- >
- <img v-if="val.imgUrl" :src="val.imgUrl" />
- <span v-else>此处添加【187*120】图片</span>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_19 end-->
- <!-- adv_20 start-->
- <div
- class="w_sld_react_1210 adv_20"
- v-if="item.json_data && item.json_data.type == 'adv_20'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_20_wrap flex_column_start_center">
- <div
- class="flex_row_around_center adv_20_wrap_row"
- v-for="(val, key) in item.json_data.data"
- :key="key"
- >
- <div
- v-for="(child, child_key) in val"
- :key="child_key"
- class="flex_column_center_center adv_20_wrap_item"
- >
- <div
- class="flex_row_center_center adv_20_wrap_item_img"
- style="border-radius: 0px"
- @click="diyNavTo(child)"
- >
- <img :src="child.imgUrl" />
- </div>
- <span class="main_title" @click="diyNavTo(child)">{{
- child.main_title
- }}</span>
- <span class="sub_title" @click="diyNavTo(child)">{{
- child.sub_title
- }}</span>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_20 end-->
- <!-- adv_21 start-->
- <div
- class="w_sld_react_1210 adv_21"
- v-if="item.json_data && item.json_data.type == 'adv_21'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="adv_21_wrap flex_row_start_start">
- <div
- class="flex_column_start_start adv_21_wrap_item"
- v-for="(val1, key1) in item.json_data.data"
- :key="key1"
- >
- <div
- class="flex_row_between_center title_part"
- @click="diyNavTo(val1.top_title)"
- >
- <span class="title">{{ val1.top_title.title.initialValue }}</span>
- <a class="view_more">{{ val1.top_title.sub_title.initialValue }}></a>
- </div>
- <div class="flex_column_start_start detail">
- <div
- class="flex_row_start_start item"
- v-for="(val2, key2) in val1.detail"
- :key="key2"
- >
- <div class="item_left" @click="diyNavTo(val2.left)">
- {{ val2.left.title.initialValue }}
- </div>
- <div class="flex_row_start_center item_right">
- <span
- class="item_right_con"
- v-for="(val3, key3) in val2.right"
- :key="key3"
- @click="diyNavTo(val3)"
- >
- {{ val3.title.initialValue }}
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_21 end-->
- <!-- adv_27 start-->
- <div
- class="w_sld_react_1210 adv_27_wrap"
- v-if="item.json_data && item.json_data.type == 'adv_27'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="floor_title">
- <h2>
- <font
- v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
- > </font
- >
- <span v-bind:style="{ color: item.json_data.title_info.title_color }">{{
- item.json_data.title_info.title_name
- }}</span>
- <font
- v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
- > </font
- >
- </h2>
- </div>
- <div class="floor_goods">
- <div
- class="item"
- v-for="(item_main, index_main) in item.json_data.data.store_data"
- v-bind:key="index_main"
- >
- <router-link
- target="_blank"
- :to="'/store/'+ calcProductName(item_main.storeName) +'_'+ item_main.storeId"
- >
- <div class="wrap">
- <div class="example_text">
- <img v-bind:src="item_main.storeLogo" />
- </div>
- <p class="title">
- <a :title="item_main.storeName">{{ item_main.storeName }}</a>
- </p>
- </div>
- </router-link>
- </div>
- </div>
- </div>
- <!-- adv_27 end-->
- <!-- adv_28 start-->
- <div
- class="w_sld_react_1210 adv_28_wrap"
- v-if="item.json_data && item.json_data.type == 'adv_28'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="section-block industry-booth w_sld_react_1210 ">
- <div class="industry-banner">
- <a class="industry-link" href="javascript:void(0)">
- <div class="industry-theme-image">
- <img class="theme-img-big" v-bind:src="item.json_data.left.data.imgUrl" @click="diyNavTo(item.json_data.left.data)"/>
- </div>
- <div class="industry-theme-info">
- <div class="industry-title">
- {{item.json_data.title_info.title.initialValue}}
- </div>
- <div class="soure-now">
- <span class="btn btn-main" v-if="item.json_data.title_info.link_type" @click="diyNavTo(item.json_data.title_info)">{{
- item.json_data.title_info &&
- item.json_data.title_info.sub_title.initialValue
- }}</span>
- </div>
- </div>
- </a>
- </div>
- <div class="industry-products">
- <div class="prod-item" v-for="(item_center_bottom, index_center_bottom) in item.json_data
- .center.data.goods_data" v-bind:key="index_center_bottom">
- <div class="prod-inr" v-bind:title="item_center_bottom.goodsName" >
- <router-link
- target="_blank"
- :to="'/goods/detail/'+ calcProductName(item_center_bottom.goodsName) +'_'+ item_center_bottom.productId"
- >
- <div class="prod-pic">
- <div class="pic-inr">
- <div class="img-wp">
- <img
- v-bind:src="item_center_bottom.mainImage"
- v-bind:alt="item_center_bottom.goodsName"
- />
- <div class="gg"></div>
- </div>
- </div>
- </div>
- <div class="prod-txt">{{ item_center_bottom.goodsName }}</div>
- </router-link>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_28 end-->
- <!-- adv_29 start-->
- <div
- id="EnquiryWrap"
- class="w_sld_react_1210 adv_29_wrap"
- v-if="item.json_data && item.json_data.type == 'adv_29'"
- :style="{
- paddingTop: item.json_data.padding_top + 'px',
- paddingBottom: item.json_data.padding_bottom + 'px',
- backgroundColor: item.json_data.bg_color,
- }"
- >
- <div class="section-block easy-sourcing w_sld_react_1210">
- <div class="sourcing-bg">
- <img
- class="theme-img-small"
- v-bind:src="item.json_data.left.data.imgUrl"
- @click="diyNavTo(item.json_data.left.data)"
- />
- </div>
- <div class="sourcing-centent">
- <div class="sourcing-form">
- <div class="form-title">{{L['想得到报价吗?']}}</div>
- <HomeSourcingForm/>
- </div>
- <div class="sourcing-text">
- <div class="sourcing-title" @click="diyNavTo(item.json_data.title_info)">{{item.json_data.title_info.title.initialValue}}</div>
- <div class="sourcing-desc" style="margin-bottom: 24px" @click="diyNavTo(item.json_data.title_info)">
- <p>{{item.json_data.title_info.sub_title.initialValue}}</p>
- </div>
- <div class="sourcing-desc" v-for="(item_center, index_center) in item.json_data.center" v-bind:key="index_center" >
- <p @click="diyNavTo(item_center)">
- {{ item_center.title.initialValue }}
- </p>
- </div>
- <div class="sourcing-more">
- <a href="javascript:void(0)" @click="diyNavTo(item.json_data.btn)">
- {{item.json_data.btn.title.initialValue}}<i class="ob-icon icon-right"> ></i>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- adv_29 end-->
- </div>
- </div>
- </template>
- <script setup>
- import {
- ElCarousel,
- ElCarouselItem,
- } from "element-plus";
- import { useFiltersStore } from "@/store/filter.js";
- import { getCurLanguage } from '@/composables/common.js';
- const L = getCurLanguage();
- const router = useRouter()
- const route = useRoute();
- const props = defineProps({
- decorateData: Object, //装修的数据
- source: String, //来源,home:平台首页 store:店铺装修
- });
- const filtersStore = useFiltersStore();
- //退出登录
- const loginOut = async () => {
- filtersStore.setMemberInfo({});
- filtersStore.setLoginStatus(false);
- filtersStore.setToken("");
- filtersStore.setRefreshToken("");
- filtersStore.setTime(new Date().getTime().toString()); //存储refresh_token更新时间
- sessionStorage.setItem('noRefresh', 'true')
- localStorage.setItem('isLoggedIn', 'false');
- };
- const goSupplierUrl = () => {
- let url = supplierUrl;
- window.open(url, '_blank');
- };
- const gotoFun = (val) => {
- // console.log(val)
- // return
- if (val.link_type == "url") {
- //跳转链接地址
- if (val.link_value) {
- val.link_value = quillEscapeToHtml(val.link_value);
- }
- window.open(val.link_value, "_blank");
- } else if (val.link_type == "goods") {
- //跳转商品详情页
- // let routeUrl = router.resolve({
- // path: "/goods/detail",
- // query: {
- // productId: val.info.defaultProductId,
- // },
- // });
- let href = "/goods/detail/"+ calcProductName(val.info.goodsName) +'_'+ val.info.defaultProductId
- window.open(href, "_blank");
- } else if (val.link_type == "category") {
- // 分类列表
- // let routeUrl = router.resolve({
- // path: "/goods/list/categoryId-"+val.info.categoryId,
- // });
- let href = '/goods/list/'+ calcProductName(val.info.categoryName) +'_v-'+ val.info.categoryId + '_gid-' + val.info.grade + '_pid-' + val.info.pid
- window.open(href, "_blank");
- } else if (val.link_type == "keyword") {
- // 关键词
- let path = "/goods/list/search_keyword-"+ val.link_value
- let query = {
- keyword: val.link_value,
- };
- if (val.storeId) {
- query.storeId = val.storeId;
- path+='/storeId-'+val.storeId
- }
- let routeUrl = router.resolve({
- path: path
- });
- window.open(routeUrl.href, "_blank");
- } else if (val.link_type == "topic") {
- //跳转专题页
- let routeUrl = router.push({
- path: "/home/topic",
- query: {
- topicId: val.info.decoId,
- },
- });
- window.open(routeUrl.href, "_blank");
- } else if (val.link_type == "brand_home") {
- //品牌列表
- let routeUrl = router.resolve({
- path: "/brand",
- query: {},
- });
- window.open(routeUrl.href, "_blank");
- } else if (val.link_type == "store_list") {
- //店铺列表
- let routeUrl = router.resolve({
- path: "/store/list/current-1",
- });
- window.open(routeUrl.href, "_blank");
- } else if (val.link_type == "voucher_center") {
- //领券中心
- let routeUrl = router.resolve({
- path: "/coupon",
- });
- window.open(routeUrl.href, "_blank");
- } else if (val.link_type == "point_center") {
- let routeUrl = router.resolve({
- path: "/point/index",
- });
- window.open(routeUrl.href, "_blank");
- }
- }
- const goGoodsListByCatIdFun = (categoryId,name) => {
- let routeUrl = router.resolve({
- path: "/goods/list/_"+ calcProductName(name) +"_v-"+categoryId,
- });
- window.open(routeUrl.href, '_blank');
- }
- function goGoodsDetailFun(availableProductId,goodsName) {
- // let routeUrl = router.resolve({
- // path: "/goods/detail/",
- // query: { productId: availableProductId }
- // });
- let href = "/goods/detail/" + calcProductName(goodsName) + '_' + availableProductId
- window.open(href, '_blank');
- }
- function goStoreDetailFun(availableStoreId,availableStoreName) {
- // let routeUrl = router.resolve({
- // path: "/store",
- // query: { vid: availableStoreId }
- // });
- let href = "/store/" + calcProductName(availableStoreName) + '_' + availableStoreId
- window.open(href, '_blank');
- }
- const diyNavTo = (val) => {
- if (route.query.vid) {
- val.storeId = route.query.vid;
- }
- gotoFun(val);
- };
- const goGoodsDetail = (val) => {
- goGoodsDetailFun(val.productId,val.goodsName);
- };
- const goStoreDetail = (val) => {
- goStoreDetailFun(val.storeId,val.storeName);
- };
- const goGoodsListByCatId = (val,name) => {
- goGoodsListByCatIdFun(val,name);
- };
- //adv_19楼层tab切换事件
- const adv19Tab = (dataId, index, key, items) => {
- items.cur_tab = key;
- };
- onMounted(() => {
- // 是否锚点跳转到询盘区块
- const EnquiryCache = localStorage.getItem("quotations") ?? "";
- if (EnquiryCache) {
- document.getElementById('EnquiryWrap')?.scrollIntoView({ behavior: 'smooth' });
- setTimeout(() => {
- localStorage.removeItem('quotations')
- }, 1000)
- }
- })
- </script>
- <style lang="scss" scoped>
- @import "@/assets/style/decorate.scss";
- @import "@/assets/style/theme.scss";
- @import "@/assets/style/mixins.scss";
- .sld_diy {
- .el-carousel {
- width: 100%;
- margin: 0 auto;
- }
- background: #f1f1f1;
- .el-carousel__item {
- display: flex;
- justify-content: center;
- align-items: center;
- div {
- background-position: center center;
- width: 1920px;
- height: 457px;
- position: absolute;
- left: 50%;
- top: 0;
- margin-left: -960px;
- background-repeat: no-repeat;
- background-size: contain;
- }
- }
- .main_banner {
- width: 100%;
- height: 457px;
- position: relative;
- overflow: hidden;
- margin: 0 auto;
- .nav-menu {
- position: absolute;
- left: 50%;
- margin-left: -600px;
- top: -3px;
- width: 187px;
- height: 457px;
- z-index: 9;
- background-color: rgba(0, 0, 0, 0.6);
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- .menu-wrap {
- .menu-item {
- height: 39px;
- line-height: 39px;
- margin: 5px 0;
- position: relative;
- .first_cat {
- width: 125px;
- display: block;
- font-size: 16px;
- color: #ffffff;
- padding-left: 30px;
- text-overflow: ellipsis;
- overflow: hidden;
- position: relative;
- .nav-menu {
- position: absolute;
- left: 50%;
- margin-left: -600px;
- top: -3px;
- width: 187px;
- height: 457px;
- z-index: 9;
- background-color: rgba(0, 0, 0, 0.6);
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- .menu-wrap {
- .menu-item {
- height: 39px;
- line-height: 39px;
- margin: 5px 0;
- .first_cat {
- width: 125px;
- display: block;
- font-size: 16px;
- color: #ffffff;
- padding-left: 30px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- position: relative;
- &:after {
- position: absolute;
- right: 0px;
- top: 12.5px;
- content: " ";
- width: 7px !important;
- height: 14px !important;
- }
- }
- &:hover {
- background-color: $colorMain;
- .children {
- display: inline-block;
- }
- }
- .children {
- display: none;
- width: 1013px;
- height: 417px;
- background-color: #fff;
- position: absolute;
- top: 0;
- left: 187px;
- padding: 20px 0;
- .fore-dl {
- width: 100%;
- clear: both;
- overflow: hidden;
- }
- dt {
- position: relative;
- float: left;
- width: 152px;
- padding: 8px 30px 0 0;
- text-align: right;
- font-weight: 700;
- line-height: 2em;
- overflow: hidden;
- white-space: nowrap;
- i {
- position: absolute;
- top: 11px;
- right: 18px;
- width: 4px;
- height: 14px;
- font: 400 9px/14px consolas;
- }
- .second {
- color: #333;
- font-size: 14px;
- width: 140px;
- overflow: hidden;
- display: inline-block;
- line-height: 18px;
- text-overflow: ellipsis;
- }
- }
- dd {
- border-top: none;
- border-bottom: 1px dashed #dddddd;
- width: 790px;
- padding: 6px 0;
- float: left;
- line-height: 16px;
- margin-left: 15px;
- }
- .third {
- float: left;
- padding: 0 8px;
- margin: 4px 0;
- line-height: 16px;
- height: 16px;
- border-right: 1px solid #e0e0e0;
- white-space: nowrap;
- color: #999;
- font-size: 13px;
- }
- .children_item {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: flex-start;
- flex-wrap: wrap;
- height: 30px;
- .li_wrap {
- height: 30px;
- line-height: 30px;
- flex: 1;
- padding-left: 23px;
- a {
- line-height: 30px;
- height: 30px;
- color: #999999;
- }
- }
- a {
- color: $colorMain;
- font-size: 14px;
- }
- img {
- width: 42px;
- height: 35px;
- vertical-align: middle;
- margin-right: 15px;
- }
- }
- }
- }
- }
- }
- }
- &:hover {
- background-color: $colorMain;
- .children {
- display: inline-block;
- }
- }
- .children {
- display: none;
- width: 1013px;
- height: 417px;
- background-color: #fff;
- position: absolute;
- top: 0;
- left: 187px;
- padding: 20px 0;
- .fore-dl {
- width: 100%;
- clear: both;
- overflow: hidden;
- }
- dt {
- position: relative;
- float: left;
- width: 152px;
- padding: 8px 30px 0 0;
- text-align: right;
- font-weight: 700;
- line-height: 2em;
- overflow: hidden;
- white-space: nowrap;
- i {
- position: absolute;
- top: 11px;
- right: 18px;
- width: 4px;
- height: 14px;
- font: 400 9px/14px consolas;
- }
- .second {
- color: #333;
- font-size: 14px;
- width: 140px;
- overflow: hidden;
- display: inline-block;
- line-height: 18px;
- text-overflow: ellipsis;
- }
- }
- dd {
- border-top: none;
- border-bottom: 1px dashed #dddddd;
- width: 790px;
- padding: 6px 0;
- float: left;
- line-height: 16px;
- margin-left: 15px;
- }
- .third {
- float: left;
- padding: 0 8px;
- margin: 4px 0;
- line-height: 16px;
- height: 16px;
- border-right: 1px solid #e0e0e0;
- white-space: nowrap;
- color: #999;
- font-size: 13px;
- }
- .children_item {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: flex-start;
- flex-wrap: wrap;
- height: 30px;
- .li_wrap {
- height: 30px;
- line-height: 30px;
- flex: 1;
- padding-left: 23px;
- a {
- line-height: 30px;
- height: 30px;
- color: #999999;
- }
- }
- a {
- color: $colorMain;
- font-size: 14px;
- }
- img {
- width: 42px;
- height: 35px;
- vertical-align: middle;
- margin-right: 15px;
- }
- }
- }
- }
- }
- }
- .swiper-container {
- width: 100%;
- height: 100%;
- position: absolute;
- .swiper-slide {
- a {
- display: inline-block;
- width: 100%;
- height: 100%;
- img {
- width: 1920px;
- height: 100%;
- margin-left: -960px;
- left: 50%;
- position: relative;
- overflow: hidden;
- }
- }
- }
- }
- }
- .main_diy {
- margin-top: 10px;
- }
- .product-box {
- background-color: $colorJ;
- padding: 30px 0 50px;
- h2 {
- font-size: $fontF;
- height: 21px;
- line-height: 21px;
- color: $colorMain;
- margin-bottom: 20px;
- }
- .wrapper {
- display: flex;
- .banner-left {
- margin-right: 16px;
- img {
- width: 224px;
- height: 619px;
- }
- }
- .list-box {
- .list {
- @include flex();
- width: 986px;
- margin-bottom: 14px;
- &:last-child {
- margin-bottom: 0;
- }
- .item {
- width: 236px;
- height: 302px;
- background-color: $colorG;
- text-align: center;
- span {
- display: inline-block;
- width: 67px;
- height: 24px;
- font-size: 14px;
- line-height: 24px;
- color: $colorG;
- &.new-pro {
- background-color: #7ecf68;
- }
- &.kill-pro {
- background-color: #e82626;
- }
- }
- .item-img {
- img {
- width: 100%;
- height: 195px;
- }
- }
- .item-info {
- h3 {
- font-size: 14px;
- color: $colorMain;
- line-height: 14px;
- font-weight: bold;
- }
- p {
- color: $colorD;
- line-height: 13px;
- margin: 6px auto 13px;
- }
- .price {
- color: #f20a0a;
- font-size: 14px;
- font-weight: bold;
- cursor: pointer;
- &:after {
- // @include bgImg(22px, 22px, "/imgs/icon-cart-hover.png");
- content: " ";
- margin-left: 5px;
- vertical-align: middle;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- </style>
|