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 @@ - \ 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 @@ 畸变率(%) @@ -22,9 +22,9 @@ 畸变率(%) @@ -36,8 +36,8 @@ 畸变率(%) @@ -49,8 +49,8 @@ 负载率(%) @@ -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 @@ + \ 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 @@ + 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 @@ +