index.vue 18 KB

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