index.vue 18 KB

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