home.vue 19 KB

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