SldDiy.vue 59 KB

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