眼科检查信息系统V3.0安卓版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
25 KiB

8 months ago
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0de9":function(e,t,n){"use strict";function i(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function o(){return"string"===typeof __channelId__&&__channelId__}function a(e,t){switch(i(t)){case"Function":return"function() { [native code] }";default:return t}}function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];console[e].apply(console,n)}function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=t.shift();if(o())return t.push(t.pop().replace("at ","uni-app:///")),console[s].apply(console,t);var r=t.map((function(e){var t=Object.prototype.toString.call(e).toLowerCase();if("[object object]"===t||"[object array]"===t)try{e="---BEGIN:JSON---"+JSON.stringify(e,a)+"---END:JSON---"}catch(o){e=t}else if(null===e)e="---NULL---";else if(void 0===e)e="---UNDEFINED---";else{var n=i(e).toUpperCase();e="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+e+"---END:"+n+"---":String(e)}return e})),l="";if(r.length>1){var c=r.pop();l=r.join("---COMMA---"),0===c.indexOf(" at ")?l+=c:l+="---COMMA---"+c}else l=r[0];console[s](l)}n.r(t),n.d(t,"log",(function(){return s})),n.d(t,"default",(function(){return r}))},"16f0":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{onBluetoothDeviceFoundcustom:"",deviceId:"",stringToSend:"$D50504010300#",setInterTimeBEL:null}},onLoad:function(){},methods:{checkAndOpenGPS:function(){var t=plus.android.importClass("android.content.Context"),n=plus.android.importClass("android.location.LocationManager"),i=plus.android.runtimeMainActivity(),o=i.getSystemService(t.LOCATION_SERVICE),a=o.isProviderEnabled(n.GPS_PROVIDER),s=o.isProviderEnabled(n.NETWORK_PROVIDER);if(a||s)e("log","\u4f4d\u7f6e\u670d\u52a1\u5df2\u5f00\u542f"," at mixins/linkBEL.js:26"),this.openBluetoothAdapter();else{e("log","\u4f4d\u7f6e\u670d\u52a1\u672a\u5f00\u542f\uff0c\u8df3\u8f6c\u5230\u8bbe\u7f6e\u9875\u9762"," at mixins/linkBEL.js:29");var r=plus.android.importClass("android.content.Intent"),l=plus.android.importClass("android.provider.Settings"),c=new r(l.ACTION_LOCATION_SOURCE_SETTINGS);i.startActivity(c),plus.nativeUI.alert("\u8bf7\u624b\u52a8\u5f00\u542fGPS\uff01")}},openBluetoothAdapter:function(){var t=this;t.closeBluetoothAdapter(),e("log","\u521d\u59cb\u5316\u84dd\u7259"," at mixins/linkBEL.js:44"),uni.openBluetoothAdapter({success:function(n){e("log",n," at mixins/linkBEL.js:47");t.webViewToH5({command:"belConnectFeedback",commandType:"BEL",data:{state:0,message:"\u521d\u59cb\u5316\u6210\u529f"}}),t.startBluetoothDevicesDiscovery()},fail:function(n){e("log","\u521d\u59cb\u5316\u84dd\u7259\u5931\u8d25",n," at mixins/linkBEL.js:60");t.webViewToH5({command:"belConnectFeedback",commandType:"BEL",data:{state:0,message:"\u521d\u59cb\u5316\u5931\u8d25"}}),setTimeout((function(){t.openBluetoothAdapter()}),5e3)}})},startBluetoothDevicesDiscovery:function(){var t=this;e("log","\u5f00\u59cb\u641c\u7d22\u84dd\u7259\u8bbe\u5907"," at mixins/linkBEL.js:79");t.webViewToH5({command:"belConnectFeedback",commandType:"BEL",data:{state:0,message:"\u8bbe\u5907\u641c\u7d22\u4e2d"}}),uni.startBluetoothDevicesDiscovery({success:function(n){e("log",n," at mixins/linkBEL.js:91"),t.onBluetoothDeviceFound()}})},onBluetoothDeviceFound:function(){var t=this;this.onBluetoothDeviceFoundcustom=uni.onBluetoothDeviceFound((function(n){e("log","\u76d1\u542c\u8bbe\u5907\u53d1\u73b0",n.devices[0]," at mixins/linkBEL.js:100"),"ACP60205"===n.devices[0].name&&(e("log","hello\uff0c\u5389\u5bb3\uff0c\u627e\u5230\u5566\uff0c\u5566\u5566\u5566~~~"," at mixins/linkBEL.js:102"),uni.stopBluetoothDevicesDiscovery(),t.deviceId=n.devices[0].deviceId,t.createBLEConnection())}))},createBLEConnection:function(){var t=this;e("log","\u8fde\u63a5\u5230\u8bbe\u5907that.deviceId",t.deviceId," at mixins/linkBEL.js:113"),uni.createBLEConnection({deviceId:t.deviceId,success:function(){e("log","\u8fde\u63a5\u6210\u529f"," at mixins/linkBE