wangshan %!s(int64=9) %!d(string=hai) anos
pai
achega
65d894507e
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  1. 1 1
      core/src/timetask.json
  2. 5 1
      core/src/web/templates/index.html

+ 1 - 1
core/src/timetask.json

@@ -1 +1 @@
-{"comment":{"c_rate":10,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-09 16:43:16"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-09 16:43:16"}},"marketisstart":true,"marketrate":300}
+{"comment":{"c_rate":10,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-09 16:53:17"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-09 16:53:17"}},"marketisstart":true,"marketrate":300}

+ 5 - 1
core/src/web/templates/index.html

@@ -32,8 +32,10 @@
 					{{$s:=(Ad "index-center-01" 4)}}
 					{{range $k,$v := $s}}
 					 <div class="item{{if eq $k 0}} active{{end}}">
+					{{if $v.s_link}}<a href="{{$v.s_link}}">{{end}}
 				         <img{{if $v.s_picalt}} alt="{{$v.s_picalt}}"{{end}} class="img-responsive" src="{{if $v.s_pic}}{{$v.s_pic}}{{else}}null{{end}}" onerror="this.src='/images/u166.png'">
-				    </div>
+					{{if $v.s_link}}</a>{{end}}
+					</div>
 					{{end}}
 			    </div>
 			</div>
@@ -292,6 +294,7 @@ $(function(){
 			if(typeof($(this).children("img")) == "undefined"){
 				return;
 			}
+			$(this).children("a").css("color","FF5A5F");
 			oldImgSrc = $(this).children("img").attr("src");
 			$(this).children("img").attr("src",oldImgSrc.split(".")[0]+"-a."+oldImgSrc.split(".")[1]);
 		}).mouseout(function(){
@@ -299,6 +302,7 @@ $(function(){
 				return;
 			}
 			$(this).children("img").attr("src",oldImgSrc);
+			$(this).children("a").css("color","000");
 		});
 	}
 	$("#iWant>div").click(function(){