|
|
- <!--pages/roomDetail/roomDetail.wxml-->
- <view class="content">
- <view class="flexBox">
- <view class="bgimg">
- <image src="../../static/images/bgimg_1.jpg"></image>
- </view>
- <view 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}}</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}}</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}}%</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>
- </view>
- <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="genOfflinePincodeShowMethods" wx:if="{{deviceinfo.manufactureId ==1201 && authority}}">
- <view class="iconfont icon-cloud-lock text-green"></view>
- <view class="text-grey text-sm">离线密码</view>
- </view>
- <view class="actionli" bindtap="remoteUnlocking" wx:if="{{(deviceinfo.manufactureId ==101 || deviceinfo.manufactureId ==1201) && 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="gotofaceadd" wx:if="{{(deviceinfo.manufactureId ==1201 || deviceinfo.manufactureId == 1241) && authority}}">
- <view class="iconfont icon-quanxianguanli text-green"></view>
- <view class="text-grey text-sm">图像管理</view>
- </view> -->
- <view class="actionli" bindtap="changeshow2" wx:if="{{(deviceinfo.manufactureId ==1201 || deviceinfo.manufactureId == 1241) && authority}}">
- <view class="iconfont icon-shezhi text-green"></view>
- <view class="text-grey text-sm">配网</view>
- </view>
- <!-- <view class="actionli" bindtap="btntest1" data-i="7" wx:if="{{deviceinfo.manufactureId ==101 && NormallyOpenPermission}}">
- <view class="iconfont icon-shezhi text-red"></view>
- <view class="text-grey text-sm">常开设置</view>
- </view>
- <view class="actionli" bindtap="setAlawyOpen" wx:if="{{deviceinfo.manufactureId ==201 && NormallyOpenPermission}}">
- <view class="iconfont icon-shezhi 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="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 && authority && RemoteControlPermission}}">
- <view class="iconfont icon-shezhi text-red"></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) && authority}}">
- <view class="iconfont icon-shezhi text-red"></view>
- <view class="text-grey text-sm">平台任务同步</view>
- </view> -->
- </view>
- <van-action-sheet show="{{ show }}" actions="{{ actionsLwj }}" bind:close="onClose" bind:select="onSelect" wx:if="{{deviceinfo.manufactureId ==1201}}" />
- <van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:close="onClose" bind:select="onSelect" wx:else />
- <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="{{ openShow }}" custom-style="width: 90%" bind:close="onCloseSet" round>
- <van-cell-group>
- <picker mode="date" value="{{starttime}}" start="{{minDate}}" bindchange="bindDateChange">
- <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
- </picker>
- <picker mode="date" value="{{endtime}}" start="{{minDate1}}" bindchange="bindDateChange1">
- <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
- </picker>
- <picker bindchange="bindPickerChangestartHour" value="{{startHour}}" range="{{array}}">
- <van-field value="{{ array[startHour] }}" placeholder="开始时间段" label="开始时间段" border="{{ true }}" readonly />
- </picker>
- <picker bindchange="bindPickerChangeendHour" value="{{endHour}}" range="{{array}}">
- <van-field value="{{ array[endHour] }}" placeholder="结束时间段" label="结束时间段" border="{{ true }}" readonly />
- </picker>
- <view class="d-flex">
- <van-button type="primary" size="normal" bindtap="setAlawalyOpen" block>确认设置</van-button>
- <van-button type="warning" size="normal" bindtap="UnsetMethods" block>取消设置</van-button>
- </view>
- </van-cell-group>
- </van-popup>
-
- <van-popup show="{{ genOfflinePincodeShow }}" custom-style="width: 90%" bind:close="onCloseSet" round>
- <van-cell-group>
- <picker mode="date" value="{{starttime}}" start="{{minDate}}" bindchange="bindDateChange">
- <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
- </picker>
- <picker mode="date" value="{{endtime}}" start="{{minDate1}}" bindchange="bindDateChange1">
- <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
- </picker>
- <picker bindchange="bindPickerChangestartHour" value="{{startHour}}" range="{{array}}">
- <van-field value="{{ array[startHour] }}" placeholder="开始时间段" label="开始时间段" border="{{ true }}" readonly />
- </picker>
- <picker bindchange="bindPickerChangeendHour" value="{{endHour}}" range="{{array}}">
- <van-field value="{{ array[endHour] }}" placeholder="结束时间段" label="结束时间段" border="{{ true }}" readonly />
- </picker>
- <view class="d-flex">
- <van-button type="primary" size="normal" bindtap="genOfflinePincode" block>确认设置</van-button>
- <van-button type="warning" size="normal" bindtap="onCloseSet" block>取消设置</van-button>
- </view>
- </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>
|