hotel.vue 23 KB

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