体验性小优化
This commit is contained in:
@ -74,7 +74,7 @@
|
||||
|
||||
<view class="slider-container">
|
||||
<slider min="1" max="100" step="1" :disabled="false" :value="formData.liangDu" activeColor="#bbe600"
|
||||
backgroundColor="#00000000" block-size="20" block-color="#ffffffde" @change="sliderChange"
|
||||
backgroundColor="#00000000" block-size="20" block-color="#ffffffde" @change="sliderChange" @changing="sliderChanging"
|
||||
class="custom-slider" />
|
||||
|
||||
</view>
|
||||
@ -1784,6 +1784,9 @@
|
||||
});
|
||||
|
||||
},
|
||||
sliderChanging(evt){
|
||||
this.formData.liangDu = evt.detail.value;
|
||||
},
|
||||
sliderChange: function(evt) {
|
||||
|
||||
if (!this.permissions.includes('1') && this.Status.apiType !== 'listA') {
|
||||
@ -1834,10 +1837,10 @@
|
||||
|
||||
dataView.setUint8(0, 0x55); // 帧头
|
||||
dataView.setUint8(1, 0x07); // 帧类型:亮度调节
|
||||
dataView.setUint8(2, 0x01); // 包序号
|
||||
dataView.setUint8(3, 0x00); // 包序号
|
||||
dataView.setUint8(4, 0x01); // 数据长度
|
||||
dataView.setUint8(5, liangDu); // 数据长度
|
||||
dataView.setUint8(2, 0x01);
|
||||
dataView.setUint8(3, 0x00);
|
||||
dataView.setUint8(4, 0x01); //
|
||||
dataView.setUint8(5, liangDu); // 数据
|
||||
|
||||
let f = this.getDevice();
|
||||
if (f) {
|
||||
|
||||
Reference in New Issue
Block a user