hotel.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722
  1. <template>
  2. <view>
  3. <van-skeleton :loading="loading">
  4. <view style="height: 65upx;"></view>
  5. <scroll-view style="height: 95vh;" class="floor-list"
  6. :scroll-top="scrollTop" scroll-y="true" @scroll="scroll" @scrolltoupper="upper" @scrolltolower="lower"
  7. :refresher-enabled="false">
  8. <view class="scrollswiper">
  9. <swiper class="swiper"
  10. indicator-dots
  11. circular=true
  12. :autoplay="autoplay"
  13. :interval="interval"
  14. :duration="duration"
  15. >
  16. <swiper-item v-for="(item,index) in store_slide" :key="index">
  17. <view style="height: 100%;" class="swiper-item">
  18. <image style="height: 100%;width: 100%;" :src='item' />
  19. </view>
  20. </swiper-item>
  21. </swiper>
  22. </view>
  23. <view class="titeTop" :class="iScrolltop == 2?'activeColor' : ''">
  24. <view @tap="goback()" class="topleft">
  25. <uniIcon type="back" size="22" color="#666666" />
  26. </view>
  27. <view @click="gotosearch">
  28. <view class="input-view">
  29. <uniIcon type="search" size="22" color="#666666" />
  30. <input confirm-type="search" class="input" type="text" placeholder="输入搜索关键词" @confirm="confirm" />
  31. </view>
  32. </view>
  33. <!-- <view class="topright">
  34. <uniIcon type="arrowright" size="22" color="#666666" />
  35. </view> -->
  36. </view>
  37. <view class="tip">
  38. <view style="font-size: 36upx;color: #303133;">{{hotelitle}}</view>
  39. <view >
  40. <van-icon name="star-o" @click="gocollect" v-if="has_collected == 0" size="22" />
  41. <van-icon name="star-o" @click="gocollect" v-if="has_collected == 1" size="22" color= "#D9332E" />
  42. </view>
  43. </view>
  44. <view v-if="store_summary" style="color: #666;padding: 0 32upx 10upx 32upx;">{{store_summary}}</view>
  45. <view>
  46. <van-tabs title-active-color="#D9332E" v-model="activeindex" @click.stop="onChange">
  47. <van-tab :name="0" title="服务项目">
  48. <view>
  49. <!-- background: #909399 -->
  50. <view class="giveList">
  51. <view class="giveItem" v-for="(item,index) in category_list" :key="index" @click.stop="godetail(item)">
  52. <image :src="item.pic"
  53. style="width:100%;height: 69%;">
  54. </image>
  55. <p style="text-align: center;font-size: 24rpx;">{{item.gc_name}}</p>
  56. </view>
  57. </view>
  58. <view style="padding: 0upx 18upx 20upx 18upx ;">
  59. <view style="width: 95%;margin: 0 auto;">
  60. <view @click.stop="choseType(1)" :class="tabIndex==1 ? 'active' : ''" class="typeItem">
  61. 综合
  62. </view>
  63. <view@click.stop="choseType(2)" class="typeItem">
  64. <view class="iconClass">
  65. <view :class="tabIndex==2 ? 'active' : ''">上新</view>
  66. <view style="display: flex;flex-direction: column;margin-left: 10rpx;">
  67. <view v-if="istopclick==0">
  68. <!-- <van-icon size="8px" name="arrow-up" :class="istopclick==1 ? 'active' : ''" /> -->
  69. <img style="width: 36upx;height: 36upx;vertical-align: middle;" src='../../static/sort.png' />
  70. </view>
  71. <view v-if="istopclick==1">
  72. <!-- <van-icon size="8px" name="arrow-up" :class="istopclick==1 ? 'active' : ''" /> -->
  73. <img style="width: 36upx;height: 36upx;vertical-align: middle;" src='../../static/sort_down.png' />
  74. </view>
  75. <view v-if="istopclick==2">
  76. <!-- <van-icon :class="istopclick==2 ? 'active' : ''" size="8px" name="arrow-down" /> -->
  77. <img style="width: 36upx;height: 36upx;vertical-align: middle;" src='../../static/sort_up.png' />
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view @click.stop="choseType(3)" class="typeItem">
  83. <view class="iconClass">
  84. <view :class="tabIndex==3 ? 'active' : ''">价格</view>
  85. <view style="display: flex;flex-direction: column;margin-left: 10rpx;">
  86. <view v-if="isprice==0">
  87. <img style="width: 36upx;height: 36upx;vertical-align: middle;" src='../../static/sort.png' />
  88. </view>
  89. <view v-if="isprice==3">
  90. <img style="width: 36upx;height: 36upx;vertical-align: middle;" src='../../static/sort_down.png' />
  91. </view>
  92. <view v-if="isprice==4">
  93. <img style="width: 36upx;height: 36upx;vertical-align: middle;" src='../../static/sort_up.png' />
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view @click.stop="choseType(4)" class="typeItem">
  99. <view :class="ishowpull ? 'active' : ''">分类
  100. <img v-if="!ishowpull" style="width: 36upx;height: 36upx;" src='../../static/sortb.png' />
  101. <img v-if="ishowpull" style="width: 36upx;height: 36upx;" src='../../static/sortb_up.png' />
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view v-if="ishowpull" style="display: flex;flex-wrap: wrap;padding: 10upx 12upx;">
  107. <view class="spacedance"
  108. v-for="(item, index) in classify" :key="index"
  109. @click.stop="confirm(item)" >
  110. {{item.gc_name}}
  111. </view>
  112. </view>
  113. <!-- 商品列表 -->
  114. <shopList :goodId="goodId" :productList="goods_list" />
  115. <view v-if="isDetail==1" class="fontcenter">加载中...</view>
  116. <view v-if="isDetail==2" class="fontcenter">暂无更多商品</view>
  117. </view>
  118. </van-tab>
  119. <van-tab :name="1" :title="'评价' +' '+feedback_count">
  120. <!-- 评价列表 -->
  121. <assess :feedback_list="feedback_list" :showpicture="showpicture" />
  122. </van-tab>
  123. <van-tab :name="2" title="酒店信息">
  124. <view style="padding: 20upx 32upx 0upx 32upx;margin-bottom: 200upx;">
  125. <view style="padding-bottom: 10upx;">商家信息</view>
  126. <rich-text :nodes="store_description"></rich-text>
  127. <view class="newadress">
  128. <view>酒店地址</view>
  129. <view v-if="storeinformation.store_address!='' ">{{storeinformation.store_address}}</view>
  130. <view v-else>暂无</view>
  131. </view>
  132. <view class="newadress">
  133. <view>联系酒店</view>
  134. <view v-if="storeinformation.store_phone!='' ">{{storeinformation.store_phone}}</view>
  135. <view v-else>暂无</view>
  136. </view>
  137. </view>
  138. </van-tab>
  139. </van-tabs>
  140. </view>
  141. </scroll-view>
  142. <view v-if="activeindex == 2" class="bottomButton">
  143. <button type="warn" @click="gofeedback">您的入住意见反馈(反馈送圈币)</button>
  144. </view>
  145. <Gobacktop @getop="getop" v-if="isTop" />
  146. </van-skeleton>
  147. </view>
  148. </template>
  149. <script>
  150. import {
  151. mapMutations,mapState
  152. } from 'vuex'
  153. import uniIcon from '@/component/uni-icon/uni-icon.vue'
  154. import uniNavBar from '@/component/uni-nav-bar/uni-nav-bar.vue'
  155. import commoNar from '@/component/commoNar.vue' // 筛选栏
  156. import shopList from '@/component/shopList.vue' // 商品列表
  157. import assess from '@/component/assess.vue' // 评价列表
  158. import Gobacktop from '@/component/Gobacktop.vue'
  159. export default {
  160. components: {
  161. uniIcon,
  162. uniNavBar,
  163. commoNar,
  164. assess,
  165. shopList,
  166. Gobacktop
  167. },
  168. data() {
  169. return {
  170. firstloading: 0,
  171. showpicture: false,
  172. loading: true,
  173. storeinformation: {},
  174. isTop: 0,
  175. feedback_count: 0,
  176. hoteldetail: {},
  177. has_collected: 0, // 收藏酒店
  178. chosegoods_commonid: true,
  179. chosegoods_price: true,
  180. firstwo: 1,
  181. isDetail: 1,
  182. pictureUrl: this.pictureUrl,
  183. showdialog: false,
  184. store_description: '', //酒店信息
  185. store_summary:'', // 标签
  186. store_slide: [], //banner
  187. goods_list:[], // 首页酒店商品列表
  188. isnexttwo: 1,
  189. feedback_list:[], // 评价列表
  190. hotelitle: '', // 酒店名称
  191. istopclick: 0,
  192. page: 1,
  193. goodId: 0,
  194. page_size: 10,
  195. gc_id_1:'',// 一级分类id
  196. gc_id_2:'',// 二级分类id
  197. goods_commonid:'',// 上新排序 desc-降序 asc-尚需
  198. goods_price :'',// 价格排序 desc-降序 asc-尚需
  199. praise :'',// 好评率排序 desc-降序 asc-尚需
  200. keyword:'',//g 关键字搜索
  201. category_list: [{gc_id_1:'',gc_name:'全部'}], // 一级菜单栏
  202. tabIndex: 1,
  203. isprice:0,
  204. menu: [{
  205. name: '综合',
  206. id: '0'
  207. }, {
  208. name: '上新',
  209. id: '1'
  210. }, {
  211. name: '价格',
  212. id: '2'
  213. },
  214. {
  215. name:'分类',
  216. id:'3'
  217. }
  218. ],
  219. ishowpull: false,
  220. classify: [],
  221. background: ['color1', 'color2', 'color3'],
  222. indicatorDots: true,
  223. autoplay: true,
  224. interval: 2000,
  225. duration: 500,
  226. activeindex: 0,
  227. scrollTop: 0,
  228. old: {
  229. scrollTop: 0
  230. },
  231. value1: 0,
  232. iScrolltop: 1
  233. }
  234. },
  235. onShareAppMessage(res) {
  236. uni.showShareMenu({
  237. withShareTicket: true
  238. });
  239. let that = this;
  240. let id = this.goodId; // 酒店id
  241. if (res.from === 'button') {
  242. // 来自页面内分享按钮
  243. }
  244. return {
  245. title: that.hotelitle,
  246. path: `/pages/index/hotel?id=${id}`,
  247. imageUrl:that.store_slide[0]
  248. }
  249. },
  250. // 初次渲染进来关闭分享菜单栏
  251. onReady:function(){
  252. },
  253. onLoad(options){
  254. this.goodId = options.id; // 商品和酒店Id
  255. this.activeindex = 0;
  256. this.getshopdetail(); // 获取商品详情
  257. this.hotelmenu(); // 一级菜单
  258. this.gethoteil(); // 获取酒店信息
  259. uni.$on('changshow', (e) => {
  260. this.changeshow();
  261. })
  262. uni.$on('changpicture', (e) => {
  263. this.changimg();
  264. })
  265. },
  266. computed:{
  267. ...mapState([
  268. 'hasLogin',
  269. 'userInfo',
  270. 'successlogion'
  271. ]),
  272. },
  273. methods: {
  274. changeshow() {
  275. this.showpicture = false;
  276. },
  277. changimg() {
  278. this.showpicture = true;
  279. },
  280. getop() {
  281. this.scrollTop = this.old.scrollTop
  282.                 this.$nextTick(function(){
  283.                     this.scrollTop=0;
  284.                 });
  285. this.isTop = false;
  286. },
  287. // 入住酒店反馈
  288. gofeedback() {
  289. if(this.hoteldetail.can_feedback == 0) {
  290. this.$msg(this.hoteldetail.feedback_msg);
  291. return;
  292. }
  293. let store_id = this.goodId;
  294. uni.navigateTo({
  295. url: `/pages/index/feedback?store_id=${store_id}`
  296. });
  297. },
  298. // 搜说
  299. gotosearch() {
  300. let store_id = this.goodId;
  301. uni.navigateTo({
  302. url: `/pages/index/hotelsearch?store_id=${store_id}`
  303. });
  304. },
  305. // 收藏
  306. gocollect() {
  307. if(this.hasLogin && this.successlogion) {
  308. this.request({
  309. url: '/v1/favorites/collect',
  310. method: 'post',
  311. data: {
  312. type:'store',
  313. fav_id: this.goodId
  314. },
  315. success: (res) => {
  316. if(res.data.data.action == 'add') {
  317. this.$msg("收藏成功")
  318. }else {
  319. this.$msg("取消收藏")
  320. }
  321. this.gethoteil()
  322. }
  323. })
  324. }else {
  325. // this.showdialog = true;
  326. uni.navigateTo({
  327. url:'/pages/myCenter/logion'
  328. })
  329. }
  330. },
  331. choseType(e) {
  332. this.tabIndex = e;
  333. this.isDetail = 1;
  334. this.page = 1;
  335. if(this.tabIndex == 1) { // 服务
  336. this.istopclick = 0;
  337. this.isprice = 0;
  338. this.gc_id_1 = '';
  339. this.goods_price = '';
  340. this.goods_commonid = '';
  341. this.getshopdetail(2);
  342. }else if(this.tabIndex == 2){ //伤
  343. this.chosegoods_price = true;
  344. this.istopclick = this.chosegoods_commonid?1:2;
  345. this.isprice = 0;
  346. this.goods_price = '';
  347. this.goods_commonid = this.chosegoods_commonid?'asc':'desc';
  348. this.chosegoods_commonid = !this.chosegoods_commonid;
  349. this.getshopdetail(2);
  350. }else if(this.tabIndex == 3){ // 价格
  351. this.chosegoods_commonid = true;
  352. this.istopclick = 0;
  353. this.isprice = this.chosegoods_price?3:4;
  354. this.goods_price = this.chosegoods_price?'desc':'asc';
  355. this.goods_commonid = '';
  356. this.chosegoods_price = !this.chosegoods_price;
  357. this.getshopdetail(2);
  358. }else if(this.tabIndex ==4) { // 分类
  359. this.ishowpull = !this.ishowpull;
  360. this.istopclick = 0;
  361. this.isprice = 0;
  362. this.goods_price = '';
  363. this.goods_commonid = '';
  364. this.chosegoods_price = true;
  365. this.chosegoods_commonid = true;
  366. }
  367. },
  368. // 点击切换上下
  369. changeisclick(e) {
  370. },
  371. godetail(item) {
  372. let id = item.gc_id; // 一级菜单id
  373. let store_id = this.goodId;
  374. let gc_name = item.gc_name;
  375. uni.navigateTo({
  376. url: `/pages/index/hoteldetail?id=${id}&gc_name=${gc_name}&store_id=${store_id}`
  377. });
  378. },
  379. // 获取商品详情
  380. getshopdetail(e) {
  381. // uni.showLoading({
  382. // title: '加载中'
  383. // });
  384. this.request({
  385.                 url:"/v2/entry/storeGoods",
  386.                 method:'get',
  387. data: {
  388. store_id: this.goodId,
  389. page: this.page,
  390. goods_commonid: this.goods_commonid, // 上新排序
  391. goods_price: this.goods_price,
  392. gc_id_1: this.gc_id_1
  393. },
  394. success: (res) => {
  395. // uni.hideLoading()
  396. if(this.firstloading == 0) {
  397. this.loading = false;
  398. }
  399. this.firstloading = 1;
  400. if(e == 2) {
  401. this.goods_list = [];
  402. }
  403. this.goods_list = this.goods_list.concat(res.data.data.goods_list);
  404. if(res.data.data.goods_list.length < 10) {
  405. this.isDetail = 2;
  406. }
  407. },
  408. })
  409. },
  410. // 一级菜单
  411. hotelmenu() {
  412. let _this = this;
  413. this.request({
  414.                 url:"/v1/entry/storeCategory",
  415.                 method:'get',
  416. data: {
  417. store_id: this.goodId,
  418. },
  419. success: function(res) {
  420. let { category_list } = res.data.data;
  421. category_list.forEach((item,idx) => {
  422. item.text = item.gc_name;
  423. item.value = idx;
  424. })
  425. let array = [{gc_id:'',gc_name:'全部'}];
  426. _this.classify = array.concat(category_list);
  427. _this.category_list = category_list.splice(0,10);
  428. },
  429. })
  430. },
  431. onChange(event) {
  432. this.activeindex = event.detail.name;
  433. this.page = 1;
  434. if(event.detail.name == 1) {
  435. this.getcomment();
  436. }else if(event.detail.name == 0) {
  437. this.getshopdetail()
  438. }
  439. },
  440. // 获取酒店评价
  441. getcomment() {
  442. this.request({
  443. url:'/v1/store/feedbackList',
  444. method: 'POST',
  445. data: {
  446. page: this.page,
  447. page_size: 10,
  448. store_id: this.goodId
  449. },
  450. success: (res) => {
  451. this.feedback_list = res.data.data.feedback_list;
  452. if(res.data.data.feedback_list.length < 10) {
  453. this.isnexttwo = 2;
  454. }
  455. if(this.firstloading == 0) {
  456. this.loading = false;
  457. }
  458. this.firstloading = 1;
  459. }
  460. })
  461. },
  462. // 获取酒店信息
  463. gethoteil() {
  464. this.request({
  465. url:'/v1/store/info',
  466. method:'get',
  467. data: {
  468. store_id: this.goodId
  469. },
  470. success: (res) => {
  471. if(this.firstloading == 0) {
  472. this.loading = false;
  473. }
  474. this.firstloading = 1;
  475. let { data } = res.data;
  476. this.store_slide = [];
  477. this.hoteldetail = data;
  478. this.feedback_count = data.feedback_count;
  479. this.hotelitle = data.store_name;
  480. data.store_slide.forEach(item => {
  481. if(item.indexOf('jpg')!= -1) {
  482. this.store_slide.push(item);
  483. }
  484. })
  485. let src= this.pictureUrl+'/uploads/home/store/'+data.store_id+'/'+data.store_banner;
  486. if(this.store_slide.length == 0) {
  487. this.store_slide.push(src);
  488. }
  489. this.storeinformation = data;
  490. this.store_summary = data.store_summary;
  491. const regex = new RegExp('<img', 'gi');
  492. data.store_description = data.store_description.replace(regex,
  493. `<img style="width: 100%;height: auto!important;display: block;text-align: center;"`);
  494. this.store_description = data.store_description;
  495. this.has_collected = data.has_collected; // 是否收藏
  496. }
  497. })
  498. },
  499. changemenu(e) {
  500. },
  501. confirm(e) {
  502. this.tabIndex = 0;
  503. this.ishowpull = false;
  504. this.gc_id_1 = e.gc_id;
  505. this.getshopdetail(2);
  506. },
  507. upper(e) {
  508. },
  509. // 滚到底部
  510. lower(e) {
  511. if(this.isnexttwo == 1 && this.activeindex == 1) {
  512. this.page = this.page + 1;
  513. this.getcomment();
  514. }else if( this.isDetail == 1) {
  515. this.page = this.page + 1;
  516. this.getshopdetail();
  517. }
  518. },
  519. // 滚动时触发
  520. scroll(e) {
  521. if(e.detail.scrollTop > 400) {
  522. this.isTop = true;
  523. }else{ //当距离小于500时显示回到顶部按钮
  524. this.isTop = false;
  525. }
  526. if(e.detail.scrollTop > 160) {
  527. this.iScrolltop = 2;
  528. }else {
  529. this.iScrolltop = 1;
  530. }
  531. this.old.scrollTop = e.detail.scrollTop
  532. },
  533. // 返回上一页
  534. goback() {
  535. uni.navigateBack()
  536. },
  537. }
  538. }
  539. </script>
  540. <style scoped>
  541. .van-tab--active {
  542. color: #D9332E!important;
  543. }
  544. .newadress {
  545. display: flex;
  546. justify-content: space-between;
  547. border-bottom: 1px solid #F5F5F5;
  548. padding: 15upx 0;
  549. }
  550. .changfecolor {
  551. color: green;
  552. }
  553. .scrollswiper {
  554. width: 100%;
  555. position: relative;
  556. }
  557. .titleFixed {
  558. position: absolute;
  559. top: 0;
  560. left: 0;
  561. z-index: 99;
  562. padding-top: 0;
  563. }
  564. .van-nav-bar {
  565. padding-top: 0!important;
  566. /* background: #000000!important; */
  567. /* opacity: 0.2; */
  568. background:rgba(0,0,0,0.2)!important;
  569. }
  570. .swiper {
  571. height: 380upx;
  572. }
  573. .swiper-item {
  574. display: block;
  575. height: 100%!important;
  576. line-height: 300upx;
  577. text-align: center;
  578. }
  579. .tip {
  580. display: flex;
  581. justify-content: space-between;
  582. padding: 36upx 32upx;
  583. }
  584. .giveList {
  585. padding: 10upx 12upx;
  586. display: flex;
  587. flex-wrap: wrap;
  588. }
  589. .giveItem {
  590. height: 150rpx;
  591. flex: 1;
  592. width: 14%;
  593. min-width: 14%;
  594. max-width: 14%;
  595. /* margin: 24rpx 0 25rpx 4%; */
  596. margin: 24upx 3%;
  597. }
  598. .active {
  599. color: #F76260;
  600. }
  601. .typeItem {
  602. width: 25%;
  603. display: inline-block;
  604. text-align: center;
  605. }
  606. .iconClass {
  607. display: flex;
  608. flex-direction: row;
  609. align-items: center;
  610. justify-content: center;
  611. }
  612. .hotlItem {
  613. padding: 22upx 30upx;
  614. border-bottom: 1px solid #EEEEEE;
  615. display: flex;
  616. justify-content: space-between;
  617. }
  618. .bottomButton {
  619. width: 95%;
  620. left: 2.5%;
  621. position: fixed;
  622. bottom: 2.5%;
  623. }
  624. .titeTop {
  625. display: flex;
  626. /* justify-content: space-between; */
  627. align-items: center;
  628. position: absolute;
  629. top: 10upx;
  630. width: 100%;
  631. }
  632. .topleft {
  633. }
  634. .topright {
  635. }
  636. .input-view {
  637. width: 100%;
  638. display: flex;
  639. height: 30px;
  640. border-radius: 15px;
  641. padding: 0 4%;
  642. flex-wrap: nowrap;
  643. margin: 7px 0;
  644. line-height: 30px;
  645. margin: 24upx auto;
  646. background:rgba(0,0,0,1);
  647. opacity:0.4;
  648. }
  649. .input-view .uni-icon {
  650. line-height: 30px !important;
  651. }
  652. .input-view .input {
  653. height: 30px;
  654. line-height: 30px;
  655. width: 94%;
  656. padding: 0 3%;
  657. }
  658. .activeColor {
  659. background: #fff!important;
  660. position: fixed;
  661. background-color: #fff;
  662. top: 65upx;
  663. left: 0;
  664. z-index: 99;
  665. }
  666. .listType {
  667. }
  668. .changeimg {
  669. width: 100%;
  670. height: auto!important;
  671. display: block;
  672. text-align: center;
  673. }
  674. .spacedance{
  675. border:1px solid #eee;
  676. flex: 1;width: 20%;
  677. text-align: center;
  678. min-width: 20%;
  679. max-width: 20%;
  680. margin: 6rpx 0 15rpx 2%;
  681. padding:4upx 8upx;
  682. color: #666
  683. }
  684. .fontcenter {
  685. text-align: center;
  686. color: #666;
  687. }
  688. /* 轮播切换图标字体红 */
  689. </style>