hotel.vue 20 KB

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