SldDiy.vue 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818
  1. <template>
  2. <div class="sld_diy">
  3. <div v-for="(item, index) in decorateData.data" v-bind:key="index">
  4. <el-carousel
  5. v-if="item.json_data && item.json_data.type == 'main_banner'"
  6. height="457px"
  7. arrow="never"
  8. >
  9. <el-carousel-item
  10. v-for="(item_banner, index_banner) in item.json_data.data"
  11. :key="index_banner"
  12. >
  13. <a href="javascript:void(0)" @click="diyNavTo(item_banner)">
  14. <img v-bind:src="item_banner.imgUrl" />
  15. </a>
  16. </el-carousel-item>
  17. </el-carousel>
  18. <div class="home-slider" v-if="item.json_data && item.json_data.type == 'main_banner_pc'">
  19. <div class="s2">
  20. <el-carousel
  21. v-if="item.json_data && item.json_data.type == 'main_banner_pc'"
  22. height="100%"
  23. arrow="never"
  24. >
  25. <el-carousel-item
  26. v-for="(item_banner, index_banner) in item.json_data.data"
  27. :key="index_banner"
  28. >
  29. <a href="javascript:void(0)" @click="diyNavTo(item_banner)">
  30. <img v-bind:src="item_banner.imgUrl" />
  31. <!-- <div :style="`background-image:url(${item_banner.imgUrl})`"></div> -->
  32. </a>
  33. </el-carousel-item>
  34. </el-carousel>
  35. <div class="home-slider-bottom"></div>
  36. </div>
  37. </div>
  38. <!-- adv_01 start-->
  39. <div
  40. class="adv_01_wrap"
  41. v-if="item.json_data && item.json_data.type == 'adv_01'"
  42. :class="{
  43. adv_01_wrap_full: item.json_data.full_screen && item.json_data.full_screen == 1,
  44. }"
  45. :style="{
  46. height: item.json_data.data.height + 'px',
  47. paddingTop: item.json_data.padding_top + 'px',
  48. paddingBottom: item.json_data.padding_bottom + 'px',
  49. backgroundColor: item.json_data.bg_color,
  50. }"
  51. >
  52. <a href="javascript:void(0)" @click="diyNavTo(item.json_data.data)">
  53. <img class="adv_01_img" v-bind:src="item.json_data.data.imgUrl" />
  54. </a>
  55. </div>
  56. <!-- adv_01 end-->
  57. <!-- adv_02 start-->
  58. <div
  59. class="adv_02_part"
  60. v-if="item.json_data && item.json_data.type == 'adv_02'"
  61. :style="{
  62. height:
  63. (item.json_data.padding_top ? item.json_data.padding_top : 0) +
  64. (item.json_data.padding_bottom ? item.json_data.padding_bottom : 0) +
  65. 344 +
  66. 'px',
  67. paddingTop: item.json_data.padding_top + 'px',
  68. paddingBottom: item.json_data.padding_bottom + 'px',
  69. backgroundColor: item.json_data.bg_color,
  70. }"
  71. >
  72. <div class="adv_02_left" @click="diyNavTo(item.json_data.left.data)">
  73. <a
  74. href="javascript:void(0)"
  75. v-if="item.json_data.left.data.imgUrl != undefined"
  76. >
  77. <img v-bind:src="item.json_data.left.data.imgUrl" />
  78. </a>
  79. </div>
  80. <div class="adv_02_center">
  81. <span class="split_h"></span>
  82. <div
  83. class="goods_item clearfix"
  84. v-for="(item_center, index_center) in item.json_data.center.data.goods_data"
  85. v-bind:key="index_center"
  86. @click="goGoodsDetail(item_center)"
  87. >
  88. <a target="_blank" href="javascript:void(0)">
  89. <div class="left">
  90. <img v-bind:src="item_center.mainImage" />
  91. </div>
  92. <div class="right">
  93. <p class="goods_name">{{ item_center.goodsName }}</p>
  94. <!-- <p class="buy_num">-->
  95. <!-- {{ item_center.actualSales * 1 + item_center.virtualSales * 1-->
  96. <!-- }}{{ L["人购买"] }}-->
  97. <!-- </p>-->
  98. <!-- <div class="price">-->
  99. <!-- <span class="unit">&yen;</span>-->
  100. <!-- <span class="integer">{{ item_center.goodsPrice }}</span>-->
  101. <!-- </div>-->
  102. <!-- <a class="buy" href="javascript:void(0)">{{ L["立即抢购"] }}</a>-->
  103. </div>
  104. </a>
  105. </div>
  106. <span class="split_v"></span>
  107. </div>
  108. <div class="adv_02_right">
  109. <span
  110. class="right_img_item"
  111. v-for="(item_right, index_right) in item.json_data.right.data"
  112. v-bind:key="index_right"
  113. @click="diyNavTo(item_right)"
  114. >
  115. <a href="javascript:void(0)">
  116. <img v-bind:src="item_right.imgUrl" />
  117. </a>
  118. </span>
  119. </div>
  120. </div>
  121. <!-- adv_02 end-->
  122. <!-- adv_04 start-->
  123. <div
  124. class="w_sld_react_1210 adv_04_wrap"
  125. v-if="item.json_data && item.json_data.type == 'adv_04'"
  126. :style="{
  127. paddingTop: item.json_data.padding_top + 'px',
  128. paddingBottom: item.json_data.padding_bottom + 'px',
  129. backgroundColor: item.json_data.bg_color,
  130. }"
  131. >
  132. <div class="floor_title">
  133. <h2>
  134. <!-- <font
  135. v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
  136. >&nbsp;</font
  137. > -->
  138. <span v-bind:style="{ color: item.json_data.title_info.title_color, fontWeight: 'bold' }">{{
  139. item.json_data.title_info.title_name
  140. }}</span>
  141. <!-- <font
  142. v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
  143. >&nbsp;</font
  144. > -->
  145. </h2>
  146. </div>
  147. <div class="floor_goods">
  148. <div
  149. class="item"
  150. v-for="(item_main, index_main) in item.json_data.data.goods_data"
  151. v-bind:key="index_main"
  152. >
  153. <div class="wrap">
  154. <router-link
  155. target="_blank"
  156. :to="'/goods/detail/'+ calcProductName(item_main.goodsName) +'_'+ item_main.productId"
  157. >
  158. <div href="javascript:void(0)" class="example_text">
  159. <img v-bind:src="item_main.mainImage" />
  160. </div>
  161. <p class="title">
  162. <a href="javascript:void(0)" title>{{ item_main.goodsName }}</a>
  163. </p>
  164. <!-- <p class="price">-->
  165. <!-- <span>-->
  166. <!-- <span class="money_number">{{ item_main.goodsMoney || '面议' }}</span>-->
  167. <!-- </span>-->
  168. <!-- </p>-->
  169. </router-link>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <!-- adv_04 end-->
  175. <!-- adv_05 start-->
  176. <div
  177. class="w_sld_react_1210 adv_05_wrap"
  178. v-if="item.json_data && item.json_data.type == 'adv_05'"
  179. :style="{
  180. paddingTop: item.json_data.padding_top + 'px',
  181. paddingBottom: item.json_data.padding_bottom + 'px',
  182. backgroundColor: item.json_data.bg_color,
  183. }"
  184. >
  185. <div class="floor">
  186. <div class="floor_layout">
  187. <div>
  188. <div class="floor_title">
  189. <h2>
  190. <span class="main_title">{{
  191. item.json_data.title_info.title.initialValue
  192. }}</span>
  193. <span class="sub_title">{{
  194. item.json_data.title_info &&
  195. item.json_data.title_info.sub_title.initialValue
  196. }}</span>
  197. </h2>
  198. <div class="right_action" v-if="item.json_data.title_info.link_type">
  199. <a @click="diyNavTo(item.json_data.title_info)">
  200. {{ L["查看更多"] }}
  201. <i>&gt;&gt;</i>
  202. </a>
  203. </div>
  204. </div>
  205. <div class="floor_content">
  206. <div class="floor_left">
  207. <div class="floor_bg_img">
  208. <a
  209. class="ad_img example_text"
  210. href="javascript:void(0)"
  211. @click="diyNavTo(item.json_data.left.data)"
  212. >
  213. <img v-bind:src="item.json_data.left.data.imgUrl" />
  214. </a>
  215. </div>
  216. <div class="floor_words">
  217. <div class="floor_words_top_title">
  218. <font></font>
  219. <span>{{
  220. item.json_data.left.cat_data.title_info.title_name
  221. }}</span>
  222. <font></font>
  223. </div>
  224. <ul>
  225. <li
  226. v-for="(item_left_cat, index_left_cat) in item.json_data.left
  227. .cat_data.cat_datas"
  228. v-bind:key="index_left_cat"
  229. >
  230. <a
  231. href="javascript:void(0)"
  232. :title="item_left_cat.categoryName"
  233. @click="goGoodsListByCatId(item_left_cat.categoryId,item_left_cat.categoryName)"
  234. >{{ item_left_cat.categoryName }}</a
  235. >
  236. </li>
  237. </ul>
  238. </div>
  239. </div>
  240. <div class="floor_right" style="border-color: rgb(252, 88, 99)">
  241. <div class="floor_right_main">
  242. <div class="floor_content">
  243. <div
  244. class="big_item item"
  245. v-if="item.json_data.center.data.goods_data.length"
  246. >
  247. <div
  248. class="wrap"
  249. @click="goGoodsDetail(item.json_data.center.data.goods_data[0])"
  250. >
  251. <div class="left_pic">
  252. <a href="javascript:void(0)" class="ad_img example_text">
  253. <img
  254. v-bind:src="
  255. item.json_data.center.data.goods_data[0].mainImage
  256. "
  257. alt="item.json_data.center.data.goods_data[0].goodsName"
  258. />
  259. </a>
  260. </div>
  261. <div class="right_info">
  262. <p class="title">
  263. <a
  264. href="javascript:void(0)"
  265. :title="
  266. item.json_data.center.data.goods_data[0].goodsName
  267. "
  268. >{{
  269. item.json_data.center.data.goods_data[0].goodsName
  270. }}</a
  271. >
  272. </p>
  273. <!-- <p class="price">-->
  274. <!-- <span class="money_number">{{-->
  275. <!-- item.json_data.center.data.goods_data[0].goodsMoney || '面议'-->
  276. <!-- }}</span>-->
  277. <!-- </p>-->
  278. </div>
  279. </div>
  280. </div>
  281. <div
  282. class="item"
  283. v-if="item.json_data.center.data.goods_data.length > 1"
  284. >
  285. <div
  286. class="wrap"
  287. @click="goGoodsDetail(item.json_data.center.data.goods_data[1])"
  288. >
  289. <a class="ad_img" href="javascript:void(0)">
  290. <img
  291. v-bind:src="
  292. item.json_data.center.data.goods_data[1].mainImage
  293. "
  294. alt="item.json_data.center.data.goods_data[1].goodsName"
  295. />
  296. </a>
  297. <p class="title">
  298. <a
  299. href="javascript:void(0)"
  300. :title="item.json_data.center.data.goods_data[1].goodsName"
  301. >{{ item.json_data.center.data.goods_data[1].goodsName }}</a
  302. >
  303. </p>
  304. <!-- <p class="price">-->
  305. <!-- <span class="money_number">{{-->
  306. <!-- item.json_data.center.data.goods_data[1].goodsMoney || '面议'-->
  307. <!-- }}</span>-->
  308. <!-- </p>-->
  309. </div>
  310. </div>
  311. <template
  312. v-for="(item_center_bottom, index_center_bottom) in item.json_data
  313. .center.data.goods_data"
  314. >
  315. <div
  316. class="item bottom_item"
  317. :key="index_center_bottom"
  318. v-if="index_center_bottom > 1"
  319. @click="goGoodsDetail(item_center_bottom)"
  320. >
  321. <div class="wrap">
  322. <a href="javascript:void(0)" class="ad_img example_text">
  323. <img
  324. v-bind:src="item_center_bottom.mainImage"
  325. alt="item_center_bottom.goodsName"
  326. />
  327. </a>
  328. <p class="title">
  329. <a
  330. href="javascript:void(0)"
  331. :title="item_center_bottom.goodsName"
  332. >{{ item_center_bottom.goodsName }}</a
  333. >
  334. </p>
  335. <!-- <p class="price">-->
  336. <!-- <span class="money_number">{{-->
  337. <!-- item_center_bottom.goodsMoney || '面议'-->
  338. <!-- }}</span>-->
  339. <!-- </p>-->
  340. </div>
  341. </div>
  342. </template>
  343. </div>
  344. </div>
  345. <div class="floor_right_new">
  346. <div class="floor_right_new_top_title">
  347. <font style="background: #fc585a"></font>
  348. <span style="color: #fc585a">{{
  349. item.json_data.right.title_info.title_name
  350. }}</span>
  351. <font style="background: #fc585a"></font>
  352. </div>
  353. <div class="floor_content">
  354. <div
  355. class="item"
  356. v-for="(item_right_goods, index_right_goods) in item.json_data
  357. .right.data.goods_data"
  358. v-bind:key="index_right_goods"
  359. >
  360. <div class="wrap" @click="goGoodsDetail(item_right_goods)">
  361. <div class="left_pic">
  362. <a href="javascript:void(0)" class="ad_img example_text">
  363. <img
  364. v-bind:src="item_right_goods.mainImage"
  365. alt="item_right_goods.goodsName"
  366. />
  367. </a>
  368. </div>
  369. <div class="right_info">
  370. <p class="title">
  371. <a
  372. href="javascript:void(0)"
  373. :title="item_right_goods.goodsName"
  374. >{{ item_right_goods.goodsName }}</a
  375. >
  376. </p>
  377. <!-- <p class="price">-->
  378. <!-- <span class="money_number">{{-->
  379. <!-- item_right_goods.goodsMoney || '面议'-->
  380. <!-- }}</span>-->
  381. <!-- </p>-->
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. <!-- adv_05 end-->
  394. <!-- adv_06 start-->
  395. <div
  396. v-if="item.json_data && item.json_data.type == 'adv_06'"
  397. class="adv_06 com_1210_center"
  398. :style="{
  399. paddingTop: item.json_data.padding_top + 'px',
  400. paddingBottom: item.json_data.padding_bottom + 'px',
  401. backgroundColor: item.json_data.bg_color,
  402. }"
  403. >
  404. <div class="adv_06_wrap">
  405. <div
  406. class="item"
  407. v-for="(item_child, index_child) in item.json_data.data"
  408. v-bind:key="index_child"
  409. >
  410. <a href="javascript:void(0)" @click="diyNavTo(item_child)">
  411. <img v-bind:src="item_child.imgUrl" />
  412. </a>
  413. </div>
  414. </div>
  415. </div>
  416. <!-- adv_06 end-->
  417. <!-- adv_07 start-->
  418. <div
  419. class="w_sld_react_1210 adv_07"
  420. v-if="item.json_data && item.json_data.type == 'adv_07'"
  421. :style="{
  422. paddingTop: item.json_data.padding_top + 'px',
  423. paddingBottom: item.json_data.padding_bottom + 'px',
  424. backgroundColor: item.json_data.bg_color,
  425. }"
  426. >
  427. <div class="adv_07_wrap">
  428. <div
  429. class="item"
  430. v-for="(item_child, index_child) in item.json_data.data"
  431. :key="index_child"
  432. >
  433. <a
  434. href="javascript:void(0);"
  435. @click="diyNavTo(item_child)"
  436. v-if="item_child.imgUrl"
  437. >
  438. <img :src="item_child.imgUrl" />
  439. </a>
  440. <a class="show_tip" href="javascript:void(0);" v-else>
  441. <span>此处添加【403*高度不限】图片</span>
  442. </a>
  443. </div>
  444. </div>
  445. </div>
  446. <!-- adv_07 end-->
  447. <!-- adv_08 start-->
  448. <div
  449. class="w_sld_react_1210 adv_08 com_1210_center"
  450. v-if="item.json_data && item.json_data.type == 'adv_08'"
  451. :style="{
  452. paddingTop: item.json_data.padding_top + 'px',
  453. paddingBottom: item.json_data.padding_bottom + 'px',
  454. backgroundColor: item.json_data.bg_color,
  455. }"
  456. >
  457. <div class="adv_08_wrap">
  458. <div
  459. class="item"
  460. v-for="(item_main, index_main) in item.json_data.data"
  461. v-bind:key="index_main"
  462. @click="diyNavTo(item_main)"
  463. >
  464. <a href="javascript:void(0)">
  465. <img v-bind:src="item_main.imgUrl" />
  466. </a>
  467. </div>
  468. </div>
  469. </div>
  470. <!-- adv_08 end-->
  471. <!-- adv_09 start-->
  472. <div
  473. class="adv_09 com_1210_center"
  474. v-if="item.json_data && item.json_data.type == 'adv_09'"
  475. :style="{
  476. paddingTop: item.json_data.padding_top + 'px',
  477. paddingBottom: item.json_data.padding_bottom + 'px',
  478. backgroundColor: item.json_data.bg_color,
  479. }"
  480. >
  481. <div class="adv_09_wrap">
  482. <div class="item left">
  483. <div
  484. class="top_title"
  485. v-bind:style="{
  486. backgroundColor: item.json_data.left.title_info.title_bg_color,
  487. color: item.json_data.left.title_info.title_color,
  488. }"
  489. >
  490. {{ item.json_data.left.title_info.title_name }}
  491. </div>
  492. <div class="main_con">
  493. <a
  494. class="first show_tip"
  495. href
  496. v-for="(item_left, index_left) in item.json_data.left.data"
  497. v-bind:key="index_left"
  498. @click="diyNavTo(item_left)"
  499. >
  500. <img v-bind:src="item_left.imgUrl" />
  501. </a>
  502. </div>
  503. </div>
  504. <div class="item center">
  505. <div
  506. class="top_title"
  507. v-bind:style="{
  508. backgroundColor: item.json_data.center.title_info.title_bg_color,
  509. color: item.json_data.center.title_info.title_color,
  510. }"
  511. >
  512. {{ item.json_data.center.title_info.title_name }}
  513. </div>
  514. <div class="main_con">
  515. <a
  516. class="show_tip"
  517. href
  518. v-for="(item_center, index_center) in item.json_data.center.data"
  519. v-bind:key="index_center"
  520. @click="diyNavTo(item_center)"
  521. >
  522. <img v-bind:src="item_center.imgUrl" />
  523. </a>
  524. </div>
  525. </div>
  526. <div class="item right">
  527. <div
  528. class="top_title"
  529. v-bind:style="{
  530. backgroundColor: item.json_data.right.title_info.title_bg_color,
  531. color: item.json_data.right.title_info.title_color,
  532. }"
  533. >
  534. {{ item.json_data.right.title_info.title_name }}
  535. </div>
  536. <div class="main_con">
  537. <a
  538. class="show_tip"
  539. href
  540. v-for="(item_right, index_right) in item.json_data.right.data"
  541. v-bind:key="index_right"
  542. @click="diyNavTo(item_right)"
  543. >
  544. <img v-bind:src="item_right.imgUrl" />
  545. </a>
  546. </div>
  547. </div>
  548. </div>
  549. </div>
  550. <!-- adv_09 end-->
  551. <!-- adv_10 start-->
  552. <div
  553. class="adv_10 com_1210_center"
  554. v-if="item.json_data && item.json_data.type == 'adv_10'"
  555. :style="{
  556. paddingTop: item.json_data.padding_top + 'px',
  557. paddingBottom: item.json_data.padding_bottom + 'px',
  558. backgroundColor: item.json_data.bg_color,
  559. }"
  560. >
  561. <div class="adv_10_wrap">
  562. <div
  563. class="row_one"
  564. v-for="(item_one, index_one) in item.json_data.row_one.data"
  565. v-bind:key="index_one"
  566. >
  567. <a href="javascript:void(0)" @click="diyNavTo(item_one)">
  568. <img v-bind:src="item_one.imgUrl" />
  569. </a>
  570. </div>
  571. <div class="row_four">
  572. <a
  573. href="javascript:void(0)"
  574. v-for="(item_four, index_four) in item.json_data.row_four.data"
  575. v-bind:key="index_four"
  576. @click="diyNavTo(item_four)"
  577. >
  578. <img v-bind:src="item_four.imgUrl" />
  579. </a>
  580. </div>
  581. <div class="row_five">
  582. <a
  583. href="javascript:void(0)"
  584. v-for="(item_five, index_five) in item.json_data.row_five.data"
  585. v-bind:key="index_five"
  586. @click="diyNavTo(item_five)"
  587. >
  588. <img v-bind:src="item_five.imgUrl" />
  589. </a>
  590. </div>
  591. </div>
  592. </div>
  593. <!-- adv_10 end-->
  594. <!-- adv_11 start-->
  595. <div
  596. class="adv_11 com_1210_center"
  597. v-if="item.json_data && item.json_data.type == 'adv_11'"
  598. :style="{
  599. paddingTop: item.json_data.padding_top + 'px',
  600. paddingBottom: item.json_data.padding_bottom + 'px',
  601. backgroundColor: item.json_data.bg_color,
  602. }"
  603. >
  604. <div class="adv_11_wrap">
  605. <div class="item row_left">
  606. <a
  607. href="javascript:void(0)"
  608. v-for="(item_left, index_left) in item.json_data.row_left.data"
  609. v-bind:key="index_left"
  610. v-bind:class="{ lb_margin: index_left % 2 == 1 }"
  611. @click="diyNavTo(item_left)"
  612. >
  613. <img v-bind:src="item_left.imgUrl" />
  614. </a>
  615. </div>
  616. <div class="item row_right">
  617. <div class="top">
  618. <a
  619. href="javascript:void(0)"
  620. v-if="item.json_data.row_right.top.data[0] != undefined"
  621. @click="diyNavTo(item.json_data.row_right.top.data[0])"
  622. >
  623. <img v-bind:src="item.json_data.row_right.top.data[0].imgUrl" />
  624. </a>
  625. </div>
  626. <div class="bottom">
  627. <a
  628. href="javascript:void(0)"
  629. v-if="item.json_data.row_right.bottom.data[0] != undefined"
  630. @click="diyNavTo(item.json_data.row_right.bottom.data[0])"
  631. >
  632. <img v-bind:src="item.json_data.row_right.bottom.data[0].imgUrl" />
  633. </a>
  634. </div>
  635. </div>
  636. </div>
  637. </div>
  638. <!-- adv_11 end-->
  639. <!-- adv_12 start-->
  640. <div
  641. class="adv_12 com_1210_center"
  642. v-if="item.json_data && item.json_data.type == 'adv_12'"
  643. :style="{
  644. paddingTop: item.json_data.padding_top + 'px',
  645. paddingBottom: item.json_data.padding_bottom + 'px',
  646. backgroundColor: item.json_data.bg_color,
  647. }"
  648. >
  649. <div class="adv_12_wrap">
  650. <div class="item left clear_padding">
  651. <a
  652. class="l_img"
  653. href="javascript:void(0)"
  654. @click="diyNavTo(item.json_data.left.data[0])"
  655. >
  656. <img v-bind:src="item.json_data.left.data[0].imgUrl" />
  657. </a>
  658. </div>
  659. <div class="item center">
  660. <a
  661. v-for="(item_center, index_center) in item.json_data.center.data"
  662. v-bind:key="index_center"
  663. v-bind:class="{ l_b_margin: index_center % 2 == 1 }"
  664. @click="diyNavTo(item_center)"
  665. >
  666. <img v-bind:src="item_center.imgUrl" />
  667. </a>
  668. </div>
  669. <div class="item right">
  670. <div class="title_wrap" @click="diyNavTo(item.json_data.right.title_info)">
  671. <a class="title" href="javascript:void(0)">{{
  672. item.json_data.right.title_info.title.initialValue
  673. }}</a>
  674. <span> 》</span>
  675. <a href="javascript:void(0)" class="subtitle">{{
  676. item.json_data.right.title_info.sub_title.initialValue
  677. }}</a>
  678. </div>
  679. <div class="img_top">
  680. <a
  681. href="javascript:void(0)"
  682. @click="diyNavTo(item.json_data.right.top.data[0])"
  683. >
  684. <img v-bind:src="item.json_data.right.top.data[0].imgUrl" />
  685. </a>
  686. </div>
  687. <div class="img_bottom">
  688. <a
  689. class="l_img"
  690. href="javascript:void(0)"
  691. v-for="(item_right_bottom, index_right_bottom) in item.json_data.right
  692. .bottom.data"
  693. v-bind:key="index_right_bottom"
  694. @click="diyNavTo(item_right_bottom)"
  695. >
  696. <img v-bind:src="item_right_bottom.imgUrl" />
  697. </a>
  698. </div>
  699. </div>
  700. </div>
  701. </div>
  702. <!-- adv_12 end-->
  703. <!-- adv_13 start-->
  704. <div
  705. class="w_sld_react_1210 adv_13 com_1210_center"
  706. v-if="item.json_data && item.json_data.type == 'adv_13'"
  707. :style="{
  708. paddingTop: item.json_data.padding_top + 'px',
  709. paddingBottom: item.json_data.padding_bottom + 'px',
  710. backgroundColor: item.json_data.bg_color,
  711. }"
  712. >
  713. <div class="adv_13_wrap">
  714. <div class="item right" @click="diyNavTo(item.json_data.left.title_info)">
  715. <div class="title_wrap">
  716. <a class="title" href="javascript:void(0)">{{
  717. item.json_data.left.title_info.title.initialValue
  718. }}</a>
  719. <span> 》</span>
  720. <a class="subtitle" href="javascript:void(0)">{{
  721. item.json_data.left.title_info.sub_title.initialValue
  722. }}</a>
  723. </div>
  724. <div class="img_top">
  725. <a
  726. class
  727. href="javascript:void(0)"
  728. @click="diyNavTo(item.json_data.left.top.data[0])"
  729. >
  730. <img v-bind:src="item.json_data.left.top.data[0].imgUrl" />
  731. </a>
  732. </div>
  733. <div class="img_bottom">
  734. <a
  735. class
  736. href="javascript:void(0)"
  737. v-for="(item_left_bottom, index_left_bottom) in item.json_data.left.bottom
  738. .data"
  739. v-bind:key="index_left_bottom"
  740. v-bind:class="{ l_b_margin: index_left_bottom % 2 == 0 }"
  741. @click="diyNavTo(item_left_bottom)"
  742. >
  743. <img v-bind:src="item_left_bottom.imgUrl" />
  744. </a>
  745. </div>
  746. </div>
  747. <div class="item right">
  748. <div class="title_wrap" @click="diyNavTo(item.json_data.center.title_info)">
  749. <a class="title" href="javascript:void(0)">{{
  750. item.json_data.center.title_info.title.initialValue
  751. }}</a>
  752. <span> 》</span>
  753. <a class="subtitle" href="javascript:void(0)">{{
  754. item.json_data.center.title_info.sub_title.initialValue
  755. }}</a>
  756. </div>
  757. <div class="img_top">
  758. <a
  759. href="javascript:void(0)"
  760. @click="diyNavTo(item.json_data.center.top.data[0])"
  761. >
  762. <img v-bind:src="item.json_data.center.top.data[0].imgUrl" />
  763. </a>
  764. </div>
  765. <div class="img_bottom">
  766. <a
  767. class="l_img"
  768. href="javascript:void(0)"
  769. v-for="(item_center_bottom, index_center_bottom) in item.json_data.center
  770. .bottom.data"
  771. v-bind:key="index_center_bottom"
  772. @click="diyNavTo(item_center_bottom)"
  773. >
  774. <img v-bind:src="item_center_bottom.imgUrl" />
  775. </a>
  776. </div>
  777. </div>
  778. <div class="item left clear_padding">
  779. <a
  780. class="l_img"
  781. href="javascript:void(0)"
  782. @click="diyNavTo(item.json_data.right.data[0])"
  783. >
  784. <img :src="item.json_data.right.data[0].imgUrl" />
  785. </a>
  786. </div>
  787. </div>
  788. </div>
  789. <!-- adv_13 end-->
  790. <!-- adv_19 start-->
  791. <div
  792. class="w_sld_react_1210 adv_19"
  793. v-if="item.json_data && item.json_data.type == 'adv_19'"
  794. :style="{
  795. paddingTop: item.json_data.padding_top + 'px',
  796. paddingBottom: item.json_data.padding_bottom + 'px',
  797. backgroundColor: item.json_data.bg_color,
  798. }"
  799. >
  800. <div class="adv_19_wrap">
  801. <div
  802. v-for="(items, index) in item.json_data.data"
  803. :key="index"
  804. class="item left"
  805. >
  806. <div
  807. class="top_title"
  808. :style="{ backgroundColor: items.top.title_info.title_bg_color }"
  809. >
  810. <div class="l_title" :style="{ color: items.top.title_info.title_color }">
  811. {{
  812. items.top.title_info.title_name
  813. ? items.top.title_info.title_name
  814. : "添加标题"
  815. }}
  816. </div>
  817. <div class="r_title">
  818. <ul>
  819. <li
  820. v-for="(val, key) in items.center.right"
  821. :key="key"
  822. :class="{ sel_tab: key == items.cur_tab }"
  823. @mouseover="adv19Tab(item.dataId, index, key, items)"
  824. >
  825. <span class="con">
  826. {{
  827. val.title_info.title_name ? val.title_info.title_name : "添加内容"
  828. }}
  829. </span>
  830. </li>
  831. </ul>
  832. </div>
  833. </div>
  834. <div class="center">
  835. <div class="l_center">
  836. <a href="javascript:;" @click="diyNavTo(items.center.left.data[0])">
  837. <img
  838. v-if="items.center.left.data[0].imgUrl"
  839. :src="items.center.left.data[0].imgUrl"
  840. />
  841. <span v-else>此处添加【186*340】图片</span>
  842. </a>
  843. </div>
  844. <div class="r_center">
  845. <div class="tabs_panel">
  846. <div
  847. v-for="(val, key) in items.center.right[items.cur_tab].data"
  848. :key="key"
  849. class="item"
  850. >
  851. <div class="title_wrap">
  852. <a class="main_title" href="javascript:;" @click="diyNavTo(val)">
  853. {{ val.main_title ? val.main_title : "图片标题" }}
  854. </a>
  855. <a class="sub_title" href="javascript:;" @click="diyNavTo(val)">
  856. {{ val.sub_title ? val.sub_title : "图片子标题" }}
  857. </a>
  858. </div>
  859. <div class="bottom_img">
  860. <a
  861. class="sld_com_no_img"
  862. href="javascript:;"
  863. @click="diyNavTo(val)"
  864. >
  865. <img v-if="val.imgUrl" :src="val.imgUrl" />
  866. <span v-else>此处添加【172*106】图片</span>
  867. </a>
  868. </div>
  869. </div>
  870. </div>
  871. </div>
  872. </div>
  873. <div class="bottom">
  874. <a
  875. v-for="(val, key) in items.bottom.data"
  876. :key="key"
  877. class="sld_com_no_img"
  878. href="javascript:;"
  879. @click="diyNavTo(val)"
  880. >
  881. <img v-if="val.imgUrl" :src="val.imgUrl" />
  882. <span v-else>此处添加【187*120】图片</span>
  883. </a>
  884. </div>
  885. </div>
  886. </div>
  887. </div>
  888. <!-- adv_19 end-->
  889. <!-- adv_20 start-->
  890. <div
  891. class="w_sld_react_1210 adv_20"
  892. v-if="item.json_data && item.json_data.type == 'adv_20'"
  893. :style="{
  894. paddingTop: item.json_data.padding_top + 'px',
  895. paddingBottom: item.json_data.padding_bottom + 'px',
  896. backgroundColor: item.json_data.bg_color,
  897. }"
  898. >
  899. <div class="adv_20_wrap flex_column_start_center">
  900. <div
  901. class="flex_row_around_center adv_20_wrap_row"
  902. v-for="(val, key) in item.json_data.data"
  903. :key="key"
  904. >
  905. <div
  906. v-for="(child, child_key) in val"
  907. :key="child_key"
  908. class="flex_column_center_center adv_20_wrap_item"
  909. >
  910. <div
  911. class="flex_row_center_center adv_20_wrap_item_img"
  912. style="border-radius: 0px"
  913. @click="diyNavTo(child)"
  914. >
  915. <img :src="child.imgUrl" />
  916. </div>
  917. <span class="main_title" @click="diyNavTo(child)">{{
  918. child.main_title
  919. }}</span>
  920. <span class="sub_title" @click="diyNavTo(child)">{{
  921. child.sub_title
  922. }}</span>
  923. </div>
  924. </div>
  925. </div>
  926. </div>
  927. <!-- adv_20 end-->
  928. <!-- adv_21 start-->
  929. <div
  930. class="w_sld_react_1210 adv_21"
  931. v-if="item.json_data && item.json_data.type == 'adv_21'"
  932. :style="{
  933. paddingTop: item.json_data.padding_top + 'px',
  934. paddingBottom: item.json_data.padding_bottom + 'px',
  935. backgroundColor: item.json_data.bg_color,
  936. }"
  937. >
  938. <div class="adv_21_wrap flex_row_start_start">
  939. <div
  940. class="flex_column_start_start adv_21_wrap_item"
  941. v-for="(val1, key1) in item.json_data.data"
  942. :key="key1"
  943. >
  944. <div
  945. class="flex_row_between_center title_part"
  946. @click="diyNavTo(val1.top_title)"
  947. >
  948. <span class="title">{{ val1.top_title.title.initialValue }}</span>
  949. <a class="view_more">{{ val1.top_title.sub_title.initialValue }}&gt;</a>
  950. </div>
  951. <div class="flex_column_start_start detail">
  952. <div
  953. class="flex_row_start_start item"
  954. v-for="(val2, key2) in val1.detail"
  955. :key="key2"
  956. >
  957. <div class="item_left" @click="diyNavTo(val2.left)">
  958. {{ val2.left.title.initialValue }}
  959. </div>
  960. <div class="flex_row_start_center item_right">
  961. <span
  962. class="item_right_con"
  963. v-for="(val3, key3) in val2.right"
  964. :key="key3"
  965. @click="diyNavTo(val3)"
  966. >
  967. {{ val3.title.initialValue }}
  968. </span>
  969. </div>
  970. </div>
  971. </div>
  972. </div>
  973. </div>
  974. </div>
  975. <!-- adv_21 end-->
  976. <!-- adv_27 start-->
  977. <div
  978. class="w_sld_react_1210 adv_27_wrap"
  979. v-if="item.json_data && item.json_data.type == 'adv_27'"
  980. :style="{
  981. paddingTop: item.json_data.padding_top + 'px',
  982. paddingBottom: item.json_data.padding_bottom + 'px',
  983. backgroundColor: item.json_data.bg_color,
  984. }"
  985. >
  986. <div class="floor_title">
  987. <h2>
  988. <font
  989. v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
  990. >&nbsp;</font
  991. >
  992. <span v-bind:style="{ color: item.json_data.title_info.title_color }">{{
  993. item.json_data.title_info.title_name
  994. }}</span>
  995. <font
  996. v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
  997. >&nbsp;</font
  998. >
  999. </h2>
  1000. </div>
  1001. <div class="floor_goods">
  1002. <div
  1003. class="item"
  1004. v-for="(item_main, index_main) in item.json_data.data.store_data"
  1005. v-bind:key="index_main"
  1006. >
  1007. <router-link
  1008. target="_blank"
  1009. :to="'/store/'+ calcProductName(item_main.storeName) +'_'+ item_main.storeId"
  1010. >
  1011. <div class="wrap">
  1012. <div class="example_text">
  1013. <img v-bind:src="item_main.storeLogo" />
  1014. </div>
  1015. <p class="title">
  1016. <a :title="item_main.storeName">{{ item_main.storeName }}</a>
  1017. </p>
  1018. </div>
  1019. </router-link>
  1020. </div>
  1021. </div>
  1022. </div>
  1023. <!-- adv_27 end-->
  1024. <!-- adv_28 start-->
  1025. <div
  1026. class="w_sld_react_1210 adv_28_wrap"
  1027. v-if="item.json_data && item.json_data.type == 'adv_28'"
  1028. :style="{
  1029. paddingTop: item.json_data.padding_top + 'px',
  1030. paddingBottom: item.json_data.padding_bottom + 'px',
  1031. backgroundColor: item.json_data.bg_color,
  1032. }"
  1033. >
  1034. <div class="section-block industry-booth w_sld_react_1210 ">
  1035. <div class="industry-banner">
  1036. <a class="industry-link" href="javascript:void(0)">
  1037. <div class="industry-theme-image">
  1038. <img class="theme-img-big" v-bind:src="item.json_data.left.data.imgUrl" @click="diyNavTo(item.json_data.left.data)"/>
  1039. </div>
  1040. <div class="industry-theme-info">
  1041. <div class="industry-title">
  1042. {{item.json_data.title_info.title.initialValue}}
  1043. </div>
  1044. <div class="soure-now">
  1045. <span class="btn btn-main" v-if="item.json_data.title_info.link_type" @click="diyNavTo(item.json_data.title_info)">{{
  1046. item.json_data.title_info &&
  1047. item.json_data.title_info.sub_title.initialValue
  1048. }}</span>
  1049. </div>
  1050. </div>
  1051. </a>
  1052. </div>
  1053. <div class="industry-products">
  1054. <div class="prod-item" v-for="(item_center_bottom, index_center_bottom) in item.json_data
  1055. .center.data.goods_data" v-bind:key="index_center_bottom">
  1056. <div class="prod-inr" v-bind:title="item_center_bottom.goodsName" >
  1057. <router-link
  1058. target="_blank"
  1059. :to="'/goods/detail/'+ calcProductName(item_center_bottom.goodsName) +'_'+ item_center_bottom.productId"
  1060. >
  1061. <div class="prod-pic">
  1062. <div class="pic-inr">
  1063. <div class="img-wp">
  1064. <img
  1065. v-bind:src="item_center_bottom.mainImage"
  1066. v-bind:alt="item_center_bottom.goodsName"
  1067. />
  1068. <div class="gg"></div>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. <div class="prod-txt">{{ item_center_bottom.goodsName }}</div>
  1073. </router-link>
  1074. </div>
  1075. </div>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. <!-- adv_28 end-->
  1080. <!-- adv_29 start-->
  1081. <div
  1082. id="EnquiryWrap"
  1083. class="w_sld_react_1210 adv_29_wrap"
  1084. v-if="item.json_data && item.json_data.type == 'adv_29'"
  1085. :style="{
  1086. paddingTop: item.json_data.padding_top + 'px',
  1087. paddingBottom: item.json_data.padding_bottom + 'px',
  1088. backgroundColor: item.json_data.bg_color,
  1089. }"
  1090. >
  1091. <div class="section-block easy-sourcing w_sld_react_1210">
  1092. <div class="sourcing-bg">
  1093. <img
  1094. class="theme-img-small"
  1095. v-bind:src="item.json_data.left.data.imgUrl"
  1096. @click="diyNavTo(item.json_data.left.data)"
  1097. />
  1098. </div>
  1099. <div class="sourcing-centent">
  1100. <div class="sourcing-form">
  1101. <div class="form-title">{{L['想得到报价吗?']}}</div>
  1102. <HomeSourcingForm/>
  1103. </div>
  1104. <div class="sourcing-text">
  1105. <div class="sourcing-title" @click="diyNavTo(item.json_data.title_info)">{{item.json_data.title_info.title.initialValue}}</div>
  1106. <div class="sourcing-desc" style="margin-bottom: 24px" @click="diyNavTo(item.json_data.title_info)">
  1107. <p>{{item.json_data.title_info.sub_title.initialValue}}</p>
  1108. </div>
  1109. <div class="sourcing-desc" v-for="(item_center, index_center) in item.json_data.center" v-bind:key="index_center" >
  1110. <p @click="diyNavTo(item_center)">
  1111. {{ item_center.title.initialValue }}
  1112. </p>
  1113. </div>
  1114. <div class="sourcing-more">
  1115. <a href="javascript:void(0)" @click="diyNavTo(item.json_data.btn)">
  1116. {{item.json_data.btn.title.initialValue}}<i class="ob-icon icon-right"> ></i>
  1117. </a>
  1118. </div>
  1119. </div>
  1120. </div>
  1121. </div>
  1122. </div>
  1123. <!-- adv_29 end-->
  1124. </div>
  1125. </div>
  1126. </template>
  1127. <script setup>
  1128. import {
  1129. ElCarousel,
  1130. ElCarouselItem,
  1131. } from "element-plus";
  1132. import { useFiltersStore } from "@/store/filter.js";
  1133. import { getCurLanguage } from '@/composables/common.js';
  1134. const L = getCurLanguage();
  1135. const router = useRouter()
  1136. const route = useRoute();
  1137. const props = defineProps({
  1138. decorateData: Object, //装修的数据
  1139. source: String, //来源,home:平台首页 store:店铺装修
  1140. });
  1141. const filtersStore = useFiltersStore();
  1142. //退出登录
  1143. const loginOut = async () => {
  1144. filtersStore.setMemberInfo({});
  1145. filtersStore.setLoginStatus(false);
  1146. filtersStore.setToken("");
  1147. filtersStore.setRefreshToken("");
  1148. filtersStore.setTime(new Date().getTime().toString()); //存储refresh_token更新时间
  1149. localStorage.setItem('isLoggedIn', 'false');
  1150. setTimeout(() => {
  1151. localStorage.removeItem('isLoggedIn');
  1152. window.location.reload();
  1153. }, 200)
  1154. };
  1155. const goSupplierUrl = () => {
  1156. const config = useRuntimeConfig()
  1157. let url = config.public.supplierUrl;
  1158. window.open(url, '_blank');
  1159. };
  1160. const gotoFun = (val) => {
  1161. // console.log(val)
  1162. // return
  1163. if (val.link_type == "url") {
  1164. //跳转链接地址
  1165. if (val.link_value) {
  1166. val.link_value = quillEscapeToHtml(val.link_value);
  1167. }
  1168. window.open(val.link_value, "_blank");
  1169. } else if (val.link_type == "goods") {
  1170. //跳转商品详情页
  1171. // let routeUrl = router.resolve({
  1172. // path: "/goods/detail",
  1173. // query: {
  1174. // productId: val.info.defaultProductId,
  1175. // },
  1176. // });
  1177. let href = "/goods/detail/"+ calcProductName(val.info.goodsName) +'_'+ val.info.defaultProductId
  1178. window.open(href, "_blank");
  1179. } else if (val.link_type == "category") {
  1180. // 分类列表
  1181. // let routeUrl = router.resolve({
  1182. // path: "/goods/list/categoryId-"+val.info.categoryId,
  1183. // });
  1184. let href = '/goods/list/'+ calcProductName(val.info.categoryName) +'_v-'+ val.info.categoryId + '_gid-' + val.info.grade + '_pid-' + val.info.pid
  1185. window.open(href, "_blank");
  1186. } else if (val.link_type == "keyword") {
  1187. // 关键词
  1188. let path = "/goods/list/search_keyword-"+ val.link_value
  1189. let query = {
  1190. keyword: val.link_value,
  1191. };
  1192. if (val.storeId) {
  1193. query.storeId = val.storeId;
  1194. path+='/storeId-'+val.storeId
  1195. }
  1196. let routeUrl = router.resolve({
  1197. path: path
  1198. });
  1199. window.open(routeUrl.href, "_blank");
  1200. } else if (val.link_type == "topic") {
  1201. //跳转专题页
  1202. let routeUrl = router.push({
  1203. path: "/home/topic",
  1204. query: {
  1205. topicId: val.info.decoId,
  1206. },
  1207. });
  1208. window.open(routeUrl.href, "_blank");
  1209. } else if (val.link_type == "brand_home") {
  1210. //品牌列表
  1211. let routeUrl = router.resolve({
  1212. path: "/brand",
  1213. query: {},
  1214. });
  1215. window.open(routeUrl.href, "_blank");
  1216. } else if (val.link_type == "store_list") {
  1217. //店铺列表
  1218. let routeUrl = router.resolve({
  1219. path: "/store/list/current-1",
  1220. });
  1221. window.open(routeUrl.href, "_blank");
  1222. } else if (val.link_type == "voucher_center") {
  1223. //领券中心
  1224. let routeUrl = router.resolve({
  1225. path: "/coupon",
  1226. });
  1227. window.open(routeUrl.href, "_blank");
  1228. } else if (val.link_type == "point_center") {
  1229. let routeUrl = router.resolve({
  1230. path: "/point/index",
  1231. });
  1232. window.open(routeUrl.href, "_blank");
  1233. }
  1234. }
  1235. const goGoodsListByCatIdFun = (categoryId,name) => {
  1236. let routeUrl = router.resolve({
  1237. path: "/goods/list/_"+ calcProductName(name) +"_v-"+categoryId,
  1238. });
  1239. window.open(routeUrl.href, '_blank');
  1240. }
  1241. function goGoodsDetailFun(availableProductId,goodsName) {
  1242. // let routeUrl = router.resolve({
  1243. // path: "/goods/detail/",
  1244. // query: { productId: availableProductId }
  1245. // });
  1246. let href = "/goods/detail/" + calcProductName(goodsName) + '_' + availableProductId
  1247. window.open(href, '_blank');
  1248. }
  1249. function goStoreDetailFun(availableStoreId,availableStoreName) {
  1250. // let routeUrl = router.resolve({
  1251. // path: "/store",
  1252. // query: { vid: availableStoreId }
  1253. // });
  1254. let href = "/store/" + calcProductName(availableStoreName) + '_' + availableStoreId
  1255. window.open(href, '_blank');
  1256. }
  1257. const diyNavTo = (val) => {
  1258. if (route.query.vid) {
  1259. val.storeId = route.query.vid;
  1260. }
  1261. gotoFun(val);
  1262. };
  1263. const goGoodsDetail = (val) => {
  1264. goGoodsDetailFun(val.productId,val.goodsName);
  1265. };
  1266. const goStoreDetail = (val) => {
  1267. goStoreDetailFun(val.storeId,val.storeName);
  1268. };
  1269. const goGoodsListByCatId = (val,name) => {
  1270. goGoodsListByCatIdFun(val,name);
  1271. };
  1272. //adv_19楼层tab切换事件
  1273. const adv19Tab = (dataId, index, key, items) => {
  1274. items.cur_tab = key;
  1275. };
  1276. onMounted(() => {
  1277. // 是否锚点跳转到询盘区块
  1278. const EnquiryCache = localStorage.getItem("quotations") ?? "";
  1279. if (EnquiryCache) {
  1280. document.getElementById('EnquiryWrap')?.scrollIntoView({ behavior: 'smooth' });
  1281. setTimeout(() => {
  1282. localStorage.removeItem('quotations')
  1283. }, 1000)
  1284. }
  1285. })
  1286. </script>
  1287. <style lang="scss" scoped>
  1288. @import "@/assets/style/decorate.scss";
  1289. @import "@/assets/style/theme.scss";
  1290. @import "@/assets/style/mixins.scss";
  1291. .sld_diy {
  1292. .el-carousel {
  1293. width: 100%;
  1294. margin: 0 auto;
  1295. }
  1296. background: #f1f1f1;
  1297. :deep(.el-carousel__indicator) {
  1298. &.is-active {
  1299. .el-carousel__button {
  1300. background-color: $colorMain !important;
  1301. }
  1302. }
  1303. }
  1304. .el-carousel__item {
  1305. width: 100%;
  1306. height: 100%;
  1307. display: flex;
  1308. justify-content: center;
  1309. align-items: center;
  1310. div {
  1311. background-position: center center;
  1312. width: 100%;
  1313. height: 100%;
  1314. position: absolute;
  1315. left: 50%;
  1316. top: 0;
  1317. margin-left: -960px;
  1318. background-repeat: no-repeat;
  1319. background-size: contain;
  1320. }
  1321. a {
  1322. width: 100%;
  1323. height: 100%;
  1324. img {
  1325. width: 100%;
  1326. height: 100%;
  1327. object-fit: cover; /* 铺满容器,但会裁掉多余部分 */
  1328. }
  1329. }
  1330. }
  1331. .main_banner {
  1332. width: 100%;
  1333. height: 457px;
  1334. position: relative;
  1335. overflow: hidden;
  1336. margin: 0 auto;
  1337. .nav-menu {
  1338. position: absolute;
  1339. left: 50%;
  1340. margin-left: -600px;
  1341. top: -3px;
  1342. width: 187px;
  1343. height: 457px;
  1344. z-index: 9;
  1345. background-color: rgba(0, 0, 0, 0.6);
  1346. -webkit-box-sizing: border-box;
  1347. box-sizing: border-box;
  1348. .menu-wrap {
  1349. .menu-item {
  1350. height: 39px;
  1351. line-height: 39px;
  1352. margin: 5px 0;
  1353. position: relative;
  1354. .first_cat {
  1355. width: 125px;
  1356. display: block;
  1357. font-size: 16px;
  1358. color: #ffffff;
  1359. padding-left: 30px;
  1360. text-overflow: ellipsis;
  1361. overflow: hidden;
  1362. position: relative;
  1363. .nav-menu {
  1364. position: absolute;
  1365. left: 50%;
  1366. margin-left: -600px;
  1367. top: -3px;
  1368. width: 187px;
  1369. height: 457px;
  1370. z-index: 9;
  1371. background-color: rgba(0, 0, 0, 0.6);
  1372. -webkit-box-sizing: border-box;
  1373. box-sizing: border-box;
  1374. .menu-wrap {
  1375. .menu-item {
  1376. height: 39px;
  1377. line-height: 39px;
  1378. margin: 5px 0;
  1379. .first_cat {
  1380. width: 125px;
  1381. display: block;
  1382. font-size: 16px;
  1383. color: #ffffff;
  1384. padding-left: 30px;
  1385. text-overflow: ellipsis;
  1386. overflow: hidden;
  1387. white-space: nowrap;
  1388. position: relative;
  1389. &:after {
  1390. position: absolute;
  1391. right: 0px;
  1392. top: 12.5px;
  1393. content: " ";
  1394. width: 7px !important;
  1395. height: 14px !important;
  1396. }
  1397. }
  1398. &:hover {
  1399. background-color: $colorMain;
  1400. .children {
  1401. display: inline-block;
  1402. }
  1403. }
  1404. .children {
  1405. display: none;
  1406. width: 1013px;
  1407. height: 417px;
  1408. background-color: #fff;
  1409. position: absolute;
  1410. top: 0;
  1411. left: 187px;
  1412. padding: 20px 0;
  1413. .fore-dl {
  1414. width: 100%;
  1415. clear: both;
  1416. overflow: hidden;
  1417. }
  1418. dt {
  1419. position: relative;
  1420. float: left;
  1421. width: 152px;
  1422. padding: 8px 30px 0 0;
  1423. text-align: right;
  1424. font-weight: 700;
  1425. line-height: 2em;
  1426. overflow: hidden;
  1427. white-space: nowrap;
  1428. i {
  1429. position: absolute;
  1430. top: 11px;
  1431. right: 18px;
  1432. width: 4px;
  1433. height: 14px;
  1434. font: 400 9px/14px consolas;
  1435. }
  1436. .second {
  1437. color: #333;
  1438. font-size: 14px;
  1439. width: 140px;
  1440. overflow: hidden;
  1441. display: inline-block;
  1442. line-height: 18px;
  1443. text-overflow: ellipsis;
  1444. }
  1445. }
  1446. dd {
  1447. border-top: none;
  1448. border-bottom: 1px dashed #dddddd;
  1449. width: 790px;
  1450. padding: 6px 0;
  1451. float: left;
  1452. line-height: 16px;
  1453. margin-left: 15px;
  1454. }
  1455. .third {
  1456. float: left;
  1457. padding: 0 8px;
  1458. margin: 4px 0;
  1459. line-height: 16px;
  1460. height: 16px;
  1461. border-right: 1px solid #e0e0e0;
  1462. white-space: nowrap;
  1463. color: #999;
  1464. font-size: 13px;
  1465. }
  1466. .children_item {
  1467. display: flex;
  1468. flex-direction: row;
  1469. justify-content: flex-start;
  1470. align-items: flex-start;
  1471. flex-wrap: wrap;
  1472. height: 30px;
  1473. .li_wrap {
  1474. height: 30px;
  1475. line-height: 30px;
  1476. flex: 1;
  1477. padding-left: 23px;
  1478. a {
  1479. line-height: 30px;
  1480. height: 30px;
  1481. color: #999999;
  1482. }
  1483. }
  1484. a {
  1485. color: $colorMain;
  1486. font-size: 14px;
  1487. }
  1488. img {
  1489. width: 42px;
  1490. height: 35px;
  1491. vertical-align: middle;
  1492. margin-right: 15px;
  1493. }
  1494. }
  1495. }
  1496. }
  1497. }
  1498. }
  1499. }
  1500. &:hover {
  1501. background-color: $colorMain;
  1502. .children {
  1503. display: inline-block;
  1504. }
  1505. }
  1506. .children {
  1507. display: none;
  1508. width: 1013px;
  1509. height: 417px;
  1510. background-color: #fff;
  1511. position: absolute;
  1512. top: 0;
  1513. left: 187px;
  1514. padding: 20px 0;
  1515. .fore-dl {
  1516. width: 100%;
  1517. clear: both;
  1518. overflow: hidden;
  1519. }
  1520. dt {
  1521. position: relative;
  1522. float: left;
  1523. width: 152px;
  1524. padding: 8px 30px 0 0;
  1525. text-align: right;
  1526. font-weight: 700;
  1527. line-height: 2em;
  1528. overflow: hidden;
  1529. white-space: nowrap;
  1530. i {
  1531. position: absolute;
  1532. top: 11px;
  1533. right: 18px;
  1534. width: 4px;
  1535. height: 14px;
  1536. font: 400 9px/14px consolas;
  1537. }
  1538. .second {
  1539. color: #333;
  1540. font-size: 14px;
  1541. width: 140px;
  1542. overflow: hidden;
  1543. display: inline-block;
  1544. line-height: 18px;
  1545. text-overflow: ellipsis;
  1546. }
  1547. }
  1548. dd {
  1549. border-top: none;
  1550. border-bottom: 1px dashed #dddddd;
  1551. width: 790px;
  1552. padding: 6px 0;
  1553. float: left;
  1554. line-height: 16px;
  1555. margin-left: 15px;
  1556. }
  1557. .third {
  1558. float: left;
  1559. padding: 0 8px;
  1560. margin: 4px 0;
  1561. line-height: 16px;
  1562. height: 16px;
  1563. border-right: 1px solid #e0e0e0;
  1564. white-space: nowrap;
  1565. color: #999;
  1566. font-size: 13px;
  1567. }
  1568. .children_item {
  1569. display: flex;
  1570. flex-direction: row;
  1571. justify-content: flex-start;
  1572. align-items: flex-start;
  1573. flex-wrap: wrap;
  1574. height: 30px;
  1575. .li_wrap {
  1576. height: 30px;
  1577. line-height: 30px;
  1578. flex: 1;
  1579. padding-left: 23px;
  1580. a {
  1581. line-height: 30px;
  1582. height: 30px;
  1583. color: #999999;
  1584. }
  1585. }
  1586. a {
  1587. color: $colorMain;
  1588. font-size: 14px;
  1589. }
  1590. img {
  1591. width: 42px;
  1592. height: 35px;
  1593. vertical-align: middle;
  1594. margin-right: 15px;
  1595. }
  1596. }
  1597. }
  1598. }
  1599. }
  1600. }
  1601. .swiper-container {
  1602. width: 100%;
  1603. height: 100%;
  1604. position: absolute;
  1605. .swiper-slide {
  1606. a {
  1607. display: inline-block;
  1608. width: 100%;
  1609. height: 100%;
  1610. img {
  1611. width: 1920px;
  1612. height: 100%;
  1613. margin-left: -960px;
  1614. left: 50%;
  1615. position: relative;
  1616. overflow: hidden;
  1617. }
  1618. }
  1619. }
  1620. }
  1621. }
  1622. .main_diy {
  1623. margin-top: 10px;
  1624. }
  1625. .product-box {
  1626. background-color: $colorJ;
  1627. padding: 30px 0 50px;
  1628. h2 {
  1629. font-size: $fontF;
  1630. height: 21px;
  1631. line-height: 21px;
  1632. color: $colorMain;
  1633. margin-bottom: 20px;
  1634. }
  1635. .wrapper {
  1636. display: flex;
  1637. .banner-left {
  1638. margin-right: 16px;
  1639. img {
  1640. width: 224px;
  1641. height: 619px;
  1642. }
  1643. }
  1644. .list-box {
  1645. .list {
  1646. @include flex();
  1647. width: 986px;
  1648. margin-bottom: 14px;
  1649. &:last-child {
  1650. margin-bottom: 0;
  1651. }
  1652. .item {
  1653. width: 236px;
  1654. height: 302px;
  1655. background-color: $colorG;
  1656. text-align: center;
  1657. span {
  1658. display: inline-block;
  1659. width: 67px;
  1660. height: 24px;
  1661. font-size: 14px;
  1662. line-height: 24px;
  1663. color: $colorG;
  1664. &.new-pro {
  1665. background-color: #7ecf68;
  1666. }
  1667. &.kill-pro {
  1668. background-color: #e82626;
  1669. }
  1670. }
  1671. .item-img {
  1672. img {
  1673. width: 100%;
  1674. height: 195px;
  1675. }
  1676. }
  1677. .item-info {
  1678. h3 {
  1679. font-size: 14px;
  1680. color: $colorMain;
  1681. line-height: 14px;
  1682. font-weight: bold;
  1683. }
  1684. p {
  1685. color: $colorD;
  1686. line-height: 13px;
  1687. margin: 6px auto 13px;
  1688. }
  1689. .price {
  1690. color: #f20a0a;
  1691. font-size: 14px;
  1692. font-weight: bold;
  1693. cursor: pointer;
  1694. &:after {
  1695. // @include bgImg(22px, 22px, "/imgs/icon-cart-hover.png");
  1696. content: " ";
  1697. margin-left: 5px;
  1698. vertical-align: middle;
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. }
  1705. }
  1706. }
  1707. }
  1708. </style>