home.vue 18 KB

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