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.

161 lines
9.3 KiB

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