index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. <template>
  2. <view class="container">
  3. <!-- 头部轮播 -->
  4. <view class="carousel-section">
  5. <!-- 背景色区域 -->
  6. <view class="bg"><image src="../../static/img/index.png" mode=""></image></view>
  7. <!-- 标题栏和状态栏占位符 -->
  8. <!-- <view class="titleNview-placing"></view> -->
  9. <!-- 搜素栏 -->
  10. <view class="search flex">
  11. <image src="../../static/icon/address.png" class="address"></image>
  12. <view class="shop-name clamp">满园春台州店11111111</view>
  13. <view class="input-box flex" @click="clickSearch">
  14. <view class=" input-content flex">
  15. <view class="iconfont iconsearch"></view>
  16. <view class="input"><input type="text" disabled value="输入关键字搜索" /></view>
  17. </view>
  18. </view>
  19. </view>
  20. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange" :indicator-dots="true" indicator-active-color="#FFFFFF">
  21. <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000"> -->
  22. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
  23. <image :src="item.pic" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
  24. </swiper-item>
  25. </swiper>
  26. </view>
  27. <!-- 分类 -->
  28. <view class="cate-section">
  29. <navigator url="/pages/shoping/list">
  30. <view class="cate-item">
  31. <image class="Uimg" src="/static/icon/in2.png"></image>
  32. <text>全部分类</text>
  33. </view>
  34. </navigator>
  35. <navigator url="/pages/prefecture/integral">
  36. <view class="cate-item">
  37. <image src="/static/icon/in1.png"></image>
  38. <text>附近门店</text>
  39. </view>
  40. </navigator>
  41. <<<<<<< HEAD
  42. <navigator url="/pages/prefecture/consumer">
  43. =======
  44. <!-- <navigator url="/pages/sign/index">
  45. <view class="cate-item">
  46. <image src="/static/icon/c8.png"></image>
  47. <text>每日签到</text>
  48. </view>
  49. </navigator> -->
  50. <navigator url="/pages/prefecture/voucher">
  51. >>>>>>> 070c46bb1a06e3562f6023f0178cefa947a4680d
  52. <view class="cate-item">
  53. <image src="/static/icon/in3.png"></image>
  54. <text>邀请有礼</text>
  55. </view>
  56. </navigator>
  57. <navigator url="/pages/received/index?state=0">
  58. <view class="cate-item">
  59. <image src="/static/icon/in4.png"></image>
  60. <text>收付款</text>
  61. </view>
  62. </navigator>
  63. </view>
  64. <!-- 积分兑换 -->
  65. <view class="main-box">
  66. <view class="main-top">
  67. <image src="../../static/icon/indexI.png" mode="" class="main-icon"></image>
  68. <view class="main-title">积分兑换</view>
  69. <view class="main-synopsis">超值体验</view>
  70. </view>
  71. <view class="main-content">
  72. <view class="content-top flex">
  73. <view class="content-font">
  74. <view class="content-title">积分兑换热门好物</view>
  75. <view class="content-synopsis">买到就是赚到</view>
  76. </view>
  77. <image src="../../static/icon/fanhui.png" class="go" mode=""></image>
  78. </view>
  79. <view class="commodity flex">
  80. <view class="commodity-item" v-for="(item, index) in goodsList" :key="item.id">
  81. <image class="commodity-image" :src="item.image" mode=""></image>
  82. <view class="commodity-title clamp">{{ item.store_name }}</view>
  83. <view class="price">¥{{ item.price }}</view>
  84. <view class="vip-price">
  85. <image src="../../static/icon/jf.png" mode=""></image>
  86. <text>{{ item.vip_price }}</text>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <!-- 消费券专区 -->
  93. <view class="main-box">
  94. <view class="main-top">
  95. <image src="../../static/icon/xfzq.png" mode="" class="main-icon"></image>
  96. <view class="main-title">消费券专区</view>
  97. <view class="main-synopsis">买多赚多</view>
  98. </view>
  99. <view class="main-content ">
  100. <view class="content-top flex xfq">
  101. <view class="content-font">
  102. <view class="content-title">精选好货 平台推荐</view>
  103. <view class="content-synopsis">消费券兑换</view>
  104. </view>
  105. <image src="../../static/icon/fanhui.png" class="go" mode=""></image>
  106. </view>
  107. <view class="commodity flex">
  108. <view class="commodity-item" v-for="(item, index) in goodsList" :key="item.id">
  109. <image class="commodity-image" :src="item.image" mode=""></image>
  110. <view class="commodity-title clamp">{{ item.store_name }}</view>
  111. <view class="price">¥{{ item.price }}</view>
  112. <view class="vip-price">
  113. <image src="../../static/icon/xfq.png" mode=""></image>
  114. <text>{{ item.vip_price }}</text>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <!-- 精选好货 -->
  121. <view class="bastgood-box">
  122. <view class="bast-bg">
  123. <image src="../../static/icon/jxhh.png" mode=""></image>
  124. </view>
  125. <view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)">
  126. <image :src="item.image"></image>
  127. <view class="guess-box">
  128. <view class="title clamp2">
  129. {{ item.store_name }}
  130. </view>
  131. <view class="price-box flex">
  132. <view class="yuanprice">{{ item.price }}</view>
  133. <image src="../../static/icon/down.png" mode=""></image>
  134. <view class="jiang">直降{{ (item.vip_price - item.price).toFixed(2) }}元</view>
  135. </view>
  136. <view class="price">¥{{ item.vip_price }}</view>
  137. <view class="btn">立即购买</view>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import seckill from './seckill';
  145. import { loadIndexs } from '@/api/index.js';
  146. import { interceptor } from '@/utils/loginUtils';
  147. import { userinfo } from '@/api/user.js';
  148. import { mapState } from 'vuex';
  149. export default {
  150. components: {
  151. seckill
  152. },
  153. filters: {
  154. moneyNum: function(value) {
  155. return +value;
  156. }
  157. },
  158. data() {
  159. return {
  160. titleNViewBackground: '',
  161. swiperCurrent: 0,
  162. swiperLength: 0,
  163. carouselList: [], //轮播列表
  164. goodsList: [], //最新商品列表
  165. bastList: [], //精品推荐列表
  166. bastBanner: [], //促销商品列表
  167. menusList: [], //头部菜单
  168. userServant: [
  169. {
  170. image: ''
  171. }
  172. ] //用户推广服务
  173. };
  174. },
  175. computed: {
  176. ...mapState(['loginInterceptor']),
  177. ...mapState('user', ['hasLogin', 'userInfo'])
  178. },
  179. onLoad(option) {
  180. let agree = uni.getStorageSync('agree') || false;
  181. // 判断是否已经同意协议
  182. if (!agree) {
  183. uni.redirectTo({ url: '/pages/contract/start' });
  184. }
  185. if (option.spread) {
  186. // 存储邀请人
  187. uni.setStorage({
  188. key: 'spread',
  189. data: option.spread
  190. });
  191. }
  192. },
  193. onShow() {
  194. // 判断是否强制登录
  195. if (this.loginInterceptor && !this.hasLogin) {
  196. // 登录拦截
  197. userinfo()
  198. .then(e => {})
  199. .catch(e => {
  200. console.log(e);
  201. });
  202. }
  203. this.loadData();
  204. },
  205. // #ifndef MP
  206. // 监听导航栏输入框点击事件
  207. onNavigationBarSearchInputClicked(e) {
  208. //跳转到搜索页面
  209. this.clickSearch();
  210. },
  211. //点击导航栏 buttons 时触发
  212. onNavigationBarButtonTap(e) {
  213. const index = e.index;
  214. if (index === 0) {
  215. this.$api.msg('点击了扫描');
  216. } else if (index === 1) {
  217. // #ifdef APP-PLUS
  218. const pages = getCurrentPages();
  219. const page = pages[pages.length - 1];
  220. const currentWebview = page.$getAppWebview();
  221. currentWebview.hideTitleNViewButtonRedDot({
  222. index
  223. });
  224. // #endif
  225. uni.navigateTo({
  226. url: '/pages/notice/notice'
  227. });
  228. }
  229. },
  230. // #endif
  231. methods: {
  232. // 點擊搜索框
  233. clickSearch() {
  234. uni.navigateTo({
  235. url: '/pages/product/search'
  236. });
  237. },
  238. // 监听图片加载完成
  239. onImageError(key, index) {
  240. this[key][index].image = '/static/error/errorImage.jpg';
  241. },
  242. // 请求载入数据
  243. async loadData() {
  244. loadIndexs({}).then(({ data }) => {
  245. let goods = data.info;
  246. this.carouselList = data.banner;
  247. this.swiperLength = this.carouselList.length;
  248. this.menusList = data.menus;
  249. this.goodsList = goods.firstList; //最新商品
  250. console.log(this.goodsList, '123456');
  251. this.bastList = goods.bastList; //精品推荐
  252. this.bastBanner = goods.bastBanner; //促销单品
  253. this.userServant = goods.platoonList; //服务商品
  254. });
  255. },
  256. //轮播图切换修改背景色
  257. swiperChange(e) {
  258. const index = e.detail.current;
  259. this.swiperCurrent = index;
  260. // this.titleNViewBackground = this.carouselList[index].background;
  261. },
  262. //详情页
  263. navToDetailPage(item) {
  264. uni.navigateTo({
  265. url: '/pages/product/product?id=' + item.id
  266. });
  267. },
  268. // 轮播图跳转
  269. bannerNavToUrl(item) {
  270. // #ifdef H5
  271. if (item.wap_url.indexOf('http') > 0) {
  272. window.location.href = item.wap_url;
  273. }
  274. // #endif
  275. //测试数据没有写id,用title代替
  276. uni.navigateTo({
  277. url: item.wap_url
  278. });
  279. }
  280. }
  281. };
  282. </script>
  283. <style lang="scss">
  284. page {
  285. background: #f5f5f5;
  286. }
  287. .m-t {
  288. margin-top: 16rpx;
  289. }
  290. /* 头部 轮播图 */
  291. .carousel-section {
  292. position: relative;
  293. padding-top: 10px;
  294. overflow: hidden;
  295. .bg {
  296. position: absolute;
  297. top: 0;
  298. left: 0;
  299. width: 750rpx;
  300. height: 346rpx;
  301. image {
  302. width: 100%;
  303. height: 100%;
  304. }
  305. }
  306. .titleNview-placing {
  307. height: var(--status-bar-height);
  308. padding-top: 44px;
  309. box-sizing: content-box;
  310. }
  311. .search {
  312. justify-content: flex-start;
  313. padding: 10rpx 24rpx 20rpx;
  314. align-items: center;
  315. .address {
  316. width: 32rpx;
  317. height: 38rpx;
  318. }
  319. .shop-name {
  320. position: relative;
  321. z-index: 10;
  322. width: 206rpx;
  323. font-size: 30rpx;
  324. font-family: PingFang SC;
  325. font-weight: 500;
  326. color: #ffffff;
  327. padding-left: 10rpx;
  328. }
  329. .input-box {
  330. position: relative;
  331. z-index: 999;
  332. width: 427rpx;
  333. height: 60rpx;
  334. background: rgba(39, 170, 116, 0.4);
  335. box-shadow: 0px 9rpx 21rpx 0px rgba(4, 114, 69, 0.22);
  336. border-radius: 30px;
  337. margin-left: 25rpx;
  338. .input-content {
  339. position: relative;
  340. z-index: 11;
  341. border-radius: 99rpx;
  342. flex-grow: 1;
  343. padding: 5rpx 30rpx;
  344. background: #a2e0c7;
  345. .iconsearch {
  346. font-size: 50rpx;
  347. color: #ffffff;
  348. }
  349. .input {
  350. margin-left: 19rpx;
  351. flex-grow: 1;
  352. color: #ffffff;
  353. input {
  354. font-size: 26rpx;
  355. color: #ffffff;
  356. }
  357. }
  358. }
  359. .input-button {
  360. padding-left: 20rpx;
  361. font-size: $font-base;
  362. height: 100%;
  363. }
  364. }
  365. }
  366. }
  367. .carousel {
  368. width: 100%;
  369. height: 300rpx;
  370. background-color: #fff;
  371. .carousel-item {
  372. width: 100%;
  373. height: 100%;
  374. padding: 0 28rpx;
  375. overflow: hidden;
  376. }
  377. image {
  378. width: 100%;
  379. height: 100%;
  380. border-radius: $border-radius-sm;
  381. }
  382. }
  383. .swiper-dots {
  384. display: flex;
  385. position: absolute;
  386. left: 60rpx;
  387. bottom: 15rpx;
  388. width: 72rpx;
  389. height: 36rpx;
  390. 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==);
  391. background-size: 100% 100%;
  392. .num {
  393. width: 36rpx;
  394. height: 36rpx;
  395. border-radius: 50px;
  396. font-size: 24rpx;
  397. color: #fff;
  398. text-align: center;
  399. line-height: 36rpx;
  400. }
  401. .sign {
  402. position: absolute;
  403. top: 0;
  404. left: 50%;
  405. line-height: 36rpx;
  406. font-size: 12rpx;
  407. color: #fff;
  408. transform: translateX(-50%);
  409. }
  410. }
  411. /* 分类 */
  412. .cate-section {
  413. display: flex;
  414. justify-content: space-around;
  415. align-items: center;
  416. flex-wrap: wrap;
  417. padding: 30rpx 22rpx;
  418. background: #fff;
  419. .cate-item {
  420. display: flex;
  421. flex-direction: column;
  422. align-items: center;
  423. font-size: 24rpx;
  424. font-family: PingFang SC;
  425. font-weight: bold;
  426. color: #333333;
  427. .none-font-color {
  428. color: $page-color-base;
  429. }
  430. .Uimg {
  431. border-radius: 999px;
  432. }
  433. }
  434. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  435. image {
  436. width: 88rpx;
  437. height: 88rpx;
  438. margin-bottom: 14rpx;
  439. border-radius: 50%;
  440. opacity: 0.7;
  441. }
  442. }
  443. .ad-1 {
  444. width: 100%;
  445. height: 210upx;
  446. padding: 10upx 0;
  447. background: #fff;
  448. image {
  449. width: 100%;
  450. height: 100%;
  451. }
  452. }
  453. /*公用边框样式*/
  454. %icon {
  455. margin-right: 10rpx;
  456. display: inline-block;
  457. padding: 2rpx 10rpx;
  458. border: 1rpx solid $color-yellow;
  459. color: $color-yellow;
  460. line-height: 1;
  461. font-size: $font-base;
  462. border-radius: 10rpx;
  463. }
  464. // 积分兑换,消费券
  465. .main-box {
  466. background-color: #ffffff;
  467. margin-top: 20rpx;
  468. padding: 22rpx 30rpx;
  469. .main-top {
  470. display: flex;
  471. justify-content: flex-start;
  472. align-items: center;
  473. .main-icon {
  474. width: 36rpx;
  475. height: 36rpx;
  476. }
  477. .main-title {
  478. margin-left: 8rpx;
  479. font-size: 32rpx;
  480. font-family: Source Han Sans CN;
  481. font-weight: 500;
  482. color: #333333;
  483. }
  484. .main-synopsis {
  485. margin-left: 16rpx;
  486. font-size: 20rpx;
  487. font-family: PingFang SC;
  488. font-weight: bold;
  489. color: #95a0b1;
  490. }
  491. }
  492. .main-content {
  493. width: 690rpx;
  494. background: #f4f4f4;
  495. border-radius: 12rpx;
  496. margin: 20rpx auto 0;
  497. padding-bottom: 10rpx;
  498. .xfq {
  499. background: linear-gradient(43deg, #ffc063, #ffa163) !important;
  500. }
  501. .content-top {
  502. width: 690rpx;
  503. background: linear-gradient(43deg, #73deb2, #52c696);
  504. border-radius: 12rpx 12rpx 0px 0px;
  505. padding: 24rpx 22rpx 68rpx 27rpx;
  506. .content-font {
  507. .content-title {
  508. font-size: 32rpx;
  509. font-family: Source Han Sans CN;
  510. font-weight: 500;
  511. color: #ffffff;
  512. }
  513. .content-synopsis {
  514. margin-top: 10rpx;
  515. font-size: 24rpx;
  516. font-family: Source Han Sans CN;
  517. font-weight: 400;
  518. color: #ffffff;
  519. }
  520. }
  521. .go {
  522. width: 30rpx;
  523. height: 35rpx;
  524. transform: rotate(180deg);
  525. -ms-transform: rotate(180deg); /* Internet Explorer */
  526. -moz-transform: rotate(180deg); /* Firefox */
  527. -webkit-transform: rotate(180deg); /* Safari 和 Chrome */
  528. -o-transform: rotate(180deg); /* Opera */
  529. }
  530. }
  531. }
  532. .commodity {
  533. width: 670rpx;
  534. background: #ffffff;
  535. border-radius: 8rpx;
  536. padding: 2rpx;
  537. margin: -50rpx auto 0;
  538. flex-wrap: wrap;
  539. .commodity-item {
  540. width: 33%;
  541. padding: 14rpx 30rpx 22rpx;
  542. .commodity-image {
  543. width: 160rpx;
  544. height: 160rpx;
  545. }
  546. .commodity-title {
  547. margin-top: 14rpx;
  548. width: 162rpx;
  549. font-size: 24rpx;
  550. font-family: PingFang SC;
  551. font-weight: bold;
  552. color: #3f3f3f;
  553. }
  554. .price {
  555. font-size: 24rpx;
  556. font-family: PingFang SC;
  557. font-weight: 500;
  558. text-decoration: line-through;
  559. color: #999999;
  560. }
  561. .vip-price {
  562. font-size: 30rpx;
  563. font-family: PingFang SC;
  564. font-weight: bold;
  565. color: #ff6f0f;
  566. image {
  567. position: relative;
  568. z-index: 10;
  569. width: 26rpx;
  570. height: 26rpx;
  571. }
  572. text {
  573. display: inline-block;
  574. margin-left: 6rpx;
  575. }
  576. }
  577. }
  578. }
  579. }
  580. .bastgood-box {
  581. margin-top: 20rpx;
  582. background-color: #FFFFFF;
  583. padding-top: 40rpx;
  584. .bast-bg {
  585. width: 376rpx;
  586. height: 34rpx;
  587. margin: 0 auto;
  588. image{
  589. width: 100%;
  590. height: 100%;
  591. }
  592. }
  593. .guess-item {
  594. display: flex;
  595. width: 710rpx;
  596. height: 290rpx;
  597. background: #ffffff;
  598. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  599. border-radius: 10rpx;
  600. padding: 15rpx;
  601. padding-bottom: 150rpx;
  602. margin: 20rpx auto 0;
  603. position: relative;
  604. image {
  605. width: 260rpx;
  606. height: 260rpx;
  607. border-radius: 10rpx;
  608. }
  609. .guess-box {
  610. padding: 12rpx 0 0 24rpx;
  611. width: 436rpx;
  612. .title {
  613. font-size: 32rpx;
  614. padding-left: 4rpx;
  615. font-family: PingFang SC;
  616. font-weight: bold;
  617. color: #333333;
  618. width: 368rpx;
  619. line-height: 36rpx;
  620. }
  621. .price-box {
  622. margin-top: 76rpx;
  623. justify-content: flex-start;
  624. .yuanprice {
  625. font-size: 26rpx;
  626. font-family: PingFang SC;
  627. font-weight: 500;
  628. text-decoration: line-through;
  629. color: #999999;
  630. padding-right: 6rpx;
  631. }
  632. image {
  633. width: 16rpx;
  634. height: 18rpx;
  635. }
  636. .jiang {
  637. padding-left: 2rpx;
  638. font-size: 24rpx;
  639. font-family: PingFang SC;
  640. font-weight: bold;
  641. color: #b59467;
  642. }
  643. }
  644. .price {
  645. font-size: 36rpx;
  646. font-family: PingFang SC;
  647. font-weight: bold;
  648. color: #ff1135;
  649. }
  650. .btn {
  651. width: 138rpx;
  652. height: 52rpx;
  653. background: #52C696;
  654. border-radius: 26rpx;
  655. font-size: 26rpx;
  656. font-family: PingFang SC;
  657. font-weight: 500;
  658. color: #FFFFFF;
  659. line-height: 52rpx;
  660. text-align: center;
  661. position: absolute;
  662. bottom: 25rpx;
  663. right: 25rpx;
  664. }
  665. }
  666. }
  667. }
  668. </style>