Browse Source

fix: 修复免费用户推送时间选择问题,订阅推送页面免费用户提供默认值

zhangyuhan 2 years ago
parent
commit
24b877ef16
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/web/staticres/common-module/history-push/js/historypush.js

+ 2 - 2
src/web/staticres/common-module/history-push/js/historypush.js

@@ -611,7 +611,7 @@ var vm = new Vue({
           if(res.data) {
         	var switchProduct = null;
             // @tip 多角色身份用户返回需清除缓存
-            var oldType = sessionStorage.getItem('save-user-type-' + goTemplateData.params.userId)
+            var oldType = sessionStorage.getItem('save-user-type-' + goTemplateData.params.userId) || ''
             sessionStorage.setItem('save-user-type-' + goTemplateData.params.userId, res.data.vt)
 
             if (type !== 'push' && res.data.vt != oldType) {
@@ -839,7 +839,7 @@ var vm = new Vue({
                   var cacheMemberType = sessionStorage.getItem('history-set-user-type')
                   var canSelectMember = cacheMemberType === 'bigmember'
                   var setUserType = ''
-                  if (pushUrlTime) {
+                  if (pushUrlTime && _this.rootInfo.vipStatus > 0) {
                     setUserType = 'v'
                   }
                   // if (_this.rootInfo.vipStatus > 0) {