index.vue 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  1. <template>
  2. <view class="container">
  3. <view class="carousel-section">
  4. <!-- 背景色区域 -->
  5. <view class="bg"></view>
  6. <!-- 标题栏和状态栏占位符 -->
  7. <view class="titleNview-placing"></view>
  8. <!-- 搜素栏 -->
  9. <view class="search flex">
  10. <view class="input-box flex" @click.stop="clickSearch">
  11. <view class=" input-content flex">
  12. <view class="iconfont iconsearch"></view>
  13. <view class="input"><input type="text" disabled value="好物从搜索开始" /></view>
  14. </view>
  15. </view>
  16. </view>
  17. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange"
  18. :indicator-dots="true" indicator-active-color="#FFFFFF">
  19. <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000"> -->
  20. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
  21. <image :src="item.pic" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
  22. </swiper-item>
  23. </swiper>
  24. </view>
  25. <view class="navbar">
  26. <view class="navbar-box flex">
  27. <view class="navbar-item" @click="navTo('/pages/product/list')">
  28. <image class="nitem-image" src="../../static/sy/sy12.png" mode=""></image>
  29. <view class="nitem-font">全部分类</view>
  30. </view>
  31. <view class="navbar-item" @click="navTo('/pages/index/vipShop')">
  32. <image class="nitem-image" src="../../static/sy/sy14.png" mode=""></image>
  33. <view class="nitem-font">超值拼团</view>
  34. </view>
  35. <view class="navbar-item" @click="navTo('')">
  36. <image class="nitem-image" src="../../static/sy/sy15.png" mode=""></image>
  37. <view class="nitem-font">公司介绍</view>
  38. </view>
  39. <view class="navbar-item" @click="navTo('/pages/user/shareQrCode')">
  40. <image class="nitem-image" src="../../static/sy/sy13.png" mode=""></image>
  41. <view class="nitem-font">邀请有礼</view>
  42. </view>
  43. </view>
  44. </view>
  45. <seckill></seckill>
  46. <view class=" jx">
  47. <view class="jx-box">
  48. <view class="jx-box-title">
  49. <image src="../../static/sy/sy03.png" mode=""></image>
  50. </view>
  51. <view class="jx-box-img">
  52. <image src="../../static/sy/sy09.png" mode=""></image>
  53. </view>
  54. </view>
  55. <view class="jx-box-content" v-for="item in vipList" @click="navToDetailPage(item)">
  56. <view class="content-left">
  57. <image :src=item.image mode=""></image>
  58. </view>
  59. <view class="content-right">
  60. <view class="shop-name">
  61. {{item.store_name}}
  62. </view>
  63. <view class="shop-content">
  64. <view class="shop-content-left">
  65. <view class="price-box">
  66. <view class="yuan-price">
  67. 原价{{item.ot_price}}
  68. </view>
  69. <image src="../../static/sy/sy06.png" mode=""></image>
  70. <view class="j-price">
  71. 直降{{item.ot_price*1-item.price*1}}元
  72. </view>
  73. </view>
  74. <view class="price-x">
  75. ¥{{item.price}}
  76. </view>
  77. </view>
  78. <view class="shop-content-right">
  79. 立即购买
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="cai" @click="navTo('/pages/index/vipShop')">
  85. 查看更多<span style="margin-left: 5rpx;">></span>
  86. </view>
  87. </view>
  88. <view class="product-box">
  89. <view class="product-title">
  90. <view class="bb">
  91. </view>
  92. <view class="pt-title">猜你喜欢</view>
  93. <view class="bb">
  94. </view>
  95. </view>
  96. <view class="hotgoods">
  97. <view class="hotgoods-item" v-for="item in firstList" :key="item.id" @click="navToDetailPage(item)">
  98. <view class="image-wrapper">
  99. <image class="image" :src="item.image" mode="scaleToFill"></image>
  100. </view>
  101. <view class="hotgoods-box">
  102. <view class="title clamp2">{{ item.store_name }}</view>
  103. <view class="titlee">{{ item.store_name }}</view>
  104. </view>
  105. <view class="hot-price">
  106. <!-- <view class="hotPrice-box">会员价</view> -->
  107. <view class="price">
  108. <text class="font-size-sm">¥</text>
  109. {{ item.price * 1 }}
  110. </view>
  111. <view class="yuanPrice">原价{{ item.price }}</view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- <u-tabbar activeColor="#434A54" v-model="current" :list="tabbar" :mid-button="true"></u-tabbar> -->
  117. </view>
  118. </template>
  119. <script>
  120. import {
  121. shareFun
  122. } from '@/utils/wxAuthorized.js'
  123. import {
  124. lookSubpoints,
  125. lookOneself
  126. } from '../../api/user.js';
  127. import seckill from '../../components/seckill/seckill.vue';
  128. import {
  129. loadIndexs,
  130. getVip,
  131. db
  132. } from '@/api/index.js';
  133. import {
  134. getUserInfo,
  135. spread
  136. } from '@/api/user.js';
  137. import {
  138. setCoupons
  139. } from '@/api/functionalUnit.js';
  140. import {
  141. getBargainList
  142. } from '@/api/product.js';
  143. import {
  144. interceptor
  145. } from '@/utils/loginUtils';
  146. import {
  147. mapState,
  148. mapMutations
  149. } from 'vuex';
  150. import {
  151. tabbar
  152. } from '@/utils/tabbar.js';
  153. // #ifdef H5
  154. import {
  155. weixindata,
  156. shareLoad
  157. } from '@/utils/wxAuthorized';
  158. // #endif
  159. export default {
  160. components: {
  161. seckill
  162. },
  163. data() {
  164. return {
  165. // isDa:true,
  166. tabbar: tabbar,
  167. current: 0,
  168. shareShow: false, //分享海报
  169. pageProportion: 0, //保存页面基于750宽度的比例
  170. swiperHeight: 0,
  171. checkid: 0,
  172. titleNViewBackground: '',
  173. longitude: 0, //经度
  174. latitude: 0, //纬度
  175. swiperCurrent: 0,
  176. swiperLength: 0,
  177. carouselList: [], //轮播列表
  178. bastList: [], //会员礼包
  179. shoplist: [], //商店列表
  180. page: 1,
  181. limit: 5,
  182. vipList: [], //vip商品
  183. firstList: [],
  184. };
  185. },
  186. computed: {
  187. ...mapState(['loginInterceptor', 'baseURL']),
  188. ...mapState('user', ['hasLogin', 'userInfo'])
  189. },
  190. onLoad: function(option) {
  191. if (option.spread) {
  192. console.log(option.spread, "邀请人2")
  193. uni.setStorageSync('puid', option.spread)
  194. }
  195. // #ifdef H5
  196. this.IndexShare();
  197. //#endif
  198. },
  199. onShow: function() {
  200. let uid = uni.getStorageSync('sid');
  201. if (uid) {
  202. spread({
  203. puid: uid
  204. }).then(res => {
  205. console.log(res);
  206. })
  207. }
  208. getVip({
  209. page: 1,
  210. limit: 3,
  211. is_vip: 3
  212. }).then(res => {
  213. this.vipList = res.data
  214. res.data.forEach(e => {
  215. e.isVip = e.store_type ? "3" : "0"
  216. })
  217. console.log(res.data, 'vip商品');
  218. })
  219. // 判断是否强制登录
  220. if (!this.hasLogin) {
  221. // 登录拦截
  222. interceptor();
  223. }
  224. this.loadData();
  225. this.getBargainList();
  226. },
  227. //下拉刷新
  228. onPullDownRefresh() {
  229. this.loadData();
  230. },
  231. // #ifndef MP
  232. // 监听导航栏输入框点击事件
  233. onNavigationBarSearchInputClicked(e) {
  234. //跳转到搜索页面
  235. this.clickSearch();
  236. },
  237. //点击导航栏 buttons 时触发
  238. onNavigationBarButtonTap(e) {
  239. const index = e.index;
  240. if (index === 0) {
  241. this.$api.msg('点击了扫描');
  242. } else if (index === 1) {
  243. // #ifdef APP-PLUS
  244. const pages = getCurrentPages();
  245. const page = pages[pages.length - 1];
  246. const currentWebview = page.$getAppWebview();
  247. currentWebview.hideTitleNViewButtonRedDot({
  248. index
  249. });
  250. // #endif
  251. uni.navigateTo({
  252. url: '/pages/user/notice'
  253. });
  254. }
  255. },
  256. // #endif
  257. methods: {
  258. ...mapMutations(['setLat', 'setLon']),
  259. // #ifdef H5
  260. IndexShare() {
  261. let obj = this;
  262. let pages = getCurrentPages();
  263. // 获取当前页面
  264. let page = pages[pages.length - 1];
  265. let path = '#/' + page.route + '?';
  266. // 保存传值
  267. for (let i in page.options) {
  268. path += i + '=' + page.options[i] + '&';
  269. }
  270. console.log(obj.Path);
  271. // 保存邀请人
  272. path += 'spread=' + this.userInfo.uid;
  273. let data = {
  274. link: this.baseURL + '/index/' + path,
  275. title: this.userInfo.nickname + '邀请您进入玲卿+',
  276. desc: '欢迎加入玲卿+',
  277. imgUrl: 'https://hy.liuniu946.com/index/static/img/logo.jpg'
  278. };
  279. console.log(data, '分享数据');
  280. shareLoad(data);
  281. },
  282. // #endif
  283. getaddress() {
  284. console.log('dizhi+++++++++++');
  285. let obj = this;
  286. weixindata().then(wxOjb => {
  287. console.log(wxOjb, '获取微信');
  288. wxOjb.getLocation({
  289. type: 'gcj02',
  290. success: res => {
  291. console.log(res, 123456);
  292. obj.setLat(res.latitude);
  293. obj.setLon(res.longitude);
  294. },
  295. fail: err => {
  296. console.log(err, 'shi+++++++++++++++');
  297. openMap().then(e => {
  298. this.getaddress();
  299. });
  300. }
  301. });
  302. });
  303. },
  304. //砍价商品推荐详情页
  305. navToDetailPages(item) {
  306. let id = item.product_id;
  307. //let type = 2;
  308. uni.navigateTo({
  309. url: '/pages/product/product?id=' + id
  310. });
  311. },
  312. navTo(url) {
  313. if (url == '') {
  314. this.$api.msg('暂未开通,敬请期待');
  315. } else {
  316. uni.navigateTo({
  317. url
  318. });
  319. }
  320. },
  321. openSubscribe: function(e) {
  322. let page = e;
  323. // #ifndef MP
  324. uni.navigateTo({
  325. url: page
  326. });
  327. // #endif
  328. // #ifdef MP
  329. uni.showLoading({
  330. title: '正在加载'
  331. });
  332. openBargainSubscribe()
  333. .then(res => {
  334. uni.hideLoading();
  335. uni.navigateTo({
  336. url: page
  337. });
  338. })
  339. .catch(err => {
  340. uni.hideLoading();
  341. });
  342. // #endif
  343. },
  344. getBargainList() {
  345. let that = this;
  346. getBargainList({
  347. page: that.page,
  348. limit: that.limit
  349. })
  350. .then(function(res) {
  351. // that.$set(that, 'bargainlist', res.data.slice(0, 2));
  352. })
  353. .catch(res => {
  354. console.log(res, 'getBargainList');
  355. });
  356. },
  357. Mask() {
  358. this.MaskShow = false;
  359. this.shareShow = true;
  360. uni.setStorage({
  361. key: 'FirstEntry',
  362. data: true,
  363. success: function() {
  364. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  365. }
  366. });
  367. },
  368. Toshare() {
  369. if (this.userInfo == '') {
  370. getUserInfo({})
  371. .then(({
  372. data
  373. }) => {
  374. this.setUserInfo(data);
  375. this.userInfo = data;
  376. })
  377. .catch(e => {});
  378. } else {
  379. this.shareShow = false;
  380. uni.navigateTo({
  381. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  382. });
  383. }
  384. },
  385. Tocancel() {
  386. this.shareShow = false;
  387. },
  388. // 监听切换事件
  389. listChange(e) {
  390. this.checkid = e.detail.current;
  391. },
  392. // 點擊搜索框
  393. clickSearch() {
  394. uni.navigateTo({
  395. url: '/pages/product/search'
  396. });
  397. },
  398. // 点击触发领取优惠券
  399. setCoupons(item) {
  400. // 判断是否已经领取了优惠券
  401. let obj = this;
  402. uni.showModal({
  403. title: '领取提示',
  404. content: '是否领取优惠券',
  405. success(e) {
  406. if (e.confirm) {
  407. setCoupons({
  408. couponId: item.id
  409. }).then(e => {
  410. item.is_use = true;
  411. uni.showToast({
  412. title: '领取成功',
  413. type: 'top',
  414. duration: 2000
  415. });
  416. });
  417. }
  418. }
  419. });
  420. },
  421. //商品种类切换
  422. change(item) {
  423. let id = item;
  424. this.checkid = id;
  425. if (this.checkid == 1) {
  426. // console.log(1);
  427. this.detail = this.selected_detail;
  428. } else if (this.checkid == 2) {
  429. // console.log(2);
  430. this.detail = this.new_product;
  431. } else {
  432. this.detail = this.cheap_good;
  433. }
  434. },
  435. // 监听图片加载完成
  436. onImageError(key, index) {
  437. this[key][index].image = '/static/error/errorImage.jpg';
  438. },
  439. // 请求载入数据
  440. async loadData() {
  441. loadIndexs({})
  442. .then(({
  443. data
  444. }) => {
  445. let goods = data.info;
  446. console.log(goods, '商品信息');
  447. this.carouselList = data.banner;
  448. this.swiperLength = this.carouselList.length;
  449. this.bastList = data.giftInfo; //会员礼包
  450. data.info.firstList.forEach(e => {
  451. e.isVip = e.store_type ? "3" : "0"
  452. })
  453. this.firstList = data.info.firstList //首页商品
  454. uni.stopPullDownRefresh();
  455. })
  456. .catch(e => {
  457. uni.stopPullDownRefresh();
  458. });
  459. },
  460. //轮播图切换修改背景色
  461. swiperChange(e) {
  462. const index = e.detail.current;
  463. this.swiperCurrent = index;
  464. this.titleNViewBackground = this.carouselList[index].background;
  465. },
  466. //详情页
  467. navToDetailPage(item) {
  468. let id = item.id;
  469. uni.navigateTo({
  470. url: '/pages/product/product?id=' + id + '&isVip=' + item.isVip
  471. });
  472. },
  473. // 轮播图跳转
  474. bannerNavToUrl(item) {
  475. // #ifdef H5
  476. console.log(item.wap_url.indexOf('http'), 'banner');
  477. if (item.wap_url.indexOf('http') >= 0) {
  478. window.location.href = item.wap_url;
  479. }
  480. // #endif
  481. //测试数据没有写id,用title代替
  482. uni.navigateTo({
  483. url: item.wap_url
  484. });
  485. }
  486. }
  487. };
  488. </script>
  489. <style lang="scss">
  490. page {
  491. background: #EEEFEE;
  492. }
  493. .carousel-section {
  494. position: relative;
  495. padding-top: 10px;
  496. .bg {
  497. position: absolute;
  498. top: 0;
  499. left: 0;
  500. width: 750rpx;
  501. height: 378rpx;
  502. image {
  503. width: 100%;
  504. height: 100%;
  505. }
  506. }
  507. .titleNview-placing {
  508. height: var(--status-bar-height);
  509. box-sizing: content-box;
  510. }
  511. .search {
  512. margin-bottom: 12rpx;
  513. background-color: #eec185;
  514. justify-content: flex-start;
  515. padding: 10rpx 32rpx 20rpx;
  516. align-items: center;
  517. .address {
  518. width: 32rpx;
  519. height: 38rpx;
  520. }
  521. .shop-name {
  522. height: 38rpx;
  523. position: relative;
  524. top: -4rpx;
  525. z-index: 100;
  526. font-size: 30rpx;
  527. font-family: PingFang SC;
  528. font-weight: 500;
  529. padding-left: 10rpx;
  530. }
  531. .shop-jt {
  532. margin-left: 8rpx;
  533. width: 16rpx;
  534. height: 10rpx;
  535. }
  536. .input-box {
  537. margin-left: 10rpx;
  538. position: relative;
  539. z-index: 99;
  540. width: 710rpx;
  541. height: 60rpx;
  542. background: #EEEEEE;
  543. border-radius: 30rpx;
  544. .input-content {
  545. position: relative;
  546. z-index: 11;
  547. border-radius: 99rpx;
  548. flex-grow: 1;
  549. padding: 5rpx 30rpx;
  550. background: #EEEEEE;
  551. .iconsearch {
  552. font-size: 50rpx;
  553. color: #CBCBCB;
  554. }
  555. .input {
  556. margin-left: 19rpx;
  557. flex-grow: 1;
  558. color: #CBCBCB;
  559. input {
  560. font-size: 28rpx;
  561. color: #CBCBCB;
  562. }
  563. }
  564. }
  565. .input-button {
  566. padding-left: 20rpx;
  567. font-size: $font-base;
  568. height: 100%;
  569. }
  570. }
  571. }
  572. }
  573. .carousel {
  574. position: relative;
  575. z-index: 3;
  576. width: 100%;
  577. height: 360rpx;
  578. .carousel-item {
  579. width: 100%;
  580. height: 100%;
  581. padding: 0 28rpx;
  582. overflow: hidden;
  583. }
  584. image {
  585. width: 100%;
  586. height: 100%;
  587. border-radius: $border-radius-sm;
  588. }
  589. }
  590. .navbar {
  591. position: relative;
  592. z-index: 2;
  593. padding: 0 50rpx;
  594. margin-top: -200rpx;
  595. width: 750rpx;
  596. height: 420rpx;
  597. background: #ffffff;
  598. border-radius: 40rpx;
  599. .navbar-box {
  600. padding-top: 250rpx;
  601. .navbar-item {
  602. display: flex;
  603. flex-direction: column;
  604. align-items: center;
  605. width: 20%;
  606. .nitem-image {
  607. width: 90rpx;
  608. height: 90rpx;
  609. }
  610. .nitem-font {
  611. margin-top: 22rpx;
  612. font-size: 26rpx;
  613. font-family: PingFang SC;
  614. font-weight: 500;
  615. color: #000000;
  616. }
  617. }
  618. }
  619. }
  620. .jx {
  621. background: #fff;
  622. width: 750rpx;
  623. }
  624. .jx-box {
  625. background: #fff;
  626. display: flex;
  627. flex-direction: column;
  628. align-items: center;
  629. width: 750rpx;
  630. .jx-box-title {
  631. margin: 50rpx 0;
  632. width: 610rpx;
  633. height: 30rpx;
  634. image {
  635. width: 100%;
  636. height: 100%;
  637. }
  638. }
  639. .jx-box-img {
  640. width: 750rpx;
  641. height: 220rpx;
  642. image {
  643. width: 100%;
  644. height: 100%;
  645. }
  646. }
  647. }
  648. .cai {
  649. display: flex;
  650. justify-content: center;
  651. align-items: center;
  652. padding-bottom: 20rpx;
  653. font-size: 28rpx;
  654. font-weight: 500;
  655. color: #999999;
  656. }
  657. .jx-box-content {
  658. display: flex;
  659. .content-left {
  660. margin: 20rpx 15rpx;
  661. width: 236rpx;
  662. height: 236rpx;
  663. background: #E2E2E2;
  664. border-radius: 10rpx;
  665. image {
  666. width: 100%;
  667. height: 100%;
  668. }
  669. }
  670. .content-right {
  671. display: flex;
  672. flex-direction: column;
  673. justify-content: space-around;
  674. .shop-name {
  675. width: 382rpx;
  676. font-size: 32rpx;
  677. font-weight: bold;
  678. color: #333333;
  679. overflow: hidden;
  680. text-overflow: ellipsis;
  681. display: -webkit-box;
  682. -webkit-box-orient: vertical;
  683. -webkit-line-clamp: 2;
  684. }
  685. .shop-content {
  686. width: 455rpx;
  687. display: flex;
  688. justify-content: space-between;
  689. .shop-content-left {
  690. display: flex;
  691. flex-direction: column;
  692. .price-box {
  693. display: flex;
  694. align-items: center;
  695. .yuan-price {
  696. font-size: 26rpx;
  697. font-weight: 500;
  698. text-decoration: line-through;
  699. color: #999999;
  700. }
  701. image {
  702. margin: 0 10rpx;
  703. width: 16rpx;
  704. height: 18rpx;
  705. }
  706. .j-price {
  707. font-size: 24rpx;
  708. font-weight: bold;
  709. color: #B59467;
  710. }
  711. }
  712. .price-x {
  713. font-size: 36rpx;
  714. font-weight: bold;
  715. color: #FF4C4C;
  716. }
  717. }
  718. .shop-content-right {
  719. margin-top: 20rpx;
  720. align-items: center;
  721. text-align: center;
  722. width: 137rpx;
  723. height: 52rpx;
  724. font-size: 26rpx;
  725. font-weight: 500;
  726. color: #F8DABA;
  727. background: #303030;
  728. border-radius: 26rpx;
  729. line-height: 52rpx;
  730. }
  731. }
  732. }
  733. }
  734. .product-box {
  735. margin-top: 20rpx;
  736. background: #ffffff;
  737. padding: 26rpx 30rpx 20rpx;
  738. .product-title {
  739. display: flex;
  740. align-items: center;
  741. justify-content: center;
  742. .pt-image {
  743. width: 36rpx;
  744. height: 36rpx;
  745. }
  746. .bb {
  747. width: 120rpx;
  748. height: 1rpx;
  749. background: #989898;
  750. }
  751. .pt-title {
  752. margin: 0 28rpx;
  753. font-size: 30rpx;
  754. font-weight: 500;
  755. color: #363636;
  756. }
  757. .pt-tip {
  758. margin-left: 16rpx;
  759. font-size: 20rpx;
  760. font-family: PingFang SC;
  761. font-weight: bold;
  762. color: #95a0b1;
  763. }
  764. }
  765. .hotgoods {
  766. margin-top: 38rpx;
  767. width: 100%;
  768. display: flex;
  769. flex-wrap: wrap;
  770. padding: 0 0 30rpx;
  771. .hotgoods-item {
  772. width: 44%;
  773. background: #FFFFFF;
  774. margin: 20rpx;
  775. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  776. border-radius: 10px;
  777. .image-wrapper {
  778. width: 100%;
  779. height: 330rpx;
  780. border-radius: 3px;
  781. overflow: hidden;
  782. position: relative;
  783. .image-bg {
  784. position: absolute;
  785. top: 0;
  786. left: 0;
  787. right: 0;
  788. bottom: 0;
  789. width: 100%;
  790. height: 100%;
  791. opacity: 1;
  792. border-radius: 12rpx 12rpx 0 0;
  793. z-index: 2;
  794. }
  795. .image {
  796. width: 100%;
  797. height: 100%;
  798. opacity: 1;
  799. border-radius: 12rpx 12rpx 0 0;
  800. }
  801. }
  802. .title {
  803. margin-top: 20rpx;
  804. font-size: 28rpx;
  805. font-family: PingFang SC;
  806. font-weight: 500;
  807. color: #333333;
  808. }
  809. .hotgoods-box {
  810. height: 100rpx;
  811. }
  812. .titlee {
  813. margin-left: 15rpx;
  814. font-size: 26rpx;
  815. font-weight: 500;
  816. color: #666666;
  817. white-space: nowrap;
  818. overflow: hidden;
  819. text-overflow: ellipsis;
  820. }
  821. .hot-price {
  822. display: flex;
  823. justify-content: flex-start;
  824. align-items: center;
  825. padding: 14rpx 0 30rpx;
  826. .hotPrice-box {
  827. width: 70rpx;
  828. height: 28rpx;
  829. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  830. border-radius: 5rpx;
  831. text-align: center;
  832. line-height: 28rpx;
  833. font-size: 20rpx;
  834. font-weight: 400;
  835. color: #ffffff;
  836. }
  837. .price {
  838. margin-left: 10rpx;
  839. font-size: 36rpx;
  840. color: #ff0000;
  841. font-weight: 500;
  842. }
  843. .yuanPrice {
  844. margin-left: 10rpx;
  845. font-size: 20rpx;
  846. font-family: PingFang SC;
  847. font-weight: 500;
  848. text-decoration: line-through;
  849. color: #999999;
  850. }
  851. .cart-icon {
  852. image {
  853. width: 44rpx;
  854. height: 44rpx;
  855. }
  856. }
  857. }
  858. }
  859. }
  860. }
  861. .shop {
  862. margin-top: 20rpx;
  863. background: #ffffff;
  864. padding: 0 12rpx;
  865. .shop-title {
  866. padding: 30rpx 0 20rpx;
  867. display: flex;
  868. align-items: center;
  869. border-bottom: 1px solid #e3e6e7;
  870. .shop-item {
  871. width: 25%;
  872. display: flex;
  873. align-items: center;
  874. justify-content: center;
  875. .sitem-font {
  876. font-size: 26rpx;
  877. font-family: PingFang SC;
  878. font-weight: bold;
  879. color: #333333;
  880. }
  881. .jt-down {
  882. width: 10rpx;
  883. height: 8rpx;
  884. margin-left: 12rpx;
  885. }
  886. }
  887. }
  888. }
  889. .shop-main {
  890. padding: 32rpx 18rpx 0 12rpx;
  891. align-items: flex-start;
  892. justify-content: flex-start;
  893. .main-left {
  894. width: 180rpx;
  895. height: 180rpx;
  896. border-radius: 10rpx;
  897. }
  898. .main-right {
  899. width: 500rpx;
  900. justify-content: space-between;
  901. align-items: flex-start;
  902. margin-left: 20rpx;
  903. padding: 13rpx 0 35rpx;
  904. border-bottom: 1px solid #eaeced;
  905. .shopm-info {
  906. max-width: 60%;
  907. line-height: 1;
  908. .shopm-title {
  909. display: flex;
  910. justify-content: flex-start;
  911. .shopmt-font {
  912. font-size: 34rpx;
  913. font-family: PingFang SC;
  914. font-weight: bold;
  915. color: #333333;
  916. }
  917. .shopmt-good {
  918. margin-left: 6rpx;
  919. width: 30rpx;
  920. height: 30rpx;
  921. border: 1px solid #ff4c4c;
  922. border-radius: 5rpx;
  923. font-size: 20rpx;
  924. font-family: PingFang SC;
  925. font-weight: 500;
  926. color: #ff4c4c;
  927. text-align: center;
  928. line-height: 30rpx;
  929. }
  930. }
  931. .address {
  932. margin-top: 16rpx;
  933. font-size: 24rpx;
  934. font-family: PingFang SC;
  935. font-weight: 500;
  936. color: #666666;
  937. }
  938. .shopmt-tip {
  939. position: relative;
  940. display: inline-block;
  941. flex-grow: 0;
  942. margin-top: 52rpx;
  943. padding: 8rpx;
  944. background: #fcf3f0;
  945. border-radius: 16rpx 16rpx 16rpx 0px;
  946. font-size: 20rpx;
  947. font-family: PingFang SC;
  948. font-weight: 500;
  949. color: #ff440d;
  950. }
  951. }
  952. .right {
  953. height: 100%;
  954. margin-top: 5rpx;
  955. display: flex;
  956. flex-direction: column;
  957. .mright-top {
  958. display: flex;
  959. justify-content: flex-end;
  960. align-items: center;
  961. .mrt-image {
  962. width: 20rpx;
  963. height: 28rpx;
  964. }
  965. .mrt-font {
  966. margin-left: 8rpx;
  967. font-size: 22rpx;
  968. font-family: PingFang SC;
  969. font-weight: 500;
  970. color: #666666;
  971. }
  972. }
  973. .mright-bottom {
  974. margin-top: 80rpx;
  975. display: flex;
  976. justify-content: flex-end;
  977. .mrb-item {
  978. width: 46rpx;
  979. height: 46rpx;
  980. margin-left: 14rpx;
  981. }
  982. }
  983. }
  984. }
  985. }
  986. </style>