home.vue 23 KB

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