Explorar o código

feat: 主题预览

XiaodongLin hai 11 meses
pai
achega
9965c62106

+ 2 - 0
module/backpack/src/main/java/com/adealink/weparty/backpack/adapter/BackpackItemViewBinder.kt

@@ -116,6 +116,7 @@ class BackpackItemViewBinder(
             when (packageInfo.goodsType) {
                 StoreGoodType.CAR.type -> {
                     binding.ivEffect.setURL(packageInfo.img, intent = Intent().apply {
+                        putExtra(RES_URL, packageInfo.dynamicResourceUrl?.ifEmpty { packageInfo.resourceEffect })
                         putExtra(DYNAMIC_RESOURCE_URL, (packageInfo.dynamicResourceUrl)?.ifEmpty { packageInfo.img })
                         putExtra(NEW_DYNAMIC_RESOURCE_URL, packageInfo.newDynamicResourceUrl)
                         putExtra(NEW_ANIM_TYPE, packageInfo.newAnimType)
@@ -168,6 +169,7 @@ class BackpackItemViewBinder(
                 StoreGoodType.THEME.type -> {
                     binding.ivEffect.setURL(packageInfo.img, intent = Intent().apply {
                         putExtra(DYNAMIC_RESOURCE_URL, packageInfo.dynamicResourceUrl)
+                        putExtra(NEW_DYNAMIC_RESOURCE_URL, packageInfo.newDynamicResourceUrl)
                         putExtra(RES_URL, packageInfo.img)
                         putExtra(NEW_DYNAMIC_RESOURCE_URL, packageInfo.newDynamicResourceUrl)
                         putExtra(GOODS_TYPE, packageInfo.goodsType)