6155添加强泛光指令
This commit is contained in:
@ -108,15 +108,15 @@
|
|||||||
|
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">单位:</text>
|
<text class="lbl">单位:</text>
|
||||||
<input class="value" v-model="formData.textLines[0]" placeholder="请输入单位" placeholder-class="usrplace" />
|
<input class="value" v-model.trim="formData.textLines[0]" placeholder="请输入单位" placeholder-class="usrplace" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">部门:</text>
|
<text class="lbl">部门:</text>
|
||||||
<input class="value" v-model="formData.textLines[1]" placeholder="请输入姓名" placeholder-class="usrplace" />
|
<input class="value" v-model.trim="formData.textLines[1]" placeholder="请输入姓名" placeholder-class="usrplace" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">姓名:</text>
|
<text class="lbl">姓名:</text>
|
||||||
<input class="value" v-model="formData.textLines[2]" placeholder="请输入职位" placeholder-class="usrplace" />
|
<input class="value" v-model.trim="formData.textLines[2]" placeholder="请输入职位" placeholder-class="usrplace" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -1293,9 +1293,14 @@
|
|||||||
case "fu":
|
case "fu":
|
||||||
title = '辅灯模式';
|
title = '辅灯模式';
|
||||||
items = [{
|
items = [{
|
||||||
text: '泛光',
|
text: '泛光',
|
||||||
icon: '/static/images/6155/DeviceDetail/fan.png'
|
icon: '/static/images/6155/DeviceDetail/fan.png'
|
||||||
}];
|
},
|
||||||
|
{
|
||||||
|
text: '强+泛光',
|
||||||
|
icon: '/static/images/6155/DeviceDetail/fan.png'
|
||||||
|
},
|
||||||
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1330,29 +1335,22 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
setMode(mode, type) {
|
setMode(mode, type) {
|
||||||
|
|
||||||
let dataValue = 0;
|
let dataValue = 0;
|
||||||
|
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
||||||
|
|
||||||
if (type == 'main') {
|
if (type == 'main') {
|
||||||
|
|
||||||
dataValue = 0x01;
|
dataValue = 0x01;
|
||||||
} else if (type == 'fu') {
|
} else if (type == 'fu') {
|
||||||
|
|
||||||
dataValue = 0x04;
|
dataValue = 0x04;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
dataValue = 0x02;
|
if (type == 'main') {
|
||||||
|
dataValue = 0x02;
|
||||||
|
} else if (type == 'fu') {
|
||||||
|
dataValue = 0x0A; //强泛光
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
// case 2:
|
|
||||||
// dataValue = 0x02;
|
|
||||||
// break;
|
|
||||||
case 2:
|
case 2:
|
||||||
dataValue = 0x03;
|
dataValue = 0x03;
|
||||||
break;
|
break;
|
||||||
@ -1361,7 +1359,7 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
// console.log("dataValue=", dataValue)
|
console.log("dataValue=", dataValue)
|
||||||
// 构建数据包
|
// 构建数据包
|
||||||
var buffer = new ArrayBuffer(6);
|
var buffer = new ArrayBuffer(6);
|
||||||
var dataView = new DataView(buffer);
|
var dataView = new DataView(buffer);
|
||||||
|
|||||||
Reference in New Issue
Block a user