liuwei 5 giorni fa
parent
commit
329afde896
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      common/bluetooth.js
  2. 1 1
      mixin/index.js

+ 1 - 1
common/bluetooth.js

@@ -434,7 +434,7 @@ function alterConnect(device, deviceId, callback = () => {}, fail = () => {}) {
     }
 	console.log("xxxx2")
 	console.log(deviceId)
-	  var data = bluetoothDeviceConfig(device).alterConnect(device, deviceId);
+	var data = bluetoothDeviceConfig(device).alterConnect(device, deviceId);
 	setTimeout(()=>{
 		writeData(device, deviceId, data, callback, fail);
 	},3000)

+ 1 - 1
mixin/index.js

@@ -88,7 +88,7 @@ export default {
 				// 判断车辆是否在线状态 true 在线调用接口 不在线提示连接蓝牙
 				if (this.carOnline) {
 					if (this.cmdType == 'turnOnOrOff') {
-						const switchType = (this.contrilList.find(item => item.isTurnOn).isTurnOn == 1) ? 0 : 1
+						const switchType = this.contrilList.find(item => item.isTurnOn).isTurnOn
 						const pData = {
 							car_sn: car_info.car_sn,
 							switch: switchType