hotel.vue 19 KB

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