From e3a262450945fae8c9410c092053ad48ce60665e Mon Sep 17 00:00:00 2001 From: liub Date: Fri, 10 Oct 2025 17:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9670=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=87=8D=E5=A4=8D=E5=8F=91=E9=80=81=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98/=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9A=84=E6=96=B9=E5=BC=8F/=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E6=A3=80=E6=9F=A5=E6=9B=B4=E6=96=B0=E7=9A=84=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 2 +- manifest.json | 2 +- pages/670/HBY670.vue | 18 ++++++++++-------- pages/common/user/index.vue | 26 +++++++++++++++++++++++++- static/images/common/ver.png | Bin 0 -> 1030 bytes utils/update.js | 2 +- 6 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 static/images/common/ver.png diff --git a/config/index.js b/config/index.js index dfb50b2..93e0224 100644 --- a/config/index.js +++ b/config/index.js @@ -2,7 +2,7 @@ const config = { // 开发环境 development: { - BASE_URL: 'http://192.168.110.56:8000', + BASE_URL: 'https://www.cnxhyc.com/jq', API_PREFIX: '', // MQTT 配置 MQTT_HOST: 'www.cnxhyc.com', diff --git a/manifest.json b/manifest.json index 5e1e02f..b9a3e2f 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "星汉物联", "appid" : "__UNI__A21EF43", "description" : "设备管控", - "versionName" : "1.0.3", + "versionName" : "1.0.4", "versionCode" : "100", "transformPx" : false, /* 5+App特有相关 */ diff --git a/pages/670/HBY670.vue b/pages/670/HBY670.vue index 8bb9956..7a6dc83 100644 --- a/pages/670/HBY670.vue +++ b/pages/670/HBY670.vue @@ -591,8 +591,8 @@ that.formData.address = res.address; let personnelInfo = res.personnelInfo; if (personnelInfo) { - that.formData.company = personnelInfo.name; - that.formData.usrname = personnelInfo.unitName; + that.formData.company = personnelInfo.unitName; + that.formData.usrname = personnelInfo.name; that.formData.job = personnelInfo.position; that.formData.usrid = personnelInfo.code } @@ -2100,12 +2100,14 @@ } let requestSend = () => { + + let json = { deviceId: this.device.id, deviceImei: this.device.deviceImei ? this.device.deviceImei : this.formData.imei, - name: this.formData.company, - position: this.formData.usrname, - unitName: this.formData.job, + unitName: this.formData.company, + name: this.formData.usrname, + position: this.formData.job, code: this.formData.usrid }; api.sendUsr(json).then((res) => { @@ -2257,10 +2259,10 @@ // 发送下一个包 currentPacket++; - setTimeout(sendNextPacket, 2000); + setTimeout(sendNextPacket, 200); }).catch(err => { if (err.code == '10007') { - setTimeout(sendNextPacket,2000); + setTimeout(sendNextPacket,200); } else { requestSend(); } @@ -2282,7 +2284,7 @@ these.HoldYouHand("word transmit start", 120, f.deviceId, f.writeServiceId, f .wirteCharactId).then( () => { - setTimeout(sendText, 2000); + setTimeout(sendText, 200); }).catch((ex) => { requestSend(); // console.log("握手没有成功", ex); diff --git a/pages/common/user/index.vue b/pages/common/user/index.vue index aa5feb1..f44fb35 100644 --- a/pages/common/user/index.vue +++ b/pages/common/user/index.vue @@ -22,9 +22,14 @@ 隐私协议 + + + 版本更新 ({{appVersion}}) + + - 关于我们 ({{appVersion}}) + 关于我们 @@ -88,6 +93,25 @@ }, methods: { + //版本更新 + gotoAppStore(){ + let os=uni.getSystemInfoSync().platform; + let url='' + if(os==='ios'){ + url='https://apps.apple.com/cn/app/星汉物联/id6752555460' + } + + else if(os==='android'){ + url='https://www.pgyer.com/xhwl'; + } + + plus.runtime.openURL(url, (res) => { + uni.showToast({ + title: '打开失败', + icon: 'none' + }); + }); + }, // 取消 handleDisagree() { this.showAgreement = false, diff --git a/static/images/common/ver.png b/static/images/common/ver.png new file mode 100644 index 0000000000000000000000000000000000000000..e282b6c185b83b3dfdac7ba0de572dfedb9e7713 GIT binary patch literal 1030 zcmV+h1o``kP)}{78T^ z`DT`#vF@I`T*-jxALn8PSF6=m>~86eJL%O2 zpRk@PUQtqC{1LEctmdK2*z+4+@>X!i!m*iUY6H`QoskUa)Uwx&9(--&6JFP{RIY zxAJBCB3yHQfwzVk5q6K9v2{Pe1bab&zHvx93v!|Sdl#57!ETZBgApUV6UO zT;b}kZgqgMuDO2_^OL_-j9V`n}Tz)1H2VvGi^RYozLV8d{fY2VXn<4 zzTldLOSOP(s?8l3+WG{JK`vJFVCG~8c*%CbSk1*V7JtKAK|aC!0bgLPAoD*qK!Gc( z9ZI91Ltv`rPyVrWxYb=?uT0Hb`)G%L@;ihgY$@pz3Jk5~Eo%$=q}n_Z&MS)9r@-HM zSI{AxV7ZzlGs0v1Y?yzKW!m87ddy$o4GissA*q`0(3zn-1}$|0%#2li7!OdLq3yXt zdkZ=YOvR5+^a<6;RQ+Np@S`v%!fsKfCVp}w=1jGRg9ROiCs?lcC7lJDs`6Jhat|3_ z@1CmiZM@vh+gj&nL5B?^Y=XX{OYn&NSk;MrMW--FUTmqBbSfBF7wxHf z*l*AwywnWkU5W)xD!2 { - // console.log("res=>",res) + // console.log("res=>",res)//坑,404居然进success if (res.statusCode === 200) { res.type = '1'; resolve(res);