Browse Source

feat: pc首页广告位弹窗逻辑优化

cuiyalong 1 year ago
parent
commit
b7fd0c2dfe
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/web/templates/pc/template/index/activity-dialog.html

+ 6 - 6
src/web/templates/pc/template/index/activity-dialog.html

@@ -32,12 +32,6 @@
     if (ADList.length>0){
       for (var i=0;i<ADList.length;i++ ){
         var AD=ADList[i]
-        if(AD.s_link){
-          adv_url = AD.s_link
-        }
-        if(AD.s_pic){
-          adv_img = AD.s_pic
-        }
         if (AD.o_extend != undefined) {
           var nowTime = new Date().getTime();
           if (AD.o_extend.startTime!=undefined){
@@ -74,6 +68,12 @@
             adv_background_opacity = AD.o_extend.opacity;
           }
         }
+        if(AD.s_link){
+          adv_url = AD.s_link
+        }
+        if(AD.s_pic){
+          adv_img = AD.s_pic
+        }
         if (adv_img!=""){
           $(".tc_button").remove();
           let isSupportFull = false