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="520px"
  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. marginTop: item.json_data.padding_top + 'px',
  48. marginBottom: 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. marginTop: item.json_data.padding_top + 'px',
  68. marginBottom: 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. marginTop: item.json_data.padding_top + 'px',
  128. marginBottom: 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. <div class="wrap-img-wrap">
  160. <img v-bind:src="item_main.mainImage" />
  161. </div>
  162. <p class="title">
  163. <a href="javascript:void(0)" title>{{ item_main.goodsName }}</a>
  164. </p>
  165. <!-- <p class="price" v-if="item_main.goodsMoney">
  166. <span>
  167. <span class="money_number">{{ item_main.goodsMoney || '面议' }}</span>
  168. </span>
  169. </p> -->
  170. </router-link>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <!-- adv_04 end-->
  176. <!-- adv_05 start-->
  177. <div
  178. class="w_sld_react_1210 adv_05_wrap"
  179. v-if="item.json_data && item.json_data.type == 'adv_05'"
  180. :style="{
  181. marginTop: item.json_data.padding_top + 'px',
  182. marginBottom: item.json_data.padding_bottom + 'px',
  183. backgroundColor: item.json_data.bg_color,
  184. }"
  185. >
  186. <div class="floor">
  187. <div class="floor_layout">
  188. <div>
  189. <div class="floor_title">
  190. <h2>
  191. <span class="main_title">{{
  192. item.json_data.title_info.title.initialValue
  193. }}</span>
  194. <span class="sub_title">{{
  195. item.json_data.title_info &&
  196. item.json_data.title_info.sub_title.initialValue
  197. }}</span>
  198. </h2>
  199. <div class="right_action" v-if="item.json_data.title_info.link_type">
  200. <a @click="diyNavTo(item.json_data.title_info)">
  201. {{ L["查看更多"] }}
  202. <i>&gt;&gt;</i>
  203. </a>
  204. </div>
  205. </div>
  206. <div class="floor_content">
  207. <div class="floor_left">
  208. <div class="floor_bg_img">
  209. <a
  210. class="ad_img example_text"
  211. href="javascript:void(0)"
  212. @click="diyNavTo(item.json_data.left.data)"
  213. >
  214. <img v-bind:src="item.json_data.left.data.imgUrl" />
  215. </a>
  216. </div>
  217. <div class="floor_words">
  218. <div class="floor_words_top_title">
  219. <font></font>
  220. <span>{{
  221. item.json_data.left.cat_data.title_info.title_name
  222. }}</span>
  223. <font></font>
  224. </div>
  225. <ul>
  226. <li
  227. v-for="(item_left_cat, index_left_cat) in item.json_data.left
  228. .cat_data.cat_datas"
  229. v-bind:key="index_left_cat"
  230. >
  231. <a
  232. href="javascript:void(0)"
  233. :title="item_left_cat.categoryName"
  234. @click="goGoodsListByCatId(item_left_cat)"
  235. >{{ item_left_cat.categoryName }}</a
  236. >
  237. </li>
  238. </ul>
  239. </div>
  240. </div>
  241. <div class="floor_right" style="border-color: rgb(252, 88, 99)">
  242. <div class="floor_right_main">
  243. <div class="floor_content">
  244. <div
  245. class="big_item item"
  246. v-if="item.json_data.center.data.goods_data.length"
  247. >
  248. <div
  249. class="wrap"
  250. @click="goGoodsDetail(item.json_data.center.data.goods_data[0])"
  251. >
  252. <div class="left_pic">
  253. <a href="javascript:void(0)" class="ad_img example_text">
  254. <img
  255. v-bind:src="
  256. item.json_data.center.data.goods_data[0].mainImage
  257. "
  258. alt="item.json_data.center.data.goods_data[0].goodsName"
  259. />
  260. </a>
  261. </div>
  262. <div class="right_info">
  263. <p class="title">
  264. <a
  265. href="javascript:void(0)"
  266. :title="
  267. item.json_data.center.data.goods_data[0].goodsName
  268. "
  269. >{{
  270. item.json_data.center.data.goods_data[0].goodsName
  271. }}</a
  272. >
  273. </p>
  274. <!-- <p class="price">-->
  275. <!-- <span class="money_number">{{-->
  276. <!-- item.json_data.center.data.goods_data[0].goodsMoney || '面议'-->
  277. <!-- }}</span>-->
  278. <!-- </p>-->
  279. </div>
  280. </div>
  281. </div>
  282. <div
  283. class="item"
  284. v-if="item.json_data.center.data.goods_data.length > 1"
  285. >
  286. <div
  287. class="wrap"
  288. @click="goGoodsDetail(item.json_data.center.data.goods_data[1])"
  289. >
  290. <a class="ad_img" href="javascript:void(0)">
  291. <img
  292. v-bind:src="
  293. item.json_data.center.data.goods_data[1].mainImage
  294. "
  295. alt="item.json_data.center.data.goods_data[1].goodsName"
  296. />
  297. </a>
  298. <p class="title">
  299. <a
  300. href="javascript:void(0)"
  301. :title="item.json_data.center.data.goods_data[1].goodsName"
  302. >{{ item.json_data.center.data.goods_data[1].goodsName }}</a
  303. >
  304. </p>
  305. <!-- <p class="price">-->
  306. <!-- <span class="money_number">{{-->
  307. <!-- item.json_data.center.data.goods_data[1].goodsMoney || '面议'-->
  308. <!-- }}</span>-->
  309. <!-- </p>-->
  310. </div>
  311. </div>
  312. <template
  313. v-for="(item_center_bottom, index_center_bottom) in item.json_data
  314. .center.data.goods_data"
  315. >
  316. <div
  317. class="item bottom_item"
  318. :key="index_center_bottom"
  319. v-if="index_center_bottom > 1"
  320. @click="goGoodsDetail(item_center_bottom)"
  321. >
  322. <div class="wrap">
  323. <a href="javascript:void(0)" class="ad_img example_text">
  324. <img
  325. v-bind:src="item_center_bottom.mainImage"
  326. alt="item_center_bottom.goodsName"
  327. />
  328. </a>
  329. <p class="title">
  330. <a
  331. href="javascript:void(0)"
  332. :title="item_center_bottom.goodsName"
  333. >{{ item_center_bottom.goodsName }}</a
  334. >
  335. </p>
  336. <!-- <p class="price">-->
  337. <!-- <span class="money_number">{{-->
  338. <!-- item_center_bottom.goodsMoney || '面议'-->
  339. <!-- }}</span>-->
  340. <!-- </p>-->
  341. </div>
  342. </div>
  343. </template>
  344. </div>
  345. </div>
  346. <div class="floor_right_new">
  347. <div class="floor_right_new_top_title">
  348. <font style="background: #fc585a"></font>
  349. <span style="color: #fc585a">{{
  350. item.json_data.right.title_info.title_name
  351. }}</span>
  352. <font style="background: #fc585a"></font>
  353. </div>
  354. <div class="floor_content">
  355. <div
  356. class="item"
  357. v-for="(item_right_goods, index_right_goods) in item.json_data
  358. .right.data.goods_data"
  359. v-bind:key="index_right_goods"
  360. >
  361. <div class="wrap" @click="goGoodsDetail(item_right_goods)">
  362. <div class="left_pic">
  363. <a href="javascript:void(0)" class="ad_img example_text">
  364. <img
  365. v-bind:src="item_right_goods.mainImage"
  366. alt="item_right_goods.goodsName"
  367. />
  368. </a>
  369. </div>
  370. <div class="right_info">
  371. <p class="title">
  372. <a
  373. href="javascript:void(0)"
  374. :title="item_right_goods.goodsName"
  375. >{{ item_right_goods.goodsName }}</a
  376. >
  377. </p>
  378. <!-- <p class="price">-->
  379. <!-- <span class="money_number">{{-->
  380. <!-- item_right_goods.goodsMoney || '面议'-->
  381. <!-- }}</span>-->
  382. <!-- </p>-->
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. <!-- adv_05 end-->
  395. <!-- adv_06 start-->
  396. <div
  397. v-if="item.json_data && item.json_data.type == 'adv_06'"
  398. class="adv_06 com_1210_center"
  399. :style="{
  400. marginTop: item.json_data.padding_top + 'px',
  401. marginBottom: item.json_data.padding_bottom + 'px',
  402. backgroundColor: item.json_data.bg_color,
  403. }"
  404. >
  405. <div class="adv_06_wrap">
  406. <div
  407. class="item"
  408. v-for="(item_child, index_child) in item.json_data.data"
  409. v-bind:key="index_child"
  410. >
  411. <a href="javascript:void(0)" @click="diyNavTo(item_child)">
  412. <img v-bind:src="item_child.imgUrl" />
  413. </a>
  414. </div>
  415. </div>
  416. </div>
  417. <!-- adv_06 end-->
  418. <!-- adv_07 start-->
  419. <div
  420. class="w_sld_react_1210 adv_07"
  421. v-if="item.json_data && item.json_data.type == 'adv_07'"
  422. :style="{
  423. marginTop: item.json_data.padding_top + 'px',
  424. marginBottom: item.json_data.padding_bottom + 'px',
  425. backgroundColor: item.json_data.bg_color,
  426. }"
  427. >
  428. <div class="adv_07_wrap">
  429. <div
  430. class="item"
  431. v-for="(item_child, index_child) in item.json_data.data"
  432. :key="index_child"
  433. >
  434. <a
  435. href="javascript:void(0);"
  436. @click="diyNavTo(item_child)"
  437. v-if="item_child.imgUrl"
  438. >
  439. <img :src="item_child.imgUrl" />
  440. </a>
  441. <a class="show_tip" href="javascript:void(0);" v-else>
  442. <span>此处添加【403*高度不限】图片</span>
  443. </a>
  444. </div>
  445. </div>
  446. </div>
  447. <!-- adv_07 end-->
  448. <!-- adv_08 start-->
  449. <div
  450. class="w_sld_react_1210 adv_08 com_1210_center"
  451. v-if="item.json_data && item.json_data.type == 'adv_08'"
  452. :style="{
  453. marginTop: item.json_data.padding_top + 'px',
  454. marginBottom: item.json_data.padding_bottom + 'px',
  455. backgroundColor: item.json_data.bg_color,
  456. }"
  457. >
  458. <div class="adv_08_wrap">
  459. <div
  460. class="item"
  461. v-for="(item_main, index_main) in item.json_data.data"
  462. v-bind:key="index_main"
  463. @click="diyNavTo(item_main)"
  464. >
  465. <a href="javascript:void(0)">
  466. <img v-bind:src="item_main.imgUrl" />
  467. </a>
  468. </div>
  469. </div>
  470. </div>
  471. <!-- adv_08 end-->
  472. <!-- adv_09 start-->
  473. <div
  474. class="adv_09 com_1210_center"
  475. v-if="item.json_data && item.json_data.type == 'adv_09'"
  476. :style="{
  477. marginTop: item.json_data.padding_top + 'px',
  478. marginBottom: item.json_data.padding_bottom + 'px',
  479. backgroundColor: item.json_data.bg_color,
  480. }"
  481. >
  482. <div class="adv_09_wrap">
  483. <div class="item left">
  484. <div
  485. class="top_title"
  486. v-bind:style="{
  487. backgroundColor: item.json_data.left.title_info.title_bg_color,
  488. color: item.json_data.left.title_info.title_color,
  489. }"
  490. >
  491. {{ item.json_data.left.title_info.title_name }}
  492. </div>
  493. <div class="main_con">
  494. <a
  495. class="first show_tip"
  496. href
  497. v-for="(item_left, index_left) in item.json_data.left.data"
  498. v-bind:key="index_left"
  499. @click="diyNavTo(item_left)"
  500. >
  501. <img v-bind:src="item_left.imgUrl" />
  502. </a>
  503. </div>
  504. </div>
  505. <div class="item center">
  506. <div
  507. class="top_title"
  508. v-bind:style="{
  509. backgroundColor: item.json_data.center.title_info.title_bg_color,
  510. color: item.json_data.center.title_info.title_color,
  511. }"
  512. >
  513. {{ item.json_data.center.title_info.title_name }}
  514. </div>
  515. <div class="main_con">
  516. <a
  517. class="show_tip"
  518. href
  519. v-for="(item_center, index_center) in item.json_data.center.data"
  520. v-bind:key="index_center"
  521. @click="diyNavTo(item_center)"
  522. >
  523. <img v-bind:src="item_center.imgUrl" />
  524. </a>
  525. </div>
  526. </div>
  527. <div class="item right">
  528. <div
  529. class="top_title"
  530. v-bind:style="{
  531. backgroundColor: item.json_data.right.title_info.title_bg_color,
  532. color: item.json_data.right.title_info.title_color,
  533. }"
  534. >
  535. {{ item.json_data.right.title_info.title_name }}
  536. </div>
  537. <div class="main_con">
  538. <a
  539. class="show_tip"
  540. href
  541. v-for="(item_right, index_right) in item.json_data.right.data"
  542. v-bind:key="index_right"
  543. @click="diyNavTo(item_right)"
  544. >
  545. <img v-bind:src="item_right.imgUrl" />
  546. </a>
  547. </div>
  548. </div>
  549. </div>
  550. </div>
  551. <!-- adv_09 end-->
  552. <!-- adv_10 start-->
  553. <div
  554. class="adv_10 com_1210_center"
  555. v-if="item.json_data && item.json_data.type == 'adv_10'"
  556. :style="{
  557. marginTop: item.json_data.padding_top + 'px',
  558. marginBottom: item.json_data.padding_bottom + 'px',
  559. backgroundColor: item.json_data.bg_color,
  560. }"
  561. >
  562. <div class="adv_10_wrap">
  563. <div
  564. class="row_one"
  565. v-for="(item_one, index_one) in item.json_data.row_one.data"
  566. v-bind:key="index_one"
  567. >
  568. <a href="javascript:void(0)" @click="diyNavTo(item_one)">
  569. <img v-bind:src="item_one.imgUrl" />
  570. </a>
  571. </div>
  572. <div class="row_four">
  573. <a
  574. href="javascript:void(0)"
  575. v-for="(item_four, index_four) in item.json_data.row_four.data"
  576. v-bind:key="index_four"
  577. @click="diyNavTo(item_four)"
  578. >
  579. <img v-bind:src="item_four.imgUrl" />
  580. </a>
  581. </div>
  582. <div class="row_five">
  583. <a
  584. href="javascript:void(0)"
  585. v-for="(item_five, index_five) in item.json_data.row_five.data"
  586. v-bind:key="index_five"
  587. @click="diyNavTo(item_five)"
  588. >
  589. <img v-bind:src="item_five.imgUrl" />
  590. </a>
  591. </div>
  592. </div>
  593. </div>
  594. <!-- adv_10 end-->
  595. <!-- adv_11 start-->
  596. <div
  597. class="adv_11 com_1210_center"
  598. v-if="item.json_data && item.json_data.type == 'adv_11'"
  599. :style="{
  600. marginTop: item.json_data.padding_top + 'px',
  601. marginBottom: item.json_data.padding_bottom + 'px',
  602. backgroundColor: item.json_data.bg_color,
  603. }"
  604. >
  605. <div class="adv_11_wrap">
  606. <div class="item row_left">
  607. <a
  608. href="javascript:void(0)"
  609. v-for="(item_left, index_left) in item.json_data.row_left.data"
  610. v-bind:key="index_left"
  611. v-bind:class="{ lb_margin: index_left % 2 == 1 }"
  612. @click="diyNavTo(item_left)"
  613. >
  614. <img v-bind:src="item_left.imgUrl" />
  615. </a>
  616. </div>
  617. <div class="item row_right">
  618. <div class="top">
  619. <a
  620. href="javascript:void(0)"
  621. v-if="item.json_data.row_right.top.data[0] != undefined"
  622. @click="diyNavTo(item.json_data.row_right.top.data[0])"
  623. >
  624. <img v-bind:src="item.json_data.row_right.top.data[0].imgUrl" />
  625. </a>
  626. </div>
  627. <div class="bottom">
  628. <a
  629. href="javascript:void(0)"
  630. v-if="item.json_data.row_right.bottom.data[0] != undefined"
  631. @click="diyNavTo(item.json_data.row_right.bottom.data[0])"
  632. >
  633. <img v-bind:src="item.json_data.row_right.bottom.data[0].imgUrl" />
  634. </a>
  635. </div>
  636. </div>
  637. </div>
  638. </div>
  639. <!-- adv_11 end-->
  640. <!-- adv_12 start-->
  641. <div
  642. class="adv_12 com_1210_center"
  643. v-if="item.json_data && item.json_data.type == 'adv_12'"
  644. :style="{
  645. marginTop: item.json_data.padding_top + 'px',
  646. marginBottom: item.json_data.padding_bottom + 'px',
  647. backgroundColor: item.json_data.bg_color,
  648. }"
  649. >
  650. <div class="adv_12_wrap">
  651. <div class="item left clear_padding">
  652. <a
  653. class="l_img"
  654. href="javascript:void(0)"
  655. @click="diyNavTo(item.json_data.left.data[0])"
  656. >
  657. <img v-bind:src="item.json_data.left.data[0].imgUrl" />
  658. </a>
  659. </div>
  660. <div class="item center">
  661. <a
  662. v-for="(item_center, index_center) in item.json_data.center.data"
  663. v-bind:key="index_center"
  664. v-bind:class="{ l_b_margin: index_center % 2 == 1 }"
  665. @click="diyNavTo(item_center)"
  666. >
  667. <img v-bind:src="item_center.imgUrl" />
  668. </a>
  669. </div>
  670. <div class="item right">
  671. <div class="title_wrap" @click="diyNavTo(item.json_data.right.title_info)">
  672. <a class="title" href="javascript:void(0)">{{
  673. item.json_data.right.title_info.title.initialValue
  674. }}</a>
  675. <span> 》</span>
  676. <a href="javascript:void(0)" class="subtitle">{{
  677. item.json_data.right.title_info.sub_title.initialValue
  678. }}</a>
  679. </div>
  680. <div class="img_top">
  681. <a
  682. href="javascript:void(0)"
  683. @click="diyNavTo(item.json_data.right.top.data[0])"
  684. >
  685. <img v-bind:src="item.json_data.right.top.data[0].imgUrl" />
  686. </a>
  687. </div>
  688. <div class="img_bottom">
  689. <a
  690. class="l_img"
  691. href="javascript:void(0)"
  692. v-for="(item_right_bottom, index_right_bottom) in item.json_data.right
  693. .bottom.data"
  694. v-bind:key="index_right_bottom"
  695. @click="diyNavTo(item_right_bottom)"
  696. >
  697. <img v-bind:src="item_right_bottom.imgUrl" />
  698. </a>
  699. </div>
  700. </div>
  701. </div>
  702. </div>
  703. <!-- adv_12 end-->
  704. <!-- adv_13 start-->
  705. <div
  706. class="w_sld_react_1210 adv_13 com_1210_center"
  707. v-if="item.json_data && item.json_data.type == 'adv_13'"
  708. :style="{
  709. marginTop: item.json_data.padding_top + 'px',
  710. marginBottom: item.json_data.padding_bottom + 'px',
  711. backgroundColor: item.json_data.bg_color,
  712. }"
  713. >
  714. <div class="adv_13_wrap">
  715. <div class="item right" @click="diyNavTo(item.json_data.left.title_info)">
  716. <div class="title_wrap">
  717. <a class="title" href="javascript:void(0)">{{
  718. item.json_data.left.title_info.title.initialValue
  719. }}</a>
  720. <span> 》</span>
  721. <a class="subtitle" href="javascript:void(0)">{{
  722. item.json_data.left.title_info.sub_title.initialValue
  723. }}</a>
  724. </div>
  725. <div class="img_top">
  726. <a
  727. class
  728. href="javascript:void(0)"
  729. @click="diyNavTo(item.json_data.left.top.data[0])"
  730. >
  731. <img v-bind:src="item.json_data.left.top.data[0].imgUrl" />
  732. </a>
  733. </div>
  734. <div class="img_bottom">
  735. <a
  736. class
  737. href="javascript:void(0)"
  738. v-for="(item_left_bottom, index_left_bottom) in item.json_data.left.bottom
  739. .data"
  740. v-bind:key="index_left_bottom"
  741. v-bind:class="{ l_b_margin: index_left_bottom % 2 == 0 }"
  742. @click="diyNavTo(item_left_bottom)"
  743. >
  744. <img v-bind:src="item_left_bottom.imgUrl" />
  745. </a>
  746. </div>
  747. </div>
  748. <div class="item right">
  749. <div class="title_wrap" @click="diyNavTo(item.json_data.center.title_info)">
  750. <a class="title" href="javascript:void(0)">{{
  751. item.json_data.center.title_info.title.initialValue
  752. }}</a>
  753. <span> 》</span>
  754. <a class="subtitle" href="javascript:void(0)">{{
  755. item.json_data.center.title_info.sub_title.initialValue
  756. }}</a>
  757. </div>
  758. <div class="img_top">
  759. <a
  760. href="javascript:void(0)"
  761. @click="diyNavTo(item.json_data.center.top.data[0])"
  762. >
  763. <img v-bind:src="item.json_data.center.top.data[0].imgUrl" />
  764. </a>
  765. </div>
  766. <div class="img_bottom">
  767. <a
  768. class="l_img"
  769. href="javascript:void(0)"
  770. v-for="(item_center_bottom, index_center_bottom) in item.json_data.center
  771. .bottom.data"
  772. v-bind:key="index_center_bottom"
  773. @click="diyNavTo(item_center_bottom)"
  774. >
  775. <img v-bind:src="item_center_bottom.imgUrl" />
  776. </a>
  777. </div>
  778. </div>
  779. <div class="item left clear_padding">
  780. <a
  781. class="l_img"
  782. href="javascript:void(0)"
  783. @click="diyNavTo(item.json_data.right.data[0])"
  784. >
  785. <img :src="item.json_data.right.data[0].imgUrl" />
  786. </a>
  787. </div>
  788. </div>
  789. </div>
  790. <!-- adv_13 end-->
  791. <!-- adv_19 start-->
  792. <div
  793. class="w_sld_react_1210 adv_19"
  794. v-if="item.json_data && item.json_data.type == 'adv_19'"
  795. :style="{
  796. marginTop: item.json_data.padding_top + 'px',
  797. marginBottom: item.json_data.padding_bottom + 'px',
  798. backgroundColor: item.json_data.bg_color,
  799. }"
  800. >
  801. <div class="adv_19_wrap">
  802. <div
  803. v-for="(items, index) in item.json_data.data"
  804. :key="index"
  805. class="item left"
  806. >
  807. <div
  808. class="top_title"
  809. :style="{ backgroundColor: items.top.title_info.title_bg_color }"
  810. >
  811. <div class="l_title" :style="{ color: items.top.title_info.title_color }">
  812. {{
  813. items.top.title_info.title_name
  814. ? items.top.title_info.title_name
  815. : "添加标题"
  816. }}
  817. </div>
  818. <div class="r_title">
  819. <ul>
  820. <li
  821. v-for="(val, key) in items.center.right"
  822. :key="key"
  823. :class="{ sel_tab: key == items.cur_tab }"
  824. @mouseover="adv19Tab(item.dataId, index, key, items)"
  825. >
  826. <span class="con">
  827. {{
  828. val.title_info.title_name ? val.title_info.title_name : "添加内容"
  829. }}
  830. </span>
  831. </li>
  832. </ul>
  833. </div>
  834. </div>
  835. <div class="center">
  836. <div class="l_center">
  837. <a href="javascript:;" @click="diyNavTo(items.center.left.data[0])">
  838. <img
  839. v-if="items.center.left.data[0].imgUrl"
  840. :src="items.center.left.data[0].imgUrl"
  841. />
  842. <span v-else>此处添加【186*340】图片</span>
  843. </a>
  844. </div>
  845. <div class="r_center">
  846. <div class="tabs_panel">
  847. <div
  848. v-for="(val, key) in items.center.right[items.cur_tab].data"
  849. :key="key"
  850. class="item"
  851. >
  852. <div class="title_wrap">
  853. <a class="main_title" href="javascript:;" @click="diyNavTo(val)">
  854. {{ val.main_title ? val.main_title : "图片标题" }}
  855. </a>
  856. <a class="sub_title" href="javascript:;" @click="diyNavTo(val)">
  857. {{ val.sub_title ? val.sub_title : "图片子标题" }}
  858. </a>
  859. </div>
  860. <div class="bottom_img">
  861. <a
  862. class="sld_com_no_img"
  863. href="javascript:;"
  864. @click="diyNavTo(val)"
  865. >
  866. <img v-if="val.imgUrl" :src="val.imgUrl" />
  867. <span v-else>此处添加【172*106】图片</span>
  868. </a>
  869. </div>
  870. </div>
  871. </div>
  872. </div>
  873. </div>
  874. <div class="bottom">
  875. <a
  876. v-for="(val, key) in items.bottom.data"
  877. :key="key"
  878. class="sld_com_no_img"
  879. href="javascript:;"
  880. @click="diyNavTo(val)"
  881. >
  882. <img v-if="val.imgUrl" :src="val.imgUrl" />
  883. <span v-else>此处添加【187*120】图片</span>
  884. </a>
  885. </div>
  886. </div>
  887. </div>
  888. </div>
  889. <!-- adv_19 end-->
  890. <!-- adv_20 start-->
  891. <div
  892. class="w_sld_react_1210 adv_20"
  893. v-if="item.json_data && item.json_data.type == 'adv_20'"
  894. :style="{
  895. marginTop: item.json_data.padding_top + 'px',
  896. marginBottom: item.json_data.padding_bottom + 'px',
  897. backgroundColor: item.json_data.bg_color,
  898. }"
  899. >
  900. <div class="adv_20_wrap flex_column_start_center">
  901. <div
  902. class="flex_row_around_center adv_20_wrap_row"
  903. v-for="(val, key) in item.json_data.data"
  904. :key="key"
  905. >
  906. <div
  907. v-for="(child, child_key) in val"
  908. :key="child_key"
  909. class="flex_column_center_center adv_20_wrap_item"
  910. >
  911. <div
  912. class="flex_row_center_center adv_20_wrap_item_img"
  913. style="border-radius: 0px"
  914. @click="diyNavTo(child)"
  915. >
  916. <img :src="child.imgUrl" />
  917. </div>
  918. <span class="main_title" @click="diyNavTo(child)">{{
  919. child.main_title
  920. }}</span>
  921. <span class="sub_title" @click="diyNavTo(child)">{{
  922. child.sub_title
  923. }}</span>
  924. </div>
  925. </div>
  926. </div>
  927. </div>
  928. <!-- adv_20 end-->
  929. <!-- adv_21 start-->
  930. <div
  931. class="w_sld_react_1210 adv_21"
  932. v-if="item.json_data && item.json_data.type == 'adv_21'"
  933. :style="{
  934. marginTop: item.json_data.padding_top + 'px',
  935. marginBottom: item.json_data.padding_bottom + 'px',
  936. backgroundColor: item.json_data.bg_color,
  937. }"
  938. >
  939. <div class="adv_21_wrap flex_row_start_start">
  940. <div
  941. class="flex_column_start_start adv_21_wrap_item"
  942. v-for="(val1, key1) in item.json_data.data"
  943. :key="key1"
  944. >
  945. <div
  946. class="flex_row_between_center title_part"
  947. @click="diyNavTo(val1.top_title)"
  948. >
  949. <span class="title">{{ val1.top_title.title.initialValue }}</span>
  950. <a class="view_more">{{ val1.top_title.sub_title.initialValue }}&gt;</a>
  951. </div>
  952. <div class="flex_column_start_start detail">
  953. <div
  954. class="flex_row_start_start item"
  955. v-for="(val2, key2) in val1.detail"
  956. :key="key2"
  957. >
  958. <div class="item_left" @click="diyNavTo(val2.left)">
  959. {{ val2.left.title.initialValue }}
  960. </div>
  961. <div class="flex_row_start_center item_right">
  962. <span
  963. class="item_right_con"
  964. v-for="(val3, key3) in val2.right"
  965. :key="key3"
  966. @click="diyNavTo(val3)"
  967. >
  968. {{ val3.title.initialValue }}
  969. </span>
  970. </div>
  971. </div>
  972. </div>
  973. </div>
  974. </div>
  975. </div>
  976. <!-- adv_21 end-->
  977. <!-- adv_27 start-->
  978. <div
  979. class="w_sld_react_1210 adv_27_wrap"
  980. v-if="item.json_data && item.json_data.type == 'adv_27'"
  981. :style="{
  982. marginTop: item.json_data.padding_top + 'px',
  983. marginBottom: item.json_data.padding_bottom + 'px',
  984. backgroundColor: item.json_data.bg_color,
  985. }"
  986. >
  987. <div class="floor_title">
  988. <h2>
  989. <!-- <font
  990. v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
  991. >&nbsp;</font
  992. > -->
  993. <span v-bind:style="{ color: item.json_data.title_info.title_color }">{{
  994. item.json_data.title_info.title_name
  995. }}</span>
  996. <!-- <font
  997. v-bind:style="{ backgroundColor: item.json_data.title_info.title_color }"
  998. >&nbsp;</font -->
  999. <!-- > -->
  1000. </h2>
  1001. </div>
  1002. <div class="floor_goods">
  1003. <div
  1004. class="item"
  1005. v-for="(item_main, index_main) in item.json_data.data.store_data"
  1006. v-bind:key="index_main"
  1007. >
  1008. <router-link
  1009. target="_blank"
  1010. :to="'/store/'+ calcProductName(item_main.storeName) +'_'+ item_main.storeId"
  1011. >
  1012. <div class="wrap">
  1013. <div class="example_text">
  1014. <img v-bind:src="item_main.storeLogo" />
  1015. </div>
  1016. <p class="title">
  1017. <a :title="item_main.storeName">{{ item_main.storeName }}</a>
  1018. </p>
  1019. </div>
  1020. </router-link>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. <!-- adv_27 end-->
  1025. <!-- adv_28 start-->
  1026. <div
  1027. class="w_sld_react_1210 adv_28_wrap"
  1028. v-if="item.json_data && item.json_data.type == 'adv_28'"
  1029. :style="{
  1030. marginTop: item.json_data.padding_top + 'px',
  1031. marginBottom: item.json_data.padding_bottom + 'px',
  1032. backgroundColor: item.json_data.bg_color,
  1033. }"
  1034. >
  1035. <div class="section-block industry-booth w_sld_react_1210 ">
  1036. <div class="industry-banner">
  1037. <div class="industry-link">
  1038. <div class="industry-theme-image">
  1039. <img class="theme-img-big" v-bind:src="item.json_data.left.data.imgUrl" @click="diyNavTo(item.json_data.left.data)"/>
  1040. </div>
  1041. <div class="industry-theme-info">
  1042. <div class="industry-title">
  1043. {{item.json_data.title_info.title.initialValue}}
  1044. </div>
  1045. <div class="soure-now">
  1046. <span class="btn btn-main" v-if="item.json_data.title_info.link_type" @click="diyNavTo(item.json_data.title_info)">{{
  1047. item.json_data.title_info &&
  1048. item.json_data.title_info.sub_title.initialValue
  1049. }}</span>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. </div>
  1054. <div class="industry-products">
  1055. <div class="prod-item" v-for="(item_center_bottom, index_center_bottom) in item.json_data
  1056. .center.data.goods_data" v-bind:key="index_center_bottom">
  1057. <div class="prod-inr" v-bind:title="item_center_bottom.goodsName" >
  1058. <router-link
  1059. target="_blank"
  1060. :to="'/goods/detail/'+ calcProductName(item_center_bottom.goodsName) +'_'+ item_center_bottom.productId"
  1061. >
  1062. <div class="prod-pic">
  1063. <div class="pic-inr">
  1064. <div class="img-wp">
  1065. <img
  1066. v-bind:src="item_center_bottom.mainImage"
  1067. v-bind:alt="item_center_bottom.goodsName"
  1068. />
  1069. <div class="gg"></div>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. <div class="prod-txt">{{ item_center_bottom.goodsName }}</div>
  1074. </router-link>
  1075. </div>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. <!-- adv_28 end-->
  1081. <!-- adv_29 start-->
  1082. <div
  1083. id="EnquiryWrap"
  1084. class="w_sld_react_1210 adv_29_wrap"
  1085. v-if="item.json_data && item.json_data.type == 'adv_29'"
  1086. :style="{
  1087. marginTop: item.json_data.padding_top + 'px',
  1088. marginBottom: item.json_data.padding_bottom + 'px',
  1089. backgroundColor: item.json_data.bg_color,
  1090. }"
  1091. >
  1092. <div class="section-block easy-sourcing w_sld_react_1210">
  1093. <div class="sourcing-bg">
  1094. <img
  1095. class="theme-img-small"
  1096. v-bind:src="item.json_data.left.data.imgUrl"
  1097. @click="diyNavTo(item.json_data.left.data)"
  1098. />
  1099. </div>
  1100. <div class="sourcing-centent">
  1101. <div class="sourcing-form">
  1102. <div class="form-title">{{L['获取报价']}}</div>
  1103. <HomeSourcingForm/>
  1104. </div>
  1105. <div class="sourcing-text">
  1106. <div class="sourcing-title" @click="diyNavTo(item.json_data.title_info)">{{item.json_data.title_info.title.initialValue}}</div>
  1107. <div class="sourcing-desc" style="margin-bottom: 24px" @click="diyNavTo(item.json_data.title_info)">
  1108. <p>{{item.json_data.title_info.sub_title.initialValue}}</p>
  1109. </div>
  1110. <div class="sourcing-desc-warp">
  1111. <div class="sourcing-desc" v-for="(item_center, index_center) in item.json_data.center" v-bind:key="index_center" >
  1112. <p @click="diyNavTo(item_center)">
  1113. {{ item_center.title.initialValue }}
  1114. </p>
  1115. </div>
  1116. </div>
  1117. <div class="sourcing-more">
  1118. <a href="javascript:void(0)" @click="diyNavTo(item.json_data.btn)">
  1119. {{item.json_data.btn.title.initialValue}}<i class="ob-icon icon-right"> ></i>
  1120. </a>
  1121. </div>
  1122. </div>
  1123. </div>
  1124. </div>
  1125. </div>
  1126. <!-- adv_29 end-->
  1127. </div>
  1128. </div>
  1129. </template>
  1130. <script setup>
  1131. import {
  1132. ElCarousel,
  1133. ElCarouselItem,
  1134. } from "element-plus";
  1135. import { useFiltersStore } from "@/store/filter.js";
  1136. import { getCurLanguage } from '@/composables/common.js';
  1137. const L = getCurLanguage();
  1138. const router = useRouter()
  1139. const route = useRoute();
  1140. const props = defineProps({
  1141. decorateData: Object, //装修的数据
  1142. source: String, //来源,home:平台首页 store:店铺装修
  1143. });
  1144. const filtersStore = useFiltersStore();
  1145. //退出登录
  1146. const loginOut = async () => {
  1147. filtersStore.setMemberInfo({});
  1148. filtersStore.setLoginStatus(false);
  1149. filtersStore.setToken("");
  1150. filtersStore.setRefreshToken("");
  1151. filtersStore.setTime(new Date().getTime().toString()); //存储refresh_token更新时间
  1152. localStorage.setItem('isLoggedIn', 'false');
  1153. setTimeout(() => {
  1154. localStorage.removeItem('isLoggedIn');
  1155. window.location.reload();
  1156. }, 200)
  1157. };
  1158. const goSupplierUrl = () => {
  1159. const config = useRuntimeConfig()
  1160. let url = config.public.supplierUrl;
  1161. window.open(url, '_blank');
  1162. };
  1163. const gotoFun = (val) => {
  1164. // console.log(val)
  1165. // return
  1166. if (val.link_type == "url") {
  1167. //跳转链接地址
  1168. if (val.link_value) {
  1169. val.link_value = quillEscapeToHtml(val.link_value);
  1170. }
  1171. window.open(val.link_value, "_blank");
  1172. } else if (val.link_type == "goods") {
  1173. //跳转商品详情页
  1174. // let routeUrl = router.resolve({
  1175. // path: "/goods/detail",
  1176. // query: {
  1177. // productId: val.info.defaultProductId,
  1178. // },
  1179. // });
  1180. let href = "/goods/detail/"+ calcProductName(val.info.goodsName) +'_'+ val.info.defaultProductId
  1181. window.open(href, "_blank");
  1182. } else if (val.link_type == "category") {
  1183. // 分类列表
  1184. // let routeUrl = router.resolve({
  1185. // path: "/goods/list/categoryId-"+val.info.categoryId,
  1186. // });
  1187. let href = '/goods/list/'+ calcProductName(val.info.categoryName) +'_v-'+ val.info.categoryId + '_gid-' + val.info.grade + '_pid-' + val.info.pid
  1188. window.open(href, "_blank");
  1189. } else if (val.link_type == "keyword") {
  1190. // 关键词
  1191. let path = "/goods/list/search_keyword-"+ val.link_value
  1192. let query = {
  1193. keyword: val.link_value,
  1194. };
  1195. if (val.storeId) {
  1196. query.storeId = val.storeId;
  1197. path+='/storeId-'+val.storeId
  1198. }
  1199. let routeUrl = router.resolve({
  1200. path: path
  1201. });
  1202. window.open(routeUrl.href, "_blank");
  1203. } else if (val.link_type == "topic") {
  1204. let href = `/home/topic?topicId=${val.info.decoId}`
  1205. //跳转专题页
  1206. window.open(href, "_blank");
  1207. } else if (val.link_type == "brand_home") {
  1208. //品牌列表
  1209. let routeUrl = router.resolve({
  1210. path: "/brand",
  1211. query: {},
  1212. });
  1213. window.open(routeUrl.href, "_blank");
  1214. } else if (val.link_type == "store_list") {
  1215. //店铺列表
  1216. let routeUrl = router.resolve({
  1217. path: "/store/list/current-1",
  1218. });
  1219. window.open(routeUrl.href, "_blank");
  1220. } else if (val.link_type == "voucher_center") {
  1221. //领券中心
  1222. let routeUrl = router.resolve({
  1223. path: "/coupon",
  1224. });
  1225. window.open(routeUrl.href, "_blank");
  1226. } else if (val.link_type == "point_center") {
  1227. let routeUrl = router.resolve({
  1228. path: "/point/index",
  1229. });
  1230. window.open(routeUrl.href, "_blank");
  1231. }
  1232. }
  1233. const goGoodsListByCatIdFun = (item) => {
  1234. const path = '/goods/list/'+ calcProductName(item.categoryName) +'_v-'+item.categoryId+'_gid-'+item.grade+'_pid-'+item.pid;
  1235. const routeUrl = router.resolve({
  1236. path
  1237. });
  1238. window.open(routeUrl.href, '_blank');
  1239. }
  1240. function goGoodsDetailFun(availableProductId,goodsName) {
  1241. // let routeUrl = router.resolve({
  1242. // path: "/goods/detail/",
  1243. // query: { productId: availableProductId }
  1244. // });
  1245. let href = "/goods/detail/" + calcProductName(goodsName) + '_' + availableProductId
  1246. window.open(href, '_blank');
  1247. }
  1248. function goStoreDetailFun(availableStoreId,availableStoreName) {
  1249. // let routeUrl = router.resolve({
  1250. // path: "/store",
  1251. // query: { vid: availableStoreId }
  1252. // });
  1253. let href = "/store/" + calcProductName(availableStoreName) + '_' + availableStoreId
  1254. window.open(href, '_blank');
  1255. }
  1256. const diyNavTo = (val) => {
  1257. if (route.query.vid) {
  1258. val.storeId = route.query.vid;
  1259. }
  1260. gotoFun(val);
  1261. };
  1262. const goGoodsDetail = (val) => {
  1263. goGoodsDetailFun(val.productId,val.goodsName);
  1264. };
  1265. const goStoreDetail = (val) => {
  1266. goStoreDetailFun(val.storeId,val.storeName);
  1267. };
  1268. const goGoodsListByCatId = (item) => {
  1269. goGoodsListByCatIdFun(item);
  1270. };
  1271. //adv_19楼层tab切换事件
  1272. const adv19Tab = (dataId, index, key, items) => {
  1273. items.cur_tab = key;
  1274. };
  1275. onMounted(() => {
  1276. // 是否锚点跳转到询盘区块
  1277. const EnquiryCache = localStorage.getItem("quotations") ?? "";
  1278. if (EnquiryCache) {
  1279. document.getElementById('EnquiryWrap')?.scrollIntoView({ behavior: 'smooth' });
  1280. setTimeout(() => {
  1281. localStorage.removeItem('quotations')
  1282. }, 1000)
  1283. }
  1284. })
  1285. </script>
  1286. <style lang="scss" scoped>
  1287. @import "@/assets/style/decorate.scss";
  1288. @import "@/assets/style/theme.scss";
  1289. @import "@/assets/style/mixins.scss";
  1290. .sld_diy {
  1291. .el-carousel {
  1292. max-width: 1920px;
  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>