xiaoxin 2 gadi atpakaļ
vecāks
revīzija
06cc8b68d2

+ 1 - 1
pages.json

@@ -423,7 +423,7 @@
 				{
 					"path": "authentication/authentication",
 					"style": {
-						"navigationBarTitleText": "身份认证",
+						"navigationBarTitleText": "拍照",
 						"enablePullDownRefresh": false
 					}
 				},

+ 12 - 12
pagesClockIn/addRules/addRules.vue

@@ -55,22 +55,22 @@
 
 		<view class="box">
 			<view class="name">除去法定节假:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="holiday" @change="switchChange" /></view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="holiday" @change="switchChange" /></view>
 		</view>
 
 		<view class="box">
 			<view class="name">是否需要拍摄场景照片:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="takePicture" @change="switchChange_takePicture" /></view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="takePicture" @change="switchChange_takePicture" /></view>
 		</view>
 
 		<view class="box">
-			<view class="name">是否需要人脸识别:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="faceRecognition" @change="switchChange_faceRecognition" /></view>
+			<view class="name">是否需要拍摄人脸:</view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="faceRecognition" @change="switchChange_faceRecognition" /></view>
 		</view>
 
 		<view class="box">
 			<view class="name">是否提前通知全部人员:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="notifyAll" @change="switchChange_notifyAll" /></view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="notifyAll" @change="switchChange_notifyAll" /></view>
 		</view>
 
 		<!-- 确认按钮区域 -->
@@ -104,7 +104,7 @@ export default {
 			holiday: false,
 			// 是否需要拍摄场景照片
 			takePicture: false,
-			// 是否需要人脸识别
+			// 是否需要拍摄人脸
 			faceRecognition: false,
 			// 是否提前通知全部人员
 			notifyAll: false,
@@ -114,15 +114,15 @@ export default {
 	},
 	onLoad() {
 		// 监听updateRuleName事件修改规则名称
-		uni.$on('updateRuleName', data => {
+		uni.$on('updateRuleName', (data) => {
 			this.ruleName = data
 		})
 
 		// 监听updateRuleGroup事件修改考勤组
-		uni.$on('updateRuleGroup', data => {
+		uni.$on('updateRuleGroup', (data) => {
 			let temList = []
 			this.groupIds = []
-			data.forEach(ele => {
+			data.forEach((ele) => {
 				temList.push(ele.name)
 				this.groupIds.push(ele.id)
 			})
@@ -152,7 +152,7 @@ export default {
 		if (temPlace) {
 			this.locations = temPlace
 			let temList = []
-			temPlace.forEach(ele => {
+			temPlace.forEach((ele) => {
 				temList.push(ele.name)
 			})
 			this.place = temList.join(',')
@@ -208,7 +208,7 @@ export default {
 			uni.showModal({
 				title: '提示',
 				content: '确定新增吗?',
-				success: async res => {
+				success: async (res) => {
 					if (res.confirm) {
 						let res = await this.$myRequest_clockIn({
 							url: '/attendance/api/settings/rule/add',
@@ -219,7 +219,7 @@ export default {
 								'Accept-Language': 'zh-CN,zh;q=0.9'
 							},
 							data: {
-								// 是否需要人脸识别
+								// 是否需要拍摄人脸
 								faceRecognition: this.faceRecognition,
 								// 考勤组ID列表
 								groupIds: this.groupIds,

+ 11 - 148
pagesClockIn/authentication/authentication.vue

@@ -1,15 +1,11 @@
 <template>
 	<view class="container">
-		<view class="notes">拍摄您本人人脸,确保对准手机,光线充足</view>
 		<view class="msg">{{ name }} {{ cardNumber }}</view>
-		<!-- <view class="info">
-			<span v-if="tipsText">{{ tipsText }}</span>
-		</view> -->
 		<view class="photo">
 			<camera class="img" v-if="isAuthCamera" device-position="front" flash="off" resolution="high" />
 			<img v-else :src="tempImg" />
 		</view>
-		<view class="button" @click="handleTakePhotoClick">开启身份认证</view>
+		<view class="button" @click="handleTakePhotoClick">开始拍照</view>
 
 		<!-- 认证结果弹窗 -->
 		<uni-popup ref="popup" :is-mask-click="false">
@@ -31,8 +27,6 @@ import { RSAencrypt } from '../util/WxmpRsa.js'
 export default {
 	data() {
 		return {
-			// 错误文案提示
-			tipsText: '人脸检测初始化失败,请退出重试',
 			// 当前时间
 			nowTime: '',
 			// 本地图片路径 被匹对照片
@@ -79,70 +73,20 @@ export default {
 	methods: {
 		// 初始化相机引擎
 		initData() {
-			// #ifdef MP-WEIXIN
-			// 1、初始化人脸识别
-			wx.initFaceDetect()
-			// 2、创建 camera 上下文 CameraContext 对象
-			this.cameraEngine = wx.createCameraContext()
-			// 3、获取 Camera 实时帧数据
+			// 创建 camera 上下文 CameraContext 对象
+			this.cameraEngine = uni.createCameraContext()
+			// 获取 Camera 实时帧数据
 			const listener = this.cameraEngine.onCameraFrame((frame) => {
 				if (this.tempImg) {
 					return
 				}
-				// 4、人脸识别,使用前需要通过 wx.initFaceDetect 进行一次初始化,推荐使用相机接口返回的帧数据
-				wx.faceDetect({
-					frameBuffer: frame.data,
-					width: frame.width,
-					height: frame.height,
-					enablePoint: true,
-					enableConf: true,
-					enableAngle: true,
-					enableMultiFace: true,
-					success: (faceData) => {
-						// let face = faceData.faceInfo[0]
-						// if (faceData.x == -1 || faceData.y == -1) {
-						// 	this.tipsText = '检测不到人'
-						// }
-						// if (faceData.faceInfo.length > 1) {
-						// 	this.tipsText = '请保证只有一个人'
-						// } else {
-						// 	const { pitch, roll, yaw } = face.angleArray
-						// 	const standard = 0.5
-						// 	if (Math.abs(pitch) >= standard || Math.abs(roll) >= standard || Math.abs(yaw) >= standard) {
-						// 		this.tipsText = '请平视摄像头'
-						// 	} else if (
-						// 		face.confArray.global <= 0.8 ||
-						// 		face.confArray.leftEye <= 0.8 ||
-						// 		face.confArray.mouth <= 0.8 ||
-						// 		face.confArray.nose <= 0.8 ||
-						// 		face.confArray.rightEye <= 0.8
-						// 	) {
-						// 		this.tipsText = '请勿遮挡五官'
-						// 	} else {
-						// 		this.tipsText = '请点击下方按钮开始认证'
-						// 		// 这里可以写自己的逻辑了
-						// 	}
-						// }
-					},
-					fail: (err) => {
-						if (err.x == -1 || err.y == -1) {
-							this.tipsText = '检测不到人'
-						} else {
-							this.tipsText = '网络错误,请退出页面重试'
-						}
-					}
-				})
 			})
 			// 5、开始监听帧数据
 			listener.start()
-			// #endif
 		},
 
 		// 拍照点击
 		handleTakePhotoClick() {
-			// if (this.tipsText != '' && this.tipsText != '请点击下方按钮开始认证') {
-			// 	return
-			// }
 			uni.getSetting({
 				success: (res) => {
 					if (!res.authSetting['scope.camera']) {
@@ -158,19 +102,17 @@ export default {
 				}
 			})
 			this.cameraEngine.takePhoto({
-				// quality: 'low',
 				quality: 'high',
 				success: ({ tempImagePath }) => {
 					this.tempImg = tempImagePath
 					this.isAuthCamera = false
-					this.tipsText = ''
 					this.handleOkClick()
 				}
 			})
 		},
 		// 上传
 		handleOkClick() {
-			//  这里的 this.tempImg 是经过人脸检测后  拍照拿到的路径
+			//  这里的 this.tempImg 是拍照拿到的图片路径
 			this.upLoadOne(this.tempImg)
 		},
 		upLoadOne(url) {
@@ -178,30 +120,8 @@ export default {
 				title: '认证中,请稍后...'
 			})
 			setTimeout(() => {
-				// uni.uploadFile({
-				// 	url: `https://chtech.ncjti.edu.cn/campusclock/attendance/api/file/upload`,
-				// 	filePath: url,
-				// 	name: 'file',
-				// 	header: {
-				// 		platform: 2,
-				// 		'Accept-Language': 'zh-CN,zh;q=0.9'
-				// 	},
-				// 	success: uploadFileRes => {
-				// 		let imgUrl = JSON.parse(uploadFileRes.data).data
-				// 		// this.handleUploading(imgUrl)
-				// 		this.handleEncrypt(imgUrl)
-				// 	},
-				// 	fail: () => {
-				// 		uni.showToast({
-				// 			title: '上传失败',
-				// 			icon: 'error'
-				// 		})
-				// 	}
-				// })
-
 				uni.uploadFile({
 					url: `https://chtech.ncjti.edu.cn/gxy/facedemo/face-api/ihotel/mapper/face/compareTwoFace`,
-					// url: `http://192.168.161.220:8089/ihotel/mapper/face/compareTwoFace`,
 					filePath: url,
 					name: 'file',
 					formData: {
@@ -231,8 +151,6 @@ export default {
 							this.tempImg = ''
 							this.isAuthCamera = true
 						}
-
-						// this.handleEncrypt(imgUrl)
 					},
 					fail: () => {
 						uni.showToast({
@@ -243,54 +161,6 @@ export default {
 				})
 			}, 1000)
 		},
-
-		// 对比人脸请求
-		// handleEncrypt(imgUrl) {
-		// 	uni.showLoading({
-		// 		title: '认证中,请稍后...'
-		// 	})
-		// 	uni.request({
-		// 		url: 'https://chtech.ncjti.edu.cn/testingServer/faceVerification/api/identity-comparison-record/comparison',
-		// 		method: 'post',
-		// 		data: {
-		// 			data: RSAencrypt(
-		// 				encrypt(
-		// 					JSON.stringify({
-		// 						url: imgUrl,
-		// 						name: this.name,
-		// 						// name: '周祥',
-		// 						idCard: this.cardNumber,
-		// 						category: '校园打卡',
-		// 						studentNumber: this.cardNumber
-		// 					})
-		// 				)
-		// 			)
-		// 		},
-		// 		success: (res) => {
-		// 			if (res.data.status == 200) {
-		// 				let result = JSON.parse(decrypt(res.data.authorization))
-		// 				// console.log(result)
-		// 				if (result.status == 200) {
-		// 					uni.showToast({
-		// 						title: result.desc
-		// 					})
-		// 					setTimeout(() => {
-		// 						this.handleUploading(imgUrl)
-		// 					}, 1500)
-		// 				} else {
-		// 					uni.showToast({
-		// 						title: `${result.desc},请重新认证`,
-		// 						icon: 'error',
-		// 						duration: 2000
-		// 					})
-		// 					this.tempImg = ''
-		// 					this.isAuthCamera = true
-		// 					// this.initData()
-		// 				}
-		// 			}
-		// 		}
-		// 	})
-		// },
 		async handleUploading(imgUrl) {
 			let res = await this.$myRequest_clockIn({
 				url: '/attendance/api/sign/check/in/update',
@@ -336,25 +206,18 @@ export default {
 
 <style lang="scss" scoped>
 .container {
-	.notes {
-		margin-top: 110rpx;
-		text-align: center;
-		font-size: 28rpx;
-	}
+	// .notes {
+	// 	margin-top: 110rpx;
+	// 	text-align: center;
+	// 	font-size: 28rpx;
+	// }
 
 	.msg {
-		margin-top: 10rpx;
+		margin-top: 120rpx;
 		text-align: center;
 		font-size: 28rpx;
 	}
 
-	.info {
-		margin-top: 100rpx;
-		height: 40rpx;
-		text-align: center;
-		color: #5393ff;
-	}
-
 	.photo {
 		margin: 0 auto;
 		margin-top: 180rpx;

BIN
pagesClockIn/authentication/imgs/photo.png


+ 16 - 16
pagesClockIn/editRules/editRules.vue

@@ -55,22 +55,22 @@
 
 		<view class="box">
 			<view class="name">除去法定节假:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="holiday" @change="switchChange" /></view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="holiday" @change="switchChange" /></view>
 		</view>
 
 		<view class="box">
 			<view class="name">是否需要拍摄场景照片:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="takePicture" @change="switchChange_takePicture" /></view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="takePicture" @change="switchChange_takePicture" /></view>
 		</view>
 
 		<view class="box">
-			<view class="name">是否需要人脸识别:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="faceRecognition" @change="switchChange_faceRecognition" /></view>
+			<view class="name">是否需要拍摄人脸:</view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="faceRecognition" @change="switchChange_faceRecognition" /></view>
 		</view>
 
 		<view class="box">
 			<view class="name">是否提前通知全部人员:</view>
-			<view class="val2"><switch style="transform:scale(0.8)" color="#3396FB" :checked="notifyAll" @change="switchChange_notifyAll" /></view>
+			<view class="val2"><switch style="transform: scale(0.8)" color="#3396FB" :checked="notifyAll" @change="switchChange_notifyAll" /></view>
 		</view>
 
 		<!-- 确认按钮区域 -->
@@ -109,7 +109,7 @@ export default {
 			holiday: false,
 			// 是否需要拍摄场景照片
 			takePicture: false,
-			// 是否需要人脸识别
+			// 是否需要拍摄人脸
 			faceRecognition: false,
 			// 是否提前通知全部人员
 			notifyAll: false,
@@ -118,14 +118,14 @@ export default {
 		}
 	},
 	onLoad(option) {
-		uni.$on('updateRuleName', data => {
+		uni.$on('updateRuleName', (data) => {
 			this.ruleName = data
 		})
 
-		uni.$on('updateRuleGroup', data => {
+		uni.$on('updateRuleGroup', (data) => {
 			let temList = []
 			this.groupIds = []
-			data.forEach(ele => {
+			data.forEach((ele) => {
 				temList.push(ele.name)
 				this.groupIds.push(ele.id)
 			})
@@ -142,7 +142,7 @@ export default {
 		if (rulePlace) {
 			this.locations = rulePlace
 			let temList = []
-			rulePlace.forEach(ele => {
+			rulePlace.forEach((ele) => {
 				temList.push(ele.name)
 			})
 			this.place = temList.join(',')
@@ -175,7 +175,7 @@ export default {
 				// 考勤组
 				let temList = []
 				this.groupIds = []
-				res.data.groups.forEach(ele => {
+				res.data.groups.forEach((ele) => {
 					temList.push(ele.name)
 					this.groupIds.push(ele.id)
 				})
@@ -187,7 +187,7 @@ export default {
 				// 打卡地点
 				let temList2 = []
 				this.locations = res.data.locations
-				res.data.locations.forEach(ele => {
+				res.data.locations.forEach((ele) => {
 					temList2.push(ele.name)
 				})
 				this.place = temList2.join(',')
@@ -197,7 +197,7 @@ export default {
 
 				// 法定节假日
 				this.holiday = res.data.holiday
-				// 人脸识别
+				// 拍摄人脸
 				this.faceRecognition = res.data.faceRecognition
 				// 场景照片
 				this.takePicture = res.data.takePicture
@@ -247,7 +247,7 @@ export default {
 			uni.showModal({
 				title: '提示',
 				content: '确定修改吗?',
-				success: async res => {
+				success: async (res) => {
 					if (res.confirm) {
 						let res = await this.$myRequest_clockIn({
 							url: '/attendance/api/settings/rule/update',
@@ -260,7 +260,7 @@ export default {
 							data: {
 								// 编辑的规则id
 								id: this.id,
-								// 是否需要人脸识别
+								// 是否需要拍摄人脸
 								faceRecognition: this.faceRecognition,
 								// 考勤组ID列表
 								groupIds: this.groupIds,
@@ -302,7 +302,7 @@ export default {
 			uni.showModal({
 				title: '提示',
 				content: '确定删除吗?',
-				success: async res => {
+				success: async (res) => {
 					if (res.confirm) {
 						let res = await this.$myRequest_clockIn({
 							url: '/attendance/api/settings/rule/delete',

+ 56 - 22
pagesClockIn/home/home.vue

@@ -125,10 +125,12 @@ export default {
 			pageUrl: '',
 			// 是否显示底部 我的 导航栏
 			showTab: false,
-			// 是否需要人脸识别
+			// 是否需要拍摄人脸
 			faceRecognition: true,
 			// 是否需要拍摄场景照片
-			takePicture: true
+			takePicture: true,
+			// 刷新定位定时器
+			timer2: null
 		}
 	},
 	onLoad() {
@@ -144,10 +146,10 @@ export default {
 	},
 	onShow() {
 		this.getPageUrl()
-		// 获取当前位置的详细信息
-		this.getLocationData()
 		// 获取当前时间的时间戳
 		this.getTimestamp()
+		// 获取当前位置的详细信息
+		this.getLocationData()
 	},
 	onUnload() {
 		if (this.timer) {
@@ -162,6 +164,9 @@ export default {
 			// 申请的key
 			key: 'X57BZ-ZISE3-KTN3O-3P45H-C3J7Q-D5B67'
 		})
+		if (this.timer2) {
+			clearInterval(this.timer2)
+		}
 		this.getNowTime()
 		this.getTimestamp()
 		this.getUserInfo()
@@ -331,6 +336,7 @@ export default {
 				}
 			}
 		},
+
 		// 对比信息改变打卡的状态显示
 		changeType() {
 			if (this.contrastObj.status == 4) {
@@ -374,10 +380,53 @@ export default {
 						}
 					}
 				}
+				this.updateLocation()
+			}
+		},
+
+		// 每5秒更新当前定位
+		updateLocation() {
+			if (this.timer2) {
+				clearInterval(this.timer2)
 			}
+			this.timer2 = setInterval(() => {
+				qqmapsdk.reverseGeocoder({
+					success: (res) => {
+						if (res.status == 0) {
+							// 获取详细地址信息 经纬度
+							this.address = res.result.address
+							this.myLat = res.result.location.lat
+							this.myLng = res.result.location.lng
+							this.getTimestamp()
+							this.changeType()
+						} else {
+							uni.showToast({
+								title: '请求定位失败',
+								icon: 'none'
+							})
+						}
+					},
+					fail: (error) => {
+						uni.getLocation({
+							type: 'gcj02',
+							success: (res) => {
+								this.myLat = res.latitude
+								this.myLng = res.longitude
+								this.address = '未知地址'
+								this.getTimestamp()
+								this.changeType()
+							}
+						})
+					}
+				})
+			}, 5000)
 		},
+
 		// 点击每一个打卡规则回调
 		handleClick(item) {
+			if (this.timer2) {
+				clearInterval(this.timer2)
+			}
 			// console.log(item);
 			this.getTimestamp()
 			this.contrastObj = item
@@ -390,7 +439,7 @@ export default {
 		handlePunch(info) {
 			if (this.flags) {
 				let obj = JSON.stringify(info)
-				// 如果场景照片和人脸识别都需要
+				// 如果场景照片和拍摄人脸都需要
 				if (this.faceRecognition && this.takePicture) {
 					uni.navigateTo({
 						url: `/pagesClockIn/location/location?obj=${obj}`
@@ -406,30 +455,15 @@ export default {
 						url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
 					})
 				}
-				// 如果只需要人脸识别
+				// 如果只需要拍摄人脸
 				else if (this.faceRecognition) {
 					uni.navigateTo({
 						url: `/pagesClockIn/authentication/authentication?id=${this.contrastObj.id}&address=${this.address}&latitude=${this.myLat}&longitude=${this.myLng}&flag=1`
 					})
-					// uni.navigateTo({
-					// 	url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
-					// })
 				}
 			}
 		},
-		// handlePunch(info) {
-		// 	if (this.flags) {
-		// 		let obj = JSON.stringify(info)
-		// 		// 如果需要场景照片
-		// 		if (this.takePicture) {
-		// 			uni.navigateTo({
-		// 				url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
-		// 			})
-		// 		} else {
-		// 			this.handleUploading()
-		// 		}
-		// 	}
-		// },
+
 		// 打卡请求
 		async handleUploading() {
 			let res = await this.$myRequest_clockIn({

+ 16 - 12
pagesClockIn/location/location.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="container">
 		<!-- 地图区域 -->
-		<view class="map"><map style="width: 100%; height: 100%;" :latitude="latitude" :longitude="longitude" :scale="16" :markers="covers"></map></view>
+		<view class="map"><map style="width: 100%; height: 100%" :latitude="latitude" :longitude="longitude" :scale="16" :markers="covers"></map></view>
 		<!-- 盒子区域 -->
 		<view class="box">
 			<!-- 定位区域 -->
@@ -65,7 +65,7 @@ export default {
 			timeRange: '',
 			// 规则id
 			id: '',
-			// 是否需要人脸识别,值为1时是不需要
+			// 是否需要拍摄人脸,值为1时是不需要
 			flag: '',
 			// 弹窗当前时间
 			nowTime_pop: ''
@@ -89,7 +89,7 @@ export default {
 		// 获取定位具体信息
 		getLocationData() {
 			qqmapsdk.reverseGeocoder({
-				success: res => {
+				success: (res) => {
 					// console.log(res);
 					if (res.status == 0) {
 						// 获取详细地址信息
@@ -101,9 +101,15 @@ export default {
 						this.covers[0].latitude = res.result.location.lat
 						this.covers[0].longitude = res.result.location.lng
 					} else {
-						uni.showToast({
-							title: '请求定位失败',
-							icon: 'none'
+						uni.getLocation({
+							type: 'gcj02',
+							success: (res) => {
+								this.latitude = res.latitude
+								this.longitude = res.longitude
+								this.address = '未知地址'
+								this.covers[0].latitude = res.latitude
+								this.covers[0].longitude = res.longitude
+							}
 						})
 					}
 				}
@@ -130,7 +136,7 @@ export default {
 						count: 1,
 						sizeType: ['compressed'],
 						sourceType: ['camera'],
-						success: res => {
+						success: (res) => {
 							// console.log(res);
 							uni.showLoading({
 								title: '上传中,请稍后',
@@ -144,15 +150,13 @@ export default {
 									platform: 2,
 									'Accept-Language': 'zh-CN,zh;q=0.9'
 								},
-								success: uploadFileRes => {
+								success: (uploadFileRes) => {
 									let imgUrl = JSON.parse(uploadFileRes.data).data
 									if (this.flag == 1) {
 										this.handleUploading(imgUrl)
 									} else {
 										uni.redirectTo({
-											url: `/pagesClockIn/authentication/authentication?imgUrl=${imgUrl}&id=${this.id}&address=${this.address}&latitude=${
-												this.latitude
-											}&longitude=${this.longitude}`
+											url: `/pagesClockIn/authentication/authentication?imgUrl=${imgUrl}&id=${this.id}&address=${this.address}&latitude=${this.latitude}&longitude=${this.longitude}`
 										})
 									}
 									// this.handleUploading(imgUrl)
@@ -173,7 +177,7 @@ export default {
 						content: '请先开启摄像头权限,否则将无法使用打卡功能',
 						cancelText: '不授权',
 						confirmText: '授权',
-						success: function(res) {
+						success: function (res) {
 							if (res.confirm) {
 								uni.openSetting({
 									success(res) {}

+ 2 - 2
pagesRepairs/util/api.js

@@ -1,8 +1,8 @@
 // 正式服务器
-// const BASE_URL = "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api"
+const BASE_URL = "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api"
 
 // 测试服务器
-const BASE_URL = "https://chtech.ncjti.edu.cn/testingServer/repairTest/repair/api"
+// const BASE_URL = "https://chtech.ncjti.edu.cn/testingServer/repairTest/repair/api"
 export const myRequest_repairs = (options) => {
 	uni.showLoading({
 		title: "加载中",