当前位置:   article > 正文

微信小程序蓝牙连接(uniapp版本)_微信小程序能获取蓝牙设备信息吗

微信小程序能获取蓝牙设备信息吗

1.安卓和ios差异
微信小程序项目是扫码获取蓝牙连接设备的信息,可以拿到设备的deviceId,但是安卓和IOS的deviceId格式不一样,最好是通过蓝牙名字查 询获取deviceId
2.代码

<template>
	<view class="index-container">
		<!-- 蓝牙连接状态 -->
		<view class="bluethoothStatus" v-if="hasEquipFlag">
			<view>
				<!-- 蓝牙连接成功 -->
				<u-image v-if="hasConnectBTFlag" :show-loading="false" width="100%" height="100%"
					src="https://img.cdn.wxzhida.cn/lingpao-ui/%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E6%88%90%E5%8A%9F.png">
				</u-image>
				<!-- 蓝牙连接失败 -->
				<u-image v-else :show-loading="false" width="100%" height="100%"
					src="https://img.cdn.wxzhida.cn/lingpao-ui/%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E5%A4%B1%E8%B4%A5%20%281%29.png">
				</u-image>
			</view>
			<view :style="{ color: hasConnectBTFlag ? '#1890FF' : '#CDCDCD' }">{{hasConnectBTFlag ? '蓝牙已连接':'蓝牙未连接'}}
			</view>
		</view>
		<!-- 蓝牙已连接 -->
		<block v-if="hasConnectBTFlag">
			<!-- 充电中显示 -->
			<view class="charging" v-if="hasChargeFlag">
				<view class="charing-animate"></view>
				<view class="charge-text">充电中</view>
			</view>
			<!-- 待机显示 其他状态-->
			<view class="errStatus" v-if="pileErrorFlag && !hasChargeFlag && !connectionFlag">
				<view class="ring">故障中</view>
			</view>
			<view class="otherStatus"
				v-if="(!pileErrorFlag && !hasChargeFlag && !connectionFlag && !waitChargeFlag) || (version == '010229' && !hasChargeFlag && !pileErrorFlag && !waitChargeFlag)">
				<view class="ring">待机中</view>
			</view>
			<view class="otherStatuse" v-if="connectionFlag && !hasChargeFlag && version !='010229'">
				<view class="ring">车枪已连接</view>
			</view>
			<view class="otherStatus" v-if="!hasChargeFlag && waitChargeFlag">
				<view class="ring">充电等待</view>
			</view>
		</block>
		<!-- 蓝牙未连接有设备-->
		<block v-if="!hasConnectBTFlag && hasEquipFlag">
			<view class="ont-connected">
				<view class="rings">蓝牙未连接</view>
			</view>
		</block>
		<!-- 蓝牙未连接无设备 -->
		<block v-if="!hasConnectBTFlag && !hasEquipFlag">
			<view class="no-bind">
				<view class="rings">暂无绑定设备</view>
			</view>
		</block>
		<!-- 蓝牙连接成功按钮 -->
		<block v-if="hasConnectBTFlag">
			<!-- 开始充电按钮   蓝牙模式显示 chargeMode =='00'蓝牙模式   equipBaseInfo.chargeMode =='01' 充电模式-->
			<view class="startCharge" v-if="equipBaseInfo.chargeMode =='00' && !hasChargeFlag"
				@click="$u.throttle(startCharge,2000)">
				<view></view>
			</view>
			<!-- 即插即充模式占位 01-->
			<view style="height: 150rpx;margin: 106rpx auto 0;" v-if="equipBaseInfo.chargeMode =='01'"></view>
			<!-- 停止充电按钮    蓝牙模式显示 00-->
			<view class="offCharge" v-if="equipBaseInfo.chargeMode =='00' && hasChargeFlag"
				@click="$u.throttle(offCharge,3000)">
				<view></view>
			</view>
		</block>
		<!-- 蓝牙连接失败按钮 -->
		<block v-if="!hasConnectBTFlag && hasEquipFlag">
			<view class="toContect" @click="$u.throttle(restContect, 6000)">
				<view></view>
			</view>
			<view class="contect-text">
				<view style="margin-right: 10rpx;" v-if="0">
					<u-icon name="arrow-upward" color="#1890FF"></u-icon>
				</view>
				<view style="color: #1890FF;">请确保您在设备附近,点击上方按钮重新连接</view>
			</view>
		</block>
		<!-- 未绑定设备去绑定设备 -->
		<block v-if="!hasConnectBTFlag && !hasEquipFlag">
			<view class="toBind" @click="goBind">
				<view></view>
			</view>
			<view class="contect-text">
				<view style="margin-right: 10rpx;" v-if="0">
					<u-icon name="arrow-upward" color="#1890FF"></u-icon>
				</view>
				<view style="color: #1890FF;">点击上方按钮绑定设备</view>
			</view>
		</block>
		<!-- 操作面板 -->
		<view :class="[hasConnectBTFlag?'marg100':'marg75','panel']">
			<view class="btn">
				<view class="switch" @click="$u.throttle(switchType,2000)">
					<view :class="[equipBaseInfo.chargeMode =='00'? 'blueThtooth':'plug']"></view>
					<view :class="[equipBaseInfo.chargeMode =='00'? 'cutA':'cutB','cut']">切换</view>
					<view class="switch_describe">{{equipBaseInfo.chargeMode =='00' ?'蓝牙充电模式':'即插即充模式'}}</view>
				</view>
				<view class="bind-squre" @click="goBind">
					<view :class="[equipBaseInfo.chargeMode =='00' ?'bind_item':'bind_items']"></view>
					<view class="device_describe">{{hasEquipFlag == false ? '设备绑定':'设备列表'}}</view>
				</view>
				<view class="device" @click="goDeviceDetail">
					<view :class="[equipBaseInfo.chargeMode =='00' ?'device_item':'device_items']"></view>
					<view class="device_describe">设备详情</view>
				</view>
			</view>
			<view class="tips">
				<view>
					<view>{{formatChargeVal(equipBaseInfo.powerCount)}}<text class="smallFont">KW</text></view>
					<view class="marg">实时功率</view>
				</view>
				<view class="center-tips">
					<view>{{formatChargeVal(equipBaseInfo.currentChargeIVal)}}<text class="smallFont">A</text></view>
					<view class="marg">实时电流</view>
				</view>
				<view>
					<view>{{formatChargeVal(equipBaseInfo.chargeV)}}<text class="smallFont">V</text></view>
					<view class="marg">实时电压</view>
				</view>
			</view>
		</view>
		<!-- 提示 -->
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	import blueteeth from '../../libs/blueteeth.js';
	import tuiSwipeAction from "@/components/tui-swipe-action/tui-swipe-action.vue"
	import blueteethCmd from '../../libs/blueteeth-cmd.js';
	import store from '../../libs/store.js';
	import utils from '../../libs/utils.js';
	import config from '../../libs/config.js';
	import {
		throttle
	} from "../../libs/throttle.js"; //引入节流函数
	export default {
		data() {
			return {
				pileStatus: '',
				version: '',
				connectionFlag: false, //车枪连接
				hasEquipFlag: false, //是否绑桩
				hasConnectBTFlag: false, //有没有连上蓝牙Flag
				hasChargeFlag: false, //是否充电中
				equipBaseInfo: {
					chargeMode: '01'
				}, //设备信息
				deviceId: '',
				deviceName: '',
				canUseBlueteethFlag: false, //能否使用蓝牙
				serviceId: "0000FFF0-0000-1000-8000-00805F9B34FB", // 服务ID
				readCharacteristicId: "0000FFF1-0000-1000-8000-00805F9B34FB",
				writeCharacteristicId: "0000FFF2-0000-1000-8000-00805F9B34FB",
				statusLooper: null, //轮训查询桩状态定时器
				mode: 1, //模式   1蓝牙模式 2 即插即充模式
				charging: 1, //     1充电中 2 其他状态
				pileErrorFlag: false, //设备故障
				waitChargeFlag: false, //充电等待中
				wirte0032CodeMsgId: '', // 写入的消息ID
				wirte0041CodeMsgId: '', // 写入的消息ID
				looperFlag: true,
				currenTempChargeMode: '',
				restFlag: false,
				mtuTimer:null,
			}
		},
		onShow() {
			if (!uni.getStorageSync('hasLogin') == true) {
				uni.reLaunch({
					url: '/pages/login/index'
				})
			} else {
				this.bluetoothJudgment()
			}

		},
		onHide() {
			clearTimeout(this.statusLooper)
			clearInterval(this.mtuTimer)
			this.statusLooper = null;
			this.mtuTimer = null;
		},
		onUnload() {
			clearTimeout(this.statusLooper)
			clearInterval(this.mtuTimer)
			this.statusLooper = null;
			this.mtuTimer = null;
		},
		methods: {
			/*判断用户有没有授权蓝牙*/
			bluetoothJudgment() {
				let _ = this;
				wx.getSetting({
					success(res) {
						let authSetting = res.authSetting;
						if (authSetting['scope.bluetooth']) { //已授权
							_.pageInitFun()
						} else if (authSetting['scope.bluetooth'] === false) {
							wx.showModal({
								title: '您未开启蓝牙授权',
								content: '请在系统设置中打开蓝牙授权,以便我们为您提供更好的服务',
								success: (res) => {
									if (res.confirm) {
										wx.openSetting()
									}
								}
							})
						} else {
							wx.authorize({
								scope: 'scope.bluetooth',
								success: () => {
									_.pageInitFun()
								},
								fail: () => {
									wx.showModal({
										title: '您未开启蓝牙授权',
										content: '请在系统设置中打开蓝牙授权,以便我们为您提供更好的服务',
										success: (res) => {
											if (res.confirm) {
												wx.openSetting()
											}
										}
									})
								}
							})
						}
					}
				})
			},
			/* 页面初始化*/
			pageInitFun() {
				console.log('页面初始化')
				let that = this;
				this.hasEquipFlag = false;
				// this.hasConnectBTFlag = false;
				this.checkCurEquipInfo();

			},
			/*判断是否有设备*/
			checkCurEquipInfo() {
				let that = this;
				this.hasEquipFlag = false;
				// let obj = store.getEquipBaseInfo() || {}
				// if (uni.getStorageSync('hasConnectBTFlag')) { //缓存有值
				// 	this.equipBaseInfo = store.getEquipBaseInfo()
				// 	this.hasEquipFlag = true;
				// 	this.checkBlueteethFun();
				// } else {
				that.$u.api.getDefaultPile({
					accessType: 'app',
					data: {
						userId: uni.getStorageSync('userId'),
						defaultStake: 1,
						mobile: uni.getStorageSync('mobile')
					}
				}).then(res => {
					console.log('接口查询了有没有绑桩')
					console.log(res.data)
					console.log('接口查询了有没有绑桩')
					if (res.data != null) { //有设备
						let obj = store.getEquipBaseInfo()

						if (obj.deviceId && obj.deviceId != '' && obj.deviceId == res.data.deviceId) {
							that.equipBaseInfo = store.getEquipBaseInfo()
							console.log('使用缓存数据XXXX')
							console.log(store.getEquipBaseInfo())
							console.log(this.equipBaseInfo.chargeMode)
							console.log('使用缓存数据XXXX')
						} else {
							that.equipBaseInfo = res.data
							store.setEquipBaseInfo(res.data);
						}
						// that.equipBaseInfo = res.data[0]
						// store.setEquipBaseInfo(res.data[0]);
						uni.setNavigationBarTitle({
							title: that.equipBaseInfo.personalityName || ''
						});
						that.hasEquipFlag = true;
						that.deviceId = that.equipBaseInfo.deviceId
						that.deviceName = that.equipBaseInfo.deviceName
						console.log('this.deviceId')
						console.log(that.deviceId)
						console.log(that.deviceName)
						that.checkBlueteethFun();
					} else { //无设备
						that.hasConnectBTFlag = false;
						that.hasEquipFlag = false;
						store.setEquipBaseInfo({})
					}
				}).catch(err => {
					uni.reLaunch({
						url: '/pages/login/index'
					})
				})
				// }

				// 查看设备信息
				// this.equipBaseInfo = store.getEquipBaseInfo() || {};
				// console.log('this.equipBaseInfo')
				// console.log(this.equipBaseInfo)

				// if (this.equipBaseInfo.deviceId) {
				// 	this.hasEquipFlag = true;
				// 	this.deviceId = this.equipBaseInfo.deviceId
				// 	this.deviceName = this.equipBaseInfo.deviceName
				// 	console.log('this.deviceId')
				// 	console.log(this.deviceId)

				// 	this.checkBlueteethFun();
				// } else {
				// 	this.hasConnectBTFlag = false;
				// }
			},
			/*蓝牙初始化 old*/
			checkBlueteethFun() {
				let _ = this;
				_.canUseBlueteethFlag = false;

				uni.openBluetoothAdapter({
					success(e) {
						console.log(e)
						_.canUseBlueteethFlag = true;
						wx.getBluetoothDevices({ //判断是否已经连接设备
							success: function(res) {
								console.log('bbbccc')
								console.log(res.devices.length)
								console.log('bbbccc')
								if (res.devices.length == 0) { //未连接设备
									uni.showLoading({
										title: '蓝牙连接中...',
										mask: true
									})
									console.log('无设备连接')
									_.hasConnectBTFlag = false;
									uni.setStorageSync('hasConnectBTFlag', false)
									// _.closeDeviceConnect()
									if (uni.getSystemInfoSync().platform === 'android') {
										uni.setStorageSync('currentDeviceId', _.equipBaseInfo
											.deviceId)
										_.toConnectEquip();
									} else {
										_.find()
									}
								} else { //有设备连接
									console.log('有设备连接')
									_.equipBaseInfo = store.getEquipBaseInfo() || {};
									_.deviceId = uni.getStorageSync('currentDeviceId');
									_.serviceId = uni.getStorageSync('currentServiceId');
									console.log(8888)
									console.log(_.deviceId)
									console.log(_.serviceId)
									console.log(_.restFlag)
									console.log(8888)
									if (_.deviceId != '' && _.serviceId != '') {
										console.log('未更换默认桩')
										if (_.restFlag == true) {
											console.log('点击了重新连接')
											_.hasConnectBTFlag = false;
											uni.setStorageSync('hasConnectBTFlag', false)
											_.find()
											console.log('点击了重新连接')
										} else {
											// if (res.deviceId == _.deviceId && res.connected == true) {
											// 	uni.hideLoading()
											// 	_.notifyBLECharacter()
											// } else {
											// 	_.find()
											// }
											console.log('TTTTTTTTT')
											_.hasConnectBTFlag = true;
											uni.setStorageSync('hasConnectBTFlag', true);
											uni.hideLoading()
											_.notifyBLECharacter()
											_.writePileStatusCode()
										}
									} else {
										console.log('更换了默认桩')
										_.hasConnectBTFlag = false;
										uni.setStorageSync('hasConnectBTFlag', false)
										_.find()
										uni.showLoading({
											title: '蓝牙连接中...',
											mask: true
										})
									}

									// _.writePileStatusCode()
								}
							}
						})
					},
					fail(err) {
						console.log('vvvv')
						console.log(err)
						console.log(err.state)
						console.log('vvvv')
						if(uni.getSystemInfoSync().platform === 'ios' && err.state == 3){
							utils.errMsg('请到设置开启微信蓝牙授权')
						}else{
							utils.errMsg('请打开手机蓝牙后重试')
						}
						_.canUseBlueteethFlag = false;
						_.hasConnectBTFlag = false;
					}
				})
			},
			/*---------测试查找蓝牙设备----------*/
			find() {
				let _ = this;
				console.log('蓝牙开始查找')
				console.log('蓝牙名字=' + _.deviceName)
				wx.startBluetoothDevicesDiscovery({
					services: [],
					success: function() {
						console.log('开始搜索蓝牙')
						wx.onBluetoothDeviceFound(function(res) {
							console.log(res, '搜索蓝牙相关设备')
							for (let i = 0; i < res.devices.length; i++) {
								// app.globalData.bleConfig.name 这里提前就获取了设备的name
								if (res.devices[i].name == _.deviceName) {
									var deviceId = res.devices[i].deviceId
									console.log('找到设备')
									console.log(res.devices[i])
									_.deviceId = res.devices[i].deviceId
									// _.equipBaseInfo.deviceId = _.deviceId;
									uni.setStorageSync('currentDeviceId', _.deviceId)
									// if (_.equipBaseInfo.serviceId == '') {
									// 	store.setEquipBaseInfo(_.equipBaseInfo);
									// }
									console.log('找到设备')
									// ios搜索出目标设备后,将停止搜索,否则影响手机性能
									wx.stopBluetoothDevicesDiscovery({
										success: function() {
											_.toConnectEquip()
										}
									})
								}
							}
						})
					},
					fail: function() {
						wx.stopBluetoothDevicesDiscovery({
							success: function() {}
						})
					}
				})
				let timers = setTimeout(() => {
					wx.stopBluetoothDevicesDiscovery({
						success: function() {}
					})
					uni.hideLoading()
					clearTimeout(timers)
					timers = null;
				}, 10000)
			},
			/*连接蓝牙设备*/
			toConnectEquip() {
				let _ = this;
				console.log('deviceId=' + _.deviceId)
				wx.createBLEConnection({
					// 这里的 deviceId 需要已经通过 createBLEConnection 与对应设备建立链接
					deviceId: _.deviceId,
					timeout:10000,
					success(res) {
						console.log('连接蓝牙成功==suc')
						_.getEquipServices();
					},
					fail(err) {
						console.log('连接蓝牙失败==fail')

						_.connectErrorFun();
					},
					complete(err) {
						console.log(err)
					}
				})

			},
			/*获取服务信息*/
			getEquipServices() {
				let _ = this;
				uni.getBLEDeviceServices({
					deviceId: this.deviceId, // 设备ID,在上一步【4】里获取
					success(res) {
						_.serviceId = res.services[0].uuid;
						uni.setStorageSync('currentServiceId', _.serviceId)
						console.log('serviceId=' + _.serviceId)
						// _.equipBaseInfo.serviceId = _.serviceId;
						// store.setEquipBaseInfo(_.equipBaseInfo);
						if (_.serviceId) {
							_.getEquipCharacteristics();
						}
					},
					fail(err) {
						_.connectErrorFun();
					}
				})
			},
			/*获取特征值*/
			getEquipCharacteristics() {
				let _ = this;
				uni.getBLEDeviceCharacteristics({
					deviceId: _.deviceId, // 设备ID,在【4】里获取到
					serviceId: _.serviceId, // 服务UUID,在【6】里能获取到
					success(res) {
						console.log('获取服务特征值成功')
						console.log(res)
						console.log('获取服务特征值成功')
						_.notifyEquip();
					},
					fail(err) {
						_.connectErrorFun();
					}
				})
			},
			/*开启监听蓝牙传值*/
			notifyEquip() {
				let _ = this;
				console.log('*************************')
				if (uni.getSystemInfoSync().platform === 'android') {
					uni.setBLEMTU({
						deviceId: _.deviceId, // 设备ID,在【4】里获取到
						mtu: 512, // 服务UUID,在【6】里能获取到
						success(res) {
							console.log('设置mtu成功')
							wx.getBLEMTU({
							  deviceId: _.deviceId,
							  writeType: 'write',
							  success (res) {
							    console.log(res)
							  }
							})
							_.notifyBLECharacter()
						},
						fail(err) {
							console.error(err)
							_.setAndroidMTU() // 重要代码如果失败继续往下连接然后重复设置
						}
					})
				} else {
					_.notifyBLECharacter()
				}
			},
			/*处理设置失败安卓协商低功耗最大传输单元*/
			setAndroidMTU() {
				let _ = this;
				console.log('处理安卓协商低功耗最大传输单元失败的方法')
				_.notifyBLECharacter()
				_.mtuTimer = setInterval(() =>{
					console.log('开始循环设置MTU值')
					uni.setBLEMTU({
						deviceId: _.deviceId, // 设备ID,在【4】里获取到
						mtu: 512, // 服务UUID,在【6】里能获取到
						success(res) {
							console.log('设置mtu成功')
						},
						fail(err) {
							console.error(err)
						},
						complete() {
							wx.getBLEMTU({
								deviceId: _.deviceId,
								writeType: 'write',
								success(res) {
									console.log(res)
									clearInterval(_.mtuTimer)
									_.mtuTimer = null;
								}
							})
						}
					})
				},1500)
			},
			notifyBLECharacter() {
				let _ = this;
				console.log('进入了开始监听的函数里面')
				uni.notifyBLECharacteristicValueChange({
					deviceId: _.deviceId, // 设备ID,在【4】里获取到
					serviceId: _.serviceId, // 服务UUID,在【6】里能获取到
					characteristicId: _.readCharacteristicId, // 特征值,在【7】里能获取到
					state: true,
					success(res) {
						console.log('notifyBLECharacteristicValueChange成功监听')
						_.hasConnectBTFlag = true;
						_.restFlag = false;
						uni.hideLoading()
						uni.setStorageSync('hasConnectBTFlag', true)
						// 下发获取充电桩状态数据
						_.listenValueChange();
						// 接受消息的方法
						_.writePileStatusCode()
						_.looperGetPileStatusFun()
					},
					fail(err) {
						_.connectErrorFun();
					}
				})
			},
			/*处理桩返回的值*/
			listenValueChange() {
				console.log('vHHHHHHHHHHHHH')
				let _ = this;
				uni.onBLECharacteristicValueChange(res => {
					console.log('!!!!!!!!!!!桩返回的16进制值!!!!!!!!!!')
					console.log(res.value)
					console.log('!!!!!!!!!!!桩返回的16进制值!!!!!!!!!!')
					// 结果里有个value值,该值为 ArrayBuffer 类型,所以在控制台无法用肉眼观察到,必须将该值转换为16进制
					let resHex = _.ab2hex(res.value);
					_.handleEquipNotifyBackCode(resHex);
				})
			},
			/*处理桩上传的信息*/
			handleEquipNotifyBackCode(notifyCode) {
				console.log('桩回复信息=' + notifyCode)
				let _ = this;
				let startIndex = notifyCode.indexOf('7e');
				let endIndex = notifyCode.lastIndexOf('7e');

				if (startIndex >= 0 && endIndex > 0) {
					const cmdCodeType = notifyCode.substring(startIndex + 2, startIndex + 6);
					console.log('cmdCodeType=' + cmdCodeType)

					// 状态查询回调
					if ('8051' == cmdCodeType) {
						_.hasConnectBTFlag = true;
						uni.hideLoading();
						uni.setStorageSync('hasConnectBTFlag', true)
						_.hasChargeFlag = false;
						_.waitChargeFlag = false;
						_.pileErrorFlag = false;
						_.connectionFlag = false;
						const pileStatusObj = blueteethCmd.parse8051Cmd(notifyCode)
						console.log('pileStatusObj解析对象')
						console.log(pileStatusObj)
						console.log('pileStatusObj解析对象')
						if (Object.keys(pileStatusObj).length === 0) { //异常数据就取缓存里的值
							_.hasChargeFlag = uni.getStorageSync('hasChargeFlags')
							this.equipBaseInfo = store.getEquipBaseInfo()
							console.log('空对象使用缓存数据');
							return
						}
						if (pileStatusObj.chargeStatusStr == '05') { //正在充电中
							_.hasChargeFlag = true;
							uni.setStorageSync('hasChargeFlags', true)
						} else if (pileStatusObj.chargeStatusStr == '04') {
							_.waitChargeFlag = true;
							uni.setStorageSync('hasChargeFlags', false)
						} else if (pileStatusObj.chargeStatusStr == '01') { //故障
							_.pileErrorFlag = true;
							uni.setStorageSync('hasChargeFlags', false)
						} else if (pileStatusObj.chargeStatusStr == '03') { //车枪已连接
							_.connectionFlag = true;
							uni.setStorageSync('hasChargeFlags', false)
						} else {
							uni.setStorageSync('hasChargeFlags', false)
						}
						console.log('ccccccc')
						console.log('chargeStatusStr=' + pileStatusObj.chargeStatusStr)
						console.log('ccccccc')
						this.pileStatus = pileStatusObj.chargeStatusStr
						console.log(pileStatusObj)
						this.equipBaseInfo.chargeMode = ('1' == pileStatusObj.chargeMode ? '01' : '00')
						console.log('桩设置的模式=' + this.equipBaseInfo.chargeMode)
						uni.setStorageSync('chargeModes', this.equipBaseInfo.chargeMode)
						this.equipBaseInfo.chargeModeName = ('01' == this.equipBaseInfo.chargeMode ? '即插即充模式' : '蓝牙模式')
						uni.setStorageSync('chargeModeNames', this.equipBaseInfo.chargeModeName)
						//电流电压数据异常处理
						if (Number(pileStatusObj.chargeV) > 400 || Number(pileStatusObj.chargeV) < 0) {
							this.equipBaseInfo.chargeV = 220
						} else {
							this.equipBaseInfo.chargeV = pileStatusObj.chargeV; //电压
						}
						if (Number(pileStatusObj.chargeI) > 40 || Number(pileStatusObj.chargeI) < 0) {
							this.equipBaseInfo.chargeI = 0
						} else {
							this.equipBaseInfo.chargeI = pileStatusObj.chargeI || 0; //电流
						}
						this.equipBaseInfo.currentChargeIVal = pileStatusObj.currentChargeIVal; //实时电流
						this.equipBaseInfo.powerCount = (this.equipBaseInfo.currentChargeIVal * this.equipBaseInfo
								.chargeV) /
							1000; //功率
						this.equipBaseInfo.chargePower = pileStatusObj.chargeI; //电流
						this.equipBaseInfo.chargePowerName = pileStatusObj.chargeI + 'A';
						this.equipBaseInfo.version = pileStatusObj.version; //新增版本号
						this.equipBaseInfo.chargeStatusStr = pileStatusObj.chargeStatusStr //充电桩状态
						if (pileStatusObj.version == '010229' || pileStatusObj.version == '010230') {
							if (uni.getStorageSync('pileVersion') == '') {
								uni.setStorageSync('pileVersion', pileStatusObj.version)
								this.version = pileStatusObj.version;
							} else {
								// this.version = uni.getStorageSync('pileVersion')
								this.version = pileStatusObj.version;
							}
						}
						let obj = store.getEquipBaseInfo()
						obj.chargeMode = this.equipBaseInfo.chargeMode;
						obj.chargeStatusStr = this.equipBaseInfo.chargeStatusStr
						console.log('FFFFFFFFF')
						console.log(obj)
						console.log('FFFFFFFFF')
						store.setEquipBaseInfo(obj)
						console.log('MMMMMMMMMMM')
						console.log(store.getEquipBaseInfo())
						console.log('MMMMMMMMMMM')
						uni.setStorageSync('MaxChargePowerName', pileStatusObj.chargeI)
					} else if ('8032' == cmdCodeType) {
						_.wirte0032CodeMsgId = '';
						// 充电回调
						const chargeRes = blueteethCmd.parse8032Cmd(notifyCode)
						if (_.hasChargeFlag) {
							utils.sucMsg('结束成功')
							// _.hasChargeFlag = false;
							_.writePileStatusCode()
							uni.setStorageSync('hasChargeFlags', false)
						} else {
							utils.sucMsg('充电成功')
							// _.hasChargeFlag = true;
							_.writePileStatusCode()
							uni.setStorageSync('hasChargeFlags', true)
						}

					} else if ('8041' == cmdCodeType) {
						let msgBody = notifyCode.substring(26, notifyCode.length - 4);
						let res = msgBody.substring(4, 6)
						console.log('res=' + res)
						uni.hideLoading();
						if (res == '00') { //'00'成功
							// utils.sucMsg('模式切换成功')
							// _.$refs.uToast.show({
							// 	title: '模式切换成功',
							// 	// 如果不传此type参数,默认为default,也可以手动写上 type: 'default'
							// 	type: 'success', 
							// 	// 如果不需要图标,请设置为false
							// 	icon: false
							// })
							_.equipBaseInfo.chargeMode = _.currenTempChargeMode
							store.setEquipBaseInfo(_.equipBaseInfo);
							_.wirte0041CodeMsgId = '';
						} else if (res == '01') { //'01'失败
							_.$refs.uToast.show({
								title: '模式切换失败,请重试',
								// 如果不传此type参数,默认为default,也可以手动写上 type: 'default'
								type: 'error',
								// 如果不需要图标,请设置为false
								icon: false
							})
						}
						_.looperFlag = true;
						_.writePileStatusCode()
						_.looperGetPileStatusFun()
					}
				}

			},
			/*往桩里面写入数据*/
			writeDataToEquip(msg) {
				let _ = this;

				function hexStringToArrayBuffer(str) {
					if (!str) {
						return new ArrayBuffer(0);
					}
					var buffer = new ArrayBuffer(str.length / 2);
					let dataView = new DataView(buffer)
					let ind = 0;
					for (var i = 0, len = str.length / 2; i < len; i += 1) {
						let code = parseInt(str.substr(2 * i, 2), 16)

						// console.log(code)
						dataView.setUint8(ind, code)
						ind++
					}
					return buffer;
				}

				function hexStringToArrayBuffer1(str) {
					if (!str) {
						return new ArrayBuffer(0);
					}
					var buffer = new ArrayBuffer(str.length);
					let dataView = new DataView(buffer)
					let ind = 0;
					for (var i = 0, len = str.length; i < len; i += 2) {
						let code = parseInt(str.substr(i, 2), 16)

						// console.log(code)
						dataView.setUint8(ind, code)
						ind++
					}
					return buffer;
				}
				const bufferNew = hexStringToArrayBuffer(msg)

				console.log(bufferNew)

				uni.writeBLECharacteristicValue({
					deviceId: _.deviceId, // 设备ID,在【4】里获取到
					serviceId: _.serviceId, // 服务UUID,在【6】里能获取到
					characteristicId: _.writeCharacteristicId, // 特征值,在【7】里能获取到
					value: bufferNew,
					success(res) {
						console.log('写入指令成功===' + msg)
					},
					fail(err) {
						console.error(err)
						utils.errMsg('指令写入失败,请重新连接');
						uni.hideLoading()
						// 断开连接,重新连接
						_.closeDeviceConnect();
					}
				})
			},
			/*ArrayBuffer转16进度字符串示例*/
			ab2hex(buffer) {
				const hexArr = Array.prototype.map.call(
					new Uint8Array(buffer),
					function(bit) {
						return ('00' + bit.toString(16)).slice(-2)
					}
				)
				return hexArr.join('')
			},
			/*轮训查询桩的信息*/
			looperGetPileStatusFun() {
				if (!this.looperFlag) {
					return false;
				}
				let _ = this;
				clearTimeout(this.statusLooper)
				// 连接上设备再去查状态
				if (_.hasConnectBTFlag) {
					this.statusLooper = setTimeout(() => {
						_.writePileStatusCode();
						_.looperGetPileStatusFun();
					}, 5000)
				}
			},
			/*0051获取桩状态数据*/
			writePileStatusCode() {
				// 获取桩状态
				const cmdCode = blueteethCmd.gen0051Cmd();
				this.writeDataToEquip(cmdCode)
			},

			/*蓝牙连接失败*/
			connectErrorFun() {
				uni.hideLoading();
				utils.errMsg('蓝牙连接失败,请靠近充电桩后重试')
				this.closeDeviceConnect();
				// this.continueConnectEquipFun();
			},
			/*关闭蓝牙连接*/
			closeDeviceConnect() {
				let _ = this;
				this.hasConnectBTFlag = false;
				uni.setStorageSync('hasConnectBTFlag', false)
				let flag = uni.setStorageSync('hasChargeFlags', false)
				this.hasChargeFlag = false;
				// uni.hideLoading()
				let deviceId = _.deviceId;
				uni.closeBLEConnection({
					deviceId: deviceId,
					success(res) {
						console.log(res)
					},
					fail(err) {
						console.log(err)
					},
					complete() {
						wx.closeBluetoothAdapter({
							success(res) {
								console.log('彻底关闭蓝牙')
							},
							complete() {

							}
						})
					}
				})
			},
			/*模式切换   蓝牙和即插即充模式切换*/
			switchType() {
				let that = this;
				wx.vibrateShort();
				if (this.hasChargeFlag) {
					utils.errMsg('充电中,无法修改');
					return;
				}
				if (!this.hasEquipFlag) {
					utils.errMsg('请先绑桩');
					return;
				}
				if (this.waitChargeFlag) {
					utils.errMsg('充电等待中,无法修改');
					return
				}
				if (!this.hasConnectBTFlag) {
					utils.errMsg('请先连接蓝牙');
					return;
				}
				if (this.pileErrorFlag) {
					utils.errMsg('设备故障中');
					return;
				}
				if (this.version != '010229') { //010229版本不校验 车枪连接
					if (this.pileStatus == '03' || this.pileStatus == '04') {
						utils.errMsg('请先拔枪再切换模式')
						return
					}
				}
				let tempChargeMode = ''
				if (this.equipBaseInfo.chargeMode == '00') {
					tempChargeMode = '01'
				} else {
					tempChargeMode = '00'
				}
				this.currenTempChargeMode = tempChargeMode;
				uni.showLoading({
					title: '加载中...',
					mask: true
				})
				let newChargeModeName = ('00' == tempChargeMode ? '蓝牙模式' : '即插即充模式')
				// 设置即插即充模式
				const chargePower = this.equipBaseInfo.chargePower;
				const jcjcCmdCode = blueteethCmd.gen0041Cmd(tempChargeMode, chargePower)
				this.looperFlag = false;
				clearTimeout(this.statusLooper)
				this.statusLooper = null;
				this.writeDataToEquip(jcjcCmdCode);

				let timer = setTimeout(() => {
					if (this.looperFlag == false) {
						this.secondWirte(jcjcCmdCode)
						// uni.hideLoading()
						// utils.errMsg('模式切换失败,请重试!')
						// this.writePileStatusCode()
						// this.looperGetPileStatusFun()
					}
					clearTimeout(timer)
					timer = null;
				}, 3000)
			},
			/*第一次指令没成功补发第二次*/
			secondWirte(jcjcCmdCode) {
				let that = this;
				this.wirte0041CodeMsgId = utils.genUUID();
				this.writeDataToEquip(jcjcCmdCode);
				let timer = setTimeout(() => {
					console.log('wirte0041CodeMsgId=' + this.wirte0041CodeMsgId)
					uni.hideLoading()
					if (this.wirte0041CodeMsgId) {
						that.$refs.uToast.show({
							title: '模式切换失败,请重试',
							// 如果不传此type参数,默认为default,也可以手动写上 type: 'default'
							type: 'error',
							// 如果不需要图标,请设置为false
							icon: false
						})
					}
					this.looperFlag = true;
					clearTimeout(timer)
					timer = null;
					this.wirte0041CodeMsgId = '';
					this.writePileStatusCode()
					this.looperGetPileStatusFun()
				}, 2000)
			},
			/*开始充电*/
			startCharge() {
				console.log('~~~~~~~~~~~~~开始充电~~~~~~~~~~~~')
				console.log("versionCC=" + this.version)
				console.log('~~~~~~~~~~~~~开始充电~~~~~~~~~~~')
				wx.vibrateShort() //手机震动
				if (this.waitChargeFlag) {
					utils.errMsg('充电等待中')
					return;
				}
				if (this.pileErrorFlag) {
					utils.errMsg('设备故障')
					return;
				}
				if (this.version != '010229') { //010229版本不校验 车枪连接
					if (this.pileStatus != '03') {
						utils.errMsg('请先插枪后再开始充电')
						return
					}
				}

				uni.showLoading({
					title: '加载中...',
					mask: true
				})
				// 开始充电
				const cmdCode = blueteethCmd.gen0032Cmd('01');
				this.wirte0032CodeMsgId = utils.genUUID();
				this.writeDataToEquip(cmdCode);
				setTimeout(() => {
					uni.hideLoading()
					if (this.wirte0032CodeMsgId) {
						// utils.errMsg('写入失败,请重试!')
						this.wirte0032CodeMsgId = '';
					}
				}, 3000)
			},
			/*结束充电*/
			offCharge() {
				wx.vibrateShort() //手机震动
				uni.showLoading({
					title: '加载中...',
					mask: true
				})
				const cmdCode = blueteethCmd.gen0032Cmd('00');
				this.wirte0032CodeMsgId = utils.genUUID();
				this.writeDataToEquip(cmdCode);
				setTimeout(() => {
					uni.hideLoading()
					if (this.wirte0032CodeMsgId) {
						// utils.errMsg('写入失败,请重试!')
						this.wirte0032CodeMsgId = '';
						// uni.setStorageSync('hasChargeFlags', false)
					}
				}, 3000)
			},
			/*重新连接蓝牙 10秒节流*/
			restContect() {
				let that = this;
				console.log('点了重新连接')
				this.hasConnectBTFlag = false;
				this.restFlag = true;
				uni.setStorageSync('hasConnectBTFlag', false)
				wx.vibrateShort({
					success(res) {
						console.log('震动了')
					},
					fail(err) {
						console.log('未震动')
					}
				})
				//先断开之前的连接
				let deviceId = uni.getStorageSync('currentDeviceId')
				console.log(deviceId)
				// that.pageInitFun()
				wx.closeBLEConnection({
					deviceId: deviceId,
					success(res) {
						console.log('断开低功耗蓝牙连接')
					},
					complete() {
						wx.closeBluetoothAdapter({
							success(res) {
								console.log('彻底关闭蓝牙')

							},
							complete() {
								that.pageInitFun()
							}
						})
					}
				})
			},
			/*设备详情*/
			goDeviceDetail() {
				// if (!this.hasEquipFlag) {
				// 	utils.errMsg('请先绑桩');
				// 	return;
				// }
				uni.navigateTo({
					url: '/pages/device-details/index?trueIsSharePoint=' + this.equipBaseInfo.trueIsSharePoint
				})
			},
			/*绑定设备*/
			goBind() {
				uni.navigateTo({
					url: '/pages/index/index'
				})
			},
			/*格式化电流电压和功率的format函数*/
			formatChargeVal(val) {
				if (val) {
					val = parseFloat(val)
					return parseFloat(val.toFixed(2))
				}
				return 0;
			},
		}
	}
</script>

<style lang="less">
	page {
		background-color: #F8FAFF;
	}

	.index-container {
		width: 100%;
	}

	.bluethoothStatus {
		position: absolute;
		width: 200rpx;
		height: 100rpx;
		right: 0;
		top: 0;
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;

		>view {
			&:nth-child(1) {
				width: 50rpx;
				height: 50rpx;
			}

			&:nth-child(2) {
				font-weight: 800;
				font-size: 16rpx;
				margin-top: 10rpx;
				color: #CDCDCD;
			}
		}
	}

	.charging {
		width: 400rpx;
		height: 400rpx;
		margin: 48rpx auto 0;
		position: relative;

		.charge-text {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			color: #FFFFFF;
			font-size: 48rpx;
		}

		.charing-animate {
			width: 400rpx;
			height: 400rpx;
			border-radius: 50%;
			position: relative;
			border-radius: 42% 58% 62% 40%;
			background-color: rgba(54, 207, 201, .7);
			animation: rotates 5s reverse linear infinite;

			// background: radial-gradient(circle, #36CFC9 0%, #67f5ee 100%);
			// color: #ffffff;
			// text-align: center;
			// line-height: 400rpx;
			// font-size: 48rpx;
			// box-shadow: 0px 2px 10px 10px rgba(57, 221, 197, 0.25);
			// animation: fadenum 3s ease-in-out infinite;
			&::before {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 400rpx;
				height: 400rpx;
				background-color: rgba(54, 207, 201, 1);
				border-radius: 32% 48% 52% 40%;
				animation: rotates 5s infinite linear;
			}
		}
	}



	.otherStatus {
		width: 400rpx;
		height: 400rpx;
		border-radius: 50%;
		background: #3291F8;
		margin: 48rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		.ring {
			width: 360rpx;
			height: 360rpx;
			border-radius: 50%;
			background: #FFFFFF;
			color: #3291F8;
			line-height: 360rpx;
			text-align: center;
			font-size: 48rpx;
		}
	}

	.otherStatuse {
		width: 400rpx;
		height: 400rpx;
		border-radius: 50%;
		background: #1ED56D;
		margin: 48rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		.ring {
			width: 360rpx;
			height: 360rpx;
			border-radius: 50%;
			background: #FFFFFF;
			color: #1ED56D;
			line-height: 360rpx;
			text-align: center;
			font-size: 48rpx;
		}
	}

	.errStatus {
		width: 400rpx;
		height: 400rpx;
		border-radius: 50%;
		background: #ff4d40;
		margin: 48rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		.ring {
			width: 360rpx;
			height: 360rpx;
			border-radius: 50%;
			background: #FFFFFF;
			color: #ff4d40;
			line-height: 360rpx;
			text-align: center;
			font-size: 48rpx;
		}
	}

	.ont-connected {
		width: 400rpx;
		height: 400rpx;
		border-radius: 50%;
		background: #CDCDCD;
		margin: 48rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		.rings {
			width: 360rpx;
			height: 360rpx;
			border-radius: 50%;
			background: #FFFFFF;
			color: #CDCDCD;
			line-height: 360rpx;
			text-align: center;
			font-size: 48rpx;
		}
	}

	.no-bind {
		width: 400rpx;
		height: 400rpx;
		border-radius: 50%;
		background: #CDCDCD;
		margin: 48rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		.rings {
			width: 360rpx;
			height: 360rpx;
			border-radius: 50%;
			background: #FFFFFF;
			color: #CDCDCD;
			line-height: 360rpx;
			text-align: center;
			font-size: 48rpx;
		}
	}

	.startCharge {
		width: 150rpx;
		height: 150rpx;
		border-radius: 50%;
		background: #1890FF;
		margin: 106rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		>view {
			width: 102rpx;
			height: 102rpx;
			background: url('https://img.cdn.wxzhida.cn/lingpao-ui/kaiguan.png');
			background-size: cover;
		}
	}

	.offCharge {
		width: 150rpx;
		height: 150rpx;
		border-radius: 50%;
		background: #FFC069;
		margin: 106rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		>view {
			width: 102rpx;
			height: 102rpx;
			background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E5%BC%80%E5%85%B3.png');
			background-size: cover;
		}
	}

	.toContect {
		width: 150rpx;
		height: 150rpx;
		border-radius: 50%;
		background: #1890FF;
		margin: 86rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		>view {
			width: 102rpx;
			height: 102rpx;
			background: url('https://img.cdn.wxzhida.cn/lingpao-ui/vvvvxx.png');
			background-size: cover;
		}


	}

	.toBind {
		width: 150rpx;
		height: 150rpx;
		border-radius: 50%;
		background: #1890FF; //#004d73  #146eb4
		margin: 86rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;

		>view {
			width: 102rpx;
			height: 102rpx;
			background: url('https://img.cdn.wxzhida.cn/lingpao-ui/vvvvxx.png');
			background-size: cover;
		}
	}

	.contect-text {
		font-size: 28rpx;
		color: #C1C3C3;
		height: 50rpx;
		display: flex;
		align-items: center;
		width: 100%;
		justify-content: center;
		margin-top: 20rpx;
	}

	.marg100 {
		margin: 100rpx auto 0;
	}

	.marg75 {
		margin: 75rpx auto 0;
	}

	.panel {
		width: 90%;
		border-radius: 60rpx;
		overflow: hidden;
		background: #ffffff;
		// margin: 100rpx auto 0;
		box-shadow: 0px 2px 20px 3px rgba(169, 169, 169, 0.39);

		.btn {
			display: flex;
			height: 266rpx;
			border-bottom: 4rpx solid #F8FAFF;

			>view {
				flex: 1;
			}

			.switch {
				border-right: 4rpx solid #F8FAFF;
				// display: flex;
				// justify-content: center;
				// align-items: center;
				position: relative;
			}

			.switch_describe {
				color: #C1C3C3;
				position: absolute;
				width: 100%;
				top: 70%;
				left: 50%;
				text-align: center;
				transform: translateX(-50%);
			}

			.cut {
				position: absolute;
				top: 0;
				width: 150rpx;
				height: 48rpx;
				border-bottom-right-radius: 60rpx;
				text-align: center;
				line-height: 48rpx;
			}

			.cutA {
				background: #BAE7FF;
				color: #2B9AFF;
			}

			.cutB {
				background: #D9F7BE;
				color: #52C41A;
			}

			//蓝牙模式
			.blueThtooth {
				width: 64rpx;
				height: 64rpx;
				background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E8%93%9D%E7%89%99%20%281%29.png');
				background-size: 100% 100%;
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
			}

			//即插即充模式
			.plug {
				width: 64rpx;
				height: 64rpx;
				background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E5%9B%BE%E6%A0%87-%E6%8F%92%E5%A4%B4.png');
				background-size: 100% 100%;
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
			}

			.bind-squre {
				position: relative;
				border-right: 4rpx solid #F8FAFF;

				.bind_item {
					width: 64rpx;
					height: 64rpx;
					background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E8%AE%BE%E5%A4%87%E7%BB%91%E5%AE%9A%20%283%29.png');
					background-size: 100% 100%;
					background-color: #FFFFF;
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}

				.bind_items {
					width: 64rpx;
					height: 64rpx;
					background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E8%AE%BE%E5%A4%87%E7%BB%91%E5%AE%9A%20%284%29.png');
					background-size: 100% 100%;
					background-color: #FFFFF;
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}

				.device_describe {
					color: #C1C3C3;
					position: absolute;
					top: 70%;
					width: 100%;
					text-align: center;
				}
			}

			.device {
				position: relative;

				.device_item {
					width: 64rpx;
					height: 64rpx;
					background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E8%AE%BE%E5%A4%87.png');
					background-size: 100% 100%;
					background-color: #1890FF;
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}

				.device_items {
					width: 64rpx;
					height: 64rpx;
					background: url('https://img.cdn.wxzhida.cn/lingpao-ui/%E8%AE%BE%E5%A4%87.png');
					background-size: 100% 100%;
					background-color: #1ED56D;
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}

				.device_describe {
					color: #C1C3C3;
					position: absolute;
					top: 70%;
					width: 100%;
					text-align: center;
				}
			}
		}

		.tips {
			display: flex;
			height: 266rpx;
			box-sizing: border-box;

			>view {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: flex-end;
			}

			.center-tips {
				border-right: 4rpx solid #F8FAFF;
				border-left: 4rpx solid #F8FAFF;
			}

			.marg {
				margin-bottom: 50rpx;
				margin-top: 20rpx;
				color: #C1C3C3;
			}

			.smallFont {
				font-size: 24rpx;
			}
		}
	}

	@keyframes fadenum {

		/*设置内容由显示变为隐藏*/
		0% {
			opacity: 0.8;
			transform: scale(.9);
		}

		50% {
			opacity: 1.0;
			transform: scale(1);
		}

		100% {
			opacity: 0.8;
			transform: scale(0.9);
		}
	}

	@keyframes rotates {
		50% {
			border-radius: 80% 70% 58% 70%;
		}

		100% {
			transform: rotate(-720deg);
		}
	}
</style>


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
  • 757
  • 758
  • 759
  • 760
  • 761
  • 762
  • 763
  • 764
  • 765
  • 766
  • 767
  • 768
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • 776
  • 777
  • 778
  • 779
  • 780
  • 781
  • 782
  • 783
  • 784
  • 785
  • 786
  • 787
  • 788
  • 789
  • 790
  • 791
  • 792
  • 793
  • 794
  • 795
  • 796
  • 797
  • 798
  • 799
  • 800
  • 801
  • 802
  • 803
  • 804
  • 805
  • 806
  • 807
  • 808
  • 809
  • 810
  • 811
  • 812
  • 813
  • 814
  • 815
  • 816
  • 817
  • 818
  • 819
  • 820
  • 821
  • 822
  • 823
  • 824
  • 825
  • 826
  • 827
  • 828
  • 829
  • 830
  • 831
  • 832
  • 833
  • 834
  • 835
  • 836
  • 837
  • 838
  • 839
  • 840
  • 841
  • 842
  • 843
  • 844
  • 845
  • 846
  • 847
  • 848
  • 849
  • 850
  • 851
  • 852
  • 853
  • 854
  • 855
  • 856
  • 857
  • 858
  • 859
  • 860
  • 861
  • 862
  • 863
  • 864
  • 865
  • 866
  • 867
  • 868
  • 869
  • 870
  • 871
  • 872
  • 873
  • 874
  • 875
  • 876
  • 877
  • 878
  • 879
  • 880
  • 881
  • 882
  • 883
  • 884
  • 885
  • 886
  • 887
  • 888
  • 889
  • 890
  • 891
  • 892
  • 893
  • 894
  • 895
  • 896
  • 897
  • 898
  • 899
  • 900
  • 901
  • 902
  • 903
  • 904
  • 905
  • 906
  • 907
  • 908
  • 909
  • 910
  • 911
  • 912
  • 913
  • 914
  • 915
  • 916
  • 917
  • 918
  • 919
  • 920
  • 921
  • 922
  • 923
  • 924
  • 925
  • 926
  • 927
  • 928
  • 929
  • 930
  • 931
  • 932
  • 933
  • 934
  • 935
  • 936
  • 937
  • 938
  • 939
  • 940
  • 941
  • 942
  • 943
  • 944
  • 945
  • 946
  • 947
  • 948
  • 949
  • 950
  • 951
  • 952
  • 953
  • 954
  • 955
  • 956
  • 957
  • 958
  • 959
  • 960
  • 961
  • 962
  • 963
  • 964
  • 965
  • 966
  • 967
  • 968
  • 969
  • 970
  • 971
  • 972
  • 973
  • 974
  • 975
  • 976
  • 977
  • 978
  • 979
  • 980
  • 981
  • 982
  • 983
  • 984
  • 985
  • 986
  • 987
  • 988
  • 989
  • 990
  • 991
  • 992
  • 993
  • 994
  • 995
  • 996
  • 997
  • 998
  • 999
  • 1000
  • 1001
  • 1002
  • 1003
  • 1004
  • 1005
  • 1006
  • 1007
  • 1008
  • 1009
  • 1010
  • 1011
  • 1012
  • 1013
  • 1014
  • 1015
  • 1016
  • 1017
  • 1018
  • 1019
  • 1020
  • 1021
  • 1022
  • 1023
  • 1024
  • 1025
  • 1026
  • 1027
  • 1028
  • 1029
  • 1030
  • 1031
  • 1032
  • 1033
  • 1034
  • 1035
  • 1036
  • 1037
  • 1038
  • 1039
  • 1040
  • 1041
  • 1042
  • 1043
  • 1044
  • 1045
  • 1046
  • 1047
  • 1048
  • 1049
  • 1050
  • 1051
  • 1052
  • 1053
  • 1054
  • 1055
  • 1056
  • 1057
  • 1058
  • 1059
  • 1060
  • 1061
  • 1062
  • 1063
  • 1064
  • 1065
  • 1066
  • 1067
  • 1068
  • 1069
  • 1070
  • 1071
  • 1072
  • 1073
  • 1074
  • 1075
  • 1076
  • 1077
  • 1078
  • 1079
  • 1080
  • 1081
  • 1082
  • 1083
  • 1084
  • 1085
  • 1086
  • 1087
  • 1088
  • 1089
  • 1090
  • 1091
  • 1092
  • 1093
  • 1094
  • 1095
  • 1096
  • 1097
  • 1098
  • 1099
  • 1100
  • 1101
  • 1102
  • 1103
  • 1104
  • 1105
  • 1106
  • 1107
  • 1108
  • 1109
  • 1110
  • 1111
  • 1112
  • 1113
  • 1114
  • 1115
  • 1116
  • 1117
  • 1118
  • 1119
  • 1120
  • 1121
  • 1122
  • 1123
  • 1124
  • 1125
  • 1126
  • 1127
  • 1128
  • 1129
  • 1130
  • 1131
  • 1132
  • 1133
  • 1134
  • 1135
  • 1136
  • 1137
  • 1138
  • 1139
  • 1140
  • 1141
  • 1142
  • 1143
  • 1144
  • 1145
  • 1146
  • 1147
  • 1148
  • 1149
  • 1150
  • 1151
  • 1152
  • 1153
  • 1154
  • 1155
  • 1156
  • 1157
  • 1158
  • 1159
  • 1160
  • 1161
  • 1162
  • 1163
  • 1164
  • 1165
  • 1166
  • 1167
  • 1168
  • 1169
  • 1170
  • 1171
  • 1172
  • 1173
  • 1174
  • 1175
  • 1176
  • 1177
  • 1178
  • 1179
  • 1180
  • 1181
  • 1182
  • 1183
  • 1184
  • 1185
  • 1186
  • 1187
  • 1188
  • 1189
  • 1190
  • 1191
  • 1192
  • 1193
  • 1194
  • 1195
  • 1196
  • 1197
  • 1198
  • 1199
  • 1200
  • 1201
  • 1202
  • 1203
  • 1204
  • 1205
  • 1206
  • 1207
  • 1208
  • 1209
  • 1210
  • 1211
  • 1212
  • 1213
  • 1214
  • 1215
  • 1216
  • 1217
  • 1218
  • 1219
  • 1220
  • 1221
  • 1222
  • 1223
  • 1224
  • 1225
  • 1226
  • 1227
  • 1228
  • 1229
  • 1230
  • 1231
  • 1232
  • 1233
  • 1234
  • 1235
  • 1236
  • 1237
  • 1238
  • 1239
  • 1240
  • 1241
  • 1242
  • 1243
  • 1244
  • 1245
  • 1246
  • 1247
  • 1248
  • 1249
  • 1250
  • 1251
  • 1252
  • 1253
  • 1254
  • 1255
  • 1256
  • 1257
  • 1258
  • 1259
  • 1260
  • 1261
  • 1262
  • 1263
  • 1264
  • 1265
  • 1266
  • 1267
  • 1268
  • 1269
  • 1270
  • 1271
  • 1272
  • 1273
  • 1274
  • 1275
  • 1276
  • 1277
  • 1278
  • 1279
  • 1280
  • 1281
  • 1282
  • 1283
  • 1284
  • 1285
  • 1286
  • 1287
  • 1288
  • 1289
  • 1290
  • 1291
  • 1292
  • 1293
  • 1294
  • 1295
  • 1296
  • 1297
  • 1298
  • 1299
  • 1300
  • 1301
  • 1302
  • 1303
  • 1304
  • 1305
  • 1306
  • 1307
  • 1308
  • 1309
  • 1310
  • 1311
  • 1312
  • 1313
  • 1314
  • 1315
  • 1316
  • 1317
  • 1318
  • 1319
  • 1320
  • 1321
  • 1322
  • 1323
  • 1324
  • 1325
  • 1326
  • 1327
  • 1328
  • 1329
  • 1330
  • 1331
  • 1332
  • 1333
  • 1334
  • 1335
  • 1336
  • 1337
  • 1338
  • 1339
  • 1340
  • 1341
  • 1342
  • 1343
  • 1344
  • 1345
  • 1346
  • 1347
  • 1348
  • 1349
  • 1350
  • 1351
  • 1352
  • 1353
  • 1354
  • 1355
  • 1356
  • 1357
  • 1358
  • 1359
  • 1360
  • 1361
  • 1362
  • 1363
  • 1364
  • 1365
  • 1366
  • 1367
  • 1368
  • 1369
  • 1370
  • 1371
  • 1372
  • 1373
  • 1374
  • 1375
  • 1376
  • 1377
  • 1378
  • 1379
  • 1380
  • 1381
  • 1382
  • 1383
  • 1384
  • 1385
  • 1386
  • 1387
  • 1388
  • 1389
  • 1390
  • 1391
  • 1392
  • 1393
  • 1394
  • 1395
  • 1396
  • 1397
  • 1398
  • 1399
  • 1400
  • 1401
  • 1402
  • 1403
  • 1404
  • 1405
  • 1406
  • 1407
  • 1408
  • 1409
  • 1410
  • 1411
  • 1412
  • 1413
  • 1414
  • 1415
  • 1416
  • 1417
  • 1418
  • 1419
  • 1420
  • 1421
  • 1422
  • 1423
  • 1424
  • 1425
  • 1426
  • 1427
  • 1428
  • 1429
  • 1430
  • 1431
  • 1432
  • 1433
  • 1434
  • 1435
  • 1436
  • 1437
  • 1438
  • 1439
  • 1440
  • 1441
  • 1442
  • 1443
  • 1444
  • 1445
  • 1446
  • 1447
  • 1448
  • 1449
  • 1450
  • 1451
  • 1452
  • 1453
  • 1454
  • 1455
  • 1456
  • 1457
  • 1458
  • 1459
  • 1460
  • 1461
  • 1462
  • 1463
  • 1464
  • 1465
  • 1466
  • 1467
  • 1468
  • 1469
  • 1470
  • 1471
  • 1472
  • 1473
  • 1474
  • 1475
  • 1476
  • 1477
  • 1478
  • 1479
  • 1480
  • 1481
  • 1482
  • 1483
  • 1484
  • 1485
  • 1486
  • 1487
  • 1488
  • 1489
  • 1490
  • 1491
  • 1492
  • 1493
  • 1494
  • 1495
  • 1496
  • 1497
  • 1498
  • 1499
  • 1500
  • 1501
  • 1502
  • 1503
  • 1504
  • 1505
  • 1506
  • 1507
  • 1508
  • 1509
  • 1510
  • 1511
  • 1512
  • 1513
  • 1514
  • 1515
  • 1516
  • 1517
  • 1518
  • 1519
  • 1520
  • 1521
  • 1522
  • 1523
  • 1524
  • 1525
  • 1526
  • 1527
  • 1528
  • 1529
  • 1530
  • 1531
  • 1532
  • 1533
  • 1534
  • 1535
  • 1536
  • 1537
  • 1538
  • 1539
  • 1540
  • 1541
  • 1542
  • 1543
  • 1544
  • 1545
  • 1546
  • 1547
  • 1548
  • 1549
  • 1550
  • 1551
  • 1552
  • 1553
  • 1554
  • 1555
  • 1556
  • 1557
  • 1558
  • 1559
  • 1560
  • 1561
  • 1562
  • 1563
  • 1564
  • 1565
  • 1566
  • 1567
  • 1568
  • 1569
  • 1570
  • 1571
  • 1572
  • 1573
  • 1574
  • 1575
  • 1576
  • 1577
  • 1578
  • 1579
  • 1580
  • 1581
  • 1582
  • 1583
  • 1584
  • 1585
  • 1586
  • 1587
  • 1588
  • 1589

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/887277
推荐阅读
相关标签
  

闽ICP备14008679号