|
@@ -964,6 +964,10 @@
|
|
async: false,
|
|
async: false,
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
|
+ data.data = null
|
|
|
|
+ if(!data.data) {
|
|
|
|
+ data.data = []
|
|
|
|
+ }
|
|
checkmerge(data.industry)
|
|
checkmerge(data.industry)
|
|
if (data.otherFlag){
|
|
if (data.otherFlag){
|
|
localStorage.setItem({{.T.userId}}+"_otherFlag",data.otherFlag)
|
|
localStorage.setItem({{.T.userId}}+"_otherFlag",data.otherFlag)
|
|
@@ -986,6 +990,17 @@
|
|
|
|
|
|
// 非vip的新用户
|
|
// 非vip的新用户
|
|
if (myInfo.userType !== 'vip') {
|
|
if (myInfo.userType !== 'vip') {
|
|
|
|
+ if(myInfo.userType == 'entniche') {
|
|
|
|
+ if(data.data) {
|
|
|
|
+ if (data.data.length === 0) {
|
|
|
|
+ $('.findnull_').show().siblings('.empty').hide()
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $('.findnull_').show().siblings('.empty').hide()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $('.header_header').hide()
|
|
|
|
+ } else {
|
|
// 如果是新用户(没有推送历史数据,没有关键词),直接就显示空页面
|
|
// 如果是新用户(没有推送历史数据,没有关键词),直接就显示空页面
|
|
if (data.data.length === 0 && myInfo.haskey === false && !firstTime) {
|
|
if (data.data.length === 0 && myInfo.haskey === false && !firstTime) {
|
|
if(vm.rootInfo.memberStatus > 0) {
|
|
if(vm.rootInfo.memberStatus > 0) {
|
|
@@ -1003,6 +1018,7 @@
|
|
$('.header_header').show()
|
|
$('.header_header').show()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (data.data.length === 0) {
|
|
if (data.data.length === 0) {
|
|
$('.findnull_').show().siblings('.empty').hide()
|
|
$('.findnull_').show().siblings('.empty').hide()
|
|
@@ -2137,6 +2153,9 @@ function hasNoData() {
|
|
}
|
|
}
|
|
function checkindustry(industry){
|
|
function checkindustry(industry){
|
|
var isinclude = false
|
|
var isinclude = false
|
|
|
|
+ if(!industry) {
|
|
|
|
+ return isinclude
|
|
|
|
+ }
|
|
industry.forEach(function (item,index) {
|
|
industry.forEach(function (item,index) {
|
|
if (merge_industry.indexOf(item)>-1){
|
|
if (merge_industry.indexOf(item)>-1){
|
|
isinclude = true
|
|
isinclude = true
|