lilei 1 year ago
parent
commit
bf24a39079
2 changed files with 14 additions and 2 deletions
  1. 2 2
      App.vue
  2. 12 0
      pages/login/phoneLogin.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	export default {
 		globalData: {
-			// baseUrl: 'http://192.168.2.103:7002/saas/clz/', // 本地
-			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
+			baseUrl: 'http://192.168.2.103:9110/saas/clz/', // 本地
+			// baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {

+ 12 - 0
pages/login/phoneLogin.vue

@@ -108,6 +108,13 @@
 			checkMobile() {
 				if (!this.getCodeing) {
 					if (this.mobile) {
+						if(!this.tyYd){
+							uni.showToast({
+								title: "请阅读并同意隐私政策、服务条款",
+								icon: "none"
+							})
+							return false
+						}
 						if (!isvalidPhone(this.mobile)) {
 							uni.showToast({
 								title: '请输入正确的手机号码',
@@ -120,6 +127,11 @@
 							//  图文验证码
 							this.$refs.imageTxtPopup.open()
 						}
+					}else{
+						uni.showToast({
+							title: '请输入手机号码',
+							icon: 'none'
+						})
 					}
 				}
 			},