32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
<view class="page">
|
||
<view wx:if="{{store}}" class="store-head">
|
||
<view class="title">{{store.name}}</view>
|
||
<view class="muted">{{store.city}}{{store.district}} {{store.address}}</view>
|
||
<view class="{{store.openNow ? 'open' : 'closed'}}">{{store.openNow ? '营业中' : '休息中'}}</view>
|
||
<view wx:if="{{store.contactPhone}}" class="muted">电话:{{store.contactPhone}}</view>
|
||
</view>
|
||
<view wx:else class="title">门店详情</view>
|
||
|
||
<view wx:if="{{errorMessage}}" class="error">{{errorMessage}}</view>
|
||
|
||
<view class="section-title">房间</view>
|
||
<view wx:if="{{!loading && rooms.length === 0}}" class="empty">暂无可预订房间</view>
|
||
<view wx:for="{{rooms}}" wx:key="id" class="room-card" bindtap="openRoom" data-room-id="{{item.id}}">
|
||
<view class="room-name">{{item.name}}</view>
|
||
<view class="muted">{{item.categoryName}} · {{item.capacity}}人 · {{item.roomNo}}</view>
|
||
<view class="price">{{item.basePriceText}}/小时</view>
|
||
<view class="muted">押金 {{item.depositText}} · 最少 {{item.minimumMinutes}} 分钟</view>
|
||
<view class="{{item.operationalStatus === 'AVAILABLE' ? 'open' : 'closed'}}">
|
||
{{item.operationalStatus === 'AVAILABLE' ? '可预订' : '暂不可订'}}
|
||
</view>
|
||
</view>
|
||
|
||
<button loading="{{loading}}" bindtap="loadWifi">查看到店 Wi-Fi</button>
|
||
<view wx:if="{{wifi}}" class="wifi-box">
|
||
<view>SSID:{{wifi.ssid}}</view>
|
||
<view>密码:{{wifi.password}}</view>
|
||
</view>
|
||
|
||
<view class="notice">场景码仅用于页面导航,不授予开门或设备控制权限。</view>
|
||
</view>
|