index.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610
  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:1}).then( ({data})=> {
  498. console.log(data,"data+++++++++--------------")
  499. } )
  500. },
  501. //轮播图切换修改背景色
  502. swiperChange(e) {
  503. const index = e.detail.current;
  504. this.swiperCurrent = index;
  505. this.titleNViewBackground = this.carouselList[index].background;
  506. },
  507. //详情页
  508. navToDetailPage(item) {
  509. let id = item.id;
  510. uni.navigateTo({
  511. url: '/pages/product/product?id=' + id
  512. });
  513. },
  514. // 轮播图跳转
  515. bannerNavToUrl(item) {
  516. // #ifdef H5
  517. if (item.wap_url.indexOf('http') > 0) {
  518. window.location.href = item.wap_url;
  519. }
  520. // #endif
  521. //测试数据没有写id,用title代替
  522. uni.navigateTo({
  523. url: item.wap_url
  524. });
  525. },
  526. loadMore(url) {
  527. console.log('加载更多');
  528. uni.navigateTo({
  529. url: url
  530. });
  531. },
  532. getCzgoods() {
  533. getCombinationList({
  534. page: 1,
  535. limit: 3
  536. }).then(res => {
  537. console.log(res, 'chaozhi++++++++++');
  538. this.czgoodList = res.data.list;
  539. });
  540. },
  541. goProduct(e) {
  542. console.log(e)
  543. uni.navigateTo({
  544. url: '/pages/product/groupBooking/productGroup?id=' + e.product_group_id
  545. });
  546. }
  547. }
  548. };
  549. </script>
  550. <style lang="scss">
  551. .Mask {
  552. width: 100%;
  553. height: 100vh;
  554. position: fixed;
  555. z-index: 99999;
  556. background-color: rgba(0, 0, 0, 0.7);
  557. top: 0;
  558. image {
  559. width: 100%;
  560. height: 100vh;
  561. }
  562. }
  563. // 热销商品
  564. .hot-goods {
  565. margin: 0 25rpx;
  566. padding: 5rpx 25rpx 30rpx 25rpx;
  567. background-color: #fff;
  568. border-radius: 10rpx;
  569. .hot-headers {
  570. margin: 25rpx 0;
  571. width: 100%;
  572. display: flex;
  573. .img {
  574. width: 32rpx;
  575. height: 32rpx;
  576. margin-right: 10rpx;
  577. }
  578. .hot-title {
  579. font-size: 30rpx;
  580. margin-right: 15rpx;
  581. }
  582. .more {
  583. line-height: 1;
  584. padding: 5rpx 10rpx 5rpx 15rpx;
  585. text-align: center;
  586. font-size: 20rpx;
  587. border-radius: 15rpx;
  588. color: #ffffff;
  589. background: linear-gradient(90deg, rgba(250, 52, 38, 1) 0%, rgba(249, 30, 83, 1) 100%);
  590. image {
  591. width: 20rpx;
  592. height: 20rpx;
  593. }
  594. }
  595. }
  596. .hot-lists {
  597. line-height: 1;
  598. display: flex;
  599. .hot-produce {
  600. width: 100%;
  601. height: 260rpx;
  602. border-top: 1px solid #f0f0f0;
  603. display: flex;
  604. padding-top: 28rpx;
  605. .produce-image {
  606. width: 200rpx;
  607. height: 200rpx;
  608. image {
  609. width: 200rpx;
  610. height: 200rpx;
  611. border: 1px solid #f0f0f0;
  612. }
  613. }
  614. .produce-content {
  615. // flex-direction: column;
  616. margin-left: 30rpx;
  617. height: 200rpx;
  618. position: relative;
  619. width: calc(100% - 200rpx - 30rpx);
  620. .produce-name {
  621. font-size: 28rpx;
  622. font-weight: bold;
  623. line-height: 35rpx;
  624. color: #343434;
  625. }
  626. .produce-info {
  627. font-size: 20rpx;
  628. margin-top: 25rpx;
  629. }
  630. .produce-price {
  631. display: flex;
  632. align-items: flex-end;
  633. color: #ff383e;
  634. font-size: 24rpx;
  635. margin-top: 70rpx;
  636. font-weight: bold;
  637. text {
  638. font-size: 36rpx;
  639. }
  640. .produce-price-1 {
  641. font-size: 22rpx;
  642. font-weight: 500;
  643. text-decoration: line-through;
  644. color: rgba(170, 170, 170, 1);
  645. margin-left: 20rpx;
  646. }
  647. }
  648. .produce-price1 {
  649. height: 100%;
  650. letter-spacing: 3rpx;
  651. color: #ff383e;
  652. font-size: 24rpx;
  653. font-weight: bold;
  654. .produce-center {
  655. width: 100%;
  656. position: absolute;
  657. bottom: 0;
  658. display: flex;
  659. justify-content: space-between;
  660. align-items: center;
  661. .kanjia_word {
  662. .word-1 {
  663. font-size: 22rpx;
  664. color: #666666;
  665. }
  666. .word-2 {
  667. font-size: 28rpx;
  668. color: #ff383e;
  669. margin-top: 10rpx;
  670. }
  671. }
  672. .kanjia_button {
  673. height: 50rpx;
  674. width: 150rpx;
  675. border-radius: 25rpx;
  676. font-size: 26rpx;
  677. font-weight: 500;
  678. color: #ff383e;
  679. border: 1px solid rgba(255, 56, 62, 1);
  680. }
  681. }
  682. }
  683. }
  684. }
  685. }
  686. }
  687. /* #ifdef MP */
  688. .mp-height {
  689. height: 44px;
  690. }
  691. .input-box {
  692. position: fixed;
  693. top: 0;
  694. left: 0;
  695. width: 100%;
  696. padding: 25rpx;
  697. background-color: #ffffff;
  698. z-index: 999;
  699. height: 44px;
  700. .iconsearch {
  701. font-size: 50rpx;
  702. }
  703. .input-content {
  704. border-radius: 99rpx;
  705. flex-grow: 1;
  706. padding: 10rpx 30rpx;
  707. background-color: rgba(231, 231, 231, 0.7);
  708. .input {
  709. flex-grow: 1;
  710. input {
  711. font-size: $font-lg;
  712. }
  713. }
  714. }
  715. .input-button {
  716. padding-left: 20rpx;
  717. font-size: $font-lg;
  718. height: 100%;
  719. }
  720. }
  721. page {
  722. // background-color: red;
  723. .cate-section {
  724. position: relative;
  725. z-index: 5;
  726. border-radius: 16rpx 16rpx 0 0;
  727. margin-top: -20rpx;
  728. }
  729. .carousel-section {
  730. padding: 0;
  731. .titleNview-placing {
  732. padding-top: 0;
  733. height: 0;
  734. }
  735. .carousel {
  736. .carousel-item {
  737. padding: 0;
  738. }
  739. }
  740. .swiper-dots {
  741. left: 45rpx;
  742. bottom: 40rpx;
  743. }
  744. }
  745. }
  746. /* #endif */
  747. page {
  748. background: #f7f8f7;
  749. }
  750. .m-t {
  751. margin-top: 16rpx;
  752. }
  753. /* 头部 轮播图 */
  754. .carousel-section {
  755. position: relative;
  756. padding-top: 10px;
  757. overflow: hidden;
  758. .titleNview-placing {
  759. height: var(--status-bar-height);
  760. padding-top: 44px;
  761. box-sizing: content-box;
  762. }
  763. .titleNview-background {
  764. position: absolute;
  765. top: 0;
  766. left: 0;
  767. width: 100%;
  768. height: 426rpx;
  769. transition: 0.4s;
  770. }
  771. .carousel {
  772. width: 100%;
  773. height: 240rpx;
  774. .carousel-item {
  775. width: 100%;
  776. height: 100%;
  777. padding: 0 28rpx;
  778. overflow: hidden;
  779. }
  780. image {
  781. width: 100%;
  782. height: 100%;
  783. border-radius: $border-radius-sm;
  784. }
  785. }
  786. }
  787. // .swiper-dots {
  788. // display: flex;
  789. // position: absolute;
  790. // left: 60rpx;
  791. // bottom: 15rpx;
  792. // width: 72rpx;
  793. // height: 36rpx;
  794. // 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==);
  795. // background-size: 100% 100%;
  796. // .num {
  797. // width: 36rpx;
  798. // height: 36rpx;
  799. // border-radius: 50px;
  800. // font-size: 24rpx;
  801. // color: #fff;
  802. // text-align: center;
  803. // line-height: 36rpx;
  804. // }
  805. // .sign {
  806. // position: absolute;
  807. // top: 0;
  808. // left: 50%;
  809. // line-height: 36rpx;
  810. // font-size: 12rpx;
  811. // color: #fff;
  812. // transform: translateX(-50%);
  813. // }
  814. // }
  815. /* 分类 */
  816. .cate-section {
  817. display: flex;
  818. justify-content: space-around;
  819. align-items: center;
  820. flex-wrap: wrap;
  821. padding: 30rpx 22rpx;
  822. .cate-item {
  823. display: flex;
  824. flex-direction: column;
  825. align-items: center;
  826. font-size: $font-sm + 2rpx;
  827. color: $font-color-dark;
  828. }
  829. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  830. image {
  831. width: 88rpx;
  832. height: 88rpx;
  833. margin-bottom: 14rpx;
  834. border-radius: 50%;
  835. opacity: 0.7;
  836. }
  837. }
  838. // 中间广告图片
  839. .ad-1 {
  840. width: 100%;
  841. height: 210rpx;
  842. padding: 10rpx 0;
  843. background: #fff;
  844. image {
  845. width: 100%;
  846. height: 100%;
  847. }
  848. }
  849. /*公用边框样式*/
  850. %icon {
  851. margin-right: 10rpx;
  852. display: inline-block;
  853. padding: 2rpx 10rpx;
  854. border: 1rpx solid $color-yellow;
  855. color: $color-yellow;
  856. line-height: 1;
  857. font-size: $font-base;
  858. border-radius: 10rpx;
  859. }
  860. .f-header {
  861. display: flex;
  862. align-items: center;
  863. height: 92rpx;
  864. padding: 6rpx 30rpx 8rpx;
  865. image {
  866. flex-shrink: 0;
  867. width: 80rpx;
  868. height: 80rpx;
  869. margin-right: 20rpx;
  870. }
  871. .tit-box {
  872. @extend %font-title-box;
  873. }
  874. .tit {
  875. @extend %font-title;
  876. }
  877. .iconenter {
  878. font-size: $font-lg + 2rpx;
  879. color: $font-color-light;
  880. }
  881. .f-left-icon {
  882. @extend %f-left-icon;
  883. }
  884. .iconfont {
  885. font-size: $font-sm - 2rpx;
  886. }
  887. }
  888. // 会员升级礼包
  889. .uservip {
  890. border-radius: $border-radius-sm;
  891. background-color: white;
  892. box-shadow: $box-shadow;
  893. height: 300rpx;
  894. margin: 0 30rpx;
  895. image {
  896. height: 100%;
  897. width: 300rpx;
  898. }
  899. .detail {
  900. position: relative;
  901. padding: 20rpx;
  902. height: 100%;
  903. .icon {
  904. @extend %icon;
  905. }
  906. .price-box {
  907. position: absolute;
  908. bottom: 20rpx;
  909. width: calc(100% - 40rpx);
  910. .price {
  911. font-size: $font-lg + 2rpx;
  912. font-weight: bold;
  913. color: $font-color-base;
  914. }
  915. .text {
  916. color: $color-gray;
  917. font-size: $font-sm;
  918. }
  919. }
  920. .title {
  921. font-size: $font-lg;
  922. font-weight: bold;
  923. }
  924. }
  925. }
  926. /* 猜你喜欢 */
  927. .guess-section {
  928. display: flex;
  929. flex-wrap: wrap;
  930. padding: 0 30rpx;
  931. .guess-item {
  932. overflow: hidden;
  933. display: flex;
  934. flex-direction: column;
  935. width: 48%;
  936. margin-bottom: 4%;
  937. border-radius: $border-radius-sm;
  938. background-color: white;
  939. box-shadow: $box-shadow;
  940. &:nth-child(2n + 1) {
  941. margin-right: 4%;
  942. }
  943. }
  944. .image-wrapper {
  945. width: 100%;
  946. height: 330rpx;
  947. border-radius: 3px;
  948. overflow: hidden;
  949. image {
  950. width: 100%;
  951. height: 100%;
  952. opacity: 1;
  953. }
  954. }
  955. .title {
  956. font-size: $font-base;
  957. color: $font-color-dark;
  958. font-weight: bold;
  959. line-height: 80rpx;
  960. }
  961. .price {
  962. font-size: $font-lg;
  963. color: $font-color-base;
  964. font-weight: bold;
  965. line-height: 1;
  966. line-height: 80rpx;
  967. }
  968. .icon {
  969. @extend %icon;
  970. }
  971. .detail {
  972. line-height: 1;
  973. }
  974. .tip {
  975. color: white;
  976. background-color: $color-yellow;
  977. line-height: 1.5;
  978. font-size: $font-sm;
  979. padding-left: 20rpx;
  980. }
  981. }
  982. // 推荐
  983. .recommend {
  984. width: 95%;
  985. height: 155rpx;
  986. margin: 0rpx auto;
  987. padding-top: 30rpx;
  988. font-size: 26rpx;
  989. text-align: center;
  990. color: #333333;
  991. align-items: flex-start;
  992. .recommend_list {
  993. width: 33%;
  994. }
  995. .re_title {
  996. font-size: 32rpx;
  997. font-weight: bold;
  998. }
  999. .re_name {
  1000. color: #999999;
  1001. padding-top: 10rpx;
  1002. }
  1003. .selected_icon {
  1004. width: 25rpx;
  1005. height: 10rpx;
  1006. margin: 0px auto;
  1007. display: none;
  1008. image {
  1009. width: 100%;
  1010. height: 100%;
  1011. }
  1012. }
  1013. .active {
  1014. display: block;
  1015. }
  1016. .active_color {
  1017. color: #dc4d46 !important;
  1018. }
  1019. }
  1020. // 列表
  1021. .list-box-h {
  1022. height: 1550rpx;
  1023. }
  1024. // 优惠券
  1025. .coupon-list {
  1026. display: inline-block;
  1027. }
  1028. .row {
  1029. border-radius: 15rpx;
  1030. margin: 25rpx;
  1031. height: 155rpx;
  1032. // width: 552rpx;
  1033. overflow: hidden;
  1034. background-color: #ffffff;
  1035. padding-right: 25rpx;
  1036. .list-interval {
  1037. border: 1px dashed $border-color-light;
  1038. height: 100%;
  1039. .top,
  1040. .bottom {
  1041. border-radius: 100rpx;
  1042. width: 30rpx;
  1043. height: 30rpx;
  1044. position: absolute;
  1045. background-color: $page-color-base;
  1046. right: -15rpx;
  1047. }
  1048. .top {
  1049. top: -18rpx;
  1050. }
  1051. .bottom {
  1052. bottom: -18rpx;
  1053. }
  1054. }
  1055. .list-money {
  1056. height: 100%;
  1057. min-width: 155rpx;
  1058. text-align: center;
  1059. image {
  1060. height: 100%;
  1061. width: 20rpx;
  1062. }
  1063. .list-money-text {
  1064. flex-grow: 1;
  1065. padding: 0 25rpx;
  1066. .tit {
  1067. text-align: center;
  1068. padding: 15rpx 0rpx;
  1069. font-size: 55rpx;
  1070. color: $color-red;
  1071. font-weight: bold;
  1072. &.noAction {
  1073. color: $font-color-light;
  1074. }
  1075. }
  1076. .price {
  1077. padding-bottom: 25rpx;
  1078. color: $font-color-light;
  1079. }
  1080. }
  1081. }
  1082. .row_list_right {
  1083. // flex-grow: 1;
  1084. min-width: 200rpx;
  1085. padding-left: 25rpx;
  1086. line-height: 1;
  1087. .right_time {
  1088. padding: 10rpx 0rpx;
  1089. color: $font-color-light;
  1090. font-size: $font-sm;
  1091. }
  1092. .right_top {
  1093. margin: 15rpx 0;
  1094. .right_name {
  1095. font-size: $font-base;
  1096. color: #bc253a;
  1097. font-weight: bold;
  1098. }
  1099. .right_title {
  1100. font-size: $font-base;
  1101. color: $font-base;
  1102. font-weight: bold;
  1103. &.noAction {
  1104. color: $font-color-light;
  1105. }
  1106. }
  1107. }
  1108. }
  1109. .right_use {
  1110. margin: 15rpx 0;
  1111. padding: 10rpx;
  1112. width: 160rpx;
  1113. text-align: center;
  1114. color: #fff;
  1115. background-color: #bc253a;
  1116. border-radius: 50rpx;
  1117. font-size: $font-sm;
  1118. &.noAction {
  1119. background-color: $font-color-light;
  1120. }
  1121. }
  1122. .iconlocation {
  1123. font-size: 36rpx;
  1124. color: $font-color-light;
  1125. }
  1126. }
  1127. .swiper-dot {
  1128. padding-top: 28rpx;
  1129. display: flex;
  1130. justify-content: center;
  1131. .swiper-dots-item {
  1132. width: 25rpx;
  1133. height: 8rpx;
  1134. border-radius: 4rpx 4rpx;
  1135. background-color: #cea19e;
  1136. margin: 0 16rpx;
  1137. // z-index: 999;
  1138. }
  1139. .action {
  1140. background-color: #901b21;
  1141. }
  1142. }
  1143. .m-tap {
  1144. height: 66rpx;
  1145. margin-top: 49rpx;
  1146. display: flex;
  1147. position: relative;
  1148. // align-content: center;
  1149. image {
  1150. // justify-items: center;
  1151. // align-items: center;
  1152. width: 295rpx;
  1153. height: 66rpx;
  1154. position: absolute;
  1155. left: 0;
  1156. right: 0;
  1157. margin: 0 auto;
  1158. }
  1159. .iconenter {
  1160. font-size: 26rpx;
  1161. color: $font-color-light;
  1162. position: absolute;
  1163. right: 25rpx;
  1164. top: 21rpx;
  1165. }
  1166. }
  1167. .sckill-wrapper {
  1168. width: 701rpx;
  1169. height: 293rpx;
  1170. background-image: url(../../static/img/sckillbg.png);
  1171. background-size: 100% 100%;
  1172. margin: 34rpx auto 37rpx;
  1173. padding: 31rpx 21rpx;
  1174. .sckill {
  1175. width: 659rpx;
  1176. height: 231rpx;
  1177. .item-wrapper {
  1178. display: flex;
  1179. .goods-box {
  1180. width: 192rpx;
  1181. height: 231rpx;
  1182. margin: 0 42rpx 0 0;
  1183. flex-shrink: 0;
  1184. .image-wrapper {
  1185. width: 192rpx;
  1186. height: 150rpx;
  1187. border-radius: 10rpx;
  1188. overflow: hidden;
  1189. image {
  1190. width: 100%;
  1191. height: 100%;
  1192. opacity: 1;
  1193. }
  1194. }
  1195. .good-title {
  1196. padding: 15rpx 0rpx 0rpx 6rpx;
  1197. font-size: 26rpx;
  1198. font-weight: 500;
  1199. color: #333333;
  1200. line-height: 26rpx;
  1201. opacity: 0.8;
  1202. white-space: nowrap;
  1203. overflow: hidden;
  1204. text-overflow: ellipsis;
  1205. }
  1206. .price {
  1207. display: flex;
  1208. height: 39rpx;
  1209. justify-content: space-between;
  1210. .now-price {
  1211. // padding-top:19rpx ;
  1212. font-size: 26rpx;
  1213. font-weight: bold;
  1214. color: #901b21;
  1215. line-height: 16rpx;
  1216. padding-left: 10rpx;
  1217. align-self: flex-end;
  1218. }
  1219. .old-price {
  1220. // padding-top:27rpx ;
  1221. align-self: flex-end;
  1222. font-size: 24rpx;
  1223. font-weight: 500;
  1224. text-decoration: line-through;
  1225. color: #9d9d9d;
  1226. line-height: 16rpx;
  1227. padding-right: 10rpx;
  1228. }
  1229. }
  1230. }
  1231. }
  1232. }
  1233. }
  1234. .groupBooking-wrapper {
  1235. width: 700rpx;
  1236. height: 781rpx;
  1237. padding: 30rpx 20rpx;
  1238. background-image: url(../../static/img/bg2.png);
  1239. background-size: 100% 100%;
  1240. margin: 35rpx auto 39rpx;
  1241. background-color: #fff;
  1242. .spgood {
  1243. width: 100%;
  1244. height: 200rpx;
  1245. // background-color: #4CD964;
  1246. display: flex;
  1247. .left-wrapper {
  1248. width: 200rpx;
  1249. height: 200rpx;
  1250. image {
  1251. width: 200rpx;
  1252. height: 200rpx;
  1253. border-radius: 20rpx;
  1254. }
  1255. }
  1256. .right-wrapper {
  1257. padding-left: 22rpx;
  1258. width: 100%;
  1259. height: 200rpx;
  1260. // background-color: red;
  1261. .right-title {
  1262. padding-top: 8rpx;
  1263. width: 358rpx;
  1264. // height: 29rpx;
  1265. font-size: 30rpx;
  1266. font-weight: bold;
  1267. color: #333333;
  1268. }
  1269. .right-addr {
  1270. margin-top: 18rpx;
  1271. display: flex;
  1272. .shop-img {
  1273. width: 26rpx;
  1274. height: 23rpx;
  1275. margin: 0 4rpx 0 0;
  1276. image {
  1277. width: 100%;
  1278. height: 100%;
  1279. }
  1280. }
  1281. .shop-name {
  1282. // height: 22rpx;
  1283. font-size: 22rpx;
  1284. font-weight: 500;
  1285. color: #dcb876;
  1286. }
  1287. .point-img {
  1288. width: 16rpx;
  1289. height: 23rpx;
  1290. margin: 0 4rpx 0 14rpx;
  1291. image {
  1292. width: 100%;
  1293. height: 21rpx;
  1294. }
  1295. }
  1296. .point-disc {
  1297. font-size: 24rpx;
  1298. font-weight: 500;
  1299. padding-top: 3rpx;
  1300. color: #dcb876;
  1301. }
  1302. }
  1303. .ex-addr {
  1304. margin-top: 16rpx;
  1305. padding-left: 22rpx;
  1306. height: 22rpx;
  1307. font-size: 22rpx;
  1308. font-weight: 500;
  1309. color: #dcb876;
  1310. image {
  1311. height: 22rpx;
  1312. }
  1313. .name-img {
  1314. // vertical-align: ;
  1315. width: 26rpx;
  1316. margin: 0 4rpx -3rpx 0;
  1317. }
  1318. .point-img {
  1319. width: 16rpx;
  1320. margin: 0 4rpx -3rpx 14rpx;
  1321. }
  1322. }
  1323. .right-bottom {
  1324. margin-top: 47rpx;
  1325. // justify-items: flex-end;
  1326. display: flex;
  1327. justify-content: space-between;
  1328. .sp-price {
  1329. height: 52rpx;
  1330. display: flex;
  1331. vertical-align: bottom;
  1332. line-height: 52rpx;
  1333. .now-price {
  1334. font-size: 30rpx;
  1335. font-weight: bold;
  1336. color: #901b21;
  1337. margin-right: 16rpx;
  1338. }
  1339. .old-price {
  1340. font-size: 22rpx;
  1341. font-weight: 500;
  1342. text-decoration: line-through;
  1343. color: #aaaaaa;
  1344. }
  1345. }
  1346. .sp-btn {
  1347. width: 137rpx;
  1348. height: 52rpx;
  1349. border-radius: 26rpx;
  1350. font-size: 26rpx;
  1351. text-align: center;
  1352. line-height: 52rpx;
  1353. font-weight: 400;
  1354. color: #ffffff;
  1355. background-color: #901b21;
  1356. }
  1357. }
  1358. }
  1359. }
  1360. .jg {
  1361. margin: 30rpx auto 29rpx;
  1362. width: 660rpx;
  1363. height: 1px;
  1364. background: #ecd49e;
  1365. opacity: 0.5;
  1366. }
  1367. }
  1368. .exchange-wrapper {
  1369. // background-color: #fff;
  1370. width: 696rpx;
  1371. // height: 100rpx;
  1372. margin: 37rpx auto 39rpx;
  1373. // padding: 0 27rpx;
  1374. display: flex;
  1375. justify-content: space-between;
  1376. position: relative;
  1377. .exgood-wrapper {
  1378. width: 342rpx;
  1379. height: 540rpx;
  1380. box-shadow: 0px 4px 18px 0px rgba(144, 27, 33, 0.13);
  1381. background-color: #fff;
  1382. .ex-img-wrapper {
  1383. width: 342rpx;
  1384. height: 338rpx;
  1385. image {
  1386. width: 100%;
  1387. height: 100%;
  1388. }
  1389. }
  1390. .exgood-title {
  1391. margin-top: 33rpx;
  1392. padding-left: 21rpx;
  1393. font-size: 30rpx;
  1394. font-weight: bold;
  1395. color: #333333;
  1396. white-space: nowrap;
  1397. overflow: hidden;
  1398. text-overflow: ellipsis;
  1399. }
  1400. .ex-addr {
  1401. margin-top: 16rpx;
  1402. padding-left: 22rpx;
  1403. height: 22rpx;
  1404. font-size: 22rpx;
  1405. font-weight: 500;
  1406. color: #dcb876;
  1407. image {
  1408. height: 22rpx;
  1409. }
  1410. .name-img {
  1411. width: 26rpx;
  1412. margin: 0 4rpx -3rpx 0;
  1413. }
  1414. .point-img {
  1415. width: 16rpx;
  1416. margin: 0 4rpx -3rpx 14rpx;
  1417. }
  1418. }
  1419. .ex-price {
  1420. margin-top: 17rpx;
  1421. padding-left: 22rpx;
  1422. font-size: 36rpx;
  1423. font-weight: bold;
  1424. color: #901b21;
  1425. vertical-align: bottom;
  1426. .tx1 {
  1427. font-size: 24rpx;
  1428. vertical-align: baseline;
  1429. position: relative;
  1430. top: -2rpx;
  1431. }
  1432. .tx2 {
  1433. margin-left: 9rpx;
  1434. font-size: 26rpx;
  1435. font-weight: 500;
  1436. text-decoration: line-through;
  1437. color: #9d9d9d;
  1438. line-height: 35rpx;
  1439. }
  1440. }
  1441. .bg {
  1442. position: absolute;
  1443. top: 0;
  1444. width: 342rpx;
  1445. height: 540rpx;
  1446. background-image: url(../../static/img/bg3.png);
  1447. background-size: 100% 100%;
  1448. }
  1449. }
  1450. }
  1451. .titleNview-placing {
  1452. height: var(--status-bar-height);
  1453. padding-top: 44px;
  1454. box-sizing: content-box;
  1455. }
  1456. .swiper-wrapper {
  1457. width: 720rpx;
  1458. height: 370rpx;
  1459. border-radius: 15rpx;
  1460. // background-color: #bfa;
  1461. overflow: hidden;
  1462. margin: 0 auto;
  1463. .swiper {
  1464. width: 100%;
  1465. height: 370rpx;
  1466. .swiper-item {
  1467. width: 100%;
  1468. height: 100%;
  1469. // box-sizing: content-box;
  1470. // padding:0 10rpx;
  1471. image {
  1472. width: 100%;
  1473. height: 100%;
  1474. border-radius: $border-radius-sm;
  1475. }
  1476. }
  1477. }
  1478. }
  1479. .container {
  1480. // background-color: red;
  1481. background-image: url(../../static/img/main_bg.png);
  1482. background-size: 100%;
  1483. }
  1484. .jgshow {
  1485. display: none;
  1486. }
  1487. </style>