Преглед изворни кода

:bug: 图片路径错误问题

zhanghe пре 6 година
родитељ
комит
f8239ee4d9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/stage/index/scene/GlobalGoodDetailScene.js

+ 1 - 1
src/stage/index/scene/GlobalGoodDetailScene.js

@@ -59,7 +59,7 @@ class GlobalGoodDetailScene extends scene {
             let addCartBtn = FocusEngine.getWidgetById('add-cart-btn');
             addCartBtn.con.classList.add('added');
             addCartBtn.con.classList.remove('add-cart');
-            addCartBtn.con.children[0].src = goodsItem.isInCart ? './assets/img/course/detail/periphery_added.png' : './assets/img/GlobalGoodDetail/add_shop_cart.png';
+            addCartBtn.con.children[0].src = goodsItem.isInCart ? './assets/img/CourseScene/detail/periphery_added.png' : './assets/img/GlobalGoodDetail/add_shop_cart.png';
         }
     }