Эх сурвалжийг харах

fix: 修复图片缓存问题

zhangyuhan 1 жил өмнө
parent
commit
11cbd5cfb9

+ 20 - 20
src/web/templates/frontRouter/pc/cooperation/free/index.html

@@ -94,42 +94,42 @@
     data: {
       joinList: [
         {
-          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-1.png',
-          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/1.png'
+          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-1.png?v={{Msg "seo" "version"}}',
+          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/1.png?v={{Msg "seo" "version"}}'
         },
         {
-          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-2.png',
-          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/2.png'
+          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-2.png?v={{Msg "seo" "version"}}',
+          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/2.png?v={{Msg "seo" "version"}}'
         },
         {
-          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-3.png',
-          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/3.png'
+          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-3.png?v={{Msg "seo" "version"}}',
+          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/3.png?v={{Msg "seo" "version"}}'
         },
         {
-          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-4.png',
-          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/4.png'
+          img: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/join-4.png?v={{Msg "seo" "version"}}',
+          content: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/join/4.png?v={{Msg "seo" "version"}}'
         }
       ],
       cooperateTypeList: [
         {
-          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-1.png',
-          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-1.png',
-          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png'
+          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-1.png?v={{Msg "seo" "version"}}',
+          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-1.png?v={{Msg "seo" "version"}}',
+          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png?v={{Msg "seo" "version"}}'
         },
         {
-          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-2.png',
-          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-2.png',
-          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png'
+          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-2.png?v={{Msg "seo" "version"}}',
+          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-2.png?v={{Msg "seo" "version"}}',
+          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png?v={{Msg "seo" "version"}}'
         },
         {
-          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-3.png',
-          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-3.png',
-          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png'
+          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-3.png?v={{Msg "seo" "version"}}',
+          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-3.png?v={{Msg "seo" "version"}}',
+          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png?v={{Msg "seo" "version"}}'
         },
         {
-          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-4.png',
-          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-4.png',
-          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png'
+          top: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/top-4.png?v={{Msg "seo" "version"}}',
+          center: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/center-4.png?v={{Msg "seo" "version"}}',
+          bottom: '{{Msg "seo" "cdn"}}/frontRouter/pc/cooperation/img/coopType/bottom.png?v={{Msg "seo" "version"}}'
         }
       ]
     }