mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 20:09:37 +08:00
1
This commit is contained in:
parent
fd52d2df19
commit
6bc275e815
@ -278,6 +278,16 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 开门
|
||||||
|
openLockDoor() {
|
||||||
|
let _this = this
|
||||||
|
let lockDoor = _this.data.lockDoor
|
||||||
|
// 调用设备接口
|
||||||
|
_this.callApiByDevice({
|
||||||
|
"deviceId": lockDoor.id,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 调用设备接口
|
// 调用设备接口
|
||||||
callApiByDevice(data) {
|
callApiByDevice(data) {
|
||||||
callApiByDeviceIdRq(data).then(res => {
|
callApiByDeviceIdRq(data).then(res => {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<view class="lockView">
|
<view class="lockView">
|
||||||
<!-- <view class="lockImg" style="background: no-repeat center/cover url({{IMG_NAME + '/profile/static/shanghai_changyang/device/equipment/lock/lock.png'}});"></view> -->
|
<!-- <view class="lockImg" style="background: no-repeat center/cover url({{IMG_NAME + '/profile/static/shanghai_changyang/device/equipment/lock/lock.png'}});"></view> -->
|
||||||
|
|
||||||
<view class="lockSwitchView" wx:if="{{lockDoor}}">
|
<view class="lockSwitchView" wx:if="{{lockDoor}}" bind:tap="openLockDoor">
|
||||||
<view class="switchImg" style="background: no-repeat center/cover url({{IMG_NAME + '/profile/static/shanghai_changyang/device/equipment/lock/lockSwitch.png'}});"></view>
|
<view class="switchImg" style="background: no-repeat center/cover url({{IMG_NAME + '/profile/static/shanghai_changyang/device/equipment/lock/lockSwitch.png'}});"></view>
|
||||||
<view class="label">点击开门</view>
|
<view class="label">点击开门</view>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user