소스 검색

修改签名

李广朋 9 년 전
부모
커밋
c5c1984117

+ 6 - 1
core/src/qfw/mobile/wxmenu.go

@@ -416,7 +416,12 @@ func (m *Mobile) WxpushAjaxReq() error {
 	return nil
 }
 func GetSignature(action string) []string {
-	url := coreconfig.SysConfig.DomainName + action
+	var url string
+	if strings.HasPrefix(action, "http://") {
+		url = action
+	} else {
+		url = coreconfig.SysConfig.DomainName + action
+	}
 	var signature []string
 	if ret := redis.Get("other", "wxshare-"+url); ret != nil {
 		if d, err := json.Marshal(ret); err == nil {

+ 2 - 2
core/src/qfw/search/wxsearchservice.go

@@ -20,14 +20,14 @@ import (
 
 //企业社区首页
 func (n *Wxsearch) WxIndex() error {
-	n.T["signature"] = mobile.GetSignature(n.Url())
+	n.T["signature"] = mobile.GetSignature("http://m.qmx.top" + n.Url())
 	n.Render("/member/incmobile/index.html", &n.T)
 	return nil
 }
 
 //企业列表
 func (n *Wxsearch) WxgetEnterpriseList(reqType, param /*参数*/ string) error {
-	n.T["signature"] = mobile.GetSignature(n.Url())
+	n.T["signature"] = mobile.GetSignature("http://m.qmx.top" + n.Url())
 	i_mingpian := n.GetString("i_mingpian") //是否走名片查询
 	if n.Method() == "POST" {
 		//请求是表单提交,走的查询

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

@@ -1,4 +1,3 @@
-<!DOCTYPE HTML>
 <html>
 	<head>
 		<title> 企业社区-首页</title>
@@ -67,6 +66,10 @@ if(typeof(signature) != "undefined" && signature != null && signature.length ==
                  		<input type="text" id="query" class="form-control"  style="height:40px;" name="words" placeholder="找企业"  >
 							<input type="hidden" name="i_mingpian" id="i_mingpian" value="" />
 							<input type="hidden" name="mingpian" id="mingpian" value="" />
+							<input type="hidden" name="city" id="citys" value="">
+							<input type="hidden" name="cityNo" id="" value="1">
+							<input type="hidden" name="c_hfl" id="c_hfl" value=''>
+							<input type="hidden" name="c_zb" id="c_zb" value=''>
 							<span class="glyphicon glyphicon-camera input-after" id="camera"></span>
 							<span class="input-group-addon"><span onclick="$('#search').submit();" class="glyphicon glyphicon-search"></span></span>
              		</div>
@@ -87,7 +90,7 @@ $("#camera").click(function(){
 	    sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
 	    sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
 	    success: function (res) {
-	        var localIds = res.localIds; // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
+	      var localIds = res.localIds; // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
 			uploadImage(localIds[0]);
 	 	}
 	});

+ 5 - 0
core/src/web/templates/member/incmobile/list.html

@@ -135,6 +135,9 @@
 					if(loc.length>6){
 						data[i]["OpLocDistrict"]=loc.substr(0,loc.lastIndexOf(" "));
 					}
+					if(!data[i]["EntName"] || data[i]["EntName"]==""){
+						data[i]["EntName"]=data[i]["LeRep"];
+					}
 					var tmp=strVar.replace("$EntName",data[i]["EntName"])
 											 .replace("$RegNo",data[i]["RegNo"])
 											 .replace("$LeRep",data[i]["LeRep"])
@@ -258,9 +261,11 @@
 			var query={
 				"words":$("#query").val(),
 				"city":$("#citys").val(),
+				"cityNo":"1",
 				"c_hfl":$("#c_hfl").val(),
 				"c_zb":$("#c_zb").val(),
 				"currentPage":++currentPage
+				
 			};
 			$.ajax({
 				url:"/wx/search/enterprise/m/list"+(new Date().getTime()),