home.vue 21 KB

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