index-mro.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <template>
  2. <div class="home-pages">
  3. <div class="head-pages">
  4. <div class="bg-img">
  5. <img :src="carouselList.length && carouselList[carouselIndex].imageUrl" alt="" />
  6. </div>
  7. <!-- 头部 -->
  8. <div class="home-head" @mouseleave="leaveClassify">
  9. <!-- 分类 -->
  10. <div class="classify" :class="classifyShow ? 'classify-show' : ''">
  11. <div
  12. class="classify-list"
  13. v-for="(item, index) in classifyList"
  14. :class="item.id == classifyId && classifyShow ? 'classify-hig' : ''"
  15. :key="index"
  16. @mouseenter="enterClassify(item)"
  17. v-show="classifyShow ? true : Number(index) < 8"
  18. >
  19. <div class="label ellipsis" @click="onPath('/search?id=' + item.id)">{{ item.label }}</div>
  20. <div class="two-level">
  21. <template v-for="(item1, index1) in item.children" :key="index1">
  22. <div class="two-hig" v-if="Number(index1) < 2">{{ item1.label }}</div>
  23. <div style="margin: 0 4px" v-if="index1 == 0 && item.children.length > 1">/</div>
  24. </template>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="classify-bos" v-if="classifyShow">
  29. <div v-for="(item, index) in classifyInfo" :key="index" class="classify-item">
  30. <div class="two-level ellipsis">{{ item.label || '' }}</div>
  31. <el-icon class="classify-icon" :size="14" color="#364153">
  32. <ArrowRight />
  33. </el-icon>
  34. <div class="classify-label">
  35. <div v-for="(item1, index1) in item.children" :key="index1">{{ item1.label || '' }}</div>
  36. </div>
  37. </div>
  38. </div>
  39. <!-- 轮播区域 -->
  40. <div class="carousel-bos">
  41. <el-carousel trigger="click" height="540px" @change="onCarousel">
  42. <el-carousel-item v-for="item in carouselList" :key="item">
  43. <img :src="item.imageUrl" alt="" />
  44. </el-carousel-item>
  45. </el-carousel>
  46. </div>
  47. <!-- 右边 -->
  48. <div class="head-right">
  49. <div class="login-bos">
  50. <div class="login-box">
  51. <img :src="userInfo.avatar ? userInfo.avatar : profile" alt="" />
  52. <div>
  53. <div class="login1">您好,欢迎来到优易达</div>
  54. <div class="login2">{{ userInfo.nickName ? userInfo.nickName : '请先登录' }}</div>
  55. </div>
  56. </div>
  57. <div class="login-btn">
  58. <el-button v-if="!userInfo.nickName" type="primary" round size="small" style="width: 64px" @click="onPath('/login')">登录</el-button>
  59. <el-button v-if="!userInfo.nickName" type="primary" plain round size="small" style="width: 64px" @click="onPath('/reg')"
  60. >注册</el-button
  61. >
  62. <el-button v-if="userInfo.nickName" type="primary" plain round size="small" style="width: 64px" @click="onPath('/reg')">退出</el-button>
  63. </div>
  64. </div>
  65. <div class="real-time">
  66. <div class="real-title flex-row-between">
  67. <div class="real1">优易资讯</div>
  68. <div class="real2 flex-row-start">
  69. <div>更多</div>
  70. <el-icon :size="13" color="#83899F">
  71. <ArrowRight />
  72. </el-icon>
  73. </div>
  74. </div>
  75. <template v-for="(item, index) in realList" :key="index">
  76. <div class="real-list ellipsis" v-if="Number(index) < 7">{{ item.announcementTitle }}</div>
  77. </template>
  78. </div>
  79. <div class="interests">
  80. <div class="interests-title">企业会员权益</div>
  81. <div class="interests-bos">
  82. <div v-for="(item, index) in interestsList" :key="index" class="interests-item flex-column-center">
  83. <img :src="item.imageUrl" alt="" />
  84. <div>{{ item.title }}</div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="pages-bos">
  92. <!-- 轮播展位商品 -->
  93. <div class="sell-bos">
  94. <template v-for="(item, index) in sellList" :key="index">
  95. <div v-if="Number(index) < 5" class="sell-list">
  96. <img class="sell-img" :src="item.productImage ? item.productImage.split(',')[0] : ''" alt="" />
  97. <div class="sell-name ellipsis2">{{ item.itemName || '' }}</div>
  98. <div class="sell-price">
  99. <span class="price1">¥{{ item.memberPrice || '' }}</span>
  100. <span class="price2">¥{{ item.marketPrice || '' }}</span>
  101. </div>
  102. </div>
  103. </template>
  104. </div>
  105. <!-- 商业标签(工业装修-商业标签) -->
  106. <div class="trade-bos">
  107. <template v-for="(item, index) in tradeList" :key="index">
  108. <div v-if="Number(index) < 4" class="trade-list flex-row-between">
  109. <div class="trade-box flex-column-between">
  110. <div class="trade-title">{{ item.title || '' }}</div>
  111. <div class="trade-info ellipsis2">
  112. {{ item.remark || '' }}
  113. </div>
  114. <img class="trade-look" src="@/assets/images/home/indexMro1.png" alt="" />
  115. </div>
  116. <img class="trade-img" :src="item.imageUrl" alt="" />
  117. </div>
  118. </template>
  119. </div>
  120. <!-- 循环-商品 -->
  121. <div class="goods-bos" v-for="(item, index) in goodsList" :key="index">
  122. <div class="goods-title flex-row-center">
  123. <img src="@/assets/images/home/indexMro2.png" alt="" />
  124. <span class="text-primary">{{ item.name }}</span>
  125. <span>精选</span>
  126. <img src="@/assets/images/home/indexMro3.png" alt="" />
  127. </div>
  128. <div class="goods-box">
  129. <img class="goods-one" :src="item.imageUrl" alt="" />
  130. <div class="goods-shop">
  131. <template v-for="(item1, index1) in item.goodsList" :key="index1">
  132. <div v-if="Number(index1) < 8" class="shop-list flex-column-between">
  133. <img class="shop-img" :src="item1.productImage ? item1.productImage.split(',')[0] : ''" alt="" />
  134. <div class="shop-name ellipsis2">{{ item1.itemName || '' }}</div>
  135. <div class="shop-price">
  136. <span class="price1">¥{{ item1.memberPrice || '' }}</span>
  137. <span class="price2">¥{{ item1.marketPrice || '' }}</span>
  138. </div>
  139. </div>
  140. </template>
  141. </div>
  142. <div class="goods-brand flex-column-between" v-if="item.brandList && item.brandList.length > 0">
  143. <div class="brand-bos">
  144. <template v-for="(item1, index1) in item.brandList" :key="index1">
  145. <img clear-both v-if="Number(index1) < 6" class="brand-img" :src="item1.brandLogo" alt="" />
  146. </template>
  147. </div>
  148. <div class="brand-more flex-row-center">
  149. <div>更多品牌</div>
  150. <el-icon><ArrowRight /></el-icon>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <!-- 为你推荐 -->
  156. <div class="goods-title flex-row-center">
  157. <img src="@/assets/images/home/indexMro2.png" alt="" />
  158. <span class="text-primary">为你推荐</span>
  159. <img src="@/assets/images/home/indexMro3.png" alt="" />
  160. </div>
  161. <div class="nav-bos flex-row-center">
  162. <template v-for="(item, index) in recommendNav" :key="index">
  163. <div @click="onNav(item)" class="nav-list" :class="categoryId == item.id ? 'hig' : ''" v-if="Number(index) < 9">{{ item.title }}</div>
  164. </template>
  165. </div>
  166. <!-- 轮播展位商品 -->
  167. <div class="sell-bos recommend">
  168. <div v-for="(item, index) in recommendList" :key="index" class="sell-list">
  169. <img class="sell-img" :src="item.productImage ? item.productImage.split(',')[0] : ''" alt="" />
  170. <div class="sell-name ellipsis2">{{ item.itemName || '' }}</div>
  171. <div class="sell-price">
  172. <span class="price1">¥{{ item.memberPrice || '' }}</span>
  173. <span class="price2">¥{{ item.marketPrice || '' }}</span>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </template>
  180. <script setup lang="ts">
  181. import {
  182. getProductCategoryTree,
  183. getHomeAdList,
  184. getHomeIconAd,
  185. getCarouselDisplayProductList,
  186. getBusinessLabelList,
  187. getIndustrialFloor,
  188. getIndustrialFloorProductList,
  189. getIndustrialFloorBrand,
  190. getRecommendedCategory,
  191. getRecommendedCategoryProductList
  192. } from '@/api/home/index-mro';
  193. import { getYouYiZiXunPage } from '@/api/home/index';
  194. import { onPath } from '@/utils/siteConfig';
  195. import { getToken } from '@/utils/auth';
  196. import { getInfo } from '@/api/login';
  197. import profile from '@/assets/images/profile.jpg';
  198. const userInfo = ref<any>({});
  199. const classifyId = ref<any>('');
  200. const classifyShow = ref<any>(false);
  201. const classifyInfo = ref<any>([]);
  202. const classifyList = ref<any>([]);
  203. const carouselList = ref<any>([]);
  204. const carouselIndex = ref<any>(0);
  205. const realList = ref<any>([]);
  206. const interestsList = ref<any>([]);
  207. const sellList = ref<any>([]);
  208. const tradeList = ref<any>([]);
  209. const goodsList = ref<any>([]);
  210. const recommendNav = ref<any>([]);
  211. const recommendList = ref<any>([]);
  212. const categoryId = ref<any>('');
  213. onMounted(() => {
  214. if (getToken()) {
  215. getInfo().then((res) => {
  216. if (res.code == 200) {
  217. userInfo.value = res.data.user;
  218. }
  219. });
  220. }
  221. });
  222. //移出分类
  223. const leaveClassify = () => {
  224. classifyShow.value = false;
  225. };
  226. //移入分类
  227. const enterClassify = (res: any) => {
  228. classifyShow.value = true;
  229. classifyId.value = res.id;
  230. classifyInfo.value = res.children;
  231. };
  232. //头部分类
  233. getProductCategoryTree({
  234. platform: 1
  235. }).then((res) => {
  236. if (res.code == 200) {
  237. classifyList.value = res.data;
  238. }
  239. });
  240. //头部轮播
  241. getHomeAdList({}).then((res) => {
  242. if (res.code == 200) {
  243. carouselList.value = res.data;
  244. carouselIndex.value = 0;
  245. }
  246. });
  247. //头部优易资讯
  248. getYouYiZiXunPage({}).then((res) => {
  249. if (res.code == 200) {
  250. realList.value = res.data;
  251. }
  252. });
  253. //头部会员权益
  254. getHomeIconAd({}).then((res) => {
  255. if (res.code == 200) {
  256. interestsList.value = res.data;
  257. }
  258. });
  259. //轮播展位商品(工业装修-轮播展位商品)
  260. getCarouselDisplayProductList({}).then((res) => {
  261. if (res.code == 200) {
  262. sellList.value = res.data;
  263. }
  264. });
  265. //商业标签(工业装修-商业标签)
  266. getBusinessLabelList({}).then((res) => {
  267. if (res.code == 200) {
  268. tradeList.value = res.data;
  269. }
  270. });
  271. //循环
  272. getIndustrialFloor({}).then(async (res) => {
  273. if (res.code == 200) {
  274. for (const item of res.data) {
  275. try {
  276. const datas2 = await getIndustrialFloorProductList({ floorId: item.id });
  277. if (datas2.code == 200) {
  278. item.goodsList = datas2.data;
  279. }
  280. const datas3 = await getIndustrialFloorBrand({ floorId: item.id });
  281. if (datas2.code == 200) {
  282. item.brandList = datas3.data;
  283. }
  284. } catch (error) {}
  285. }
  286. goodsList.value = res.data;
  287. }
  288. });
  289. //为你推荐-分类
  290. getRecommendedCategory({}).then((res) => {
  291. if (res.code == 200) {
  292. recommendNav.value = res.data;
  293. recommendNav.value.unshift({
  294. id: '',
  295. title: '全部'
  296. });
  297. }
  298. });
  299. //为你推荐-商品
  300. getRecommendedCategoryProductList({}).then((res) => {
  301. if (res.code == 200) {
  302. recommendList.value = res.data;
  303. }
  304. });
  305. const onNav = (item: any) => {
  306. categoryId.value = item.id;
  307. getRecommendedCategoryProductList({ categoryId: categoryId.value }).then((res) => {
  308. if (res.code == 200) {
  309. recommendList.value = res.data;
  310. }
  311. });
  312. };
  313. const onCarousel = (res: any) => {
  314. carouselIndex.value = res;
  315. };
  316. </script>
  317. <style lang="scss" scoped>
  318. .home-pages {
  319. width: 100%;
  320. .head-pages {
  321. width: 100%;
  322. // background: #000000;
  323. margin-top: 10px;
  324. background-size: 100% 100%;
  325. background-repeat: no-repeat;
  326. position: relative;
  327. backdrop-filter: blur(95px);
  328. filter: blur(30rpx);
  329. .bg-img {
  330. position: absolute;
  331. width: 100%;
  332. height: 100%;
  333. top: 0;
  334. z-index: -1;
  335. filter: blur(30rpx);
  336. overflow: hidden;
  337. img {
  338. width: 100%;
  339. height: 100%;
  340. transform: scale(1.2);
  341. filter: blur(30px);
  342. }
  343. }
  344. // 头部
  345. .home-head {
  346. width: 1200px;
  347. margin: 0 auto;
  348. position: relative;
  349. display: flex;
  350. gap: 0px 10px;
  351. .classify {
  352. width: 234px;
  353. height: 540px;
  354. background: #323232;
  355. padding: 10px 0px;
  356. &.classify-show {
  357. position: absolute;
  358. z-index: 10;
  359. height: auto;
  360. min-height: 540px;
  361. }
  362. .classify-list {
  363. width: 100%;
  364. height: 60px;
  365. cursor: pointer;
  366. position: relative;
  367. display: flex;
  368. flex-direction: column;
  369. justify-content: center;
  370. padding-left: 25px;
  371. &.classify-hig {
  372. border: 1px solid var(--el-color-primary);
  373. border-right: 0px solid var(--el-color-primary);
  374. }
  375. .label {
  376. width: 100%;
  377. font-size: 14px;
  378. color: #ffffff;
  379. white-space: nowrap;
  380. margin-right: 10px;
  381. &:hover {
  382. color: var(--el-color-primary);
  383. }
  384. }
  385. .two-level {
  386. display: flex;
  387. align-items: center;
  388. font-size: 12px;
  389. color: #a2a2a2;
  390. margin-top: 6px;
  391. .two-hig {
  392. &:hover {
  393. color: var(--el-color-primary);
  394. }
  395. }
  396. }
  397. }
  398. }
  399. .classify-bos {
  400. position: absolute;
  401. top: 0;
  402. right: 0;
  403. width: 966px;
  404. height: 100%;
  405. border: 1px solid var(--el-color-primary);
  406. background-color: #ffffff;
  407. overflow-y: auto;
  408. padding-left: 30px;
  409. z-index: 10;
  410. .classify-item {
  411. display: flex;
  412. padding-top: 10px;
  413. border-bottom: 1px solid #e5e7eb;
  414. .two-level {
  415. width: 90px;
  416. font-size: 14px;
  417. color: var(--el-color-primary);
  418. cursor: pointer;
  419. }
  420. .classify-icon {
  421. margin: 4px 15px 0 15px;
  422. }
  423. .classify-label {
  424. display: flex;
  425. flex-wrap: wrap;
  426. flex: 1;
  427. font-size: 14px;
  428. color: #364153;
  429. div {
  430. margin-right: 20px;
  431. margin-bottom: 10px;
  432. cursor: pointer;
  433. &:hover {
  434. color: var(--el-color-primary);
  435. }
  436. }
  437. }
  438. }
  439. }
  440. // 头部中间
  441. .carousel-bos {
  442. width: 756px;
  443. height: 540px;
  444. img {
  445. width: 756px;
  446. height: 540px;
  447. }
  448. }
  449. //右边
  450. .head-right {
  451. flex: 1;
  452. width: 0;
  453. height: 540px;
  454. background: #ffffff;
  455. display: flex;
  456. flex-direction: column;
  457. .login-bos {
  458. width: calc(100% - 20px);
  459. height: 110px;
  460. border-bottom: 1px solid #e5e7eb;
  461. margin: 0 10px;
  462. display: flex;
  463. flex-direction: column;
  464. justify-content: space-between;
  465. padding: 16px 0;
  466. .login-box {
  467. display: flex;
  468. align-items: center;
  469. img {
  470. width: 40px;
  471. height: 40px;
  472. margin-right: 8px;
  473. border-radius: 40px;
  474. }
  475. .login-btn {
  476. width: 100%;
  477. }
  478. .login1 {
  479. font-size: 13px;
  480. color: #444444;
  481. }
  482. .login2 {
  483. margin-top: 2px;
  484. font-size: 12px;
  485. color: #6a7282;
  486. }
  487. }
  488. }
  489. .real-time {
  490. width: calc(100% - 20px);
  491. height: 227px;
  492. border-bottom: 1px solid #e5e7eb;
  493. margin: 0 10px;
  494. padding-top: 15px;
  495. .real-title {
  496. position: relative;
  497. margin-bottom: 12px;
  498. &::after {
  499. content: '';
  500. top: 3px;
  501. left: 0;
  502. position: absolute;
  503. width: 4px;
  504. height: 14px;
  505. background: var(--el-color-primary);
  506. }
  507. .real1 {
  508. font-weight: 600;
  509. font-size: 14px;
  510. color: #1d2129;
  511. padding-left: 15px;
  512. }
  513. .real2 {
  514. font-size: 13px;
  515. color: #83899f;
  516. cursor: pointer;
  517. }
  518. }
  519. .real-list {
  520. width: 100%;
  521. font-size: 14px;
  522. color: #1d2129;
  523. margin-bottom: 12px;
  524. cursor: pointer;
  525. &:hover {
  526. color: var(--el-color-primary);
  527. }
  528. }
  529. }
  530. .interests {
  531. flex: 1;
  532. width: calc(100% - 20px);
  533. margin: 0 10px;
  534. padding-top: 15px;
  535. .interests-title {
  536. position: relative;
  537. font-weight: 600;
  538. font-size: 14px;
  539. color: #1d2129;
  540. padding-left: 15px;
  541. &::after {
  542. content: '';
  543. top: 3px;
  544. left: 0;
  545. position: absolute;
  546. width: 4px;
  547. height: 14px;
  548. background: var(--el-color-primary);
  549. }
  550. }
  551. .interests-bos {
  552. display: flex;
  553. flex-wrap: wrap;
  554. .interests-item {
  555. width: 33.333%;
  556. font-size: 12px;
  557. color: #101828;
  558. margin-top: 15px;
  559. cursor: pointer;
  560. &:hover {
  561. color: var(--el-color-primary);
  562. }
  563. img {
  564. width: 34px;
  565. height: 34px;
  566. margin-bottom: 7px;
  567. }
  568. }
  569. }
  570. }
  571. }
  572. }
  573. }
  574. .pages-bos {
  575. width: 1200px;
  576. margin: 0 auto;
  577. //轮播展位商品
  578. .sell-bos {
  579. width: 1200px;
  580. display: flex;
  581. gap: 0 20px;
  582. margin-top: 30px;
  583. .sell-list {
  584. width: 224px;
  585. height: 306px;
  586. background: #ffffff;
  587. border-radius: 10px;
  588. padding: 20px;
  589. display: flex;
  590. flex-direction: column;
  591. justify-content: space-between;
  592. cursor: pointer;
  593. transition: transform 0.2s ease;
  594. &:hover {
  595. transform: translateY(-2px);
  596. }
  597. .sell-img {
  598. width: 184px;
  599. height: 182px;
  600. }
  601. .sell-name {
  602. width: 184px;
  603. height: 38px;
  604. font-size: 14px;
  605. color: #101828;
  606. }
  607. .sell-price {
  608. .price1 {
  609. color: var(--el-color-primary);
  610. font-size: 16px;
  611. color: #e7000b;
  612. }
  613. .price2 {
  614. font-size: 12px;
  615. color: #99a1af;
  616. line-height: 20px;
  617. text-decoration-line: line-through;
  618. text-transform: none;
  619. margin-left: 6px;
  620. }
  621. }
  622. }
  623. }
  624. //商业标签(工业装修-商业标签)
  625. .trade-bos {
  626. width: 1200px;
  627. display: flex;
  628. gap: 0 10px;
  629. margin-top: 30px;
  630. .trade-list {
  631. width: 292.5px;
  632. height: 146px;
  633. background: #ffffff;
  634. border-radius: 4px;
  635. padding: 22px;
  636. cursor: pointer;
  637. transition: transform 0.2s ease;
  638. &:hover {
  639. transform: translateY(-2px);
  640. }
  641. .trade-box {
  642. width: 144px;
  643. height: 100%;
  644. .trade-title {
  645. font-weight: 600;
  646. font-size: 16px;
  647. color: #000000;
  648. }
  649. .trade-info {
  650. font-size: 12px;
  651. color: #364153;
  652. height: 32px;
  653. }
  654. .trade-look {
  655. width: 89px;
  656. height: 28px;
  657. }
  658. }
  659. .trade-img {
  660. width: 79px;
  661. height: 79px;
  662. }
  663. }
  664. }
  665. //标题
  666. .goods-title {
  667. width: 1200px;
  668. height: 56px;
  669. border-radius: 10px;
  670. background: #ffffff;
  671. font-weight: 600;
  672. font-size: 20px;
  673. margin-top: 20px;
  674. img {
  675. width: 30px;
  676. height: 21px;
  677. margin: 0 10px;
  678. }
  679. }
  680. //循环-商品
  681. .goods-bos {
  682. .goods-box {
  683. display: flex;
  684. gap: 0 10px;
  685. margin-top: 15px;
  686. .goods-one {
  687. width: 236px;
  688. height: 560px;
  689. border-radius: 10px;
  690. background: #ffffff;
  691. cursor: pointer;
  692. transition: transform 0.2s ease;
  693. &:hover {
  694. transform: translateY(-2px);
  695. }
  696. }
  697. .goods-shop {
  698. width: 802px;
  699. height: 560px;
  700. display: flex;
  701. flex-wrap: wrap;
  702. gap: 10px;
  703. .shop-list {
  704. width: 193px;
  705. height: 275px;
  706. background: #ffffff;
  707. border-radius: 10px;
  708. padding: 20px;
  709. cursor: pointer;
  710. transition: transform 0.2s ease;
  711. &:hover {
  712. transform: translateY(-2px);
  713. }
  714. .shop-img {
  715. width: 153px;
  716. height: 150px;
  717. border-radius: 6px;
  718. }
  719. .shop-name {
  720. width: 153px;
  721. height: 38px;
  722. font-size: 14px;
  723. color: #101828;
  724. }
  725. .shop-price {
  726. .price1 {
  727. color: var(--el-color-primary);
  728. font-size: 16px;
  729. color: #e7000b;
  730. }
  731. .price2 {
  732. font-size: 12px;
  733. color: #99a1af;
  734. line-height: 20px;
  735. text-decoration-line: line-through;
  736. text-transform: none;
  737. margin-left: 6px;
  738. }
  739. }
  740. }
  741. }
  742. .goods-brand {
  743. width: 142px;
  744. height: 560px;
  745. border-radius: 10px;
  746. background: #ffffff;
  747. padding: 20px 10px;
  748. .brand-bos {
  749. width: 100%;
  750. display: flex;
  751. flex-direction: column;
  752. gap: 10px 0;
  753. img {
  754. width: 100%;
  755. height: 74px;
  756. border-radius: 4px;
  757. border: 1px solid #e5e7eb;
  758. cursor: pointer;
  759. transition: transform 0.2s ease;
  760. &:hover {
  761. transform: translateY(-2px);
  762. }
  763. }
  764. }
  765. .brand-more {
  766. color: var(--el-color-primary);
  767. font-size: 14px;
  768. cursor: pointer;
  769. }
  770. }
  771. }
  772. }
  773. //为你推荐
  774. .nav-bos {
  775. width: 1200px;
  776. height: 48px;
  777. background: #ffffff;
  778. border-radius: 10px;
  779. margin-top: 14px;
  780. padding: 0 1.5px;
  781. .nav-list {
  782. width: 133px;
  783. position: relative;
  784. font-size: 14px;
  785. color: #000000;
  786. text-align: center;
  787. cursor: pointer;
  788. &.hig {
  789. color: var(--el-color-primary);
  790. }
  791. &::after {
  792. content: '';
  793. position: absolute;
  794. right: 0;
  795. top: 2.5px;
  796. width: 1px;
  797. height: 14px;
  798. background-color: #e5e7eb;
  799. }
  800. &:last-child::after {
  801. display: none;
  802. }
  803. }
  804. }
  805. .recommend {
  806. margin-top: 14px;
  807. gap: 14px 20px;
  808. flex-wrap: wrap;
  809. margin-bottom: 60px;
  810. }
  811. }
  812. }
  813. </style>