diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index d55f0f7..27214ee 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -5,11 +5,11 @@ const install = (Vue, vm) => {
     Vue.prototype.$u.http.setConfig({
         // baseUrl: 'http://61.174.243.28:15861',
         // baseUrl: 'http://192.168.2.46:8080',
-        baseUrl: 'https://che.chuangtewl.com/prod-api',
+        // baseUrl: 'https://che.chuangtewl.com/prod-api',
 		// 测试环境
         // baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
 		// 俞山岛
-        // baseUrl: 'https://dche.ccttiot.com/prod-api',
+        baseUrl: 'https://dche.ccttiot.com/prod-api',
 		// 创特
         loadingText: '努力加载中~',  
         loadingTime: 10000,
@@ -70,35 +70,35 @@ const install = (Vue, vm) => {
         //     })
         //     // return res.result;
         // }
-        if (res.code == 401) {
-            wx.login({
-                success(res) {
-                    if (res.code) {
-                        console.log('登录!', res);
-                        let areaId = uni.getStorageSync('areaId');
-                        if (areaId) {
-                            vm.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' + areaId).then(
-                                res => {
-                                    uni.hideLoading();
-                                    if (res.code == 200) {
-                                        uni.setStorageSync('token', res.token);
-                                    } else if (res.code == 501) {
-                                        uni.showToast({
-                                            title: res.msg,
-                                            icon: 'none',
-                                            duration: 2000
-                                        });
-                                    } else {
-                                        uni.navigateTo({
-                                            url: '/pages/login/login'
-                                        })
-                                    }
-                                });
-                        }
-                    }
-                },
-            });
-        }
+        // if (res.code == 401) {
+        //     wx.login({
+        //         success(res) {
+        //             if (res.code) {
+        //                 // console.log('登录!', res);
+        //                 let areaId = uni.getStorageSync('areaId');
+        //                 if (areaId) {
+        //                     vm.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' + areaId).then(
+        //                         res => {
+        //                             uni.hideLoading();
+        //                             if (res.code == 200) {
+        //                                 uni.setStorageSync('token', res.token);
+        //                             } else if (res.code == 501) {
+        //                                 uni.showToast({
+        //                                     title: res.msg,
+        //                                     icon: 'none',
+        //                                     duration: 2000
+        //                                 });
+        //                             } else {
+        //                                 uni.navigateTo({
+        //                                     url: '/pages/login/login'
+        //                                 })
+        //                             }
+        //                         });
+        //                 }
+        //             }
+        //         },
+        //     });
+        // }
         return res;
     }
 
diff --git a/main.js b/main.js
index c3291c8..96f6fa9 100644
--- a/main.js
+++ b/main.js
@@ -21,7 +21,7 @@ import'./common/css/iconfont.css'
 let mpShare = require('uview-ui/libs/mixin/mpShare.js');
 Vue.mixin(mpShare);
 
-// import tabbar from '@/pages_admin/components/tab-bar/tab-bar.vue';
+// import tabbar from '@/components/tab-bar/tab-bar.vue';
 
 // import customizeAnswer from'@/components/customizeAnswer/customizeAnswer.vue'
 // Vue.use('customizeAnswer',customizeAnswer)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 20e73a4..f3236cc 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1552,273 +1552,282 @@
 
 			},
 			deviceInfo(num) {
-				if (uni.getStorageSync('token')) {
-
-					if (this.sn) {
-						this.$u.get('/app/device/info?sn=' + this.sn).then((res) => {
-							if (res.code === 200) {
-								this.isqrcode = true
-								this.deviceInfos = res.data;
-								this.getlist(res.data.getlist)
-								if (!this.orderinfo.sn) {
-									this.mac = res.data.mac
+				if (this.sn) {
+					this.$u.get('/app/device/info?sn=' + this.sn).then((res) => {
+						if (res.code === 200) {
+							this.isqrcode = true
+							this.deviceInfos = res.data;
+							this.getlist(res.data.modelId)
+							if (!this.orderinfo.sn) {
+								this.mac = res.data.mac
+							}
+							if (num == 0) {
+								this.showdevice = true;
+								this.type = 0;
+								if (this.areaInfo.areaId != res.data.areaId) {
+									this.getArea()
 								}
-								if (num == 0) {
-									this.showdevice = true;
-									this.type = 0;
+								// this.routePlanning(res.data.latitude, res.data.longitude)
+								// setTimeout(() => {
+				
+								// 	// this.deviceIndex = 1;
+								// }, 600)
+							} else {
+								// if (this.deviceInfos.onlineStatus == 0) {
+								// 	wx.showToast({
+								// 		title: '车辆离线中,请使用其他车辆',
+								// 		icon: 'none',
+								// 		duration: 4000
+								// 	});
+								// } else
+								if (this.deviceInfos.status == 0) {
+									uni.showToast({
+										title: '车辆未上架,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 2) {
+									uni.showToast({
+										title: '车辆预约中,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 3) {
+									uni.showToast({
+										title: '车辆骑行中,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 4) {
+									uni.showToast({
+										title: '车辆临时锁车中,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 6) {
+									uni.showToast({
+										title: '车辆调度中,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 8) {
+									uni.showToast({
+										title: '车辆下线中,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 9) {
+									uni.showToast({
+										title: '车辆已废弃,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 7) {
+									uni.showToast({
+										title: '车辆未上线,请使用其他车辆',
+										icon: 'none',
+										duration: 4000
+									});
+								} else if (this.deviceInfos.status == 1) {
+				
 									if (this.areaInfo.areaId != res.data.areaId) {
 										this.getArea()
 									}
 									// this.routePlanning(res.data.latitude, res.data.longitude)
-									// setTimeout(() => {
-
-									// 	// this.deviceIndex = 1;
-									// }, 600)
-								} else {
-									// if (this.deviceInfos.onlineStatus == 0) {
-									// 	wx.showToast({
-									// 		title: '车辆离线中,请使用其他车辆',
-									// 		icon: 'none',
-									// 		duration: 4000
-									// 	});
-									// } else
-									if (this.deviceInfos.status == 0) {
-										uni.showToast({
-											title: '车辆未上架,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 2) {
-										uni.showToast({
-											title: '车辆预约中,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 3) {
-										uni.showToast({
-											title: '车辆骑行中,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 4) {
-										uni.showToast({
-											title: '车辆临时锁车中,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 6) {
-										uni.showToast({
-											title: '车辆调度中,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 8) {
-										uni.showToast({
-											title: '车辆下线中,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 9) {
-										uni.showToast({
-											title: '车辆已废弃,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 7) {
-										uni.showToast({
-											title: '车辆未上线,请使用其他车辆',
-											icon: 'none',
-											duration: 4000
-										});
-									} else if (this.deviceInfos.status == 1) {
-
-										if (this.areaInfo.areaId != res.data.areaId) {
-											this.getArea()
-										}
-										// this.routePlanning(res.data.latitude, res.data.longitude)
-										setTimeout(() => {
-											this.showdevice = true
-											this.type = 1;
-											this.deviceIndex = 1;
-										}, 600)
-
-									}
+									setTimeout(() => {
+										this.showdevice = true
+										this.type = 1;
+										this.deviceIndex = 1;
+									}, 600)
+				
 								}
-							} else {
-								this.showdevice = false;
-								this.deviceIndex = 0;
-								this.type = 0;
-								uni.showToast({
-									title: res.msg,
-									icon: 'none',
-									duration: 2000
-								});
 							}
-						});
-
-
-					}
-
-				} else {
-					console.log('判断2');
-					wx.login({
-						success: (res) => {
-							if (res.code) {
-								console.log('登录!', res);
-								let data = {
-									wxOpenId: res.code,
-								};
-								let areaId = uni.getStorageSync('areaId');
-								if (areaId) {
-									this.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' +
-											areaId)
-										.then((
-											res) => {
-											// uni.hideLoading();
-											if (res.code == 200) {
-												uni.setStorageSync('token', res.token);
-												this.getinfo()
-												if (this.sn) {
-													this.$u.get('/app/device/info?sn=' + this.sn)
-														.then((
-															res) => {
-															if (res.code === 200) {
-																this.isqrcode = true
-																this.deviceInfos = res.data;
-																this.getlist(res.data.getlist)
-																if (num == 0) {
-																	// this.routePlanning(res.data.latitude,
-																	// 	res.data.longitude)
-																	this.showdevice = true;
-																	this.type = 0;
-																} else {
-																	// if (this.deviceInfos
-																	// 	.onlineStatus ==
-																	// 	0) {
-																	// 	uni.showToast({
-																	// 		title: '车辆离线中,请使用其他车辆',
-																	// 		icon: 'none',
-																	// 		duration: 4000
-																	// 	});
-																	// } else
-																	if (this.deviceInfos
-																		.status ==
-																		0) {
-																		uni.showToast({
-																			title: '车辆未上架,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		2) {
-																		uni.showToast({
-																			title: '车辆预约中,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		3) {
-																		uni.showToast({
-																			title: '车辆骑行中,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		4) {
-																		uni.showToast({
-																			title: '车辆临时锁车中,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		6) {
-																		uni.showToast({
-																			title: '车辆调度中,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		8) {
-																		uni.showToast({
-																			title: '车辆下线中,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		9) {
-																		uni.showToast({
-																			title: '车辆已废弃,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		7) {
-																		uni.showToast({
-																			title: '车辆未上线,请使用其他车辆',
-																			icon: 'none',
-																			duration: 4000
-																		});
-																	} else if (this.deviceInfos
-																		.status ==
-																		1) {
-																		// this.routePlanning(res.data
-																		// 	.latitude, res.data
-																		// 	.longitude)
-																		if (this.areaInfo != res.data
-																			.areaId) {
-																			this.getArea()
-																		}
-																		// this.routePlanning(res.data.latitude, res.data.longitude)
-																		setTimeout(() => {
-																			this.showdevice =
-																				true
-																			this.type = 1;
-																			this.deviceIndex =
-																				1;
-																		}, 600)
-																	}
-																}
-															} else {
-																this.showdevice = false;
-																this.deviceIndex = 0;
-																this.type = 0;
-																uni.showToast({
-																	title: res.msg,
-																	icon: 'none',
-																	duration: 2000
-																});
-															}
-														});
-
-												}
-
-											} else if (res.code == 501) {
-												uni.showToast({
-													title: res.msg,
-													icon: 'none',
-													duration: 2000
-												});
-											} else {
-												uni.redirectTo({
-													url: '/pages/login/login'
-												});
-											}
-										});
-
-								}
-
-							}
-						},
+						} else {
+							this.showdevice = false;
+							this.deviceIndex = 0;
+							this.type = 0;
+							uni.showToast({
+								title: res.msg,
+								icon: 'none',
+								duration: 2000
+							});
+						}
 					});
+				
+				
 				}
+				
+			// 	if (uni.getStorageSync('token')) {
+
+					
+			// 	} else {
+			// 		console.log('判断2');
+			// 		uni.navigateTo({
+			// 		    url: '/pages/login/login'
+			// 		});
+			// 	// 	wx.login({
+			// 	// 		success: (res) => {
+			// 	// 			if (res.code) {
+			// 	// 				console.log('登录!', res);
+			// 	// 				let data = {
+			// 	// 					wxOpenId: res.code,
+			// 	// 				};
+			// 	// 				let areaId = uni.getStorageSync('areaId');
+			// 	// 				if (areaId) {
+			// 	// 					this.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' +
+			// 	// 							areaId)
+			// 	// 						.then((
+			// 	// 							res) => {
+			// 	// 							// uni.hideLoading();
+			// 	// 							if (res.code == 200) {
+			// 	// 								uni.setStorageSync('token', res.token);
+			// 	// 								this.getinfo()
+			// 	// 								if (this.sn) {
+			// 	// 									this.$u.get('/app/device/info?sn=' + this.sn)
+			// 	// 										.then((
+			// 	// 											res) => {
+			// 	// 											if (res.code === 200) {
+			// 	// 												this.isqrcode = true
+			// 	// 												this.deviceInfos = res.data;
+			// 	// 												this.getlist(res.data.modelId)
+			// 	// 												if (num == 0) {
+			// 	// 													// this.routePlanning(res.data.latitude,
+			// 	// 													// 	res.data.longitude)
+			// 	// 													this.showdevice = true;
+			// 	// 													this.type = 0;
+			// 	// 												} else {
+			// 	// 													// if (this.deviceInfos
+			// 	// 													// 	.onlineStatus ==
+			// 	// 													// 	0) {
+			// 	// 													// 	uni.showToast({
+			// 	// 													// 		title: '车辆离线中,请使用其他车辆',
+			// 	// 													// 		icon: 'none',
+			// 	// 													// 		duration: 4000
+			// 	// 													// 	});
+			// 	// 													// } else
+			// 	// 													if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														0) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆未上架,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														2) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆预约中,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														3) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆骑行中,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														4) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆临时锁车中,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														6) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆调度中,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														8) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆下线中,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														9) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆已废弃,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														7) {
+			// 	// 														uni.showToast({
+			// 	// 															title: '车辆未上线,请使用其他车辆',
+			// 	// 															icon: 'none',
+			// 	// 															duration: 4000
+			// 	// 														});
+			// 	// 													} else if (this.deviceInfos
+			// 	// 														.status ==
+			// 	// 														1) {
+			// 	// 														// this.routePlanning(res.data
+			// 	// 														// 	.latitude, res.data
+			// 	// 														// 	.longitude)
+			// 	// 														if (this.areaInfo != res.data
+			// 	// 															.areaId) {
+			// 	// 															this.getArea()
+			// 	// 														}
+			// 	// 														// this.routePlanning(res.data.latitude, res.data.longitude)
+			// 	// 														setTimeout(() => {
+			// 	// 															this.showdevice =
+			// 	// 																true
+			// 	// 															this.type = 1;
+			// 	// 															this.deviceIndex =
+			// 	// 																1;
+			// 	// 														}, 600)
+			// 	// 													}
+			// 	// 												}
+			// 	// 											} else {
+			// 	// 												this.showdevice = false;
+			// 	// 												this.deviceIndex = 0;
+			// 	// 												this.type = 0;
+			// 	// 												uni.showToast({
+			// 	// 													title: res.msg,
+			// 	// 													icon: 'none',
+			// 	// 													duration: 2000
+			// 	// 												});
+			// 	// 											}
+			// 	// 										});
+
+			// 	// 								}
+
+			// 	// 							} else if (res.code == 501) {
+			// 	// 								uni.showToast({
+			// 	// 									title: res.msg,
+			// 	// 									icon: 'none',
+			// 	// 									duration: 2000
+			// 	// 								});
+			// 	// 							} else {
+			// 	// 								uni.redirectTo({
+			// 	// 									url: '/pages/login/login'
+			// 	// 								});
+			// 	// 							}
+			// 	// 						});
+
+			// 	// 				}
+
+			// 	// 			}
+			// 	// 		},
+			// 	// 	});
+				
+				
+			// 	}
+			
+			
 			},
+			
 			mapFun() {
 				console.log('点击了');
 				uni.openLocation({
@@ -2386,15 +2395,57 @@
 
 			},
 			taploadmask(num) {
-				this.maskepage = 0
-				this.loadimg = 'https://lxnapi.ccttiot.com/bike/img/static/uRxPPoVoqmnmng6wKlij'
-				if (num == 1) {
-
-					if (!this.checkBeforeUnlock()) {
-						return;
-					}
-
-					if (this.showxy) {
+				if(uni.getStorageSync('token')){
+					this.maskepage = 0
+					this.loadimg = 'https://lxnapi.ccttiot.com/bike/img/static/uRxPPoVoqmnmng6wKlij'
+					if (num == 1) {
+					
+						if (!this.checkBeforeUnlock()) {
+							return;
+						}
+					
+						if (this.showxy) {
+							this.maskloading = true;
+							let percentage = 0;
+							const interval = setInterval(() => {
+								if (percentage < 98) {
+									percentage += 2; // 每次增加的百分比,可以调整
+									this.toploadtxt = `开锁中${percentage}%`;
+								} else {
+									clearInterval(interval);
+									this.toploadtxt = "开锁中98%";
+								}
+							}, 40); // 每40毫秒更新一次,可以调整
+							setTimeout(() => {
+								this.sub1();
+							}, 2100);
+						} else {
+							uni.showToast({
+								title: '请勾选协议',
+								icon: 'none',
+								duration: 2000
+							});
+						}
+					} else if (num == 2) {
+						//临时锁车
+						this.maskloading = true;
+						let percentage = 0;
+						const interval = setInterval(() => {
+							if (percentage < 98) {
+								percentage += 2; // 每次增加的百分比,可以调整
+								this.toploadtxt = `锁车中${percentage}%`;
+							} else {
+								console.log('调用了');
+								clearInterval(interval);
+								this.toploadtxt = "锁车中98%";
+							}
+						}, 40); // 每40毫秒更新一次,可以调整
+						setTimeout(() => {
+							this.loackdevice();
+						}, 2100);
+					
+					} else if (num == 3) {
+						//解锁用车
 						this.maskloading = true;
 						let percentage = 0;
 						const interval = setInterval(() => {
@@ -2402,85 +2453,53 @@
 								percentage += 2; // 每次增加的百分比,可以调整
 								this.toploadtxt = `开锁中${percentage}%`;
 							} else {
+								console.log('调用了');
 								clearInterval(interval);
 								this.toploadtxt = "开锁中98%";
 							}
 						}, 40); // 每40毫秒更新一次,可以调整
 						setTimeout(() => {
-							this.sub1();
+					
+							this.unloackdevices();
 						}, 2100);
-					} else {
-						uni.showToast({
-							title: '请勾选协议',
-							icon: 'none',
-							duration: 2000
-						});
-					}
-				} else if (num == 2) {
-					//临时锁车
-					this.maskloading = true;
-					let percentage = 0;
-					const interval = setInterval(() => {
-						if (percentage < 98) {
-							percentage += 2; // 每次增加的百分比,可以调整
-							this.toploadtxt = `锁车中${percentage}%`;
+					
+					} else if (num == 4) {
+					
+					
+						if (this.areaInfo.returnVerify == 1 && this.isupload == false) {
+							this.maskloading = true
+							this.maskepage = 8
 						} else {
-							console.log('调用了');
-							clearInterval(interval);
-							this.toploadtxt = "锁车中98%";
+							this.isupload = false
+							// 还车校验
+							this.maskloading = true;
+							let percentage = 0;
+							const interval = setInterval(() => {
+								if (percentage < 98) {
+									percentage += 2; // 每次增加的百分比,可以调整
+									this.toploadtxt = `还车地点校验中${percentage}%`;
+								} else {
+									clearInterval(interval);
+									this.toploadtxt = "还车地点校验中98%";
+								}
+							}, 40); // 每40毫秒更新一次,可以调整
+							setTimeout(() => {
+								this.cheackgps();
+							}, 2100);
+					
 						}
-					}, 40); // 每40毫秒更新一次,可以调整
-					setTimeout(() => {
-						this.loackdevice();
-					}, 2100);
-
-				} else if (num == 3) {
-					//解锁用车
-					this.maskloading = true;
-					let percentage = 0;
-					const interval = setInterval(() => {
-						if (percentage < 98) {
-							percentage += 2; // 每次增加的百分比,可以调整
-							this.toploadtxt = `开锁中${percentage}%`;
-						} else {
-							console.log('调用了');
-							clearInterval(interval);
-							this.toploadtxt = "开锁中98%";
-						}
-					}, 40); // 每40毫秒更新一次,可以调整
-					setTimeout(() => {
-
-						this.unloackdevices();
-					}, 2100);
-
-				} else if (num == 4) {
-
-
-					if (this.areaInfo.returnVerify == 1 && this.isupload == false) {
-						this.maskloading = true
-						this.maskepage = 8
-					} else {
-						this.isupload = false
-						// 还车校验
-						this.maskloading = true;
-						let percentage = 0;
-						const interval = setInterval(() => {
-							if (percentage < 98) {
-								percentage += 2; // 每次增加的百分比,可以调整
-								this.toploadtxt = `还车地点校验中${percentage}%`;
-							} else {
-								clearInterval(interval);
-								this.toploadtxt = "还车地点校验中98%";
-							}
-						}, 40); // 每40毫秒更新一次,可以调整
-						setTimeout(() => {
-							this.cheackgps();
-						}, 2100);
-
+					
 					}
-
+					
+								
+				}else{
+					this.seeDetail = true
+					uni.navigateTo({
+							    url: '/pages/login/login?isindex=true'
+							});
 				}
-
+				
+			
 			},
 
 			Binddevice() {
@@ -2967,55 +2986,62 @@
 			// 确认开锁
 			sub1() {
 				// uni.showLoading({});
-
-				let data = {
-					userId: this.userId,
-					sn: this.sn,
-					ruleId: this.freeInfo.ruleId,
-					mark: "确认开锁",
-					type: '1'
-				};
-
-				this.$u.post('/appVerify/device/snSwitch', data).then((res) => {
-					// uni.hideLoading();
-					this.seeDetail = false;
-					// res.code=500
-					// res.msg='低电量不得骑行'
-					if (res.code === 200) {
-						this.loadimg = 'https://lxnapi.ccttiot.com/bike/img/static/ukD735zCS1yQXw2aGun8';
-						this.toploadtxt = '开锁成功';
-						this.lastClickedMarkerId = null
-						this.mappolyline = []
-						setTimeout(() => {
-							this.maskloading = false;
-							this.getisInOrder();
-						}, 800);
-					} else {
-						if (res.msg == '您还未充值押金,请先充值押金') {
-							// this.close();
-							// this.maskloading = false;
-							this.maskepage = 6
-							this.showYjTip = true;
-						} else if (res.msg == '【扫码/编号开锁骑行】发送开锁命令失败') {
-							// this.maskepage=3 低电量不得骑行
-							this.offopencar()
-						} else if (res.msg == '低电量不得骑行') {
-							this.maskepage = 7
-							// this.offopencar()
-						} else {
-
-							this.toploadtxt = '开锁失败';
+				if (uni.getStorageSync('token')) {
+					let data = {
+						userId: this.userId,
+						sn: this.sn,
+						ruleId: this.freeInfo.ruleId,
+						mark: "确认开锁",
+						type: '1'
+					};
+					
+					this.$u.post('/appVerify/device/snSwitch', data).then((res) => {
+						// uni.hideLoading();
+						this.seeDetail = false;
+						// res.code=500
+						// res.msg='低电量不得骑行'
+						if (res.code === 200) {
+							this.loadimg = 'https://lxnapi.ccttiot.com/bike/img/static/ukD735zCS1yQXw2aGun8';
+							this.toploadtxt = '开锁成功';
+							this.lastClickedMarkerId = null
+							this.mappolyline = []
 							setTimeout(() => {
 								this.maskloading = false;
-								uni.showToast({
-									title: res.msg,
-									icon: 'none',
-									duration: 2000
-								});
+								this.getisInOrder();
 							}, 800);
+						} else {
+							if (res.msg == '您还未充值押金,请先充值押金') {
+								// this.close();
+								// this.maskloading = false;
+								this.maskepage = 6
+								this.showYjTip = true;
+							} else if (res.msg == '【扫码/编号开锁骑行】发送开锁命令失败') {
+								// this.maskepage=3 低电量不得骑行
+								this.offopencar()
+							} else if (res.msg == '低电量不得骑行') {
+								this.maskepage = 7
+								// this.offopencar()
+							} else {
+					
+								this.toploadtxt = '开锁失败';
+								setTimeout(() => {
+									this.maskloading = false;
+									uni.showToast({
+										title: res.msg,
+										icon: 'none',
+										duration: 2000
+									});
+								}, 800);
+							}
 						}
-					}
-				});
+					});
+						
+				}else{
+					
+				}
+			
+			
+			
 			},
 
 			backDevicecar() {
@@ -5128,111 +5154,113 @@
 
 
 					} else {
-
-						let that = this;
-						wx.login({
-							success(res) {
-								if (res.code) {
-									console.log('登录成功!', res);
-									let areaId = uni.getStorageSync('areaId');
-									uni.showLoading({
-										title: '登录中...'
-									});
-									that.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' +
-											areaId)
-										.then(res => {
-											uni.hideLoading();
-											if (res.code == 200) {
-												uni.setStorageSync('token', res.token);
-												if (that.areaInfo.authentication == 1) {
-													that.$u.get("/getAppInfo").then(res => {
-														if (res.code == 200) {
-															that.userinfo = res.user;
-															that.$store.commit(
-																'SET_USERID', res
-																.user.userId);
-															if (res.user
-																.isAuthentication == 0) {
-																uni.hideLoading()
-																that.seeDetail = true;
-																that.tozf = true
-																uni.navigateTo({
-																	url: "/page_user/idcard_test"
-																});
-															} else {
-																that.seeDetail = true;
-																that.tozf = true
-																uni.hideLoading()
-																console.log('跳转3');
-																uni.navigateTo({
-																	url: '/page_user/yj?isback=' +
-																		that
-																		.showYjTip
-																});
-																that.showYjTip = false
-															}
-														} else {
-															uni.hideLoading()
-															uni.showToast({
-																title: '未登录,请登录后尝试',
-																icon: 'none',
-																duration: 2000
-															});
-														}
-													});
-												} else {
-													that.tozf = true
-													that.seeDetail = true;
-													uni.hideLoading()
-													console.log('跳转4');
-													uni.navigateTo({
-														url: '/page_user/yj?isback=' + that
-															.showYjTip
-													});
-													that.showYjTip = false
-												}
-											} else if (res.code == 501) {
-												uni.hideLoading()
-												uni.showToast({
-													title: res.msg,
-													icon: 'none',
-													duration: 2000
-												});
-											} else {
-												uni.hideLoading()
-												uni.redirectTo({
-													url: '/pages/login/login'
-												});
-											}
-										}).catch(err => {
-											uni.hideLoading();
-											uni.showToast({
-												title: '请求失败,请稍后重试',
-												icon: 'none',
-												duration: 2000
-											});
-											console.error('请求失败:', err);
-										});
-								} else {
-									uni.hideLoading()
-									uni.showToast({
-										title: '登录失败,请重试',
-										icon: 'none',
-										duration: 2000
-									});
-									console.error('微信登录失败:', res);
-								}
-							},
-							fail(err) {
-								uni.hideLoading()
-								uni.showToast({
-									title: '微信登录接口调用失败',
-									icon: 'none',
-									duration: 2000
+						this.seeDetail = true
+						uni.navigateTo({
+								    url: '/pages/login/login?isindex=true'
 								});
-								console.error('微信登录接口调用失败:', err);
-							}
-						});
+						// wx.login({
+						// 	success(res) {
+						// 		if (res.code) {
+						// 			console.log('登录成功!', res);
+						// 			let areaId = uni.getStorageSync('areaId');
+						// 			uni.showLoading({
+						// 				title: '登录中...'
+						// 			});
+						// 			that.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' +
+						// 					areaId)
+						// 				.then(res => {
+						// 					uni.hideLoading();
+						// 					if (res.code == 200) {
+						// 						uni.setStorageSync('token', res.token);
+						// 						if (that.areaInfo.authentication == 1) {
+						// 							that.$u.get("/getAppInfo").then(res => {
+						// 								if (res.code == 200) {
+						// 									that.userinfo = res.user;
+						// 									that.$store.commit(
+						// 										'SET_USERID', res
+						// 										.user.userId);
+						// 									if (res.user
+						// 										.isAuthentication == 0) {
+						// 										uni.hideLoading()
+						// 										that.seeDetail = true;
+						// 										that.tozf = true
+						// 										uni.navigateTo({
+						// 											url: "/page_user/idcard_test"
+						// 										});
+						// 									} else {
+						// 										that.seeDetail = true;
+						// 										that.tozf = true
+						// 										uni.hideLoading()
+						// 										console.log('跳转3');
+						// 										uni.navigateTo({
+						// 											url: '/page_user/yj?isback=' +
+						// 												that
+						// 												.showYjTip
+						// 										});
+						// 										that.showYjTip = false
+						// 									}
+						// 								} else {
+						// 									uni.hideLoading()
+						// 									uni.showToast({
+						// 										title: '未登录,请登录后尝试',
+						// 										icon: 'none',
+						// 										duration: 2000
+						// 									});
+						// 								}
+						// 							});
+						// 						} else {
+						// 							that.tozf = true
+						// 							that.seeDetail = true;
+						// 							uni.hideLoading()
+						// 							console.log('跳转4');
+						// 							uni.navigateTo({
+						// 								url: '/page_user/yj?isback=' + that
+						// 									.showYjTip
+						// 							});
+						// 							that.showYjTip = false
+						// 						}
+						// 					} else if (res.code == 501) {
+						// 						uni.hideLoading()
+						// 						uni.showToast({
+						// 							title: res.msg,
+						// 							icon: 'none',
+						// 							duration: 2000
+						// 						});
+						// 					} else {
+						// 						uni.hideLoading()
+						// 						uni.redirectTo({
+						// 							url: '/pages/login/login'
+						// 						});
+						// 					}
+						// 				}).catch(err => {
+						// 					uni.hideLoading();
+						// 					uni.showToast({
+						// 						title: '请求失败,请稍后重试',
+						// 						icon: 'none',
+						// 						duration: 2000
+						// 					});
+						// 					console.error('请求失败:', err);
+						// 				});
+						// 		} else {
+						// 			uni.hideLoading()
+						// 			uni.showToast({
+						// 				title: '登录失败,请重试',
+						// 				icon: 'none',
+						// 				duration: 2000
+						// 			});
+						// 			console.error('微信登录失败:', res);
+						// 		}
+						// 	},
+						// 	fail(err) {
+						// 		uni.hideLoading()
+						// 		uni.showToast({
+						// 			title: '微信登录接口调用失败',
+						// 			icon: 'none',
+						// 			duration: 2000
+						// 		});
+						// 		console.error('微信登录接口调用失败:', err);
+						// 	}
+						// });
 
 
 						this.showYjTip = false
@@ -5257,10 +5285,17 @@
 					}
 
 				} else if (num == 5) {
-
-					uni.navigateTo({
-						url: '/page_user/gzsb'
-					})
+					if (uni.getStorageSync('token')) {
+						uni.navigateTo({
+							url: '/page_user/gzsb'
+						})
+					}else{
+						this.seeDetail = true
+						uni.navigateTo({
+								    url: '/pages/login/login?isindex=true'
+						});
+					}
+				
 				} else if (num == 6) {
 					// console.log('点击了');
 					this.sn = ''
diff --git a/pages/login/login.vue b/pages/login/login.vue
index e8cff5f..3995bff 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -244,10 +244,16 @@
 				codeButtonText2: '获取验证码',
 				countdown2: 60,
 				openCode:null,
+				isindex:false
 			}
 		},
-		onLoad() {
+		onLoad(e) {
 			this.deptId = uni.getStorageSync('deptId');
+			
+			if(e.isindex=='true'){
+				this.isindex=true
+			}
+			
 			// this.deptId = 101
 		},
 		computed: {
@@ -639,9 +645,16 @@
 			async ceshi() {
 				this.$u.get("/getAppInfo").then((res) => {
 					console.log('进入跳转');
-					uni.navigateTo({
-						url: '/pages/index/index'
-					})
+					if(this.isindex==true){
+						uni.navigateBack({
+							delta: 1 // delta值为1时表示返回的页面层数
+						});
+					}else{
+						uni.navigateTo({
+							url: '/pages/index/index'
+						})
+					}
+				
 				});
 			},
 		}
diff --git a/pages/my.vue b/pages/my.vue
index b3304dd..f4805cf 100644
--- a/pages/my.vue
+++ b/pages/my.vue
@@ -586,52 +586,70 @@
 						// 	})
 						// }
 					} else {
+						uni.redirectTo({
+						    url: '/pages/login/login'
+						});
+						// let areaId = uni.getStorageSync('areaId');
+						// if (areaId) {
+						// 	let areaId = uni.getStorageSync('areaId');
+						// 	if (areaId) {
+						// 	    let that = this;
+						// 	    wx.login({
+						// 	        success(res) {
+						// 	            if (res.code) {
+						// 	                console.log('登录111', res);
+						// 	                let data = {
+						// 	                    wxOpenId: res.code,
+						// 	                };
+						// 	                let areaId = uni.getStorageSync('areaId');
+							                
+						// 	                // 显示带有确定和取消按钮的弹窗
+						// 	                uni.showModal({
+						// 	                    title: '确认登录',
+						// 	                    content: '是否使用当前微信账户进行登录?',
+						// 	                    success(modalRes) {
+						// 	                        if (modalRes.confirm) {
+						// 	                            console.log('用户点击确定');
+						// 	                            // 用户点击确定,继续执行登录操作
+						// 	                            that.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' + areaId)
+						// 	                            .then(res => {
+						// 	                                uni.hideLoading();
+						// 	                                if (res.code == 200) {
+						// 	                                    uni.setStorageSync('token', res.token);
+						// 	                                    that.getuserInfo();
+						// 	                                } else if (res.code == 501) {
+						// 	                                    uni.showToast({
+						// 	                                        title: res.msg,
+						// 	                                        icon: 'none',
+						// 	                                        duration: 2000
+						// 	                                    });
+						// 	                                } else {
+						// 	                                    uni.redirectTo({
+						// 	                                        url: '/pages/login/login'
+						// 	                                    });
+						// 	                                }
+						// 	                            });
+						// 	                        } else if (modalRes.cancel) {
+						// 	                            console.log('用户点击取消');
+						// 								uni.redirectTo({
+						// 								    url: '/pages/login/login'
+						// 								});
+						// 	                            // 用户点击取消,可以进行其他操作或提示
+						// 	                        }
+						// 	                    }
+						// 	                });
+						// 	            }
+						// 	        }
+						// 	    });
+						// 	}
 
-						let areaId = uni.getStorageSync('areaId');
-						if (areaId) {
-							let that = this
-							wx.login({
-								success(res) {
-									if (res.code) {
-										console.log('登录!', res);
-										let data = {
-											wxOpenId: res.code,
-
-										};
-										let areaId = uni.getStorageSync('areaId');
-										that.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' +
-											areaId).then(
-											res => {
-												uni.hideLoading();
-												if (res.code == 200) {
-													uni.setStorageSync('token', res.token);
-													that.getuserInfo()
-
-
-												} else if (res.code == 501) {
-													uni.showToast({
-														title: res.msg,
-														icon: 'none',
-														duration: 2000
-													});
-												} else {
-													// console.log("老用户登录",res.data)
-													uni.redirectTo({
-														url: '/pages/login/login'
-													})
-												}
-											});
-									}
-								},
-
-							});
-						} else {
-							uni.showToast({
-								title: '请授权位置信息后再尝试',
-								icon: 'none',
-								duration: 4000
-							});
-						}
+						// } else {
+						// 	uni.showToast({
+						// 		title: '请授权位置信息后再尝试',
+						// 		icon: 'none',
+						// 		duration: 4000
+						// 	});
+						// }
 
 					}
 				});