lsc 2 månader sedan
förälder
incheckning
6eb8b60c5e

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/app.f980bb84.css


+ 1 - 1
dist/index.html

@@ -36,7 +36,7 @@
         width: 100%;
         background: #e6eaf0;
         font-family: '黑体';
-      }</style><script defer="defer" src="/js/chunk-vendors.fba309d8.js"></script><script defer="defer" src="/js/app.89f8c322.js"></script><link href="/css/chunk-vendors.7cfe4581.css" rel="stylesheet"><link href="/css/app.4fbcdfc8.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pblAdminTable doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html><script>function stopSafari() {
+      }</style><script defer="defer" src="/js/chunk-vendors.fba309d8.js"></script><script defer="defer" src="/js/app.d535810c.js"></script><link href="/css/chunk-vendors.7cfe4581.css" rel="stylesheet"><link href="/css/app.f980bb84.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pblAdminTable doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/js/app.89f8c322.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/js/app.89f8c322.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/js/app.d535810c.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/js/app.d535810c.js.map


+ 42 - 35
src/views/login/loginPage.vue

@@ -236,42 +236,49 @@ export default {
 			} else if (this.loginType == "bind") {
 				// this.$message.info("绑定账号");
 				let data = await this.$ajax.post(API_CONFIG.baseUrl2 + 'checkOpenId', [{email: email}])
-				console.log(data);
+				if(!data.data[0].length){
+					this.$message.error("未查找到对应账号请重新输入");
+					return
+				}
+				if(data.data[0][0].thirdpartyid){
+					this.$message.error("该账号已绑定微信登录请重新输入");
+					return
+				}
 				
-				// let params = {
-				// 	geetest_challenge: "",
-				// 	geetest_validate: "",
-				// 	geetest_seccode: "",
-				// 	loginUsername: email.trim(),
-				// 	loginPassword: window.btoa(this.password.trim()),
-				// };
-				// this.loading = true;
-				// axios.defaults.withCredentials = true;
-				// console.log("👇");
-				// axios
-				// .post("https://beta.api.cocorobo.cn/api/user", qs.stringify(params))
-				// .then(async (res) => {
-				// 	console.log("res", res);
-				// 	let _data = res.data[0][0];
-				// 	if (_data.active === 1) {
-				// 		await this.$ajax.post(API_CONFIG.baseUrl2 + 'UpdateOpenId', [{openid: this.openid}])
-				// 		window.localStorage["identity"] = JSON.stringify(_data.identity);
-				// 		this.$message.success("绑定成功");
-				// 		await this.login();
-				// 		this.$router.push({ path: this.redirect || "/" });
-				// 	} else {
-				// 		this.$message.error("绑定失败");
-				// 	}
-				// 	this.loading = false;
-				// })
-				// .catch((e) => {
-				// 	if (e.response && e.response.data == "Wrong email or password") {
-				// 		this.$message.error("账号或密码错误");
-				// 	} else {
-				// 		this.$message.error("绑定失败");
-				// 	}
-				// 	this.loading = false;
-				// });
+				let params = {
+					geetest_challenge: "",
+					geetest_validate: "",
+					geetest_seccode: "",
+					loginUsername: email.trim(),
+					loginPassword: window.btoa(this.password.trim()),
+				};
+				this.loading = true;
+				axios.defaults.withCredentials = true;
+				console.log("👇");
+				axios
+				.post("https://beta.api.cocorobo.cn/api/user", qs.stringify(params))
+				.then(async (res) => {
+					console.log("res", res);
+					let _data = res.data[0][0];
+					if (_data.active === 1) {
+						await this.$ajax.post(API_CONFIG.baseUrl2 + 'UpdateOpenId', [{openid: this.openid}])
+						window.localStorage["identity"] = JSON.stringify(_data.identity);
+						this.$message.success("绑定成功");
+						await this.login();
+						this.$router.push({ path: this.redirect || "/" });
+					} else {
+						this.$message.error("绑定失败");
+					}
+					this.loading = false;
+				})
+				.catch((e) => {
+					if (e.response && e.response.data == "Wrong email or password") {
+						this.$message.error("账号或密码错误");
+					} else {
+						this.$message.error("绑定失败");
+					}
+					this.loading = false;
+				});
 			}
 		},
 		async getLoading() {

Vissa filer visades inte eftersom för många filer har ändrats