فهرست منبع

增加 名片扫描

李广朋 9 سال پیش
والد
کامیت
0086316071
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      core/src/web/templates/member/incmobile/index.html

+ 5 - 2
core/src/web/templates/member/incmobile/index.html

@@ -129,10 +129,11 @@ if(typeof(signature) != "undefined" && signature != null && signature.length ==
 				查企业,查企业失信信息,查企业变更,查你所想,无所不能...
 			</div>
 			<div style="clear:both;" class="col-sm-8">
-              <form method="post"  action="/search/enterprise/ent.html">
+              <form method="post"  action="/search/enterprise/ent.html" id="search">
 						<div class="input-group col-xs-12">
 							<i class="glyphicon glyphicon-search input-before"></i>
                  		<input type="text" id="query" class="form-control" name="words" placeholder="找企业"  >
+							<input type="hidden" name="i_mingpian" id="i_mingpian" value="" />
 							<span class="input-group-addon"><span class="glyphicon glyphicon-camera"></span></span>
              		</div>
 					</form>
@@ -183,7 +184,9 @@ function getmpname(serverId){
         cache: false, 
         error: function(){return false;}, 
         success:function(obj){
-			alert(obj["name"]);
+			 $("#query").val(obj["name"]);
+			 $("#i_mingpian").val("1");
+			 $("#search").submit();
         } 
     }); 
 }