index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. <template>
  2. <view class="container">
  3. <!-- <image src="" mode=""></image> -->
  4. <!-- 顶部logo and 搜索 start-->
  5. <view class="index-top-wrap">
  6. <image src="../../static/index/index-top.png" mode="widthFix" class="index-top"></image>
  7. <view class="status_bar fud"></view>
  8. <view class="top-search flex fud">
  9. <view class="search-box flex" @click="clickSearch()">
  10. <image class="search" src="../../static/icon/search-h.png" mode=""></image>
  11. <view class="search-font">输入关键词搜索</view>
  12. </view>
  13. </view>
  14. <!-- 顶部logo and 搜索 end-->
  15. <!-- <view class="jg fud" style="background-color: #fff;"></view> -->
  16. <!-- 轮播图 start -->
  17. <swiper class="top-swiper fud" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  18. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  19. @click="bannerNavToUrl(item)">
  20. <image :src="item.pic" />
  21. </swiper-item>
  22. </swiper>
  23. <!-- 轮播图 end -->
  24. </view>
  25. <!-- 分类 start -->
  26. <view class="cate-section flex">
  27. <view class="cate-item flex" @click="navto('/pages/category/category')">
  28. <view class="img-wrapper flex">
  29. <image src="../../static/index/in1.png" mode=""></image>
  30. </view>
  31. <view class="item-title">全部商品</view>
  32. </view>
  33. <view class="cate-item flex" @click="navto('/pages/index/artDetail?id=1')">
  34. <view class="img-wrapper flex">
  35. <image src="../../static/index/in2.png" mode=""></image>
  36. </view>
  37. <view class="item-title">公司介绍</view>
  38. </view>
  39. <view class="cate-item flex" @click="openKf">
  40. <view class="img-wrapper flex">
  41. <image src="../../static/index/in3.png" mode=""></image>
  42. </view>
  43. <view class="item-title">联系客服</view>
  44. </view>
  45. <view class="cate-item flex" @click="navto('/pages/user/shareQrCode',1)">
  46. <view class="img-wrapper flex">
  47. <image src="../../static/index/in4.png" mode=""></image>
  48. </view>
  49. <view class="item-title">邀请好友</view>
  50. </view>
  51. <view class="cate-item flex" @click="navto('/pages/user/shareQrCode',1)">
  52. <view class="img-wrapper flex">
  53. <image src="../../static/index/in5.png" mode=""></image>
  54. </view>
  55. <view class="item-title">活动专区</view>
  56. </view>
  57. </view>
  58. <!-- 分类 ed -->
  59. <view class="jg">
  60. </view>
  61. <view class="hdlist" @click="navTo('/pages/index/actionList')">
  62. <image src="../../static/index/ryc.png" mode="widthFix"></image>
  63. <image src="../../static/index/xny.png" mode="widthFix"></image>
  64. </view>
  65. <!-- 商品列表 start -->
  66. <view class="product-box">
  67. <view class="product-tit flex">
  68. <view class="hx">
  69. </view>
  70. <view class="tit">
  71. 热销推荐
  72. </view>
  73. <view class="hx">
  74. </view>
  75. </view>
  76. </view>
  77. <view class="good-list">
  78. <view class="good" v-for="item in goodList" @click="navTo('/pages/product/product?id=' + item.id)">
  79. <image :src="item.image" mode="" class="good-image"></image>
  80. <view class="good-name ">
  81. <view class="clamp">
  82. {{item.store_name}}
  83. </view>
  84. </view>
  85. <view class="good-key">
  86. 鸿运开来 为成功喝彩
  87. </view>
  88. <view class="good-price">
  89. <view class="price">
  90. ¥{{item.price}}
  91. </view>
  92. <view class="xl">
  93. 销量:{{item.sales}}
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- 商品列表 ed-->
  99. <uni-popup ref="popupkf" type="center">
  100. <view class="popup-box">
  101. <view class="img">
  102. <image src="../../static/img/img009.png" mode=""></image>
  103. </view>
  104. <view class="mian">
  105. <view class="delivery">
  106. <view class="title">已经为您定制专属客服</view>
  107. <image src="../../static/img/img010.png" mode=""></image>
  108. </view>
  109. <view class="nocancel">客服VX:{{ text }}</view>
  110. <view class="comfirm-box">
  111. <view class="cancel" @click="cancel">取消</view>
  112. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  113. </view>
  114. </view>
  115. </view>
  116. </uni-popup>
  117. </view>
  118. </template>
  119. <script>
  120. import {
  121. loadIndexs
  122. } from '@/api/index.js';
  123. import {
  124. getUserInfo,
  125. spread
  126. } from '@/api/user.js';
  127. import {
  128. getBargainList,
  129. getProducts,
  130. goodsDetail,
  131. poster
  132. } from '@/api/product.js';
  133. import {
  134. saveUrl,
  135. interceptor
  136. } from '@/utils/loginUtils';
  137. import {
  138. mapState,
  139. mapMutations
  140. } from 'vuex';
  141. // #ifdef H5
  142. import {
  143. weixindata,
  144. shareLoad
  145. } from '@/utils/wxAuthorized';
  146. // #endif
  147. export default {
  148. data() {
  149. return {
  150. text: '', //客服微信
  151. page: 1,
  152. limitt: 20,
  153. loadingType: 'more',
  154. current: 0,
  155. shareShow: false, //分享海报
  156. pageProportion: 0, //保存页面基于750宽度的比例
  157. swiperHeight: 0,
  158. checkid: 0,
  159. titleNViewBackground: '',
  160. swiperCurrent: 0,
  161. swiperLength: 0,
  162. carouselList: [], //轮播列表
  163. page: 1,
  164. limit: 5,
  165. firstList: [],
  166. goodList: [], //商品列表
  167. shopList: [],
  168. period: 1,
  169. shareImage: '',
  170. };
  171. },
  172. computed: {
  173. ...mapState('user', ['hasLogin', 'userInfo'])
  174. },
  175. onShareAppMessage(options) {
  176. // 设置菜单中的转发按钮触发转发事件时的转发内容
  177. let pages = getCurrentPages(); //获取加载的页面
  178. let currentPage = pages[pages.length - 1]; //获取当前页面的对象
  179. let url = currentPage.route; //当前页面url
  180. let item = currentPage.options; //如果要获取url中所带的参数可以查看options
  181. let shareObj = {}
  182. if (this.userInfo.uid) {
  183. shareObj = {
  184. title: this.userInfo.nickname + '邀请您加入顺肠清', // 默认是小程序的名称(可以写slogan等)
  185. path: url + '?scene=' + this.userInfo.uid, // 默认是当前页面,必须是以‘/’开头的完整路径
  186. imageUrl: '',
  187. success: function(res) {
  188. // 转发成功之后的回调
  189. if (res.errMsg == 'shareAppMessage:ok') {}
  190. },
  191. fail: function() {
  192. // 转发失败之后的回调
  193. if (res.errMsg == 'shareAppMessage:fail cancel') {
  194. // 用户取消转发
  195. } else if (res.errMsg == 'shareAppMessage:fail') {
  196. // 转发失败,其中 detail message 为详细失败信息
  197. }
  198. }
  199. };
  200. } else {
  201. shareObj = {
  202. title: '顺肠清', // 默认是小程序的名称(可以写slogan等)
  203. path: url, // 默认是当前页面,必须是以‘/’开头的完整路径
  204. imageUrl: '',
  205. success: function(res) {
  206. // 转发成功之后的回调
  207. if (res.errMsg == 'shareAppMessage:ok') {}
  208. },
  209. fail: function() {
  210. // 转发失败之后的回调
  211. if (res.errMsg == 'shareAppMessage:fail cancel') {
  212. // 用户取消转发
  213. } else if (res.errMsg == 'shareAppMessage:fail') {
  214. // 转发失败,其中 detail message 为详细失败信息
  215. }
  216. }
  217. };
  218. }
  219. return shareObj;
  220. },
  221. onReachBottom() {
  222. console.log('到底')
  223. this.getGoodList()
  224. },
  225. onLoad: function(option) {
  226. // #ifdef MP
  227. if (option.scene) {
  228. // 存储小程序邀请人
  229. uni.setStorage({
  230. key: 'spread_code',
  231. data: option.scene
  232. });
  233. }
  234. // #endif
  235. },
  236. onShow: function() {
  237. this.getGoodList()
  238. this.loadData();
  239. },
  240. methods: {
  241. getGoodList() {
  242. let obj = this
  243. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  244. return
  245. }
  246. obj.loadingType = 'loading'
  247. getProducts({
  248. page: 1,
  249. limit: 50,
  250. }).then(res => {
  251. obj.goodList = obj.goodList.concat(res.data)
  252. if (obj.limit == res.data.length) {
  253. obj.loadingType = 'more'
  254. } else {
  255. obj.loadingType = 'noMore'
  256. }
  257. })
  258. },
  259. navto(url, type = 0) {
  260. if (type == 1) {
  261. if (!this.hasLogin) {
  262. // 保存地址
  263. saveUrl();
  264. // 登录拦截
  265. interceptor();
  266. } else {
  267. uni.navigateTo({
  268. url,
  269. fail() {
  270. uni.switchTab({
  271. url
  272. })
  273. }
  274. })
  275. }
  276. } else {
  277. uni.navigateTo({
  278. url,
  279. fail() {
  280. uni.switchTab({
  281. url
  282. })
  283. }
  284. })
  285. }
  286. },
  287. navTo(url) {
  288. if (url == '') {
  289. this.$api.msg('暂未开通,敬请期待');
  290. } else {
  291. this.navto(url)
  292. }
  293. },
  294. // 點擊搜索框
  295. clickSearch() {
  296. uni.navigateTo({
  297. url: '/pages/product/search'
  298. });
  299. },
  300. // 监听图片加载完成
  301. onImageError(key, index) {
  302. this[key][index].image = '/static/error/errorImage.jpg';
  303. },
  304. // 请求载入数据
  305. async loadData() {
  306. loadIndexs({})
  307. .then(({
  308. data
  309. }) => {
  310. let goods = data.info;
  311. console.log(goods, '商品信息');
  312. this.carouselList = data.banner;
  313. this.swiperLength = this.carouselList.length;
  314. this.bastList = data.giftInfo; //会员礼包
  315. data.info.firstList.forEach(e => {
  316. e.isVip = e.store_type ? "3" : "0"
  317. })
  318. this.firstList = data.info.firstList //首页商品
  319. uni.stopPullDownRefresh();
  320. })
  321. .catch(e => {
  322. uni.stopPullDownRefresh();
  323. });
  324. },
  325. //轮播图切换修改背景色
  326. swiperChange(e) {
  327. const index = e.detail.current;
  328. this.swiperCurrent = index;
  329. this.titleNViewBackground = this.carouselList[index].background;
  330. },
  331. // 轮播图跳转
  332. bannerNavToUrl(item) {
  333. // #ifdef H5
  334. console.log(item.wap_url.indexOf('http'), 'banner');
  335. if (item.wap_url.indexOf('http') >= 0) {
  336. window.location.href = item.wap_url;
  337. }
  338. // #endif
  339. //测试数据没有写id,用title代替
  340. uni.navigateTo({
  341. url: item.wap_url
  342. });
  343. },
  344. comfirm(text) {
  345. console.log(text);
  346. const result = this.uniCopy(text);
  347. if (result === false) {
  348. uni.showToast({
  349. title: '不支持'
  350. });
  351. } else {
  352. uni.showToast({
  353. title: '复制成功',
  354. icon: 'none'
  355. });
  356. }
  357. this.$refs.popupkf.close();
  358. },
  359. uniCopy(content) {
  360. /**
  361. * 小程序端 和 app端的复制逻辑
  362. */
  363. //#ifndef H5
  364. uni.setClipboardData({
  365. data: content,
  366. success: function() {
  367. console.log('success');
  368. return true;
  369. }
  370. });
  371. //#endif
  372. /**
  373. * H5端的复制逻辑
  374. */
  375. // #ifdef H5
  376. if (!document.queryCommandSupported('copy')) {
  377. //为了兼容有些浏览器 queryCommandSupported 的判断
  378. // 不支持
  379. return false;
  380. }
  381. let textarea = document.createElement('textarea');
  382. textarea.value = content;
  383. textarea.readOnly = 'readOnly';
  384. document.body.appendChild(textarea);
  385. textarea.select(); // 选择对象
  386. textarea.setSelectionRange(0, content.length); //核心
  387. let result = document.execCommand('copy'); // 执行浏览器复制命令
  388. textarea.remove();
  389. return result;
  390. // #endif
  391. },
  392. // 打开客服
  393. openKf() {
  394. this.$refs.popupkf.open();
  395. },
  396. // 关闭客服
  397. cancel() {
  398. this.$refs.popupkf.close();
  399. },
  400. }
  401. };
  402. </script>
  403. <style lang="scss">
  404. page {
  405. background: #ffff;
  406. min-height: 100%;
  407. height: auto;
  408. }
  409. // 顶部搜索
  410. .top-search {
  411. height: 80rpx;
  412. padding: 0 20rpx;
  413. margin-bottom: 20rpx;
  414. // background-color: #fff;
  415. .top-logo {
  416. width: 50rpx;
  417. // height: 50rpx;
  418. margin-right: 10rpx;
  419. image {
  420. width: 48rpx;
  421. }
  422. }
  423. .search-box {
  424. justify-content: center;
  425. width: 698rpx;
  426. height: 60rpx;
  427. background: #EEEEEE;
  428. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  429. border-radius: 30rpx;
  430. .search {
  431. width: 34rpx;
  432. height: 34rpx;
  433. }
  434. .search-font {
  435. margin-left: 14rpx;
  436. font-size: 28rpx;
  437. font-family: PingFang SC;
  438. font-weight: 500;
  439. color: #CBCBCB;
  440. }
  441. }
  442. }
  443. // 顶部轮播图
  444. .top-swiper {
  445. width: 690rpx;
  446. height: 365rpx;
  447. // margin: 20rpx 0 0;
  448. border-radius: 20rpx;
  449. margin: auto;
  450. image {
  451. width: 690rpx;
  452. height: 365rpx;
  453. border-radius: 20rpx;
  454. }
  455. }
  456. .swiper-btm {
  457. height: 60rpx;
  458. width: 750rpx;
  459. background-color: #fff;
  460. margin-bottom: 20rpx;
  461. font-size: 21rpx;
  462. font-weight: 500;
  463. color: #333333;
  464. .btm-item {
  465. flex-grow: 1;
  466. justify-content: center;
  467. image {
  468. width: 25rpx;
  469. height: 25rpx;
  470. margin-right: 14rpx;
  471. }
  472. }
  473. }
  474. .jg {
  475. height: 20rpx;
  476. background: #fff;
  477. }
  478. // 分类
  479. .cate-section {
  480. justify-content: space-around;
  481. background-color: #fff;
  482. padding: 0rpx 0 30rpx;
  483. margin-top: 20rpx;
  484. .cate-item {
  485. flex-grow: 0;
  486. width: 20%;
  487. flex-direction: column;
  488. text-align: center;
  489. align-items: center;
  490. justify-content: center;
  491. .img-wrapper {
  492. width: 90rpx;
  493. height: 90rpx;
  494. border-radius: 20rpx;
  495. position: relative;
  496. image {
  497. width: 90rpx;
  498. height: 90rpx;
  499. position: absolute;
  500. left: 50%;
  501. top: 50%;
  502. transform: translate(-50%, -50%);
  503. }
  504. }
  505. .item-title {
  506. margin-top: 15rpx;
  507. font-size: 26rpx;
  508. font-weight: 500;
  509. color: #6B4216;
  510. }
  511. }
  512. }
  513. .product-box {
  514. margin-top: 20rpx;
  515. background: #ffffff;
  516. padding: 26rpx 0 20rpx;
  517. .product-tit {
  518. justify-content: center;
  519. .hx {
  520. width: 120rpx;
  521. height: 1rpx;
  522. background: #4A2723;
  523. }
  524. .tit {
  525. margin: 0 70rpx;
  526. font-size: 30rpx;
  527. font-weight: 500;
  528. color: #4A2723;
  529. }
  530. }
  531. }
  532. .hotgoods {
  533. margin-top: 38rpx;
  534. width: 100%;
  535. display: flex;
  536. flex-wrap: wrap;
  537. padding: 0 20rpx 30rpx;
  538. justify-content: space-between;
  539. .hotgoods-item {
  540. width: 345rpx;
  541. background-color: #ffffff;
  542. border-radius: 12rpx;
  543. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  544. margin-bottom: 15rpx;
  545. .image-wrapper {
  546. width: 345rpx;
  547. height: 345rpx;
  548. border-radius: 3px;
  549. overflow: hidden;
  550. position: relative;
  551. .image-bg {
  552. position: absolute;
  553. top: 0;
  554. left: 0;
  555. right: 0;
  556. bottom: 0;
  557. width: 100%;
  558. height: 100%;
  559. opacity: 1;
  560. border-radius: 12rpx 12rpx 0 0;
  561. z-index: 2;
  562. }
  563. .image {
  564. width: 100%;
  565. height: 100%;
  566. opacity: 1;
  567. border-radius: 12rpx 12rpx 0 0;
  568. }
  569. }
  570. .title {
  571. margin-top: 24rpx;
  572. padding: 0 20rpx;
  573. font-size: 28rpx;
  574. font-family: PingFang SC;
  575. font-weight: 500;
  576. color: #333333;
  577. }
  578. .hot-price {
  579. display: flex;
  580. justify-content: flex-start;
  581. align-items: center;
  582. // padding: 14rpx 0 30rpx;
  583. .hotPrice-box {
  584. padding: 2rpx 6rpx;
  585. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  586. border-radius: 5rpx;
  587. text-align: center;
  588. line-height: 28rpx;
  589. font-size: 20rpx;
  590. font-family: Source Han Sans CN;
  591. font-weight: 400;
  592. color: #ffffff;
  593. }
  594. .price {
  595. margin-left: 10rpx;
  596. font-size: 40rpx;
  597. color: #ff0000;
  598. font-weight: 500;
  599. .jf {
  600. font-size: 20rpx;
  601. }
  602. }
  603. .yuanPrice {
  604. margin-left: 10rpx;
  605. font-size: 20rpx;
  606. font-family: PingFang SC;
  607. font-weight: 500;
  608. text-decoration: line-through;
  609. color: #999999;
  610. }
  611. .cart-icon {
  612. image {
  613. width: 44rpx;
  614. height: 44rpx;
  615. }
  616. }
  617. }
  618. }
  619. }
  620. .popup-box {
  621. width: 522rpx;
  622. height: 605rpx;
  623. background-color: #ffffff;
  624. border-radius: 20rpx;
  625. position: relative;
  626. .product-tit {
  627. justify-content: center;
  628. .hx {
  629. width: 120rpx;
  630. height: 1rpx;
  631. background: #989898;
  632. }
  633. .tit {
  634. margin: 0 70rpx;
  635. font-size: 30rpx;
  636. font-weight: 500;
  637. color: #4A2723;
  638. }
  639. }
  640. .img {
  641. position: relative;
  642. top: -56rpx;
  643. left: 0;
  644. width: 522rpx;
  645. height: 132rpx;
  646. display: flex;
  647. justify-content: center;
  648. image {
  649. border-radius: 20rpx 20rpx 0 0;
  650. width: 450rpx;
  651. height: 132rpx;
  652. }
  653. }
  654. .mian {
  655. margin-top: -44rpx;
  656. display: flex;
  657. flex-direction: column;
  658. align-items: center;
  659. // padding: 32rpx 32rpx;
  660. background-color: #ffffff;
  661. border-radius: 0 0 20rpx 20rpx;
  662. text-align: center;
  663. .delivery {
  664. font-size: 40rpx;
  665. color: #333333;
  666. display: flex;
  667. align-items: center;
  668. flex-direction: column;
  669. image {
  670. margin-top: 48rpx;
  671. width: 172rpx;
  672. height: 160rpx;
  673. }
  674. }
  675. .nocancel {
  676. font-size: 32rpx;
  677. color: #333333;
  678. margin-top: 14rpx;
  679. }
  680. .comfirm-box {
  681. margin-top: 52rpx;
  682. display: flex;
  683. // margin-bottom: 32rpx;
  684. // justify-content: space-around;
  685. .cancel {
  686. display: flex;
  687. align-items: center;
  688. justify-content: center;
  689. width: 197rpx;
  690. height: 74rpx;
  691. border: 1px solid #dcc786;
  692. border-radius: 38rpx;
  693. font-size: 32rpx;
  694. color: #605128;
  695. }
  696. .comfirm {
  697. margin-left: 32rpx;
  698. display: flex;
  699. align-items: center;
  700. justify-content: center;
  701. width: 197rpx;
  702. height: 74rpx;
  703. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  704. border-radius: 38px;
  705. font-size: 32rpx;
  706. color: #605128;
  707. }
  708. }
  709. }
  710. }
  711. .good-list {
  712. display: flex;
  713. justify-content: space-between;
  714. flex-wrap: wrap;
  715. padding: 20rpx 28rpx;
  716. .good {
  717. width: 336rpx;
  718. height: 482rpx;
  719. background: #FFFFFF;
  720. box-shadow: 0px 0px 6rpx 0px rgba(0, 0, 0, 0.1);
  721. border-radius: 14rpx;
  722. margin-bottom: 20rpx;
  723. position: relative;
  724. .good-image {
  725. width: 336rpx;
  726. height: 336rpx;
  727. background-color: #eee;
  728. border-radius: 14rpx 14rpx 0 0;
  729. }
  730. .good-name {
  731. font-size: 28rpx;
  732. font-weight: bold;
  733. color: #333333;
  734. padding: 0 20rpx;
  735. }
  736. .good-key {
  737. font-size: 22rpx;
  738. font-weight: 500;
  739. color: #999999;
  740. padding-left: 20rpx
  741. }
  742. .good-price {
  743. display: flex;
  744. width: 336rpx;
  745. justify-content: space-between;
  746. font-size: 28rpx;
  747. font-weight: bold;
  748. color: #FF1A1A;
  749. position: absolute;
  750. bottom: 20rpx;
  751. padding: 0 20rpx;
  752. .xl{
  753. font-size: 20rpx;
  754. font-weight: bold;
  755. color: #999999;
  756. }
  757. }
  758. }
  759. }
  760. // .good-list {
  761. // width: 750rpx;
  762. // background:#fff;
  763. // padding: 30rpx 0;
  764. // .good {
  765. // width: 690rpx;
  766. // height: 276rpx;
  767. // background: #FFFFFF;
  768. // box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  769. // border-radius: 10rpx;
  770. // margin: auto;
  771. // padding: 20rpx 15rpx;
  772. // margin-bottom: 20rpx;
  773. // &:last-of-type {
  774. // margin-bottom: 0rpx;
  775. // }
  776. // .good-img {
  777. // flex-shrink: 0;
  778. // width: 236rpx;
  779. // height: 236rpx;
  780. // border-radius: 10rpx;
  781. // margin-right: 22rpx;
  782. // image {
  783. // width: 236rpx;
  784. // height: 236rpx;
  785. // border-radius: 10rpx;
  786. // }
  787. // }
  788. // .good-info {
  789. // flex-grow: 1;
  790. // height: 100%;
  791. // flex-direction: column;
  792. // justify-content: space-between;
  793. // align-items: flex-start;
  794. // .good-name {
  795. // font-size: 32rpx;
  796. // font-weight: bold;
  797. // padding-top: 10rpx;
  798. // color: #333333;
  799. // }
  800. // .good-price {
  801. // width: 100%;
  802. // image {
  803. // width: 14rpx;
  804. // margin: 0 6rpx 0 10rpx;
  805. // }
  806. // .old-price {
  807. // .old-left {
  808. // font-size: 26rpx;
  809. // font-weight: 500;
  810. // text-decoration: line-through;
  811. // color: #999999;
  812. // }
  813. // .old-right {
  814. // font-size: 24rpx;
  815. // font-weight: bold;
  816. // color: #B59467;
  817. // }
  818. // }
  819. // .new-price {
  820. // width: 100%;
  821. // font-size: 36rpx;
  822. // font-weight: bold;
  823. // color: #FF4C4C;
  824. // justify-content: space-between;
  825. // .good-tip {
  826. // width: 137rpx;
  827. // height: 52rpx;
  828. // background: #ff4a48;
  829. // border-radius: 26rpx;
  830. // position: relative;
  831. // font-size: 26rpx;
  832. // font-weight: 500;
  833. // color: #FFFFFF;
  834. // line-height: 52rpx;
  835. // text-align: center;
  836. // }
  837. // }
  838. // }
  839. // }
  840. // }
  841. // }
  842. .index-top-wrap {
  843. position: relative;
  844. .index-top {
  845. width: 750rpx;
  846. position: absolute;
  847. }
  848. .fud {
  849. position: relative;
  850. }
  851. }
  852. .hdlist {
  853. width: 100%;
  854. image {
  855. display: block;
  856. width: 705rpx;
  857. margin: 25rpx auto;
  858. }
  859. }
  860. </style>