index.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621
  1. <template>
  2. <view class="container">
  3. <!-- 小程序头部兼容 -->
  4. <!-- #ifdef MP -->
  5. <view class="input-box flex" @click="clickSearch">
  6. <view class=" input-content flex">
  7. <view class="iconfont iconsearch"></view>
  8. <view class="input"><input type="text" disabled placeholder="请输入搜索内容" /></view>
  9. </view>
  10. </view>
  11. <view class="mp-height"></view>
  12. <!-- #endif -->
  13. <!-- 头部轮播 -->
  14. <!-- <view class="carousel-section"> -->
  15. <!-- 标题栏和状态栏占位符 -->
  16. <!-- <view class="titleNview-placing"></view> -->
  17. <!-- 背景色区域 -->
  18. <!-- <view class="titleNview-background" :style="{ backgroundColor: '#5DBC7C' }"></view> -->
  19. <!-- <view class="titleNview-background" ></view>
  20. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  21. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item" @click="bannerNavToUrl(item)"><image :src="item.pic" /></swiper-item>
  22. </swiper>
  23. </view> -->
  24. <view class="titleNview-placing"></view>
  25. <view class="swiper-wrapper">
  26. <swiper class="swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange" circular>
  27. <swiper-item v-for="(item, index) in carouselList" :key="index" class="swiper-item" @click="bannerNavToUrl(item)"><image :src="item.pic" /></swiper-item>
  28. </swiper>
  29. </view>
  30. <!-- 自定义swiper指示器 -->
  31. <view class="swiper-dot">
  32. <template v-for="item in swiperLength">
  33. <view class="swiper-dots-item" :key="item" :class="{ action: swiperCurrent + 1 === item }"></view>
  34. </template>
  35. </view>
  36. <!-- 秒杀title -->
  37. <view class="m-tap">
  38. <image src="../../static/img/seckill.png" mode=""></image>
  39. <text class="iconfont iconenter" @click="loadMore('/pages/product/seckill')">更多</text>
  40. </view>
  41. <!-- 秒杀商品 -->
  42. <seckill></seckill>
  43. <!-- 超值拼团title -->
  44. <view class="m-tap">
  45. <image src="../../static/img/groupBooking.png" mode=""></image>
  46. <text class="iconfont iconenter" @click="loadMore('/pages/product/groupBooking/index')">更多</text>
  47. </view>
  48. <!-- 超值拼团商品 -->
  49. <view class="groupBooking-wrapper">
  50. <template v-for="(item,index) in czgoodList">
  51. <view class="spgood" :key="item.id" @click="goProduct(item)">
  52. <view class="left-wrapper"><image :src="item.product.image" mode="scaleToFill"></image></view>
  53. <view class="right-wrapper">
  54. <view class="right-title clamp">{{ item.product.store_name }}</view>
  55. <view class="ex-addr">
  56. <image src="../../static/img/shop.png" mode="" class="name-img"></image>
  57. {{item.merchant.mer_name}}
  58. <image src="../../static/img/point.png" mode="" class="point-img"></image>
  59. 200m
  60. </view>
  61. <view class="right-bottom">
  62. <view class="sp-price">
  63. <view class="now-price">¥ {{ item.price }}</view>
  64. <view class="old-price">¥ {{ item.product.price }}</view>
  65. </view>
  66. <view class="sp-btn">马上拼</view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="jg" :class="{'jgshow': index === czgoodList.length}" :key="index"></view>
  71. </template>
  72. </view>
  73. <!-- 积分兑换title -->
  74. <view class="m-tap">
  75. <image src="../../static/img/exchange.png" mode=""></image>
  76. <text class="iconfont iconenter" @click="loadMore('/pages/product/pointsExchange')">更多</text>
  77. </view>
  78. <!-- 积分兑换商品 -->
  79. <view class="exchange-wrapper">
  80. <view class="exgood-wrapper">
  81. <view class="ex-img-wrapper"><image src="../../static/img/ex1.jpg" mode=""></image></view>
  82. <view class="exgood-title">湿热肝上火气肺痰煲湿热肝上火气肺痰煲</view>
  83. <view class="ex-addr">
  84. <image src="../../static/img/shop.png" mode="" class="name-img"></image>
  85. 子臣台州旗舰店
  86. <image src="../../static/img/point.png" mode="" class="point-img"></image>
  87. 200m
  88. </view>
  89. <view class="ex-price">
  90. ¥26+20
  91. <text class="tx1">积分</text>
  92. <text class="tx2">¥99</text>
  93. </view>
  94. <view class="bg"></view>
  95. </view>
  96. <view class="exgood-wrapper">
  97. <view class="ex-img-wrapper"><image src="../../static/img/ex1.jpg" mode=""></image></view>
  98. <view class="exgood-title">湿热肝上火气肺痰煲湿热肝上火气肺痰煲</view>
  99. <view class="ex-addr">
  100. <image src="../../static/img/shop.png" mode="" class="name-img"></image>
  101. 子臣台州旗舰店
  102. <image src="../../static/img/point.png" mode="" class="point-img"></image>
  103. 200m
  104. </view>
  105. <view class="ex-price">
  106. ¥26+20
  107. <text class="tx1">积分</text>
  108. <text class="tx2">¥99</text>
  109. </view>
  110. <view class="bg"></view>
  111. </view>
  112. </view>
  113. <!-- <view class="ad-1"><image src="/static/temp/ad1.jpg" mode="scaleToFill"></image></view> -->
  114. <view class="recommend flex">
  115. <view class="recommend_list" @click="change(ls.id)" v-for="ls in recommend" :key="ls.re_title">
  116. <view class="re_title" v-bind:class="{ active_color: ls.id == checkid }">{{ ls.re_title }}</view>
  117. <view class="re_name" v-bind:class="{ active_color: ls.id == checkid }">{{ ls.re_name }}</view>
  118. <image class="selected_icon" v-bind:class="{ active: ls.id == checkid }" src="/static/img/img04.png"></image>
  119. </view>
  120. </view>
  121. <swiper id="list-box" @change="listChange" :style="{ height: swiperHeight + 'px' }" :current="checkid">
  122. <swiper-item>
  123. <!-- <scroll-view scroll-y="true" class="list-box-h"> -->
  124. <view class="guess-section">
  125. <view v-for="(item, index) in bastList" :key="index" class="guess-item" @click="navToDetailPage(item)">
  126. <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
  127. <text class="title clamp margin-c-20">{{ item.store_name }}</text>
  128. <view class="cmy-hr"></view>
  129. <view class="price margin-c-20 flex">
  130. <view>
  131. <text class="font-size-sm ">¥</text>
  132. {{ item.price }}
  133. </view>
  134. <view class="font-size-sm">
  135. <!-- <text class="font-color-gray">{{ item.sales }}人购买</text> -->
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- </scroll-view> -->
  141. </swiper-item>
  142. <swiper-item>
  143. <scroll-view scroll-y="true" class="list-box-h">
  144. <view class="guess-section">
  145. <view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)">
  146. <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
  147. <text class="title clamp margin-c-20">{{ item.store_name }}</text>
  148. <view class="cmy-hr"></view>
  149. <view class="price margin-c-20 flex">
  150. <view>
  151. <text class="font-size-sm ">¥</text>
  152. {{ item.price }}
  153. </view>
  154. <view class="font-size-sm">
  155. <text class="font-color-gray">{{ item.sales }}人购买</text>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </scroll-view>
  161. </swiper-item>
  162. <swiper-item>
  163. <scroll-view scroll-y="true">
  164. <view class="guess-section">
  165. <view v-for="(item, index) in bastBanner" :key="index" class="guess-item" @click="navToDetailPage(item)">
  166. <navigator :url="item.link">
  167. <view class="image-wrappe r"><image :src="item.image" mode="scaleToFill"></image></view>
  168. <text class="title clamp margin-c-20">{{ item.store_name }}</text>
  169. <view class="cmy-hr"></view>
  170. <view class="price margin-c-20 flex">
  171. <view>
  172. <text class="font-size-sm ">¥</text>
  173. {{ item.price }}
  174. </view>
  175. <view class="font-size-sm">
  176. <text class="font-color-gray">库存{{ item.stock + item.unit_name }}</text>
  177. </view>
  178. </view>
  179. </navigator>
  180. </view>
  181. </view>
  182. </scroll-view>
  183. </swiper-item>
  184. </swiper>
  185. <view class="Mask" v-show="shareShow">
  186. <image @click="share" src="http://shicai.liuniu946.com/static/img/shareimg4.png"></image>
  187. <view class="Toshare" @click="Toshare"></view>
  188. <view class="Tocancel" @click="Tocancel"></view>
  189. </view>
  190. </view>
  191. </template>
  192. <script>
  193. import seckill from '../../components/seckill/seckill.vue';
  194. import { loadIndexs,getIndexData } from '@/api/index.js';
  195. import { getUserInfo } from '@/api/user.js';
  196. import { setCoupons } from '@/api/functionalUnit.js';
  197. // import { getBargainList } from '@/api/product.js';
  198. import { interceptor } from '@/utils/loginUtils';
  199. import { mapState } from 'vuex';
  200. import { getCombinationList, getProductslist, getProductHot } from '@/api/product.js';
  201. export default {
  202. components: {
  203. seckill
  204. },
  205. watch: {
  206. //自适应swiper高度
  207. checkid(newValue, oldValue) {
  208. let obj = this;
  209. if (newValue == 0) {
  210. let bHeight = Math.ceil(obj.bastList.length / 2);
  211. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  212. }
  213. if (newValue == 1) {
  214. let bHeight = Math.ceil(obj.goodsList.length / 2);
  215. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  216. }
  217. if (newValue == 2) {
  218. let bHeight = Math.ceil(obj.bastBanner.length / 2);
  219. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  220. }
  221. },
  222. // 初次加载页面高度时修改页面高度
  223. bastList(newValue, oldValue) {
  224. let obj = this;
  225. let bHeight = Math.ceil(newValue.length / 2);
  226. obj.$nextTick(function() {
  227. uni.createSelectorQuery()
  228. .select('#list-box')
  229. .fields(
  230. {
  231. size: true
  232. },
  233. function(data) {
  234. obj.pageProportion = data.width / 750;
  235. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  236. }
  237. )
  238. .exec();
  239. });
  240. }
  241. },
  242. data() {
  243. return {
  244. shareShow: false, //分享海报
  245. pageProportion: 0, //保存页面基于750宽度的比例
  246. swiperHeight: 0,
  247. checkid: 0,
  248. titleNViewBackground: '',
  249. swiperCurrent: 0,
  250. swiperLength: 0,
  251. bargainlist: [], //砍价商品
  252. carouselList: [], //轮播列表
  253. goodsList: [], //最新商品列表
  254. bastList: [], //精品推荐列表
  255. bastBanner: [], //促销商品列表
  256. menusList: [], //头部菜单
  257. page: 1,
  258. limit: 5,
  259. userServant: [
  260. {
  261. image: ''
  262. }
  263. ], //用户推广服务
  264. couponArray: [], //可领取优惠券
  265. recommend: [
  266. {
  267. id: 0,
  268. re_title: '精选',
  269. re_name: '为你推荐'
  270. },
  271. {
  272. id: 1,
  273. re_title: '最新',
  274. re_name: '最新好货优选'
  275. },
  276. {
  277. id: 2,
  278. re_title: '便宜好货',
  279. re_name: '90天便宜好货'
  280. }
  281. ],
  282. actTime: new Date(),
  283. czgoodList: []
  284. };
  285. },
  286. computed: {
  287. ...mapState(['loginInterceptor']),
  288. ...mapState('user', ['hasLogin', 'userInfo'])
  289. },
  290. onLoad: function(option) {
  291. // #ifndef MP
  292. if (option.spread) {
  293. // 存储其他邀请人
  294. uni.setStorageSync('spread', option.spread);
  295. }
  296. // #endif
  297. // #ifdef MP
  298. if (option.scene) {
  299. // 存储小程序邀请人
  300. uni.setStorage({
  301. key: 'spread_code',
  302. data: option.scene
  303. });
  304. }
  305. // #endif
  306. },
  307. onShow: function() {
  308. // 判断是否强制登录
  309. if (this.loginInterceptor && !this.hasLogin) {
  310. // 登录拦截
  311. interceptor();
  312. }
  313. this.loadData();
  314. // this.getBargainList();
  315. this.getCzgoods();
  316. },
  317. //下拉刷新
  318. onPullDownRefresh() {
  319. this.loadData();
  320. },
  321. // #ifndef MP
  322. // 监听导航栏输入框点击事件
  323. onNavigationBarSearchInputClicked(e) {
  324. //跳转到搜索页面
  325. this.clickSearch();
  326. },
  327. //点击导航栏 buttons 时触发
  328. onNavigationBarButtonTap(e) {
  329. const index = e.index;
  330. if (index === 0) {
  331. this.$api.msg('点击了扫描');
  332. } else if (index === 1) {
  333. // #ifdef APP-PLUS
  334. const pages = getCurrentPages();
  335. const page = pages[pages.length - 1];
  336. const currentWebview = page.$getAppWebview();
  337. currentWebview.hideTitleNViewButtonRedDot({
  338. index
  339. });
  340. // #endif
  341. uni.navigateTo({
  342. url: '/pages/user/notice'
  343. });
  344. }
  345. },
  346. // #endif
  347. methods: {
  348. //砍价商品推荐详情页
  349. navToDetailPages(item) {
  350. let id = item.product_id;
  351. //let type = 2;
  352. uni.navigateTo({
  353. url: '/pages/product/product?id=' + id
  354. });
  355. },
  356. openSubscribe: function(e) {
  357. let page = e;
  358. // #ifndef MP
  359. uni.navigateTo({
  360. url: page
  361. });
  362. // #endif
  363. // #ifdef MP
  364. uni.showLoading({
  365. title: '正在加载'
  366. });
  367. openBargainSubscribe()
  368. .then(res => {
  369. uni.hideLoading();
  370. uni.navigateTo({
  371. url: page
  372. });
  373. })
  374. .catch(err => {
  375. uni.hideLoading();
  376. });
  377. // #endif
  378. },
  379. // getBargainList() {
  380. // let that = this;
  381. // getBargainList({
  382. // page: that.page,
  383. // limit: that.limit
  384. // })
  385. // .then(function(res) {
  386. // that.$set(that, 'bargainlist', res.data.slice(0, 2));
  387. // })
  388. // .catch(res => {
  389. // console.log(res, 'getBargainList');
  390. // });
  391. // },
  392. Mask() {
  393. this.MaskShow = false;
  394. this.shareShow = true;
  395. uni.setStorage({
  396. key: 'FirstEntry',
  397. data: true,
  398. success: function() {
  399. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  400. }
  401. });
  402. },
  403. Toshare() {
  404. if (this.userInfo == '') {
  405. getUserInfo({})
  406. .then(({ data }) => {
  407. this.setUserInfo(data);
  408. this.userInfo = data;
  409. })
  410. .catch(e => {});
  411. } else {
  412. this.shareShow = false;
  413. uni.navigateTo({
  414. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  415. });
  416. }
  417. },
  418. Tocancel() {
  419. this.shareShow = false;
  420. },
  421. // 监听切换事件
  422. listChange(e) {
  423. this.checkid = e.detail.current;
  424. },
  425. // 點擊搜索框
  426. clickSearch() {
  427. uni.navigateTo({
  428. url: '/pages/product/search'
  429. });
  430. },
  431. // 点击触发领取优惠券
  432. setCoupons(item) {
  433. // 判断是否已经领取了优惠券
  434. let obj = this;
  435. uni.showModal({
  436. title: '领取提示',
  437. content: '是否领取优惠券',
  438. success(e) {
  439. if (e.confirm) {
  440. setCoupons({
  441. couponId: item.id
  442. }).then(e => {
  443. item.is_use = true;
  444. uni.showToast({
  445. title: '领取成功',
  446. type: 'top',
  447. duration: 2000
  448. });
  449. });
  450. }
  451. }
  452. });
  453. },
  454. //商品种类切换
  455. change(item) {
  456. let id = item;
  457. this.checkid = id;
  458. if (this.checkid == 1) {
  459. // console.log(1);
  460. this.detail = this.selected_detail;
  461. } else if (this.checkid == 2) {
  462. // console.log(2);
  463. this.detail = this.new_product;
  464. } else {
  465. this.detail = this.cheap_good;
  466. }
  467. },
  468. // 监听图片加载完成
  469. onImageError(key, index) {
  470. this[key][index].image = '/static/error/errorImage.jpg';
  471. },
  472. // 请求载入数据
  473. async loadData() {
  474. // loadIndexs({})
  475. // .then(({ data }) => {
  476. // console.log('index-data++++++++++++++++++', data);
  477. // let goods = data.info;
  478. // this.carouselList = data.banner;
  479. // console.log(this.carouselList, 'lunbotu');
  480. // this.swiperLength = this.carouselList.length;
  481. // this.menusList = data.menus;
  482. // this.goodsList = goods.firstList; //最新商品
  483. // this.bastList = goods.bastList; //精品推荐
  484. // this.bastBanner = data.benefit; //促销单品
  485. // this.$set(this, 'couponArray', data.couponList); //保存卡包券
  486. // uni.stopPullDownRefresh();
  487. // })
  488. // .catch(e => {
  489. // uni.stopPullDownRefresh();
  490. // });
  491. getIndexData().then(({data}) => {
  492. console.log(data,'++++++++getIndexData')
  493. this.carouselList = data.banner
  494. this.swiperLength = this.carouselList.length;
  495. this.menusList = data.menu;
  496. })
  497. getProductHot({page:1,limit:30}).then( ({data})=> {
  498. console.log(data,"data+++++++++--------------")
  499. this.bastList = data.list.filter(item => {
  500. return item.product_type != 4
  501. })
  502. console.log(this.bastList,'this.bastList')
  503. } )
  504. },
  505. //轮播图切换修改背景色
  506. swiperChange(e) {
  507. const index = e.detail.current;
  508. this.swiperCurrent = index;
  509. this.titleNViewBackground = this.carouselList[index].background;
  510. },
  511. //详情页
  512. navToDetailPage(item) {
  513. let id = item.product_id;
  514. if(item.product_type == 2 || item.product_type == 3 || item.product_type == 0 ){
  515. uni.navigateTo({
  516. url: '/pages/product/product?id=' + id + '&type=0'
  517. });
  518. }else if(item.product_type == 1){
  519. uni.navigateTo({
  520. url: '/pages/product/product?id=' + id + '&type=' +item.product_type
  521. });
  522. }
  523. },
  524. // 轮播图跳转
  525. bannerNavToUrl(item) {
  526. // #ifdef H5
  527. if (item.wap_url.indexOf('http') > 0) {
  528. window.location.href = item.wap_url;
  529. }
  530. // #endif
  531. //测试数据没有写id,用title代替
  532. uni.navigateTo({
  533. url: item.wap_url
  534. });
  535. },
  536. loadMore(url) {
  537. console.log('加载更多');
  538. uni.navigateTo({
  539. url: url
  540. });
  541. },
  542. getCzgoods() {
  543. getCombinationList({
  544. page: 1,
  545. limit: 3
  546. }).then(res => {
  547. console.log(res, 'chaozhi++++++++++');
  548. this.czgoodList = res.data.list;
  549. });
  550. },
  551. goProduct(e) {
  552. console.log(e)
  553. uni.navigateTo({
  554. url: '/pages/product/groupBooking/productGroup?id=' + e.product_group_id
  555. });
  556. }
  557. }
  558. };
  559. </script>
  560. <style lang="scss">
  561. .Mask {
  562. width: 100%;
  563. height: 100vh;
  564. position: fixed;
  565. z-index: 99999;
  566. background-color: rgba(0, 0, 0, 0.7);
  567. top: 0;
  568. image {
  569. width: 100%;
  570. height: 100vh;
  571. }
  572. }
  573. // 热销商品
  574. .hot-goods {
  575. margin: 0 25rpx;
  576. padding: 5rpx 25rpx 30rpx 25rpx;
  577. background-color: #fff;
  578. border-radius: 10rpx;
  579. .hot-headers {
  580. margin: 25rpx 0;
  581. width: 100%;
  582. display: flex;
  583. .img {
  584. width: 32rpx;
  585. height: 32rpx;
  586. margin-right: 10rpx;
  587. }
  588. .hot-title {
  589. font-size: 30rpx;
  590. margin-right: 15rpx;
  591. }
  592. .more {
  593. line-height: 1;
  594. padding: 5rpx 10rpx 5rpx 15rpx;
  595. text-align: center;
  596. font-size: 20rpx;
  597. border-radius: 15rpx;
  598. color: #ffffff;
  599. background: linear-gradient(90deg, rgba(250, 52, 38, 1) 0%, rgba(249, 30, 83, 1) 100%);
  600. image {
  601. width: 20rpx;
  602. height: 20rpx;
  603. }
  604. }
  605. }
  606. .hot-lists {
  607. line-height: 1;
  608. display: flex;
  609. .hot-produce {
  610. width: 100%;
  611. height: 260rpx;
  612. border-top: 1px solid #f0f0f0;
  613. display: flex;
  614. padding-top: 28rpx;
  615. .produce-image {
  616. width: 200rpx;
  617. height: 200rpx;
  618. image {
  619. width: 200rpx;
  620. height: 200rpx;
  621. border: 1px solid #f0f0f0;
  622. }
  623. }
  624. .produce-content {
  625. // flex-direction: column;
  626. margin-left: 30rpx;
  627. height: 200rpx;
  628. position: relative;
  629. width: calc(100% - 200rpx - 30rpx);
  630. .produce-name {
  631. font-size: 28rpx;
  632. font-weight: bold;
  633. line-height: 35rpx;
  634. color: #343434;
  635. }
  636. .produce-info {
  637. font-size: 20rpx;
  638. margin-top: 25rpx;
  639. }
  640. .produce-price {
  641. display: flex;
  642. align-items: flex-end;
  643. color: #ff383e;
  644. font-size: 24rpx;
  645. margin-top: 70rpx;
  646. font-weight: bold;
  647. text {
  648. font-size: 36rpx;
  649. }
  650. .produce-price-1 {
  651. font-size: 22rpx;
  652. font-weight: 500;
  653. text-decoration: line-through;
  654. color: rgba(170, 170, 170, 1);
  655. margin-left: 20rpx;
  656. }
  657. }
  658. .produce-price1 {
  659. height: 100%;
  660. letter-spacing: 3rpx;
  661. color: #ff383e;
  662. font-size: 24rpx;
  663. font-weight: bold;
  664. .produce-center {
  665. width: 100%;
  666. position: absolute;
  667. bottom: 0;
  668. display: flex;
  669. justify-content: space-between;
  670. align-items: center;
  671. .kanjia_word {
  672. .word-1 {
  673. font-size: 22rpx;
  674. color: #666666;
  675. }
  676. .word-2 {
  677. font-size: 28rpx;
  678. color: #ff383e;
  679. margin-top: 10rpx;
  680. }
  681. }
  682. .kanjia_button {
  683. height: 50rpx;
  684. width: 150rpx;
  685. border-radius: 25rpx;
  686. font-size: 26rpx;
  687. font-weight: 500;
  688. color: #ff383e;
  689. border: 1px solid rgba(255, 56, 62, 1);
  690. }
  691. }
  692. }
  693. }
  694. }
  695. }
  696. }
  697. /* #ifdef MP */
  698. .mp-height {
  699. height: 44px;
  700. }
  701. .input-box {
  702. position: fixed;
  703. top: 0;
  704. left: 0;
  705. width: 100%;
  706. padding: 25rpx;
  707. background-color: #ffffff;
  708. z-index: 999;
  709. height: 44px;
  710. .iconsearch {
  711. font-size: 50rpx;
  712. }
  713. .input-content {
  714. border-radius: 99rpx;
  715. flex-grow: 1;
  716. padding: 10rpx 30rpx;
  717. background-color: rgba(231, 231, 231, 0.7);
  718. .input {
  719. flex-grow: 1;
  720. input {
  721. font-size: $font-lg;
  722. }
  723. }
  724. }
  725. .input-button {
  726. padding-left: 20rpx;
  727. font-size: $font-lg;
  728. height: 100%;
  729. }
  730. }
  731. page {
  732. // background-color: red;
  733. .cate-section {
  734. position: relative;
  735. z-index: 5;
  736. border-radius: 16rpx 16rpx 0 0;
  737. margin-top: -20rpx;
  738. }
  739. .carousel-section {
  740. padding: 0;
  741. .titleNview-placing {
  742. padding-top: 0;
  743. height: 0;
  744. }
  745. .carousel {
  746. .carousel-item {
  747. padding: 0;
  748. }
  749. }
  750. .swiper-dots {
  751. left: 45rpx;
  752. bottom: 40rpx;
  753. }
  754. }
  755. }
  756. /* #endif */
  757. page {
  758. background: #f7f8f7;
  759. }
  760. .m-t {
  761. margin-top: 16rpx;
  762. }
  763. /* 头部 轮播图 */
  764. .carousel-section {
  765. position: relative;
  766. padding-top: 10px;
  767. overflow: hidden;
  768. .titleNview-placing {
  769. height: var(--status-bar-height);
  770. padding-top: 44px;
  771. box-sizing: content-box;
  772. }
  773. .titleNview-background {
  774. position: absolute;
  775. top: 0;
  776. left: 0;
  777. width: 100%;
  778. height: 426rpx;
  779. transition: 0.4s;
  780. }
  781. .carousel {
  782. width: 100%;
  783. height: 240rpx;
  784. .carousel-item {
  785. width: 100%;
  786. height: 100%;
  787. padding: 0 28rpx;
  788. overflow: hidden;
  789. }
  790. image {
  791. width: 100%;
  792. height: 100%;
  793. border-radius: $border-radius-sm;
  794. }
  795. }
  796. }
  797. // .swiper-dots {
  798. // display: flex;
  799. // position: absolute;
  800. // left: 60rpx;
  801. // bottom: 15rpx;
  802. // width: 72rpx;
  803. // height: 36rpx;
  804. // background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
  805. // background-size: 100% 100%;
  806. // .num {
  807. // width: 36rpx;
  808. // height: 36rpx;
  809. // border-radius: 50px;
  810. // font-size: 24rpx;
  811. // color: #fff;
  812. // text-align: center;
  813. // line-height: 36rpx;
  814. // }
  815. // .sign {
  816. // position: absolute;
  817. // top: 0;
  818. // left: 50%;
  819. // line-height: 36rpx;
  820. // font-size: 12rpx;
  821. // color: #fff;
  822. // transform: translateX(-50%);
  823. // }
  824. // }
  825. /* 分类 */
  826. .cate-section {
  827. display: flex;
  828. justify-content: space-around;
  829. align-items: center;
  830. flex-wrap: wrap;
  831. padding: 30rpx 22rpx;
  832. .cate-item {
  833. display: flex;
  834. flex-direction: column;
  835. align-items: center;
  836. font-size: $font-sm + 2rpx;
  837. color: $font-color-dark;
  838. }
  839. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  840. image {
  841. width: 88rpx;
  842. height: 88rpx;
  843. margin-bottom: 14rpx;
  844. border-radius: 50%;
  845. opacity: 0.7;
  846. }
  847. }
  848. // 中间广告图片
  849. .ad-1 {
  850. width: 100%;
  851. height: 210rpx;
  852. padding: 10rpx 0;
  853. background: #fff;
  854. image {
  855. width: 100%;
  856. height: 100%;
  857. }
  858. }
  859. /*公用边框样式*/
  860. %icon {
  861. margin-right: 10rpx;
  862. display: inline-block;
  863. padding: 2rpx 10rpx;
  864. border: 1rpx solid $color-yellow;
  865. color: $color-yellow;
  866. line-height: 1;
  867. font-size: $font-base;
  868. border-radius: 10rpx;
  869. }
  870. .f-header {
  871. display: flex;
  872. align-items: center;
  873. height: 92rpx;
  874. padding: 6rpx 30rpx 8rpx;
  875. image {
  876. flex-shrink: 0;
  877. width: 80rpx;
  878. height: 80rpx;
  879. margin-right: 20rpx;
  880. }
  881. .tit-box {
  882. @extend %font-title-box;
  883. }
  884. .tit {
  885. @extend %font-title;
  886. }
  887. .iconenter {
  888. font-size: $font-lg + 2rpx;
  889. color: $font-color-light;
  890. }
  891. .f-left-icon {
  892. @extend %f-left-icon;
  893. }
  894. .iconfont {
  895. font-size: $font-sm - 2rpx;
  896. }
  897. }
  898. // 会员升级礼包
  899. .uservip {
  900. border-radius: $border-radius-sm;
  901. background-color: white;
  902. box-shadow: $box-shadow;
  903. height: 300rpx;
  904. margin: 0 30rpx;
  905. image {
  906. height: 100%;
  907. width: 300rpx;
  908. }
  909. .detail {
  910. position: relative;
  911. padding: 20rpx;
  912. height: 100%;
  913. .icon {
  914. @extend %icon;
  915. }
  916. .price-box {
  917. position: absolute;
  918. bottom: 20rpx;
  919. width: calc(100% - 40rpx);
  920. .price {
  921. font-size: $font-lg + 2rpx;
  922. font-weight: bold;
  923. color: $font-color-base;
  924. }
  925. .text {
  926. color: $color-gray;
  927. font-size: $font-sm;
  928. }
  929. }
  930. .title {
  931. font-size: $font-lg;
  932. font-weight: bold;
  933. }
  934. }
  935. }
  936. /* 猜你喜欢 */
  937. .guess-section {
  938. display: flex;
  939. flex-wrap: wrap;
  940. padding: 0 30rpx;
  941. .guess-item {
  942. overflow: hidden;
  943. display: flex;
  944. flex-direction: column;
  945. width: 48%;
  946. margin-bottom: 4%;
  947. border-radius: $border-radius-sm;
  948. background-color: white;
  949. box-shadow: $box-shadow;
  950. &:nth-child(2n + 1) {
  951. margin-right: 4%;
  952. }
  953. }
  954. .image-wrapper {
  955. width: 100%;
  956. height: 330rpx;
  957. border-radius: 3px;
  958. overflow: hidden;
  959. image {
  960. width: 100%;
  961. height: 100%;
  962. opacity: 1;
  963. }
  964. }
  965. .title {
  966. font-size: $font-base;
  967. color: $font-color-dark;
  968. font-weight: bold;
  969. line-height: 80rpx;
  970. }
  971. .price {
  972. font-size: $font-lg;
  973. color: $font-color-base;
  974. font-weight: bold;
  975. line-height: 1;
  976. line-height: 80rpx;
  977. }
  978. .icon {
  979. @extend %icon;
  980. }
  981. .detail {
  982. line-height: 1;
  983. }
  984. .tip {
  985. color: white;
  986. background-color: $color-yellow;
  987. line-height: 1.5;
  988. font-size: $font-sm;
  989. padding-left: 20rpx;
  990. }
  991. }
  992. // 推荐
  993. .recommend {
  994. width: 95%;
  995. height: 155rpx;
  996. margin: 0rpx auto;
  997. padding-top: 30rpx;
  998. font-size: 26rpx;
  999. text-align: center;
  1000. color: #333333;
  1001. align-items: flex-start;
  1002. .recommend_list {
  1003. width: 33%;
  1004. }
  1005. .re_title {
  1006. font-size: 32rpx;
  1007. font-weight: bold;
  1008. }
  1009. .re_name {
  1010. color: #999999;
  1011. padding-top: 10rpx;
  1012. }
  1013. .selected_icon {
  1014. width: 25rpx;
  1015. height: 10rpx;
  1016. margin: 0px auto;
  1017. display: none;
  1018. image {
  1019. width: 100%;
  1020. height: 100%;
  1021. }
  1022. }
  1023. .active {
  1024. display: block;
  1025. }
  1026. .active_color {
  1027. color: #dc4d46 !important;
  1028. }
  1029. }
  1030. // 列表
  1031. .list-box-h {
  1032. height: 1550rpx;
  1033. }
  1034. // 优惠券
  1035. .coupon-list {
  1036. display: inline-block;
  1037. }
  1038. .row {
  1039. border-radius: 15rpx;
  1040. margin: 25rpx;
  1041. height: 155rpx;
  1042. // width: 552rpx;
  1043. overflow: hidden;
  1044. background-color: #ffffff;
  1045. padding-right: 25rpx;
  1046. .list-interval {
  1047. border: 1px dashed $border-color-light;
  1048. height: 100%;
  1049. .top,
  1050. .bottom {
  1051. border-radius: 100rpx;
  1052. width: 30rpx;
  1053. height: 30rpx;
  1054. position: absolute;
  1055. background-color: $page-color-base;
  1056. right: -15rpx;
  1057. }
  1058. .top {
  1059. top: -18rpx;
  1060. }
  1061. .bottom {
  1062. bottom: -18rpx;
  1063. }
  1064. }
  1065. .list-money {
  1066. height: 100%;
  1067. min-width: 155rpx;
  1068. text-align: center;
  1069. image {
  1070. height: 100%;
  1071. width: 20rpx;
  1072. }
  1073. .list-money-text {
  1074. flex-grow: 1;
  1075. padding: 0 25rpx;
  1076. .tit {
  1077. text-align: center;
  1078. padding: 15rpx 0rpx;
  1079. font-size: 55rpx;
  1080. color: $color-red;
  1081. font-weight: bold;
  1082. &.noAction {
  1083. color: $font-color-light;
  1084. }
  1085. }
  1086. .price {
  1087. padding-bottom: 25rpx;
  1088. color: $font-color-light;
  1089. }
  1090. }
  1091. }
  1092. .row_list_right {
  1093. // flex-grow: 1;
  1094. min-width: 200rpx;
  1095. padding-left: 25rpx;
  1096. line-height: 1;
  1097. .right_time {
  1098. padding: 10rpx 0rpx;
  1099. color: $font-color-light;
  1100. font-size: $font-sm;
  1101. }
  1102. .right_top {
  1103. margin: 15rpx 0;
  1104. .right_name {
  1105. font-size: $font-base;
  1106. color: #bc253a;
  1107. font-weight: bold;
  1108. }
  1109. .right_title {
  1110. font-size: $font-base;
  1111. color: $font-base;
  1112. font-weight: bold;
  1113. &.noAction {
  1114. color: $font-color-light;
  1115. }
  1116. }
  1117. }
  1118. }
  1119. .right_use {
  1120. margin: 15rpx 0;
  1121. padding: 10rpx;
  1122. width: 160rpx;
  1123. text-align: center;
  1124. color: #fff;
  1125. background-color: #bc253a;
  1126. border-radius: 50rpx;
  1127. font-size: $font-sm;
  1128. &.noAction {
  1129. background-color: $font-color-light;
  1130. }
  1131. }
  1132. .iconlocation {
  1133. font-size: 36rpx;
  1134. color: $font-color-light;
  1135. }
  1136. }
  1137. .swiper-dot {
  1138. padding-top: 28rpx;
  1139. display: flex;
  1140. justify-content: center;
  1141. .swiper-dots-item {
  1142. width: 25rpx;
  1143. height: 8rpx;
  1144. border-radius: 4rpx 4rpx;
  1145. background-color: #cea19e;
  1146. margin: 0 16rpx;
  1147. // z-index: 999;
  1148. }
  1149. .action {
  1150. background-color: #901b21;
  1151. }
  1152. }
  1153. .m-tap {
  1154. height: 66rpx;
  1155. margin-top: 49rpx;
  1156. display: flex;
  1157. position: relative;
  1158. // align-content: center;
  1159. image {
  1160. // justify-items: center;
  1161. // align-items: center;
  1162. width: 295rpx;
  1163. height: 66rpx;
  1164. position: absolute;
  1165. left: 0;
  1166. right: 0;
  1167. margin: 0 auto;
  1168. }
  1169. .iconenter {
  1170. font-size: 26rpx;
  1171. color: $font-color-light;
  1172. position: absolute;
  1173. right: 25rpx;
  1174. top: 21rpx;
  1175. }
  1176. }
  1177. .sckill-wrapper {
  1178. width: 701rpx;
  1179. height: 293rpx;
  1180. background-image: url(../../static/img/sckillbg.png);
  1181. background-size: 100% 100%;
  1182. margin: 34rpx auto 37rpx;
  1183. padding: 31rpx 21rpx;
  1184. .sckill {
  1185. width: 659rpx;
  1186. height: 231rpx;
  1187. .item-wrapper {
  1188. display: flex;
  1189. .goods-box {
  1190. width: 192rpx;
  1191. height: 231rpx;
  1192. margin: 0 42rpx 0 0;
  1193. flex-shrink: 0;
  1194. .image-wrapper {
  1195. width: 192rpx;
  1196. height: 150rpx;
  1197. border-radius: 10rpx;
  1198. overflow: hidden;
  1199. image {
  1200. width: 100%;
  1201. height: 100%;
  1202. opacity: 1;
  1203. }
  1204. }
  1205. .good-title {
  1206. padding: 15rpx 0rpx 0rpx 6rpx;
  1207. font-size: 26rpx;
  1208. font-weight: 500;
  1209. color: #333333;
  1210. line-height: 26rpx;
  1211. opacity: 0.8;
  1212. white-space: nowrap;
  1213. overflow: hidden;
  1214. text-overflow: ellipsis;
  1215. }
  1216. .price {
  1217. display: flex;
  1218. height: 39rpx;
  1219. justify-content: space-between;
  1220. .now-price {
  1221. // padding-top:19rpx ;
  1222. font-size: 26rpx;
  1223. font-weight: bold;
  1224. color: #901b21;
  1225. line-height: 16rpx;
  1226. padding-left: 10rpx;
  1227. align-self: flex-end;
  1228. }
  1229. .old-price {
  1230. // padding-top:27rpx ;
  1231. align-self: flex-end;
  1232. font-size: 24rpx;
  1233. font-weight: 500;
  1234. text-decoration: line-through;
  1235. color: #9d9d9d;
  1236. line-height: 16rpx;
  1237. padding-right: 10rpx;
  1238. }
  1239. }
  1240. }
  1241. }
  1242. }
  1243. }
  1244. .groupBooking-wrapper {
  1245. width: 700rpx;
  1246. height: 781rpx;
  1247. padding: 30rpx 20rpx;
  1248. background-image: url(../../static/img/bg2.png);
  1249. background-size: 100% 100%;
  1250. margin: 35rpx auto 39rpx;
  1251. background-color: #fff;
  1252. .spgood {
  1253. width: 100%;
  1254. height: 200rpx;
  1255. // background-color: #4CD964;
  1256. display: flex;
  1257. .left-wrapper {
  1258. width: 200rpx;
  1259. height: 200rpx;
  1260. image {
  1261. width: 200rpx;
  1262. height: 200rpx;
  1263. border-radius: 20rpx;
  1264. }
  1265. }
  1266. .right-wrapper {
  1267. padding-left: 22rpx;
  1268. width: 100%;
  1269. height: 200rpx;
  1270. // background-color: red;
  1271. .right-title {
  1272. padding-top: 8rpx;
  1273. width: 358rpx;
  1274. // height: 29rpx;
  1275. font-size: 30rpx;
  1276. font-weight: bold;
  1277. color: #333333;
  1278. }
  1279. .right-addr {
  1280. margin-top: 18rpx;
  1281. display: flex;
  1282. .shop-img {
  1283. width: 26rpx;
  1284. height: 23rpx;
  1285. margin: 0 4rpx 0 0;
  1286. image {
  1287. width: 100%;
  1288. height: 100%;
  1289. }
  1290. }
  1291. .shop-name {
  1292. // height: 22rpx;
  1293. font-size: 22rpx;
  1294. font-weight: 500;
  1295. color: #dcb876;
  1296. }
  1297. .point-img {
  1298. width: 16rpx;
  1299. height: 23rpx;
  1300. margin: 0 4rpx 0 14rpx;
  1301. image {
  1302. width: 100%;
  1303. height: 21rpx;
  1304. }
  1305. }
  1306. .point-disc {
  1307. font-size: 24rpx;
  1308. font-weight: 500;
  1309. padding-top: 3rpx;
  1310. color: #dcb876;
  1311. }
  1312. }
  1313. .ex-addr {
  1314. margin-top: 16rpx;
  1315. padding-left: 22rpx;
  1316. height: 22rpx;
  1317. font-size: 22rpx;
  1318. font-weight: 500;
  1319. color: #dcb876;
  1320. image {
  1321. height: 22rpx;
  1322. }
  1323. .name-img {
  1324. // vertical-align: ;
  1325. width: 26rpx;
  1326. margin: 0 4rpx -3rpx 0;
  1327. }
  1328. .point-img {
  1329. width: 16rpx;
  1330. margin: 0 4rpx -3rpx 14rpx;
  1331. }
  1332. }
  1333. .right-bottom {
  1334. margin-top: 47rpx;
  1335. // justify-items: flex-end;
  1336. display: flex;
  1337. justify-content: space-between;
  1338. .sp-price {
  1339. height: 52rpx;
  1340. display: flex;
  1341. vertical-align: bottom;
  1342. line-height: 52rpx;
  1343. .now-price {
  1344. font-size: 30rpx;
  1345. font-weight: bold;
  1346. color: #901b21;
  1347. margin-right: 16rpx;
  1348. }
  1349. .old-price {
  1350. font-size: 22rpx;
  1351. font-weight: 500;
  1352. text-decoration: line-through;
  1353. color: #aaaaaa;
  1354. }
  1355. }
  1356. .sp-btn {
  1357. width: 137rpx;
  1358. height: 52rpx;
  1359. border-radius: 26rpx;
  1360. font-size: 26rpx;
  1361. text-align: center;
  1362. line-height: 52rpx;
  1363. font-weight: 400;
  1364. color: #ffffff;
  1365. background-color: #901b21;
  1366. }
  1367. }
  1368. }
  1369. }
  1370. .jg {
  1371. margin: 30rpx auto 29rpx;
  1372. width: 660rpx;
  1373. height: 1px;
  1374. background: #ecd49e;
  1375. opacity: 0.5;
  1376. }
  1377. }
  1378. .exchange-wrapper {
  1379. // background-color: #fff;
  1380. width: 696rpx;
  1381. // height: 100rpx;
  1382. margin: 37rpx auto 39rpx;
  1383. // padding: 0 27rpx;
  1384. display: flex;
  1385. justify-content: space-between;
  1386. position: relative;
  1387. .exgood-wrapper {
  1388. width: 342rpx;
  1389. height: 540rpx;
  1390. box-shadow: 0px 4px 18px 0px rgba(144, 27, 33, 0.13);
  1391. background-color: #fff;
  1392. .ex-img-wrapper {
  1393. width: 342rpx;
  1394. height: 338rpx;
  1395. image {
  1396. width: 100%;
  1397. height: 100%;
  1398. }
  1399. }
  1400. .exgood-title {
  1401. margin-top: 33rpx;
  1402. padding-left: 21rpx;
  1403. font-size: 30rpx;
  1404. font-weight: bold;
  1405. color: #333333;
  1406. white-space: nowrap;
  1407. overflow: hidden;
  1408. text-overflow: ellipsis;
  1409. }
  1410. .ex-addr {
  1411. margin-top: 16rpx;
  1412. padding-left: 22rpx;
  1413. height: 22rpx;
  1414. font-size: 22rpx;
  1415. font-weight: 500;
  1416. color: #dcb876;
  1417. image {
  1418. height: 22rpx;
  1419. }
  1420. .name-img {
  1421. width: 26rpx;
  1422. margin: 0 4rpx -3rpx 0;
  1423. }
  1424. .point-img {
  1425. width: 16rpx;
  1426. margin: 0 4rpx -3rpx 14rpx;
  1427. }
  1428. }
  1429. .ex-price {
  1430. margin-top: 17rpx;
  1431. padding-left: 22rpx;
  1432. font-size: 36rpx;
  1433. font-weight: bold;
  1434. color: #901b21;
  1435. vertical-align: bottom;
  1436. .tx1 {
  1437. font-size: 24rpx;
  1438. vertical-align: baseline;
  1439. position: relative;
  1440. top: -2rpx;
  1441. }
  1442. .tx2 {
  1443. margin-left: 9rpx;
  1444. font-size: 26rpx;
  1445. font-weight: 500;
  1446. text-decoration: line-through;
  1447. color: #9d9d9d;
  1448. line-height: 35rpx;
  1449. }
  1450. }
  1451. .bg {
  1452. position: absolute;
  1453. top: 0;
  1454. width: 342rpx;
  1455. height: 540rpx;
  1456. background-image: url(../../static/img/bg3.png);
  1457. background-size: 100% 100%;
  1458. }
  1459. }
  1460. }
  1461. .titleNview-placing {
  1462. height: var(--status-bar-height);
  1463. padding-top: 44px;
  1464. box-sizing: content-box;
  1465. }
  1466. .swiper-wrapper {
  1467. width: 720rpx;
  1468. height: 370rpx;
  1469. border-radius: 15rpx;
  1470. // background-color: #bfa;
  1471. overflow: hidden;
  1472. margin: 0 auto;
  1473. .swiper {
  1474. width: 100%;
  1475. height: 370rpx;
  1476. .swiper-item {
  1477. width: 100%;
  1478. height: 100%;
  1479. // box-sizing: content-box;
  1480. // padding:0 10rpx;
  1481. image {
  1482. width: 100%;
  1483. height: 100%;
  1484. border-radius: $border-radius-sm;
  1485. }
  1486. }
  1487. }
  1488. }
  1489. .container {
  1490. // background-color: red;
  1491. background-image: url(../../static/img/main_bg.png);
  1492. background-size: 100%;
  1493. }
  1494. .jgshow {
  1495. display: none;
  1496. }
  1497. </style>