瀏覽代碼

网约车

twt 1 年之前
父節點
當前提交
26dc39dce3
共有 4 個文件被更改,包括 58 次插入9 次删除
  1. 17 1
      index.html
  2. 36 3
      pages/wyCar/apply.vue
  3. 3 3
      pages/wyCar/index.vue
  4. 2 2
      utils/request.js

+ 17 - 1
index.html

@@ -10,12 +10,28 @@
         '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
         (coverSupport ? ', viewport-fit=cover' : '') + '" />')
     </script>
-    <title></title>
+    <title>正在为您跳转页面,请稍候...</title>
+	<style type="text/css">
+	
+	#firstScreenPage { top:50%; left:50%; position: absolute; -webkit-transform: translateY(-50%) translateX(-50%); transform: translateY(-50%) translateX(-50%); z-index:100; }
+	
+	@-webkit-keyframes ball-beat { 50% { opacity: 0.2; -webkit-transform: scale(0.75); transform: scale(0.75); } 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } }
+	
+	@keyframes ball-beat { 50% { opacity: 0.2; -webkit-transform: scale(0.75); transform: scale(0.75); } 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } }
+	
+	.ball-beat > div { background-color: #279fcf; width: 15px; height: 15px; border-radius: 100% !important; margin: 2px; -webkit-animation-fill-mode: both; animation-fill-mode: both; display: inline-block; -webkit-animation: ball-beat 0.7s 0s infinite linear; animation: ball-beat 0.7s 0s infinite linear; }
+	
+	.ball-beat > div:nth-child(2n-1) { -webkit-animation-delay: 0.35s !important; animation-delay: 0.35s !important; }
+	
+	</style>
     <!--preload-links-->
     <!--app-context-->
   </head>
   <body>
     <div id="app"><!--app-html--></div>
     <script type="module" src="/main.js"></script>
+	<script  type="text/javascript" >
+	  alert(11)
+	</script>
   </body>
 </html>

+ 36 - 3
pages/wyCar/apply.vue

@@ -110,8 +110,21 @@
 		},
 		methods: {
 			submit(){
-				  var regex = /(^[安京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([A-HJ-NP-Z0-9]{5})|([A-HJ-NP-Z0-9]{6}))$)|(^[安京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z0-9]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$)/u;
-				  if (regex.test(this.plateNumber)) {
+				//this.convertToUpperCase(this.plateNumber)
+				this.plateNumber=this.plateNumber.toUpperCase()
+				 console.log(this.plateNumber)
+				var reg = /^1[3|4|5|7|8][0-9]\d{8}$/;
+				if(reg.test(this.mobilePhone) == false ){
+				    console.log("手机号码格式不正确");
+				     uni.showToast({
+				     	title: '请输入正确的手机号',
+				     	icon: 'none',
+				     	duration: 3000
+				     });
+				     return false;   
+				}
+				var regex = /(^[安京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([A-HJ-NP-Z0-9]{5})|([A-HJ-NP-Z0-9]{6}))$)|(^[安京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z0-9]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$)/u;
+				if (regex.test(this.plateNumber)) {
 				        
 				} else {
 				       uni.showToast({
@@ -121,6 +134,22 @@
 				       });
 					   return false;
 				}
+				if(!this.mobilePhone){
+					uni.showToast({
+						title: '请输入手机号',
+						icon: 'none',
+						duration: 3000
+					});
+					return false;
+				}
+				if(this.imgListArr.length==0){
+					uni.showToast({
+						title: '请上传图片',
+						icon: 'none',
+						duration: 3000
+					});
+					return false;
+				}
 				uni.showLoading({
 					title: '加载中'
 				});
@@ -149,7 +178,11 @@
 				
 				})
 			},
-			
+			convertToUpperCase(text) {
+			  return text.replace(/[a-z]/g, function(match) {
+			    return String.fromCharCode(match.charCodeAt(0) - 32);
+			  });
+			},
 			carmodel(num){
 				this.carmodelType=num
 			},

+ 3 - 3
pages/wyCar/index.vue

@@ -105,7 +105,7 @@
 				sourceUserID:'00958045-3341-4AF7-9460-801F5B52E3E2',
 				sourceName:'姜国远',
 				qrcodeSrc: '',
-				qrcodeSize:250,
+				qrcodeSize:300,
 				qrcodeText: '',
 				url:'',
 				token:'',
@@ -305,8 +305,8 @@
 	color: #3C3C3C;text-align: center;
 }
 .wxImgBox{
-	width: 250px;
-	height: 250px;
+	width: 300px;
+	height: 300px;
 	background: #EDEDED;
 	margin: 0 auto;
 	margin-top: 30rpx;

+ 2 - 2
utils/request.js

@@ -1,5 +1,5 @@
 //测试地址
-const baseUrl = 'http://api.dms.66km.com.cn/'
+//const baseUrl = 'http://api.dms.66km.com.cn/'
 //const baseUrl = 'http://dms.66km.com.cn/'
 //const baseUrl = 'http://192.168.0.146:20187/'
 //const baseUrl = 'http://syadmin.66km.com/'
@@ -9,7 +9,7 @@ const baseUrl = 'http://api.dms.66km.com.cn/'
 //const baseUrl = 'https://crm.eurorepar.cn/'
 //安徒生
 //const baseUrl = 'http://dms-api.lhrhy.cn/'
-//const baseUrl = '//store-api.qdbtl.cn/'
+const baseUrl = '//store-api.qdbtl.cn/'
 import $store from '../store'
 
 const http = (url = '', date = {}, type = 'POST', header = {