home.vue 24 KB

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