Przeglądaj źródła

首页图片懒加载修改

wangshan 9 lat temu
rodzic
commit
fd2edb4243
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      core/src/timetask.json
  2. 1 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-15 08:47:38"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-15 08:47:38"}},"marketisstart":true,"marketrate":300}
+{"comment":{"c_rate":10,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-15 09:02:15"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-15 09:02:15"}},"marketisstart":true,"marketrate":300}

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

@@ -34,7 +34,7 @@
 					{{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}}  data-original="{{if $v.s_pic}}{{$v.s_pic}}{{else}}/images/u166.png{{end}}" class="lazy img-responsive"   onerror="this.src='/images/u166.png'">
+				         <img{{if $v.s_picalt}} alt="{{$v.s_picalt}}"{{end}}   src="{{if $v.s_pic}}{{$v.s_pic}}{{else}}null{{end}}" class="img-responsive"   onerror="this.src='/images/u166.png'">
 					{{if $v.s_link}}</a>{{end}}
 					</div>
 					{{end}}