index.vue 20 KB

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