index.vue 18 KB

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