index.vue 20 KB

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