index.vue 20 KB

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