diff --git a/androidPrivacy.json b/androidPrivacy.json
index dc53b4f..5b1694d 100644
--- a/androidPrivacy.json
+++ b/androidPrivacy.json
@@ -1,38 +1,38 @@
{
- "version": "2",
- "prompt": "template",
- "title": "服务协议和隐私政策",
- "message": " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
- "buttonAccept": "同意并接受",
- "buttonRefuse": "暂不同意",
- "hrefLoader": "system|default",
- "backToExit":"false",
- "second": {
- "title": "确认提示",
- "message": " 进入应用前,你需先同意《用户协议》和《隐私政策》,否则将退出应用。",
- "buttonAccept": "同意并继续",
- "buttonRefuse": "退出应用"
- },
- "disagreeMode":{
- "support": false,
- "loadNativePlugins": false,
- "visitorEntry": false,
- "showAlways": false
- },
- "styles": {
- "backgroundColor": "#ffffff",
- "borderRadius":"5px",
- "title": {
- "color": "#111"
+ "version" : "2",
+ "prompt" : "template",
+ "title" : "服务协议和隐私政策",
+ "message" : " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
+ "buttonAccept" : "同意并接受",
+ "buttonRefuse" : "暂不同意",
+ "hrefLoader" : "system|default",
+ "backToExit" : "false",
+ "second" : {
+ "title" : "确认提示",
+ "message" : " 进入应用前,你需先同意《用户协议》和《隐私政策》,否则将退出应用。",
+ "buttonAccept" : "同意并继续",
+ "buttonRefuse" : "退出应用"
},
- "buttonAccept": {
- "color": "#111"
+ "disagreeMode" : {
+ "support" : false,
+ "loadNativePlugins" : false,
+ "visitorEntry" : false,
+ "showAlways" : false
},
- "buttonRefuse": {
- "color": "#111"
- },
- "buttonVisitor": {
- "color": "#111"
+ "styles" : {
+ "backgroundColor" : "#ffffff",
+ "borderRadius" : "5px",
+ "title" : {
+ "color" : "#111"
+ },
+ "buttonAccept" : {
+ "color" : "#111"
+ },
+ "buttonRefuse" : {
+ "color" : "#111"
+ },
+ "buttonVisitor" : {
+ "color" : "#111"
+ }
}
- }
}
diff --git a/common/api/accessBoot.js b/common/api/accessBoot.js
new file mode 100644
index 0000000..17e4bb4
--- /dev/null
+++ b/common/api/accessBoot.js
@@ -0,0 +1,13 @@
+import request from '../js/request'
+import config from '../js/config'
+
+export function manualAccess(params) {
+ return request({
+ url: '/access-boot/device/manualAccess',
+ method: 'post',
+ params: params,
+ header: {
+ 'Content-Type': 'application/json',
+ },
+ })
+}
\ No newline at end of file
diff --git a/common/js/request.js b/common/js/request.js
index a834e37..25eebd7 100644
--- a/common/js/request.js
+++ b/common/js/request.js
@@ -27,7 +27,7 @@ export default (options = {}) => {
}
uni.request({
url,
- timeout: 5000,
+ timeout: 1000 *10,
data: {
...options.data,
},
diff --git a/common/js/util.js b/common/js/util.js
index f0dfe09..b376076 100644
--- a/common/js/util.js
+++ b/common/js/util.js
@@ -132,7 +132,7 @@ const getUserLocation = (call) => {
success: function (address) {
call(address)
},
- fail: (err) => {
+ fail: (err) => {
uni.showModal({
title: '提示',
content: '定位失败,请打开定位权限',
diff --git a/components/Cn-device-card/Cn-device-card.vue b/components/Cn-device-card/Cn-device-card.vue
index b719f19..c82d967 100644
--- a/components/Cn-device-card/Cn-device-card.vue
+++ b/components/Cn-device-card/Cn-device-card.vue
@@ -54,6 +54,7 @@ export default {
return str
},
jump() {
+ console.log(12321,this.device);
uni.navigateTo({
url:
'/pages/device/APF/detail?id=' +
@@ -61,7 +62,7 @@ export default {
'&isPrimaryUser=' +
this.device.isPrimaryUser +
'&process=' +
- this.device.process,
+ this.device.process + '&ndid=' + this.device.ndid,
})
},
},
diff --git a/manifest.json b/manifest.json
index 4c33f11..277b277 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "灿能物联",
"appid" : "__UNI__88BC25B",
"description" : "",
- "versionName" : "1.4.5",
- "versionCode" : 145,
+ "versionName" : "1.5.9",
+ "versionCode" : 159,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
@@ -54,7 +54,8 @@
"",
""
],
- "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ]
+ "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ],
+ "targetSdkVersion" : 30
},
/* ios打包配置 */
"ios" : {
@@ -114,6 +115,9 @@
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
+ },
+ "splashscreen" : {
+ "useOriginalMsgbox" : true
}
}
},
@@ -139,8 +143,8 @@
"proxy" : {
"/api" : {
"https" : true,
- "target" : "https://pqmcn.com:8092/api",
- // "target" : "http://192.168.1.115:10215",
+ // "target" : "https://pqmcn.com:8092/api",
+ "target" : "http://192.168.1.126:10215",
"changOrigin" : true,
"pathRewrite" : {
"/api" : ""
diff --git a/pages.json b/pages.json
index f125ae0..e7c0827 100644
--- a/pages.json
+++ b/pages.json
@@ -33,7 +33,7 @@
{
"path": "pages/mine/policy",
"style": {
- "navigationBarTitleText": "个人信息保护政策"
+ "navigationBarTitleText": "隐私政策"
}
},
{
@@ -81,7 +81,7 @@
{
"path": "pages/mine/setupMessage",
"style": {
- "navigationBarTitleText": "消息配置"
+ "navigationBarTitleText": "个性化推荐"
}
},
{
@@ -129,7 +129,8 @@
{
"path": "pages/device/APF/detail",
"style": {
- "navigationBarTitleText": "APF 设备名称 + 型号"
+ "navigationBarTitleText": "APF 设备名称 + 型号",
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/device/APF/comp/IO.vue b/pages/device/APF/comp/IO.vue
index a81cfd3..3ebbd2d 100644
--- a/pages/device/APF/comp/IO.vue
+++ b/pages/device/APF/comp/IO.vue
@@ -1,80 +1,92 @@
-
-
- 温度
-
-
- {{ item[0].clDid }}
- (°C)
-
- {{ item[1].clDid }}
- (°C)
-
- {{ item[2].clDid }}
- (°C)
-
- {{ item[3].clDid }}
- (°C)
-
- {{ item[0].clDid ? item[0].value || '-' : '' }}
- {{ item[1].clDid ? item[1].value || '-' : '' }}
- {{ item[2].clDid ? item[2].value || '-' : '' }}
- {{ item[3].clDid ? item[3].value || '-' : '' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 温度
+
+
+ {{ item[0].clDid }}
+ (°C)
+
+ {{ item[1].clDid }}
+ (°C)
+
+ {{ item[2].clDid }}
+ (°C)
+
+ {{ item[3].clDid }}
+ (°C)
+
+ {{ item[0].clDid ? Math.round(item[0].value) || '-' : '' }}
+ {{ item[1].clDid ? Math.round(item[1].value) || '-' : '' }}
+ {{ item[2].clDid ? Math.round(item[2].value) || '-' : '' }}
+ {{ item[3].clDid ? Math.round(item[3].value) || '-' : '' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/pages/device/APF/comp/basic.vue b/pages/device/APF/comp/basic.vue
index 91b3ff3..c0f38a4 100644
--- a/pages/device/APF/comp/basic.vue
+++ b/pages/device/APF/comp/basic.vue
@@ -8,8 +8,8 @@
畸变率(%)
{{ item.phase }}
- {{ item['Apf_RmsI_Sys(A)'] || '-' }}
- {{ item['Apf_ThdA_Sys(%)'] || '-' }}
+ {{ item['Apf_RmsI_Sys(A)'] }}
+ {{ item['Apf_ThdA_Sys(%)'] }}
@@ -22,9 +22,9 @@
畸变率(%)
{{ item.phase }}
- {{ item['Apf_PhV_Sys(V)'] || '-' }}
- {{ item['Apf_Freq(Hz)'] || '-' }}
- {{ item['Apf_ThdU_Sys(%)'] || '-' }}
+ {{ item['Apf_PhV_Sys(V)'] }}
+ {{ item['Apf_Freq(Hz)'] }}
+ {{ item['Apf_ThdU_Sys(%)'] }}
@@ -36,8 +36,8 @@
畸变率(%)
{{ item.phase }}
- {{ item['Apf_RmsI_Load(A)'] || '-' }}
- {{ item['Apf_ThdA_Load(%)'] || '-' }}
+ {{ item['Apf_RmsI_Load(A)'] }}
+ {{ item['Apf_ThdA_Load(%)'] }}
@@ -49,8 +49,8 @@
负载率(%)
{{ item.phase }}
- {{ item['Apf_RmsI_TolOut(A)'] || '-' }}
- {{ item['load_Rate'] || '-' }}
+ {{ item['Apf_RmsI_TolOut(A)'] }}
+ {{ item['load_Rate'] }}
@@ -129,11 +129,11 @@ export default {
return item2.phase === item.phase
})
if (index > -1) {
- this.renderData[key][index][item.statisticalName] = item.statisticalData || '-'
+ this.renderData[key][index][item.statisticalName] = item.statisticalData //
} else {
this.renderData[key].push({
phase: item.phase,
- [item.statisticalName]: item.statisticalData || '-',
+ [item.statisticalName]: item.statisticalData //,
})
}
})
diff --git a/pages/device/APF/comp/power.vue b/pages/device/APF/comp/power.vue
index fd46d2a..4ea8ea0 100644
--- a/pages/device/APF/comp/power.vue
+++ b/pages/device/APF/comp/power.vue
@@ -1,119 +1,117 @@
-
-
- 电网侧
-
- 名称
- 有功功率(kw)
- 无功功率(kVar)
- 视在功率(kVA)
- 功率因数
-
- {{ item.phase }}
- {{ item['Apf_P_Sys(W)'] || '-' }}
- {{ item['Apf_Q_Sys(Var)'] || '-' }}
- {{ item['Apf_S_Sys(VA)'] || '-' }}
- {{ item['Apf_PF_Sys(null)'] || '-' }}
-
-
-
-
- 负载侧
-
- 名称
- 有功功率(kw)
- 无功功率(kVar)
- 视在功率(kVA)
- 功率因数
-
- {{ item.phase }}
- {{ item['Apf_P_Load(W)'] || '-' }}
- {{ item['Apf_Q_Load(Var)'] || '-' }}
- {{ item['Apf_S_Load(VA)'] || '-' }}
- {{ item['Apf_PF_Load(null)'] || '-' }}
-
-
-
-
+
+
+ 电网侧
+
+ 名称
+ 有功功率(kw)
+ 无功功率(kVar)
+ 视在功率(kVA)
+ 功率因数
+
+ {{ item.phase }}
+ {{ (item['Apf_P_Sys(W)'] / 1000).toFixed(4) || '-' }}
+ {{ (item['Apf_Q_Sys(Var)'] / 1000).toFixed(4) || '-' }}
+ {{ (item['Apf_S_Sys(VA)'] / 1000).toFixed(4) || '-' }}
+ {{ item['Apf_PF_Sys(null)'] || '-' }}
+
+
+
+
+ 负载侧
+
+ 名称
+ 有功功率(kw)
+ 无功功率(kVar)
+ 视在功率(kVA)
+ 功率因数
+
+ {{ item.phase }}
+ {{ (item['Apf_P_Load(W)'] / 1000).toFixed(4) || '-' }}
+ {{ (item['Apf_Q_Load(Var)'] / 1000).toFixed(4) || '-' }}
+ {{ (item['Apf_S_Load(VA)'] / 1000).toFixed(4) || '-' }}
+ {{ item['Apf_PF_Load(null)'] || '-' }}
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/device/DVR/detail.vue b/pages/device/DVR/detail.vue
index 85ba4cc..075d529 100644
--- a/pages/device/DVR/detail.vue
+++ b/pages/device/DVR/detail.vue
@@ -39,6 +39,7 @@ import ShuChu from "./comp/shuChu.vue";
import GanJieDian from "./comp/ganJieDian.vue";
import ZhuangTaiLiang from "./comp/zhuangTaiLiang.vue";
import QiTa from "./comp/qiTa.vue";
+import { manualAccess } from '@/common/api/accessBoot'
export default {
components: {
DianWang,
@@ -53,6 +54,7 @@ export default {
loading: false,
navMenuActive: 0,
navHeight: 0,
+ pageOptions:{},
navMenuList: [{
text: '电网数据'
}, {
@@ -76,6 +78,10 @@ export default {
iconPath: '/static/about.png',
text: '关于',
},
+ {
+ iconPath: '/static/access.png',
+ text: '接入',
+ },
]
}
},
@@ -110,6 +116,10 @@ export default {
uni.navigateTo({ url: '/pages/device/feedback' })
} else if (e.item.text === '用户') {
uni.navigateTo({ url: '/pages/device/user' })
+ }else if (e.item.text === '接入') {
+ manualAccess({nDid:this.pageOptions.ndid}).then((res) => {
+ this.$util.toast(res.message)
+ })
}
this.$refs.fab.close()
},
@@ -164,6 +174,7 @@ export default {
}
},
onLoad (options) {
+ this.pageOptions = options
this.init()
},
diff --git a/pages/device/list.vue b/pages/device/list.vue
index 0828068..61f9163 100644
--- a/pages/device/list.vue
+++ b/pages/device/list.vue
@@ -368,11 +368,12 @@ export default {
this.navMenuActive = index
},
jump(item) {
+ console.log(12321,item);
uni.navigateTo({
- url: '/pages/device/APF/detail?id=' + item.equipmentId + '&isPrimaryUser=' + item.isPrimaryUser,
+ url: '/pages/device/APF/detail?id=' + item.equipmentId + '&isPrimaryUser=' + item.isPrimaryUser + '&ndid=' + item.ndid,
})
},
},
}
-
+
\ No newline at end of file
diff --git a/pages/device/new.vue b/pages/device/new.vue
index 8593bd6..3c3e97e 100644
--- a/pages/device/new.vue
+++ b/pages/device/new.vue
@@ -1,561 +1,575 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 发起注册
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择拓扑图
-
-
-
-
-
-
- {{ item2.name }}
- 请选择监测点
-
-
-
-
-
-
-
-
- 提交
-
-
-
-
-
- 暂无拓扑图
-
-
- 取消
- 确定
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择拓扑图
+
+
+
+
+
+
+ {{ item2.name }}
+ 请选择监测点
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+ 暂无拓扑图
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
+
-
-
-
- {{ point.alias || point.name }}
-
-
-
-
-
-
- 请拖动图中的文字选择监测点位置
-
-
-
-
-
- 取消
- 确定
-
-
-
-
-
-
+
+
+
+ {{ point.alias || point.name }}
+
+
+
+
+
+
+ 请拖动图中的文字选择监测点位置
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
diff --git a/pages/device/transfer.vue b/pages/device/transfer.vue
index 2ab7cf8..0617867 100644
--- a/pages/device/transfer.vue
+++ b/pages/device/transfer.vue
@@ -1,29 +1,47 @@
-
-
-
-
-
-
-
- 请让接收人员扫码接收
-
-
-
+
+
+
+
+
+
+
+
+ 请让接收人员扫码接收
+
+
+
+
-
-
+
+
+
+
+
diff --git a/pages/index/comp/indexYouKe.vue b/pages/index/comp/indexYouKe.vue
index 74cd5a3..f474932 100644
--- a/pages/index/comp/indexYouKe.vue
+++ b/pages/index/comp/indexYouKe.vue
@@ -42,6 +42,7 @@
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d1e9cd7..6d8a5d7 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -30,6 +30,7 @@
+
设备列表
@@ -150,6 +151,7 @@ export default {
return
}
getDevCount(this.select.engineeringId).then((res) => {
+ // console.log(`12312`,res)
// Object.assign(this.devCount, res.data)
this.devCount = res.data
this.devCount.currentOffLineDevs.forEach((item) => {
@@ -213,7 +215,7 @@ export default {
// #endif
}, 1000)
}
- this.timer = setInterval(this.getDevCount, 3000) // 定时请求
+ this.timer = setInterval(this.getDevCount, 1000 *60) // 定时请求
this.store = this.DataSource('/cs-device-boot/EquipmentDelivery/queryEquipmentByProject')
// #ifdef APP-PLUS
setTimeout(() => {
@@ -230,6 +232,7 @@ export default {
},
onShow() {
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
+
let access_token = uni.getStorageSync(this.$cacheKey.access_token)
console.log(access_token)
if (!access_token) {
diff --git a/pages/index/mine.vue b/pages/index/mine.vue
index 62fcb89..b561790 100644
--- a/pages/index/mine.vue
+++ b/pages/index/mine.vue
@@ -1,64 +1,64 @@
-
-
-
-
-
- 角色升级
-
-
-
-
-
-
- 扫一扫
-
-
-
-
- 工程管理
-
-
+
+
+ 扫一扫
+
+
+
+
+ 工程管理
+
+
-
-
- 项目管理
-
-
-
-
- 反馈列表
-
-
-
-
-
-
- 消息配置
-
-
-
-
- 关注工程配置
-
-
-
-
- 调试内容配置
-
-
-
-
- 设置
-
-
-
-
-
-
-
+
+
+ 消息配置
+
+
+
+
+ 关注工程配置
+
+
+
+
+ 调试内容配置
+
+
+
+
+ 设置
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/mine/about.vue b/pages/mine/about.vue
index 3b748d2..ad9d05c 100644
--- a/pages/mine/about.vue
+++ b/pages/mine/about.vue
@@ -4,7 +4,7 @@
灿能物联
- Version 1.0.3
+ Version 1.1.1
diff --git a/pages/mine/setup.vue b/pages/mine/setup.vue
index 698d16d..ff57a13 100644
--- a/pages/mine/setup.vue
+++ b/pages/mine/setup.vue
@@ -22,7 +22,7 @@
- 个人信息保护政策
+ 隐私政策
diff --git a/pages/user/forget.vue b/pages/user/forget.vue
index fc0dfc1..5df800c 100644
--- a/pages/user/forget.vue
+++ b/pages/user/forget.vue
@@ -13,7 +13,12 @@
-
+
点击提交即表示同意
《用户协议》
- 《个人信息保护政策》
+ 《隐私政策》
-->
@@ -206,7 +211,7 @@ export default {
}
.login-box-input-btn {
- padding:0 40rpx;
+ padding: 0 40rpx;
margin-left: 40rpx;
background: $uni-theme-color;
color: #fff;
diff --git a/pages/user/head.vue b/pages/user/head.vue
index ef12554..831dbfa 100644
--- a/pages/user/head.vue
+++ b/pages/user/head.vue
@@ -1,16 +1,29 @@
-
-
-
-
-
-
- 从相册选一张
- 拍一张照片
+
+
+
+
+
+
+
+ 从相册选一张
+ 拍一张照片
+
-
-
+
+
+
+
+