home.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <template>
  2. <view class="container home clearfix" :style="{paddingTop:CustomBar+'px'}">
  3. <cm-custom :navbar-data='nvabarData'></cm-custom>
  4. <!-- 头部轮播 -->
  5. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="5"></tui-skeleton>
  6. <view class="container-home tui-skeleton">
  7. <view class="swiper-banner-box" >
  8. <swiper class="tui-banner-swiper tui-banner tui-skeleton-fillet" :autoplay="true" :interval="5000" :duration="500" @change="swiperChange" :circular="true">
  9. <swiper-item v-for="(item,index) in bannerImageList" :key="index">
  10. <image :src="item" class="tui-slide-image" mode="scaleToFill"/>
  11. </swiper-item>
  12. </swiper>
  13. <view class="swiper__dots-box" v-if="bannerImageList.length > 1">
  14. <view v-for="(item,idx) in bannerImageList"
  15. :key="idx"
  16. :class="[idx===current?'swiper__dots-long':'none']"
  17. :data-index="current" class="swiper__dots-item">
  18. </view>
  19. </view>
  20. </view>
  21. <view class="cate-section clearfix">
  22. <!-- 自定义分类导航栏 -->
  23. <view class="tabbar clearfix">
  24. <view class="cate-item" v-for="(nav,idx) in productsClassifyList" :key="idx" @click.stop="navToListPage(nav)">
  25. <image class="tui-skeleton-circular" :src="nav.classifyImage"></image>
  26. <text class="tui-skeleton-fillet">{{nav.classifyName}}</text>
  27. </view>
  28. </view>
  29. <!-- 优选分类 -->
  30. <view class="tabbar bot clearfix">
  31. <view class="cate-item-info" @click.stop="this.$api.navToListPage({type:'1',value:firstModulesName})">
  32. <image class="tui-skeleton-circular" :src="firstModulesImage"></image>
  33. <text class="tui-skeleton-fillet">{{firstModulesName}}</text>
  34. </view>
  35. <view class="cate-item-info" @click.stop="this.$api.navToListPage({type:'2',value:secondModulesName})">
  36. <image class="tui-skeleton-circular" :src="secondModulesImage"></image>
  37. <text class="tui-skeleton-fillet">{{secondModulesName}}</text>
  38. </view>
  39. <view class="cate-item-info" @click="showTost">
  40. <image class="tui-skeleton-circular" :src="navInforList[0].icon"></image>
  41. <text class="tui-skeleton-fillet">{{navInforList[0].text}}</text>
  42. </view>
  43. <view class="cate-item-info">
  44. <!-- #ifdef MP-WEIXIN -->
  45. <button class="contact-btn" open-type="contact" @bindcontact="handleContact">
  46. <image class="tui-skeleton-circular" :src="navInforList[1].icon"></image>
  47. </button>
  48. <!-- #endif -->
  49. <text class="tui-skeleton-fillet">{{navInforList[1].text}}</text>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 热销商品 -->
  54. <view class="hotgoods-section">
  55. <view class="s-header" @click="this.$api.navToListPage({type:'3',value:thirdModulesName})">
  56. <text class="tip tui-skeleton-fillet">{{thirdModulesName}}</text>
  57. <text class="tit tui-skeleton-fillet">更多</text>
  58. <text class="iconfont icon-xiayibu"></text>
  59. </view>
  60. <view class="hotgoods-swiper">
  61. <view class="scoll-wrapper clearfix">
  62. <view class="floor-item" v-for="(item, index) in organizeProducts" :key="index" @click.stop="navToDetailPage(item.productID)">
  63. <image class="tui-skeleton-fillet" :src="item.mainImage" mode="aspectFill"></image>
  64. <view class="floor-item-content">
  65. <view class="title tui-skeleton-rect">
  66. <text class="mclap">{{item.name}}</text>
  67. </view>
  68. <view class="" v-if="hasLogin">
  69. <view v-if="userIdentity == 4">
  70. <view class="title-none" v-show="item.price1TextFlag == '1'">
  71. <text class="p big">未公开价格</text>
  72. </view>
  73. <view class="title-none" v-show="item.price1TextFlag == '2'">
  74. <text class="p big">价格仅会员可见</text>
  75. <text class="p btn" @click.stop="this.$api.navigateTo(`/pages/login/apply?clubStatus=${clubStatus}`)">去升级</text>
  76. </view>
  77. <view class="price tui-skeleton-rect" v-show="item.price1TextFlag == '0'">
  78. <text class="p sm">¥</text>
  79. <text class="p big">{{item.retailPrice!=null ? item.retailPrice.toFixed(2):''}}</text>
  80. </view>
  81. </view>
  82. <view v-else>
  83. <view class="title-none" v-if="item.price1TextFlag == '1'">
  84. <text class="p big">未公开价格</text>
  85. </view>
  86. <view class="price tui-skeleton-rect" v-else>
  87. <text class="p sm">¥</text>
  88. <text class="p big">{{item.retailPrice!=null ? item.retailPrice.toFixed(2):''}}</text>
  89. </view>
  90. </view>
  91. </view>
  92. <view v-else class="no-price">
  93. <text class="p-no">价格:</text>
  94. <view class="p-stars">
  95. <uni-stars :stars="parseInt(item.price1Grade)"></uni-stars>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 底部 -->
  104. <view class="footer-section ">
  105. <view class="s-header member tui-skeleton-fillet">
  106. <text class="tip">医美机构正品联盟</text>
  107. </view>
  108. <view class="f-content tui-skeleton-fillet" @click="navto('/pages/service/member')">
  109. <image class="tui-banner" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AEwQlAAjGFdpI2LM357.png" mode="scaleToFill"></image>
  110. </view>
  111. <view class="f-tab-section">
  112. <!-- 优选分类 -->
  113. <view class="tabbar clearfix">
  114. <view class="cate-item" @click="showTost">
  115. <image class="tui-skeleton-circular" :src="navServerList[0].icon"></image>
  116. <text class="tui-skeleton-fillet">{{navServerList[0].text}}</text>
  117. </view>
  118. <view class="cate-item" @click="navto(navServerList[1].path)">
  119. <image class="tui-skeleton-circular" :src="navServerList[1].icon"></image>
  120. <text class="tui-skeleton-fillet">{{navServerList[1].text}}</text>
  121. </view>
  122. <view class="cate-item" @click="navto(navServerList[2].path)">
  123. <image class="tui-skeleton-circular" :src="navServerList[2].icon"></image>
  124. <text class="tui-skeleton-fillet">{{navServerList[2].text}}</text>
  125. </view>
  126. <view class="cate-item" @click="telPhoneTo">
  127. <image class="tui-skeleton-circular" :src="navServerList[3].icon"></image>
  128. <text class="tui-skeleton-fillet">{{navServerList[3].text}}</text>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="f-text tui-skeleton-fillet">
  133. <view class="">
  134. <image class="logo" src="../../../static/logo-c@2x.png" mode=""></image>
  135. <text class="">采美365网</text>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 透明模态层 -->
  141. <modal-layer v-if='modallayer'></modal-layer>
  142. </view>
  143. </template>
  144. <script>
  145. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  146. import authorize from '@/common/config/authorize.js'
  147. import modalLayer from "@/components/modal-layer"
  148. import cmCustom from '@/components/cm-module/home/cm-custom.vue'
  149. import uniStars from '@/components/uni-stars/uni-stars.vue'
  150. import { userInfoLogin, queryHomeInfo } from "@/api/use.js"
  151. import { queryPreferred } from "@/api/product.js"
  152. import { mapState,mapMutations} from 'vuex';
  153. export default {
  154. components:{
  155. tuiSkeleton,
  156. modalLayer,
  157. cmCustom,
  158. uniStars,
  159. },
  160. data() {
  161. return {
  162. webviewStyles: {
  163. progress: {
  164. color: '#FF3333'
  165. }
  166. },
  167. nvabarData: {//顶部自定义导航
  168. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  169. showSearch: 0,
  170. title: '采美采购商城', // 导航栏 中间的标题
  171. haveBack:false,
  172. textLeft:this.$store.state.isIphone,
  173. textColor:'#FFFFFF'
  174. },
  175. CustomBar:this.CustomBar,// 顶部导航栏高度
  176. userID:'',
  177. clubStatus:'',
  178. current:0,
  179. mode:'round',
  180. modallayer:false,
  181. isLogin:false,
  182. bannerImageList:[],
  183. skeletonShow: true,
  184. userIdentity:'',
  185. organizeProducts:[],//常用商品
  186. productsClassifyList:[
  187. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  188. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  189. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  190. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  191. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'}
  192. ],//分类导航
  193. firstModulesName:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png', //优惠模块1
  194. secondModulesName:'', //优惠模块2
  195. firstModulesImage:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png',//优惠模块icon1
  196. secondModulesImage:'',//优惠模块icon2
  197. thirdModulesName:'', //优惠模块3
  198. navInforList:[
  199. {text:'会员中心',icon:'https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9LCABdf_AAAfdMmM_xY655.png'},
  200. {text:'在线客服',icon:'https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9BSAXPobAAApo6I0Tlo684.png'}
  201. ],
  202. navServerList:[
  203. {text:'会员优惠',icon:'../../../static/temp/server1@2x.png',path:'/pages/service/member'},
  204. {text:'售后无忧',icon:'../../../static/temp/server2@2x.png',path:'/pages/service/aftersale'},
  205. {text:'购物须知',icon:'../../../static/temp/server3@2x.png',path:'/pages/service/shoppingnotice'},
  206. {text:'联系我们',icon:'../../../static/temp/server4@2x.png',path:''},
  207. ]
  208. }
  209. },
  210. onLoad() {
  211. },
  212. computed: {
  213. ...mapState(['hasLogin','userInfo','isWxAuthorize'])
  214. },
  215. methods: {
  216. ...mapMutations(['login','logout']),
  217. getWxAuthorize(){
  218. authorize.getCode('weixin').then(wechatcode =>{// 根据微信的code获取用户登录状态:1已登录过 -1未登录过
  219. authorize.getUserInfo('weixin').then(wxResponse =>{
  220. userInfoLogin({code:wechatcode,encryptedData:wxResponse.encryptedData,iv:wxResponse.iv}).then(response =>{
  221. this.isLogin = true;
  222. this.userID = response.data.userID;
  223. this.userIdentity = response.data.userIdentity;
  224. this.clubStatus = response.data.clubStatus;
  225. this.$store.commit('updateStatus',response.data)
  226. this.login(response.data);
  227. uni.setStorageSync('token',response.data.token)
  228. uni.removeStorageSync('sessionid')
  229. uni.setStorageSync('sessionid','JSESSIONID='+response.data.sessionId)
  230. if(response.data.userIdentity ==1){
  231. this.$api.navigateTo('/seller/pages/index/index')
  232. }
  233. }).catch(error =>{
  234. this.isLogin = false;
  235. this.logout()
  236. uni.removeStorageSync('sessionid')
  237. uni.setStorageSync('sessionid','JSESSIONID='+error.data)
  238. this.$store.commit('updateStatus',error.data)
  239. })
  240. this.getHomeInformation()
  241. this.getOrganizeProducts()
  242. })
  243. })
  244. },
  245. getHomeInformation(){
  246. queryHomeInfo({}).then(res =>{
  247. let data = res.data;
  248. this.bannerImageList = data.bannerImageList
  249. this.mallPageModules = data.mallPageModules
  250. this.firstModulesName= data.firstModulesName
  251. this.secondModulesName= data.secondModulesName
  252. this.firstModulesImage= data.firstModulesImage
  253. this.secondModulesImage= data.secondModulesImage
  254. this.thirdModulesName= data.thirdModulesName
  255. this.productsClassifyList = data.productsClassifyList
  256. this.skeletonShow = false;
  257. this.$store.commit('updateAllNum',data.shoppingCartCount)
  258. }).catch(error =>{
  259. this.$util.msg(error.msg,2000)
  260. })
  261. },
  262. getOrganizeProducts(){//获取模块三商品
  263. queryPreferred({userId:this.userID,preferredFlag:100,pageNum:1,pageSize:6}).then(res =>{
  264. this.organizeProducts = res.data.results
  265. }).catch(error =>{
  266. this.$util.msg(error.msg,2000)
  267. })
  268. },
  269. //轮播图切换修改背景色
  270. swiperChange(e) {
  271. const index = e.detail.current;
  272. this.current = index;
  273. },
  274. formatMoney(num){
  275. return num.toString().replace(/\d+/, function (n) { // 先提取整数部分
  276. return n.replace(/(\d)(?=(\d{3})+$)/g, function ($1) { // 对整数部分添加分隔符
  277. return $1 + ",";
  278. });
  279. });
  280. },
  281. //分类导航跳转
  282. navToListPage(nav){
  283. let self = this;
  284. uni.setStorage({
  285. key: 'commodity_id',
  286. data: nav.id,
  287. success: function () {
  288. self.$api.navToListPage({type:'0',value:nav.classifyName,id:nav.id});
  289. }
  290. })
  291. },
  292. navToDetailPage(id) {//跳转商品详情页
  293. this.modallayer = true;
  294. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  295. },
  296. handleContact(e){
  297. console.log(e.detail.path)
  298. console.log(e.detail.query)
  299. },
  300. showTost(){
  301. this.$util.msg("正在开发中,敬请期待~",2000)
  302. // this.$api.navigateTo(`/supplier/pages/login/share-info?scene=scene`)
  303. // this.$api.navigateTo(`/seller/pages/login/login`)
  304. // uni.navigateToMiniProgram({
  305. // appId: 'wx5a5cda32926f55ac',
  306. // path: '/pages/tabBar/home/home',
  307. // extraData: {
  308. // 'data1': 'test'
  309. // },
  310. // envVersion: 'develop',
  311. // success(res) {
  312. // console.log(res)
  313. // // 打开成功
  314. // }
  315. // })
  316. },
  317. navto(url){
  318. this.$api.navigateTo(url)
  319. },
  320. swiperNavtopage(link){
  321. this.$api.navigateTo(`/h5/pages/activity/activity?productID=4204&path=${link}`)
  322. },
  323. telPhoneTo(){
  324. let self = this;
  325. this.$api.get('/home/afterSale',{organizeID:this.userOrganizeID},
  326. response => {
  327. console.log(response.data.contactNumber)
  328. uni.makePhoneCall({
  329. phoneNumber:response.data.contactNumber //仅为示例
  330. });
  331. }
  332. )
  333. }
  334. },
  335. onPageScroll(e){//实时获取到滚动的值
  336. if(e.scrollTop>50){
  337. this.inputActive = 'fixed'
  338. }else{
  339. this.inputActive = 'float'
  340. }
  341. },
  342. onPullDownRefresh() {//下拉刷新
  343. this.getHomeInformation()
  344. this.getOrganizeProducts()
  345. uni.stopPullDownRefresh()
  346. },
  347. onShareAppMessage(res){//分享转发
  348. if (res.from === 'button') {
  349. // 来自页面内转发按钮
  350. }
  351. return {
  352. title: '采美采购商城-生美/医美采购服务平台',
  353. path: 'pages/tabBar/home/home',
  354. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  355. }
  356. },
  357. onShow(){
  358. this.modallayer = false;
  359. authorize.getSetting().then(res =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  360. if(res == 1){
  361. this.getWxAuthorize()
  362. }else{
  363. this.getHomeInformation()
  364. this.getOrganizeProducts()
  365. }
  366. })
  367. }
  368. }
  369. </script>
  370. <style lang="scss">
  371. page,.home{
  372. width: 100%;
  373. height: auto;
  374. }
  375. .container-home{
  376. background: #FFFFFF;
  377. }
  378. .swiper-banner-box{
  379. width: 100%;
  380. height: 360rpx;
  381. padding-top:100rpx;
  382. background:#FFFFFF url(https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9LCALu9wAAAv45Bdpsk814.png)no-repeat;
  383. position: relative;
  384. background-size: cover;
  385. }
  386. .tui-banner-swiper {
  387. width: 700rpx;
  388. margin: 0 auto;
  389. height: 340rpx;
  390. border-radius: 24rpx;
  391. overflow: hidden;
  392. transform: translateY(0);
  393. box-shadow:0px 3px 6px rgba(225,86,22,0.08);
  394. margin-top: 16rpx;
  395. .banner-item{
  396. border-radius: 24rpx;
  397. }
  398. .tui-slide-image {
  399. width: 100%;
  400. height: 340rpx;
  401. display: block;
  402. }
  403. }
  404. .swiper__dots-box{
  405. position: absolute;
  406. bottom: 30rpx;
  407. left: 0;
  408. right: 0;
  409. /* #ifndef APP-NVUE */
  410. display: flex;
  411. /* #endif */
  412. flex: 1;
  413. flex-direction: row;
  414. justify-content: center;
  415. align-items: center;
  416. .swiper__dots-item{
  417. width: 8rpx;
  418. height: 8rpx;
  419. border-radius: 100%;
  420. margin-left: 6px;
  421. background-color:rgba(255,255,255,.7);
  422. }
  423. .swiper__dots-long{
  424. width: 35rpx;
  425. height: 8rpx;
  426. border-radius: 4rpx;
  427. background-color: #ffff;
  428. transition: all 0.4s;
  429. }
  430. }
  431. /* 分类 */
  432. .cate-section {
  433. width: 702rpx;
  434. height: auto;
  435. padding:34rpx 24rpx 14rpx 24rpx;
  436. background: #fff;
  437. .tabbar{
  438. margin-bottom: 26rpx;
  439. &.bot{
  440. padding: 16rpx 24rpx;
  441. border-radius: 20rpx;
  442. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  443. border: 1px solid #F9F9F9;
  444. }
  445. }
  446. .cate-item {
  447. width: 118rpx;
  448. margin-right:28rpx;
  449. display: flex;
  450. float: left;
  451. flex-direction: column;
  452. align-items: center;
  453. font-size: $font-size-26;
  454. color: $text-color;
  455. line-height: 36rpx;
  456. &:last-child{
  457. margin-right: 0;
  458. }
  459. &:nth-child(5n){
  460. margin-right: 0;
  461. }
  462. image {
  463. width: 90rpx;
  464. height: 90rpx;
  465. margin-bottom: 8rpx;
  466. border-radius: 32rpx;
  467. }
  468. }
  469. .cate-item-info {
  470. width: 118rpx;
  471. margin-right:59.5rpx;
  472. display: flex;
  473. float: left;
  474. flex-direction: column;
  475. align-items: center;
  476. font-size: $font-size-26;
  477. color: $text-color;
  478. line-height: 36rpx;
  479. &:last-child{
  480. margin-right: 0;
  481. }
  482. image {
  483. width: 90rpx;
  484. height: 90rpx;
  485. margin-bottom: 16rpx;
  486. border-radius: 32rpx;
  487. }
  488. button.contact-btn{
  489. width: 118rpx;
  490. height: 90rpx;
  491. margin: 0;
  492. padding: 0;
  493. display: flex;
  494. flex-direction: column;
  495. align-items: center;
  496. box-sizing: border-box;
  497. text-align: center;
  498. text-decoration: none;
  499. border-radius: 0;
  500. -webkit-tap-highlight-color: transparent;
  501. overflow: hidden;
  502. background-color:#FFFFFF;
  503. margin-bottom: 16rpx;
  504. image{
  505. width: 90rpx;
  506. height: 90rpx;
  507. margin-bottom: 0;
  508. border-radius: 32rpx;
  509. }
  510. }
  511. }
  512. }
  513. .hotgoods-section{
  514. background: #FFFFFF;
  515. .s-header{
  516. display:flex;
  517. align-items:center;
  518. height: 50rpx;
  519. line-height: 50rpx;
  520. border-radius: 20rpx 20rpx 0 0;
  521. .tip{
  522. flex: 4;
  523. font-size: 30rpx;
  524. color: $text-color;
  525. font-weight: bolder;
  526. padding-left: 24rpx;
  527. }
  528. .tit{
  529. flex: 4.4;
  530. font-size: $font-size-28;
  531. color: $text-color;
  532. text-align: right;
  533. }
  534. .icon-xiayibu{
  535. flex: 0.6;
  536. color: $text-color;
  537. text-align: left;
  538. font-size: $font-size-24;
  539. }
  540. }
  541. }
  542. .hotgoods-swiper{
  543. width: 100%;
  544. height: auto;
  545. overflow: hidden;
  546. padding-top: 24rpx;
  547. background: #FFFFFF;
  548. border-radius: 20rpx;
  549. margin-bottom: 20rpx;
  550. // box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  551. .scoll-wrapper{
  552. width: 702rpx;
  553. height: auto;
  554. padding:24rpx 24rpx 0 24rpx;
  555. background: #F7F7F7;
  556. border-radius: 20rpx;
  557. .floor-item{
  558. width: 341rpx;
  559. margin-right: 20rpx;
  560. font-size: $font-size-24;
  561. color: $text-color;
  562. background: #FFFFFF;
  563. line-height: 36rpx;
  564. border-radius: 20rpx;
  565. margin-bottom: 20rpx;
  566. float: left;
  567. &:nth-child(2n){
  568. margin-right: 0;
  569. }
  570. image{
  571. width: 341rpx;
  572. height: 341rpx;
  573. border-radius: 20rpx 20rpx 0 0;
  574. display: block;
  575. margin-bottom: 20rpx;
  576. }
  577. .floor-item-content{
  578. width: 311rpx;
  579. padding: 0 15rpx;
  580. }
  581. .title-none{
  582. font-size: $font-size-26;
  583. color: #FF2A2A;
  584. line-height: 80rpx;
  585. .btn{
  586. display: inline-block;
  587. float: right;
  588. width: 112rpx;
  589. height: 44rpx;
  590. background: $btn-confirm;
  591. line-height: 44rpx;
  592. font-size: $font-size-24;
  593. color: #FFFFFF;
  594. text-align: center;
  595. border-radius: 22rpx;
  596. margin-top: 17rpx;
  597. }
  598. }
  599. .title{
  600. width: 100%;
  601. height: 72rpx;
  602. display: flex;
  603. flex-direction: column;
  604. .mclap{
  605. width: 100%;
  606. line-height: 36rpx;
  607. text-overflow:ellipsis;
  608. display: -webkit-box;
  609. word-break: break-all;
  610. -webkit-box-orient: vertical;
  611. -webkit-line-clamp: 2;
  612. overflow: hidden;
  613. font-size: 26rpx;
  614. }
  615. }
  616. .no-price{
  617. height: 76rpx;
  618. line-height: 76rpx;
  619. display: flex;
  620. .p-no{
  621. font-size: $font-size-24;
  622. color: $color-system;
  623. margin-right: 5rpx;
  624. }
  625. .p-stars{
  626. margin-top: 3rpx;
  627. }
  628. }
  629. .price{
  630. color:#FF2A2A;
  631. line-height: 80rpx;
  632. .sm{
  633. font-size: $font-size-24;
  634. }
  635. .big{
  636. font-size: $font-size-28;
  637. }
  638. }
  639. }
  640. }
  641. }
  642. .footer-section{
  643. width: 702rpx;
  644. padding: 0 24rpx 0 24rpx;
  645. background: #FFFFFF;
  646. border-radius: 20rpx;
  647. .s-header{
  648. display:flex;
  649. align-items:center;
  650. height: 80rpx;
  651. line-height: 80rpx;
  652. .tip{
  653. flex: 1;
  654. font-size: 30rpx;
  655. color: $text-color;
  656. font-weight: bolder;
  657. }
  658. }
  659. .f-content{
  660. width: 100%;
  661. image{
  662. width: 100%;
  663. height: 350rpx;
  664. }
  665. }
  666. /*底部服务导航*/
  667. .f-tab-section {
  668. width: 100%;
  669. height: auto;
  670. padding: 38rpx 0;
  671. background: #fff;
  672. /*底部服务导航*/
  673. .cate-item {
  674. width: 99rpx;
  675. margin-right: 102rpx;
  676. float: left;
  677. display: flex;
  678. flex-direction: column;
  679. align-items: center;
  680. font-size: $font-size-24;
  681. color: $text-color;
  682. &:last-child{
  683. margin-right: 0;
  684. }
  685. image {
  686. width: 75rpx;
  687. height: 75rpx;
  688. margin-bottom: 8rpx;
  689. border-radius: 50%;
  690. }
  691. }
  692. }
  693. .f-text{
  694. .logo{
  695. width: 80rpx;
  696. height: 80rpx;
  697. float: left;
  698. margin: 0 6rpx;
  699. }
  700. display: flex;
  701. flex-direction: column;
  702. align-items: center;
  703. font-size: $font-size-24;
  704. color: $text-color;
  705. line-height: 80rpx;
  706. padding-top: 20rpx;
  707. }
  708. }
  709. </style>