index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. <template>
  2. <view class="container">
  3. <!-- 顶部logo and 搜索 start-->
  4. <view class="index-top-wrap">
  5. <view class="index-top-image index-top"></view>
  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="navto('/pages/public/artList')">
  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: '', //客服微信
  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. that.text = data.kf;
  249. console.log(that.carouselList)
  250. uni.stopPullDownRefresh();
  251. })
  252. .catch(e => {
  253. uni.stopPullDownRefresh();
  254. });
  255. },
  256. // 轮播图跳转
  257. bannerNavToUrl(item) {
  258. // #ifdef H5
  259. console.log(item.wap_url.indexOf('http'), 'banner');
  260. if (item.wap_url.indexOf('http') >= 0) {
  261. window.location.href = item.wap_url;
  262. }
  263. // #endif
  264. //测试数据没有写id,用title代替
  265. uni.navigateTo({
  266. url: item.wap_url
  267. });
  268. },
  269. comfirm(text) {
  270. console.log(text);
  271. const result = this.uniCopy(text);
  272. if (result === false) {
  273. uni.showToast({
  274. title: '不支持'
  275. });
  276. } else {
  277. uni.showToast({
  278. title: '复制成功',
  279. icon: 'none'
  280. });
  281. }
  282. this.$refs.popupkf.close();
  283. },
  284. uniCopy(content) {
  285. /**
  286. * 小程序端 和 app端的复制逻辑
  287. */
  288. //#ifndef H5
  289. uni.setClipboardData({
  290. data: content,
  291. success: function() {
  292. console.log('success');
  293. return true;
  294. }
  295. });
  296. //#endif
  297. /**
  298. * H5端的复制逻辑
  299. */
  300. // #ifdef H5
  301. if (!document.queryCommandSupported('copy')) {
  302. //为了兼容有些浏览器 queryCommandSupported 的判断
  303. // 不支持
  304. return false;
  305. }
  306. let textarea = document.createElement('textarea');
  307. textarea.value = content;
  308. textarea.readOnly = 'readOnly';
  309. document.body.appendChild(textarea);
  310. textarea.select(); // 选择对象
  311. textarea.setSelectionRange(0, content.length); //核心
  312. let result = document.execCommand('copy'); // 执行浏览器复制命令
  313. textarea.remove();
  314. return result;
  315. // #endif
  316. },
  317. // 打开客服
  318. openKf() {
  319. this.$refs.popupkf.open();
  320. },
  321. // 关闭客服
  322. cancel() {
  323. this.$refs.popupkf.close();
  324. },
  325. }
  326. };
  327. </script>
  328. <style lang="scss">
  329. page {
  330. background: #ffff;
  331. min-height: 100%;
  332. height: auto;
  333. }
  334. // 顶部搜索
  335. .top-search {
  336. height: 80rpx;
  337. padding: 0 20rpx;
  338. margin-bottom: 20rpx;
  339. // background-color: #fff;
  340. .top-logo {
  341. width: 50rpx;
  342. // height: 50rpx;
  343. margin-right: 10rpx;
  344. image {
  345. width: 48rpx;
  346. }
  347. }
  348. .search-box {
  349. justify-content: center;
  350. width: 100%;
  351. height: 60rpx;
  352. background: #EEEEEE;
  353. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  354. border-radius: 30rpx;
  355. .search {
  356. width: 34rpx;
  357. height: 34rpx;
  358. }
  359. .search-font {
  360. margin-left: 14rpx;
  361. font-size: 28rpx;
  362. font-family: PingFang SC;
  363. font-weight: 500;
  364. color: #CBCBCB;
  365. }
  366. }
  367. }
  368. // 顶部轮播图
  369. .top-swiper {
  370. width: 690rpx;
  371. height: 365rpx;
  372. // margin: 20rpx 0 0;
  373. border-radius: 20rpx;
  374. margin: auto;
  375. image {
  376. width: 690rpx;
  377. height: 365rpx;
  378. border-radius: 20rpx;
  379. }
  380. }
  381. .swiper-btm {
  382. height: 60rpx;
  383. width: 750rpx;
  384. background-color: #fff;
  385. margin-bottom: 20rpx;
  386. font-size: 21rpx;
  387. font-weight: 500;
  388. color: #333333;
  389. .btm-item {
  390. flex-grow: 1;
  391. justify-content: center;
  392. image {
  393. width: 25rpx;
  394. height: 25rpx;
  395. margin-right: 14rpx;
  396. }
  397. }
  398. }
  399. // 分类
  400. .cate-section {
  401. justify-content: space-around;
  402. background-color: #fff;
  403. padding: 0rpx 0 10rpx;
  404. margin-top: 20rpx;
  405. flex-wrap: wrap;
  406. .cate-item {
  407. flex-grow: 0;
  408. width: 20%;
  409. flex-direction: column;
  410. text-align: center;
  411. align-items: center;
  412. justify-content: center;
  413. padding-bottom: 20rpx;
  414. .img-wrapper {
  415. width: 140rpx;
  416. height: 140rpx;
  417. border-radius: 20rpx;
  418. position: relative;
  419. image {
  420. width: 140rpx;
  421. height: 140rpx;
  422. position: absolute;
  423. left: 50%;
  424. top: 50%;
  425. transform: translate(-50%, -50%);
  426. }
  427. }
  428. .item-title {
  429. margin-top: 15rpx;
  430. font-size: 26rpx;
  431. font-weight: 500;
  432. color: #6B4216;
  433. }
  434. }
  435. }
  436. .product-box {
  437. background: #ffffff;
  438. padding: 30rpx;
  439. padding-top: 10rpx;
  440. .product-tit {
  441. justify-content: center;
  442. .left-icon {
  443. width: 8rpx;
  444. height: 38rpx;
  445. background: linear-gradient(180deg, #3C82E6, #5395F5);
  446. border-radius: 3px;
  447. }
  448. .tit {
  449. padding-left: 15rpx;
  450. font-size: 36rpx;
  451. font-weight: bold;
  452. color: #202739;
  453. }
  454. .bottom-text {
  455. padding-left: 15rpx;
  456. align-self: flex-end;
  457. font-size: 20rpx;
  458. color: #95A0B1;
  459. }
  460. }
  461. }
  462. .hotgoods {
  463. margin-top: 38rpx;
  464. width: 100%;
  465. display: flex;
  466. flex-wrap: wrap;
  467. padding: 0 20rpx 30rpx;
  468. justify-content: space-between;
  469. .hotgoods-item {
  470. width: 345rpx;
  471. background-color: #ffffff;
  472. border-radius: 12rpx;
  473. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  474. margin-bottom: 15rpx;
  475. .image-wrapper {
  476. width: 345rpx;
  477. height: 345rpx;
  478. border-radius: 3px;
  479. overflow: hidden;
  480. position: relative;
  481. .image-bg {
  482. position: absolute;
  483. top: 0;
  484. left: 0;
  485. right: 0;
  486. bottom: 0;
  487. width: 100%;
  488. height: 100%;
  489. opacity: 1;
  490. border-radius: 12rpx 12rpx 0 0;
  491. z-index: 2;
  492. }
  493. .image {
  494. width: 100%;
  495. height: 100%;
  496. opacity: 1;
  497. border-radius: 12rpx 12rpx 0 0;
  498. }
  499. }
  500. .title {
  501. margin-top: 24rpx;
  502. padding: 0 20rpx;
  503. font-size: 28rpx;
  504. font-family: PingFang SC;
  505. font-weight: 500;
  506. color: #333333;
  507. }
  508. .hot-price {
  509. display: flex;
  510. justify-content: flex-start;
  511. align-items: center;
  512. // padding: 14rpx 0 30rpx;
  513. .hotPrice-box {
  514. padding: 2rpx 6rpx;
  515. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  516. border-radius: 5rpx;
  517. text-align: center;
  518. line-height: 28rpx;
  519. font-size: 20rpx;
  520. font-family: Source Han Sans CN;
  521. font-weight: 400;
  522. color: #ffffff;
  523. }
  524. .price {
  525. margin-left: 10rpx;
  526. font-size: 40rpx;
  527. color: #ff0000;
  528. font-weight: 500;
  529. .jf {
  530. font-size: 20rpx;
  531. }
  532. }
  533. .yuanPrice {
  534. margin-left: 10rpx;
  535. font-size: 20rpx;
  536. font-family: PingFang SC;
  537. font-weight: 500;
  538. text-decoration: line-through;
  539. color: #999999;
  540. }
  541. .cart-icon {
  542. image {
  543. width: 44rpx;
  544. height: 44rpx;
  545. }
  546. }
  547. }
  548. }
  549. }
  550. .popup-box {
  551. width: 522rpx;
  552. height: 605rpx;
  553. background-color: #ffffff;
  554. border-radius: 20rpx;
  555. position: relative;
  556. .product-tit {
  557. justify-content: center;
  558. .hx {
  559. width: 120rpx;
  560. height: 1rpx;
  561. background: #989898;
  562. }
  563. .tit {
  564. margin: 0 70rpx;
  565. font-size: 30rpx;
  566. font-weight: 500;
  567. color: #4A2723;
  568. }
  569. }
  570. .img {
  571. position: relative;
  572. top: -56rpx;
  573. left: 0;
  574. width: 522rpx;
  575. height: 132rpx;
  576. display: flex;
  577. justify-content: center;
  578. image {
  579. border-radius: 20rpx 20rpx 0 0;
  580. width: 450rpx;
  581. height: 132rpx;
  582. }
  583. }
  584. .mian {
  585. margin-top: -44rpx;
  586. display: flex;
  587. flex-direction: column;
  588. align-items: center;
  589. // padding: 32rpx 32rpx;
  590. background-color: #ffffff;
  591. border-radius: 0 0 20rpx 20rpx;
  592. text-align: center;
  593. .delivery {
  594. font-size: 40rpx;
  595. color: #333333;
  596. display: flex;
  597. align-items: center;
  598. flex-direction: column;
  599. image {
  600. margin-top: 48rpx;
  601. width: 172rpx;
  602. height: 160rpx;
  603. }
  604. }
  605. .nocancel {
  606. font-size: 32rpx;
  607. color: #333333;
  608. margin-top: 14rpx;
  609. }
  610. .comfirm-box {
  611. margin-top: 52rpx;
  612. display: flex;
  613. // margin-bottom: 32rpx;
  614. // justify-content: space-around;
  615. .cancel {
  616. display: flex;
  617. align-items: center;
  618. justify-content: center;
  619. width: 197rpx;
  620. height: 74rpx;
  621. border: 1px solid #dcc786;
  622. border-radius: 38rpx;
  623. font-size: 32rpx;
  624. color: #605128;
  625. }
  626. .comfirm {
  627. margin-left: 32rpx;
  628. display: flex;
  629. align-items: center;
  630. justify-content: center;
  631. width: 197rpx;
  632. height: 74rpx;
  633. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  634. border-radius: 38px;
  635. font-size: 32rpx;
  636. color: #605128;
  637. }
  638. }
  639. }
  640. }
  641. .good-list {
  642. padding: 20rpx 28rpx;
  643. width: 750rpx;
  644. .good {
  645. background: #FFFFFF;
  646. box-shadow: 0px 0px 20px 0px rgba(50,50,52,0.06);
  647. width: 100%;
  648. border-radius: 14rpx;
  649. margin-bottom: 20rpx;
  650. position: relative;
  651. padding: 20rpx;
  652. .good-image {
  653. width: 170rpx;
  654. height: 170rpx;
  655. background-color: #eee;
  656. border-radius: 10rpx;
  657. flex-shrink: 0;
  658. }
  659. .right{
  660. height: 170rpx;
  661. position: relative;
  662. flex-grow: 1;
  663. .good-name {
  664. font-size: 28rpx;
  665. font-weight: bold;
  666. color: #333333;
  667. padding-left: 20rpx;
  668. }
  669. .good-key {
  670. font-size: 22rpx;
  671. font-weight: 500;
  672. color: #999999;
  673. padding-left: 20rpx
  674. }
  675. .good-price {
  676. display: flex;
  677. justify-content: space-between;
  678. align-items: flex-end;
  679. font-size: 28rpx;
  680. font-weight: bold;
  681. color: #FF1A1A;
  682. position: absolute;
  683. bottom: 0rpx;
  684. padding: 0 20rpx;
  685. left: 0;
  686. right:0rpx;
  687. .xl {
  688. background: linear-gradient(90deg, #3C82E6, #5395F5);
  689. border-radius: $font-base;
  690. padding: 10rpx 20rpx ;
  691. color: #fff;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. // .good-list {
  698. // width: 750rpx;
  699. // background:#fff;
  700. // padding: 30rpx 0;
  701. // .good {
  702. // width: 690rpx;
  703. // height: 276rpx;
  704. // background: #FFFFFF;
  705. // box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  706. // border-radius: 10rpx;
  707. // margin: auto;
  708. // padding: 20rpx 15rpx;
  709. // margin-bottom: 20rpx;
  710. // &:last-of-type {
  711. // margin-bottom: 0rpx;
  712. // }
  713. // .good-img {
  714. // flex-shrink: 0;
  715. // width: 236rpx;
  716. // height: 236rpx;
  717. // border-radius: 10rpx;
  718. // margin-right: 22rpx;
  719. // image {
  720. // width: 236rpx;
  721. // height: 236rpx;
  722. // border-radius: 10rpx;
  723. // }
  724. // }
  725. // .good-info {
  726. // flex-grow: 1;
  727. // height: 100%;
  728. // flex-direction: column;
  729. // justify-content: space-between;
  730. // align-items: flex-start;
  731. // .good-name {
  732. // font-size: 32rpx;
  733. // font-weight: bold;
  734. // padding-top: 10rpx;
  735. // color: #333333;
  736. // }
  737. // .good-price {
  738. // width: 100%;
  739. // image {
  740. // width: 14rpx;
  741. // margin: 0 6rpx 0 10rpx;
  742. // }
  743. // .old-price {
  744. // .old-left {
  745. // font-size: 26rpx;
  746. // font-weight: 500;
  747. // text-decoration: line-through;
  748. // color: #999999;
  749. // }
  750. // .old-right {
  751. // font-size: 24rpx;
  752. // font-weight: bold;
  753. // color: #B59467;
  754. // }
  755. // }
  756. // .new-price {
  757. // width: 100%;
  758. // font-size: 36rpx;
  759. // font-weight: bold;
  760. // color: #FF4C4C;
  761. // justify-content: space-between;
  762. // .good-tip {
  763. // width: 137rpx;
  764. // height: 52rpx;
  765. // background: #ff4a48;
  766. // border-radius: 26rpx;
  767. // position: relative;
  768. // font-size: 26rpx;
  769. // font-weight: 500;
  770. // color: #FFFFFF;
  771. // line-height: 52rpx;
  772. // text-align: center;
  773. // }
  774. // }
  775. // }
  776. // }
  777. // }
  778. // }
  779. .index-top-wrap {
  780. position: relative;
  781. .index-top-image{
  782. position: absolute;
  783. width: 750rpx;
  784. height: 288rpx;
  785. border-bottom-right-radius: 30rpx;
  786. border-bottom-left-radius: 30rpx;
  787. background:$bg-gradual;
  788. }
  789. .fud {
  790. position: relative;
  791. }
  792. }
  793. </style>