index.vue 18 KB

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