SldDiy.vue 59 KB

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