good-hot.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001
  1. <template>
  2. <view class="container floor clearfix">
  3. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading="true"
  4. :loadingType="5" />
  5. <view v-else>
  6. <view class="container-topcontent">
  7. <view class="topcontent-image" :style="{ paddingTop: StatusBar + 'px' }">
  8. <view class="topcontent-title" :class="fixedClass"
  9. :style="{ paddingTop: fixedClass == 'fixed' ? StatusBar + 'px' : '0'}">
  10. 采美新品橱窗
  11. <view class="topcontent-title-icon" @click="haveBack"
  12. :style="{ top: fixedClass == 'fixed' ? (StatusBar+7) + 'px' : '14rpx'}">
  13. <text class="iconfont icon-fanhui"></text>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="topcontent-swiper" :style="{ top: StatusBar + 44 + 'px' }">
  18. <view class="swiper-goods">
  19. <view class="swiper-banner-box">
  20. <swiper class="tui-banner-swiper tui-banner tui-skeleton-fillet" :autoplay="true"
  21. :interval="5000" :duration="500" @change="swiperChange" :circular="true">
  22. <swiper-item v-for="(item, index) in topGoodList" :key="index"
  23. @click.stop="navToDetailPage(item.productId)">
  24. <view class="swiper-goods-image">
  25. <image :src="item.mainImage" mode="scaleToFill" />
  26. </view>
  27. <view class="swiper-goods-info">
  28. <view class="swiper-goods-name"> {{ item.name }} </view>
  29. <view class="swiper-goods-btn">
  30. <view class="btn"> 立即购买 </view>
  31. </view>
  32. </view>
  33. </swiper-item>
  34. </swiper>
  35. <view class="swiper__dots-box" v-if="topGoodList.length > 1">
  36. <view v-for="(item, idx) in topGoodList" :key="idx"
  37. :class="[idx === current ? 'swiper__dots-long' : 'none']" :data-index="current"
  38. class="swiper__dots-item">
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="container-screen">
  46. <view class="container-screen-box" @click="showDropShow">
  47. <view class="screen-box-em">品牌</view>
  48. <view class="screen-box-mi" v-if="!dropShow">
  49. <view class="screen-list" :class="isAllcheckedBrand ? 'active' : ''">全部</view>
  50. <view class="screen-list" v-for="(brand, index) in brandList" :key="index" v-if="index < 2">
  51. {{ brand.name }}
  52. </view>
  53. </view>
  54. <view class="screen-box-sp">
  55. <text class="iconfont"
  56. :class="dropShow ? 'icon-xiangshangjiantou' : 'icon-xiangxiajiantou'"></text>
  57. </view>
  58. </view>
  59. <view class="container-screen-popup" v-if="dropShow">
  60. <!-- <uni-transition mode-class="slide-top" :show=""> -->
  61. <view class="container-screen-popupbox">
  62. <!--header 顶部下拉选择框-->
  63. <scroll-view class="tui-scroll-box" scroll-y scroll-with-animation :scroll-top="scrollTop">
  64. <view class="screen-list" :class="isAllcheckedBrand ? 'active' : ''"
  65. @click="choiceBrandAll">全部</view>
  66. <view class="screen-list" v-for="(brand, index) in brandList" :key="index"
  67. @click="choiceBrand(brand, index)" :class="brand.isChecked ? 'active' : ''">
  68. {{ brand.name }}
  69. </view>
  70. </scroll-view>
  71. <view class="container-screen-btnbox">
  72. <view class="btns" @tap="btnCloseDrop">确定</view>
  73. </view>
  74. </view>
  75. <!-- </uni-transition> -->
  76. </view>
  77. </view>
  78. <!-- 楼层 -->
  79. <view class="container-section tui-skeleton">
  80. <view class="floor-item-banner ad_01" v-if="appletsBanner">
  81. <image class="item-img-gg" :src="appletsBanner"></image>
  82. </view>
  83. <view class="section_page_main clearfix">
  84. <view class="floor-item clearfix" v-for="(pros, idx) in productList" :key="idx"
  85. @click.stop="navToDetailPage(pros.productId)">
  86. <image class="item-img tui-skeleton-fillet" :src="pros.image" mode="aspectFill"></image>
  87. <view class="floor-item-type" v-if="pros.productType == 2">医疗器械</view>
  88. <view class="floor-item-content">
  89. <view class="title tui-skeleton-rect">
  90. <text class="mclap-tag" v-if="pros.beautyActFlag == '1'">美博会</text>
  91. <text class="mclap" :class="pros.beautyActFlag == '1' ? 'indent' : ''">{{ pros.name }}
  92. </text>
  93. </view>
  94. <view class="floor-item-price">
  95. <view class="floor-item-act">
  96. <view class="coupon-tags" v-if="pros.couponsLogo">优惠券</view>
  97. <template v-if="pros.actStatus === 1">
  98. <view class="floor-tags" v-if="PromotionsFormat(pros.promotions)">
  99. {{ pros.promotions.name }}
  100. <text v-if="pros.priceFlag != 1">:¥{{ pros.price | NumFormat }}</text>
  101. </view>
  102. <view class="floor-tags" v-else>{{ pros.promotions.name }}</view>
  103. </template>
  104. <template v-if="pros.svipProductFlag == 1">
  105. <view class="svip-tags">
  106. <view class="tags" :class="{ none: vipFlag != 1 }">SVIP</view>
  107. <view class="price" v-if="isShowVipFlag(pros)">{{
  108. pros.svipPriceTag
  109. }}</view>
  110. </view>
  111. </template>
  112. </view>
  113. <view v-if="hasLogin" class="list-price">
  114. <template v-if="userIdentity == 1">
  115. <text class="price-larger" :class="
  116. PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
  117. ? 'none'
  118. : ''
  119. ">
  120. ¥{{
  121. (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
  122. ? pros.originalPrice
  123. : pros.price) | NumFormat
  124. }}
  125. </text>
  126. </template>
  127. <template v-if="userIdentity == 3">
  128. <template v-if="pros.shopId === shopId">
  129. <view class="price-larger" v-if="pros.priceFlag == 1">
  130. <text class="txt">¥未公开价格</text>
  131. </view>
  132. <text v-else class="price-larger" :class="
  133. PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
  134. ? 'none'
  135. : ''
  136. ">
  137. ¥{{
  138. (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
  139. ? pros.originalPrice
  140. : pros.price) | NumFormat
  141. }}
  142. </text>
  143. </template>
  144. <template v-else>
  145. <view class="list-login-now">
  146. <text class="p-no">¥</text>
  147. <uni-grader :grade="Number(pros.priceGrade)"></uni-grader>
  148. </view>
  149. </template>
  150. </template>
  151. <template v-if="userIdentity === 2 || (userIdentity === 4 && vipFlag === 1)">
  152. <view class="price-larger" v-if="pros.priceFlag === 1">
  153. <text class="txt">¥未公开价格</text>
  154. </view>
  155. <view class="price-larger" v-else-if="pros.priceFlag === 3 && clubType !== 1">
  156. <text class="txt">¥仅医美机构可见</text>
  157. </view>
  158. <text v-else class="price-larger" :class="
  159. PromotionsFormat(pros.promotions) || pros.svipProductFlag === 1
  160. ? 'none'
  161. : ''
  162. ">
  163. ¥{{
  164. (PromotionsFormat(pros.promotions) || pros.svipProductFlag === 1
  165. ? pros.originalPrice
  166. : pros.price) | NumFormat
  167. }}
  168. </text>
  169. </template>
  170. <template v-if="userIdentity == 4">
  171. <view class="price-larger" v-if="pros.priceFlag === 1">
  172. <text class="txt">¥未公开价格</text>
  173. </view>
  174. <view class="price-larger" v-else-if="pros.priceFlag === 2">
  175. <text class="txt">¥价格仅会员可见</text>
  176. </view>
  177. <view class="price-larger" v-else-if="pros.priceFlag === 3">
  178. <text class="txt">¥仅医美机构可见</text>
  179. </view>
  180. <text v-else class="price-larger" :class="
  181. PromotionsFormat(pros.promotions) || pros.svipProductFlag === 1
  182. ? 'none'
  183. : ''
  184. ">
  185. ¥{{
  186. (PromotionsFormat(pros.promotions) || pros.svipProductFlag === 1
  187. ? pros.originalPrice
  188. : pros.price) | NumFormat
  189. }}
  190. </text>
  191. </template>
  192. </view>
  193. <view v-else class="list-login-now">
  194. <text class="p-no">¥</text>
  195. <uni-grader :grade="Number(pros.priceGrade)"></uni-grader>
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. <!--加载loadding-->
  202. <tui-loadmore :visible="loadding" :index="3" type="black" />
  203. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#F7F7F7'" :text="nomoreText" />
  204. <!--加载loadding-->
  205. </view>
  206. </view>
  207. </view>
  208. </template>
  209. <script>
  210. import { mapState, mapMutations } from 'vuex'
  211. import uniGrader from '@/components/uni-grade/uni-grade.vue'
  212. import cmsMixins from '@/mixins/cmsMixins.js'
  213. export default {
  214. mixins: [cmsMixins],
  215. components: {
  216. uniGrader
  217. },
  218. data() {
  219. return {
  220. fixedClass: 'float',
  221. StatusBar: this.StatusBar,
  222. skeletonShow: true,
  223. dropShow: false,
  224. vipFlag: 0,
  225. userIdentity: 0,
  226. productList: [],
  227. brandList: [],
  228. checkedBrandList: [],
  229. isAllcheckedBrand: true,
  230. topGoodList: [],
  231. current: 0,
  232. appletsBanner: '',
  233. listQuery: {
  234. userId: 0,
  235. brandID: '',
  236. pageSize: 10,
  237. pageNum: 1,
  238. source: 2
  239. },
  240. NavigationBarTitle: '',
  241. nomoreText: '上拉显示更多',
  242. hasNextPage: false,
  243. loadding: false,
  244. pullUpOn: true,
  245. pullFlag: true
  246. }
  247. },
  248. onLoad(option) {
  249. this.initGetStotage()
  250. },
  251. filters: {
  252. NumFormat: function(text) {
  253. //处理金额
  254. return Number(text).toFixed(2)
  255. }
  256. },
  257. computed: {
  258. ...mapState(['hasLogin', 'userInfo', 'identity', 'clubType'])
  259. },
  260. methods: {
  261. async initGetStotage() {
  262. // 初始化
  263. const userInfo = await this.$api.getStorage()
  264. this.listQuery.userId = userInfo.userId ? userInfo.userId : 0
  265. this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
  266. this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
  267. this.getRecommend()
  268. this.getNewBrandNames()
  269. this.getNewFloorList()
  270. },
  271. async getNewBrandNames() {
  272. //新品商品品牌列表
  273. try {
  274. const res = await this.CommonService.GetHomeNewBrandNames()
  275. this.brandList = res.data
  276. } catch (e) {
  277. console.log('获取新品橱窗推荐模块信息异常')
  278. }
  279. },
  280. async getRecommend() {
  281. //新品橱窗顶部推荐
  282. try {
  283. const res = await this.CommonService.GetHomeRecommend()
  284. this.topGoodList = res.data
  285. } catch (e) {
  286. console.log('获取新品橱窗推荐模块信息异常')
  287. }
  288. },
  289. async getNewFloorList() {
  290. //楼层查看更多
  291. try {
  292. const res = await this.CommonService.GetHomeNewFloorList(this.listQuery)
  293. const data = res.data
  294. this.productList = data.results
  295. this.hasNextPage = data.hasNextPage
  296. this.skeletonShow = false
  297. if (this.hasNextPage) {
  298. this.pullUpOn = false
  299. this.nomoreText = '上拉显示更多'
  300. } else {
  301. if (this.productList.length < 6) {
  302. this.pullUpOn = true
  303. } else {
  304. this.pullUpOn = false
  305. this.loadding = false
  306. this.nomoreText = '已至底部'
  307. }
  308. }
  309. } catch (error) {
  310. console.log('error', error.msg)
  311. }
  312. },
  313. async OnReachBottomData() {
  314. // 上滑加载
  315. try {
  316. this.listQuery.pageNum += 1
  317. const res = await this.CommonService.GetHomeNewFloorList(this.listQuery)
  318. const data = res.data
  319. this.hasNextPage = data.hasNextPage
  320. this.productList = this.productList.concat(data.results)
  321. if (this.hasNextPage) {
  322. this.pullUpOn = false
  323. this.nomoreText = '上拉显示更多'
  324. } else {
  325. this.pullUpOn = false
  326. this.loadding = false
  327. this.nomoreText = '已至底部'
  328. }
  329. } catch (error) {
  330. console.log('error', error.msg)
  331. }
  332. },
  333. PromotionsFormat(promo) {
  334. //促销活动类型数据处理
  335. if (promo != null) {
  336. if (promo.type == 1 && promo.mode == 1) {
  337. return true
  338. } else {
  339. return false
  340. }
  341. }
  342. return false
  343. },
  344. navToDetailPage(productId) {
  345. //跳转商品详情页
  346. this.cmsSysStatistics(5)
  347. this.$api.navigateTo(`/pages/goods/product?id=${productId}&typeId=5`)
  348. },
  349. isShowVipFlag(pros) {
  350. // 超级会员价格显示控制
  351. if (this.hasLogin && pros.priceFlag != 1) {
  352. if (this.userIdentity == 4 && this.vipFlag == 1) {
  353. return true
  354. } else if (this.userIdentity == 2) {
  355. return true
  356. }
  357. }
  358. },
  359. swiperChange(e) {
  360. //轮播图切换
  361. const index = e.detail.current
  362. this.current = index
  363. },
  364. choiceBrand(brand, index) {
  365. // 选择品牌
  366. brand.isChecked = !brand.isChecked
  367. if (brand.isChecked) {
  368. if (!this.contains(this.checkedBrandList, brand.id)) {
  369. this.checkedBrandList.push(brand.id)
  370. }
  371. } else {
  372. this.checkedBrandList.splice(this.checkedBrandList.indexOf(brand.id), 1)
  373. }
  374. this.isAllcheckedBrand = false
  375. this.checkedBrandLength = this.checkedBrandList.length
  376. this.listQuery.brandID = this.checkedBrandList.join(',')
  377. console.log('this.listQuery.brandID', this.listQuery.brandID)
  378. },
  379. choiceBrandAll() {
  380. // 点击选择全部品牌
  381. this.isAllcheckedBrand = true
  382. this.listQuery.brandID = ''
  383. this.brandList.forEach(el => {
  384. el.isChecked = false
  385. })
  386. },
  387. contains(arr, val) {
  388. // 校验
  389. return arr.some(item => item === val)
  390. },
  391. showDropShow() {
  392. this.dropShow = !this.dropShow
  393. },
  394. btnCloseDrop() {
  395. this.pullUpOn = true
  396. this.loadding = false
  397. this.dropShow = false
  398. this.productList = []
  399. this.listQuery.pageNum = 1
  400. this.getNewFloorList()
  401. },
  402. haveBack() {
  403. uni.navigateBack({
  404. delta: 1
  405. })
  406. }
  407. },
  408. onPageScroll(e) {
  409. //实时获取到滚动的值
  410. if (e.scrollTop > 50) {
  411. this.fixedClass = 'fixed'
  412. } else {
  413. this.fixedClass = 'float'
  414. }
  415. },
  416. onPullDownRefresh() {
  417. setTimeout(() => {
  418. this.productList = []
  419. this.listQuery.pageNum = 1
  420. this.getNewFloorList()
  421. uni.stopPullDownRefresh()
  422. }, 200)
  423. },
  424. onReachBottom() {
  425. if (this.hasNextPage) {
  426. this.loadding = true
  427. this.pullUpOn = true
  428. this.OnReachBottomData()
  429. }
  430. },
  431. onShow() {
  432. }
  433. }
  434. </script>
  435. <style lang="scss">
  436. page {
  437. background-color: #f7f7f7;
  438. }
  439. .container-home {
  440. width: 100%;
  441. height: auto;
  442. }
  443. .container-topcontent {
  444. width: 100%;
  445. height: 620rpx;
  446. background: #ffffff;
  447. box-sizing: border-box;
  448. position: relative;
  449. .topcontent-image {
  450. width: 100%;
  451. height: 480rpx;
  452. background: url(https://static.caimei365.com/app/img/hot/hot-bg@2x.png);
  453. background-size: cover;
  454. box-sizing: border-box;
  455. .topcontent-title {
  456. width: 100%;
  457. height: 80rpx;
  458. line-height: 80rpx;
  459. font-size: 38rpx;
  460. color: #666666;
  461. font-weight: bold;
  462. text-align: center;
  463. position: relative;
  464. &.fixed {
  465. position: fixed;
  466. top: 0;
  467. height: 80rpx;
  468. background: linear-gradient(90deg, #d3fd77 0%, #a4e8e4 100%);
  469. z-index: 9999;
  470. }
  471. }
  472. .topcontent-title-icon {
  473. width: 50rpx;
  474. height: 50rpx;
  475. line-height: 50rpx;
  476. position: absolute;
  477. left: 24rpx;
  478. top: 14rpx;
  479. border-radius: 50%;
  480. text-align: center;
  481. background: rgba(255, 255, 255, 0.6);
  482. border: 0.5px solid rgba(0, 0, 0, 0.1);
  483. box-sizing: border-box;
  484. z-index: 9999;
  485. .iconfont {
  486. height: 100%;
  487. width: 100%;
  488. font-size: 32rpx;
  489. display: inline-block;
  490. overflow: hidden;
  491. }
  492. }
  493. }
  494. .topcontent-swiper {
  495. width: 100%;
  496. height: auto;
  497. position: absolute;
  498. left: 0;
  499. }
  500. .swiper-goods {
  501. width: 100%;
  502. height: auto;
  503. position: relative;
  504. background-size: cover;
  505. }
  506. .swiper-banner-box {
  507. width: 100%;
  508. height: 360rpx;
  509. position: relative;
  510. background-size: cover;
  511. }
  512. .tui-banner-swiper {
  513. width: 680rpx;
  514. margin: 0 auto;
  515. height: 340rpx;
  516. background: url(https://static.caimei365.com/app/img/hot/hot-bg@3x.png);
  517. background-size: cover;
  518. border-radius: 24rpx;
  519. overflow: hidden;
  520. transform: translateY(0);
  521. box-shadow: 0px 3px 6px rgba(225, 86, 22, 0.08);
  522. margin-top: 16rpx;
  523. padding: 12rpx;
  524. .swiper-goods-image {
  525. width: 336rpx;
  526. height: 336rpx;
  527. float: left;
  528. image {
  529. width: 336rpx;
  530. height: 336rpx;
  531. display: block;
  532. border-radius: 8rpx;
  533. }
  534. }
  535. .swiper-goods-info {
  536. width: 326rpx;
  537. height: 336rpx;
  538. box-sizing: border-box;
  539. padding: 32rpx 24rpx;
  540. float: right;
  541. position: relative;
  542. .swiper-goods-name {
  543. width: 100%;
  544. height: auto;
  545. line-height: 44rpx;
  546. text-overflow: ellipsis;
  547. display: -webkit-box;
  548. word-break: break-all;
  549. -webkit-box-orient: vertical;
  550. -webkit-line-clamp: 4;
  551. overflow: hidden;
  552. font-size: 28rpx;
  553. color: #333333;
  554. text-align: center;
  555. }
  556. .swiper-goods-btn {
  557. width: 100%;
  558. height: 64rpx;
  559. position: absolute;
  560. bottom: 60rpx;
  561. left: 0;
  562. .btn {
  563. width: 200rpx;
  564. height: 64rpx;
  565. margin: 0 auto;
  566. text-align: center;
  567. line-height: 64rpx;
  568. background-color: #f94b4b;
  569. font-size: 26rpx;
  570. color: #ffffff;
  571. border-radius: 32rpx;
  572. }
  573. }
  574. }
  575. }
  576. .swiper__dots-box {
  577. position: absolute;
  578. bottom: -45rpx;
  579. left: 0;
  580. right: 0;
  581. /* #ifndef APP-NVUE */
  582. display: flex;
  583. /* #endif */
  584. flex: 1;
  585. flex-direction: row;
  586. justify-content: center;
  587. align-items: center;
  588. .swiper__dots-item {
  589. width: 14rpx;
  590. height: 8rpx;
  591. border-radius: 4rpx;
  592. margin-left: 6px;
  593. background-color: rgba(225, 86, 22, 0.39);
  594. }
  595. .swiper__dots-long {
  596. width: 40rpx;
  597. height: 8rpx;
  598. border-radius: 4rpx;
  599. background-color: #FF5B00;
  600. transition: all 0.4s;
  601. }
  602. }
  603. .swiper-banner-msg {
  604. width: 100%;
  605. height: 54rpx;
  606. box-sizing: border-box;
  607. padding: 0 24rpx;
  608. margin-top: 24rpx;
  609. .content {
  610. width: 100%;
  611. height: 54rpx;
  612. box-sizing: border-box;
  613. padding: 0 34rpx;
  614. background-color: #fff0e9;
  615. border-radius: 16rpx;
  616. .item {
  617. width: 33.33%;
  618. height: 54rpx;
  619. line-height: 54rpx;
  620. font-size: $font-size-24;
  621. color: $color-system;
  622. float: left;
  623. &.le {
  624. text-align: left;
  625. }
  626. &.ce {
  627. text-align: center;
  628. }
  629. &.ri {
  630. text-align: right;
  631. }
  632. .iconfont {
  633. color: $color-system;
  634. font-size: $font-size-32;
  635. .sm {
  636. font-size: $font-size-26;
  637. }
  638. }
  639. }
  640. }
  641. }
  642. }
  643. .container-screen {
  644. width: 100%;
  645. height: 138rpx;
  646. padding: 24rpx;
  647. box-sizing: border-box;
  648. background-color: #f7f7f7;
  649. position: relative;
  650. .container-screen-box {
  651. width: 100%;
  652. height: 100%;
  653. background-color: #ffffff;
  654. border-radius: 16rpx;
  655. .screen-box-em {
  656. float: left;
  657. width: 134rpx;
  658. line-height: 90rpx;
  659. text-align: center;
  660. color: #333333;
  661. font-size: 30rpx;
  662. font-weight: bold;
  663. }
  664. .screen-box-mi {
  665. float: left;
  666. width: 468rpx;
  667. height: 100%;
  668. box-sizing: border-box;
  669. padding: 21rpx 0;
  670. .screen-list {
  671. width: 140rpx;
  672. height: 48rpx;
  673. padding: 0 12rpx;
  674. float: left;
  675. text-align: center;
  676. box-sizing: border-box;
  677. line-height: 48rpx;
  678. font-size: 30rpx;
  679. color: #666666;
  680. border-radius: 24rpx;
  681. margin-right: 20rpx;
  682. text-overflow: ellipsis;
  683. overflow: hidden;
  684. display: -webkit-box;
  685. -webkit-line-clamp: 1;
  686. line-clamp: 1;
  687. -webkit-box-orient: vertical;
  688. word-break: break-all;
  689. &:last-child {
  690. margin-right: 0;
  691. }
  692. &.active {
  693. background-color: #ffe6dc;
  694. color: #FF5B00;
  695. }
  696. }
  697. }
  698. .screen-box-sp {
  699. float: right;
  700. width: 100rpx;
  701. line-height: 90rpx;
  702. text-align: center;
  703. .iconfont {
  704. color: #999999;
  705. font-size: 40rpx;
  706. }
  707. }
  708. }
  709. .container-screen-popup {
  710. width: 100%;
  711. height: 480rpx;
  712. box-sizing: border-box;
  713. padding: 24rpx;
  714. position: absolute;
  715. left: 0;
  716. top: 86rpx;
  717. z-index: 999;
  718. .container-screen-popupbox {
  719. width: 100%;
  720. height: 100%;
  721. box-sizing: border-box;
  722. padding: 0 24rpx;
  723. background-color: #ffffff;
  724. border-radius: 0 0 16rpx 16rpx;
  725. box-shadow: 0 10rpx 14rpx 0 rgba(86, 119, 252, 0.2);
  726. }
  727. .tui-scroll-box {
  728. width: 100%;
  729. height: 300rpx;
  730. overflow: hidden;
  731. .screen-list {
  732. width: 140rpx;
  733. height: 48rpx;
  734. padding: 0 12rpx;
  735. float: left;
  736. text-align: center;
  737. box-sizing: border-box;
  738. line-height: 48rpx;
  739. font-size: 30rpx;
  740. color: #666666;
  741. border-radius: 24rpx;
  742. margin-right: 30rpx;
  743. margin-bottom: 30rpx;
  744. text-overflow: ellipsis;
  745. overflow: hidden;
  746. display: -webkit-box;
  747. -webkit-line-clamp: 1;
  748. line-clamp: 1;
  749. -webkit-box-orient: vertical;
  750. word-break: break-all;
  751. &:nth-child(4n) {
  752. margin-right: 0;
  753. }
  754. &.active {
  755. background-color: #ffe6dc;
  756. color: #FF5B00;
  757. }
  758. }
  759. }
  760. .container-screen-btnbox {
  761. width: 100%;
  762. height: 84rpx;
  763. margin-top: 15rpx;
  764. .btns {
  765. width: 314rpx;
  766. height: 84rpx;
  767. line-height: 84rpx;
  768. border-radius: 42rpx;
  769. text-align: center;
  770. font-size: 30rpx;
  771. color: #ffffff;
  772. background: $btn-confirm;
  773. margin: 0 auto;
  774. }
  775. }
  776. }
  777. }
  778. .container-section {
  779. width: 100%;
  780. height: auto;
  781. background-color: #f7f7f7;
  782. box-sizing: border-box;
  783. padding: 0 24rpx 24rpx 24rpx;
  784. }
  785. .floor-item-banner {
  786. width: 100%;
  787. height: 240rpx;
  788. margin-bottom: 20rpx;
  789. .item-img-gg {
  790. width: 100%;
  791. height: 240rpx;
  792. display: block;
  793. border-radius: 16rpx;
  794. }
  795. }
  796. .section_page_main {
  797. width: 100%;
  798. height: auto;
  799. box-sizing: border-box;
  800. .floor-item {
  801. width: 339rpx;
  802. height: 516rpx;
  803. margin-right: 20rpx;
  804. font-size: $font-size-24;
  805. color: $text-color;
  806. background: #ffffff;
  807. line-height: 36rpx;
  808. border-radius: 16rpx;
  809. margin-bottom: 20rpx;
  810. float: left;
  811. box-sizing: border-box;
  812. position: relative;
  813. &:nth-child(2n) {
  814. margin-right: 0;
  815. }
  816. .item-img {
  817. width: 339rpx;
  818. height: 339rpx;
  819. border-radius: 16rpx 16rpx 0 0;
  820. display: block;
  821. margin-bottom: 8rpx;
  822. }
  823. .floor-item-type {
  824. width: 64rpx;
  825. height: 64rpx;
  826. text-align: justify;
  827. box-sizing: border-box;
  828. padding: 10rpx;
  829. border-radius: 0 0 8rpx 8rpx;
  830. background-color: #33ccbf;
  831. font-size: $font-size-22;
  832. color: #ffffff;
  833. line-height: 25rpx;
  834. position: absolute;
  835. top: 0;
  836. right: 16rpx;
  837. }
  838. .floor-item-content {
  839. width: 100%;
  840. padding: 0 20rpx;
  841. box-sizing: border-box;
  842. }
  843. .floor-item-act {
  844. display: block;
  845. width: 100%;
  846. height: 32rpx;
  847. text-align: center;
  848. box-sizing: border-box;
  849. }
  850. .title-none {
  851. font-size: $font-size-26;
  852. color: #ff2a2a;
  853. line-height: 54rpx;
  854. }
  855. .title {
  856. width: 100%;
  857. height: 70rpx;
  858. display: flex;
  859. line-height: 35rpx;
  860. flex-direction: column;
  861. margin: 8rpx 0;
  862. padding: 0;
  863. position: relative;
  864. .mclap {
  865. width: 100%;
  866. line-height: 35rpx;
  867. text-overflow: ellipsis;
  868. display: -webkit-box;
  869. word-break: break-all;
  870. -webkit-box-orient: vertical;
  871. -webkit-line-clamp: 2;
  872. overflow: hidden;
  873. font-size: 26rpx;
  874. &.indent {
  875. text-indent: 95rpx;
  876. }
  877. }
  878. .mclap-tag {
  879. display: block;
  880. width: 84rpx;
  881. height: 32rpx;
  882. background-image: linear-gradient(270deg, #f9c023 0%, #f83600 100%);
  883. border-radius: 4rpx 48rpx 4px 4px;
  884. line-height: 32rpx;
  885. font-size: $font-size-22;
  886. color: #ffffff;
  887. text-align: center;
  888. position: absolute;
  889. left: 0;
  890. top: 0;
  891. }
  892. }
  893. .floor-item-price {
  894. .list-login-now {
  895. line-height: 44rpx;
  896. .p-no {
  897. height: 44rpx;
  898. line-height: 44rpx;
  899. display: inline-block;
  900. float: left;
  901. }
  902. }
  903. .list-price {
  904. color: #ff2a2a;
  905. height: 44rpx;
  906. float: left;
  907. .price-larger {
  908. width: 100%;
  909. height: 44rpx;
  910. font-size: 32rpx;
  911. &.none {
  912. text-decoration: line-through;
  913. color: #999999;
  914. }
  915. &.small {
  916. font-size: $font-size-24;
  917. }
  918. .txt {
  919. font-size: $font-size-24;
  920. display: inline-block;
  921. line-height: 44rpx;
  922. text-align: left;
  923. float: left;
  924. }
  925. }
  926. }
  927. }
  928. }
  929. }
  930. </style>