li %!s(int64=7) %!d(string=hace) años
padre
commit
ffdfdfc971
Se han modificado 2 ficheros con 8 adiciones y 8 borrados
  1. 4 4
      app/js/backBindUn.js
  2. 4 4
      app/js/register.js

+ 4 - 4
app/js/backBindUn.js

@ -32,7 +32,7 @@ phone.addEventListener("keyup",function(){
32 32
			}
33 33
		});
34 34
		changImage.addEventListener("tap",function(){ 
35
			this.setAttribute("src","http://www.ekexiu.com/ajax/PictureVC?"+new Date().getTime());
35
			this.setAttribute("src",baseUrl+"/ajax/PictureVC?"+new Date().getTime());
36 36
		})
37 37
		/*校验手机号*/
38 38
		getPhoneCode.addEventListener("tap",function(){
@ -87,7 +87,7 @@ phone.addEventListener("keyup",function(){
87 87
		}
88 88
		/*手机发送验证码*/
89 89
		function sendAuthentication() {
90
			var cookieValue=plus.navigator.getCookie("http://www.ekexiu.com/ajax/PictureVC");
90
			var cookieValue=plus.navigator.getCookie(baseUrl+"/ajax/PictureVC");
91 91
			console.log(cookieValue)
92 92
			mui.ajax(baseUrl + '/ajax/regmobilephone', {
93 93
				header:{
@ -110,7 +110,7 @@ phone.addEventListener("keyup",function(){
110 110
					}else{
111 111
						if(data.code==20001) {
112 112
							plus.nativeUI.toast("请输入正确的图形验证码", toastStyle);
113
							changImage.setAttribute("src","http://www.ekexiu.com/ajax/PictureVC?"+new Date().getTime());
113
							changImage.setAttribute("src",baseUrl+"/ajax/PictureVC?"+new Date().getTime());
114 114
						}
115 115
					}
116 116
				},
@ -137,7 +137,7 @@ phone.addEventListener("keyup",function(){
137 137
					getPhoneCode.style.display = "block";
138 138
					getCodeOff.style.display = "none";
139 139
					getPhoneCode.value = "获取验证码";
140
					changImage.setAttribute("src","http://www.ekexiu.com/ajax/PictureVC?"+new Date().getTime());
140
					changImage.setAttribute("src",baseUrl+"/ajax/PictureVC?"+new Date().getTime());
141 141
				}
142 142
			}, 1000);
143 143
		}

+ 4 - 4
app/js/register.js

@ -86,7 +86,7 @@ mui.ready(function() {
86 86
		});
87 87
		
88 88
		changImage.addEventListener("tap",function(){ 
89
			this.setAttribute("src","http://www.ekexiu.com/ajax/PictureVC?"+new Date().getTime());
89
			this.setAttribute("src",baseUrl+"/ajax/PictureVC?"+new Date().getTime());
90 90
		})
91 91
		/*校验手机号*/
92 92
		function phoneVal() {
@ -138,7 +138,7 @@ mui.ready(function() {
138 138
		function sendAuthentication() {
139 139
			console.log(phoneName.value)
140 140
			console.log(imgCode.value)
141
			var cookieValue=plus.navigator.getCookie("http://www.ekexiu.com/ajax/PictureVC");
141
			var cookieValue=plus.navigator.getCookie(baseUrl+"/ajax/PictureVC");
142 142
			console.log(cookieValue)
143 143
			//plus.navigator.setCookie( baseUrl + '/ajax/regmobilephone', cookieValue )
144 144
			mui.ajax(baseUrl + '/ajax/regmobilephone', {
@ -162,7 +162,7 @@ mui.ready(function() {
162 162
					}else{
163 163
						if(data.code==20001) {
164 164
							plus.nativeUI.toast("请输入正确的图形验证码", toastStyle);
165
							changImage.setAttribute("src","http://www.ekexiu.com/ajax/PictureVC?"+new Date().getTime());
165
							changImage.setAttribute("src",baseUrl+"/ajax/PictureVC?"+new Date().getTime());
166 166
						}
167 167
					}
168 168
				},
@ -190,7 +190,7 @@ mui.ready(function() {
190 190
					obtainCode.style.display = "block";
191 191
					getCodeOff.style.display = "none";
192 192
					obtainCode.value = "获取验证码";
193
					changImage.setAttribute("src","http://www.ekexiu.com/ajax/PictureVC?"+new Date().getTime());
193
					changImage.setAttribute("src",baseUrl+"/ajax/PictureVC?"+new Date().getTime());
194 194
				}
195 195
			}, 1000);
196 196
		}