SldDiy.vue 59 KB

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