瀏覽代碼

1:处理浏览历史加载默认图片报错的问题。

yujia 9 年之前
父節點
當前提交
eb538ed446
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/main/webapp/resources/view/usercenter/forstore/browsing_history.html

+ 1 - 1
src/main/webapp/resources/view/usercenter/forstore/browsing_history.html

@@ -408,7 +408,7 @@
             <li ng-class="{'select': isBatch&& !item.active ,'isselect': isBatch&& item.active }" ng-repeat="item in his.dateList" ng-click="setActive(item)">
             <li ng-class="{'select': isBatch&& !item.active ,'isselect': isBatch&& item.active }" ng-repeat="item in his.dateList" ng-click="setActive(item)">
                 <div class="img">
                 <div class="img">
                     <a name="detail" href="{{'store/' + item.storeid + '/' + item.batchCode}}">
                     <a name="detail" href="{{'store/' + item.storeid + '/' + item.batchCode}}">
-                        <img src="{{item.img || 'static/img/store/common/default.png'}}"/></a>
+                        <img ng-src="{{item.img || '/static/img/store/common/default.png'}}"/></a>
                 </div>
                 </div>
                 <div class="content">
                 <div class="content">
                     <p class="red" ng-if="item.minPriceRMB">¥<span ng-bind="item.minPriceRMB"></span></p>
                     <p class="red" ng-if="item.minPriceRMB">¥<span ng-bind="item.minPriceRMB"></span></p>