home.vue 23 KB

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