ソースを参照

修改了设备名称

master
web 3年前
コミット
f6fdd6d0e3

+ 2
- 2
bodyFatScale-plugin-demo/pages/BluetoothLink/BluetoothLink.js ファイルの表示

if (data15 != null) { if (data15 != null) {
console.log("广播秤"); console.log("广播秤");
device.advertisData = data15.address; device.advertisData = data15.address;
device.name = "icomon15";
device.name = "el-deviceinfo";
const foundDevices = this.data.devices const foundDevices = this.data.devices
const idx = inArray(foundDevices, 'deviceId', device.deviceId) const idx = inArray(foundDevices, 'deviceId', device.deviceId)
const data = {} const data = {}
console.log(e.currentTarget.dataset.name); console.log(e.currentTarget.dataset.name);
console.log(e.currentTarget.dataset.macaddress); console.log(e.currentTarget.dataset.macaddress);


if (e.currentTarget.dataset.name != "icomon15") {
if (e.currentTarget.dataset.name != "el-deviceinfo") {


console.log('点击连接--连接秤'); console.log('点击连接--连接秤');



+ 1
- 1
bodyFatScale-plugin-demo/pages/index/index.js ファイルの表示

var that = this; var that = this;


if (deviceInfo != null && deviceInfo != "1") { if (deviceInfo != null && deviceInfo != "1") {
if (wx.getStorageSync('deviceInfo').name == "icomon15") {
if (wx.getStorageSync('deviceInfo').name == "el-deviceinfo") {
wx.openBluetoothAdapter({ wx.openBluetoothAdapter({
success: function (res) { success: function (res) {
deviceInfo_address = wx.getStorageSync('devMacAddress') deviceInfo_address = wx.getStorageSync('devMacAddress')

+ 67
- 41
bodyFatScale-plugin-demo/project.config.json ファイルの表示

{ {
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"autoAudits": false,
"coverView": true
},
"compileType": "miniprogram",
"libVersion": "2.9.4",
"appid": "wxf6042009c5b19c52",
"projectname": "bodyFatScale-plugin-demo",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": true,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.9.4",
"appid": "wxf6042009c5b19c52",
"projectname": "bodyFatScale-plugin-demo",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"list": []
},
"conversation": {
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"list": []
}
}
} }

+ 77
- 0
project.config.json ファイルの表示

{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": true,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.23.4",
"appid": "wx738fabadc43a7183",
"projectname": "AIFit_miniApp",
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"staticServerOptions": {
"baseURL": "",
"servePath": ""
},
"isGameTourist": false,
"condition": {
"search": {
"list": []
},
"conversation": {
"list": []
},
"game": {
"list": []
},
"plugin": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": []
}
}
}

読み込み中…
キャンセル
保存