李广朋 9 жил өмнө
parent
commit
07d020df29

+ 46 - 30
core/src/web/templates/member/credit/mcreditindex.html

@@ -128,7 +128,7 @@
 		}
 		.bookinfo div.content table.creditbottom{
 			padding-top:10px;
-			max-width:240px;
+			width:240px;
 		}
 		.bookinfo div.content img{
 			width:57px;
@@ -153,16 +153,9 @@
 				{{session "nickName"}}
 			</div>
 			<div>
+					<button class="btn  btn-default bookin"  id="indexbookinbtn" target="bookinfo" style="display:none;">查看签到</button>
+					<button class="btn btn-primary bookin"  id="indexbookinbtn1" target="bookinfo" style="display:none;">签到</button>
 
-				{{if session "credit_qd"}}
-					{{if eq (session "credit_qd") "y"}}
-					<button class="btn  btn-default bookin"  id="indexbookinbtn" target="bookinfo">查看签到</button>
-					{{else}}
-					<button class="btn btn-primary bookin"  id="indexbookinbtn" target="bookinfo">签到</button>
-					{{end}}
-				{{else}}
-					<button class="btn btn-primary bookin" id="indexbookinbtn" target="bookinfo">签到</button>
-				{{end}}
 				
 			</div>
 			<div class="m-detailinfo col-xs-12">
@@ -279,7 +272,7 @@
 						<td><img src="/images/40jf.png"><div>第四天</div></td>
 					</tr>
 				</table>
-				<table width="100%;" style="margin:0px auto;max-width: 241px;" class="creditbottom">
+				<table style="margin:0px auto;max-width: 241px;" class="creditbottom">
 					<tr>
 						<td style="margin-left:10px;"><img src="/images/50jf.png"><div>第五天</div></td>
 						<td><img src="/images/60jf.png"><div>第六天</div></td>
@@ -287,15 +280,9 @@
 					</tr>
 				</table>
 				<div>
-				{{if session "credit_qd"}}
-					{{if eq (session "credit_qd") "y"}}
-						<button class="btn   " style="width:180px;margin-top:10px;" id="bookinbtn" disabled="disabled">已签到</button>
-					{{else}}
-						<button class="btn btn-primary " style="width:180px;margin-top:10px;" id="bookinbtn">签到</button>
-					{{end}}
-				{{else}}
-					<button class="btn btn-primary " style="width:180px;margin-top:10px;" id="bookinbtn">签到</button>
-				{{end}}
+						<button class="btn   " style="width:180px;margin-top:10px;" id="bookinbtn" disabled="disabled" style="display:none;">已签到</button>
+						<button class="btn btn-primary " style="width:180px;margin-top:10px;" id="bookinbtn1"  style="display:none;">签到</button>
+
 				</div>
 				<div><small>(已连续签到<span class="days"></span>天)</small></div>
 			</div>
@@ -304,15 +291,34 @@
 			
 	<script>
 		$(function(){
-			$(".m-rules").bind("click",show);
-			$(".bookin").bind("click",show);
-			$(".f-close").bind("click",hide);
-			$("#bookinbtn").bind("click",qd);
-			bookinfo();
-			if ($(".gold").text()==""){
-				$(".gold").text("0");
-			}
-		});
+				changeStatus();
+				$(".m-rules").bind("click",show);
+				$(".bookin").bind("click",show);
+				$(".f-close").bind("click",hide);
+				$("#bookinbtn1").bind("click",qd);
+				bookinfo();
+				if ($(".gold").text()==""){
+					$(".gold").text("0");
+				}
+			});
+		function changeStatus(){
+			$.ajax({
+				url:"/member/credit/sessionQdAjx",
+				success:function(n){
+					if (n.result=="n"){
+						$("#indexbookinbtn1").show();
+						$("#bookinbtn1").show();
+						$("#indexbookinbtn").hide();
+						$("#bookinbtn").hide();
+					}else{
+						$("#indexbookinbtn").show();
+						$("#bookinbtn").show();
+						$("#indexbookinbtn1").hide();
+						$("#bookinbtn1").hide();
+					}
+				}
+			})
+		}
 		function bookinfo(){
 			$.ajax({
 				url:"/member/credit/bookinfo",
@@ -365,11 +371,21 @@
 			$.post("/member/credit/inCreditAjx",{"param":"qd"},function(r){
 				bookinfo();
 				if (r.result=="y"){
+					var g=parseInt($(".gold").text());
+					var days=parseInt($(".days").attr("data"))
+					if (days==0){
+						days=1
+					}
+					var d=parseInt(days*10)
+					var g=g+d;
+					console.log(g);
+					$(".gold").text(g);
 					$("#indexbookinbtn").attr("class","btn  btn-default bookin");
 					$("#bookinbtn").attr("class","btn   bookin");
 					$("#bookinbtn").attr("disabled","disabled");
-					$(".gold").text(parseInt($(".gold").text())+parseInt($(".days").attr("data")*10));
+					
 				}
+				changeStatus();
 			});
 			return false;
 		}

+ 19 - 10
core/src/web/templates/service/detail.html

@@ -130,12 +130,11 @@
 									{{ if eq $v.i_identType 1}}
 										<span class="glyphicon qyrz   margin-l-10 jhtb"></span><span class="lineb " ><small style="margin-left:5px;margin-right:5px;">已认证企业 </small></span>
 										{{ if $v.i_comauthenttype }}
-												-
-												{{ if eq $v.i_comauthenttype 2.0}}
+												{{ if eq $v.i_comauthenttype 2}}
 													<span class="glyphicon mprz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-right:-7px;">名片认证</small></span>					
-												{{else if eq $v.i_comauthenttype 1.0}}
+												{{else if eq $v.i_comauthenttype 1}}
 													<span class="glyphicon yyzzrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-left:3px;margin-right:-7px;">营业执照认证</small></span>
-												{{else if eq $v.i_comauthenttype 3.0}}
+												{{else if eq $v.i_comauthenttype 3}}
 													<span class="glyphicon yjrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-right:-7px;">年报邮箱认证</small></span>
 												{{end}}
 										{{else}}
@@ -190,7 +189,7 @@
 							<span class="glyphicon ren2 icon_gray text-muted"  ></span><span class="margin-r-10 text-muted">{{.T.einfo.s_persion}}</span>
 							{{end}}
 							{{if .T.sinfo.s_phone}}	
-								<span class="glyphicon shouji icon_gray text-muted"  ></span><span class="margin-r-10 text-muted">{{.T.einfo.s_mobile}}</span>
+								<span class="glyphicon shouji icon_gray text-muted"  ></span><span class="margin-r-10 text-muted">{{.T.sinfo.s_phone}}</span>
 							{{end}}	
 							<br/>
 							{{if .T.einfo.s_enturl}}
@@ -200,7 +199,7 @@
 							<span class="glyphicon qq1 icon_gray  text-muted"  ></span><span class="text-muted"><a href="tencent://message/?uin={{.T.einfo.s_qq}}&Site=hexun.com/ngdao&Menu=yes" class="margin-r-10"><img src="/images/u124.png" style="margin-top:-10px;cursor:pointer;" /></a></span>
 							{{end}}
 							{{if .T.einfo.i_province}}
-							<br/><span class="glyphicon dizhi icon_gray  text-muted"  ></span><span class="text-muted"><span id="de-address"></span><a href="javascript:void(0)" onclick="showMap()" style="color:#000;">&nbsp;查看详细地图</a>
+							<br/><span class="glyphicon dizhi icon_gray  text-muted"  ></span><span class="text-muted"><span id="de-address"></span>
 								<input id="location" type="hidden" value="">
 								<input id="cityname" type="hidden" value="">
 							</span><br/>
@@ -666,10 +665,20 @@ function comment(){
 			});
 		});
 		$(function(){
-			var i_province="{{.T.einfo.i_province}}";
-			var i_city="{{.T.einfo.i_city}}";
-			var i_area="{{.T.einfo.i_area}}";
-			var address="{{.T.einfo.s_address}}"
+			var all="{{.T.sinfo.s_opLocDistrict}}";
+			var i_province="";
+			var i_city="";
+			var i_area="";
+			if (all.length==6){
+				 i_area=all
+			}
+			 if(all.length<=6){
+				 i_city=all.substr(0,4)
+			}
+			 if(all.length<=6){
+				 i_province=all.substr(0,2)
+			}
+			var address=""
 			obj=$.cxSelect.defaults.url;
 			if(i_province!=""){
 				for (var i=0;i<obj.length;i++){

+ 42 - 7
core/src/web/templates/service/viewsingledemand.html

@@ -13,6 +13,41 @@
 				font-size:13px;
 				font-weight:400;
 			}
+			.a-table td>div{
+				position: static !important;
+			}
+			.d-bg-green{
+				background-image:url(/images/tbn8.png);
+			}
+			.d-bg-gray{
+				background-image:url(/images/tbn9.png);
+			}
+			.d-bg-blue{
+				background-image:url(/images/tbn7.png);
+			}
+			.a-bg-gray-new{
+				display:inline-block;
+				height:21px;
+				width:81px;
+				background:#FFF;
+				background-image:url(/images/tbn9.png);
+				position: relative;
+			  	  top: -4px;
+			}
+			.d-bg-green, .d-bg-gray,.d-bg-blue{
+				width:81px;
+				height:21px;
+				color:#FFF;
+				padding-left:0px;;
+				position: static !important;
+				left: 0px;
+				right: 0px;
+				bottom: 0px;
+				text-overflow: none;
+				overflow: none;
+				white-space: nowrap;
+				line-height:21px !important;
+			}
 		</style>
 		    {{include "/common/inc.html"}}
     <!-- extra CSS -->
@@ -72,26 +107,26 @@
 											{{if .T.demandInfo.i_identtype}}
 												{{if eq 1 .T.demandInfo.i_identtype}}
 													<span class="glyphicon qyrz   margin-l-10 jhtb"></span>
-													<small style="color:#dd4814;margin-left:5px;">已认证企业</small>
+													<small style="color:#000;margin-left:5px;">已认证企业</small>
 													{{ if .T.demandInfo.i_comauthenttype }}
 															{{ if eq .T.demandInfo.i_comauthenttype 2}}
-																<span class="glyphicon mprz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-right:5px;color:#dd4814;">名片认证</small></span>					
+																<span class="glyphicon mprz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-right:5px;color:#4e5051;">名片认证</small></span>					
 															{{else if eq .T.demandInfo.i_comauthenttype 1}}
-																<span class="glyphicon yyzzrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-left:3px;margin-right:5px;color:#dd4814;">营业执照认证</small></span>
+																<span class="glyphicon yyzzrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-left:3px;margin-right:5px;color:#4e5051;">营业执照认证</small></span>
 															{{else if eq .T.demandInfo.i_comauthenttype 3}}
-																<span class="glyphicon yjrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-right:5px;color:#dd4814;">年报邮箱认证</small></span>
+																<span class="glyphicon yjrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-right:5px;color:#4e5051;">年报邮箱认证</small></span>
 															{{end}}
 													{{else}}
-															<span class="glyphicon yyzzrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-left:3px;margin-right:5px;color:#dd4814;">营业执照认证</small></span>
+															<span class="glyphicon yyzzrz   margin-r-10 jhtbtype"></span><span class="lineb " ><small style="margin-left:3px;margin-right:5px;color:#4e5051;">营业执照认证</small></span>
 													{{end}}
 												{{end}}
 												{{if eq 2 .T.demandInfo.i_identtype}}
 													<span class="glyphicon grrz   margin-l-10 jhtb"></span>
-													<small style="color:#dd4814;margin-left:-8px;">已认证个人</small>
+													<small style="color:#4e5051;margin-left:-8px;">已认证个人</small>
 												{{end}}
 												{{if eq 3 .T.demandInfo.i_identtype}}
 													<span class="glyphicon jgrz   margin-l-10 jhtb"></span>
-													<small style="color:#dd4814;margin-left:5px;">已认证机构</small>
+													<small style="color:#4e5051;margin-left:5px;">已认证机构</small>
 										{{end}}
 										{{end}}
 										</span>