SldDiy.vue 60 KB

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