home.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  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="navigateToGoods(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="floor-item-act">
  69. <template v-if="item.actStatus==1">
  70. <view class="floor-tags" v-if="item.promotions.type == 1 && item.promotions.mode==1">{{item.promotions.name}}<text v-if="hasLogin">:¥{{item.price | NumFormat}}</text></view>
  71. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  72. </template>
  73. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  74. <view class="floor-tags">阶梯价格</view>
  75. </template>
  76. </view>
  77. <view class="" v-if="hasLogin">
  78. <view v-if="userIdentity == 4">
  79. <view class="title-none" v-show="item.price1TextFlag == '1'">
  80. <text class="p big">¥未公开价格</text>
  81. </view>
  82. <view class="title-none" v-show="item.price1TextFlag == '2'">
  83. <text class="p big">¥价格仅会员可见</text>
  84. <text class="p btn" @click.stop="this.$api.navigateTo(`/pages/login/apply?clubStatus=${clubStatus}`)">去升级</text>
  85. </view>
  86. <view class="price tui-skeleton-rect" v-show="item.price1TextFlag == '0'">
  87. <text class="p sm">¥</text>
  88. <text class="p big">{{ item.price | NumFormat}}</text>
  89. </view>
  90. </view>
  91. <view v-else>
  92. <view class="title-none" v-if="item.price1TextFlag == '1'">
  93. <text class="p big">未公开价格</text>
  94. </view>
  95. <view class="price tui-skeleton-rect" v-else :class="item.promotions.type == 1 && item.promotions.mode==1 ? 'none' : ''">
  96. <text class="p sm">¥</text>
  97. <text class="p big">{{item.price | NumFormat}}</text>
  98. </view>
  99. </view>
  100. </view>
  101. <view v-else class="no-price">
  102. <view class="p-stars">
  103. <text class="p-no">¥</text>
  104. <uni-stars :stars="parseInt(item.price1Grade)" :fontSize="36" :widthInfo="180"></uni-stars>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 底部 -->
  113. <view class="footer-section ">
  114. <view class="s-header member tui-skeleton-fillet">
  115. <text class="tip">医美机构正品联盟</text>
  116. </view>
  117. <view class="f-content tui-skeleton-fillet" @click="navto('/pages/service/member')">
  118. <image class="tui-banner" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AEwQlAAjGFdpI2LM357.png" mode="scaleToFill"></image>
  119. </view>
  120. <view class="f-tab-section">
  121. <!-- 优选分类 -->
  122. <view class="tabbar clearfix">
  123. <view class="cate-item" @click="showTost">
  124. <image class="tui-skeleton-circular" :src="navServerList[0].icon"></image>
  125. <text class="tui-skeleton-fillet">{{navServerList[0].text}}</text>
  126. </view>
  127. <view class="cate-item" @click="navto(navServerList[1].path)">
  128. <image class="tui-skeleton-circular" :src="navServerList[1].icon"></image>
  129. <text class="tui-skeleton-fillet">{{navServerList[1].text}}</text>
  130. </view>
  131. <view class="cate-item" @click="navto(navServerList[2].path)">
  132. <image class="tui-skeleton-circular" :src="navServerList[2].icon"></image>
  133. <text class="tui-skeleton-fillet">{{navServerList[2].text}}</text>
  134. </view>
  135. <view class="cate-item" @click="telPhoneTo">
  136. <image class="tui-skeleton-circular" :src="navServerList[3].icon"></image>
  137. <text class="tui-skeleton-fillet">{{navServerList[3].text}}</text>
  138. </view>
  139. </view>
  140. </view>
  141. <view class="f-text tui-skeleton-fillet">
  142. <view class="">
  143. <image class="logo" src="../../../static/logo-c@2x.png" mode=""></image>
  144. <text class="">采美365网</text>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. <!-- 活动弹窗 -->
  150. <!-- <activityAlert :show="isActivity" @click="handleClick" @cancel="handleCancelClick"></activityAlert> -->
  151. <!-- 透明模态层 -->
  152. <modal-layer v-if='modallayer'></modal-layer>
  153. </view>
  154. </template>
  155. <script>
  156. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  157. import authorize from '@/common/config/authorize.js'
  158. import modalLayer from "@/components/modal-layer"
  159. import cmCustom from '@/components/cm-module/home/cm-custom.vue'
  160. import activityAlert from '@/components/cm-module/activity/activity_on_1.vue'
  161. import uniStars from '@/components/uni-stars/uni-stars.vue'
  162. import { userInfoLogin } from "@/api/use.js"
  163. import { queryPreferred } from "@/api/product.js"
  164. import { mapState,mapMutations} from 'vuex';
  165. export default {
  166. components:{
  167. tuiSkeleton,
  168. modalLayer,
  169. cmCustom,
  170. uniStars,
  171. activityAlert
  172. },
  173. data() {
  174. return {
  175. webviewStyles: {
  176. progress: {
  177. color: '#FF3333'
  178. }
  179. },
  180. nvabarData: {//顶部自定义导航
  181. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  182. showSearch: 0,
  183. title: '采美采购商城', // 导航栏 中间的标题
  184. haveBack:false,
  185. textLeft:this.$store.state.isIphone,
  186. textColor:'#FFFFFF'
  187. },
  188. CustomBar:this.CustomBar,// 顶部导航栏高度
  189. userID:0,
  190. clubStatus:'',
  191. current:0,
  192. mode:'round',
  193. modallayer:false,
  194. isLogin:false,
  195. bannerImageList:[],
  196. skeletonShow: true,
  197. userIdentity:'',
  198. organizeProducts:[],//常用商品
  199. productsClassifyList:[
  200. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  201. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  202. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  203. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'},
  204. {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E7%BB%84%201238.png',classifyName:'采美'}
  205. ],//分类导航
  206. firstModulesName:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png', //优惠模块1
  207. secondModulesName:'', //优惠模块2
  208. firstModulesImage:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png',//优惠模块icon1
  209. secondModulesImage:'',//优惠模块icon2
  210. thirdModulesName:'', //优惠模块3
  211. navInforList:[
  212. {text:'会员中心',icon:'https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9LCABdf_AAAfdMmM_xY655.png'},
  213. {text:'在线客服',icon:'https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9BSAXPobAAApo6I0Tlo684.png'}
  214. ],
  215. navServerList:[
  216. {text:'会员优惠',icon:'../../../static/temp/server1@2x.png',path:'/pages/service/member'},
  217. {text:'售后无忧',icon:'../../../static/temp/server2@2x.png',path:'/pages/service/aftersale'},
  218. {text:'购物须知',icon:'../../../static/temp/server3@2x.png',path:'/pages/service/shoppingnotice'},
  219. {text:'联系我们',icon:'../../../static/temp/server4@2x.png',path:''},
  220. ]
  221. }
  222. },
  223. onLoad() {
  224. },
  225. filters: {
  226. NumFormat:function(text) {//处理金额
  227. return Number(text).toFixed(2);
  228. },
  229. },
  230. computed: {
  231. ...mapState(['hasLogin','userInfo','isActivity'])
  232. },
  233. methods: {
  234. ...mapMutations(['login','logout']),
  235. getWxAuthorize(){
  236. authorize.getCode('weixin').then(wechatcode =>{// 根据微信的code获取用户登录状态:1已登录过 -1未登录过
  237. authorize.getUserInfo('weixin').then(wxResponse =>{
  238. userInfoLogin({code:wechatcode,encryptedData:wxResponse.encryptedData,iv:wxResponse.iv}).then(response =>{
  239. this.isLogin = true;
  240. this.userID = response.data.userID;
  241. this.userIdentity = response.data.userIdentity;
  242. this.clubStatus = response.data.clubStatus;
  243. this.$store.commit('updateStatus',response.data)
  244. this.login(response.data);
  245. uni.setStorageSync('token',response.data.token)
  246. uni.removeStorageSync('sessionid')
  247. uni.setStorageSync('sessionid','JSESSIONID='+response.data.sessionId)
  248. if(response.data.userIdentity ==1){
  249. this.$api.navigateTo('/seller/pages/index/index')
  250. }
  251. this.getHomeInformation()
  252. this.getOrganizeProducts()
  253. }).catch(error =>{
  254. this.isLogin = false;
  255. this.logout()
  256. uni.removeStorageSync('sessionid')
  257. uni.setStorageSync('sessionid','JSESSIONID='+error.data)
  258. this.$store.commit('updateStatus',error.data)
  259. this.getHomeInformation()
  260. this.getOrganizeProducts()
  261. })
  262. })
  263. })
  264. },
  265. getHomeInformation(){//初始化首页数据
  266. this.CommonService.GetHomeModulesDataInfo({ userId:this.userID }).then(res =>{
  267. let data = res.data;
  268. this.bannerImageList = data.bannerImageList
  269. this.mallPageModules = data.mallPageModules
  270. this.firstModulesName= data.firstModulesName
  271. this.secondModulesName= data.secondModulesName
  272. this.firstModulesImage= data.firstModulesImage
  273. this.secondModulesImage= data.secondModulesImage
  274. this.thirdModulesName= data.thirdModulesName
  275. this.productsClassifyList = data.productsClassifyList
  276. this.$store.commit('updateAllNum',data.shoppingCartCount)
  277. }).catch(error =>{
  278. this.$util.msg(error.msg,2000)
  279. })
  280. },
  281. getOrganizeProducts(){//获取模块三商品
  282. this.ProductService.queryProductPreferred({userId:this.userID,preferredFlag:100,pageNum:1,pageSize:6}).then(res =>{
  283. this.organizeProducts = res.data.results
  284. this.getProductPrice()
  285. }).catch(error =>{
  286. this.$util.msg(error.msg,2000)
  287. })
  288. },
  289. getProductPrice(){//获取商品或者活动价格
  290. let productIdArr = [];
  291. let productIds ='';
  292. this.organizeProducts.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  293. productIdArr.push(item.productID)
  294. })
  295. productIds = productIdArr.join(",");
  296. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
  297. this.organizeProducts = this.ReturnNewProducts(this.organizeProducts,response.data);
  298. this.skeletonShow = false;
  299. }).catch(error =>{
  300. this.$util.msg(error.msg,2000)
  301. })
  302. },
  303. ReturnNewProducts(Array,list){
  304. let NewArray = []
  305. Array.map(item=>{
  306. for (let i = 0; i < list.length; i++) {
  307. if( item.productID == list[i].productId ){
  308. NewArray.push(Object.assign(item,list[i]))
  309. }
  310. }
  311. });
  312. return NewArray
  313. },
  314. //轮播图切换修改背景色
  315. swiperChange(e) {
  316. const index = e.detail.current;
  317. this.current = index;
  318. },
  319. formatMoney(num){
  320. return num.toString().replace(/\d+/, function (n) { // 先提取整数部分
  321. return n.replace(/(\d)(?=(\d{3})+$)/g, function ($1) { // 对整数部分添加分隔符
  322. return $1 + ",";
  323. });
  324. });
  325. },
  326. handleBannerActivity(item,index){
  327. switch(index){
  328. case 0:
  329. this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
  330. break;
  331. }
  332. },
  333. handleClick(data){
  334. this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
  335. this.$store.commit('setActivity',data)
  336. },
  337. handleCancelClick(data){
  338. this.$store.commit('setActivity',data)
  339. },
  340. navToListPage(nav){//三个分类模块跳转
  341. let self = this;
  342. uni.setStorage({
  343. key: 'commodity_id',
  344. data: nav.id,
  345. success: function () {
  346. self.$api.navToListPage({type:'0',value:nav.classifyName,id:nav.id});
  347. }
  348. })
  349. },
  350. navigateToGoods(nav){//分类导航跳转
  351. let self = this;
  352. uni.setStorage({
  353. key: 'commodity_id',
  354. data: nav.id,
  355. success: function () {
  356. self.$api.navigateToGoods({type:'0',value:nav.classifyName,id:nav.id});
  357. }
  358. })
  359. },
  360. navToDetailPage(id) {//跳转商品详情页
  361. this.modallayer = true;
  362. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  363. },
  364. handleContact(e){
  365. console.log(e.detail.path)
  366. console.log(e.detail.query)
  367. },
  368. showTost(){
  369. this.$util.msg("功能开发中,敬请期待~",2000)
  370. // this.$api.navigateTo(`/seller/pages/login/login`)
  371. // uni.navigateToMiniProgram({
  372. // appId: 'wx5a5cda32926f55ac',
  373. // path: '/pages/tabBar/home/home',
  374. // extraData: {
  375. // 'data1': 'test'
  376. // },
  377. // envVersion: 'develop',
  378. // success(res) {
  379. // console.log(res)
  380. // // 打开成功
  381. // }
  382. // })
  383. },
  384. navto(url){
  385. this.$api.navigateTo(url)
  386. },
  387. swiperNavtopage(link){
  388. this.$api.navigateTo(`/h5/pages/activity/activity?productID=4204&path=${link}`)
  389. },
  390. telPhoneTo(){
  391. let self = this;
  392. this.$api.get('/home/afterSale',{organizeID:this.userOrganizeID},
  393. response => {
  394. console.log(response.data.contactNumber)
  395. uni.makePhoneCall({
  396. phoneNumber:response.data.contactNumber //仅为示例
  397. });
  398. }
  399. )
  400. }
  401. },
  402. onPageScroll(e){//实时获取到滚动的值
  403. if(e.scrollTop>50){
  404. this.inputActive = 'fixed'
  405. }else{
  406. this.inputActive = 'float'
  407. }
  408. },
  409. onPullDownRefresh() {//下拉刷新
  410. this.getHomeInformation()
  411. this.getOrganizeProducts()
  412. uni.stopPullDownRefresh()
  413. },
  414. onShareAppMessage(res){//分享转发
  415. if (res.from === 'button') {
  416. // 来自页面内转发按钮
  417. }
  418. return {
  419. title: '采美采购商城-生美/医美采购服务平台',
  420. path: 'pages/tabBar/home/home',
  421. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  422. }
  423. },
  424. onShow(){
  425. this.modallayer = false;
  426. authorize.getSetting().then(res =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  427. if(res == 1){
  428. this.getWxAuthorize()
  429. }else{
  430. this.$api.getComStorage('userInfo').then((resolve) =>{
  431. this.userID = resolve.userID ? resolve.userID :0;
  432. this.getHomeInformation()
  433. this.getOrganizeProducts()
  434. }).catch(error =>{
  435. console.log(error)
  436. })
  437. }
  438. })
  439. }
  440. }
  441. </script>
  442. <style lang="scss">
  443. page,.home{
  444. width: 100%;
  445. height: auto;
  446. }
  447. .container-home{
  448. background: #FFFFFF;
  449. }
  450. .swiper-banner-box{
  451. width: 100%;
  452. height: 360rpx;
  453. padding-top:100rpx;
  454. background:#FFFFFF url(https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9LCALu9wAAAv45Bdpsk814.png)no-repeat;
  455. position: relative;
  456. background-size: cover;
  457. }
  458. .tui-banner-swiper {
  459. width: 700rpx;
  460. margin: 0 auto;
  461. height: 340rpx;
  462. border-radius: 24rpx;
  463. overflow: hidden;
  464. transform: translateY(0);
  465. box-shadow:0px 3px 6px rgba(225,86,22,0.08);
  466. margin-top: 16rpx;
  467. .banner-item{
  468. border-radius: 24rpx;
  469. }
  470. .tui-slide-image {
  471. width: 100%;
  472. height: 340rpx;
  473. display: block;
  474. }
  475. }
  476. .swiper__dots-box{
  477. position: absolute;
  478. bottom: 30rpx;
  479. left: 0;
  480. right: 0;
  481. /* #ifndef APP-NVUE */
  482. display: flex;
  483. /* #endif */
  484. flex: 1;
  485. flex-direction: row;
  486. justify-content: center;
  487. align-items: center;
  488. .swiper__dots-item{
  489. width: 8rpx;
  490. height: 8rpx;
  491. border-radius: 100%;
  492. margin-left: 6px;
  493. background-color:rgba(255,255,255,.7);
  494. }
  495. .swiper__dots-long{
  496. width: 35rpx;
  497. height: 8rpx;
  498. border-radius: 4rpx;
  499. background-color: #ffff;
  500. transition: all 0.4s;
  501. }
  502. }
  503. /* 分类 */
  504. .cate-section {
  505. width: 702rpx;
  506. height: auto;
  507. padding:34rpx 24rpx 14rpx 24rpx;
  508. background: #fff;
  509. .tabbar{
  510. margin-bottom: 26rpx;
  511. &.bot{
  512. padding: 16rpx 24rpx;
  513. border-radius: 20rpx;
  514. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  515. border: 1px solid #F9F9F9;
  516. }
  517. }
  518. .cate-item {
  519. width: 118rpx;
  520. margin-right:28rpx;
  521. display: flex;
  522. float: left;
  523. flex-direction: column;
  524. align-items: center;
  525. font-size: $font-size-26;
  526. color: $text-color;
  527. line-height: 36rpx;
  528. &:last-child{
  529. margin-right: 0;
  530. }
  531. &:nth-child(5n){
  532. margin-right: 0;
  533. }
  534. image {
  535. width: 90rpx;
  536. height: 90rpx;
  537. margin-bottom: 8rpx;
  538. border-radius: 32rpx;
  539. }
  540. }
  541. .cate-item-info {
  542. width: 118rpx;
  543. margin-right:59.5rpx;
  544. display: flex;
  545. float: left;
  546. flex-direction: column;
  547. align-items: center;
  548. font-size: $font-size-26;
  549. color: $text-color;
  550. line-height: 36rpx;
  551. &:last-child{
  552. margin-right: 0;
  553. }
  554. image {
  555. width: 90rpx;
  556. height: 90rpx;
  557. margin-bottom: 16rpx;
  558. border-radius: 32rpx;
  559. }
  560. button.contact-btn{
  561. width: 118rpx;
  562. height: 90rpx;
  563. margin: 0;
  564. padding: 0;
  565. display: flex;
  566. flex-direction: column;
  567. align-items: center;
  568. box-sizing: border-box;
  569. text-align: center;
  570. text-decoration: none;
  571. border-radius: 0;
  572. -webkit-tap-highlight-color: transparent;
  573. overflow: hidden;
  574. background-color:#FFFFFF;
  575. margin-bottom: 16rpx;
  576. image{
  577. width: 90rpx;
  578. height: 90rpx;
  579. margin-bottom: 0;
  580. border-radius: 32rpx;
  581. }
  582. }
  583. }
  584. }
  585. .hotgoods-section{
  586. background: #FFFFFF;
  587. .s-header{
  588. display:flex;
  589. align-items:center;
  590. height: 50rpx;
  591. line-height: 50rpx;
  592. border-radius: 20rpx 20rpx 0 0;
  593. .tip{
  594. flex: 4;
  595. font-size: 30rpx;
  596. color: $text-color;
  597. font-weight: bolder;
  598. padding-left: 24rpx;
  599. }
  600. .tit{
  601. flex: 4.4;
  602. font-size: $font-size-28;
  603. color: $text-color;
  604. text-align: right;
  605. }
  606. .icon-xiayibu{
  607. flex: 0.6;
  608. color: $text-color;
  609. text-align: left;
  610. font-size: $font-size-24;
  611. }
  612. }
  613. }
  614. .hotgoods-swiper{
  615. width: 100%;
  616. height: auto;
  617. overflow: hidden;
  618. padding-top: 24rpx;
  619. background: #FFFFFF;
  620. border-radius: 20rpx;
  621. margin-bottom: 20rpx;
  622. // box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  623. .scoll-wrapper{
  624. width: 702rpx;
  625. height: auto;
  626. padding:24rpx 24rpx 0 24rpx;
  627. background: #F7F7F7;
  628. border-radius: 20rpx;
  629. .floor-item{
  630. width: 341rpx;
  631. height: 568rpx;
  632. margin-right: 20rpx;
  633. font-size: $font-size-24;
  634. color: $text-color;
  635. background: #FFFFFF;
  636. line-height: 36rpx;
  637. border-radius: 20rpx;
  638. margin-bottom: 20rpx;
  639. float: left;
  640. box-sizing: border-box;
  641. padding-bottom: 16rpx;
  642. &:nth-child(2n){
  643. margin-right: 0;
  644. }
  645. image{
  646. width: 341rpx;
  647. height: 341rpx;
  648. border-radius: 20rpx 20rpx 0 0;
  649. display: block;
  650. margin-bottom: 20rpx;
  651. }
  652. .floor-item-content{
  653. width: 311rpx;
  654. padding: 0 15rpx;
  655. }
  656. .floor-item-act{
  657. width: 100%;
  658. height: 68rpx;
  659. text-align: center;
  660. box-sizing: border-box;
  661. padding: 16rpx 0;
  662. margin-top: 8rpx;
  663. .floor-tags{
  664. float: left;
  665. height: 36rpx;
  666. border-radius: 4rpx;
  667. background-color: rgba(225, 86, 22, 0.1);
  668. line-height: 36rpx;
  669. color: $color-system;
  670. text-align: center;
  671. display: inline-block;
  672. padding:0 16rpx;
  673. font-size: $font-size-20;
  674. }
  675. }
  676. .title-none{
  677. font-size: $font-size-26;
  678. color: #FF2A2A;
  679. line-height: 80rpx;
  680. .btn{
  681. display: inline-block;
  682. float: right;
  683. width: 112rpx;
  684. height: 44rpx;
  685. background: $btn-confirm;
  686. line-height: 44rpx;
  687. font-size: $font-size-24;
  688. color: #FFFFFF;
  689. text-align: center;
  690. border-radius: 22rpx;
  691. margin-top: 17rpx;
  692. }
  693. }
  694. .title{
  695. width: 100%;
  696. height: 72rpx;
  697. display: flex;
  698. flex-direction: column;
  699. .mclap{
  700. width: 100%;
  701. line-height: 36rpx;
  702. text-overflow:ellipsis;
  703. display: -webkit-box;
  704. word-break: break-all;
  705. -webkit-box-orient: vertical;
  706. -webkit-line-clamp: 2;
  707. overflow: hidden;
  708. font-size: 26rpx;
  709. }
  710. }
  711. .no-price{
  712. height: 54rpx;
  713. line-height: 54rpx;
  714. display: flex;
  715. box-sizing: border-box;
  716. .p-no{
  717. font-size: $font-size-30;
  718. color: $text-color;
  719. display: block;
  720. float: left;
  721. }
  722. .p-stars{
  723. width: 230rpx;
  724. float: left;
  725. }
  726. }
  727. .price{
  728. color: #FF2A2A;
  729. line-height: 44rpx;
  730. &.none{
  731. text-decoration: line-through;
  732. color: #999999;
  733. }
  734. .sm{
  735. font-size: $font-size-24;
  736. }
  737. .big{
  738. font-size: $font-size-28;
  739. }
  740. }
  741. }
  742. }
  743. }
  744. .footer-section{
  745. width: 702rpx;
  746. padding: 0 24rpx 0 24rpx;
  747. background: #FFFFFF;
  748. border-radius: 20rpx;
  749. .s-header{
  750. display:flex;
  751. align-items:center;
  752. height: 80rpx;
  753. line-height: 80rpx;
  754. .tip{
  755. flex: 1;
  756. font-size: 30rpx;
  757. color: $text-color;
  758. font-weight: bolder;
  759. }
  760. }
  761. .f-content{
  762. width: 100%;
  763. image{
  764. width: 100%;
  765. height: 350rpx;
  766. }
  767. }
  768. /*底部服务导航*/
  769. .f-tab-section {
  770. width: 100%;
  771. height: auto;
  772. padding: 38rpx 0;
  773. background: #fff;
  774. /*底部服务导航*/
  775. .cate-item {
  776. width: 99rpx;
  777. margin-right: 102rpx;
  778. float: left;
  779. display: flex;
  780. flex-direction: column;
  781. align-items: center;
  782. font-size: $font-size-24;
  783. color: $text-color;
  784. &:last-child{
  785. margin-right: 0;
  786. }
  787. image {
  788. width: 75rpx;
  789. height: 75rpx;
  790. margin-bottom: 8rpx;
  791. border-radius: 50%;
  792. }
  793. }
  794. }
  795. .f-text{
  796. .logo{
  797. width: 80rpx;
  798. height: 80rpx;
  799. float: left;
  800. margin: 0 6rpx;
  801. }
  802. display: flex;
  803. flex-direction: column;
  804. align-items: center;
  805. font-size: $font-size-24;
  806. color: $text-color;
  807. line-height: 80rpx;
  808. padding-top: 20rpx;
  809. }
  810. }
  811. </style>