index.vue 18 KB

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