Compare commits
2 Commits
84c0a6ae18
...
4df8330738
Author | SHA1 | Date | |
---|---|---|---|
4df8330738 | |||
8e1a37dbea |
@ -26,7 +26,7 @@
|
|||||||
dotColors: ['#CEF231c2'],
|
dotColors: ['#CEF231c2'],
|
||||||
text: '请稍候...',//文本文字
|
text: '请稍候...',//文本文字
|
||||||
textColor: '#FFFFFFde',//文本颜色
|
textColor: '#FFFFFFde',//文本颜色
|
||||||
radius: 50,//圆的半径
|
radius: 35,//圆的半径
|
||||||
duration: 1200,//动画的播放速度
|
duration: 1200,//动画的播放速度
|
||||||
colorIndex: 0
|
colorIndex: 0
|
||||||
}
|
}
|
||||||
@ -130,7 +130,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 99999999999;
|
z-index: 99999999999;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-bottom: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 内容居中 */
|
/* 内容居中 */
|
||||||
@ -149,7 +150,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
margin-bottom: 30rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 单个刻度点 */
|
/* 单个刻度点 */
|
||||||
@ -157,8 +158,8 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 14rpx;
|
width: 4rpx;
|
||||||
height: 52rpx;
|
height: 30rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 12rpx;
|
||||||
/* margin-top: -4rpx;
|
/* margin-top: -4rpx;
|
||||||
margin-left: -4rpx; */
|
margin-left: -4rpx; */
|
||||||
@ -187,8 +188,8 @@
|
|||||||
letter-spacing: 1.4rpx;
|
letter-spacing: 1.4rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
max-width: 80vw;
|
max-width: 80vw;
|
||||||
padding: 0 20px;
|
|
||||||
line-height: 1.5;
|
|
||||||
font-family: 'PingFang SC';
|
font-family: 'PingFang SC';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -780,7 +780,7 @@
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中...'
|
title: '加载中...'
|
||||||
})
|
})
|
||||||
eventChannel.on('deviceControl', (data) => {
|
eventChannel.on('detailData', (data) => {
|
||||||
console.log(data, '这是传过来的惨呼啊');
|
console.log(data, '这是传过来的惨呼啊');
|
||||||
this.itemInfo = data.data;
|
this.itemInfo = data.data;
|
||||||
this.deviceID = data.data.id;
|
this.deviceID = data.data.id;
|
||||||
|
@ -143,7 +143,7 @@
|
|||||||
url: "/pages/6170/deviceControl/index",
|
url: "/pages/6170/deviceControl/index",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// 页面跳转成功后的回调函数
|
// 页面跳转成功后的回调函数
|
||||||
res.eventChannel.emit('deviceControl', {
|
res.eventChannel.emit('detailData', {
|
||||||
data: item,
|
data: item,
|
||||||
apiType: 'listB' // 自定义标识 // 自定义标识,详情哪里根据这个参数不同信息
|
apiType: 'listB' // 自定义标识 // 自定义标识,详情哪里根据这个参数不同信息
|
||||||
});
|
});
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
url: "/pages/6170/deviceControl/index",
|
url: "/pages/6170/deviceControl/index",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// 页面跳转成功后的回调函数
|
// 页面跳转成功后的回调函数
|
||||||
res.eventChannel.emit('deviceControl', {
|
res.eventChannel.emit('detailData', {
|
||||||
data: item,
|
data: item,
|
||||||
apiType: 'listB' // 自定义标识 // 自定义标识,详情哪里根据这个参数不同信息
|
apiType: 'listB' // 自定义标识 // 自定义标识,详情哪里根据这个参数不同信息
|
||||||
});
|
});
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<view class="eqinfo">
|
<view class="eqinfo">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">蓝牙名称</text>
|
<text class="lbl">蓝牙名称</text>
|
||||||
<text class="value">{{formData.name}}</text>
|
<text class="value">{{formData.blename}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">设备名称</text>
|
<text class="lbl">设备名称</text>
|
||||||
@ -156,7 +156,7 @@
|
|||||||
<view class="icoContent center" v-on:click.stop="checkImgUpload()">
|
<view class="icoContent center" v-on:click.stop="checkImgUpload()">
|
||||||
<image mode="aspectFit" class="img" src="/static/images/6155/DeviceDetail/add.png"></image>
|
<image mode="aspectFit" class="img" src="/static/images/6155/DeviceDetail/add.png"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</BottomSlideMenuPlus>
|
</BottomSlideMenuPlus>
|
||||||
|
|
||||||
@ -238,7 +238,7 @@
|
|||||||
img: '/static/images/6155/DeviceDetail/equip.png',
|
img: '/static/images/6155/DeviceDetail/equip.png',
|
||||||
battary: '',
|
battary: '',
|
||||||
xuhang: '',
|
xuhang: '',
|
||||||
name: '',
|
blename: '',
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
deviceName: '',
|
deviceName: '',
|
||||||
RSSI: '',
|
RSSI: '',
|
||||||
@ -273,7 +273,7 @@
|
|||||||
ble.addReceiveCallback(these.bleValueNotify);
|
ble.addReceiveCallback(these.bleValueNotify);
|
||||||
let eventChannel = this.getOpenerEventChannel();
|
let eventChannel = this.getOpenerEventChannel();
|
||||||
|
|
||||||
eventChannel.on('deviceControl', function(data) {
|
eventChannel.on('detailData', function(data) {
|
||||||
|
|
||||||
console.log("收到父页面的参数:" + JSON.stringify(data));
|
console.log("收到父页面的参数:" + JSON.stringify(data));
|
||||||
var device = data.data;
|
var device = data.data;
|
||||||
@ -305,13 +305,14 @@
|
|||||||
these.formData[key] = form[key];
|
these.formData[key] = form[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
these.formData.name = device.bluetoothName ? device.bluetoothName : "Unname";
|
these.formData.blename = f.name ? f.name : "Unname";
|
||||||
these.formData.deviceName = device.deviceName;
|
these.formData.deviceName = device.deviceName;
|
||||||
these.formData.img = device.devicePic;
|
these.formData.img = device.devicePic;
|
||||||
these.formData.id = device.id;
|
these.formData.id = device.id;
|
||||||
|
|
||||||
|
|
||||||
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId);
|
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId);
|
||||||
|
these.setBleFormData();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1125,7 +1126,9 @@
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
showLoading(this, {
|
||||||
|
text: "请稍候..."
|
||||||
|
});
|
||||||
let f = this.getDevice();
|
let f = this.getDevice();
|
||||||
if (!f) {
|
if (!f) {
|
||||||
these.showPop({
|
these.showPop({
|
||||||
@ -1136,9 +1139,7 @@
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showLoading(this, {
|
|
||||||
text: "请稍候..."
|
|
||||||
});
|
|
||||||
var sendText = function() {
|
var sendText = function() {
|
||||||
|
|
||||||
|
|
||||||
@ -1664,9 +1665,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.addIco{
|
|
||||||
|
.addIco {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 360rpx;
|
height: 360rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user