使用js来加载背景图片
判断参数值,然后if语句判断
setTimeout(function() {
var a=_g().getWidgetByName("pp").getValue(); //获取参数值,pp是控件名
if(a==1)
{$('.fr-label').eq(1).css({"background":"url('/webroot/help/picture/logo-ch1.png') no-repeat","height":"100","background-size":"contain"});}
else if(a==2)
{$('.fr-label').eq(1).css({"background":"url('/webroot/help/picture/logo-ch2.png') no-repeat","height":"100","background-size":"contain"});}
//contain适应,cover填满,第几个标签控件,这里面就写几减一,第一个就是eq(0),第二个就是eq(1)
}, 100);