Browse Source

去掉红包活动

wangchuanjin 9 năm trước cách đây
mục cha
commit
4c2a7af8f8

+ 2 - 2
core/src/message.json

@@ -7,7 +7,7 @@
 	"indentify":{
 		"success":{
 			"result":"企业认证",
-			"detail":"您的企业已经成功通过实名认证!登录www.qimingxing.info首页点击“发服务”后即可领取红包!",
+			"detail":"您的企业已经成功通过实名认证!",
 			"remark":"建议您在电脑端时用微信登录!"
 		},
 		"false":{
@@ -29,7 +29,7 @@
 	"oindentify":{
 		"success":{
 			"result":"机构认证",
-			"detail":"您的机构已经成功通过实名认证!登录www.qimingxing.info首页点击“发服务”后即可领取红包!",
+			"detail":"您的机构已经成功通过实名认证!",
 			"remark":"建议您在电脑端时用微信登录!"
 		},
 		"false":{

+ 4 - 11
core/src/qfw/front/index.go

@@ -23,11 +23,10 @@ import (
 
 type Index struct {
 	*xweb.Action
-	loadIndex          xweb.Mapper `xweb:"/"`                         //访问首页
-	getWebSiteTop      xweb.Mapper `xweb:"/front/getWebSiteTop"`      //获取网站顶部内容
-	advertAjaxRqe      xweb.Mapper `xweb:"/front/advertAjaxRqe"`      //首页ajax请求
-	reurl              xweb.Mapper `xweb:"/front/reurl"`              //跳转服务产品页面
-	deletefirstredtype xweb.Mapper `xweb:"/front/deletefirstredtype"` //删除发布服务成功后第一次登录标识
+	loadIndex     xweb.Mapper `xweb:"/"`                    //访问首页
+	getWebSiteTop xweb.Mapper `xweb:"/front/getWebSiteTop"` //获取网站顶部内容
+	advertAjaxRqe xweb.Mapper `xweb:"/front/advertAjaxRqe"` //首页ajax请求
+	reurl         xweb.Mapper `xweb:"/front/reurl"`         //跳转服务产品页面
 }
 
 //加载首页
@@ -175,9 +174,3 @@ func (i *Index) Reurl() error {
 	}
 	return nil
 }
-
-//删除发布服务成功后第一次登录标识
-func (i *Index) Deletefirstredtype() error {
-	i.DelSession("firstredtype")
-	return nil
-}

+ 1 - 10
core/src/qfw/manage/auditing.go

@@ -661,34 +661,25 @@ func (s *SystemManage) Updateaudit() error {
 				s_result = util.GetPropertie("indentify.success.result", coreconfig.MessageConfig).(string)
 				s_remark = util.GetPropertie("indentify.success.remark", coreconfig.MessageConfig).(string)
 				s_detail = util.GetPropertie("indentify.success.detail", coreconfig.MessageConfig).(string)
-				//
-				content = "您的企业已经成功通过实名认证!点击<a href='/member/yellowpage/show/showService/" + s_enterpriseid + "'>发服务</a>后即可领取红包!"
 			} else if i_identificationtype == "2" {
 				s_result = util.GetPropertie("pindentify.success.result", coreconfig.MessageConfig).(string)
 				s_remark = util.GetPropertie("pindentify.success.remark", coreconfig.MessageConfig).(string)
 				s_detail = util.GetPropertie("pindentify.success.detail", coreconfig.MessageConfig).(string)
-				//
-				content = s_detail
 			} else if i_identificationtype == "3" {
 				s_result = util.GetPropertie("oindentify.success.result", coreconfig.MessageConfig).(string)
 				s_remark = util.GetPropertie("oindentify.success.remark", coreconfig.MessageConfig).(string)
 				s_detail = util.GetPropertie("oindentify.success.detail", coreconfig.MessageConfig).(string)
-				//
-				content = "您的机构已经成功通过实名认证!点击<a href='/member/yellowpage/show/showService/" + s_enterpriseid + "'>发服务</a>后即可领取红包!"
 			} else if i_identificationtype == "4" {
 				s_result = util.GetPropertie("pcindentify.success.result", coreconfig.MessageConfig).(string)
 				s_remark = util.GetPropertie("pcindentify.success.remark", coreconfig.MessageConfig).(string)
 				s_detail = util.GetPropertie("pcindentify.success.detail", coreconfig.MessageConfig).(string)
-				//
-				content = s_detail
 			} else if i_identificationtype == "5" {
 				s_result = util.GetPropertie("ptcindentify.success.result", coreconfig.MessageConfig).(string)
 				s_remark = util.GetPropertie("ptcindentify.success.remark", coreconfig.MessageConfig).(string)
 				s_detail = util.GetPropertie("ptcindentify.success.detail", coreconfig.MessageConfig).(string)
-				//
-				content = s_detail
 			}
 			title = s_result
+			content = s_detail
 		}
 		//查询openid
 		f := FindOne("user", "{'_id':'"+s_submitid+"'}")

+ 3 - 3
core/src/qfw/member/member.go

@@ -8,9 +8,9 @@ import (
 type Member struct {
 	*xweb.Action
 
-	getLoginNum        xweb.Mapper `xweb:"/front/wxlogin/getNum"`              //微信登陆获取数字
-	getLogin           xweb.Mapper `xweb:"/front/wxlogin/getLogin/(.*)"`       //微信登陆状态
-	promotionPage      xweb.Mapper `xweb:"/p(.*)"`                             //推广页面
+	getLoginNum xweb.Mapper `xweb:"/front/wxlogin/getNum"`        //微信登陆获取数字
+	getLogin    xweb.Mapper `xweb:"/front/wxlogin/getLogin/(.*)"` //微信登陆状态
+	//promotionPage      xweb.Mapper `xweb:"/p(.*)"`                             //推广页面
 	register           xweb.Mapper `xweb:"/front/register"`                    //注册
 	registerComplete   xweb.Mapper `xweb:"/front/registerComplete"`            //注册完成
 	login              xweb.Mapper `xweb:"/front/login"`                       //登录

+ 4 - 7
core/src/qfw/member/membermanager.go

@@ -463,10 +463,10 @@ func (m *Member) Login() {
 				}
 				stype := m.GetSession("audittype")
 				r_id := strings.Split(fmt.Sprintf("%s", r["_id"]), `"`)[1]
-				if stype == "first" {
+				if stype == "y" {
 					Update("user", &map[string]interface{}{
 						"_id": ObjectIdHex(r_id),
-					}, `{'$set':{'s_audittype':'second'}}`, false, false)
+					}, `{'$set':{'s_audittype':'n'}}`, false, false)
 				}
 			}
 		}
@@ -662,7 +662,7 @@ func (m *Member) Logout() error {
 	m.DelSession("identWay")      //认证状态
 	m.DelSession("identType")     //认证类型
 	m.DelSession("opLocDistrict") //行政区划代码
-	m.DelSession("audittype")     //认证后是否是第一次登录的标识第一次:first
+	m.DelSession("audittype")     //认证后是否是第一次登录的标识第一次:y
 	m.DelSession("promotion_id")  //推广id
 	m.DelSession("promotion_c")   //推广邮件代码
 	deleteCookie(m)
@@ -745,10 +745,6 @@ func (m *Member) Accountset() error {
 	m.T["s_pwd"] = r["s_pwd"]               //密码
 	m.T["s_bindweixin"] = r["s_bindweixin"] //绑定微信
 	m.T["pageName"] = "用户中心"
-	if m.GetSession("audittype") != nil {
-		m.T["audittype"] = m.GetSession("audittype")
-	}
-	m.DelSession("audittype")
 	GetNotPassReason(m.Action)
 	return m.Render("/member/accountset/index.html", &m.T)
 }
@@ -1125,6 +1121,7 @@ func UpdateSession(action *xweb.Action, r map[string]interface{}) {
 		} else {
 			setSessMap["phone"] = r["s_phone"]
 		}
+		setSessMap["audittype"] = r["s_audittype"] //认证后是否是第一次登录的标识第一次:y
 		/**
 		action.SetSession("loginName", r[loginType])               //登录名
 		action.SetSession("loginType", loginType)                  //登录类型

+ 1 - 1
core/src/qfw/member/yellowpage.go

@@ -445,7 +445,7 @@ func (yp *Yellowpage) AddService() error {
 		status = "n"
 	}
 	//如果是新增操作,进入发红包逻辑
-	if len(serviceid) == 0 && tempFlag {
+	if len(serviceid) == 0 && tempFlag && false {
 		//活动有效日期
 		valid := time.Now().After(time.Unix(coreconfig.RedPackage.StartDate, 0)) && time.Now().Before(time.Unix(coreconfig.RedPackage.EndDate, 0))
 		//判断用户是否是第一次发服务

+ 56 - 48
core/src/web/staticres/css/dev-qfw.css

@@ -48,19 +48,12 @@ a{
 	margin-left: 20px;
 	margin-right: 20px;
 }
-.text-primary {
-	 color:#FF5A5F !important;
-}
 .text-bold{
 	font-weight:700;
 }
 .text-small{
 	font-size:12px;
 }
-.bootstrap-glyphicon {
-	font-family: 'Glyphicons Halflings' !important;
-}
-
 .a-com-active {
 	background-color: #dd4814;
 }
@@ -75,7 +68,7 @@ a{
 	max-width: 1200px;
 	margin-left: auto;
 	margin-right: auto;
-	padding: 0px 5px;
+	padding: 0px;
 }
 
 .a-content .a-c-left,.a-content .a-c-right{
@@ -857,7 +850,7 @@ a{
 }
 
 .a-index-want li.a-com-last{
-	padding: 10px 5px 0px 5px;
+	padding: 10px 0px 0px 15px;
 }
 
 .a-index-want div{
@@ -928,32 +921,10 @@ a{
 	display: block;
 	padding-left:10px;
 }
-.a-index-hd>img{
-	width: 295px;
+.a-index-hd img{
+	width: 305px;
 	height: 130px;
 }
-/*扫码送红包活动 start*/
-.a-index-hd .smshb{
-	height: 32px;
-	overflow: hidden;
-	position: absolute;
-	top: 75px;
-	width: 100%;
-}
-.a-index-hd .smshb span{
-	font-size: 20px;
-	margin: 0px 2px;
-	font-weight: bold;
-	color: #ff245c;
-}
-.a-index-hd .smshb ul{
-	border: 0px !important;
-}
-.a-index-hd .smshb li{
-	width: 100%;
-	height: 30px;
-}
-/*扫码送红包活动 end*/
 .a-index-head .a-i-h-right .a-com-title {
 	height: 40px;
 	line-height: 40px;
@@ -1990,20 +1961,6 @@ style="color:#D03102;margin-right:5px;"
 }
 /*企业社区未登录页面 end*/
 /*认证完第一次登录 start*/
-.fristAutheLoginModal .modal-header{
-	background-color: #FF5A5F;
-	border-top-left-radius: 6px;
-	border-top-right-radius: 6px;
-}
-.fristAutheLoginModal .modal-header h4{
-	color: #FFFFFF;
-	font-weight: bold;
-}
-.fristAutheLoginModal .modal-header i{
-	color: #FFFFFF;
-	font-size: 20px;
-	cursor: pointer;
-}
 .fristAutheLoginModal .chenggongtishi{
 	color: #A1D568;
 	vertical-align: sub;
@@ -2072,7 +2029,7 @@ style="color:#D03102;margin-right:5px;"
 	font-size: 12px;
 	font-family: "SimSun";
 }
-.b-top>div,.swordfish-content{
+.b-top>div,.b-content{
 	max-width: 1200px;
 	margin: auto;
 }
@@ -2213,6 +2170,7 @@ style="color:#D03102;margin-right:5px;"
 }
 .b-head .head-hideMenu i.ren1{
 	margin-left: 2px;
+	margin-right: 5px;
 }
 .b-head .head-hideMenu i.ren1,.b-head .head-hideMenu i.tuichu{
 	font-size: 16px;
@@ -2229,6 +2187,56 @@ style="color:#D03102;margin-right:5px;"
 .b-head a{
 	text-decoration: none;
 }
+.b-head .b-h-search{
+	padding-top: 14px;
+}
+.b-head .b-h-search .input-group{
+	width: 300px;
+}
+.b-head .b-h-search .form-control{
+	border-radius: 50px !important;
+}
+.b-head .b-h-search form>span i {
+    position: absolute;
+    right: 10px;
+    top: 50%;
+    z-index: 10;
+    font-size: 14px;
+    margin-top: -7px;
+	color:#fff;
+}
+.b-head .b-h-search form>span{
+    position: absolute;
+    right: 10px;    
+	border-radius: 50px;
+    top: 50%;
+    z-index: 20;
+    margin-top: -19px;
+	margin-right:-10px;
+    display: inline-block;
+	width:38px;
+	height:38px;
+}
+.b-content{
+	padding: 15px 0px 15px 0px;
+}
+.b-left{
+	background-color: #FFFFFF;
+	padding: 15px;
+	width: 940px;
+	display: inline-block;
+	vertical-align: top;
+}
+.b-right{
+	background-color: #FFFFFF;
+	width: 250px;
+	display: inline-block;
+	vertical-align: top;
+	float: right;
+}
+.b-right-content{
+	padding: 10px;
+}
 /*认证完第一次登录 end*/
 /*分辨率小于1200的时候调整布局,算上滚动条1217*/
 @media (max-width: 1217px) {

+ 4 - 67
core/src/web/staticres/css/index-new.css

@@ -1,3 +1,6 @@
+body{
+	background-color: #f0f0f0;
+}
 /****indexhead*****/
 .b-nav{
     border-top-color: #FF5A5F;
@@ -16,41 +19,13 @@
 a:focus, a:hover{
 	color: #FF5A5F;
 }
-.index-new-nva .a-h-search{
-    width: 25%;
-	float:right;
-	padding-top:18px;
-}
-.index-new-nva .a-h-search span i {
-    position: absolute;
-    right: 10px;
-    top: 50%;
-    z-index: 10;
-    font-size: 14px;
-    margin-top: -7px;
-	color:#fff;
-}
-.index-new-nva .a-h-search span{
-    position: absolute;
-    right: 10px;    
-	border-radius: 50px;
-    top: 50%;
-    z-index: 20;
-    margin-top: -19px;
-	margin-right:-10px;
-    display: inline-block;
-	width:38px;
-	height:38px;
-	border:1px solid #FF5A5F;
+.b-head .b-h-search span{
 	background-color:#FF5A5F;
 }
 .index-new-nva .a-h-search .input-group {
     width: 100%;
     height: inherit;
 }
-.index-new-nva #header-searchInput{
-	border-radius: 50px;
-}
 .index-new-head .head-hideMenu li:hover {
     background-color: #FF5A5F;
 }
@@ -60,32 +35,6 @@ a:focus, a:hover{
 .index-new-head .head-hideMenu i {
     color: #FF5A5F;
 }
-.index-new-head .head-hideMenu i.ren1 {
-    margin-left: 2px;
-}
-.index-new-head .loginStatus>span .round-dot {
-    right: 5px;
-    width: 8px;
-    height: 8px;
-}
-.index-new-head .round-dot {
-    background-color: #FF5A5F;
-    width: 6px;
-    height: 6px;
-    border-radius: 50%;
-    position: absolute;
-    display: block;
-    top: 0px;
-	padding:0px;
-	margin-right:2px;
-}
-.index-new-head .head-hideMenu li:hover .round-dot {
-    background-color: #FFFFFF;
-}
-.index-new-head .head-hideMenu li .round-dot {
-    right: 15px;
-	top:10px;
-}
 /*****index****/
 
 .a-index-head .a-i-h-right .a-index-want {
@@ -290,10 +239,6 @@ a:focus, a:hover{
     color: #4E5051;	
 	padding-left:10px;
 }
-
-.index-new-head .a-i-h-right .a-index-hd img{
-	width:292px;
-}
 .a-index .a-index-want .a-com-two {
     margin: 20px 0px 40px;
 }
@@ -316,9 +261,6 @@ a:focus, a:hover{
 	padding-left:10px;
 	border:1px solid rgb(240, 240, 240);
 }
-.index-new-body {
-	background-color:#f0f0f0;
-}
 .a-index-head .a-i-h-right, .a-rmfw,.a-rmxq,.a-qysq,.a-xwzx,.index-new-wgw{
 	background-color:#fff;
 }
@@ -378,11 +320,6 @@ a:focus, a:hover{
 .a-index .index-new-head{
 	margin-bottom:-10px;
 }
-.index-new-head .a-i-h-right{
-	margin-left:10px;
-	padding-left:0px;
-	width:293px;
-}
 .a-index .a-index-head .a-i-h-right {
 	padding-left:0px;
 	margin-left:10px;

+ 10 - 2
core/src/web/staticres/css/qfw.css

@@ -463,6 +463,9 @@ a.new_red:hover, a.new_red:active {
 }
 
 /*==========覆盖bootstrap样式 start===========*/
+.bootstrap-glyphicon {
+	font-family: 'Glyphicons Halflings' !important;
+}
 [class*="col-"] {
 	padding-left: 0px !important;
 }
@@ -474,11 +477,16 @@ a.new_red:hover, a.new_red:active {
 	background-color: #FF5A5F;
 	border-color: #FF5A5F;
 }
-.btn-sm,.btn-group-sm>.btn{
+.btn-default,.btn-default:hover,.btn-default:focus,.btn-default:active{
+	background-color: transparent;
+	border: 1px solid #FF5A5F;
+	color: #FF5A5F;
+}
+.btn-sm, .btn-group-sm > .btn{
 	padding-top: 3px;
 	padding-bottom: 3px;
 }
-.btn-xs,.btn-group-xs>.btn{
+.btn-xs, .btn-group-xs > .btn{
 	padding-top: 0px;
 	padding-bottom: 0px;
 }

+ 11 - 29
core/src/web/staticres/css/swordfish.css

@@ -1,6 +1,6 @@
 /********可以共用********/
 body{
-	background-color: #F0F0F0;
+	background-color: #f0f0f0;
 }
 a:focus, a:hover{
 	color: #37C6DA;
@@ -8,6 +8,12 @@ a:focus, a:hover{
 .b-round-dot{
 	background-color: #37C6DA;
 }
+.b-head .head-hideMenu i{
+	color: #37C6DA;
+}
+.b-head .head-hideMenu li:hover{
+	background-color: #37C6DA;
+}
 /********剑鱼********/
 .b-head .b-top li:hover>i{
 	background-color: #37C6DA !important;
@@ -24,30 +30,6 @@ a:focus, a:hover{
 .b-nav-other>a:hover,.b-nav-active>a{
 	color: #37C6DA !important;
 }
-.b-head .head-hideMenu i{
-	color: #37C6DA;
-}
-.b-head .head-hideMenu li:hover{
-	background-color: #37C6DA;
-}
-.swordfish-content{
-	padding: 15px 0px 15px 0px;
-}
-.swordfish-left{
-	background-color: #FFFFFF;
-	padding: 15px;
-	width: 940px;
-	display: inline-block;
-	vertical-align: top;
-}
-.swordfish-right{
-	padding-right: 0px;
-	background-color: #FFFFFF;
-	width: 250px;
-	display: inline-block;
-	vertical-align: top;
-	float: right;
-}
 .swordfish-page-title{
 	padding-bottom: 10px;
 	border-bottom: 1px solid #ddd;
@@ -74,7 +56,7 @@ a:focus, a:hover{
 .swordfish-rssset .btn>span{
 	margin-right: 5px;
 }
-.swordfish-rssset .swordfish-left>div{
+.swordfish-rssset .b-left>div{
 	margin-bottom: 15px;
 }
 .swordfish-qrcode{
@@ -226,7 +208,7 @@ a:focus, a:hover{
 	margin-bottom: 20px;
 }
 /*******剑鱼首页*******/
-.swordfish-index .swordfish-right>div{
+.swordfish-index .b-right>div{
 	padding-left: 10px;
 }
 .swordfish-index .swordfish-right-title{
@@ -326,10 +308,10 @@ a:focus, a:hover{
 	margin-right: 10px;
 }
 @media (max-width: 1200px) {
-	.swordfish-left{
+	.b-left{
 		width: 100%;
 	}
-	.swordfish-right{
+	.b-right{
 		display: none;
 	}
 }

+ 3 - 97
core/src/web/staticres/js/qfw.js

@@ -1,5 +1,5 @@
 //是否有新活动
-var hasNewActive = new Date() >= Date.parse(new Date("2015/12/14 00:00:00")) && new Date() < Date.parse(new Date("2016/1/14 00:00:00"));
+var hasNewActive = false;
 //网站初始化状态
 var webSiteInitFlag = true;
 //登录状态 false--未登录,true--已登录
@@ -8,6 +8,8 @@ var isLogined = false;
 var loginBackType = null;
 //登录完之后强制刷新
 var compulsoryreRresh = false;
+//顶部是否加载完毕
+var topLoadOver = false;
 //表单验证的参数
 var cssctlObj = null;
 var ValidDatatype = {
@@ -491,99 +493,3 @@ function advertAjaxRqe(position){
 		});
 	}
 }
-//认证完之后首次登录
-function afterAutheFirstLogin(result){
-	var identType = result.identType;
-	var entId = result.entId;
-	if(identType == 2){//个人认证
-		$("body").append('{{include "/common/ploginmodal.html"}}');
-		$("#fristAutheLoginModal .com-nickName").text(result.nickName);
-		$("#fristAutheLoginModal .com-entName").text(result.entName+"店铺");
-		$("#fristAutheLoginModal .com-entCard a").attr("href","/member/yellowpage/edit/enterprise/"+entId);
-	}else{
-		$("body").append('{{include "/common/ologinmodal.html"}}');
-		$("#fristAutheLoginModal .com-nickName").text(result.nickName);
-		$("#fristAutheLoginModal .com-entName").text(result.entName);
-		var comAuthentType = result.comAuthentType;
-		//企业认证标识:1:营业执照;2:企业名片;3:企业邮箱
-		var comAuthentText = comAuthentType==1?"营业执照认证":comAuthentType==2?"名片认证":comAuthentType==3?"邮箱认证":"";
-		var flag = comAuthentText!="";
-		$("#fristAutheLoginModal .com-identTypeText").html(",恭喜您完成"+(identType==1?"企业":identType==3?"机构":"")+"认证"+(flag?"-":"")+comAuthentText);
-		$("#fristAutheLoginModal .com-identTypeImg").append('<i class="glyphicon '+(identType==1?"qy":identType==3?"jg":"")+'rz"></i><font class="text-muted">已认证'+(identType==1?"企业":identType==3?"机构":"")+'</font>');
-		if(flag){
-			$("#fristAutheLoginModal .com-identTypeImg").append('<i class="glyphicon margin-r-5 '+(comAuthentType==1?"margin-r-10 yyzz":comAuthentType==2?"mp":comAuthentType==3?"yj":"")+'rz"></i><font class="text-muted">'+comAuthentText+'</font>');
-		}
-		if(hasNewActive){
-			$("#fristAutheLoginModal .com-who").text("完成以下操作,就可以领取红包啦:");
-		}else{
-			$("#fristAutheLoginModal .com-entCard").removeClass("hide");
-			$("#fristAutheLoginModal .com-entCard a").attr("href","/member/yellowpage/edit/enterprise/"+entId);
-		}
-	}
-	$("#fristAutheLoginModal .com-releaseService a").attr("href","/member/yellowpage/show/showService/"+entId);
-	$("#fristAutheLoginModal").modal('show');
-}
-//
-function b_loadTop(){
-	$.ajax({
-	  	type: "POST",
-	  	url: "/front/getWebSiteTop",
-	 	dataType: "json",
-		async: false,
-	  	success: function(result){
-			topLoadOver = true;
-			if(result.status == "y"){
-				isLogined = true;
-				var msgCount = result.msgCount;
-				var hasMsgCount = msgCount > 0;
-				msgCount = msgCount>999?'...':msgCount;
-				var avatar = null;
-				if(avatar != ""){
-					avatar = result.avatar;
-				}
-				var html = '<span><img class="img-circle headimg" src="'+avatar+'" onerror="this.src=\'/images/swordfish/headimg.png\'">';
-				if(hasMsgCount){
-					html += '<a class="b-round-dot"></a>';
-				}
-				html += '</span><a href="/member/show/memberindex">'+result.nickName+'</a>';
-				html += '<div id="head-hideMenu" class="head-hideMenu"><ul>'
-					    	+'<li onclick="window.location.href=\'/member/msgcenter\'"><i class="glyphicon youjian"></i><span>消息中心';
-				if(hasMsgCount){
-					html += '<a class="b-round-dot"></a>';
-				}
-				html += '</span></li>'
-						+'<li onclick="window.location.href=\'/member/show/memberindex\'"><i class="glyphicon ren1"></i>用户中心</li>'
-						+'<li onclick="window.location.href=\'/front/logout\'" class="border-b-0"><i class="glyphicon tuichu"></i>退出</li>';
-						+'</ul></div>';
-				$("#b-loginStatus").html(html)
-				.mouseover(function(){
-					$("#head-hideMenu").show();
-				}).mouseleave(function(){
-					$("#head-hideMenu").hide();
-				});
-				$("#head-hideMenu").mouseover(function(){
-					$(this).show();
-				}).mouseleave(function(){
-					$(this).hide();
-				});
-				//处理公用底部扫码登录按钮
-				$("#bottom-bar>li:first").addClass("invisible");
-				//处理认证完之后第一次登录弹出提示框
-				if(result.auditType == "y"){
-					afterAutheFirstLogin(result);
-				}
-			}else{
-				isLogined = false;
-				var html = '<a onclick="loginModalShow();">登录/注册</a>';
-				$("#b-loginStatus").html(html);
-				$("#bottom-bar>li").removeClass("invisible");
-			}
-			try{
-				b_loadTopCallBack(result);
-			}catch(e){}
-		},
-		error: function(e){
-			topLoadOver = true;
-		}
-	});
-}

+ 31 - 2
core/src/web/templates/common/head.html

@@ -55,8 +55,6 @@
 	</table>
 </div>
 <script text="text/javascript">
-//顶部是否加载完毕
-var topLoadOver = false;
 var isMobile = false;
 var keyCode=0;
 document.onkeydown=function(event){
@@ -324,6 +322,37 @@ function setNavbarActive(index,type){
 	$("#head-navbar-ul li:first").removeClass("a-com-active");
 	$("#head-navbar-ul li:eq("+index+")").addClass("a-com-active");
 }
+function afterAutheFirstLogin(result){
+	var identType = result.identType;
+	var entId = result.entId;
+	if(identType == 2){//个人认证
+		$("body").append('{{include "/common/ploginmodal.html"}}');
+		$("#fristAutheLoginModal .com-nickName").text(result.nickName);
+		$("#fristAutheLoginModal .com-entName").text(result.entName+"店铺");
+		$("#fristAutheLoginModal .com-entCard a").attr("href","/member/yellowpage/edit/enterprise/"+entId);
+	}else{
+		$("body").append('{{include "/common/ologinmodal.html"}}');
+		$("#fristAutheLoginModal .com-nickName").text(result.nickName);
+		$("#fristAutheLoginModal .com-entName").text(result.entName);
+		var comAuthentType = result.comAuthentType;
+		//企业认证标识:1:营业执照;2:企业名片;3:企业邮箱
+		var comAuthentText = comAuthentType==1?"营业执照认证":comAuthentType==2?"名片认证":comAuthentType==3?"邮箱认证":"";
+		var flag = comAuthentText!="";
+		$("#fristAutheLoginModal .com-identTypeText").html(",恭喜您完成"+(identType==1?"企业":identType==3?"机构":"")+"认证"+(flag?"-":"")+comAuthentText);
+		$("#fristAutheLoginModal .com-identTypeImg").append('<i class="glyphicon '+(identType==1?"qy":identType==3?"jg":"")+'rz"></i><font class="text-muted">已认证'+(identType==1?"企业":identType==3?"机构":"")+'</font>');
+		if(flag){
+			$("#fristAutheLoginModal .com-identTypeImg").append('<i class="glyphicon margin-r-5 '+(comAuthentType==1?"margin-r-10 yyzz":comAuthentType==2?"mp":comAuthentType==3?"yj":"")+'rz"></i><font class="text-muted">'+comAuthentText+'</font>');
+		}
+		if(hasNewActive){
+			//$("#fristAutheLoginModal .com-who").text("完成以下操作,就可以领取红包啦:");
+		}else{
+			$("#fristAutheLoginModal .com-entCard").removeClass("hide");
+			$("#fristAutheLoginModal .com-entCard a").attr("href","/member/yellowpage/edit/enterprise/"+entId);
+		}
+	}
+	$("#fristAutheLoginModal .com-releaseService a").attr("href","/member/yellowpage/show/showService/"+entId);
+	$("#fristAutheLoginModal").modal('show');
+}
 </script>
 <script type='text/javascript'>
 window.BWEUM||(BWEUM={});BWEUM.info = {"stand":true,"agentType":"browser","agent":"bi-collector.oneapm.com/static/js/bw-send-411.4.5.js","beaconUrl":"bi-collector.oneapm.com/beacon","licenseKey":"3Nvir~rAqyZ2Ra7i","applicationID":2274815};</script><script type="text/javascript" src="//bi-collector.oneapm.com/static/js/bw-loader-411.4.5.js">

+ 20 - 50
core/src/web/templates/common/indexhead.html

@@ -7,40 +7,31 @@
 			<li class="b-nav-link b-nav-main index-new-nva-c a-com-active fwsc"><a href="/market/0/list.html">服务市场</a></li>
 			<li class="b-nav-link b-nav-other index-new-nva-c"><a class="setserver"  id="releaseService">发服务</a><a class="b-nav-s"></a></li>
 			<li class="b-nav-link b-nav-other index-new-nva-c"><a id="setdemand"  href="/market/demand/add.html">发需求</a></li>
-			<li class="pull-right b-loginStatus" id="b-loginStatus"></li>
-			<li class="a-h-search">
-					<div class="input-group">
-				        <div class="input-group-btn hide">
-				        	<button type="button" id="header-searchBtn" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><font>服务</font><span class="hide caret margin-l-10"></span></button>
-				        </div> <!--/btn-group -->
-						<form method="post" id="searchForm" action="/market/0/list.html">
-							<span><i class="glyphicon sousuo" id="searchFormBtn"></i></span>
-					        <input type="text" name="words" class="form-control" id="header-searchInput" placeholder="{{if .T.hotword}}{{.T.hotword}}{{else}}找服务{{end}}">
-							<input type="hidden" name="city" id="city" value="">
-							<input type="hidden" name="cityNo" id="cityNo" value="">
-							<!-- 服务市场 -->
-							<input type="hidden" name="c_searchtype" id="c_searchtype" value="">
-							<input type="hidden" name="c_fwtype" id="c_fwtype" value="">
-							<input type="hidden" name="c_fbtime" id="c_fbtime" value="">
-							<input type="hidden" name="c_rztype" id="c_rztype" value="">
-							<input type="hidden" name="c_xqtype" id="c_xqtype" value="">
-							<input type="hidden" name="c_sorttype" value="">
-							<!-- 企业社区 -->
-							<input type="hidden" name="c_author" id="hauthor" value="">
-							<input type="hidden" name="c_hfl" id="hfl" value="">
-							<input type="hidden" name="c_zb" id="zb" value="">
-						</form>
-		       		</div><!-- /input-group -->
-				<div class="a-h-nav-btn">
-					<img src="/images/nav-btn.png" class="visible-xs-inline" id="nvaBtn">
-				</div>
+			<li class="b-h-search">
+				<div class="input-group">
+			        <div class="input-group-btn hide">
+			        	<button type="button" id="header-searchBtn" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><font>服务</font><span class="hide caret margin-l-10"></span></button>
+			        </div> <!--/btn-group -->
+					<form method="post" id="searchForm" action="/market/0/list.html">
+						<span id="searchFormBtn"><i class="glyphicon sousuo"></i></span>
+				        <input type="text" name="words" class="form-control" id="header-searchInput" placeholder="找服务" value="{{if .T.querymap}}{{index .T.querymap "query"}}{{end}}">
+						<input type="hidden" name="city" id="city" value="">
+						<input type="hidden" name="cityNo" id="cityNo" value="">
+						<!-- 服务市场 -->
+						<input type="hidden" name="c_searchtype" id="c_searchtype" value="">
+						<input type="hidden" name="c_fwtype" id="c_fwtype" value="">
+						<input type="hidden" name="c_fbtime" id="c_fbtime" value="">
+						<input type="hidden" name="c_rztype" id="c_rztype" value="">
+						<input type="hidden" name="c_xqtype" id="c_xqtype" value="">
+						<input type="hidden" name="c_sorttype" value="">
+					</form>
+	       		</div>
 			</li>
+			<li class="pull-right b-loginStatus" id="b-loginStatus"></li>
 		</ul>
 	</div>
 </div>
 <script type="text/javascript">
-//顶部是否加载完毕
-var topLoadOver = false;
 var isMobile = false;
 var keyCode=0;
 document.onkeydown=function(event){
@@ -51,7 +42,6 @@ document.onkeydown=function(event){
 };
 $(function (){
 	isMobile = !$("#b-loginStatus").is(":visible");
-	b_loadTop();
 	$("#searchFormBtn").click(function(){
 		keyCode = 13;
 		$("form#searchForm").submit();
@@ -72,11 +62,6 @@ $(function (){
 			}	
 		}
 	});
-	$("#header-searchInput").bind("focus blur",function(){
-		//$(".a-h-search").toggleClass("a-com-focus");
-		$(this).prev("i").toggleClass("text-primary");
-		//$("#loginStatus").toggleClass("hide");
-	});
 	//
 	$("[id='releaseService']").click(function(){
 		if(isLogined){
@@ -85,20 +70,5 @@ $(function (){
 			loginModalShow(6);
 		}
 	});
-	//手机版
-	$("#nvaBtn").click(function(){
-		if($(this).attr("src") == "/images/nav-btn.png"){
-			$(this).attr("src","/images/nav-btn-a.png");
-		}else{
-			$(this).attr("src","/images/nav-btn.png");
-		}
-		$("#head-navbar").toggleClass("hidden-xs");
-	});
-	$("body").click(function(e){
-		if(isMobile && e.target.id != "head-navbar-ul" && e.target.id != "nvaBtn"){
-			$("#head-navbar").addClass("hidden-xs");
-		}
-	});
 });
-
 </script>

+ 60 - 94
core/src/web/templates/common/login.html

@@ -97,19 +97,11 @@ function setTimes(num,n){
 						//登陆成功
 						clearInterval(t);
 						compulsoryreRresh = true;
-						afterLoginSkip(data);
 						$("img.login-logo").css("marginLeft",180);
 						$("div.modal-content").animate({
 						    width:'550px'
 						});
-						if (data.flag==1 && data.auth==1){
-							$(".f-login").hide();
-							$(".f-logintip").show();
-							$(".f-logintip2").show();
-							var href="/member/yellowpage/show/enterprise/"+data.code+"#service"
-							$("#loginservicebtn").attr("href",href)
-							$(".f-username span").text(data.name);
-						}else if(data.flag==1 && data.auth!=1){
+						if(data.flag==1 && data.auth!=1){
 							if (data.name==null || data.name=="null" || data.name==""){
 								if(username!=null || username!="nil" || username!="null"){
 									data.name=username
@@ -118,14 +110,12 @@ function setTimes(num,n){
 								}
 							}
 							$(".f-login").hide();
-							$(".f-logintip").show();
 							$(".f-logintip1").show();
 							$(".f-username").text(data.name+",");
-						}else if(data.flag==0){
-							$('#loginModal').modal('hide');
+							afterLoginSkip(data,false);
+						}else{
+							afterLoginSkip(data,true);
 						}
-						
-						reLoadTop();
 					}
 				}catch(e){}
 				conB=true;
@@ -174,7 +164,7 @@ $(function (){
 			}else{
 				//注册页面登录之后
 				$("#loginStatus").trigger("login");
-				afterLoginSkip(data);
+				afterLoginSkip(data,true);
 			}
 			//
 			if($("#loginModal [name='rememberMe']").is(':checked')==true){
@@ -199,60 +189,63 @@ $(function (){
 		
 	});
 });
-function afterLoginSkip(data){
-	switch(loginBackType){
-		case -1:
-			window.location.href = window.location.href;
-			break;
-		case 1://微官网
-			window.location.href="/member/wsite";
-			break;
-		case 2://员工邀请
-			window.location.href="/member/employeemanage/loginUserJoin";
-			break;
-		case 4://注册
-			window.location.href="/";
-			break;
-		case 5://预约
-			window.location.href="/front/appointlogin";
-			break;
-		case 6://投标
-			window.location.href="/front/reurl";
-			break;
-		case 7://用户中心首页
-			window.location.href = "/member/show/memberindex";
-			break;
-		case 8://录入产品服务信息
-			if(data.code==null || data.code == ""){
-				window.location.href = '/member/show/memberindex';
-			}else{
-				window.location.href = '/member/yellowpage/show/showService/'+data.code;
-			}
-			break;
-		case 9://录入企业信息
-			if(data.code==null || data.code == ""){
-				window.location.href = '/member/show/memberindex';
-			}else{
-				window.location.href = '/member/yellowpage/edit/enterprise/'+data.code;
-			}
-			break;
-		case 10://订阅设置
-			window.location.href = '/member/swordfish/rssset';
-			break;
-		case 11://信息列表
-			window.location.href = '/member/swordfish/infolist';
-			break;
-		default:
-			if(compulsoryreRresh){
+function afterLoginSkip(data,flag){
+	//强制刷新
+	if(compulsoryreRresh){
+		window.location.href = window.location.href;
+		return;
+	}
+	if(flag){
+		switch(loginBackType){
+			case -1:
 				window.location.href = window.location.href;
-			}else{
-				$('#loginModal').modal('hide');
-				try{
-					reLoadTop();
-				}catch(e){
-					b_loadTop();
+				break;
+			case 1://微官网
+				window.location.href="/member/wsite";
+				break;
+			case 2://员工邀请
+				window.location.href="/member/employeemanage/loginUserJoin";
+				break;
+			case 4://注册
+				window.location.href="/";
+				break;
+			case 5://预约
+				window.location.href="/front/appointlogin";
+				break;
+			case 6://投标
+				window.location.href="/front/reurl";
+				break;
+			case 7://用户中心首页
+				window.location.href = "/member/show/memberindex";
+				break;
+			case 8://录入产品服务信息
+				if(data.code==null || data.code == ""){
+					window.location.href = '/member/show/memberindex';
+				}else{
+					window.location.href = '/member/yellowpage/show/showService/'+data.code;
 				}
-			}
+				break;
+			case 9://录入企业信息
+				if(data.code==null || data.code == ""){
+					window.location.href = '/member/show/memberindex';
+				}else{
+					window.location.href = '/member/yellowpage/edit/enterprise/'+data.code;
+				}
+				break;
+			case 10://订阅设置
+				window.location.href = '/member/swordfish/rssset';
+				break;
+			case 11://信息列表
+				window.location.href = '/member/swordfish/infolist';
+				break;
+			default:
+				$('#loginModal').modal('hide');
+		}
+	}
+	try{
+		reLoadTop();
+	}catch(e){
+		b_loadTop();
 	}
 }
 </script>
@@ -266,9 +259,6 @@ function afterLoginSkip(data){
 		<img alt="" src="/images/logo-white.png" class="login-logo">
 		<span data-dismiss="modal" aria-label="Close" class="close glyphicon guanbi1" onclick="clearInterval(t);"></span>
       </div>
-			<div  class="f-logintip" style="display:none;">
-				<hr class="hidden-xs hr1" style="width:100%;"/>
-			</div>
 	 		<div class="modal-body f-logintip1" style="display:none;padding: 20px 10px 20px 10px;">
 				 	<div style='margin-bottom:20px;'>
 						<div>
@@ -293,30 +283,6 @@ function afterLoginSkip(data){
 						
 					</div>
 			</div>
-			<div class="modal-body f-logintip2" style="display:none;padding: 20px 10px 20px 10px;">
-				 	<div style='margin-bottom:20px;'>
-					<div>
-							<div class="u-tipsok">
-								<h3 style="line-height: 40px;margin: -25px 0 0 50px	;">
-									<div class="f-username"><span></span><img style="margin-left:15px;" src="/images/ent_authe_a.png" height="22"></div>
-									<div style="float:left;margin: -10px 0 30px 0; color:#000;">恭喜你注册成功!</div>
-								</h3>
-							</div>
-						</div>
-					<div class="u-guide">完成以下操作,就可以领取红包啦:</div>
-						<div class="m-logintip" style="margin-bottom:0px;height:190px;">
-							<ul style="font-size:13px;">
-								<li>
-									<span style="font-weight:bold">1.</span>&nbsp;&nbsp;验证企业身份<a target="_blank" href="/member/accountset/index" class="btn btn-primary" style="width:82px;margin-left:13px;">认证</a>
-								</li>
-								<li>
-									<span style="font-weight:bold">2.</span>&nbsp;&nbsp;去发服务,让更多的用户找到你<a target="_blank" href="/member/accountset/index" class="btn btn-primary" style="width:82px;margin-left:13px;">发服务</a>
-								</li>
-							</ul>
-						</div>
-					</div>
-					<div><small>2015年12月14日起,在企明星注册的服务机构在发布服务信息后,即可收到企明星微信平台发放的最高200元的微信红包奖励!欢迎参与!<a target="_blank" href="/p/">点击查看详情</a>。</small></div>
-			</div>			
 			<div class="modal-body f-login" style="text-align:center;padding-top:20;">
 		<div class="row">
 		<div class="login wxlogin hidden-xs col-md-5">

+ 3 - 3
core/src/web/templates/common/ologinmodal.html

@@ -1,10 +1,10 @@
 <!-- Modal -->
-<div class="modal fade fristAutheLoginModal" id="fristAutheLoginModal" tabindex="-1" role="dialog" aria-labelledby="fristAutheLoginModalLabel">
+<div class="modal fade fristAutheLoginModal b-modal" id="fristAutheLoginModal" tabindex="-1" role="dialog" aria-labelledby="fristAutheLoginModalLabel">
 	<div class="modal-dialog" role="document">
 		<div class="modal-content">
 			<div class="modal-header">
-				<i class="glyphicon shibai pull-right" data-dismiss="modal" aria-label="Close"></i>
-				<h4 class="modal-title" id="fristAutheLoginModalLabel">认证提示信息</h4>
+				<span data-dismiss="modal" aria-label="Close" class="close glyphicon guanbi1"></span>
+				认证提示信息
 			</div>
 			<div class="modal-body">
 				<form class="form-horizontal" role="form">

+ 3 - 5
core/src/web/templates/common/ploginmodal.html

@@ -1,12 +1,10 @@
 <!-- Modal -->
-<div class="modal fade fristAutheLoginModal" id="fristAutheLoginModal" tabindex="-1" role="dialog" aria-labelledby="fristAutheLoginModalLabel">
+<div class="modal fade fristAutheLoginModal b-modal" id="fristAutheLoginModal" tabindex="-1" role="dialog" aria-labelledby="fristAutheLoginModalLabel">
 	<div class="modal-dialog" role="document">
 		<div class="modal-content">
 			<div class="modal-header">
-				<i class="glyphicon shibai pull-right" data-dismiss="modal" aria-label="Close"></i>
-				<h4 class="modal-title text-muted" id="fristAutheLoginModalLabel">
-					认证提示信息
-				</h4>
+				<span data-dismiss="modal" aria-label="Close" class="close glyphicon guanbi1"></span>
+				认证提示信息
 			</div>
 			<div class="modal-body">
 				<form class="form-horizontal" role="form">

+ 1 - 5
core/src/web/templates/common/swordfishhead.html

@@ -1,4 +1,3 @@
-{{include "/common/login.html"}}
 <link href="/css/swordfish.css" rel="stylesheet">
 <div class="b-head">
 	{{include "/common/top.html"}}
@@ -46,11 +45,8 @@ function b_loadTopCallBack(result){
 }
 function swordfishLayoutInit(){
 	if(document.body.scrollHeight <= document.body.clientHeight){
-		$(".swordfish-left").height(document.body.clientHeight-$(".swordfish-head").height() - $("#qfw-bottom").height());
+		$(".b-left").height(document.body.clientHeight-$(".swordfish-head").height() - $("#qfw-bottom").height());
 		webSiteInit();
 	}
 }
-$(function(){
-	b_loadTop();
-});
 </script>

+ 104 - 1
core/src/web/templates/common/top.html

@@ -8,4 +8,107 @@
 			<li><span class="img-circle b-com-five"><i class="glyphicon zhengcefagui"></i></span><a href="/front/content_zcfg_list.html">政策法规</a></li>
 		</ul>
 	</div>
-</div>
+</div>
+<script type="text/javascript">
+$(function(){
+	b_loadTop();
+});
+//认证完之后首次登录
+function afterAutheFirstLogin(result){
+	var identType = result.identType;
+	var entId = result.entId;
+	if(identType == 2){//个人认证
+		$("body").append('{{include "/common/ploginmodal.html"}}');
+		$("#fristAutheLoginModal .com-nickName").text(result.nickName);
+		$("#fristAutheLoginModal .com-entName").text(result.entName+"店铺");
+		$("#fristAutheLoginModal .com-entCard a").attr("href","/member/yellowpage/edit/enterprise/"+entId);
+	}else{
+		$("body").append('{{include "/common/ologinmodal.html"}}');
+		$("#fristAutheLoginModal .com-nickName").text(result.nickName);
+		$("#fristAutheLoginModal .com-entName").text(result.entName);
+		var comAuthentType = result.comAuthentType;
+		//企业认证标识:1:营业执照;2:企业名片;3:企业邮箱
+		var comAuthentText = comAuthentType==1?"营业执照认证":comAuthentType==2?"名片认证":comAuthentType==3?"邮箱认证":"";
+		var flag = comAuthentText!="";
+		$("#fristAutheLoginModal .com-identTypeText").html(",恭喜您完成"+(identType==1?"企业":identType==3?"机构":"")+"认证"+(flag?"-":"")+comAuthentText);
+		$("#fristAutheLoginModal .com-identTypeImg").append('<i class="glyphicon '+(identType==1?"qy":identType==3?"jg":"")+'rz"></i><font class="text-muted">已认证'+(identType==1?"企业":identType==3?"机构":"")+'</font>');
+		if(flag){
+			$("#fristAutheLoginModal .com-identTypeImg").append('<i class="glyphicon margin-r-5 '+(comAuthentType==1?"margin-r-10 yyzz":comAuthentType==2?"mp":comAuthentType==3?"yj":"")+'rz"></i><font class="text-muted">'+comAuthentText+'</font>');
+		}
+		if(hasNewActive){
+			//$("#fristAutheLoginModal .com-who").text("完成以下操作,就可以领取红包啦:");
+		}else{
+			$("#fristAutheLoginModal .com-entCard").removeClass("hide");
+			$("#fristAutheLoginModal .com-entCard a").attr("href","/member/yellowpage/edit/enterprise/"+entId);
+		}
+	}
+	$("#fristAutheLoginModal .com-releaseService a").attr("href","/member/yellowpage/show/showService/"+entId);
+	$("#fristAutheLoginModal").modal('show');
+}
+//
+function b_loadTop(){
+	$.ajax({
+	  	type: "POST",
+	  	url: "/front/getWebSiteTop",
+	 	dataType: "json",
+		async: false,
+	  	success: function(result){
+			topLoadOver = true;
+			if(result.status == "y"){
+				isLogined = true;
+				var msgCount = result.msgCount;
+				var hasMsgCount = msgCount > 0;
+				msgCount = msgCount>999?'...':msgCount;
+				var avatar = null;
+				if(avatar != ""){
+					avatar = result.avatar;
+				}
+				var html = '<span><img class="img-circle headimg" src="'+avatar+'" onerror="this.src=\'/images/swordfish/headimg.png\'">';
+				if(hasMsgCount){
+					html += '<a class="b-round-dot"></a>';
+				}
+				html += '</span><a href="/member/show/memberindex">'+result.nickName+'</a>';
+				html += '<div id="head-hideMenu" class="head-hideMenu"><ul>'
+					    	+'<li onclick="window.location.href=\'/member/msgcenter\'"><i class="glyphicon youjian"></i><span>消息中心';
+				if(hasMsgCount){
+					html += '<a class="b-round-dot"></a>';
+				}
+				html += '</span></li>'
+						+'<li onclick="window.location.href=\'/member/show/memberindex\'"><i class="glyphicon ren1"></i>用户中心</li>'
+						+'<li onclick="window.location.href=\'/front/logout\'" class="border-b-0"><i class="glyphicon tuichu"></i>退出</li>';
+						+'</ul></div>';
+				$("#b-loginStatus").html(html)
+				.mouseover(function(){
+					$("#head-hideMenu").show();
+				}).mouseleave(function(){
+					$("#head-hideMenu").hide();
+				});
+				$("#head-hideMenu").mouseover(function(){
+					$(this).show();
+				}).mouseleave(function(){
+					$(this).hide();
+				});
+				//处理公用底部扫码登录按钮
+				$("#bottom-bar>li:first").addClass("invisible");
+				//处理认证完之后第一次登录弹出提示框
+				if(result.auditType == "y"){
+					afterAutheFirstLogin(result);
+				}
+			}else{
+				isLogined = false;
+				var html = '<a onclick="loginModalShow();">登录/注册</a>';
+				$("#b-loginStatus").html(html);
+				$("#bottom-bar>li").removeClass("invisible");
+				//登录
+				$("body").append('{{include "/common/login.html"}}');
+			}
+			try{
+				b_loadTopCallBack(result);
+			}catch(e){}
+		},
+		error: function(e){
+			topLoadOver = true;
+		}
+	});
+}
+</script>

+ 3 - 4
core/src/web/templates/index.html

@@ -7,8 +7,7 @@
 <meta name="Description" content="{{Msg "seo" "qfw.homepage.description"}}"/>
 <link href="/css/index-new.css" rel="stylesheet">
 </head>
-<body class="index-new-body">
-{{include "/common/login.html"}}
+<body>
 {{include "/common/indexhead.html"}}
 <div class="a-content a-index">	
 	<div class="a-index-head index-new-head">
@@ -262,7 +261,7 @@ $(function(){
 	}else{
 		//活动处理
 		if(hasNewActive){
-			/*扫码送红包活动*/
+			/*扫码送红包活动
 			$(".a-index-hd").append('<img src="/images/smshb.png" onclick="window.open(\'/p\')" class="cursor-pointer"><div class="smshb"><ul id="hd-smshb" class="text-center"></ul></div>');
 			$.post("/front/showAmount",null,function(r){
 				if(r == null || typeof(r) == "undefined" || r.length == 0){
@@ -284,7 +283,7 @@ $(function(){
 						$(this).css({marginTop : "0px"}).find("li:first").appendTo(this);
 					}); 
 				},4000);
-			});
+			});*/
 		}else{
 			$(".a-index-hd").append('<a href="http://3.ihenan.com" target="_blank"><img src="/images/hlwdh.png"></a>');
 		}

+ 0 - 176
core/src/web/templates/member/showenterprise.html

@@ -477,172 +477,6 @@ var entType="企业"
     </div>
   </div>
 </div>
-
-<!-- Modal -->
-<div class="modal fade" id="FRTModal" tabindex="-1" role="dialog" aria-labelledby="FRTModalLabel">
-  	<div class="modal-dialog" role="document">
-		<div class="modal-content">
-			<div id="reg_b">
-		  	<div class="text-muted d_tck_n"></div>
-	  		<div class="modal-body d_tck_fat">
-				
-				<form class="validForm form-horizontal registerform" role="form" id="service" method="post">
-					<!--认证提示信息-->
-				  <div>
-				
-			        <div class="form-group" style="height:20px;">
-			        <label id="col-sm-4" class="col-sm-2 control-label" for="name"></label>
-				    <div class="col-sm-8">
-					</div>
-					<div class="col-sm-2">
-					</div>
-					</div>
-					
-			        <div class="form-group">
-			        <label id="col-sm-4" class="col-sm-2 control-label" for="name"></label>
-				    <div class="col-sm-8">
-					<img src="/images/redpackage.png"/>
-					</div>
-					<div class="col-sm-2">
-					</div>
-					</div>
-					
-			        <div class="form-group">
-			        <label id="col-sm-2" class="col-sm-1 control-label" for="name"></label>
-				    <div class="col-sm-10" align="center" style="font-size:16px;line-height:30px;">
-					企明星发放的红包在赶到您微信的路上,请耐心等候!<br/><span style="color:#ee2a5d;">分享该页面</span>将提高几率获得<span style="color:#ee2a5d;">大额现金红包</span>奖励!来试试吧!
-					</div>
-					<div class="col-sm-1">
-					</div>
-					</div>
-					
-					
-					<div class="form-group">
-			        <label id="col-sm-2" class="col-sm-1 control-label" for="name"></label>
-				    <div class="col-sm-10">
-					友情提示,因参加活动用户数量过多,如果您在十分钟内未收到企明星发放的红包,请及时联系客服QQ。
-					</div>
-					<div class="col-sm-1">
-					</div>
-					</div>
-					
-			        <div class="form-group" style="height:20px;">
-			        <div class="col-sm-5" style="border-bottom:solid #ccc 1px;height:12px;"></div>
-				    <div class="col-sm-2" align="center">
-					<span style="font-size:16px;padding-left:15px;">分享到</span>
-					</div>
-					<div class="col-sm-5" style="border-bottom:solid #ccc 1px;height:12px;">
-					</div>
-					</div>
-					
-			        <div class="form-group" style="margin-left:35px; margin-top:40px;">
-			        <label id="col-sm-2" class="col-sm-1 control-label" for="name"></label>
-				    <div class="col-sm-2">
-				        <div id="share">				
-							<div class="bdsharebuttonbox" >
-							<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
-							</div>
-						</div>
-					</div>
-					 <div class="col-sm-2">
-				        <div id="share">				
-							<div class="bdsharebuttonbox" align="center">
-						<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
-							</div>
-						</div>
-					</div>
-					 <div class="col-sm-2">
-				        <div id="share">				
-							<div class="bdsharebuttonbox" align="center">
-						<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
-							</div>
-						</div>
-					</div>
-					 <div class="col-sm-2">
-				        <div id="share">				
-							<div class="bdsharebuttonbox" align="center">
-						<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
-							</div>
-						</div>
-					</div>
-					<div class="col-sm-2">
-				        <div id="share">				
-							<div class="bdsharebuttonbox" align="center">
-						<a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
-							</div>
-						</div>
-					</div> 
-						<script>window._bd_share_config={
-								"common":{
-									"bdTitle":"企明星企业服务网",
-									"bdDesc" :"亲们,我已经领到了企明星发放的现金大红包!手快有,手慢无,别说我没告诉你们啊!领取方式点击(http://www.qimingxing.info/p/?id=5010001501)",
-									"bdSnsKey":{
-										
-									},
-									"bdText":"",
-									"bdMini":"2",
-									"bdPic":"",
-									"bdStyle":"0",
-									"bdSize":"16",
-									"onBeforeClick":function(cmd,config){
-										if(cmd == "weixin"){
-											config["bdUrl"] = "http://mp.weixin.qq.com/s?__biz=MzA5MTk0MTk5Ng==&mid=401971726&idx=1&sn=89d2470f1de7e80975223041b06c106a";
-										}else{
-											config["bdUrl"] = "http://www.qimingxing.info/p/?id=5010001501";
-										}
-										return config;
-									}
-								},
-								"share":{
-									
-								}
-							};
-							with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>				
-							
-					
-					<div class="col-sm-1">
-					</div>
-					</div>
-					
-					
-			        <div class="form-group" style="margin-left:25px;">
-			        <label id="col-sm-1" class="col-sm-1 control-label" for="name"></label>
-				    <div class="col-sm-2"><span style="padding-left:14px;">微信</span>
-					</div>
-				    <div class="col-sm-2"><span>新浪微博</span>
-					</div>
-				    <div class="col-sm-2"><span>腾讯微博</span>
-					</div>
-				    <div class="col-sm-2"><span>QQ空间</span>
-					</div>
-				    <div class="col-sm-2"><span style="padding-left:8px;">豆瓣</span>
-					</div>
-					<div class="col-sm-1">
-					
-					</div>
-					</div>
-			        <div class="form-group" style="height:5px;">
-			        <label id="col-sm-4" class="col-sm-2 control-label" for="name"></label>
-				    <div class="col-sm-8">
-					</div>
-					<div class="col-sm-2">
-					</div>
-					</div>
-					
-					
-					
-			       
-					</div>
-					</div>
-					
-					</form>
-			
-			</div>
-			</div>
-
-		</div>
-	</div>
-</div>
 </body>
 
 <script type="text/javascript">
@@ -659,16 +493,6 @@ function clearWeixin(){
 		setTimeout(clearWeixin,30);
 	}
 }
-//
-var firstredtype ='{{session "firstredtype"}}';
-   	//第一次发布服务后,发送红包的时候,提示框会弹出分享按钮!
-	if (firstredtype == "y"){
-		$("#FRTModal").modal('show');
-		$.post("/front/deletefirstredtype",null,function(){
-			
-		});
-	}
-
 //
 var s_weixinbarcode = {{.T.entinfo.s_weixinbarcode}}
   if (s_weixinbarcode == ""){

+ 4 - 5
core/src/web/templates/swordfish/index.html

@@ -9,8 +9,8 @@
 <!-- 头部 -->
 {{include "/common/swordfishhead.html"}}
 <!-- 中间 -->
-<div class="swordfish-content container-fluid swordfish-index">
-	<div class="swordfish-left">
+<div class="b-content container-fluid swordfish-index">
+	<div class="b-left">
 		<div id="swordfish-guide" class="swordfish-guide carousel slide" data-ride="carousel">
 		    <div class="swordfish-guide-left">
 				<i class="bootstrap-glyphicon glyphicon glyphicon-menu-left" href="#swordfish-guide" data-slide="prev"></i>
@@ -53,7 +53,7 @@
 			</span>
 		</div>
 	</div>
-	<div class="swordfish-right">
+	<div class="b-right">
 		<div class="swordfish-right-title">
 			剑鱼最新消息
 		</div>
@@ -80,8 +80,7 @@ $(function(){
 		}
 		$("#list").html(html);
 	}else{
-		$(".swordfish-index").find(".swordfish-left").removeClass("col-xs-9");
-		$(".swordfish-index").find(".swordfish-right").remove();
+		$(".swordfish-index").find(".b-right").remove();
 	}
 });
 </script>

+ 3 - 3
core/src/web/templates/swordfish/infolist.html

@@ -319,8 +319,8 @@ function loadMore(){
 <!-- 头部 -->
 {{include "/common/swordfishhead.html"}}
 <!-- 中间 -->
-<div class="swordfish-content container-fluid">
-	<div class="swordfish-left">
+<div class="b-content container-fluid">
+	<div class="b-left">
 		<div class="swordfish-page-title">
 			<i class="img-circle glyphicon jianyu"></i>推送记录
 		</div>
@@ -338,7 +338,7 @@ function loadMore(){
 			</div>
 		</div>
 	</div>
-	<div class="swordfish-right swordfish-qrcode text-center">
+	<div class="b-right swordfish-qrcode text-center">
 		<img src="/images/swordfish/qrcode.png">
 		<br>关注微信公众号:企明星
 	</div>

+ 3 - 3
core/src/web/templates/swordfish/rssset.html

@@ -7,8 +7,8 @@
 <!-- 头部 -->
 {{include "/common/swordfishhead.html"}}
 <!-- 中间 -->
-<div class="swordfish-content container-fluid swordfish-rssset">
-	<div class="swordfish-left">
+<div class="b-content container-fluid swordfish-rssset">
+	<div class="b-left">
 		<div class="swordfish-page-title">
 			<i class="img-circle glyphicon jianyu"></i>订阅设置
 		</div>
@@ -77,7 +77,7 @@
 			<div class="swordfish-panel-c">开发中,敬请期待!</div>
 		</div>
 	</div>
-	<div class="swordfish-right swordfish-qrcode text-center">
+	<div class="b-right swordfish-qrcode text-center">
 		<img src="/images/swordfish/qrcode.png">
 		<br>关注微信公众号:企明星
 	</div>