|
@@ -1,6 +1,6 @@
|
|
|
var subScribeTemplate = `
|
|
|
<div class="sub-scribe">
|
|
|
-<ul>
|
|
|
+<ul style="border-radius:.16rem;overflow:hidden">
|
|
|
<li class="body-item area">
|
|
|
<a class="item-container" :href="linkobj.area">
|
|
|
<div class="item">
|
|
@@ -96,6 +96,7 @@ var subScribeTemplate = `
|
|
|
<span class="leading_ jy-icon-resultpreview-match"></span>
|
|
|
<span class="item-label-other">
|
|
|
<span class="label-text">推送结果预览<span class="threeInfo">{{resultTime}}</span></span>
|
|
|
+ <span class="info-little">当前匹配信息过少,请适当修改订阅条件</span>
|
|
|
</span>
|
|
|
</span>
|
|
|
<span class="item-r media_switch">
|
|
@@ -203,10 +204,7 @@ var subComponent = {
|
|
|
this.getActionDefault()
|
|
|
this.getIndustryType()
|
|
|
this.getProjectMatch()
|
|
|
- if(this.type == 'introduce') {
|
|
|
- this.pushsetShow = false
|
|
|
- this.resultTime = '(近三个月)'
|
|
|
- }
|
|
|
+ this.getResultView()
|
|
|
},
|
|
|
// 设置区域
|
|
|
setArea: function() {
|
|
@@ -256,17 +254,18 @@ var subComponent = {
|
|
|
if(state) {
|
|
|
if(state.items) {
|
|
|
if (state.items.length === 0) {
|
|
|
- $('.body-item.keywords .keywords-text').text('未分类')
|
|
|
+ $('.body-item.keywords .keywords-text').text('已设置' +arr.length+ '组关键词')
|
|
|
} else {
|
|
|
var arr = []
|
|
|
state.items.forEach(function (item, index) {
|
|
|
arr.push(item['s_item'])
|
|
|
})
|
|
|
- $('.body-item.keywords .keywords-text').text(arr.join('、'))
|
|
|
+ // $('.body-item.keywords .keywords-text').text(arr.join('、'))
|
|
|
+ $('.body-item.keywords .keywords-text').text('已设置' +arr.length+ '组关键词')
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- $('.body-item.keywords .keywords-text').text('未分类')
|
|
|
+ $('.body-item.keywords .keywords-text').text('已设置' +arr.length+ '组关键词')
|
|
|
}
|
|
|
},
|
|
|
// 信息类型
|
|
@@ -405,6 +404,23 @@ var subComponent = {
|
|
|
label: '我知道了'
|
|
|
}]
|
|
|
});
|
|
|
+ },
|
|
|
+ // 最近三个月推送结果预览总数
|
|
|
+ getResultView: function() {
|
|
|
+ let _this = this
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: '/subscribepay/afterPay/getPushCount',
|
|
|
+ success: function(res) {
|
|
|
+ console.log(res)
|
|
|
+ if(_this.type == 'introduce') {
|
|
|
+ _this.pushsetShow = false
|
|
|
+ _this.resultTime = '(近三个月)'
|
|
|
+ } else {
|
|
|
+ _this.resultTime = '(近3个月内共' + res.count + '条信息)'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
}
|