hotel.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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. console.log("jjdddjeee")
  270. this.goodId = options.id; // 商品和酒店Id
  271. this.activeindex = 0;
  272. this.getshopdetail(); // 获取商品详情
  273. this.hotelmenu(); // 一级菜单
  274. this.gethoteil(); // 获取酒店信息
  275. //this.getStockPriceByName(); // 分装异步函数
  276. uni.$on('changshow', (e) => {
  277. this.changeshow();
  278. })
  279. uni.$on('changpicture', (e) => {
  280. this.changimg();
  281. })
  282. },
  283. computed:{
  284. ...mapState([
  285. 'hasLogin',
  286. 'userInfo',
  287. 'successlogion'
  288. ]),
  289. },
  290. methods: {
  291. changeshow() {
  292. console.log("关闭")
  293. this.showpicture = false;
  294. },
  295. changimg() {
  296. console.log("触发")
  297. this.showpicture = true;
  298. },
  299. getop() {
  300. this.scrollTop = this.old.scrollTop
  301.                 this.$nextTick(function(){
  302.                     this.scrollTop=0;
  303.                 });
  304. this.isTop = false;
  305. },
  306. // 入住酒店反馈
  307. gofeedback() {
  308. if(this.hoteldetail.can_feedback == 0) {
  309. this.$msg(this.hoteldetail.feedback_msg);
  310. return;
  311. }
  312. let store_id = this.goodId;
  313. uni.navigateTo({
  314. url: `/pages/index/feedback?store_id=${store_id}`
  315. });
  316. },
  317. // 搜说
  318. gotosearch() {
  319. let store_id = this.goodId;
  320. uni.navigateTo({
  321. url: `/pages/index/hotelsearch?store_id=${store_id}`
  322. });
  323. },
  324. // 收藏
  325. gocollect() {
  326. if(this.hasLogin && this.successlogion) {
  327. this.request({
  328. url: '/v1/favorites/collect',
  329. method: 'post',
  330. data: {
  331. type:'store',
  332. fav_id: this.goodId
  333. },
  334. success: (res) => {
  335. if(res.data.data.action == 'add') {
  336. this.$msg("收藏成功")
  337. }else {
  338. this.$msg("取消收藏")
  339. }
  340. this.gethoteil()
  341. }
  342. })
  343. }else {
  344. // this.showdialog = true;
  345. uni.navigateTo({
  346. url:'/pages/myCenter/logion'
  347. })
  348. }
  349. },
  350. // 关闭弹窗
  351. // cancelDiaolog() {
  352. // this.showdialog = false;
  353. // },
  354. // // 确定
  355. // confirmDiaolog() {
  356. // this.showdialog = false;
  357. // },
  358. choseType(e) {
  359. this.tabIndex = e;
  360. this.isDetail = 1;
  361. this.page = 1;
  362. //this.goods_list = [];
  363. if(this.tabIndex == 1) { // 服务
  364. this.istopclick = 0;
  365. this.isprice = 0;
  366. this.gc_id_1 = '';
  367. this.goods_price = '';
  368. this.goods_commonid = '';
  369. this.getshopdetail(2);
  370. }else if(this.tabIndex == 2){ //伤
  371. this.chosegoods_price = true;
  372. this.istopclick = this.chosegoods_commonid?1:2;
  373. this.isprice = 0;
  374. this.goods_price = '';
  375. this.goods_commonid = this.chosegoods_commonid?'asc':'desc';
  376. this.chosegoods_commonid = !this.chosegoods_commonid;
  377. this.getshopdetail(2);
  378. }else if(this.tabIndex == 3){ // 价格
  379. this.chosegoods_commonid = true;
  380. this.istopclick = 0;
  381. this.isprice = this.chosegoods_price?3:4;
  382. this.goods_price = this.chosegoods_price?'desc':'asc';
  383. this.goods_commonid = '';
  384. this.chosegoods_price = !this.chosegoods_price;
  385. this.getshopdetail(2);
  386. }else if(this.tabIndex ==4) { // 分类
  387. this.ishowpull = !this.ishowpull;
  388. this.istopclick = 0;
  389. this.isprice = 0;
  390. this.goods_price = '';
  391. this.goods_commonid = '';
  392. this.chosegoods_price = true;
  393. this.chosegoods_commonid = true;
  394. }
  395. },
  396. // 点击切换上下
  397. changeisclick(e) {
  398. },
  399. godetail(item) {
  400. let id = item.gc_id; // 一级菜单id
  401. let store_id = this.goodId;
  402. let gc_name = item.gc_name;
  403. uni.navigateTo({
  404. url: `/pages/index/hoteldetail?id=${id}&gc_name=${gc_name}&store_id=${store_id}`
  405. });
  406. },
  407. // async getStockPriceByName() {
  408. // try {
  409. // // Promise.all
  410. // let [foo, bar, val1] = await Promise.all([this.getshopdetail(), this.gethoteil(),this.hotelmenu()]);
  411. // console.log(val1);
  412. // }
  413. // catch (err) {
  414. // }
  415. // //this.getshopdetail(); // 获取商品详情
  416. //this.hotelmenu(); // 一级菜单
  417. //this.gethoteil();
  418. //},
  419. // 获取商品详情
  420. getshopdetail(e) {
  421. this.request({
  422.                 url:"/v2/entry/storeGoods",
  423.                 method:'get',
  424. data: {
  425. store_id: this.goodId,
  426. page: this.page,
  427. goods_commonid: this.goods_commonid, // 上新排序
  428. goods_price: this.goods_price,
  429. gc_id_1: this.gc_id_1
  430. },
  431. success: (res) => {
  432. if(this.firstloading == 0) {
  433. this.loading = false;
  434. }
  435. this.firstloading = 1;
  436. if(e == 2) {
  437. this.goods_list = [];
  438. }
  439. this.goods_list = this.goods_list.concat(res.data.data.goods_list);
  440. if(res.data.data.goods_list.length < 10) {
  441. this.isDetail = 2;
  442. }
  443. },
  444. })
  445. },
  446. // 一级菜单
  447. hotelmenu() {
  448. let _this = this;
  449. this.request({
  450.                 url:"/v1/entry/storeCategory",
  451.                 method:'get',
  452. data: {
  453. store_id: this.goodId,
  454. },
  455. success: function(res) {
  456. let { category_list } = res.data.data;
  457. category_list.forEach((item,idx) => {
  458. item.text = item.gc_name;
  459. item.value = idx;
  460. })
  461. let array = [{gc_id:'',gc_name:'全部'}];
  462. _this.classify = array.concat(category_list);
  463. _this.category_list = category_list.splice(0,10);
  464. },
  465. })
  466. },
  467. onChange(event) {
  468. this.activeindex = event.detail.name;
  469. this.page = 1;
  470. if(event.detail.name == 1) {
  471. this.getcomment();
  472. }else if(event.detail.name == 0) {
  473. this.getshopdetail()
  474. }
  475. },
  476. // 获取酒店评价
  477. getcomment() {
  478. this.request({
  479. url:'/v1/store/feedbackList',
  480. method: 'POST',
  481. data: {
  482. page: this.page,
  483. page_size: 10,
  484. store_id: this.goodId
  485. },
  486. success: (res) => {
  487. this.feedback_list = res.data.data.feedback_list;
  488. if(res.data.data.feedback_list.length < 10) {
  489. this.isnexttwo = 2;
  490. }
  491. if(this.firstloading == 0) {
  492. this.loading = false;
  493. }
  494. this.firstloading = 1;
  495. }
  496. })
  497. },
  498. // 获取酒店信息
  499. gethoteil() {
  500. this.request({
  501. url:'/v1/store/info',
  502. method:'get',
  503. data: {
  504. store_id: this.goodId
  505. },
  506. success: (res) => {
  507. if(this.firstloading == 0) {
  508. this.loading = false;
  509. }
  510. this.firstloading = 1;
  511. let { data } = res.data;
  512. this.store_slide = [];
  513. this.hoteldetail = data;
  514. this.feedback_count = data.feedback_count;
  515. this.hotelitle = data.store_name;
  516. data.store_slide.forEach(item => {
  517. if(item.indexOf('jpg')!= -1) {
  518. this.store_slide.push(item);
  519. }
  520. })
  521. this.storeinformation = data;
  522. this.store_summary = data.store_summary;
  523. const regex = new RegExp('<img', 'gi');
  524. data.store_description = data.store_description.replace(regex,
  525. `<img style="width: 100%;height: auto!important;display: block;text-align: center;"`);
  526. this.store_description = data.store_description;
  527. this.has_collected = data.has_collected; // 是否收藏
  528. }
  529. })
  530. },
  531. changemenu(e) {
  532. },
  533. confirm(e) {
  534. this.tabIndex = 0;
  535. this.ishowpull = false;
  536. this.gc_id_1 = e.gc_id;
  537. this.getshopdetail(2);
  538. },
  539. upper(e) {
  540. },
  541. // 滚到底部
  542. lower(e) {
  543. // if(this.activeindex == 1) {
  544. if(this.isnexttwo == 1 && this.activeindex == 1) {
  545. this.page = this.page + 1;
  546. //}
  547. this.getcomment();
  548. // this.activeindex == 0 &&
  549. }else if( this.isDetail == 1) {
  550. this.page = this.page + 1;
  551. this.getshopdetail();
  552. }
  553. },
  554. // 滚动时触发
  555. scroll(e) {
  556. if(e.detail.scrollTop > 400) {
  557. this.isTop = true;
  558. }else{ //当距离小于500时显示回到顶部按钮
  559. this.isTop = false;
  560. }
  561. if(e.detail.scrollTop > 160) {
  562. this.iScrolltop = 2;
  563. }else {
  564. this.iScrolltop = 1;
  565. }
  566. this.old.scrollTop = e.detail.scrollTop
  567. },
  568. // 返回上一页
  569. goback() {
  570. uni.navigateBack()
  571. },
  572. }
  573. }
  574. </script>
  575. <style scoped>
  576. .van-tab--active {
  577. color: #D9332E!important;
  578. }
  579. .newadress {
  580. display: flex;
  581. justify-content: space-between;
  582. border-bottom: 1px solid #F5F5F5;
  583. padding: 15upx 0;
  584. }
  585. .changfecolor {
  586. color: green;
  587. }
  588. .scrollswiper {
  589. width: 100%;
  590. position: relative;
  591. }
  592. .titleFixed {
  593. position: absolute;
  594. top: 0;
  595. left: 0;
  596. z-index: 99;
  597. padding-top: 0;
  598. }
  599. .van-nav-bar {
  600. padding-top: 0!important;
  601. /* background: #000000!important; */
  602. /* opacity: 0.2; */
  603. background:rgba(0,0,0,0.2)!important;
  604. }
  605. .swiper {
  606. height: 380upx;
  607. }
  608. .swiper-item {
  609. display: block;
  610. height: 100%!important;
  611. line-height: 300upx;
  612. text-align: center;
  613. }
  614. .tip {
  615. display: flex;
  616. justify-content: space-between;
  617. padding: 36upx 32upx;
  618. }
  619. .giveList {
  620. padding: 10upx 12upx;
  621. display: flex;
  622. flex-wrap: wrap;
  623. }
  624. .giveItem {
  625. height: 150rpx;
  626. flex: 1;
  627. width: 14%;
  628. min-width: 14%;
  629. max-width: 14%;
  630. /* margin: 24rpx 0 25rpx 4%; */
  631. margin: 24upx 3%;
  632. }
  633. .active {
  634. color: #F76260;
  635. }
  636. .typeItem {
  637. width: 25%;
  638. display: inline-block;
  639. text-align: center;
  640. }
  641. .iconClass {
  642. display: flex;
  643. flex-direction: row;
  644. align-items: center;
  645. justify-content: center;
  646. }
  647. .hotlItem {
  648. padding: 22upx 30upx;
  649. border-bottom: 1px solid #EEEEEE;
  650. display: flex;
  651. justify-content: space-between;
  652. }
  653. .bottomButton {
  654. width: 95%;
  655. left: 2.5%;
  656. position: fixed;
  657. bottom: 2.5%;
  658. }
  659. .titeTop {
  660. display: flex;
  661. /* justify-content: space-between; */
  662. align-items: center;
  663. position: absolute;
  664. top: 10upx;
  665. width: 100%;
  666. }
  667. .topleft {
  668. }
  669. .topright {
  670. }
  671. .input-view {
  672. width: 100%;
  673. display: flex;
  674. height: 30px;
  675. border-radius: 15px;
  676. padding: 0 4%;
  677. flex-wrap: nowrap;
  678. margin: 7px 0;
  679. line-height: 30px;
  680. margin: 24upx auto;
  681. background:rgba(0,0,0,1);
  682. opacity:0.4;
  683. }
  684. .input-view .uni-icon {
  685. line-height: 30px !important;
  686. }
  687. .input-view .input {
  688. height: 30px;
  689. line-height: 30px;
  690. width: 94%;
  691. padding: 0 3%;
  692. }
  693. .activeColor {
  694. background: #fff!important;
  695. position: fixed;
  696. background-color: #fff;
  697. top: 65upx;
  698. left: 0;
  699. z-index: 99;
  700. }
  701. .listType {
  702. }
  703. .changeimg {
  704. width: 100%;
  705. height: auto!important;
  706. display: block;
  707. text-align: center;
  708. }
  709. .spacedance{
  710. /* margin: 18upx 17upx;float: left;
  711. width: 110upx;
  712. border: 1px solid #666;
  713. padding: 3upx 22upx;
  714. text-align: center; */
  715. border:1px solid #eee;
  716. flex: 1;width: 20%;
  717. text-align: center;
  718. min-width: 20%;
  719. max-width: 20%;
  720. margin: 6rpx 0 15rpx 2%;
  721. padding:4upx 8upx;
  722. color: #666
  723. }
  724. /* 轮播切换图标字体红 */
  725. </style>