home.vue 20 KB

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