index.vue 36 KB

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