|
|
- <!--pages/roomDetail/roomDetail.wxml-->
- <view class="content">
- <view class="bgimg">
- <image src="../../static/images/bgimg_1.jpg" mode="widthFix"></image>
- </view>
- <viwe class="roominfo">
- <view class="roominfoli">
- <view class="text-grey text-sm">房间房源</view>
- <view class="icon"><text class="iconfont icon-jiarufangjian-01 text-green"></text><text class="text-sm">{{deviceinfo.roomName?deviceinfo.roomName:''}}</text></view>
- </view>
- <view class="roominfoli">
- <view class="text-grey text-sm">设备号</view>
- <view class="icon"><text class="text-sm fontsize">{{deviceinfo.deviceNum}}</text></view>
- </view>
- <view class="roominfoli">
- <view class="text-grey text-sm">电池</view>
- <view class="icon"><text class="iconfont icon-dianchi-gaodianliang text-blue"></text><text class="text-sm">{{deviceinfo.battery?deviceinfo.battery:''}}</text></view>
- </view>
- <view class="roominfoli">
- <view class="text-grey text-sm">信号</view>
- <view class="icon"><text class="iconfont icon-xinhao text-orange"></text><text class="text-sm">{{deviceinfo.rssi?deviceinfo.rssi:''}}</text>
- </view>
- </view>
- <view class="roominfoli">
- <view class="text-grey text-sm">连接状态</view>
- <view class="icon">
- <text class="iconfont icon-jiebangjilu text-orange" wx:if="{{deviceinfo.isOnline==0}}"></text>
- <text class="text-sm" wx:if="{{deviceinfo.isOnline==0}}">未连接</text>
- <text class="iconfont icon-bangdingjilu text-green" wx:if="{{deviceinfo.isOnline==1}}"></text>
- <text class="text-sm" wx:if="{{deviceinfo.isOnline==1}}">已连接</text>
- </view>
- </view>
- <view class="roominfoli">
- <view class="text-grey text-sm">门状态</view>
- <view class="icon">
- <text class="iconfont icon-men text-orange" wx:if="{{deviceinfo.lockStatus==0}}"></text>
- <text class="text-sm" wx:if="{{deviceinfo.lockStatus==0}}">门锁已关</text>
- <text class="iconfont icon-peizhitubiaosvg- text-orange" wx:if="{{deviceinfo.lockStatus==1}}"></text>
- <text class="text-sm" wx:if="{{deviceinfo.lockStatus==1}}">门锁已开</text>
- <text class="iconfont icon-men text-red" wx:if="{{deviceinfo.lockStatus==2}}"></text>
- <text class="text-sm" wx:if="{{deviceinfo.lockStatus==2}}">门锁异常</text>
- </view>
- </view>
- </viwe>
- <view class="actionList">
- <view class="actionli" bindtap="btntest1" data-i="0">
- <view class="iconfont icon-suoding text-green"></view>
- <view class="text-grey text-sm">蓝牙开锁</view>
- </view>
- <view class="actionli" bindtap="btntest1" data-i="1" wx:if="userRole == 1" wx:if="{{deviceinfo.manufactureId ==201 || deviceinfo.manufactureId ==221}}">
- <view class="iconfont icon-xiaoxi text-green"></view>
- <view class="text-grey text-sm">添加蓝牙密码</view>
- </view>
- <view class="actionli" bindtap="addRemotePassword" wx:if="userRole == 1">
- <view class="iconfont icon-xiaoxi text-green"></view>
- <view class="text-grey text-sm">添加远程密码</view>
- </view>
- <view class="actionli" bindtap="btntest1" data-i="12" wx:if="userRole == 1">
- <view class="iconfont icon-liebiao text-green"></view>
- <view class="text-grey text-sm">密码列表</view>
- </view>
- <!-- <view class="actionli" bindtap="btntest1" data-i="11" wx:if="{{deviceinfo.manufactureId == 201 || deviceinfo.manufactureId == 221 }}">
- <view class="iconfont icon-xiaoxi text-green"></view>
- <view class="text-grey text-sm">添加卡</view>
- </view> -->
- <view class="actionli" bindtap="payRentMethods" wx:if="userRole == 1">
- <view class="iconfont icon-jiludanzilishijilu text-green"></view>
- <view class="text-grey text-sm">合同</view>
- </view>
- <view class="actionli" bindtap="remoteUnlocking" wx:if="{{deviceinfo.manufactureId ==101 && authority}}">
- <view class="iconfont icon-cloud-lock text-orange"></view>
- <view class="text-grey text-sm">远程开锁</view>
- </view>
- <view class="actionli" bindtap="getlogList">
- <view class="iconfont icon-jiludanzilishijilu text-green"></view>
- <view class="text-grey text-sm">开锁记录</view>
- </view>
- <view class="actionli" bindtap="personManger" data-i="8" wx:if="{{authority}}">
- <view class="iconfont icon-renyuanguanli text-green"></view>
- <view class="text-grey text-sm">人员管理</view>
- </view>
- <view class="actionli" bindtap="btntest1" data-i="7" wx:if="{{deviceinfo.manufactureId ==101}}">
- <view class="iconfont icon-shanchu text-red"></view>
- <view class="text-grey text-sm">常开设置</view>
- </view>
- <view class="actionli" bindtap="getTemporaryPassword" data-i="9" wx:if="{{deviceinfo.manufactureId ==201 || deviceinfo.manufactureId ==221}}">
- <view class="iconfont icon-xiaoxi text-green"></view>
- <view class="text-grey text-sm">临时密码</view>
- </view>
- <view class="actionli" bindtap="changeshow2" data-i="3" wx:if="{{deviceinfo.manufactureId ==1201 || deviceinfo.manufactureId == 1241}}">
- <view class="iconfont icon-shezhi text-green"></view>
- <view class="text-grey text-sm">配网</view>
- </view>
- <view class="actionli" bindtap="btntest1" data-i="6" wx:if="{{IssuingPersonnel}}">
- <view class="iconfont icon-shezhi text-red"></view>
- <view class="text-grey text-sm">设置声音</view>
- </view>
- <view class="actionli" bindtap="linkBlue" wx:if="{{(deviceinfo.manufactureId ==201 || deviceinfo.manufactureId ==221) && authority}}">
- <view class="iconfont icon-shezhi text-red"></view>
- <view class="text-grey text-sm">添加蓝牙扣</view>
- </view>
- </view>
-
- <van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:close="onClose" bind:select="onSelect" />
- <van-popup show="{{ show1 }}" bind:close="onClose1" round custom-style="width:95%;">
- <van-cell-group>
- <van-field value="{{ TemporaryPassword }}" placeholder="临时密码" label="密码" disabled />
- <van-field value="{{ phone }}" placeholder="请输入需要发送的手机号" border="{{ false }}" label="手机" type="number" maxlength="11" bind:change="onChange" />
- <van-button type="primary" block bindtap="sendMessage">发送</van-button>
- </van-cell-group>
- </van-popup>
- <van-popup show="{{ showTwo }}" bind:close="onCloseTwo" round custom-style="width:95%;">
- <van-cell-group>
- <van-field value="{{ addpassword }}" placeholder="请输入密码" label="密码" bind:change="onChange2" />
- <picker mode="date" value="{{starttime}}" start="{{minDate}}" end="{{ minDate1 }}" bindchange="bindDateChangeAdd">
- <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
- </picker>
- <picker mode="date" value="{{endtime}}" start="{{minDate}}" end="{{ minDate1 }}" bindchange="bindDateChangeAddTwo">
- <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
- </picker>
- <van-button type="primary" block bindtap="sendPassword">发送</van-button>
- </van-cell-group>
- </van-popup>
- <van-popup show="{{ showOne }}" bind:close="onCloseOne" round custom-style="width:95%;">
- <van-cell-group>
- <picker mode="date" value="{{starttime}}" start="{{minDate}}" end="{{ minDate1 }}" bindchange="bindDateChangeAdd">
- <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
- </picker>
- <picker mode="date" value="{{endtime}}" start="{{minDate}}" end="{{ minDate1 }}" bindchange="bindDateChangeAddTwo">
- <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
- </picker>
- <van-button type="primary" block bindtap="sendNfc">发送</van-button>
- </van-cell-group>
- </van-popup>
- <!-- <view class="all"><slider @change="slider" value="10" step="50"/></view> -->
- </view>
- <van-popup show="{{ showbuleKey }}" bind:close="onCloseBlue">
- <view class="devicelist">
- <van-cell title="{{item.name}}" value="点击连接" data-select="{{item}}" bindtap="searchBlueButton" is-link wx:for="{{deviceList}}" wx:for-index="{{index}}" wx:for-item="item" />
- </view>
- </van-popup>
-
- <!-- 配网弹出框 -->
- <van-popup show="{{ show2 }}" round bind:close="onClose2" custom-style="width: 90%;">
- <view class="wificontact">
- <van-field value="{{ wifiName }}" placeholder="请输入wifi名称" border="{{ false }}" bind:change="onChangewifi" />
- <van-field value="{{ wifiPwd }}" placeholder="请输入wifi密码" border="{{ false }}" bind:change="onChangewifi1" />
- <van-button block type="primary" bindtap="configurationWifi">确定</van-button>
- </view>
- </van-popup>
|