home.vue 25 KB

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