index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <view class="page" :style="{'padding-top':mt+'px'}">
  3. <c-nav-bar title="房态" :showIcon="false" :titleStyle="titleStyle" bgColor="transparent"></c-nav-bar>
  4. <view class="leftFixed" v-if="leftData.length!=0" :style="{'top':(mt+2)+'px'}">
  5. <view class="tj" :style="{'top':mt+'px'}"></view>
  6. <view class="year">
  7. <u-icon name="calendar-fill" color="#B9C2D2" size="40" style="margin-bottom:10rpx;"></u-icon>
  8. <text style="font-size: 24rpx;">2024</text>
  9. </view>
  10. <view v-for="(item,key,i) in leftData" :key="i"
  11. :class="indexArr[i]!=key.split('-')[0]?'mg0 fixedItem':'fixedItem'">
  12. <view class="head" v-if="indexArr[i]==key.split('-')[0]" style="margin-top: 16rpx;">
  13. <!-- <text>{{key.split('-')[0]}}F</text> -->
  14. <view class="roomType" :style="{'left':scrollLeft+'px'}">{{indexHouseNameArr[i]}}</view>
  15. <view class="rightIcon" @click="open(i,key.split('-')[0],false)" v-if="opens[i]">
  16. <text>收起</text>
  17. <u-icon name="arrow-up-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  18. </view>
  19. <view class="rightIcon" @click="open(i,key.split('-')[0],true)" v-else>
  20. <text>展开</text>
  21. <u-icon name="arrow-down-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  22. </view>
  23. </view>
  24. <template v-if="opens[i]">
  25. <!-- <view class="roomType" :style="{'left':scrollLeft+'px'}">{{key.split('-')[1]}}</view> -->
  26. <text v-for="(item2,index2) in item" class="roomNumber">
  27. {{item2.roomNumber}}
  28. </text>
  29. </template>
  30. </view>
  31. </view>
  32. <view>
  33. <view class="content">
  34. <view class="tj" :style="{'top':mt+'px'}">
  35. <view class="item">
  36. <text class="label">{{info.bookRooms||0}}</text>
  37. <text>待入住</text>
  38. </view>
  39. <view class="item">
  40. <text class="label">{{info.checkinRooms||0}}</text>
  41. <text>已入住</text>
  42. </view>
  43. <view class="item">
  44. <text class="label">{{info.checkoutRooms||0}}</text>
  45. <text>已退房</text>
  46. </view>
  47. </view>
  48. <view class="date">
  49. <view class="item">
  50. <u-icon name="calendar-fill" color="#B9C2D2" size="40" style="margin-bottom:10rpx;"></u-icon>
  51. <text style="font-size: 24rpx;">2024</text>
  52. </view>
  53. <view class="item" v-for="(item,keynme,index) in xdata" :key="index">
  54. <text>{{item.rentDate.substring(5)}}</text>
  55. <text>{{weeks[item.rentWeek]}}</text>
  56. <text>剩{{item.spareRooms||0}}间</text>
  57. </view>
  58. </view>
  59. <view style="height:18rpx"></view>
  60. <view class="floorData" v-if="leftData.length!=0">
  61. <view v-for="(item,key,i) in leftData" :key="i">
  62. <view class="head" v-if="indexArr[i]==key.split('-')[0]" style="opacity: 0;">
  63. <!-- <text>{{key.split('-')[0]}}F</text> -->
  64. <view class="roomType" :style="{'left':scrollLeft+'px'}">{{indexHouseNameArr[i]}}</view>
  65. <view class="rightIcon" @click="open(i,key.split('-')[0],false)" v-if="opens[i]">
  66. <text>收起</text>
  67. <u-icon name="arrow-up-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  68. </view>
  69. <view class="rightIcon" @click="open(i,key.split('-')[0],true)" v-else>
  70. <text>展开</text>
  71. <u-icon name="arrow-down-fill" size="18" style="margin-left: 10rpx;"></u-icon>
  72. </view>
  73. </view>
  74. <template v-if="opens[i]">
  75. <!-- <view class="roomType" style="opacity: 0;">{{key.split('-')[1]}}</view> -->
  76. <view class="table">
  77. <view class="tr" v-for="(item2,index2) in item" :key="index2">
  78. <view class="td" :style="{'left':scrollLeft+'px'}">{{item2.roomNumber}}</view>
  79. <view class="td" v-for="(roomData,ind) in xdata" :key="ind"
  80. :class="'s'+delDataStatus(item2.roomNumber,item2.houseBaseId,roomData.roomDataList,'status',item2.floor)">
  81. <!-- 空置房-->
  82. <template
  83. v-if="delDataStatus(item2.roomNumber,item2.houseBaseId,roomData.roomDataList,'status',item2.floor) == 1">
  84. <view v-if="disTabCli(roomData) == 1" class="cellBox disT">
  85. ¥{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'price',item2.floor)}}
  86. </view>
  87. <view v-else
  88. @click="check(item2.roomNumber,item2.houseBaseId,roomData,i + '-'+index2+ '-'+ ind,item2.floor)"
  89. class="cellBox">
  90. ¥{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'price',item2.floor)}}
  91. </view>
  92. </template>
  93. <template v-else>
  94. <view
  95. @click="tabCli(item2.roomNumber,item2.houseBaseId,roomData.roomDataList)"
  96. class="tdP">
  97. <text>{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'guestName',item2.floor)}}</text>
  98. <text>{{item2.roomNumber|delDataStatus(item2.houseBaseId,roomData.roomDataList,'status',item2.floor)}}</text>
  99. </view>
  100. </template>
  101. <!-- 点击时状态 -->
  102. <view class="cover" v-if="checkPosition.indexOf(i + '-'+index2+ '-'+ ind) > -1"
  103. @click="check(item2.roomNumber,item2.houseBaseId,roomData,i + '-'+index2+ '-'+ ind,item2.item2.floor)">
  104. <u-icon name="checkbox-mark" size="36" color="#fff"></u-icon>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </template>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="opration" v-if="checkDataRoomId.length!=0">
  114. <text @click="areaShow=true">关房</text>
  115. <text @click="createOrder()">预订</text>
  116. <text @click="priceShow=true">修改价格</text>
  117. </view>
  118. </view>
  119. <Tabbar :tabbarIndex="1"></Tabbar>
  120. <!-- 关房 -->
  121. <u-picker :itemHeight="88" :immediateChange="true" :show="areaShow" :columns="areaTxt" title="房态选择"
  122. :defaultIndex="passengerDefault" @cancel="areaShow=false;clearData();"
  123. @confirm="passengerConfirm"></u-picker>
  124. <!-- 修改价格 -->
  125. <u-popup :show="priceShow" mode="center">
  126. <view class="changePrice">
  127. <u--input placeholder="请设置新价格" type="number" border="surround" v-model="newPrice"></u--input>
  128. <view class="btns">
  129. <u-button text="取消" type="info" size="mini" @click="priceShow=false;clearData()"></u-button>
  130. <u-button text="确定" type="primary" size="mini" @click="changePrice()"></u-button>
  131. </view>
  132. </view>
  133. </u-popup>
  134. </view>
  135. </template>
  136. <script>
  137. var that;
  138. export default {
  139. data() {
  140. return {
  141. priceShow: false,
  142. newPrice: '',
  143. homestayId: uni.getStorageSync('homestayId') || 0,
  144. areaShow: false,
  145. passengerDefault: [0],
  146. info: {},
  147. areaTxt: [
  148. ['清洁中', '暂停使用', '保留房', '空置房']
  149. ],
  150. area: [{
  151. label: '清洁中',
  152. id: 4
  153. }, {
  154. label: '暂停使用',
  155. id: 5
  156. }, {
  157. label: '保留房',
  158. id: 6
  159. }, {
  160. label: '空置房',
  161. id: 0
  162. }],
  163. titleStyle: {
  164. fontSize: '34rpx',
  165. fontWeight: "bold",
  166. },
  167. dateArr: [1, 2, 3, 4, 5],
  168. xdata: [], //纵向列
  169. leftData: [], //横向列,
  170. indexArr: [], //楼层索引,
  171. indexHouseBaseIdArr: [],
  172. indexHouseNameArr: [],
  173. indexNameArr: [], //楼层Id索引,
  174. opens: [],
  175. statusTxt: {
  176. '-2': '待支付',
  177. '-1': '待确定',
  178. '1': '已预订',
  179. '2': '已入住',
  180. '3': '已退房',
  181. '4': '清洁中',
  182. '5': '暂停使用',
  183. '6': '保留房',
  184. },
  185. weeks: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
  186. checkPosition: [],
  187. checkDataDate: [],
  188. checkPrice: [],
  189. checkDataRoomId: [],
  190. checkStatus: '',
  191. scrollLeft: 0
  192. }
  193. },
  194. mounted() {
  195. that = this;
  196. this.getLeftData();
  197. this.getData();
  198. this.getTj();
  199. },
  200. filters: {
  201. delDataStatus(roomNumber, id, roomId, name,floor) {
  202. for (let i = 0; i < roomId.length; i++) {
  203. if (floor==roomId[i].floor&&id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  204. if (name == "status") {
  205. return that.statusTxt[roomId[i][name]]
  206. } else {
  207. return roomId[i][name] || ''
  208. }
  209. }
  210. }
  211. },
  212. },
  213. methods: {
  214. init() {
  215. this.getLeftData();
  216. this.getData();
  217. this.$forceUpdate();
  218. },
  219. getTj() {
  220. this.$api.get('/merchant/hotel/room/state/getRoomStateCount', {
  221. homestayId: this.homestayId
  222. }).then(res => {
  223. if (res.data.code == 0) {
  224. this.info = res.data.data;
  225. }
  226. })
  227. },
  228. scroll(e) {
  229. //this.scrollLeft = e.detail.scrollLeft; // div 到左边的距离
  230. },
  231. //关房
  232. tabCli(roomNumber, id, roomId) {
  233. if (roomNumber) {
  234. let obj = {};
  235. for (let i = 0; i < roomId.length; i++) {
  236. if (id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  237. obj = roomId[i];
  238. }
  239. }
  240. //已预订,已入住 待确认 待支付
  241. if (obj.status == 1 || obj.status == 2 || obj.status == -1 || obj.status == -2) {
  242. let orderId = obj.orderId;
  243. uni.navigateTo({
  244. url: "/pages/house/orderInfo?orderId=" + orderId
  245. })
  246. //到详情
  247. } else {
  248. //更改状态
  249. this.areaShow = true;
  250. this.checkDataRoomId = [obj.id];
  251. this.checkStatus = obj.status;
  252. }
  253. }
  254. },
  255. //确定关房
  256. passengerConfirm(e) {
  257. let status = this.area[e.indexs[0]].id;
  258. this.$api.post('/merchant/hotel/room/state/updRoomState', {
  259. roomIds: this.checkDataRoomId,
  260. status: status
  261. }).then(res => {
  262. if (res.data.code == 0) {
  263. this.clearData();
  264. this.areaShow = false;
  265. this.init()
  266. } else {
  267. this.$showToast(res.data.msg);
  268. }
  269. })
  270. },
  271. changePrice() {
  272. this.$api
  273. .post("/merchant/hotel/room/state/updRoomPrice", {
  274. idList: this.checkDataRoomId,
  275. price: this.newPrice,
  276. })
  277. .then((res) => {
  278. if (res.data.code !== 0) {
  279. return this.$showToast(res.data.msg);
  280. } else {
  281. this.$showToast('操作成功');
  282. setTimeout(() => {
  283. this.clearData();
  284. this.priceShow = false;
  285. this.init()
  286. }, 500)
  287. }
  288. });
  289. },
  290. //新增订单
  291. createOrder() {
  292. this.clearData()
  293. uni.navigateTo({
  294. url: '/pages/house/createOrder?roomId=' + this.checkDataRoomId
  295. })
  296. },
  297. //展开收起
  298. open(i, F, val) {
  299. this.opens[i] = !this.opens[i];
  300. let list = this.leftData;
  301. for (var i = 0; i < Object.keys(list).length; i++) {
  302. var index = i; // 索引
  303. var key = Object.keys(list)[i].split('-')[0]; // key
  304. if (F == key) {
  305. this.opens[index] = val;
  306. }
  307. }
  308. this.$forceUpdate();
  309. },
  310. delDataStatus(roomNumber, id, roomId, name,floor) {
  311. for (let i = 0; i < roomId.length; i++) {
  312. if (floor == roomId[i].floor &&id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  313. return roomId[i][name] + 1;
  314. }
  315. }
  316. },
  317. disTabCli(roomData) {
  318. if (new Date(roomData.rentDate).Format('yyyy-MM-dd') < new Date().Format('yyyy-MM-dd')) {
  319. return 1
  320. }
  321. },
  322. clearData() {
  323. setTimeout(() => {
  324. this.newPrice='';
  325. this.checkDataDate = [];
  326. this.checkPrice = [];
  327. this.checkDataRoomId = [];
  328. this.checkPosition = [];
  329. }, 1500);
  330. },
  331. //选择房间
  332. check(roomNumber, id, item, position, floor) {
  333. for (let i = 0; i < item.roomDataList.length; i++) {
  334. if (
  335. floor == item.roomDataList[i].floor && id == item.roomDataList[i].houseBaseId &&
  336. roomNumber == item.roomDataList[i].roomNumber
  337. ) {
  338. //宫格位置标识
  339. if (item.roomDataList[i].status == 0) {
  340. if (this.checkPosition.indexOf(position) < 0) {
  341. this.checkPosition.push(position);
  342. } else {
  343. let index = this.checkPosition.findIndex(
  344. (pos) => pos == position
  345. ); //选中的索引位置
  346. this.checkPosition.splice(index, 1);
  347. }
  348. //房间id
  349. if (this.checkDataRoomId.indexOf(item.roomDataList[i].id) < 0) {
  350. this.checkDataRoomId.push(item.roomDataList[i].id);
  351. } else {
  352. let index = this.checkDataRoomId.findIndex(
  353. (roomId) => roomId == item.roomDataList[i].id
  354. );
  355. this.checkDataRoomId.splice(index, 1);
  356. }
  357. //日期
  358. if (this.checkPosition.indexOf(position) > -1) {
  359. this.checkDataDate.push(item.rentDate);
  360. this.checkPrice.push(item.roomDataList[i].price)
  361. } else {
  362. let index = this.checkDataDate.findIndex(
  363. (date) => date == item.rentDate
  364. );
  365. this.checkDataDate.splice(index, 1);
  366. //价格
  367. let index2 = this.checkPrice.findIndex(
  368. (price) => price == item.price
  369. );
  370. this.checkPrice.splice(index2, 1);
  371. }
  372. if (this.checkPosition.length == 0) {
  373. this.checkDataDate = [];
  374. this.checkPrice = [];
  375. }
  376. }
  377. }
  378. }
  379. },
  380. getLeftData() {
  381. this.$api.get(`/merchant/hotel/room/state/getHouseCategoryData/${this.homestayId}`).then(res => {
  382. if (res.data.code == 0) {
  383. for (let i in res.data.data) {
  384. let F = i.split('-')[0];
  385. let houseBaseId = res.data.data[i][0].houseBaseId;
  386. let name = res.data.data[i][0].name;
  387. if (this.indexHouseBaseIdArr.indexOf(houseBaseId) < 0) {
  388. this.indexArr.push(F);
  389. this.indexHouseBaseIdArr.push(houseBaseId)
  390. this.indexHouseNameArr.push(name)
  391. this.opens.push(true)
  392. } else {
  393. this.indexArr.push('');
  394. this.indexHouseNameArr.push('')
  395. this.opens.push(true)
  396. }
  397. }
  398. this.leftData = res.data.data;
  399. }
  400. })
  401. },
  402. getData() {
  403. this.$api.get('/merchant/hotel/room/state/getDateRoomList', {
  404. homestayId: this.homestayId,
  405. nowDate: '',
  406. status: ''
  407. }).then(res => {
  408. if (res.data.code == 0) {
  409. this.xdata = res.data.data;
  410. }
  411. })
  412. }
  413. }
  414. }
  415. </script>
  416. <style scoped lang="less">
  417. .changePrice {
  418. padding: 40rpx;
  419. border-radius: 20rpx;
  420. .btns {
  421. margin-top: 40rpx;
  422. display: flex;
  423. justify-content: space-between;
  424. align-items: center;
  425. text {
  426. display: inline-block;
  427. width: 130rpx;
  428. height: 50rpx;
  429. line-height: 50rpx;
  430. text-align: center;
  431. }
  432. }
  433. }
  434. .opration {
  435. height: 140rpx;
  436. padding: 0 30rpx;
  437. background-color: #fff;
  438. position: fixed;
  439. bottom: 0;
  440. left: 0;
  441. width: 100%;
  442. z-index: 9;
  443. display: flex;
  444. align-items: center;
  445. justify-content: space-between;
  446. box-sizing: border-box;
  447. text {
  448. display: inline-block;
  449. width: 160rpx;
  450. text-align: center;
  451. line-height: 56rpx;
  452. border: 1rpx solid #D1D1D1;
  453. height: 56rpx;
  454. border-radius: 64rpx;
  455. font-size: 24rpx;
  456. color: #999;
  457. &:last-child {
  458. background-color: #1372FF;
  459. color: #fff;
  460. border: 0;
  461. }
  462. }
  463. }
  464. .page {
  465. background: #F3F4F4;
  466. padding-bottom: 40rpx;
  467. box-sizing: border-box;
  468. overflow-x: auto;
  469. .content {}
  470. }
  471. .tj {
  472. padding: 30rpx 0;
  473. text-align: center;
  474. height: 140rpx;
  475. box-sizing: border-box;
  476. position: absolute;
  477. width: 750rpx;
  478. left: 0;
  479. display: flex;
  480. justify-content: space-between;
  481. background-color: #fff;
  482. .item {
  483. display: flex;
  484. flex-direction: column;
  485. align-items: center;
  486. width: 100px;
  487. flex: 1;
  488. }
  489. text {
  490. font-size: 24rpx;
  491. color: #999;
  492. &.label {
  493. font-size: 40rpx;
  494. color: #333;
  495. font-weight: bold;
  496. }
  497. }
  498. }
  499. .date {
  500. display: flex;
  501. position: relative;
  502. border: 1rpx solid #E9F0F5;
  503. // padding-bottom: 19rpx;
  504. margin-top: 140rpx;
  505. .item {
  506. min-width: 140rpx;
  507. width: 140rpx;
  508. height: 136rpx;
  509. display: flex;
  510. flex-direction: column;
  511. align-items: center;
  512. justify-content: center;
  513. font-size: 20rpx;
  514. border-right: 1rpx solid #E9F0F5;
  515. background-color: #fff;
  516. &:last-child {
  517. border: 0;
  518. }
  519. text {
  520. &:nth-child(2) {
  521. margin: 6rpx 0;
  522. }
  523. }
  524. }
  525. }
  526. .head,
  527. .roomType {
  528. padding: 0 30rpx 0 0;
  529. display: flex;
  530. width: 400rpx;
  531. // justify-content: space-between;
  532. }
  533. .head {
  534. // position: absolute;
  535. // top: 0;
  536. // left: 0;
  537. margin-top: 16rpx;
  538. width: 750rpx;
  539. display: flex;
  540. box-sizing: border-box;
  541. justify-content: space-between;
  542. &>text {
  543. &:first-child {
  544. font-size: 32rpx;
  545. margin-right: 30rpx;
  546. }
  547. }
  548. .rightIcon {
  549. display: flex;
  550. align-items: center;
  551. font-size: 24rpx;
  552. color: #1F2425;
  553. }
  554. }
  555. .roomType {
  556. // position: absolute;
  557. // top: 40rpx;
  558. // left: 0;
  559. color: #333;
  560. font-size: 24rpx;
  561. position: relative;
  562. padding-left: 34rpx;
  563. margin: 20rpx 0 16rpx;
  564. &::after {
  565. position: absolute;
  566. content: "";
  567. height: 24rpx;
  568. width: 5rpx;
  569. background-color: #1372FF;
  570. left: 20rpx;
  571. top: 4rpx;
  572. z-index: 1;
  573. }
  574. }
  575. .floorData {
  576. .table {
  577. // border: 1rpx solid #E9F0F5;
  578. width: auto;
  579. min-width: 100%;
  580. .tr {
  581. display: flex;
  582. align-items: center;
  583. background-color: #fff;
  584. position: relative;
  585. &:last-child {
  586. border: 0;
  587. }
  588. .td {
  589. display: flex;
  590. align-items: center;
  591. justify-content: center;
  592. position: relative;
  593. width: 140rpx;
  594. min-width: 140rpx;
  595. height: 110rpx;
  596. border-right: 1rpx solid #E9F0F5;
  597. background-color: #fff;
  598. color: #1F2425;
  599. font-size: 24rpx;
  600. box-sizing: border-box;
  601. border-bottom: 1rpx solid #E9F0F5;
  602. .tdP,
  603. .cellBox {
  604. display: flex;
  605. width: 100%;
  606. height: 100%;
  607. flex-direction: column;
  608. align-items: center;
  609. justify-content: center;
  610. &.disT {
  611. color: #ccc;
  612. }
  613. }
  614. // &:last-child {
  615. // border: 0;
  616. // }
  617. //已预订
  618. &.s2 {
  619. background-color: rgba(29, 202, 104, 0.1);
  620. color: rgb(29, 202, 104);
  621. text {
  622. &:first-child {
  623. margin-bottom: 6rpx;
  624. color: #1F2425;
  625. }
  626. }
  627. }
  628. // 已入住
  629. &.s3 {
  630. color: rgb(19, 114, 255);
  631. background-color: rgba(19, 114, 255, 0.1);
  632. text {
  633. &:first-child {
  634. margin-bottom: 6rpx;
  635. color: #1F2425;
  636. }
  637. }
  638. }
  639. // 已退房
  640. &.s4 {
  641. color: rgb(219, 41, 195);
  642. background-color: rgba(219, 41, 195, 0.1);
  643. }
  644. //待确定
  645. &.s0 {
  646. color: rgb(25, 185, 197);
  647. background-color: rgba(25, 185, 197, 0.1);
  648. }
  649. //清洁中
  650. &.s5 {
  651. color: rgb(237, 86, 86);
  652. background-color: rgba(237, 86, 86, 0.1);
  653. }
  654. //暂停使用
  655. &.s6 {
  656. color: rgb(41, 60, 115);
  657. background-color: rgba(41, 60, 115, 0.1);
  658. }
  659. //保留房
  660. &.s7 {
  661. color: rgb(132, 68, 244);
  662. background-color: rgba(132, 68, 244, 0.1);
  663. }
  664. }
  665. }
  666. .cover {
  667. position: absolute;
  668. top: 0;
  669. left: 0;
  670. bottom: 0;
  671. right: 0;
  672. background-color: #1372FF;
  673. color: #fff;
  674. text-align: center;
  675. display: flex;
  676. flex-direction: column;
  677. justify-content: center;
  678. align-items: center;
  679. }
  680. }
  681. }
  682. .small {
  683. padding-top: 68rpx !important;
  684. .roomType {
  685. top: 0 !important;
  686. }
  687. }
  688. .pd0 {
  689. padding: 0 !important;
  690. }
  691. .leftFixed {
  692. width: 72rpx;
  693. position: absolute;
  694. left: 0;
  695. // top: 232rpx;
  696. z-index: 1;
  697. .tj {
  698. width: 0;
  699. position: relative;
  700. }
  701. .year {
  702. min-width: 140rpx;
  703. width: 140rpx;
  704. height: 136rpx;
  705. display: flex;
  706. flex-direction: column;
  707. align-items: center;
  708. justify-content: center;
  709. font-size: 20rpx;
  710. border-right: 1rpx solid #E9F0F5;
  711. background-color: #fff;
  712. margin-bottom: 18rpx;
  713. }
  714. .fixedItem {
  715. display: flex;
  716. flex-direction: column;
  717. .roomNumber {
  718. height: 110rpx;
  719. display: flex;
  720. align-items: center;
  721. border-bottom: 1rpx solid #E9F0F5;
  722. width: 140rpx;
  723. background-color: #fff;
  724. box-shadow: 3px 0 10px #efefef;
  725. box-sizing: border-box;
  726. justify-content: center;
  727. text-align: center;
  728. // &:first-child{height: 84rpx;border-top: 1rpx solid #E9F0F5;}
  729. }
  730. }
  731. }
  732. </style>