1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840 |
- <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更新时间
- 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;
- };
- 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>
|