index.vue 20 KB

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