xiuli.gao 6 years ago
parent
commit
90db5be662
3 changed files with 15 additions and 3 deletions
  1. 5 1
      register/register.html
  2. 5 1
      shareBooks/bindingPhone.html
  3. 5 1
      shareBooks/forgetPassword.html

+ 5 - 1
register/register.html

@@ -302,8 +302,12 @@
302 302
 					time = JSON.parse(res).res.time_out;
303 303
 					timeInterval = setInterval(timeDown,1000);
304 304
 				}else{
305
+					var msg = JSON.parse(res).message[0]
305 306
 					$(".registerMask").css('display','block');
306
-					$(".registerTost").find('p').html(JSON.parse(res).message);
307
+					if(msg.indexOf("img_code") != -1){
308
+						msg = msg.replace('img_code', '图片验证码');
309
+					}
310
+					$(".registerTost").find('p').html(msg);
307 311
 				}
308 312
 			}
309 313
 		});

+ 5 - 1
shareBooks/bindingPhone.html

@@ -201,9 +201,13 @@
201 201
 					timeInterval = setInterval(timeDown,1000);
202 202
 					$(".maskYzm").css("visibility","hidden")
203 203
 				}else{
204
+					var msg = JSON.parse(res).message[0]
204 205
 					$(".maskYzm").css("visibility","hidden");
205 206
 					$(".mask").css("visibility","visible");
206
-					$(".mask .content p").html(JSON.parse(res).message);
207
+					if(msg.indexOf("img_code") != -1){
208
+						msg = msg.replace('img_code', '图片验证码');
209
+					}
210
+					$(".mask .content p").html(msg);
207 211
 				}
208 212
 			}
209 213
 		});

+ 5 - 1
shareBooks/forgetPassword.html

@@ -184,9 +184,13 @@
184 184
 					timeInterval = setInterval(timeDown,1000);
185 185
 					$(".maskYzm").css("visibility","hidden")
186 186
 				}else{
187
+					var msg = JSON.parse(res).message[0]
187 188
 					$(".maskYzm").css("visibility","hidden");
188 189
 					$(".mask").css("visibility","visible");
189
-					$(".mask .content p").html(JSON.parse(res).message);
190
+					if(msg.indexOf("img_code") != -1){
191
+						msg = msg.replace('img_code', '图片验证码');
192
+					}
193
+					$(".mask .content p").html(msg);
190 194
 				}
191 195
 			}
192 196
 		});