Explorar o código

weixin前台查询

张金坤 %!s(int64=9) %!d(string=hai) anos
pai
achega
327724121f
Modificáronse 1 ficheiros con 11 adicións e 4 borrados
  1. 11 4
      core/src/web/templates/member/incmobile/index.html

+ 11 - 4
core/src/web/templates/member/incmobile/index.html

@@ -154,7 +154,6 @@ if(typeof(signature) != "undefined" && signature != null && signature.length ==
 <script src="/js/qfw.js"></script>
 <script>
 $(".input-group-addon").click(function(){
-alert();
 	wx.chooseImage({
 	    count: 1, // 默认9
 	    sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
@@ -184,9 +183,17 @@ function getmpname(serverId){
         cache: false, 
         error: function(){return false;}, 
         success:function(obj){
-			 $("#query").val(obj["name"]);
-			 $("#i_mingpian").val("1");
-			 $("#search").submit();
+			if(obj["on"]=="y"){
+				if(obj["name"]==""){
+					alert("未匹配的对应的名称");
+				}else{
+					$("#query").val(obj["name"]);
+				 	$("#i_mingpian").val("1");
+				 	$("#search").submit();	
+				}
+			}else{
+				alert("功能调用太频繁,请稍后再试!");
+			}
         } 
     }); 
 }