home.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  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, queryHomeInfo } 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. }).catch(error =>{
  250. this.isLogin = false;
  251. this.logout()
  252. uni.removeStorageSync('sessionid')
  253. uni.setStorageSync('sessionid','JSESSIONID='+error.data)
  254. this.$store.commit('updateStatus',error.data)
  255. })
  256. this.getHomeInformation()
  257. this.getOrganizeProducts()
  258. })
  259. })
  260. },
  261. getHomeInformation(){
  262. queryHomeInfo({}).then(res =>{
  263. let data = res.data;
  264. this.bannerImageList = data.bannerImageList
  265. this.mallPageModules = data.mallPageModules
  266. this.firstModulesName= data.firstModulesName
  267. this.secondModulesName= data.secondModulesName
  268. this.firstModulesImage= data.firstModulesImage
  269. this.secondModulesImage= data.secondModulesImage
  270. this.thirdModulesName= data.thirdModulesName
  271. this.productsClassifyList = data.productsClassifyList
  272. this.skeletonShow = false;
  273. this.$store.commit('updateAllNum',data.shoppingCartCount)
  274. }).catch(error =>{
  275. this.$util.msg(error.msg,2000)
  276. })
  277. },
  278. getOrganizeProducts(){//获取模块三商品
  279. this.ProductService.queryProductPreferred({userId:this.userID,preferredFlag:100,pageNum:1,pageSize:6}).then(res =>{
  280. this.organizeProducts = res.data.results
  281. this.getProductPrice()
  282. }).catch(error =>{
  283. this.$util.msg(error.msg,2000)
  284. })
  285. },
  286. getProductPrice(){//获取商品或者活动价格
  287. let productIdArr = [];
  288. let productIds ='';
  289. this.organizeProducts.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  290. productIdArr.push(item.productID)
  291. })
  292. productIds = productIdArr.join(",");
  293. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
  294. this.organizeProducts = this.ReturnNewProducts(this.organizeProducts,response.data);
  295. }).catch(error =>{
  296. this.$util.msg(error.msg,2000)
  297. })
  298. },
  299. ReturnNewProducts(Array,list){
  300. let NewArray = []
  301. Array.map(item=>{
  302. for (let i = 0; i < list.length; i++) {
  303. if( item.productID == list[i].productId ){
  304. NewArray.push(Object.assign(item,list[i]))
  305. }
  306. }
  307. });
  308. return NewArray
  309. },
  310. //轮播图切换修改背景色
  311. swiperChange(e) {
  312. const index = e.detail.current;
  313. this.current = index;
  314. },
  315. formatMoney(num){
  316. return num.toString().replace(/\d+/, function (n) { // 先提取整数部分
  317. return n.replace(/(\d)(?=(\d{3})+$)/g, function ($1) { // 对整数部分添加分隔符
  318. return $1 + ",";
  319. });
  320. });
  321. },
  322. handleBannerActivity(item,index){
  323. switch(index){
  324. case 0:
  325. this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
  326. break;
  327. }
  328. },
  329. handleClick(data){
  330. this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
  331. this.$store.commit('setActivity',data)
  332. },
  333. handleCancelClick(data){
  334. this.$store.commit('setActivity',data)
  335. },
  336. navToListPage(nav){//三个分类模块跳转
  337. let self = this;
  338. uni.setStorage({
  339. key: 'commodity_id',
  340. data: nav.id,
  341. success: function () {
  342. self.$api.navToListPage({type:'0',value:nav.classifyName,id:nav.id});
  343. }
  344. })
  345. },
  346. navigateToGoods(nav){//分类导航跳转
  347. let self = this;
  348. uni.setStorage({
  349. key: 'commodity_id',
  350. data: nav.id,
  351. success: function () {
  352. self.$api.navigateToGoods({type:'0',value:nav.classifyName,id:nav.id});
  353. }
  354. })
  355. },
  356. navToDetailPage(id) {//跳转商品详情页
  357. this.modallayer = true;
  358. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  359. },
  360. handleContact(e){
  361. console.log(e.detail.path)
  362. console.log(e.detail.query)
  363. },
  364. showTost(){
  365. this.$util.msg("功能开发中,敬请期待~",2000)
  366. // this.$api.navigateTo(`/seller/pages/login/login`)
  367. // uni.navigateToMiniProgram({
  368. // appId: 'wx5a5cda32926f55ac',
  369. // path: '/pages/tabBar/home/home',
  370. // extraData: {
  371. // 'data1': 'test'
  372. // },
  373. // envVersion: 'develop',
  374. // success(res) {
  375. // console.log(res)
  376. // // 打开成功
  377. // }
  378. // })
  379. },
  380. navto(url){
  381. this.$api.navigateTo(url)
  382. },
  383. swiperNavtopage(link){
  384. this.$api.navigateTo(`/h5/pages/activity/activity?productID=4204&path=${link}`)
  385. },
  386. telPhoneTo(){
  387. let self = this;
  388. this.$api.get('/home/afterSale',{organizeID:this.userOrganizeID},
  389. response => {
  390. console.log(response.data.contactNumber)
  391. uni.makePhoneCall({
  392. phoneNumber:response.data.contactNumber //仅为示例
  393. });
  394. }
  395. )
  396. }
  397. },
  398. onPageScroll(e){//实时获取到滚动的值
  399. if(e.scrollTop>50){
  400. this.inputActive = 'fixed'
  401. }else{
  402. this.inputActive = 'float'
  403. }
  404. },
  405. onPullDownRefresh() {//下拉刷新
  406. this.getHomeInformation()
  407. this.getOrganizeProducts()
  408. uni.stopPullDownRefresh()
  409. },
  410. onShareAppMessage(res){//分享转发
  411. if (res.from === 'button') {
  412. // 来自页面内转发按钮
  413. }
  414. return {
  415. title: '采美采购商城-生美/医美采购服务平台',
  416. path: 'pages/tabBar/home/home',
  417. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  418. }
  419. },
  420. onShow(){
  421. this.modallayer = false;
  422. authorize.getSetting().then(res =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  423. if(res == 1){
  424. this.getWxAuthorize()
  425. }else{
  426. this.$api.getComStorage('userInfo').then((resolve) =>{
  427. this.userID = resolve.userID ? resolve.userID :0;
  428. this.getHomeInformation()
  429. this.getOrganizeProducts()
  430. }).catch(error =>{
  431. console.log(error)
  432. })
  433. }
  434. })
  435. }
  436. }
  437. </script>
  438. <style lang="scss">
  439. page,.home{
  440. width: 100%;
  441. height: auto;
  442. }
  443. .container-home{
  444. background: #FFFFFF;
  445. }
  446. .swiper-banner-box{
  447. width: 100%;
  448. height: 360rpx;
  449. padding-top:100rpx;
  450. background:#FFFFFF url(https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9LCALu9wAAAv45Bdpsk814.png)no-repeat;
  451. position: relative;
  452. background-size: cover;
  453. }
  454. .tui-banner-swiper {
  455. width: 700rpx;
  456. margin: 0 auto;
  457. height: 340rpx;
  458. border-radius: 24rpx;
  459. overflow: hidden;
  460. transform: translateY(0);
  461. box-shadow:0px 3px 6px rgba(225,86,22,0.08);
  462. margin-top: 16rpx;
  463. .banner-item{
  464. border-radius: 24rpx;
  465. }
  466. .tui-slide-image {
  467. width: 100%;
  468. height: 340rpx;
  469. display: block;
  470. }
  471. }
  472. .swiper__dots-box{
  473. position: absolute;
  474. bottom: 30rpx;
  475. left: 0;
  476. right: 0;
  477. /* #ifndef APP-NVUE */
  478. display: flex;
  479. /* #endif */
  480. flex: 1;
  481. flex-direction: row;
  482. justify-content: center;
  483. align-items: center;
  484. .swiper__dots-item{
  485. width: 8rpx;
  486. height: 8rpx;
  487. border-radius: 100%;
  488. margin-left: 6px;
  489. background-color:rgba(255,255,255,.7);
  490. }
  491. .swiper__dots-long{
  492. width: 35rpx;
  493. height: 8rpx;
  494. border-radius: 4rpx;
  495. background-color: #ffff;
  496. transition: all 0.4s;
  497. }
  498. }
  499. /* 分类 */
  500. .cate-section {
  501. width: 702rpx;
  502. height: auto;
  503. padding:34rpx 24rpx 14rpx 24rpx;
  504. background: #fff;
  505. .tabbar{
  506. margin-bottom: 26rpx;
  507. &.bot{
  508. padding: 16rpx 24rpx;
  509. border-radius: 20rpx;
  510. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  511. border: 1px solid #F9F9F9;
  512. }
  513. }
  514. .cate-item {
  515. width: 118rpx;
  516. margin-right:28rpx;
  517. display: flex;
  518. float: left;
  519. flex-direction: column;
  520. align-items: center;
  521. font-size: $font-size-26;
  522. color: $text-color;
  523. line-height: 36rpx;
  524. &:last-child{
  525. margin-right: 0;
  526. }
  527. &:nth-child(5n){
  528. margin-right: 0;
  529. }
  530. image {
  531. width: 90rpx;
  532. height: 90rpx;
  533. margin-bottom: 8rpx;
  534. border-radius: 32rpx;
  535. }
  536. }
  537. .cate-item-info {
  538. width: 118rpx;
  539. margin-right:59.5rpx;
  540. display: flex;
  541. float: left;
  542. flex-direction: column;
  543. align-items: center;
  544. font-size: $font-size-26;
  545. color: $text-color;
  546. line-height: 36rpx;
  547. &:last-child{
  548. margin-right: 0;
  549. }
  550. image {
  551. width: 90rpx;
  552. height: 90rpx;
  553. margin-bottom: 16rpx;
  554. border-radius: 32rpx;
  555. }
  556. button.contact-btn{
  557. width: 118rpx;
  558. height: 90rpx;
  559. margin: 0;
  560. padding: 0;
  561. display: flex;
  562. flex-direction: column;
  563. align-items: center;
  564. box-sizing: border-box;
  565. text-align: center;
  566. text-decoration: none;
  567. border-radius: 0;
  568. -webkit-tap-highlight-color: transparent;
  569. overflow: hidden;
  570. background-color:#FFFFFF;
  571. margin-bottom: 16rpx;
  572. image{
  573. width: 90rpx;
  574. height: 90rpx;
  575. margin-bottom: 0;
  576. border-radius: 32rpx;
  577. }
  578. }
  579. }
  580. }
  581. .hotgoods-section{
  582. background: #FFFFFF;
  583. .s-header{
  584. display:flex;
  585. align-items:center;
  586. height: 50rpx;
  587. line-height: 50rpx;
  588. border-radius: 20rpx 20rpx 0 0;
  589. .tip{
  590. flex: 4;
  591. font-size: 30rpx;
  592. color: $text-color;
  593. font-weight: bolder;
  594. padding-left: 24rpx;
  595. }
  596. .tit{
  597. flex: 4.4;
  598. font-size: $font-size-28;
  599. color: $text-color;
  600. text-align: right;
  601. }
  602. .icon-xiayibu{
  603. flex: 0.6;
  604. color: $text-color;
  605. text-align: left;
  606. font-size: $font-size-24;
  607. }
  608. }
  609. }
  610. .hotgoods-swiper{
  611. width: 100%;
  612. height: auto;
  613. overflow: hidden;
  614. padding-top: 24rpx;
  615. background: #FFFFFF;
  616. border-radius: 20rpx;
  617. margin-bottom: 20rpx;
  618. // box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  619. .scoll-wrapper{
  620. width: 702rpx;
  621. height: auto;
  622. padding:24rpx 24rpx 0 24rpx;
  623. background: #F7F7F7;
  624. border-radius: 20rpx;
  625. .floor-item{
  626. width: 341rpx;
  627. height: auto;
  628. margin-right: 20rpx;
  629. font-size: $font-size-24;
  630. color: $text-color;
  631. background: #FFFFFF;
  632. line-height: 36rpx;
  633. border-radius: 20rpx;
  634. margin-bottom: 20rpx;
  635. float: left;
  636. box-sizing: border-box;
  637. padding-bottom: 16rpx;
  638. &:nth-child(2n){
  639. margin-right: 0;
  640. }
  641. image{
  642. width: 341rpx;
  643. height: 341rpx;
  644. border-radius: 20rpx 20rpx 0 0;
  645. display: block;
  646. margin-bottom: 20rpx;
  647. }
  648. .floor-item-content{
  649. width: 311rpx;
  650. padding: 0 15rpx;
  651. }
  652. .floor-item-act{
  653. width: 100%;
  654. height: 68rpx;
  655. text-align: center;
  656. box-sizing: border-box;
  657. padding: 16rpx 0;
  658. margin-top: 8rpx;
  659. .floor-tags{
  660. float: left;
  661. height: 36rpx;
  662. border-radius: 4rpx;
  663. background-color: rgba(225, 86, 22, 0.1);
  664. line-height: 36rpx;
  665. color: $color-system;
  666. text-align: center;
  667. display: inline-block;
  668. padding:0 16rpx;
  669. font-size: $font-size-20;
  670. }
  671. }
  672. .title-none{
  673. font-size: $font-size-26;
  674. color: #FF2A2A;
  675. line-height: 80rpx;
  676. .btn{
  677. display: inline-block;
  678. float: right;
  679. width: 112rpx;
  680. height: 44rpx;
  681. background: $btn-confirm;
  682. line-height: 44rpx;
  683. font-size: $font-size-24;
  684. color: #FFFFFF;
  685. text-align: center;
  686. border-radius: 22rpx;
  687. margin-top: 17rpx;
  688. }
  689. }
  690. .title{
  691. width: 100%;
  692. height: 72rpx;
  693. display: flex;
  694. flex-direction: column;
  695. .mclap{
  696. width: 100%;
  697. line-height: 36rpx;
  698. text-overflow:ellipsis;
  699. display: -webkit-box;
  700. word-break: break-all;
  701. -webkit-box-orient: vertical;
  702. -webkit-line-clamp: 2;
  703. overflow: hidden;
  704. font-size: 26rpx;
  705. }
  706. }
  707. .no-price{
  708. height: 54rpx;
  709. line-height: 54rpx;
  710. display: flex;
  711. box-sizing: border-box;
  712. .p-no{
  713. font-size: $font-size-30;
  714. color: $text-color;
  715. display: block;
  716. float: left;
  717. }
  718. .p-stars{
  719. width: 230rpx;
  720. float: left;
  721. }
  722. }
  723. .price{
  724. color: #FF2A2A;
  725. line-height: 44rpx;
  726. &.none{
  727. text-decoration: line-through;
  728. color: #999999;
  729. }
  730. .sm{
  731. font-size: $font-size-24;
  732. }
  733. .big{
  734. font-size: $font-size-28;
  735. }
  736. }
  737. }
  738. }
  739. }
  740. .footer-section{
  741. width: 702rpx;
  742. padding: 0 24rpx 0 24rpx;
  743. background: #FFFFFF;
  744. border-radius: 20rpx;
  745. .s-header{
  746. display:flex;
  747. align-items:center;
  748. height: 80rpx;
  749. line-height: 80rpx;
  750. .tip{
  751. flex: 1;
  752. font-size: 30rpx;
  753. color: $text-color;
  754. font-weight: bolder;
  755. }
  756. }
  757. .f-content{
  758. width: 100%;
  759. image{
  760. width: 100%;
  761. height: 350rpx;
  762. }
  763. }
  764. /*底部服务导航*/
  765. .f-tab-section {
  766. width: 100%;
  767. height: auto;
  768. padding: 38rpx 0;
  769. background: #fff;
  770. /*底部服务导航*/
  771. .cate-item {
  772. width: 99rpx;
  773. margin-right: 102rpx;
  774. float: left;
  775. display: flex;
  776. flex-direction: column;
  777. align-items: center;
  778. font-size: $font-size-24;
  779. color: $text-color;
  780. &:last-child{
  781. margin-right: 0;
  782. }
  783. image {
  784. width: 75rpx;
  785. height: 75rpx;
  786. margin-bottom: 8rpx;
  787. border-radius: 50%;
  788. }
  789. }
  790. }
  791. .f-text{
  792. .logo{
  793. width: 80rpx;
  794. height: 80rpx;
  795. float: left;
  796. margin: 0 6rpx;
  797. }
  798. display: flex;
  799. flex-direction: column;
  800. align-items: center;
  801. font-size: $font-size-24;
  802. color: $text-color;
  803. line-height: 80rpx;
  804. padding-top: 20rpx;
  805. }
  806. }
  807. </style>