home.vue 19 KB

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