li 7 年之前
父节点
当前提交
ffdfdfc971
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 4 4
      app/js/backBindUn.js
  2. 4 4
      app/js/register.js

+ 4 - 4
app/js/backBindUn.js

32
			}
32
			}
33
		});
33
		});
34
		changImage.addEventListener("tap",function(){ 
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
		getPhoneCode.addEventListener("tap",function(){
38
		getPhoneCode.addEventListener("tap",function(){
87
		}
87
		}
88
		/*手机发送验证码*/
88
		/*手机发送验证码*/
89
		function sendAuthentication() {
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
			console.log(cookieValue)
91
			console.log(cookieValue)
92
			mui.ajax(baseUrl + '/ajax/regmobilephone', {
92
			mui.ajax(baseUrl + '/ajax/regmobilephone', {
93
				header:{
93
				header:{
110
					}else{
110
					}else{
111
						if(data.code==20001) {
111
						if(data.code==20001) {
112
							plus.nativeUI.toast("请输入正确的图形验证码", toastStyle);
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
					getPhoneCode.style.display = "block";
137
					getPhoneCode.style.display = "block";
138
					getCodeOff.style.display = "none";
138
					getCodeOff.style.display = "none";
139
					getPhoneCode.value = "获取验证码";
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
			}, 1000);
142
			}, 1000);
143
		}
143
		}

+ 4 - 4
app/js/register.js

86
		});
86
		});
87
		
87
		
88
		changImage.addEventListener("tap",function(){ 
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
		function phoneVal() {
92
		function phoneVal() {
138
		function sendAuthentication() {
138
		function sendAuthentication() {
139
			console.log(phoneName.value)
139
			console.log(phoneName.value)
140
			console.log(imgCode.value)
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
			console.log(cookieValue)
142
			console.log(cookieValue)
143
			//plus.navigator.setCookie( baseUrl + '/ajax/regmobilephone', cookieValue )
143
			//plus.navigator.setCookie( baseUrl + '/ajax/regmobilephone', cookieValue )
144
			mui.ajax(baseUrl + '/ajax/regmobilephone', {
144
			mui.ajax(baseUrl + '/ajax/regmobilephone', {
162
					}else{
162
					}else{
163
						if(data.code==20001) {
163
						if(data.code==20001) {
164
							plus.nativeUI.toast("请输入正确的图形验证码", toastStyle);
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
					obtainCode.style.display = "block";
190
					obtainCode.style.display = "block";
191
					getCodeOff.style.display = "none";
191
					getCodeOff.style.display = "none";
192
					obtainCode.value = "获取验证码";
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
			}, 1000);
195
			}, 1000);
196
		}
196
		}