home.vue 19 KB

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