index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <template>
  2. <view class="container">
  3. <!-- 小程序头部兼容 -->
  4. <!-- #ifdef MP -->
  5. <view class="input-box flex" @click="clickSearch">
  6. <view class=" input-content flex">
  7. <view class="iconfont iconsearch"></view>
  8. <view class="input"><input type="text" disabled placeholder="请输入搜索内容" /></view>
  9. </view>
  10. </view>
  11. <view class="mp-height"></view>
  12. <!-- #endif -->
  13. <!-- 头部轮播 -->
  14. <view class="carousel-section">
  15. <!-- 标题栏和状态栏占位符 -->
  16. <view class="titleNview-placing"></view>
  17. <!-- 背景色区域 -->
  18. <view class="titleNview-background" ></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. <image :src="item.pic" />
  22. </swiper-item>
  23. </swiper>
  24. <!-- 自定义swiper指示器 -->
  25. <!-- <view class="swiper-dots">
  26. <text class="num">{{ swiperCurrent + 1 }}</text>
  27. <text class="sign">/</text>
  28. <text class="num">{{ swiperLength }}</text>
  29. </view> -->
  30. </view>
  31. <!-- 分类 -->
  32. <view class="cate-section">
  33. <!-- <navigator url="/pages/product/newPeople" v-if="userInfo.is_whole == 0">
  34. <view class="cate-item">
  35. <image src="/static/img/index-nav1.png"></image>
  36. <text>新人专区</text>
  37. </view>
  38. </navigator> -->
  39. <navigator url="/pages/product/exchange">
  40. <view class="cate-item">
  41. <image src="/static/img/index-nav2.png"></image>
  42. <text>兑换专区</text>
  43. </view>
  44. </navigator>
  45. <navigator url="/pages/product/store">
  46. <view class="cate-item">
  47. <image src="/static/img/index-nav3.png"></image>
  48. <text>附近门店</text>
  49. </view>
  50. </navigator>
  51. <navigator url="/pages/user/shareQrCode">
  52. <view class="cate-item">
  53. <image src="/static/img/index-nav4.png"></image>
  54. <text>邀请有礼</text>
  55. </view>
  56. </navigator>
  57. <navigator url="/pages/index/cpzq">
  58. <view class="cate-item">
  59. <image src="../../static/icon/cpzq.png"></image>
  60. <text>公司简介</text>
  61. </view>
  62. </navigator>
  63. </view>
  64. <!-- 金豆专区 -->
  65. <golden-bean :data='jdList'></golden-bean>
  66. <!-- 批发专区 -->
  67. <!-- <wholesale></wholesale> -->
  68. <view class="wholesale">
  69. <view class="title">
  70. <view class="img">
  71. <image src="../../static/img/list1.png" mode=""></image>
  72. </view>
  73. <view class="title-t"> 批发专区 </view>
  74. <view class="about"> 限时抢购 </view>
  75. </view>
  76. <view class="date" v-if="timeList.length > 0">
  77. <view class="date-item"
  78. v-for="itemt in timeList"
  79. @click="navto('/pages/product/wholesale?bin=' + encodeURI(itemt.time) + '&stp=' + itemt.stop + '&status=' + itemt.status + '&state=' + itemt.state + '&wid=' + itemt.id)">
  80. <image :src="itemt.slide"></image>
  81. <view class="item-name">
  82. {{itemt.time < '12:00' ? '上午场':(itemt.time > '17:00' ? '晚上场' : '下午场') }}
  83. </view>
  84. <view class="item-time">
  85. {{itemt.time}}~{{itemt.stop | timet}}
  86. </view>
  87. </view>
  88. <!-- <view class="date-item"
  89. @click="navto('/pages/product/wholesale?bin=' + encodeURI(timeList[1].time) + '&stp=' + timeList[1].stop + '&status=' + timeList[1].status + '&state=' + timeList[1].state + '&wid=' + timeList[1].id)">
  90. <image src="../../static/img/aft.png"></image>
  91. <view class="item-name">
  92. 下午场
  93. </view>
  94. <view class="item-time">
  95. {{timeList[1].time}}~{{timeList[1].stop | timet}}
  96. </view>
  97. </view>
  98. <view class="date-item"
  99. @click="navto('/pages/product/wholesale?bin=' + encodeURI(timeList[2].time) + '&stp=' + timeList[2].stop + '&status=' + timeList[2].status + '&state=' + timeList[2].state + '&wid=' + timeList[2].id)">
  100. <image src="../../static/img/eve.png"></image>
  101. <view class="item-name">
  102. 晚上场
  103. </view>
  104. <view class="item-time">
  105. {{timeList[2].time}}~{{timeList[2].stop | timet}}
  106. </view>
  107. </view> -->
  108. </view>
  109. </view>
  110. <!-- 公司简介 -->
  111. </view>
  112. </template>
  113. <script>
  114. import topTitle from '../../components/top-title/top-title.vue';
  115. import {
  116. getProducts
  117. } from '@/api/product.js';
  118. import goldenBean from './child/goldenBean.vue';
  119. import wholesale from './child/wholesale.vue';
  120. import recommend from './child/recommend.vue';
  121. import {
  122. loadIndexs,
  123. getArticleList
  124. } from '@/api/index.js';
  125. import {
  126. getUserInfo
  127. } from '@/api/user.js';
  128. import {
  129. setCoupons
  130. } from '@/api/functionalUnit.js';
  131. import {
  132. saveUrl,
  133. interceptor
  134. } from '@/utils/loginUtils';
  135. import {
  136. mapState
  137. } from 'vuex';
  138. import {
  139. getWholeTimeArea
  140. } from '@/api/whole.js'
  141. export default {
  142. components: {
  143. goldenBean,
  144. wholesale,
  145. recommend,
  146. topTitle
  147. },
  148. data() {
  149. return {
  150. shareShow: false, //分享海报
  151. pageProportion: 0, //保存页面基于750宽度的比例
  152. swiperHeight: 0,
  153. checkid: 0,
  154. titleNViewBackground: '',
  155. swiperCurrent: 0,
  156. swiperLength: 0,
  157. carouselList: [], //轮播列表
  158. bastList: [], //商品
  159. jdList: [], //金豆商品
  160. page: 1,
  161. limit: 3,
  162. gsjjList: [],
  163. cpjjList: [],
  164. timeList: []
  165. };
  166. },
  167. computed: {
  168. ...mapState(['loginInterceptor']),
  169. ...mapState('user', ['hasLogin', 'userInfo'])
  170. },
  171. filters: {
  172. timet(val) {
  173. let str = ''
  174. if (val) {
  175. let date = new Date(val * 1000);
  176. let h = date.getHours() >= 10 ? date.getHours() : ('0' + date.getHours())
  177. let m = date.getMinutes() >= 10 ? date.getMinutes() : ('0' + date.getMinutes())
  178. str = h + ':' + m
  179. }
  180. return str
  181. }
  182. },
  183. onLoad: function(option) {
  184. console.log('binloading')
  185. // #ifndef MP
  186. if (option.spread) {
  187. // 存储其他邀请人
  188. uni.setStorageSync('spread', option.spread);
  189. }
  190. // #endif
  191. // #ifdef MP
  192. if (option.scene) {
  193. // 存储小程序邀请人
  194. uni.setStorage({
  195. key: 'spread_code',
  196. data: option.scene
  197. });
  198. }
  199. // #endif
  200. // this.getArticleList()
  201. },
  202. onShow: function() {
  203. console.log('show')
  204. // 判断是否强制登录
  205. if (this.loginInterceptor && !this.hasLogin) {
  206. console.log('show123')
  207. saveUrl()
  208. // 登录拦截
  209. interceptor();
  210. return
  211. }
  212. this.loadData();
  213. this.getBargainList();
  214. this.getTimeArea()
  215. },
  216. //下拉刷新
  217. onPullDownRefresh() {
  218. this.loadData();
  219. },
  220. // #ifndef MP
  221. // 监听导航栏输入框点击事件
  222. onNavigationBarSearchInputClicked(e) {
  223. //跳转到搜索页面
  224. this.clickSearch();
  225. },
  226. //点击导航栏 buttons 时触发
  227. onNavigationBarButtonTap(e) {
  228. const index = e.index;
  229. if (index === 0) {
  230. this.$api.msg('点击了扫描');
  231. } else if (index === 1) {
  232. // #ifdef APP-PLUS
  233. const pages = getCurrentPages();
  234. const page = pages[pages.length - 1];
  235. const currentWebview = page.$getAppWebview();
  236. currentWebview.hideTitleNViewButtonRedDot({
  237. index
  238. });
  239. // #endif
  240. uni.navigateTo({
  241. url: '/pages/user/notice'
  242. });
  243. }
  244. },
  245. // #endif
  246. methods: {
  247. getTimeArea() {
  248. getWholeTimeArea().then(({
  249. data
  250. }) => {
  251. this.timeList = data.seckillTime
  252. })
  253. },
  254. navto(url) {
  255. console.log(url)
  256. uni.navigateTo({
  257. url: url
  258. })
  259. },
  260. getArticleList() {
  261. getArticleList({
  262. pages: 1,
  263. limit: 3
  264. },2).then(({data}) => {
  265. console.log(data)
  266. this.cpjjList = data
  267. })
  268. getArticleList({
  269. pages: 1,
  270. limit: 3
  271. },1).then(({data}) => {
  272. console.log(data)
  273. this.gsjjList = data
  274. })
  275. },
  276. getUserInfo() {
  277. getUserInfo().then(res => {
  278. console.log(res)
  279. this.setUserInfo(res.data);
  280. })
  281. },
  282. getBargainList() {
  283. let that = this;
  284. getProducts({
  285. page: that.page,
  286. limit: that.limit,
  287. is_gold: 1
  288. })
  289. .then(function(res) {
  290. that.jdList = res.data
  291. })
  292. .catch(res => {});
  293. },
  294. // 點擊搜索框
  295. clickSearch() {
  296. uni.navigateTo({
  297. url: '/pages/product/search'
  298. });
  299. },
  300. // 监听图片加载完成
  301. onImageError(key, index) {
  302. this[key][index].image = '/static/error/errorImage.jpg';
  303. },
  304. // 请求载入数据
  305. async loadData() {
  306. loadIndexs({})
  307. .then(({
  308. data
  309. }) => {
  310. let goods = data.info;
  311. this.carouselList = data.banner;
  312. this.swiperLength = this.carouselList.length;
  313. this.bastList = goods.bastList; //精品推荐
  314. uni.stopPullDownRefresh();
  315. })
  316. .catch(e => {
  317. uni.stopPullDownRefresh();
  318. });
  319. },
  320. //轮播图切换修改背景色
  321. swiperChange(e) {
  322. const index = e.detail.current;
  323. this.swiperCurrent = index;
  324. this.titleNViewBackground = this.carouselList[index].background;
  325. },
  326. //详情页
  327. navToDetailPage(item) {
  328. let id = item.id;
  329. uni.navigateTo({
  330. url: '/pages/product/product?id=' + id
  331. });
  332. },
  333. }
  334. };
  335. </script>
  336. <style lang="scss">
  337. .Mask {
  338. width: 100%;
  339. height: 100vh;
  340. position: fixed;
  341. z-index: 99999;
  342. background-color: rgba(0, 0, 0, 0.7);
  343. top: 0;
  344. image {
  345. width: 100%;
  346. height: 100vh;
  347. }
  348. }
  349. /* #ifdef MP */
  350. .mp-height {
  351. height: 44px;
  352. }
  353. .input-box {
  354. position: fixed;
  355. top: 0;
  356. left: 0;
  357. width: 100%;
  358. padding: 25rpx;
  359. background-color: #ffffff;
  360. z-index: 999;
  361. height: 44px;
  362. .iconsearch {
  363. font-size: 50rpx;
  364. }
  365. .input-content {
  366. border-radius: 99rpx;
  367. flex-grow: 1;
  368. padding: 10rpx 30rpx;
  369. background-color: rgba(231, 231, 231, 0.7);
  370. .input {
  371. flex-grow: 1;
  372. input {
  373. font-size: $font-lg;
  374. }
  375. }
  376. }
  377. .input-button {
  378. padding-left: 20rpx;
  379. font-size: $font-lg;
  380. height: 100%;
  381. }
  382. }
  383. page {
  384. .cate-section {
  385. position: relative;
  386. z-index: 5;
  387. border-radius: 16rpx 16rpx 0 0;
  388. margin-top: -20rpx;
  389. }
  390. .carousel-section {
  391. padding: 0;
  392. .titleNview-placing {
  393. padding-top: 0;
  394. height: 0;
  395. }
  396. .carousel {
  397. .carousel-item {
  398. padding: 0;
  399. }
  400. }
  401. .swiper-dots {
  402. left: 45rpx;
  403. bottom: 40rpx;
  404. }
  405. }
  406. }
  407. /* #endif */
  408. page {
  409. background: #f7f8f7;
  410. }
  411. .m-t {
  412. margin-top: 16rpx;
  413. }
  414. /* 头部 轮播图 */
  415. // .carousel-section {
  416. // position: relative;
  417. // padding-top: 10px;
  418. // overflow: hidden;
  419. // .titleNview-placing {
  420. // height: var(--status-bar-height);
  421. // padding-top: 44px;
  422. // box-sizing: content-box;
  423. // }
  424. // .titleNview-background {
  425. // position: absolute;
  426. // top: 0;
  427. // left: 0;
  428. // width: 100%;
  429. // height: 426rpx;
  430. // transition: 0.4s;
  431. // }
  432. // .carousel {
  433. // width: 100%;
  434. // height: 240rpx;
  435. // .carousel-item {
  436. // width: 100%;
  437. // height: 100%;
  438. // padding: 0 28rpx;
  439. // overflow: hidden;
  440. // }
  441. // image {
  442. // width: 100%;
  443. // height: 100%;
  444. // border-radius: $border-radius-sm;
  445. // }
  446. // }
  447. // }
  448. .swiper-dots {
  449. display: flex;
  450. position: absolute;
  451. left: 60rpx;
  452. bottom: 15rpx;
  453. width: 72rpx;
  454. height: 36rpx;
  455. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
  456. background-size: 100% 100%;
  457. .num {
  458. width: 36rpx;
  459. height: 36rpx;
  460. border-radius: 50px;
  461. font-size: 24rpx;
  462. color: #fff;
  463. text-align: center;
  464. line-height: 36rpx;
  465. }
  466. .sign {
  467. position: absolute;
  468. top: 0;
  469. left: 50%;
  470. line-height: 36rpx;
  471. font-size: 12rpx;
  472. color: #fff;
  473. transform: translateX(-50%);
  474. }
  475. }
  476. /* 分类 */
  477. .cate-section {
  478. background-color: #fff;
  479. display: flex;
  480. justify-content: space-around;
  481. align-items: center;
  482. flex-wrap: wrap;
  483. padding: 30rpx 22rpx;
  484. .cate-item {
  485. display: flex;
  486. flex-direction: column;
  487. align-items: center;
  488. font-size: $font-sm + 2rpx;
  489. color: $font-color-dark;
  490. }
  491. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  492. image {
  493. width: 140rpx;
  494. height: 140rpx;
  495. // margin-bottom: 5rpx;
  496. border-radius: 50%;
  497. opacity: 0.7;
  498. }
  499. }
  500. /*公用边框样式*/
  501. %icon {
  502. margin-right: 10rpx;
  503. display: inline-block;
  504. padding: 2rpx 10rpx;
  505. border: 1rpx solid $color-yellow;
  506. color: $color-yellow;
  507. line-height: 1;
  508. font-size: $font-base;
  509. border-radius: 10rpx;
  510. }
  511. .jj-tit {
  512. display: flex;
  513. // height: 50rpx;
  514. justify-content: space-between;
  515. background-color: #fff;
  516. padding-top: 20rpx;
  517. .left {
  518. padding-left: 20rpx;
  519. display: flex;
  520. .jj-log {
  521. width: 45rpx;
  522. height: 45rpx;
  523. }
  524. .jj-title {
  525. font-weight: bold;
  526. font-size: 32rpx;
  527. padding-left: 15rpx;
  528. }
  529. }
  530. .right {
  531. display: flex;
  532. width: 200rpx;
  533. font-size: 22rpx;
  534. // justify-content: sp;
  535. justify-content: flex-end;
  536. align-items: center;
  537. padding-right: 20rpx;
  538. color: #999;
  539. .jj-more {
  540. margin-left: 10rpx;
  541. width: 15rpx;
  542. height: 22rpx;
  543. }
  544. }
  545. }
  546. .jj-wrap {
  547. background-color: #fff;
  548. // margin: 20rpx 0;
  549. .jj {
  550. margin: auto;
  551. width: 689rpx;
  552. height: 202rpx;
  553. border-bottom: 1px solid #e5e5e5;
  554. padding: 20rpx;
  555. padding-left: 0;
  556. display: flex;
  557. &:last-of-type {
  558. border-bottom: none;
  559. }
  560. .jj-img {
  561. flex-shrink: 0;
  562. width: 222rpx;
  563. height: 158rpx;
  564. background-color: #bfa;
  565. border-radius: 10rpx;
  566. }
  567. .jj-info {
  568. width: 450rpx;
  569. // flex-shrink: 0;
  570. padding: 10rpx;
  571. padding-left: 15rpx;
  572. font-size: 32rpx;
  573. font-weight: bold;
  574. display: flex;
  575. flex-direction: column;
  576. justify-content: space-between;
  577. .jj-tit-tit {
  578. }
  579. .jj-val {
  580. padding-top: 20rpx;
  581. font-size: 28rpx;
  582. font-weight: 500;
  583. }
  584. }
  585. }
  586. }
  587. .carousel-section {
  588. position: relative;
  589. // padding-top: 10px;
  590. overflow: hidden;
  591. .titleNview-placing {
  592. height: var(--status-bar-height);
  593. // padding-top: 44px;
  594. box-sizing: content-box;
  595. }
  596. .titleNview-background {
  597. position: absolute;
  598. top: 0;
  599. left: 0;
  600. width: 100%;
  601. height: 426rpx;
  602. transition: 0.4s;
  603. }
  604. .carousel {
  605. width: 100%;
  606. height: 426rpx;
  607. .carousel-item {
  608. width: 100%;
  609. height: 100%;
  610. // padding: 0 28rpx;
  611. overflow: hidden;
  612. }
  613. image {
  614. width: 100%;
  615. height: 100%;
  616. // border-radius: $border-radius-sm;
  617. }
  618. }
  619. }
  620. $grey: #95A0B1;
  621. $text: #333333;
  622. $red: #FF4C4C;
  623. .wholesale {
  624. padding: 20rpx;
  625. background-color: #fff;
  626. margin: 20rpx 0;
  627. .title {
  628. display: flex;
  629. line-height: 40rpx;
  630. .title-t {
  631. color: $text;
  632. font-weight: bold;
  633. margin: 0 20rpx;
  634. font-size: 34rpx;
  635. }
  636. .about {
  637. font-size: 24rpx;
  638. color: $grey;
  639. }
  640. image {
  641. width: 40rpx;
  642. height: 40rpx;
  643. }
  644. }
  645. .date {
  646. padding: 30rpx 0;
  647. display: flex;
  648. justify-content: space-between;
  649. .date-item {
  650. width: 220rpx;
  651. height: 300rpx;
  652. position: relative;
  653. image {
  654. border-radius: 20rpx;
  655. // max-width: 32%;
  656. width: 220rpx;
  657. height: 300rpx;
  658. }
  659. .item-name {
  660. font-size: 32rpx;
  661. font-family: PingFang SC;
  662. font-weight: 500;
  663. color: #FFFFFF;
  664. position: absolute;
  665. top: 36rpx;
  666. padding-left: 30rpx;
  667. }
  668. .item-time {
  669. font-size: 22rpx;
  670. font-family: PingFang SC;
  671. font-weight: 500;
  672. color: #FFFFFF;
  673. position: absolute;
  674. top: 80rpx;
  675. padding-left: 30rpx;
  676. }
  677. }
  678. // image {
  679. // border-radius: 20rpx;
  680. // // max-width: 32%;
  681. // width: 220rpx;
  682. // height: 300rpx;
  683. // }
  684. }
  685. }
  686. </style>