index.vue 19 KB

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