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

fix: 修复app端弹窗 close 图标展示问题

zhangyuhan 3 жил өмнө
parent
commit
6f13779b38

+ 5 - 1
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -4410,7 +4410,11 @@ var Active_Vip_Invite = function (nowTime) {
     this.getHtml = function () {
       // SVGA 动画支持
       if (adv_img.indexOf('.svga') !== -1) {
-        return '<div class="pop-new" id="app-mainSearch-dialog--svga"></div>'
+        var styleHtml = ''
+        if (typeof AD === 'object' && AD.o_extend != undefined) {
+          styleHtml = 'style="width:' + (AD.o_extend.width ? (AD.o_extend.width + "px") : 'auto') + ';height:' + (AD.o_extend.height ? (AD.o_extend.height + "px") : 'auto') + ';"'
+        }
+        return '<div class="pop-new" ' + styleHtml + ' id="app-mainSearch-dialog--svga"></div>'
       }
       var html = '<img class="pop-new" id="wx-mainSearch-dialog" style="border-radius: 8px;" src ="' + adv_img + '">'
       var _html = '<div class="pop-new" style="background: url(' + adv_img + ');background-size: 100% 100%;height: inherit;width: inherit;border-radius: 8px;">'

+ 0 - 4
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -840,10 +840,6 @@
       }
       if (AD.o_extend != undefined) {
         adv_within = AD.o_extend.linktype;
-        $('.pop-new').css({
-          "width": AD.o_extend.width ? (AD.o_extend.width + "px") : 'auto',
-          "height": AD.o_extend.height ? (AD.o_extend.height + "px") : 'auto'
-        })
       }
     }
   {{end}}