From 127adcd5248fbe496cdcf2afcf5e2859efd96da8 Mon Sep 17 00:00:00 2001 From: guanj Date: Wed, 13 Aug 2025 20:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/config.js | 46 +++--- common/js/mqtt.js | 28 ++-- manifest.json | 8 +- pages/mine/about.vue | 100 ++++++------- pages/mine/setup.vue | 348 +++++++++++++++++++++---------------------- 5 files changed, 265 insertions(+), 265 deletions(-) diff --git a/common/js/config.js b/common/js/config.js index 93daeaf..d284685 100644 --- a/common/js/config.js +++ b/common/js/config.js @@ -1,23 +1,23 @@ -const debug = true // true 是连地服务端本地,false 是连接线上 - -const development = { - domain: 'http://192.168.1.62:10215', -} - -const production = { - domain: 'https://pqmcn.com:8092/api', -} - -const config = debug ? development : production - -// #ifdef H5 -if (process.env.NODE_ENV === 'development') { - config.domain = '/api' -} else { - config.domain = window.location.origin -} -// #endif - -config.static = config.domain + '/system-boot/file/download?filePath=' - -export default config +const debug = false // true 是连地服务端本地,false 是连接线上 + +const development = { + domain: 'http://192.168.1.62:10215', +} + +const production = { + domain: 'https://pqmcn.com:8092/api', +} + +const config = debug ? development : production + +// #ifdef H5 +if (process.env.NODE_ENV === 'development') { + config.domain = '/api' +} else { + config.domain = window.location.origin +} +// #endif + +config.static = config.domain + '/system-boot/file/download?filePath=' + +export default config diff --git a/common/js/mqtt.js b/common/js/mqtt.js index f2b0376..69d7664 100644 --- a/common/js/mqtt.js +++ b/common/js/mqtt.js @@ -1,14 +1,14 @@ -// export const MQTT_IP = 'pqmcn.com:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt -export const MQTT_IP = '192.168.1.24:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt - -const MQTT_USERNAME = 't_user'//mqtt用户名 -const MQTT_PASSWORD = 'njcnpqs'//密码 - -export const MQTT_OPTIONS = { - connectTimeout: 5000, - clientId: '', - username: MQTT_USERNAME, - password: MQTT_PASSWORD, - clean: false, - Qos: 1, -} +export const MQTT_IP = 'pqmcn.com:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt +// export const MQTT_IP = '192.168.1.24:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt + +const MQTT_USERNAME = 't_user'//mqtt用户名 +const MQTT_PASSWORD = 'njcnpqs'//密码 + +export const MQTT_OPTIONS = { + connectTimeout: 5000, + clientId: '', + username: MQTT_USERNAME, + password: MQTT_PASSWORD, + clean: false, + Qos: 1, +} diff --git a/manifest.json b/manifest.json index ae15d6e..f91453f 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "灿能物联", "appid" : "__UNI__88BC25B", "description" : "", - "versionName" : "1.6.6", - "versionCode" : 166, + "versionName" : "1.6.7", + "versionCode" : 167, "transformPx" : false, "sassImplementationName" : "node-sass", /* 5+App特有相关 */ @@ -144,8 +144,8 @@ "proxy" : { "/api" : { "https" : true, - // "target" : "https://pqmcn.com:8092/api", - "target" : "http://192.168.1.62:10215", + "target" : "https://pqmcn.com:8092/api", + // "target" : "http://192.168.1.62:10215", "changOrigin" : true, "pathRewrite" : { "/api" : "" diff --git a/pages/mine/about.vue b/pages/mine/about.vue index 593c454..250f10b 100644 --- a/pages/mine/about.vue +++ b/pages/mine/about.vue @@ -1,50 +1,50 @@ - - - + + + diff --git a/pages/mine/setup.vue b/pages/mine/setup.vue index 74922c3..cd5ddab 100644 --- a/pages/mine/setup.vue +++ b/pages/mine/setup.vue @@ -1,174 +1,174 @@ - - - - - + + + + +