Files
2025-12-11 09:50:45 +08:00

144 lines
6.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<cu-custom bgColor="bg-gradual-blue" isBack="true">
<block bindtap="back" slot="backText" >返回</block>
<view slot="content">{{HotelId}}-{{HotelName}}</view>
</cu-custom>
<view class="cu-card">
<view class="cu-item">
<view style="float: left; width: 70%;">
<view style="text-align: left;">编号:{{HotelId}}</view>
<view> 酒店:{{HotelName}} </view>
<view> 房间:{{Roomid}} </view>
<view> SN{{sn}} </view>
</view>
<view style="float: left; width: 30%;">
<view class="text-green" style="text-align: right;" bindtap="HelpClick">{{Help?'关闭':'帮助'}}</view>
<view style="text-align: center;" >
<button class="text-red cu-btn " bindtap="JbSn" >解绑</button>
</view>
</view>
</view>
</view>
<!-- 操作区域 -->
<view class="cu-list menu" wx:if="{{!Help && !islogs}}" >
<view class="cu-bar bg-white solid-bottom">
<view class='action'>
<text class='cuIcon-titles text-orange '></text> 开房测试
</view>
<view class='action'>
<switch class='sm' checked='{{isCard}}' bindchange='isCard'></switch>
</view>
</view>
<view class="cu-card case {{isCard?'no-card':''}}" wx:if="{{isCard}}">
<view class="cu-item shadow">
<view class="padding-xs">
<button class="cu-btn round margin-top margin-left bg-red lg" bindtap="checkOut">退房</button>
<form>
<view class="cu-form-group margin-top">
<view class="title">姓 名:</view>
<input placeholder="请输入姓名" model:value="{{openUserName}}"></input>
</view>
<view class="cu-form-group">
<view class="title">证件号:</view>
<input placeholder="请输入证件号" model:value="{{openUserID}}"></input>
</view>
<view class="cu-form-group">
<view class="title">电话号码:</view>
<input placeholder="请输入电话号码" model:value="{{openUserTel}}"></input>
</view>
<radio-group class="cu-form-group" bindchange="radioChang" data-id="{{openUserSex}}">
<view class="title">性 别:</view>
<view>
<radio class="red margin-left-lg" value="0"></radio>男
<radio class="red margin-left-lg" value="1"></radio>女
</view>
</radio-group>
<view class="cu-bar bg-white margin-top">
<view class="action">
图片上传
</view>
</view>
<view class="cu-form-group">
<view class="grid col-4 grid-square flex-sub">
<view class="bg-img" wx:for="{{imgList}}" wx:key="{{index}}" bindtap="ViewImage" data-url="{{imgList[index]}}">
<image src='{{imgList[index]}}' mode='aspectFill'></image>
<view class="cu-tag bg-red" catchtap="DelImg" data-index="{{index}}">
<text class="cuIcon-close"></text>
</view>
</view>
<view class="solids" bindtap="ChooseImage" wx:if="{{imgList.length<1}}">
<text class="cuIcon-cameraadd"></text>
</view>
</view>
</view>
<view class="padding flex flex-direction" bindtap="Checkin">
<button class="cu-btn bg-grey lg" >开房</button>
</view>
</form>
</view>
</view>
</view>
<view class="cu-bar bg-white solid-bottom {{isCard?'margin-top':''}}">
<view class='action'>
<text class='cuIcon-titles text-orange '></text> 功能测试
</view>
<view class='action'>
<switch class='sm' checked='{{isCardds}}' bindchange='isCardds'></switch>
</view>
</view>
<view class="cu-card dynamic {{isCardds?'no-card':''}}" wx:if="{{isCardds}}">
<view class="cu-item shadow">
<button style="margin:5px ;" class="cu-btn round margin-xl bg-green" bindtap="OpenDoor" >开门</button>
<button class="cu-btn round margin-xl" bindtap="Getversionnumber">版本号</button>
<button style="margin:5px ;" class="cu-btn bg-red margin-xl round" bindtap="Deletepeople">删除</button>
<button class="cu-btn bg-red margin-xl round" bindtap="RestartDevice">重启</button>
</view>
</view>
</view>
<!-- 帮助区域 -->
<view wx:if="{{Help}}" class="padding-xs">
<view class="cu-card article">
<view class="cu-item shadow " style="margin:0;padding-bottom:0;">
<view class="title" style="line-height:initial;"><view class="text-cut">页面说明</view></view>
<view class="content">
<view class="desc">
<view class="text-content text-df">
<!-- 指示块,仅针对本次进入页面有效,不代表历史操作记录,刷新或者重新进入页面都会执行重置操作。 -->
此处的说明信息只在本页面使用。其他页面不可以使用本页面说明,
</view>
</view>
</view>
</view>
</view>
<view class="cu-card article">
<view class="cu-item shadow " style="margin:0;padding-bottom:0;">
<view class="title" style="line-height:initial;"><view class="text-cut">功能测试区域所有按钮含义</view></view>
<view class="content">
<view class="desc">
<view class="text-content text-df" style="height: auto;">
<view class="text-df text-green">开门</view>
点击开门按钮是下发开门命令给设备,如果成功会听见继电器闭合声音或弹框开门成功。否则弹出开门失败或没有听见继电器闭合声音。
<view class="text-df text-green">版本号</view>
点击版本号是下发获取设备信息命令给设备,如果成功会弹出设备的版本号。否则弹出无法获取设备的版本信息。
<!-- <view class="text-df text-green">人数</view>
点击人数是下发获取入住人员数量命令给设备如果成功会弹出入住人员数量否则弹出入住人数是0。 -->
<view class="text-df text-green">删除</view>
点击删除是下发删除所有入住人员命令给设备,如果成功弹出删除成功,否则弹出删除失败。
<view class="text-df text-green">重启</view>
点击删除是下发重启命令给设备,如果成功下发成功设备将重新启动,否则弹出下发失败,设备不会重新启动。
<view class="text-df text-green">开房</view>
开房所有信息默认值性别默认是姓名默认李四电话默认15915641569证件号码默认123456789456123456直接点击图片上传上传照片后点击开房即可发送信息给人脸机。注意图片上传成功会显示在页面上
<view class="text-df text-green">退房</view>
直接点击退房,会直接下发退房命令给人脸机。
</view>
</view>
</view>
</view>
</view>
</view>