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