소스 검색

登录无账号直接注册

guhongwei 2 년 전
부모
커밋
a7785dcf49
1개의 변경된 파일14개의 추가작업 그리고 11개의 파일을 삭제
  1. 14 11
      pages/login/index.vue

+ 14 - 11
pages/login/index.vue

@@ -153,7 +153,8 @@
 				},
 				typeList: [ //
 					{
-			limit: 10,			text: '微信',
+						limit: 10,
+						text: '微信',
 						value: 0
 					},
 					{
@@ -454,16 +455,18 @@
 									});
 								} else {
 									if (res.errcode == '-5') {
-										uni.showModal({
-											title: '提示',
-											content: '用户不存在,是否注册新账号?',
-											success: function(res) {
-												if (res.confirm) {
-													// 无账号,注册账号
-													that.wxCreate();
-												}
-											}
-										});
+										// 无账号,注册账号
+										that.wxCreate();
+										// uni.showModal({
+										// 	title: '提示',
+										// 	content: '用户不存在,是否注册新账号?',
+										// 	success: function(res) {
+										// 		if (res.confirm) {
+										// 			// 无账号,注册账号
+										// 			that.wxCreate();
+										// 		}
+										// 	}
+										// });
 									} else {
 										uni.showToast({
 											title: res.errmsg || '信息错误',