index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  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.stop="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.stop="tabCli(item2.roomNumber,item2.houseBaseId,roomData.roomDataList,item2,item2.floor)"
  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,row,floor) {
  246. if (roomNumber) {
  247. let obj = {};
  248. console.log(roomId)
  249. console.log(row)
  250. obj=roomId.filter((item,index)=>item.houseBaseId==id&&item.roomNumber==roomNumber&&item.floor==floor)
  251. console.log(obj)
  252. //已预订,已入住 待确认 待支付
  253. if (obj.status == 1 || obj.status == 2 || obj.status == -1 || obj.status == -2) {
  254. let orderId = obj.orderId;
  255. uni.navigateTo({
  256. url: "/pages/house/orderInfo?orderId=" + orderId
  257. })
  258. //到详情
  259. } else {
  260. //更改状态
  261. // this.checkDataRoomId = [obj[0].id];
  262. this.$set(this.checkDataRoomId,0,obj[0].id);
  263. this.checkStatus = obj.status;
  264. this.$nextTick(()=>{
  265. this.areaShow = true;
  266. })
  267. }
  268. }
  269. },
  270. //确定关房
  271. passengerConfirm(e) {
  272. let status = this.area[e.indexs[0]].id;
  273. this.$api.post('/merchant/hotel/room/state/updRoomState', {
  274. roomIds: this.checkDataRoomId,
  275. status: status
  276. }).then(res => {
  277. if (res.data.code == 0) {
  278. this.areaShow = false;
  279. this.$nextTick(()=>{
  280. this.clearData();
  281. this.init()
  282. })
  283. } else {
  284. this.$showToast(res.data.msg);
  285. }
  286. })
  287. },
  288. changePrice() {
  289. if(!this.newPrice) return this.$showToast('请填写新价格');
  290. if(+this.newPrice<=0) return this.$showToast('新价格须大于0');
  291. this.$api
  292. .post("/merchant/hotel/room/state/updRoomPrice", {
  293. idList: this.checkDataRoomId,
  294. price: this.newPrice,
  295. })
  296. .then((res) => {
  297. if (res.data.code !== 0) {
  298. return this.$showToast(res.data.msg);
  299. } else {
  300. this.$showToast('操作成功');
  301. setTimeout(() => {
  302. this.clearData();
  303. this.priceShow = false;
  304. this.init()
  305. }, 500)
  306. }
  307. });
  308. },
  309. //新增订单
  310. createOrder() {
  311. this.clearData()
  312. uni.navigateTo({
  313. url: '/pages/house/createOrder?roomId=' + this.checkDataRoomId
  314. })
  315. },
  316. //展开收起
  317. open(i, F, val) {
  318. this.opens[i] = !this.opens[i];
  319. let list = this.leftData;
  320. for (var i = 0; i < Object.keys(list).length; i++) {
  321. var index = i; // 索引
  322. var key = Object.keys(list)[i].split('-')[0]; // key
  323. if (F == key) {
  324. this.opens[index] = val;
  325. }
  326. }
  327. this.$forceUpdate();
  328. },
  329. delDataStatus(roomNumber, id, roomId, name, floor) {
  330. for (let i = 0; i < roomId.length; i++) {
  331. if (floor == roomId[i].floor && id == roomId[i].houseBaseId && roomNumber == roomId[i].roomNumber) {
  332. return roomId[i][name] + 1;
  333. }
  334. }
  335. },
  336. disTabCli(roomData) {
  337. if (new Date(roomData.rentDate).Format('yyyy-MM-dd') < new Date().Format('yyyy-MM-dd')) {
  338. return 1
  339. }
  340. },
  341. clearData() {
  342. this.newPrice = '';
  343. this.checkDataDate = [];
  344. this.checkPrice = [];
  345. this.checkDataRoomId = [];
  346. this.checkPosition = [];
  347. },
  348. //选择房间
  349. check(roomNumber, id, item, position, floor) {
  350. console.log(floor)
  351. console.log(item)
  352. for (let i = 0; i < item.roomDataList.length; i++) {
  353. if (
  354. floor == item.roomDataList[i].floor && id == item.roomDataList[i].houseBaseId &&
  355. roomNumber == item.roomDataList[i].roomNumber
  356. ) {
  357. //宫格位置标识
  358. if (item.roomDataList[i].status == 0) {
  359. if (this.checkPosition.indexOf(position) < 0) {
  360. this.checkPosition.push(position);
  361. } else {
  362. let index = this.checkPosition.findIndex(
  363. (pos) => pos == position
  364. ); //选中的索引位置
  365. this.checkPosition.splice(index, 1);
  366. }
  367. //房间id
  368. if (this.checkDataRoomId.indexOf(item.roomDataList[i].id) < 0) {
  369. this.checkDataRoomId.push(item.roomDataList[i].id);
  370. } else {
  371. let index = this.checkDataRoomId.findIndex(
  372. (roomId) => roomId == item.roomDataList[i].id
  373. );
  374. this.checkDataRoomId.splice(index, 1);
  375. }
  376. console.log(this.checkDataRoomId)
  377. //日期
  378. if (this.checkPosition.indexOf(position) > -1) {
  379. this.checkDataDate.push(item.rentDate);
  380. this.checkPrice.push(item.roomDataList[i].price)
  381. } else {
  382. let index = this.checkDataDate.findIndex(
  383. (date) => date == item.rentDate
  384. );
  385. this.checkDataDate.splice(index, 1);
  386. //价格
  387. let index2 = this.checkPrice.findIndex(
  388. (price) => price == item.price
  389. );
  390. this.checkPrice.splice(index2, 1);
  391. }
  392. if (this.checkPosition.length == 0) {
  393. this.checkDataDate = [];
  394. this.checkPrice = [];
  395. }
  396. }
  397. }
  398. }
  399. },
  400. getLeftData() {
  401. this.$api.get(`/merchant/hotel/room/state/getHouseCategoryData/${this.homestayId}`).then(res => {
  402. if (res.data.code == 0) {
  403. for (let i in res.data.data) {
  404. let F = i.split('-')[0];
  405. let houseBaseId = res.data.data[i][0].houseBaseId;
  406. let name = res.data.data[i][0].name;
  407. if (this.indexHouseBaseIdArr.indexOf(houseBaseId) < 0) {
  408. this.indexArr.push(F);
  409. this.indexHouseBaseIdArr.push(houseBaseId)
  410. this.indexHouseNameArr.push(name)
  411. this.opens.push(false)
  412. } else {
  413. this.indexArr.push('');
  414. this.indexHouseNameArr.push('')
  415. this.opens.push(false)
  416. }
  417. }
  418. this.leftData = res.data.data;
  419. if(this.opens.length) this.opens[0] = true;
  420. }
  421. })
  422. },
  423. getData() {
  424. this.$api.get('/merchant/hotel/room/state/getDateRoomList', {
  425. homestayId: this.homestayId,
  426. nowDate: '',
  427. status: ''
  428. }).then(res => {
  429. if (res.data.code == 0) {
  430. this.xdata = res.data.data;
  431. }
  432. })
  433. }
  434. }
  435. }
  436. </script>
  437. <style scoped lang="less">
  438. .changePrice {
  439. padding:50rpx;
  440. width: 600rpx;
  441. border-radius: 20rpx;
  442. .btns {
  443. margin-top: 60rpx;
  444. display: flex;
  445. justify-content: space-between;
  446. align-items: center;
  447. text {
  448. display: inline-block;
  449. width: 180rpx;
  450. height: 50rpx;
  451. line-height: 50rpx;
  452. text-align: center;
  453. }
  454. }
  455. }
  456. .opration {
  457. height: 140rpx;
  458. padding: 0 30rpx;
  459. background-color: #fff;
  460. position: fixed;
  461. bottom: 0;
  462. left: 0;
  463. width: 100%;
  464. z-index: 9;
  465. display: flex;
  466. align-items: center;
  467. justify-content: space-between;
  468. box-sizing: border-box;
  469. text {
  470. display: inline-block;
  471. width: 160rpx;
  472. text-align: center;
  473. line-height: 56rpx;
  474. border: 1rpx solid #D1D1D1;
  475. height: 56rpx;
  476. border-radius: 64rpx;
  477. font-size: 24rpx;
  478. color: #999;
  479. &:last-child {
  480. background-color: #1372FF;
  481. color: #fff;
  482. border: 0;
  483. }
  484. }
  485. }
  486. .page {
  487. background: #F3F4F4;
  488. padding-bottom: 40rpx;
  489. box-sizing: border-box;
  490. overflow-x: auto;
  491. .content {}
  492. }
  493. .tj {
  494. padding: 30rpx 0;
  495. text-align: center;
  496. height: 140rpx;
  497. box-sizing: border-box;
  498. position: absolute;
  499. width: 750rpx;
  500. left: 0;
  501. display: flex;
  502. justify-content: space-between;
  503. background-color: #fff;
  504. .item {
  505. display: flex;
  506. flex-direction: column;
  507. align-items: center;
  508. width: 100px;
  509. flex: 1;
  510. }
  511. text {
  512. font-size: 24rpx;
  513. color: #999;
  514. &.label {
  515. font-size: 40rpx;
  516. color: #333;
  517. font-weight: bold;
  518. }
  519. }
  520. }
  521. .date {
  522. display: flex;
  523. position: relative;
  524. border: 1rpx solid #E9F0F5;
  525. // padding-bottom: 19rpx;
  526. margin-top: 140rpx;
  527. .item {
  528. min-width: 140rpx;
  529. width: 140rpx;
  530. height: 136rpx;
  531. display: flex;
  532. flex-direction: column;
  533. align-items: center;
  534. justify-content: center;
  535. font-size: 20rpx;
  536. border-right: 1rpx solid #E9F0F5;
  537. background-color: #fff;
  538. box-sizing: border-box;
  539. &:last-child {
  540. border: 0;
  541. }
  542. text {
  543. &:nth-child(2) {
  544. margin: 6rpx 0;
  545. }
  546. }
  547. }
  548. }
  549. .head,
  550. .roomType {
  551. padding: 0 30rpx 0 0;
  552. display: flex;
  553. width: 400rpx;
  554. // justify-content: space-between;
  555. }
  556. .head {
  557. // position: absolute;
  558. // top: 0;
  559. // left: 0;
  560. margin-top: 16rpx;
  561. width: 750rpx;
  562. display: flex;
  563. box-sizing: border-box;
  564. justify-content: space-between;
  565. &>text {
  566. &:first-child {
  567. font-size: 32rpx;
  568. margin-right: 30rpx;
  569. }
  570. }
  571. .rightIcon {
  572. display: flex;
  573. align-items: center;
  574. font-size: 24rpx;
  575. color: #1F2425;
  576. }
  577. }
  578. .roomType {
  579. // position: absolute;
  580. // top: 40rpx;
  581. // left: 0;
  582. color: #333;
  583. font-size: 24rpx;
  584. position: relative;
  585. padding-left: 34rpx;
  586. margin: 20rpx 0 16rpx;
  587. &::after {
  588. position: absolute;
  589. content: "";
  590. height: 24rpx;
  591. width: 5rpx;
  592. background-color: #1372FF;
  593. left: 20rpx;
  594. top: 4rpx;
  595. z-index: 1;
  596. }
  597. }
  598. .floorData {
  599. .table {
  600. // border: 1rpx solid #E9F0F5;
  601. width: auto;
  602. min-width: 100%;
  603. .tr {
  604. display: flex;
  605. align-items: center;
  606. background-color: #fff;
  607. position: relative;
  608. &:last-child {
  609. border: 0;
  610. }
  611. .td {
  612. display: flex;
  613. align-items: center;
  614. justify-content: center;
  615. position: relative;
  616. width: 140rpx;
  617. min-width: 140rpx;
  618. height: 110rpx;
  619. border-right: 1rpx solid #E9F0F5;
  620. background-color: #fff;
  621. color: #1F2425;
  622. font-size: 24rpx;
  623. box-sizing: border-box;
  624. border-bottom: 1rpx solid #E9F0F5;
  625. .tdP,
  626. .cellBox {
  627. display: flex;
  628. width: 100%;
  629. height: 100%;
  630. flex-direction: column;
  631. align-items: center;
  632. justify-content: center;
  633. &.disT {
  634. color: #ccc;
  635. }
  636. }
  637. // &:last-child {
  638. // border: 0;
  639. // }
  640. //已预订
  641. &.s2 {
  642. background-color: rgba(29, 202, 104, 0.1);
  643. color: rgb(29, 202, 104);
  644. text {
  645. &:first-child {
  646. margin-bottom: 6rpx;
  647. color: #1F2425;
  648. }
  649. }
  650. }
  651. // 已入住
  652. &.s3 {
  653. color: rgb(19, 114, 255);
  654. background-color: rgba(19, 114, 255, 0.1);
  655. text {
  656. &:first-child {
  657. margin-bottom: 6rpx;
  658. color: #1F2425;
  659. }
  660. }
  661. }
  662. // 已退房
  663. &.s4 {
  664. color: rgb(219, 41, 195);
  665. background-color: rgba(219, 41, 195, 0.1);
  666. }
  667. //待确定
  668. &.s0 {
  669. color: rgb(25, 185, 197);
  670. background-color: rgba(25, 185, 197, 0.1);
  671. }
  672. //清洁中
  673. &.s5 {
  674. color: rgb(237, 86, 86);
  675. background-color: rgba(237, 86, 86, 0.1);
  676. }
  677. //暂停使用
  678. &.s6 {
  679. color: rgb(41, 60, 115);
  680. background-color: rgba(41, 60, 115, 0.1);
  681. }
  682. //保留房
  683. &.s7 {
  684. color: rgb(132, 68, 244);
  685. background-color: rgba(132, 68, 244, 0.1);
  686. }
  687. }
  688. }
  689. .cover {
  690. position: absolute;
  691. top: 0;
  692. left: 0;
  693. bottom: 0;
  694. right: 0;
  695. background-color: #1372FF;
  696. color: #fff;
  697. text-align: center;
  698. display: flex;
  699. flex-direction: column;
  700. justify-content: center;
  701. align-items: center;
  702. }
  703. }
  704. }
  705. .small {
  706. padding-top: 68rpx !important;
  707. .roomType {
  708. top: 0 !important;
  709. }
  710. }
  711. .pd0 {
  712. padding: 0 !important;
  713. }
  714. .leftFixed {
  715. width: 72rpx;
  716. position: absolute;
  717. left: 0;
  718. // top: 232rpx;
  719. z-index: 1;
  720. .tj {
  721. width: 0;
  722. position: relative;
  723. }
  724. .year {
  725. min-width: 140rpx;
  726. width: 140rpx;
  727. height: 136rpx;
  728. display: flex;
  729. flex-direction: column;
  730. align-items: center;
  731. justify-content: center;
  732. font-size: 20rpx;
  733. border-right: 1rpx solid #E9F0F5;
  734. background-color: #fff;
  735. margin-bottom: 18rpx;
  736. }
  737. .fixedItem {
  738. display: flex;
  739. flex-direction: column;
  740. .roomNumber {
  741. height: 110rpx;
  742. display: flex;
  743. align-items: center;
  744. border-bottom: 1rpx solid #E9F0F5;
  745. width: 140rpx;
  746. background-color: #fff;
  747. box-shadow: 3px 0 10px #efefef;
  748. box-sizing: border-box;
  749. justify-content: center;
  750. text-align: center;
  751. // &:first-child{height: 84rpx;border-top: 1rpx solid #E9F0F5;}
  752. }
  753. }
  754. }
  755. </style>