index-fuli.vue 23 KB

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