SldDiy.vue 59 KB

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