hotel.vue 23 KB

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