index-mro.vue 23 KB

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