Browse Source

wip:图片无域名适配

wangkaiyue 2 years ago
parent
commit
d54e6aa364
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/web/templates/site/page/helpCenter/index.html

+ 7 - 0
src/web/templates/site/page/helpCenter/index.html

@@ -122,6 +122,13 @@
           window.open(url)
         }
       })
+      $(".hot-container img.v-thumbnail").each(function(){
+        var imgsrc = $(this).attr("src");
+        console.log("xx",imgsrc)
+        if(imgsrc.indexOf("://") < 0){
+          $(this).attr("src",{{Msg "seo" "jyadd"}}+imgsrc)
+        }
+      })
     })
   </script>
   {{include "/common/baiducc.html"}}