You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
8.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <!--pages/roomDetail/roomDetail.wxml-->
  2. <view class="content">
  3. <view class="flexBox">
  4. <view class="bgimg">
  5. <image src="../../static/images/bgimg_1.jpg"></image>
  6. </view>
  7. <view class="roominfo">
  8. <view class="roominfoli">
  9. <view class="text-grey text-sm">房间房源</view>
  10. <view class="icon"><text class="iconfont icon-jiarufangjian-01 text-green"></text><text class="text-sm">{{deviceinfo.roomName}}</text></view>
  11. </view>
  12. <view class="roominfoli">
  13. <view class="text-grey text-sm">设备号</view>
  14. <view class="icon"><text class="text-sm fontsize">{{deviceinfo.deviceNum}}</text></view>
  15. </view>
  16. <view class="roominfoli">
  17. <view class="text-grey text-sm">电池</view>
  18. <view class="icon"><text class="iconfont icon-dianchi-gaodianliang text-blue"></text><text class="text-sm">{{deviceinfo.battery}}</text></view>
  19. </view>
  20. <view class="roominfoli">
  21. <view class="text-grey text-sm">信号</view>
  22. <view class="icon"><text class="iconfont icon-xinhao text-orange"></text><text class="text-sm">{{deviceinfo.rssi}}%</text>
  23. </view>
  24. </view>
  25. <view class="roominfoli">
  26. <view class="text-grey text-sm">连接状态</view>
  27. <view class="icon">
  28. <text class="iconfont icon-jiebangjilu text-orange" wx:if="{{deviceinfo.isOnline==0}}"></text>
  29. <text class="text-sm" wx:if="{{deviceinfo.isOnline==0}}">未连接</text>
  30. <text class="iconfont icon-bangdingjilu text-green" wx:if="{{deviceinfo.isOnline==1}}"></text>
  31. <text class="text-sm" wx:if="{{deviceinfo.isOnline==1}}">已连接</text>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="actionList">
  37. <view class="actionli" bindtap="btntest1" data-i="0">
  38. <view class="iconfont icon-suoding text-green"></view>
  39. <view class="text-grey text-sm">蓝牙开锁</view>
  40. </view>
  41. <view class="actionli" bindtap="genOfflinePincodeShowMethods" wx:if="{{deviceinfo.manufactureId ==1201 && authority}}">
  42. <view class="iconfont icon-cloud-lock text-green"></view>
  43. <view class="text-grey text-sm">离线密码</view>
  44. </view>
  45. <view class="actionli" bindtap="remoteUnlocking" wx:if="{{(deviceinfo.manufactureId ==101 || deviceinfo.manufactureId ==1201) && authority}}">
  46. <view class="iconfont icon-cloud-lock text-orange"></view>
  47. <view class="text-grey text-sm">远程开锁</view>
  48. </view>
  49. <view class="actionli" bindtap="getlogList">
  50. <view class="iconfont icon-jiludanzilishijilu text-green"></view>
  51. <view class="text-grey text-sm">开锁记录</view>
  52. </view>
  53. <view class="actionli" bindtap="personManger" data-i="8" wx:if="{{authority}}">
  54. <view class="iconfont icon-renyuanguanli text-green"></view>
  55. <view class="text-grey text-sm">人员管理</view>
  56. </view>
  57. <view class="actionli" bindtap="gotofaceadd" wx:if="{{(deviceinfo.manufactureId ==1201 || deviceinfo.manufactureId == 1241) && authority}}">
  58. <view class="iconfont icon-quanxianguanli text-green"></view>
  59. <view class="text-grey text-sm">图像管理</view>
  60. </view>
  61. <view class="actionli" bindtap="changeshow2" wx:if="{{(deviceinfo.manufactureId ==1201 || deviceinfo.manufactureId == 1241) && authority}}">
  62. <view class="iconfont icon-shezhi text-green"></view>
  63. <view class="text-grey text-sm">配网</view>
  64. </view>
  65. <!-- <view class="actionli" bindtap="btntest1" data-i="7" wx:if="{{deviceinfo.manufactureId ==101 && NormallyOpenPermission}}">
  66. <view class="iconfont icon-shezhi text-red"></view>
  67. <view class="text-grey text-sm">常开设置</view>
  68. </view>
  69. <view class="actionli" bindtap="setAlawyOpen" wx:if="{{deviceinfo.manufactureId ==201 && NormallyOpenPermission}}">
  70. <view class="iconfont icon-shezhi text-red"></view>
  71. <view class="text-grey text-sm">常开设置</view>
  72. </view> -->
  73. <view class="actionli" bindtap="getTemporaryPassword" data-i="9" wx:if="{{deviceinfo.manufactureId ==201||deviceinfo.manufactureId ==221}}">
  74. <view class="iconfont icon-xiaoxi text-green"></view>
  75. <view class="text-grey text-sm">临时密码</view>
  76. </view>
  77. <view class="actionli" bindtap="btntest1" data-i="6" wx:if="{{IssuingPersonnel}}">
  78. <view class="iconfont icon-shezhi text-red"></view>
  79. <view class="text-grey text-sm">设置声音</view>
  80. </view>
  81. <!-- <view class="actionli" bindtap="linkBlue" wx:if="{{deviceinfo.manufactureId ==201 && authority && RemoteControlPermission}}">
  82. <view class="iconfont icon-shezhi text-red"></view>
  83. <view class="text-grey text-sm">添加蓝牙扣</view>
  84. </view>-->
  85. <view class="actionli" bindtap="btntest1" data-i="11" wx:if="{{(deviceinfo.manufactureId ==201||deviceinfo.manufactureId ==221) && authority}}">
  86. <view class="iconfont icon-shezhi text-red"></view>
  87. <view class="text-grey text-sm">平台任务同步</view>
  88. </view>
  89. </view>
  90. <van-action-sheet show="{{ show }}" actions="{{ actionsLwj }}" bind:close="onClose" bind:select="onSelect" wx:if="{{deviceinfo.manufactureId ==1201}}" />
  91. <van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:close="onClose" bind:select="onSelect" wx:else />
  92. <van-popup show="{{ show1 }}" bind:close="onClose1" round custom-style="width:95%;">
  93. <van-cell-group>
  94. <van-field value="{{ TemporaryPassword }}" placeholder="临时密码" label="密码" disabled />
  95. <van-field value="{{ phone }}" placeholder="请输入需要发送的手机号" border="{{ false }}" label="手机" type="number" maxlength="11" bind:change="onChange" />
  96. <van-button type="primary" block bindtap="sendMessage">发送</van-button>
  97. </van-cell-group>
  98. </van-popup>
  99. <van-popup show="{{ openShow }}" custom-style="width: 90%" bind:close="onCloseSet" round>
  100. <van-cell-group>
  101. <picker mode="date" value="{{starttime}}" start="{{minDate}}" bindchange="bindDateChange">
  102. <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
  103. </picker>
  104. <picker mode="date" value="{{endtime}}" start="{{minDate1}}" bindchange="bindDateChange1">
  105. <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
  106. </picker>
  107. <picker bindchange="bindPickerChangestartHour" value="{{startHour}}" range="{{array}}">
  108. <van-field value="{{ array[startHour] }}" placeholder="开始时间段" label="开始时间段" border="{{ true }}" readonly />
  109. </picker>
  110. <picker bindchange="bindPickerChangeendHour" value="{{endHour}}" range="{{array}}">
  111. <van-field value="{{ array[endHour] }}" placeholder="结束时间段" label="结束时间段" border="{{ true }}" readonly />
  112. </picker>
  113. <view class="d-flex">
  114. <van-button type="primary" size="normal" bindtap="setAlawalyOpen" block>确认设置</van-button>
  115. <van-button type="warning" size="normal" bindtap="UnsetMethods" block>取消设置</van-button>
  116. </view>
  117. </van-cell-group>
  118. </van-popup>
  119. <van-popup show="{{ genOfflinePincodeShow }}" custom-style="width: 90%" bind:close="onCloseSet" round>
  120. <van-cell-group>
  121. <picker mode="date" value="{{starttime}}" start="{{minDate}}" bindchange="bindDateChange">
  122. <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
  123. </picker>
  124. <picker mode="date" value="{{endtime}}" start="{{minDate1}}" bindchange="bindDateChange1">
  125. <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
  126. </picker>
  127. <picker bindchange="bindPickerChangestartHour" value="{{startHour}}" range="{{array}}">
  128. <van-field value="{{ array[startHour] }}" placeholder="开始时间段" label="开始时间段" border="{{ true }}" readonly />
  129. </picker>
  130. <picker bindchange="bindPickerChangeendHour" value="{{endHour}}" range="{{array}}">
  131. <van-field value="{{ array[endHour] }}" placeholder="结束时间段" label="结束时间段" border="{{ true }}" readonly />
  132. </picker>
  133. <view class="d-flex">
  134. <van-button type="primary" size="normal" bindtap="genOfflinePincode" block>确认设置</van-button>
  135. <van-button type="warning" size="normal" bindtap="onCloseSet" block>取消设置</van-button>
  136. </view>
  137. </van-cell-group>
  138. </van-popup>
  139. <!-- <view class="all"><slider @change="slider" value="10" step="50"/></view> -->
  140. </view>
  141. <van-popup show="{{ showbuleKey }}" bind:close="onCloseBlue">
  142. <view class="devicelist">
  143. <van-cell title="{{item.name}}" value="点击连接" data-select="{{item}}" bindtap="searchBlueButton" is-link wx:for="{{deviceList}}" wx:for-index="{{index}}" wx:for-item="item" />
  144. </view>
  145. </van-popup>
  146. <!-- 配网 -->
  147. <van-popup show="{{ show2 }}" round bind:close="onClose2" custom-style="width: 90%;">
  148. <view class="wificontact">
  149. <van-field value="{{ wifiName }}" placeholder="请输入wifi名称" border="{{ false }}" bind:change="onChangewifi" />
  150. <van-field value="{{ wifiPwd }}" placeholder="请输入wifi密码" border="{{ false }}" bind:change="onChangewifi1" />
  151. <van-button block type="primary" bindtap="configurationWifi">确定</van-button>
  152. </view>
  153. </van-popup>