SldDiy.vue 60 KB

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