Browse Source

服务列表

wangshan 9 years ago
parent
commit
52035828fd
2 changed files with 4 additions and 2 deletions
  1. 1 1
      core/src/timetask.json
  2. 3 1
      core/src/web/templates/service/detail.html

+ 1 - 1
core/src/timetask.json

@@ -1 +1 @@
-{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-06-08 10:41:21"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-06-08 10:41:21"}},"marketisstart":true,"marketrate":300}
+{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-06-08 13:34:20"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-06-08 13:34:20"}},"marketisstart":true,"marketrate":300}

+ 3 - 1
core/src/web/templates/service/detail.html

@@ -267,7 +267,7 @@
 			<a type="button" class="text-muted btnactive" style="margin-left:18px;border-left:1px solid #FFF;">服务详情</a>
 			<a type="button" class="text-muted">服务评价({{.T.sinfo.i_comments}})</a>
 			<a type="button" class="text-muted">预约记录({{.T.appcount}})</a>
-			<a type="button" class="text-muted" id="moreservice">更多服务</a>
+			<a type="button" class="text-muted" id="moreservice">更多服务(0)</a>
 			{{end}}
 			
 			{{if .T.status }}
@@ -468,7 +468,9 @@ function del(id){
 var paging;
 $(function(){
 	 paging = new Paging("servicePaging","/market/service/list",{id:{{.T.sinfo.s_enterpriseid}}},5,function(r){
+		
 		var html = '';
+		$("#moreservice").html("更多服务("+paging.count+")")
 		for(var i=0; i< r.length;i++){
 			var _id = r[i]._id;
 			var jg = ""