hotel.vue 22 KB

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