SldDiy.vue 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  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. let url = supplierUrl;
  1157. window.open(url, '_blank');
  1158. };
  1159. const gotoFun = (val) => {
  1160. // console.log(val)
  1161. // return
  1162. if (val.link_type == "url") {
  1163. //跳转链接地址
  1164. if (val.link_value) {
  1165. val.link_value = quillEscapeToHtml(val.link_value);
  1166. }
  1167. window.open(val.link_value, "_blank");
  1168. } else if (val.link_type == "goods") {
  1169. //跳转商品详情页
  1170. // let routeUrl = router.resolve({
  1171. // path: "/goods/detail",
  1172. // query: {
  1173. // productId: val.info.defaultProductId,
  1174. // },
  1175. // });
  1176. let href = "/goods/detail/"+ calcProductName(val.info.goodsName) +'_'+ val.info.defaultProductId
  1177. window.open(href, "_blank");
  1178. } else if (val.link_type == "category") {
  1179. // 分类列表
  1180. // let routeUrl = router.resolve({
  1181. // path: "/goods/list/categoryId-"+val.info.categoryId,
  1182. // });
  1183. let href = '/goods/list/'+ calcProductName(val.info.categoryName) +'_v-'+ val.info.categoryId + '_gid-' + val.info.grade + '_pid-' + val.info.pid
  1184. window.open(href, "_blank");
  1185. } else if (val.link_type == "keyword") {
  1186. // 关键词
  1187. let path = "/goods/list/search_keyword-"+ val.link_value
  1188. let query = {
  1189. keyword: val.link_value,
  1190. };
  1191. if (val.storeId) {
  1192. query.storeId = val.storeId;
  1193. path+='/storeId-'+val.storeId
  1194. }
  1195. let routeUrl = router.resolve({
  1196. path: path
  1197. });
  1198. window.open(routeUrl.href, "_blank");
  1199. } else if (val.link_type == "topic") {
  1200. //跳转专题页
  1201. let routeUrl = router.push({
  1202. path: "/home/topic",
  1203. query: {
  1204. topicId: val.info.decoId,
  1205. },
  1206. });
  1207. window.open(routeUrl.href, "_blank");
  1208. } else if (val.link_type == "brand_home") {
  1209. //品牌列表
  1210. let routeUrl = router.resolve({
  1211. path: "/brand",
  1212. query: {},
  1213. });
  1214. window.open(routeUrl.href, "_blank");
  1215. } else if (val.link_type == "store_list") {
  1216. //店铺列表
  1217. let routeUrl = router.resolve({
  1218. path: "/store/list/current-1",
  1219. });
  1220. window.open(routeUrl.href, "_blank");
  1221. } else if (val.link_type == "voucher_center") {
  1222. //领券中心
  1223. let routeUrl = router.resolve({
  1224. path: "/coupon",
  1225. });
  1226. window.open(routeUrl.href, "_blank");
  1227. } else if (val.link_type == "point_center") {
  1228. let routeUrl = router.resolve({
  1229. path: "/point/index",
  1230. });
  1231. window.open(routeUrl.href, "_blank");
  1232. }
  1233. }
  1234. const goGoodsListByCatIdFun = (categoryId,name) => {
  1235. let routeUrl = router.resolve({
  1236. path: "/goods/list/_"+ calcProductName(name) +"_v-"+categoryId,
  1237. });
  1238. window.open(routeUrl.href, '_blank');
  1239. }
  1240. function goGoodsDetailFun(availableProductId,goodsName) {
  1241. // let routeUrl = router.resolve({
  1242. // path: "/goods/detail/",
  1243. // query: { productId: availableProductId }
  1244. // });
  1245. let href = "/goods/detail/" + calcProductName(goodsName) + '_' + availableProductId
  1246. window.open(href, '_blank');
  1247. }
  1248. function goStoreDetailFun(availableStoreId,availableStoreName) {
  1249. // let routeUrl = router.resolve({
  1250. // path: "/store",
  1251. // query: { vid: availableStoreId }
  1252. // });
  1253. let href = "/store/" + calcProductName(availableStoreName) + '_' + availableStoreId
  1254. window.open(href, '_blank');
  1255. }
  1256. const diyNavTo = (val) => {
  1257. if (route.query.vid) {
  1258. val.storeId = route.query.vid;
  1259. }
  1260. gotoFun(val);
  1261. };
  1262. const goGoodsDetail = (val) => {
  1263. goGoodsDetailFun(val.productId,val.goodsName);
  1264. };
  1265. const goStoreDetail = (val) => {
  1266. goStoreDetailFun(val.storeId,val.storeName);
  1267. };
  1268. const goGoodsListByCatId = (val,name) => {
  1269. goGoodsListByCatIdFun(val,name);
  1270. };
  1271. //adv_19楼层tab切换事件
  1272. const adv19Tab = (dataId, index, key, items) => {
  1273. items.cur_tab = key;
  1274. };
  1275. onMounted(() => {
  1276. // 是否锚点跳转到询盘区块
  1277. const EnquiryCache = localStorage.getItem("quotations") ?? "";
  1278. if (EnquiryCache) {
  1279. document.getElementById('EnquiryWrap')?.scrollIntoView({ behavior: 'smooth' });
  1280. setTimeout(() => {
  1281. localStorage.removeItem('quotations')
  1282. }, 1000)
  1283. }
  1284. })
  1285. </script>
  1286. <style lang="scss" scoped>
  1287. @import "@/assets/style/decorate.scss";
  1288. @import "@/assets/style/theme.scss";
  1289. @import "@/assets/style/mixins.scss";
  1290. .sld_diy {
  1291. .el-carousel {
  1292. width: 100%;
  1293. margin: 0 auto;
  1294. }
  1295. background: #f1f1f1;
  1296. :deep(.el-carousel__indicator) {
  1297. &.is-active {
  1298. .el-carousel__button {
  1299. background-color: $colorMain !important;
  1300. }
  1301. }
  1302. }
  1303. .el-carousel__item {
  1304. width: 100%;
  1305. height: 100%;
  1306. display: flex;
  1307. justify-content: center;
  1308. align-items: center;
  1309. div {
  1310. background-position: center center;
  1311. width: 100%;
  1312. height: 100%;
  1313. position: absolute;
  1314. left: 50%;
  1315. top: 0;
  1316. margin-left: -960px;
  1317. background-repeat: no-repeat;
  1318. background-size: contain;
  1319. }
  1320. a {
  1321. width: 100%;
  1322. height: 100%;
  1323. img {
  1324. width: 100%;
  1325. height: 100%;
  1326. }
  1327. }
  1328. }
  1329. .main_banner {
  1330. width: 100%;
  1331. height: 457px;
  1332. position: relative;
  1333. overflow: hidden;
  1334. margin: 0 auto;
  1335. .nav-menu {
  1336. position: absolute;
  1337. left: 50%;
  1338. margin-left: -600px;
  1339. top: -3px;
  1340. width: 187px;
  1341. height: 457px;
  1342. z-index: 9;
  1343. background-color: rgba(0, 0, 0, 0.6);
  1344. -webkit-box-sizing: border-box;
  1345. box-sizing: border-box;
  1346. .menu-wrap {
  1347. .menu-item {
  1348. height: 39px;
  1349. line-height: 39px;
  1350. margin: 5px 0;
  1351. position: relative;
  1352. .first_cat {
  1353. width: 125px;
  1354. display: block;
  1355. font-size: 16px;
  1356. color: #ffffff;
  1357. padding-left: 30px;
  1358. text-overflow: ellipsis;
  1359. overflow: hidden;
  1360. position: relative;
  1361. .nav-menu {
  1362. position: absolute;
  1363. left: 50%;
  1364. margin-left: -600px;
  1365. top: -3px;
  1366. width: 187px;
  1367. height: 457px;
  1368. z-index: 9;
  1369. background-color: rgba(0, 0, 0, 0.6);
  1370. -webkit-box-sizing: border-box;
  1371. box-sizing: border-box;
  1372. .menu-wrap {
  1373. .menu-item {
  1374. height: 39px;
  1375. line-height: 39px;
  1376. margin: 5px 0;
  1377. .first_cat {
  1378. width: 125px;
  1379. display: block;
  1380. font-size: 16px;
  1381. color: #ffffff;
  1382. padding-left: 30px;
  1383. text-overflow: ellipsis;
  1384. overflow: hidden;
  1385. white-space: nowrap;
  1386. position: relative;
  1387. &:after {
  1388. position: absolute;
  1389. right: 0px;
  1390. top: 12.5px;
  1391. content: " ";
  1392. width: 7px !important;
  1393. height: 14px !important;
  1394. }
  1395. }
  1396. &:hover {
  1397. background-color: $colorMain;
  1398. .children {
  1399. display: inline-block;
  1400. }
  1401. }
  1402. .children {
  1403. display: none;
  1404. width: 1013px;
  1405. height: 417px;
  1406. background-color: #fff;
  1407. position: absolute;
  1408. top: 0;
  1409. left: 187px;
  1410. padding: 20px 0;
  1411. .fore-dl {
  1412. width: 100%;
  1413. clear: both;
  1414. overflow: hidden;
  1415. }
  1416. dt {
  1417. position: relative;
  1418. float: left;
  1419. width: 152px;
  1420. padding: 8px 30px 0 0;
  1421. text-align: right;
  1422. font-weight: 700;
  1423. line-height: 2em;
  1424. overflow: hidden;
  1425. white-space: nowrap;
  1426. i {
  1427. position: absolute;
  1428. top: 11px;
  1429. right: 18px;
  1430. width: 4px;
  1431. height: 14px;
  1432. font: 400 9px/14px consolas;
  1433. }
  1434. .second {
  1435. color: #333;
  1436. font-size: 14px;
  1437. width: 140px;
  1438. overflow: hidden;
  1439. display: inline-block;
  1440. line-height: 18px;
  1441. text-overflow: ellipsis;
  1442. }
  1443. }
  1444. dd {
  1445. border-top: none;
  1446. border-bottom: 1px dashed #dddddd;
  1447. width: 790px;
  1448. padding: 6px 0;
  1449. float: left;
  1450. line-height: 16px;
  1451. margin-left: 15px;
  1452. }
  1453. .third {
  1454. float: left;
  1455. padding: 0 8px;
  1456. margin: 4px 0;
  1457. line-height: 16px;
  1458. height: 16px;
  1459. border-right: 1px solid #e0e0e0;
  1460. white-space: nowrap;
  1461. color: #999;
  1462. font-size: 13px;
  1463. }
  1464. .children_item {
  1465. display: flex;
  1466. flex-direction: row;
  1467. justify-content: flex-start;
  1468. align-items: flex-start;
  1469. flex-wrap: wrap;
  1470. height: 30px;
  1471. .li_wrap {
  1472. height: 30px;
  1473. line-height: 30px;
  1474. flex: 1;
  1475. padding-left: 23px;
  1476. a {
  1477. line-height: 30px;
  1478. height: 30px;
  1479. color: #999999;
  1480. }
  1481. }
  1482. a {
  1483. color: $colorMain;
  1484. font-size: 14px;
  1485. }
  1486. img {
  1487. width: 42px;
  1488. height: 35px;
  1489. vertical-align: middle;
  1490. margin-right: 15px;
  1491. }
  1492. }
  1493. }
  1494. }
  1495. }
  1496. }
  1497. }
  1498. &:hover {
  1499. background-color: $colorMain;
  1500. .children {
  1501. display: inline-block;
  1502. }
  1503. }
  1504. .children {
  1505. display: none;
  1506. width: 1013px;
  1507. height: 417px;
  1508. background-color: #fff;
  1509. position: absolute;
  1510. top: 0;
  1511. left: 187px;
  1512. padding: 20px 0;
  1513. .fore-dl {
  1514. width: 100%;
  1515. clear: both;
  1516. overflow: hidden;
  1517. }
  1518. dt {
  1519. position: relative;
  1520. float: left;
  1521. width: 152px;
  1522. padding: 8px 30px 0 0;
  1523. text-align: right;
  1524. font-weight: 700;
  1525. line-height: 2em;
  1526. overflow: hidden;
  1527. white-space: nowrap;
  1528. i {
  1529. position: absolute;
  1530. top: 11px;
  1531. right: 18px;
  1532. width: 4px;
  1533. height: 14px;
  1534. font: 400 9px/14px consolas;
  1535. }
  1536. .second {
  1537. color: #333;
  1538. font-size: 14px;
  1539. width: 140px;
  1540. overflow: hidden;
  1541. display: inline-block;
  1542. line-height: 18px;
  1543. text-overflow: ellipsis;
  1544. }
  1545. }
  1546. dd {
  1547. border-top: none;
  1548. border-bottom: 1px dashed #dddddd;
  1549. width: 790px;
  1550. padding: 6px 0;
  1551. float: left;
  1552. line-height: 16px;
  1553. margin-left: 15px;
  1554. }
  1555. .third {
  1556. float: left;
  1557. padding: 0 8px;
  1558. margin: 4px 0;
  1559. line-height: 16px;
  1560. height: 16px;
  1561. border-right: 1px solid #e0e0e0;
  1562. white-space: nowrap;
  1563. color: #999;
  1564. font-size: 13px;
  1565. }
  1566. .children_item {
  1567. display: flex;
  1568. flex-direction: row;
  1569. justify-content: flex-start;
  1570. align-items: flex-start;
  1571. flex-wrap: wrap;
  1572. height: 30px;
  1573. .li_wrap {
  1574. height: 30px;
  1575. line-height: 30px;
  1576. flex: 1;
  1577. padding-left: 23px;
  1578. a {
  1579. line-height: 30px;
  1580. height: 30px;
  1581. color: #999999;
  1582. }
  1583. }
  1584. a {
  1585. color: $colorMain;
  1586. font-size: 14px;
  1587. }
  1588. img {
  1589. width: 42px;
  1590. height: 35px;
  1591. vertical-align: middle;
  1592. margin-right: 15px;
  1593. }
  1594. }
  1595. }
  1596. }
  1597. }
  1598. }
  1599. .swiper-container {
  1600. width: 100%;
  1601. height: 100%;
  1602. position: absolute;
  1603. .swiper-slide {
  1604. a {
  1605. display: inline-block;
  1606. width: 100%;
  1607. height: 100%;
  1608. img {
  1609. width: 1920px;
  1610. height: 100%;
  1611. margin-left: -960px;
  1612. left: 50%;
  1613. position: relative;
  1614. overflow: hidden;
  1615. }
  1616. }
  1617. }
  1618. }
  1619. }
  1620. .main_diy {
  1621. margin-top: 10px;
  1622. }
  1623. .product-box {
  1624. background-color: $colorJ;
  1625. padding: 30px 0 50px;
  1626. h2 {
  1627. font-size: $fontF;
  1628. height: 21px;
  1629. line-height: 21px;
  1630. color: $colorMain;
  1631. margin-bottom: 20px;
  1632. }
  1633. .wrapper {
  1634. display: flex;
  1635. .banner-left {
  1636. margin-right: 16px;
  1637. img {
  1638. width: 224px;
  1639. height: 619px;
  1640. }
  1641. }
  1642. .list-box {
  1643. .list {
  1644. @include flex();
  1645. width: 986px;
  1646. margin-bottom: 14px;
  1647. &:last-child {
  1648. margin-bottom: 0;
  1649. }
  1650. .item {
  1651. width: 236px;
  1652. height: 302px;
  1653. background-color: $colorG;
  1654. text-align: center;
  1655. span {
  1656. display: inline-block;
  1657. width: 67px;
  1658. height: 24px;
  1659. font-size: 14px;
  1660. line-height: 24px;
  1661. color: $colorG;
  1662. &.new-pro {
  1663. background-color: #7ecf68;
  1664. }
  1665. &.kill-pro {
  1666. background-color: #e82626;
  1667. }
  1668. }
  1669. .item-img {
  1670. img {
  1671. width: 100%;
  1672. height: 195px;
  1673. }
  1674. }
  1675. .item-info {
  1676. h3 {
  1677. font-size: 14px;
  1678. color: $colorMain;
  1679. line-height: 14px;
  1680. font-weight: bold;
  1681. }
  1682. p {
  1683. color: $colorD;
  1684. line-height: 13px;
  1685. margin: 6px auto 13px;
  1686. }
  1687. .price {
  1688. color: #f20a0a;
  1689. font-size: 14px;
  1690. font-weight: bold;
  1691. cursor: pointer;
  1692. &:after {
  1693. // @include bgImg(22px, 22px, "/imgs/icon-cart-hover.png");
  1694. content: " ";
  1695. margin-left: 5px;
  1696. vertical-align: middle;
  1697. }
  1698. }
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. }
  1705. }
  1706. </style>