Browse Source

feat: 修复免费订阅管理问题

zhangyuhan 3 years ago
parent
commit
57f83c2622

+ 8 - 1
src/web/staticres/common-module/vipsubscribe/js/vip-subscribe-set-template.js

@@ -791,12 +791,19 @@ var subComponent = {
             _this.userAreaAllNum = res.data.provincenum
             _this.initdata.infotype = res.data.infotype || []
             _this.infoTypeData = res.data.infotype || []
+            // 关键词长度
+            if(res.data.keys) {
+              $('.body-item.keywords .keywords-text').text('已设置' +res.data.keys.length+ '组关键词')
+            } else {
+              $('.body-item.keywords .keywords-text').text('请设置关键词')
+            }
 
             _this.info.infoType = _this.infoTypeData.length === 0 ? '全部类型' : _this.infoTypeData.join('、')
             let areaArr = []
             if (!res.data.area) {
-                _this.noAreaFreeType = true
+                // _this.noAreaFreeType = false
                 _this.info.area = '请选择区域'
+                _this.addBackTip()
             } else {
                 for (const key in res.data.area) {
                     areaArr.push(key)