|
@@ -167,7 +167,7 @@
|
|
|
$("#pushfrequency li").eq(2).addClass("checked");
|
|
|
}
|
|
|
//推送方式
|
|
|
- if (r.data.mailpush==undefined&&r.data.apppush==undefined&&r.data.wxpush==undefined){
|
|
|
+ if (!r.data.mailpush&&!r.data.apppush&&!r.data.wxpush){
|
|
|
$("#apptip").addClass("on");
|
|
|
$("#apptip .turn-off").hide();
|
|
|
$("#apptip .turn-on").show();
|
|
@@ -180,7 +180,7 @@
|
|
|
$("#apptip").addClass("on");
|
|
|
$("#apptip .turn-off").hide();
|
|
|
$("#apptip .turn-on").show();
|
|
|
- }else if (r.data.apppush==0){
|
|
|
+ }else{
|
|
|
$("#apptip .turn-on").hide();
|
|
|
$("#apptip .turn-off").show();
|
|
|
}
|
|
@@ -188,7 +188,7 @@
|
|
|
$("#emailtip").addClass("on");
|
|
|
$("#emailtip .turn-off").hide();
|
|
|
$("#emailtip .turn-on").show();
|
|
|
- }else if (r.data.mailpush==0){
|
|
|
+ }else{
|
|
|
$("#emailtip .turn-on").hide();
|
|
|
$("#emailtip .turn-off").show();
|
|
|
}
|