index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <view class="vheigh"></view>
  5. <view class="body-title">
  6. <view class="goback-box" @click="toBack">
  7. <image class="goback" src="../../static/icon/fanhui.png" mode=""></image>
  8. </view>
  9. <view class="header">进货系统</view>
  10. </view>
  11. <image class="top-bg" src="../../static/img/top-bg.png" mode=""></image>
  12. <view class="top-main flex">
  13. <view class="search-box flex" @click="clickSearch()">
  14. <image class="search" src="../../static/img/search.png" mode=""></image>
  15. <view class="search-font">输入关键词搜索</view>
  16. </view>
  17. </view>
  18. </view>
  19. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  20. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  21. @click="bannerNavToUrl(item)">
  22. <image :src="item.pic" />
  23. </swiper-item>
  24. </swiper>
  25. <view class="tongz flex">
  26. <view>
  27. <view class="tongz-bg">
  28. <image src="../../static/img/tongz-bg.png" mode=""></image>
  29. </view>
  30. <view class="tongz-left flex">
  31. <image class="image-left" src="../../static/img/ling.png" mode=""></image>
  32. <u-notice-bar style="width: 100%;" mode="vertical" type="none" :volume-icon="false"
  33. :more-icon="true" :list="text" @click="goDetails"
  34. @getMore="nav('/pages/index/message?type=1')"></u-notice-bar>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="navbar flex">
  39. <view class="navbar-item"
  40. @click="nav('/pages/index/message?type=7')">
  41. <image class="nitem-image" src="http://shop.yiqushangshi.com/uploads/attach/2022/07/20220711/0b6c4e066508fcd18abf124c933df88f.png" mode=""></image>
  42. <view class="nitem-font">最新资讯</view>
  43. </view>
  44. <view class="navbar-item" v-for="(item, index) in navbarList[0].children"
  45. @click="nav('/pages/product/list?tid=' + item.id)">
  46. <image class="nitem-image" :src="item.pic" mode=""></image>
  47. <view class="nitem-font">{{ item.cate_name }}</view>
  48. </view>
  49. </view>
  50. <view class="shingle" v-if="list">
  51. <view class="shingle-top flex">
  52. <view class="shingle-title">CBB潮贝抢货通道</view>
  53. <view class="shingle-btn" @click="nav('/pages/hall/hall')">
  54. 更多CBB代理团队
  55. <text>></text>
  56. </view>
  57. </view>
  58. <view class="shingle-main" @click="navTo(list)">
  59. <view class="shingle-bg">
  60. <image :src="list.image" mode=""></image>
  61. </view>
  62. <view class="shinglem-title flex">
  63. <image class="tbg" src="../../static/img/tbg-left.png" mode=""></image>
  64. <view class="shinglemt-center">
  65. <image class="address" src="../../static/img/address.png" mode=""></image>
  66. <view class="shingle-font">{{ list.name || 'null' }}</view>
  67. </view>
  68. <image class="tbg" src="../../static/img/tbg-right.png" mode=""></image>
  69. </view>
  70. <view class="shingle-mmain flex">
  71. <view class="smmain-item">
  72. <view class="smitem-top">开放中</view>
  73. <view class="smitem-bottom">状态</view>
  74. </view>
  75. <view class="shu"></view>
  76. <view class="smmain-item">
  77. <view class="smitem-top clamp">{{ list.nickname }}</view>
  78. <view class="smitem-bottom">CBB潮倍贝</view>
  79. </view>
  80. <view class="shu"></view>
  81. <view class="smmain-item">
  82. <view class="people flex">
  83. <view class="peopleitem" v-for="item in 1">
  84. <image src="../../static/img/busy.png" mode=""></image>
  85. </view>
  86. <view class="peopleitem" v-for="item in 4">
  87. <image src="../../static/img/leisure.png" mode=""></image>
  88. </view>
  89. </view>
  90. <view class="smitem-bottom">流畅</view>
  91. </view>
  92. </view>
  93. <image class="right-bottom" src="../../static/img/right-bottom.png" mode=""></image>
  94. </view>
  95. </view>
  96. <view class="shop" @click="nav('/pages/store/store')">
  97. <view class="shop-title">
  98. <image class="shop-title-icon" src="../../static/icon/index1.png" mode=""></image>
  99. <view class="shop-title-font">本地生活</view>
  100. </view>
  101. <!-- #ifndef APP-PLUS -->
  102. <view class="shop-main">
  103. <image src="http://yiqugo.oss-cn-hangzhou.aliyuncs.com/59b8e202304061437149756.png" mode=""></image>
  104. </view>
  105. <!-- #endif -->
  106. <!-- #ifdef APP-PLUS -->
  107. <view class="shop-main">
  108. <image src="../../static/img/index-shop.png" mode=""></image>
  109. </view>
  110. <!-- #endif -->
  111. </view>
  112. <view class="product" v-for="(item, index) in navbarList[0].children">
  113. <view class="seckill-title flex">
  114. <view class="seckill-left flex">
  115. <view class="seckill-font">{{ item.cate_name }}</view>
  116. </view>
  117. <view class="seckill-right" @click="nav('/pages/product/list?tid=' + item.id)">
  118. <view class="seckill-rfont">更多</view>
  119. <image class="seckill-back" src="../../static/img/back.png" mode=""></image>
  120. </view>
  121. </view>
  122. <view class="priduct-main">
  123. <view class="priduct-item" v-for="itm in item.product" :key="itm.id" @click="navToDetailPage(itm)">
  124. <view class="priduct-main-image">
  125. <image :src="itm.image" mode="scaleToFill"></image>
  126. </view>
  127. <view class="priduct-main-name clamp margin-c-20">{{ itm.store_name }}</view>
  128. <view class="priduct-main-price">
  129. <view class="price" v-if="item.integral != 0">¥{{ itm.price * 1 }} + {{ itm.integral }}趣豆</view>
  130. <view class="price" v-else>¥{{ itm.price }}</view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <u-tabbar activeColor="#f42b4e" v-model="current" :list="tabbar"></u-tabbar>
  136. </view>
  137. </template>
  138. <script>
  139. import {
  140. tabbar1
  141. } from '@/utils/tabbar.js';
  142. import seckill from '../../components/seckill/seckill.vue';
  143. import {
  144. article
  145. } from '@/api/user.js';
  146. import {
  147. getCategoryList,
  148. getProducts
  149. } from '@/api/product.js';
  150. import {
  151. loadIndexs,
  152. store_list
  153. } from '@/api/index.js';
  154. import uniCountdowns from '@/components/uni-countdown/uni-countdowns.vue';
  155. // #ifdef H5
  156. // import { openMap } from '@/utils/rocessor.js';
  157. // #endif
  158. import {
  159. auction_gu
  160. } from '@/api/hall.js';
  161. import {
  162. mapState,
  163. mapMutations
  164. } from 'vuex';
  165. export default {
  166. components: {
  167. seckill,
  168. uniCountdowns
  169. },
  170. data() {
  171. return {
  172. current: 0,
  173. tabbar: tabbar1,
  174. titleNViewBackground: '',
  175. swiperCurrent: 0,
  176. swiperLength: 0,
  177. longitude: '', //经度
  178. latitude: '', //纬度
  179. dataList: '',
  180. carouselList: [], //轮播图列表
  181. text: [],
  182. article: [],
  183. list: {},
  184. stop: [],
  185. navbarList: [{
  186. child: []
  187. }]
  188. };
  189. },
  190. onPullDownRefresh() {
  191. console.log('111');
  192. this.loadData();
  193. this.getaddress();
  194. setTimeout(function() {
  195. uni.stopPullDownRefresh();
  196. }, 1000);
  197. },
  198. onShow() {
  199. this.loadData();
  200. this.getnavbar();
  201. this.getaddress();
  202. },
  203. methods: {
  204. ...mapMutations(['setLat', 'setLon', 'setChoose']),
  205. getnavbar() {
  206. let obj = this;
  207. getCategoryList({})
  208. .then(({
  209. data
  210. }) => {
  211. data[0].children.forEach(e => {
  212. getProducts({
  213. page: 1,
  214. limit: 2,
  215. sid: e.id
  216. }).then(info => {
  217. obj.$set(e, 'product', info.data);
  218. });
  219. });
  220. this.navbarList = data;
  221. console.log(data, '123456');
  222. })
  223. .catch(err => {
  224. console.log(err);
  225. });
  226. },
  227. loadData() {
  228. article({}, 1).then(({
  229. data
  230. }) => {
  231. data.forEach(e => {
  232. this.text.push(e.synopsis);
  233. });
  234. this.article = data;
  235. });
  236. auction_gu({
  237. pages: 1,
  238. limit: 1
  239. })
  240. .then(({
  241. data
  242. }) => {
  243. this.list = data[0];
  244. })
  245. .catch(e => {
  246. console.log(e);
  247. });
  248. loadIndexs({})
  249. .then(({
  250. data
  251. }) => {
  252. let goods = data.info;
  253. this.dataList = goods.bastList; //精品推荐
  254. this.carouselList = data.banner;
  255. })
  256. .catch(e => {});
  257. },
  258. out_of_china(lng, lat) {
  259. return lng < 72.004 || lng > 137.8347 || (lat < 0.8293 || lat > 55.8271 || false);
  260. },
  261. transformlat(lng, lat) {
  262. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  263. const PI = 3.1415926535897932384626;
  264. const a = 6378245.0;
  265. const ee = 0.00669342162296594323;
  266. let ret = -100.0 + 2.0 * lng + 3.0 * lat + 0.2 * lat * lat + 0.1 * lng * lat + 0.2 * Math.sqrt(Math.abs(
  267. lng));
  268. ret += ((20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0) / 3.0;
  269. ret += ((20.0 * Math.sin(lat * PI) + 40.0 * Math.sin((lat / 3.0) * PI)) * 2.0) / 3.0;
  270. ret += ((160.0 * Math.sin((lat / 12.0) * PI) + 320 * Math.sin((lat * PI) / 30.0)) * 2.0) / 3.0;
  271. return ret;
  272. },
  273. transformlng(lng, lat) {
  274. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  275. const PI = 3.1415926535897932384626;
  276. const a = 6378245.0;
  277. const ee = 0.00669342162296594323;
  278. let ret = 300.0 + lng + 2.0 * lat + 0.1 * lng * lng + 0.1 * lng * lat + 0.1 * Math.sqrt(Math.abs(lng));
  279. ret += ((20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0) / 3.0;
  280. ret += ((20.0 * Math.sin(lng * PI) + 40.0 * Math.sin((lng / 3.0) * PI)) * 2.0) / 3.0;
  281. ret += ((150.0 * Math.sin((lng / 12.0) * PI) + 300.0 * Math.sin((lng / 30.0) * PI)) * 2.0) / 3.0;
  282. return ret;
  283. },
  284. wgs84Togcj02(lng, lat) {
  285. if (this.out_of_china(lng, lat)) {
  286. return [lng, lat];
  287. }
  288. //定义一些常量
  289. //GCJ02 转换为 WGS84
  290. var that = this;
  291. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  292. const PI = 3.1415926535897932384626;
  293. const a = 6378245.0;
  294. const ee = 0.00669342162296594323;
  295. let dlat = that.transformlat(lng - 105.0, lat - 35.0);
  296. let dlng = that.transformlng(lng - 105.0, lat - 35.0);
  297. let radlat = (lat / 180.0) * PI;
  298. let magic = Math.sin(radlat);
  299. magic = 1 - ee * magic * magic;
  300. let sqrtmagic = Math.sqrt(magic);
  301. dlat = (dlat * 180.0) / (((a * (1 - ee)) / (magic * sqrtmagic)) * PI);
  302. dlng = (dlng * 180.0) / ((a / sqrtmagic) * Math.cos(radlat) * PI);
  303. var mglat = lat + dlat;
  304. var mglng = lng + dlng;
  305. return [mglng, mglat];
  306. },
  307. toBack() {
  308. uni.navigateTo({
  309. url: '/pages/navigation/index'
  310. })
  311. },
  312. getaddress() {
  313. console.log('dizhi+++++++++++');
  314. let obj = this;
  315. uni.getLocation({
  316. type: 'wgs84',
  317. success: res => {
  318. let wz = obj.wgs84Togcj02(res.longitude, res.latitude);
  319. obj.setLat(wz[1]);
  320. obj.setLon(wz[0]);
  321. console.log(wz, '经纬度');
  322. },
  323. fail: err => {
  324. console.log(err, '经纬度');
  325. openMap().then(e => {
  326. this.getaddress();
  327. });
  328. }
  329. });
  330. },
  331. goDetails(e) {
  332. uni.navigateTo({
  333. url: '/pages/index/messageInfo?id=' + this.article[e].id
  334. });
  335. },
  336. nav(url) {
  337. console.log(url, '123456');
  338. uni.navigateTo({
  339. url,
  340. fail() {
  341. uni.switchTab({
  342. url
  343. });
  344. }
  345. });
  346. },
  347. //轮播图切换修改背景色
  348. swiperChange(e) {
  349. const index = e.detail.current;
  350. this.swiperCurrent = index;
  351. this.titleNViewBackground = this.carouselList[index].background;
  352. },
  353. // 點擊搜索框
  354. clickSearch() {
  355. uni.navigateTo({
  356. url: '/pages/product/search'
  357. });
  358. },
  359. navTo(item) {
  360. uni.navigateTo({
  361. url: '/pages/hall/halllist?id=' + item.id + '&name=' + item.name + '&peoplename=' + item
  362. .nickname
  363. });
  364. },
  365. //详情页
  366. navToDetailPage(item) {
  367. let id = item.id;
  368. uni.navigateTo({
  369. url: '/pages/product/product?id=' + id
  370. });
  371. }
  372. }
  373. };
  374. </script>
  375. <style lang="scss">
  376. page,
  377. .center {
  378. min-height: 100%;
  379. height: auto;
  380. background: #ffffff;
  381. }
  382. .body-title {
  383. height: 80rpx;
  384. text-align: center;
  385. font-size: 35rpx;
  386. position: relative;
  387. .header {
  388. position: absolute;
  389. left: 0;
  390. top: 0;
  391. width: 100%;
  392. font-size: 36rpx;
  393. font-family: PingFang SC;
  394. font-weight: bold;
  395. color: #fffeff;
  396. height: 80rpx;
  397. font-size: 36rpx;
  398. font-weight: 700;
  399. z-index: 9;
  400. display: flex;
  401. justify-content: center;
  402. align-items: center;
  403. }
  404. .goback-box {
  405. position: absolute;
  406. left: 18rpx;
  407. top: 0;
  408. height: 80rpx;
  409. display: flex;
  410. align-items: center;
  411. }
  412. .goback {
  413. z-index: 100;
  414. width: 34rpx;
  415. height: 34rpx;
  416. }
  417. }
  418. .vheigh {
  419. height: var(--status-bar-height);
  420. background-color: $base-color;
  421. }
  422. .top {
  423. position: relative;
  424. width: 100%;
  425. height: 360rpx;
  426. .top-bg {
  427. position: absolute;
  428. top: 0;
  429. left: 0;
  430. right: 0;
  431. width: 100%;
  432. height: 100%;
  433. }
  434. .top-main {
  435. position: relative;
  436. z-index: 2;
  437. padding: 30rpx;
  438. .search-box {
  439. justify-content: center;
  440. width: 698rpx;
  441. height: 60rpx;
  442. background: rgba(255, 240, 245, 0.4);
  443. box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  444. border-radius: 30rpx;
  445. .search {
  446. width: 34rpx;
  447. height: 34rpx;
  448. }
  449. .search-font {
  450. margin-left: 14rpx;
  451. font-size: 28rpx;
  452. font-family: PingFang SC;
  453. font-weight: 500;
  454. color: #ffffff;
  455. }
  456. }
  457. }
  458. }
  459. .carousel {
  460. width: 700rpx;
  461. height: 276rpx;
  462. /* #ifndef APP-PLUS */
  463. margin: -160rpx auto 0;
  464. /* #endif */
  465. /* #ifdef APP-PLUS */
  466. margin: -100rpx auto 0;
  467. /* #endif */
  468. border-radius: 40rpx;
  469. image {
  470. border-radius: 40rpx;
  471. width: 700rpx;
  472. height: 276rpx;
  473. }
  474. }
  475. .tongz {
  476. width: 690rpx;
  477. height: 70rpx;
  478. margin: 32rpx auto 0;
  479. padding: 18rpx 30rpx 18rpx 24rpx;
  480. align-items: center;
  481. position: relative;
  482. .tongz-bg {
  483. position: absolute;
  484. top: 0;
  485. right: 0;
  486. left: 0;
  487. width: 690rpx;
  488. height: 70rpx;
  489. image {
  490. width: 100%;
  491. height: 100%;
  492. }
  493. }
  494. .tongz-left {
  495. width: 640rpx;
  496. .image-left {
  497. width: 28rpx;
  498. height: 34rpx;
  499. }
  500. .tongz-font {
  501. margin-left: 22rpx;
  502. font-size: 28rpx;
  503. font-family: Source Han Sans CN;
  504. font-weight: 400;
  505. color: #0f253a;
  506. }
  507. }
  508. .tongz-right {
  509. position: relative;
  510. z-index: 11;
  511. width: 12rpx;
  512. height: 26rpx;
  513. image {
  514. width: 100%;
  515. height: 100%;
  516. }
  517. }
  518. }
  519. .navbar {
  520. justify-content: flex-start;
  521. flex-wrap: wrap;
  522. .navbar-item {
  523. margin-top: 42rpx;
  524. width: 25%;
  525. display: flex;
  526. flex-direction: column;
  527. align-items: center;
  528. .nitem-image {
  529. width: 90rpx;
  530. height: 90rpx;
  531. }
  532. .nitem-font {
  533. margin-top: 10rpx;
  534. font-size: 24rpx;
  535. font-family: PingFang SC;
  536. font-weight: 500;
  537. color: #0c1732;
  538. }
  539. }
  540. }
  541. .shingle {
  542. width: 750rpx;
  543. background: #f8f8f8;
  544. border-radius: 10rpx;
  545. margin: 60rpx auto 0rpx;
  546. padding: 44rpx 50rpx 40rpx;
  547. .shingle-top {
  548. padding-left: 2rpx;
  549. .shingle-title {
  550. font-size: 36rpx;
  551. font-family: PingFang SC;
  552. font-weight: bold;
  553. color: #dc262b;
  554. }
  555. .shingle-btn {
  556. width: 250rpx;
  557. height: 50rpx;
  558. border: 2rpx solid #dc262b;
  559. border-radius: 10rpx;
  560. padding: 0 16rpx;
  561. text-align: left;
  562. font-size: 24rpx;
  563. font-family: PingFang SC;
  564. font-weight: 500;
  565. color: #dc262b;
  566. line-height: 50rpx;
  567. text {
  568. display: inline-block;
  569. padding-left: 6rpx;
  570. }
  571. }
  572. }
  573. .shingle-main {
  574. margin: 20rpx auto;
  575. width: 650rpx;
  576. height: 206rpx;
  577. position: relative;
  578. .shingle-bg {
  579. position: absolute;
  580. top: 0;
  581. left: 0;
  582. right: 0;
  583. width: 650rpx;
  584. height: 206rpx;
  585. image {
  586. width: 650rpx;
  587. height: 206rpx;
  588. }
  589. }
  590. .shinglem-title {
  591. position: relative;
  592. z-index: 2;
  593. justify-content: center;
  594. height: 70rpx;
  595. .tbg {
  596. height: 70rpx;
  597. width: 40rpx;
  598. }
  599. .shinglemt-center {
  600. display: flex;
  601. align-items: center;
  602. background: rgba(220, 38, 43, 0.66);
  603. }
  604. .address {
  605. width: 28rpx;
  606. height: 30rpx;
  607. }
  608. .shingle-font {
  609. font-size: 36rpx;
  610. font-family: PingFang SC;
  611. font-weight: bold;
  612. color: #ffffff;
  613. line-height: 70rpx;
  614. margin-left: 14rpx;
  615. }
  616. }
  617. .shingle-mmain {
  618. position: relative;
  619. z-index: 2;
  620. margin-top: 30rpx;
  621. .smmain-item {
  622. width: 33%;
  623. display: flex;
  624. flex-direction: column;
  625. align-items: center;
  626. .smitem-top {
  627. text-align: center;
  628. width: 90%;
  629. font-size: 30rpx;
  630. font-family: PingFang SC;
  631. font-weight: bold;
  632. color: #ffffff;
  633. }
  634. .smitem-bottom {
  635. margin-top: 10rpx;
  636. font-size: 30rpx;
  637. font-family: PingFang SC;
  638. font-weight: bold;
  639. color: #ffffff;
  640. }
  641. .people {
  642. justify-content: center;
  643. .peopleitem {
  644. width: 24rpx;
  645. height: 34rpx;
  646. image {
  647. width: 100%;
  648. height: 100%;
  649. }
  650. }
  651. }
  652. }
  653. .shu {
  654. width: 2rpx;
  655. height: 70rpx;
  656. background: #ffffff;
  657. }
  658. }
  659. .right-bottom {
  660. position: absolute;
  661. z-index: 2;
  662. right: 0;
  663. bottom: 0;
  664. width: 94rpx;
  665. height: 92rpx;
  666. }
  667. }
  668. }
  669. .shop {
  670. background: #ffffff;
  671. padding: 32rpx 30rpx 20rpx;
  672. .shop-title {
  673. display: flex;
  674. align-items: center;
  675. .shop-title-icon {
  676. width: 36rpx;
  677. height: 36rpx;
  678. }
  679. .shop-title-font {
  680. margin-left: 20rpx;
  681. font-size: 34rpx;
  682. color: #303133;
  683. font-weight: bold;
  684. }
  685. }
  686. .shop-main {
  687. margin: 20rpx auto 0;
  688. border-radius: 40rpx;
  689. width: 100%;
  690. height: 286rpx;
  691. image {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. }
  696. }
  697. .seckill-title {
  698. padding: 32rpx 30rpx 0;
  699. }
  700. .seckill-left {
  701. justify-content: flex-start;
  702. .seckill-inco {
  703. width: 36rpx;
  704. height: 36rpx;
  705. flex-shrink: 0;
  706. }
  707. .seckill-font {
  708. margin-left: 8rpx;
  709. font-size: 40rpx;
  710. font-family: PingFang SC;
  711. font-weight: bold;
  712. color: #333333;
  713. }
  714. .djs {
  715. margin-left: 12rpx;
  716. font-size: 20rpx;
  717. font-family: PingFang SC;
  718. font-weight: bold;
  719. color: #dc262b;
  720. }
  721. }
  722. .seckill-right {
  723. display: flex;
  724. justify-content: flex-start;
  725. align-items: center;
  726. .seckill-rfont {
  727. font-size: 24rpx;
  728. font-family: PingFang SC;
  729. font-weight: 500;
  730. color: #999999;
  731. margin-right: 8rpx;
  732. }
  733. .seckill-back {
  734. width: 10rpx;
  735. height: 20rpx;
  736. }
  737. }
  738. .product {
  739. background: #f0f0f0;
  740. }
  741. .priduct-main {
  742. margin-top: 38rpx;
  743. width: 100%;
  744. display: flex;
  745. flex-wrap: wrap;
  746. padding: 0 32rpx;
  747. .priduct-item {
  748. width: 48%;
  749. background-color: #ffffff;
  750. border-radius: 12rpx;
  751. margin-bottom: 24rpx;
  752. &:nth-child(2n + 1) {
  753. margin-right: 24rpx;
  754. }
  755. .priduct-main-image {
  756. width: 100%;
  757. height: 330rpx;
  758. // background: red;
  759. border-radius: 3px;
  760. overflow: hidden;
  761. image {
  762. width: 100%;
  763. height: 100%;
  764. opacity: 1;
  765. border-radius: 12rpx 12rpx 0 0;
  766. }
  767. }
  768. .priduct-main-name {
  769. font-size: $font-base;
  770. color: $font-color-dark;
  771. font-weight: bold;
  772. line-height: 80rpx;
  773. }
  774. .priduct-main-price {
  775. display: flex;
  776. justify-content: space-between;
  777. padding: 0 16rpx 12rpx;
  778. .price {
  779. font-size: 36rpx;
  780. font-weight: bold;
  781. color: #fd3b39;
  782. }
  783. .cart-icon {
  784. image {
  785. width: 44rpx;
  786. height: 44rpx;
  787. }
  788. }
  789. }
  790. }
  791. }
  792. </style>