Browse Source

推送设置修改

TANGSHIZHE 4 years ago
parent
commit
99644da07d

+ 32 - 6
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/push_settings.js

@@ -221,14 +221,9 @@ var pushDetailSettingConf = {
             },
             {
                 value: 2,
-                title: '每日推送 1 次',
+                title: '每日推送',
                 label: '上午9点推送一次信息'
             },
-            {
-                value: 5,
-                title: '每日推送 2 次',
-                label: '上午9点推送一次信息,下午2点推送一次信息'
-            },
             {
                 value: 3,
                 title: '每周推送',
@@ -299,6 +294,7 @@ var pushDetailSettingConf = {
         // 初始化页面显示数据
         initPage: function () {
             // 获取模块显示隐藏信息
+            console.log(this.settingList)
             for (var i = 0; i < this.settingList.length; i++) {
                 if (this.type === this.settingList[i].field) {
                     for (var key in this.settingList[i].detailSettingsShow) {
@@ -307,6 +303,35 @@ var pushDetailSettingConf = {
                     break
                 }
             }
+            if(this.type === 'super_subscribe') {
+                this.rateModeList = [
+                    {
+                        value: 1,
+                        title: '实时推送',
+                        label: '上午8点至晚上10点不定时推送'
+                    },
+                    {
+                        value: 2,
+                        title: '每日推送 1 次',
+                        label: '上午9点推送一次信息'
+                    },
+                    {
+                        value: 5,
+                        title: '每日推送 2 次',
+                        label: '上午9点推送一次信息,下午2点推送一次信息'
+                    },
+                    {
+                        value: 3,
+                        title: '每周推送',
+                        label: '每周五上午9点推送一次信息'
+                    },
+                    {
+                        value: 4,
+                        title: '每月推送',
+                        label: '每月28日上午9点推送一次信息'
+                    }
+                ]
+            }
             this.getPushSettings()
         },
         getPushSettings: function () {
@@ -321,6 +346,7 @@ var pushDetailSettingConf = {
                     if (res.error_code == 0 && res.data) {
                         // 转换并设置数据
                         _this.setDataToPage(res.data)
+                        console.log(res)
                     } else {
                         _this.$toast(res.error_msg)
                     }

+ 30 - 6
src/web/staticres/me/js/push_setting.js

@@ -211,14 +211,9 @@ var pushDetailSettingConf = {
             },
             {
                 value: 2,
-                title: '每日推送 1 次',
+                title: '每日推送',
                 label: '上午9点推送一次信息'
             },
-            {
-                value: 5,
-                title: '每日推送 2 次',
-                label: '上午9点推送一次信息,下午2点推送一次信息'
-            },
             {
                 value: 3,
                 title: '每周推送',
@@ -297,6 +292,35 @@ var pushDetailSettingConf = {
                     break
                 }
             }
+            if(this.type === 'super_subscribe') {
+                this.rateModeList = [
+                    {
+                        value: 1,
+                        title: '实时推送',
+                        label: '上午8点至晚上10点不定时推送'
+                    },
+                    {
+                        value: 2,
+                        title: '每日推送 1 次',
+                        label: '上午9点推送一次信息'
+                    },
+                    {
+                        value: 5,
+                        title: '每日推送 2 次',
+                        label: '上午9点推送一次信息,下午2点推送一次信息'
+                    },
+                    {
+                        value: 3,
+                        title: '每周推送',
+                        label: '每周五上午9点推送一次信息'
+                    },
+                    {
+                        value: 4,
+                        title: '每月推送',
+                        label: '每月28日上午9点推送一次信息'
+                    }
+                ]
+            }
             this.getPushSettings()
         },
         getFreeSubSettings: function () {