diff --git a/api/6170/deviceControl.js b/api/6170/deviceControl.js
new file mode 100644
index 0000000..44b4601
--- /dev/null
+++ b/api/6170/deviceControl.js
@@ -0,0 +1,31 @@
+// 获取设备详细信息
+import request from '@/utils/request'
+export function deviceDetail(id) {
+ return request({
+ url: `/app/device/${id}`,
+ method: 'get',
+ })
+}
+// 获取设备分享详细信息
+export function deviceShareId(id) {
+ return request({
+ url: `/app/deviceShare/${id}`,
+ method: 'get',
+ })
+}
+// 人员信息登记
+export function registerPersonInfo(data) {
+ return request({
+ url: `/app/device/registerPersonInfo`,
+ method: 'post',
+ data: data
+ })
+}
+// 发送信息
+export function deviceSendMessage(data) {
+ return request({
+ url: `/app/device/sendMessage`,
+ method: 'post',
+ data: data
+ })
+}
diff --git a/api/6170/share.js b/api/6170/share.js
index 79be8e9..a21eea6 100644
--- a/api/6170/share.js
+++ b/api/6170/share.js
@@ -7,13 +7,7 @@ export function deviceShareAdd(data) {
data: data
})
}
-// 获取设备分享详细信息
-export function deviceShareId(id) {
- return request({
- url: `/app/deviceShare/${id}`,
- method: 'get',
- })
-}
+
// 分享短信验证码
export function deviceShareCode(params) {
return request({
@@ -23,7 +17,7 @@ export function deviceShareCode(params) {
})
}
-//设备管理列表
+//设备管理列表 我的分享
export function deviceShareList(params) {
return request({
url: '/app/deviceShare/deviceShareList',
@@ -31,6 +25,14 @@ export function deviceShareList(params) {
data: params
})
}
+// 他人分享
+export function otherDeviceShareList(params) {
+ return request({
+ url: '/app/deviceShare/otherDeviceShareList',
+ method: 'get',
+ data: params
+ })
+}
// 移除设备管理
export function deviceShareDelete(ids) {
return request({
diff --git a/pages.json b/pages.json
index 0cb085b..16a4efc 100644
--- a/pages.json
+++ b/pages.json
@@ -127,6 +127,19 @@
"navigationBarTitleText": "地图"
}
},
+ {
+ "path": "pages/common/allType/index",
+ "style": {
+ "navigationBarTitleText": "所有类型"
+ }
+ },
+ {
+ "path": "pages/6170/allShare/index",
+ "style": {
+ "navigationBarTitleText": "所有分享"
+ }
+ },
+
{
"path": "pages/6170/share/index",
"style": {
diff --git a/pages/6170/allShare/index.vue b/pages/6170/allShare/index.vue
new file mode 100644
index 0000000..fe3ce26
--- /dev/null
+++ b/pages/6170/allShare/index.vue
@@ -0,0 +1,519 @@
+
+
+
+
+
+
+ {{tab.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue
index 9db8c79..cdf0b3f 100644
--- a/pages/6170/deviceControl/index.vue
+++ b/pages/6170/deviceControl/index.vue
@@ -1,214 +1,221 @@
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- 90%
- 电量
-
+
+
+
+
+
+
+
-
-
-
- 1小时
- 续航时间
-
-
-
-
-
-
-
-
-
-
-
- IMEI号
- 123456
-
-
- 设备状态
- 运行中
-
-
- 定位信息
-
- 114.72 30.28
- 深圳市龙华区富源晟
-
-
-
-
-
-
- 灯光亮度
- {{ sliderValue }}%
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
- 灯光模式
- {{ currentMainMode }}
+ 90%
+ 电量
+
+
+
+
+
+ 1小时
+ 续航时间
-
-
-
-
- 激光模式
-
+
+
+
+
+
+
+
+ IMEI号
+ {{deviceInfo.deviceImei}}
+
+
+ 设备状态
+ 运行中
+
+
+ 定位信息
+
+ 114.72 30.28
+ 深圳市龙华区富源晟
+
+
+
+
+
+
+ 灯光亮度
+ {{ sliderValue }}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 灯光模式
+ {{ currentMainMode }}
+
-
-
-
-
-
- 开机画面
- 上传
+
+
+
+
+ 激光模式
+
+
+
+
+
+
+
+
+ 开机画面
+ 上传
+
-
-
-
-
- 人员信息登记
-
-
-
+
+
+
+ 人员信息登记
+
+
+
+
-
-
-
-
- 单位:
-
-
-
- 姓名:
-
-
-
- 职位:
-
-
-
- ID:
-
-
-
-
-
-
-
- 发送信息
-
-
-
-
-
-
-
-
- 产品信息
-
-
-
- 产品参数
-
-
-
- 操作说明
-
-
-
- 操作视频
-
-
-
-
-
-
-
@@ -127,6 +141,7 @@
tabs: [],
activeTab: 0,
showTooltip: false,
+ showshare: false,
Options: [{
text: '重命名',
style: {
@@ -158,6 +173,17 @@
action: 'bluetooth'
}
],
+ shareItems: [{
+ text: '所有类型',
+ icon: '/static/images/type.png',
+ action: 'type'
+ },
+ {
+ text: '所有分享',
+ icon: '/static/images/share.png',
+ action: 'share'
+ }
+ ],
page: 1, // 当前页码
size: 10, // 每页条数
total: 0, // 总数据量
@@ -168,6 +194,26 @@
}
},
methods: {
+ // 更多
+ allMore(){
+ this.showshare = !this.showshare;
+ },
+ // 所有分享,所有类型
+ handleshareClick(item){
+ this.showshare = false; // 关闭弹窗
+ switch (item.action) {
+ case 'type':
+ uni.navigateTo({
+ url: '/pages/common/allType/index'
+ });
+ break;
+ case 'share':
+ uni.navigateTo({
+ url: "/pages/6170/allShare/index"
+ })
+ break;
+ }
+ },
// 点击弹框外的区域关闭
closePopup(type) {
if (type === 'delete') {
@@ -208,7 +254,6 @@
const deviceType = tab.id === '' ? undefined : tab.id;
this.getData(deviceType);
},
-
// 获取设备列表
getData(deviceType = '') {
if (this.loading || this.finished) return;
@@ -243,10 +288,11 @@
onScrollToLower() {
this.getData();
},
+ // 添加扫一三图标
scan() {
this.showTooltip = !this.showTooltip;
},
-
+ // 添加设备,扫一扫,蓝牙
handleMenuClick(item) {
this.showTooltip = false; // 关闭弹窗
switch (item.action) {
@@ -256,15 +302,6 @@
});
break;
case 'bluetooth':
- // uni.navigateTo({
- // url: 'pages/common/addBLE/AddDevice',
- // success:(res)=>{
- // res.eventChannel.emit('key', { data: 'data from starter page' })
- // },fail: (ex) => {
- // console.log("跳转失败了",JSON.stringify(ex));
- // }
- // });
-
uni.navigateTo({
url: "/pages/common/addBLE/addEquip"
})
@@ -391,7 +428,8 @@
success: (res) => {
// 页面跳转成功后的回调函数
res.eventChannel.emit('deviceControl', {
- data: item
+ data: item,
+ apiType: 'listA' // 自定义标识,详情哪里根据这个参数不同信息
});
}
})
@@ -454,6 +492,7 @@
white-space: nowrap;
/* 禁止换行 */
overflow: hidden;
+ position: relative;
}
@@ -491,6 +530,21 @@
font-size: 28rpx;
}
+ .uniui-more {
+ position: relative;
+ width: 100%;
+ }
+
+ .more {
+ width: 40rpx;
+ height: 8rpx;
+ /* position: absolute; */
+ /* right: 0rpx;
+ z-index: 100; */
+ float: right;
+ top: -95rpx
+ }
+
.gprs {
width: 28rpx;
height: 35rpx;
@@ -634,10 +688,11 @@
padding: 20rpx;
font-size: 22rpx;
}
- .noDATA{
+
+ .noDATA {
text-align: center;
color: rgba(255, 255, 255, 0.87);
- transform: translate(-0%,100%);
+ transform: translate(-0%, 100%);
}
/* 遮罩层 */
@@ -757,6 +812,13 @@
/* 根据导航栏高度调整 */
z-index: 9999;
}
+ .tooltip-share{
+ position: fixed;
+ right: 18rpx;
+ top: 230rpx;
+ /* 根据导航栏高度调整 */
+ z-index: 9999;
+ }
.tooltip-arrow {
width: 0;
diff --git a/pages/common/send/index.vue b/pages/common/send/index.vue
index 01e9ad1..ada8c38 100644
--- a/pages/common/send/index.vue
+++ b/pages/common/send/index.vue
@@ -34,12 +34,29 @@
编辑信息
-
+
-
+
+
+
+
+
@@ -47,10 +64,15 @@
import {
deviceInfo,
} from '@/api/common/index.js'
+ import {
+ deviceSendMessage
+ } from '@/api/6170/deviceControl.js'
export default {
data() {
return {
deviceList: [],
+ messageToSend: '', //发送信息
+ personalShow: false
}
},
methods: {
@@ -58,14 +80,6 @@
this.deviceList[index].checked = !this.deviceList[index].checked
this.$forceUpdate()
},
- sendMessage() {
- const selectedDevices = this.deviceList.filter(item => item.checked)
- console.log('选中的设备:', selectedDevices)
- uni.showToast({
- title: `已发送到${selectedDevices.length}台设备`,
- icon: 'success'
- })
- },
// 获取设备列表
getData(deviceType) {
this.loading = true;
@@ -88,6 +102,36 @@
this.loading = false;
});
},
+ // 发送文本消息
+ sendTextMessage() {
+ const selectedDevices = this.deviceList.filter(item => item.checked)
+ const deviceIds = selectedDevices.map(item => item.id);
+ if (!this.messageToSend) {
+ uni.showToast({
+ title: '请输入要发送的内容',
+ icon: 'none'
+ });
+ return;
+ }
+ let data = {
+ sendMsg: this.messageToSend,
+ deviceIds: deviceIds
+ }
+ deviceSendMessage(data).then((res) => {
+ if (res.code == 200) {
+ this.personalShow = true
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: 'none'
+ });
+ }
+ })
+ },
+ handleBtn(){
+ this.personalShow = false
+ uni.navigateBack()
+ }
},
onLoad(options) {
const eventChannel = this.getOpenerEventChannel();
@@ -296,4 +340,63 @@
width: 90%;
margin-left: 10rpx;
}
+
+ /* 遮罩层 */
+ .agreement-mask {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.5);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ z-index: 9999;
+ }
+
+ .popup-Title {
+ color: rgba(255, 255, 255, 0.86);
+ text-align: center;
+ padding: 30rpx 0rpx;
+ }
+
+ .popup-buttons {
+ display: flex;
+ text-align: center;
+ }
+
+ /* 弹窗主体 */
+ .agreement-popup {
+ width: 60%;
+ background-color: rgb(42, 42, 42);
+ border-radius: 40rpx;
+ padding: 30rpx;
+ text-align: center;
+ border: 1px solid rgba(255, 200, 78, 0.3);
+ }
+
+ .svg {
+ width: 58rpx;
+ height: 62rpx;
+ }
+
+ /* 通用按钮样式 */
+ .btn {
+ height: 60rpx;
+ line-height: 60rpx;
+ border-radius: 40rpx;
+ font-size: 24rpx;
+ margin: 10rpx auto;
+ text-align: center;
+
+ }
+
+ /* 同意按钮 */
+ .agreeBtn {
+ background: rgba(187, 230, 0, 1);
+ color: #232323;
+ border: none;
+ width: 170rpx !important;
+ }
\ No newline at end of file
diff --git a/static/images/delel.png b/static/images/delel.png
new file mode 100644
index 0000000..d93d845
Binary files /dev/null and b/static/images/delel.png differ
diff --git a/static/images/more.png b/static/images/more.png
new file mode 100644
index 0000000..8c11ae0
Binary files /dev/null and b/static/images/more.png differ
diff --git a/static/images/sendSucc.png b/static/images/sendSucc.png
new file mode 100644
index 0000000..a9cba80
Binary files /dev/null and b/static/images/sendSucc.png differ
diff --git a/static/images/share.png b/static/images/share.png
new file mode 100644
index 0000000..508adef
Binary files /dev/null and b/static/images/share.png differ
diff --git a/static/images/type.png b/static/images/type.png
new file mode 100644
index 0000000..8f5b8c9
Binary files /dev/null and b/static/images/type.png differ
diff --git a/unpackage/dist/dev/app-plus/app-config-service.js b/unpackage/dist/dev/app-plus/app-config-service.js
index 147a0c5..a23b0f2 100644
--- a/unpackage/dist/dev/app-plus/app-config-service.js
+++ b/unpackage/dist/dev/app-plus/app-config-service.js
@@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
-var __uniConfig = {"pages":["pages/common/login/index","pages/common/index/index","pages/common/user/index","pages/common/scan/scan","pages/common/qrcode/qrcode","pages/common/send/index","pages/common/userAgreement/index","pages/common/privacyAgreement/index","pages/common/aboutUs/index","pages/6170/deviceControl/index","pages/common/operationVideo/index","pages/common/addvideo/index","pages/common/operatingInstruct/index","pages/common/productDes/index","pages/common/addBLE/addEquip","pages/common/addBLE/LinkBle","pages/6155/deviceDetail","pages/6155/ImgCrop","pages/common/map/index"],"window":{"navigationBarTextStyle":"white","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#121212","backgroundColor":"#121212"},"tabBar":{"color":"#fff","selectedColor":"#BBE600","backgroundColor":"#202020","list":[{"pagePath":"pages/common/index/index","text":"我的设备","iconPath":"/static/tabs/device.png","selectedIconPath":"/static/tabs/device-HL.png"},{"pagePath":"pages/common/user/index","text":"我的","iconPath":"/static/tabs/my.png","selectedIconPath":"/static/tabs/my-HL.png"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"JingQuan","compilerVersion":"4.66","entryPagePath":"pages/common/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
-var __uniRoutes = [{"path":"/pages/common/login/index","meta":{"isQuit":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/user/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的"}},{"path":"/pages/common/scan/scan","meta":{},"window":{"navigationBarTitleText":"扫描"}},{"path":"/pages/common/qrcode/qrcode","meta":{},"window":{"navigationBarTitleText":"扫描到的设备"}},{"path":"/pages/common/send/index","meta":{},"window":{"navigationBarTitleText":"发送信息"}},{"path":"/pages/common/userAgreement/index","meta":{},"window":{"navigationBarTitleText":"用户协议"}},{"path":"/pages/common/privacyAgreement/index","meta":{},"window":{"navigationBarTitleText":"隐私协议"}},{"path":"/pages/common/aboutUs/index","meta":{},"window":{"navigationBarTitleText":"关于我们"}},{"path":"/pages/6170/deviceControl/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/operationVideo/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/addvideo/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/operatingInstruct/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/productDes/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/addBLE/addEquip","meta":{},"window":{"navigationBarTitleText":"添加设备"}},{"path":"/pages/common/addBLE/LinkBle","meta":{},"window":{"navigationBarTitleText":"扫描到的设备"}},{"path":"/pages/6155/deviceDetail","meta":{},"window":{"navigationBarTitleText":"HBY 6155"}},{"path":"/pages/6155/ImgCrop","meta":{},"window":{"navigationBarTitleText":"图像裁剪","navigationStyle":"custom","fullscreen":true}},{"path":"/pages/common/map/index","meta":{},"window":{"navigationBarTitleText":"地图"}}];
+var __uniConfig = {"pages":["pages/common/login/index","pages/common/index/index","pages/common/user/index","pages/common/scan/scan","pages/common/qrcode/qrcode","pages/common/send/index","pages/common/userAgreement/index","pages/common/privacyAgreement/index","pages/common/aboutUs/index","pages/6170/deviceControl/index","pages/common/operationVideo/index","pages/common/addvideo/index","pages/common/operatingInstruct/index","pages/common/productDes/index","pages/common/addBLE/addEquip","pages/common/addBLE/LinkBle","pages/6155/deviceDetail","pages/6155/ImgCrop","pages/common/map/index","pages/common/allType/index","pages/6170/allShare/index","pages/6170/share/index","pages/6170/shareDevices/index","pages/6170/shareManagement/index"],"window":{"navigationBarTextStyle":"white","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#121212","backgroundColor":"#121212"},"tabBar":{"color":"#fff","selectedColor":"#BBE600","backgroundColor":"#202020","list":[{"pagePath":"pages/common/index/index","text":"我的设备","iconPath":"/static/tabs/device.png","selectedIconPath":"/static/tabs/device-HL.png"},{"pagePath":"pages/common/user/index","text":"我的","iconPath":"/static/tabs/my.png","selectedIconPath":"/static/tabs/my-HL.png"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"JingQuan","compilerVersion":"4.64","entryPagePath":"pages/common/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
+var __uniRoutes = [{"path":"/pages/common/login/index","meta":{"isQuit":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/user/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的"}},{"path":"/pages/common/scan/scan","meta":{},"window":{"navigationBarTitleText":"扫描"}},{"path":"/pages/common/qrcode/qrcode","meta":{},"window":{"navigationBarTitleText":"扫描到的设备"}},{"path":"/pages/common/send/index","meta":{},"window":{"navigationBarTitleText":"发送信息"}},{"path":"/pages/common/userAgreement/index","meta":{},"window":{"navigationBarTitleText":"用户协议"}},{"path":"/pages/common/privacyAgreement/index","meta":{},"window":{"navigationBarTitleText":"隐私协议"}},{"path":"/pages/common/aboutUs/index","meta":{},"window":{"navigationBarTitleText":"关于我们"}},{"path":"/pages/6170/deviceControl/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/operationVideo/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/addvideo/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/operatingInstruct/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/productDes/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/common/addBLE/addEquip","meta":{},"window":{"navigationBarTitleText":"添加设备"}},{"path":"/pages/common/addBLE/LinkBle","meta":{},"window":{"navigationBarTitleText":"扫描到的设备"}},{"path":"/pages/6155/deviceDetail","meta":{},"window":{"navigationBarTitleText":"HBY 6155"}},{"path":"/pages/6155/ImgCrop","meta":{},"window":{"navigationBarTitleText":"图像裁剪","navigationStyle":"custom","fullscreen":true}},{"path":"/pages/common/map/index","meta":{},"window":{"navigationBarTitleText":"地图"}},{"path":"/pages/common/allType/index","meta":{},"window":{"navigationBarTitleText":"所有类型"}},{"path":"/pages/6170/allShare/index","meta":{},"window":{"navigationBarTitleText":"所有分享"}},{"path":"/pages/6170/share/index","meta":{},"window":{"navigationBarTitleText":"分享"}},{"path":"/pages/6170/shareDevices/index","meta":{},"window":{"navigationBarTitleText":"分享设备"}},{"path":"/pages/6170/shareManagement/index","meta":{},"window":{"navigationBarTitleText":"分享管理"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
diff --git a/unpackage/dist/dev/app-plus/manifest.json b/unpackage/dist/dev/app-plus/manifest.json
index 3231a5c..009a045 100644
--- a/unpackage/dist/dev/app-plus/manifest.json
+++ b/unpackage/dist/dev/app-plus/manifest.json
@@ -1 +1 @@
-{"@platforms":["android","iPhone","iPad"],"id":"__UNI__A21EF43","name":"JingQuan","version":{"name":"1.0.0","code":"100"},"description":"设备管控","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"Bluetooth":{},"Barcode":{},"Camera":{},"Maps":{"coordType":"gcj02"},"OAuth":{},"Geolocation":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#121212"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"splashscreen":{"useOriginalMsgbox":true,"androidStyle":"common","iosStyle":"common","android":{"hdpi":"static/images/biao.png","xhdpi":"static/images/biao.png","xxhdpi":"static/images/biao.png"}},"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"google":{"permissions":["","","","","","","","","","","","","","","","","","","","","","",""],"abiFilters":["armeabi-v7a","arm64-v8a","x86"],"minSdkVersion":21},"apple":{"appid":"uni.app.UNIA21EF43","privacyDescription":{"NSBluetoothPeripheralUsageDescription":"需要蓝牙访问权限,用于设备通信","NSBluetoothAlwaysUsageDescription":"需要蓝牙访问权限,用于设备通信"},"dSYMs":false},"plugins":{"geolocation":{"amap":{"name":"amapHG8nIFW5","__platform__":["ios","android"],"appkey_ios":"065c43f02c7b627a74ad7dd23b16bb4f","appkey_android":"d7d852dbda2b95f6f796fb9a711a9fee"}},"maps":{"amap":{"name":"amapHG8nIFW5","appkey_ios":"065c43f02c7b627a74ad7dd23b16bb4f","appkey_android":"d7d852dbda2b95f6f796fb9a711a9fee"}},"oauth":{},"push":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"safearea":{"background":"#202020","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"4.66","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#fff","selectedColor":"#BBE600","backgroundColor":"#202020","list":[{"pagePath":"pages/common/index/index","text":"我的设备","iconPath":"/static/tabs/device.png","selectedIconPath":"/static/tabs/device-HL.png"},{"pagePath":"pages/common/user/index","text":"我的","iconPath":"/static/tabs/my.png","selectedIconPath":"/static/tabs/my-HL.png"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"},"locale":"auto"}
\ No newline at end of file
+{"@platforms":["android","iPhone","iPad"],"id":"__UNI__A21EF43","name":"JingQuan","version":{"name":"1.0.0","code":"100"},"description":"设备管控","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"Bluetooth":{},"Barcode":{},"Camera":{},"Maps":{"coordType":"gcj02"},"OAuth":{},"Geolocation":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#121212"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"splashscreen":{"useOriginalMsgbox":true,"androidStyle":"common","iosStyle":"common","android":{"hdpi":"static/images/biao.png","xhdpi":"static/images/biao.png","xxhdpi":"static/images/biao.png"}},"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"google":{"permissions":["","","","","","","","","","","","","","","","","","","","","","",""],"abiFilters":["armeabi-v7a","arm64-v8a","x86"],"minSdkVersion":21},"apple":{"appid":"uni.app.UNIA21EF43","privacyDescription":{"NSBluetoothPeripheralUsageDescription":"需要蓝牙访问权限,用于设备通信","NSBluetoothAlwaysUsageDescription":"需要蓝牙访问权限,用于设备通信"},"dSYMs":false},"plugins":{"geolocation":{"amap":{"name":"amapHG8nIFW5","__platform__":["ios","android"],"appkey_ios":"065c43f02c7b627a74ad7dd23b16bb4f","appkey_android":"d7d852dbda2b95f6f796fb9a711a9fee"}},"maps":{"amap":{"name":"amapHG8nIFW5","appkey_ios":"065c43f02c7b627a74ad7dd23b16bb4f","appkey_android":"d7d852dbda2b95f6f796fb9a711a9fee"}},"oauth":{},"push":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"safearea":{"background":"#202020","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"4.64","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#fff","selectedColor":"#BBE600","backgroundColor":"#202020","list":[{"pagePath":"pages/common/index/index","text":"我的设备","iconPath":"/static/tabs/device.png","selectedIconPath":"/static/tabs/device-HL.png"},{"pagePath":"pages/common/user/index","text":"我的","iconPath":"/static/tabs/my.png","selectedIconPath":"/static/tabs/my-HL.png"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"},"locale":"auto"}
\ No newline at end of file
diff --git a/utils/mqtt.js b/utils/mqtt.js
index 9e13d87..a95a486 100644
--- a/utils/mqtt.js
+++ b/utils/mqtt.js
@@ -149,7 +149,7 @@ class MqttClient {
}
};
- this.client.onMessageArrived = (message) => {
+ this.client.onMessageArrived = (message) => {
const topic = message.destinationName;
const payload = message.payloadString;
console.log(`收到消息, 主题: ${topic}, 内容: ${payload}`);