index.vue 18 KB

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