From d8a34fdc7477c30e365e8ec449754ac1091855cd Mon Sep 17 00:00:00 2001 From: muzi <1099438829@qq.com> Date: Mon, 7 Jan 2019 10:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3mobile=E6=97=B6=E5=80=99?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=88=87=E6=8D=A2=E5=A3=81=E7=BA=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/theme_switcher/theme_switcher.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/theme_switcher/theme_switcher.js b/plugins/theme_switcher/theme_switcher.js index b674ebb..093273b 100644 --- a/plugins/theme_switcher/theme_switcher.js +++ b/plugins/theme_switcher/theme_switcher.js @@ -83,8 +83,11 @@ $(function () { var theme_area=$("#theme_area"); theme_area.on('click','.theme_setting',function () { var pic=$(this).data('pic'); - Win10_parent.setBgUrl({main:pic}); - + if(!Win10_parent.isSmallScreen()){ + Win10_parent.setBgUrl({main:pic}); + }else{ + Win10_parent.setBgUrl({mobile:pic}); + } //此处你也许想用ajax把修改信息保存到服务器。。。 });