|
@@ -73,7 +73,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-else class="not-reservation">
|
|
|
- <text class="tip">您还未入住!</text>
|
|
|
+ <u-text class="tip" text="您还未入住!" align="center"></u-text>
|
|
|
+ <u-text class="tip" text="若已退房或房间到期,请至前台办理" align="center"></u-text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -205,8 +206,8 @@
|
|
|
let {data: infoRes} = await getCheckinInfo(this.currentHotel.hotelId)
|
|
|
console.log("获取入住记录", infoRes);
|
|
|
|
|
|
- if (infoRes.code !== 200 || !infoRes.success) {
|
|
|
- console.log("获取入住记录失败", info.data.data);
|
|
|
+ if (infoRes.code !== 200 || !infoRes.success || !infoRes.data) {
|
|
|
+ console.log("获取入住记录失败", infoRes);
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -315,17 +316,9 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .not-reservation {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- height: 100%;
|
|
|
- text-align: center;
|
|
|
- vertical-align: 100rpx;
|
|
|
-
|
|
|
- .tip {
|
|
|
- padding-top: 40%;
|
|
|
- }
|
|
|
- }
|
|
|
+ .not-reservation {
|
|
|
+ margin-top: 40%;
|
|
|
}
|
|
|
</style>
|