home.vue 25 KB

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