Browse Source

推送开关字段值变更

zhuth 6 years ago
parent
commit
a220e5a1d7

+ 1 - 1
frontend/pc-web/app/view/basic/school/SchoolInfo.js

@@ -200,7 +200,7 @@ Ext.define('school.view.basic.school.SchoolInfo', {
         values.school_wechatPush = (values.school_wechatPush == 'on' || 
             values.school_wechatPush == '1' || 
             values.school_wechatPush == true ||
-            values.school_wechatPush == 'true'  ) ? '-1' : '0';
+            values.school_wechatPush == 'true'  ) ? '1' : '0';
         me.setLoading(true);
         school.util.BaseUtil.request({
             // url: 'http://10.1.80.35:9560/school/save',

+ 1 - 1
frontend/pc-web/app/view/viewport/ViewportController.js

@@ -65,7 +65,7 @@ Ext.define('school.view.viewport.ViewportController', {
                     schoolStatus: res.data.school_status,
                     schoolSecret: res.data.school_secret,
                     schoolClassHours: res.data.school_classHours,
-                    schoolWechatPush: res.data.school_wechatPush == -1 ? 'on' : 'off',
+                    schoolWechatPush: res.data.school_wechatPush == 1 ? 'on' : 'off',
                 };
                 me.getViewModel().setData(d);
             }