123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827 |
- <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
- 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更新时间
- window.location.reload();
- };
- 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;
- };
- </script>
- <style lang="scss" scoped>
- @import "@/assets/style/decorate.scss";
- @import "@/assets/style/theme.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>
|