|
@@ -196,7 +196,8 @@ var vNode = {
|
|
|
moreSesame: false,
|
|
|
isOneRow: false,
|
|
|
showGroupingDialog: false,
|
|
|
- groupingList: [],
|
|
|
+ groupingList: [], // 监控分组列表
|
|
|
+ groupLimit: {}, // 监控达到上限返回值
|
|
|
sourceMap: {
|
|
|
app: 'app_ent_more',
|
|
|
wx: 'wx_ent_more',
|
|
@@ -225,7 +226,6 @@ var vNode = {
|
|
|
this.entInfo.name = ''
|
|
|
this.restore = this.reStoreState()
|
|
|
this.getPowerInfo()
|
|
|
- this.getEntGroupList()
|
|
|
if (!this.restore) {
|
|
|
// 获取企业基本信息
|
|
|
this.getEntBaseInfo()
|
|
@@ -389,9 +389,39 @@ var vNode = {
|
|
|
$.ajax({
|
|
|
url: '/bigmember/follow/ent/labelGroupList',
|
|
|
type: 'POST',
|
|
|
+ data: {
|
|
|
+ type: 'get'
|
|
|
+ },
|
|
|
success: function (res) {
|
|
|
if (res.error_code === 0) {
|
|
|
- _this.groupingList = res.data?.groupUserArr || []
|
|
|
+ _this.groupingList = res.data || []
|
|
|
+ this.showGroupingDialog = true
|
|
|
+ if(!this.entInfo.follow) {
|
|
|
+ this.$refs.portrayalGrouping.setState(['默认分组'])
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if(!res?.data?.status) {
|
|
|
+ // 监控达到上限
|
|
|
+ _this.$dialog({
|
|
|
+ width: 303,
|
|
|
+ className: 'monitor-dialog',
|
|
|
+ title: '监控企业个数已达上限',
|
|
|
+ message: '您最多可监控'+res?.data.limit_count+'个企业,可联系客服,申请监控更多企业',
|
|
|
+ messageAlign:'center',
|
|
|
+ confirmButtonText: '联系客服',
|
|
|
+ confirmButtonColor: '#2ABED1',
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ cancelButtonText: '我再想想',
|
|
|
+ // cancelButtonColor: '#5F5E64'
|
|
|
+ }).then(() =>{
|
|
|
+ if(utils.$envs.inWX){
|
|
|
+ window.location.href = '/big/wx/page/customer'
|
|
|
+ } else{
|
|
|
+ window.location.href = '/jyapp/free/customer'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -423,6 +453,9 @@ var vNode = {
|
|
|
this.changeFollowStateRequest(params)
|
|
|
}
|
|
|
},
|
|
|
+ cancelGrouping () {
|
|
|
+ this.showGroupingDialog = false
|
|
|
+ },
|
|
|
// 监听画像页面滚动
|
|
|
onEntScroll: utils.debounce(function(e){
|
|
|
this.pageScrollTop = e.target.scrollTop
|
|
@@ -838,12 +871,11 @@ var vNode = {
|
|
|
this.showGroupingDialog = true
|
|
|
const followedGroup = this.entInfo.followedGroup
|
|
|
let groupList = []
|
|
|
- if(followedGroup.includes(',')) {
|
|
|
- groupList = followedGroup.split(',')
|
|
|
- } else {
|
|
|
- groupList = [followedGroup]
|
|
|
+ const isManyGroup = followedGroup.includes(',')
|
|
|
+ groupList = isManyGroup ? followedGroup.split(',') : [followedGroup]
|
|
|
+ if(!groupList.includes('默认分组')) {
|
|
|
+ this.$refs.portrayalGrouping.setState(groupList)
|
|
|
}
|
|
|
- this.$refs.portrayalGrouping.setState(groupList)
|
|
|
},
|
|
|
// 查询企业是否存在和企业关注状态
|
|
|
getEntFollowState: function () {
|
|
@@ -862,6 +894,7 @@ var vNode = {
|
|
|
_this.entInfo.follow = !!res.data.followed
|
|
|
_this.entInfo.entExist = !!res.data.isShow
|
|
|
_this.entInfo.followedGroup = res.data.followedGroup
|
|
|
+ _this.entInfo.info = res.data.info
|
|
|
} else {
|
|
|
_this.entInfo.entExist = false
|
|
|
}
|
|
@@ -893,8 +926,7 @@ var vNode = {
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
- this.showGroupingDialog = true
|
|
|
- this.$refs.portrayalGrouping.setState(['默认分组'])
|
|
|
+ this.getEntGroupList()
|
|
|
// this.changeFollowStateRequest()
|
|
|
}
|
|
|
},
|
|
@@ -1059,7 +1091,7 @@ var vNode = {
|
|
|
if (res.data === 'success' || res.data.status) {
|
|
|
_this.entInfo.follow = !_this.entInfo.follow
|
|
|
_this.getEntFollowState()
|
|
|
- _this.$refs.portrayalFooter.no_monitor(res.data)
|
|
|
+ _this.no_monitor(res.data)
|
|
|
} else {
|
|
|
return _this.showToast(res.error_msg || '监控失败')
|
|
|
}
|
|
@@ -1077,7 +1109,95 @@ var vNode = {
|
|
|
console.log(error)
|
|
|
}
|
|
|
})
|
|
|
- }, // 赚剑鱼币任务完成提示
|
|
|
+ },
|
|
|
+ no_monitor (data){
|
|
|
+ if(utils.$envs.inApp && JyObj.checkNoticePermission()!=1 && data.status){
|
|
|
+ this.$dialog({
|
|
|
+ width: 303,
|
|
|
+ className: 'monitor-dialog',
|
|
|
+ title: '监控成功',
|
|
|
+ message: '您可前往“工作台-商机-企业情报监控”查看企业最新动态。为保证您能及时获取新增监控信息推送,请前往开启推送提醒。',
|
|
|
+ messageAlign:'center',
|
|
|
+ confirmButtonText: '去开启',
|
|
|
+ confirmButtonColor: '#2ABED1',
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ cancelButtonText: '暂不开启',
|
|
|
+ // cancelButtonColor: '#5F5E64'
|
|
|
+ }).then(() =>{
|
|
|
+ // 展开监控菜单 active:4
|
|
|
+ window.location.href = location.origin + '/jy_mobile/push/pushsetting?active=4'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.powerInfo.isFree && !data.msg_open && data.status){
|
|
|
+ this.$dialog({
|
|
|
+ width: 303,
|
|
|
+ className: 'monitor-dialog',
|
|
|
+ title: '监控成功',
|
|
|
+ message: '您可前往“工作台-商机-业主监控”查看业主最新招标动态。为保证您能及时获取新增监控信息推送,请前往开启推送提醒。',
|
|
|
+ messageAlign:'center',
|
|
|
+ confirmButtonText: '去开启',
|
|
|
+ confirmButtonColor: '#2ABED1',
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ cancelButtonText: '暂不开启',
|
|
|
+ // cancelButtonColor: '#5F5E64'
|
|
|
+ }).then(() =>{
|
|
|
+ // 展开监控菜单 active:4
|
|
|
+ window.location.href = location.origin + '/jy_mobile/push/pushsetting?active=4'
|
|
|
+ })
|
|
|
+
|
|
|
+ } else if(!this.powerInfo.isFree && data.msg_open && data.status){
|
|
|
+ this.$toast({
|
|
|
+ duration: 2000,
|
|
|
+ message: '监控成功,您可前往“工作台-商机-企业情报监控”查看'
|
|
|
+ })
|
|
|
+
|
|
|
+ }else if(!this.powerInfo.isFree && data.limit_status === 1){
|
|
|
+ let href_
|
|
|
+ if(utils.$envs.inWX){
|
|
|
+ href_ = '/weixin/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.wx
|
|
|
+ }else if(utils.$envs.inApp){
|
|
|
+ href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.app
|
|
|
+ }else if(utils.$envs.inH5){
|
|
|
+ href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + + this.sourceLimitMap.h5
|
|
|
+ }
|
|
|
+ window.location.href = href_
|
|
|
+ } else if(!this.powerInfo.isFree && data.limit_status === 2){
|
|
|
+ this.$dialog({
|
|
|
+ width: 303,
|
|
|
+ className: 'monitor-dialog',
|
|
|
+ title: '监控企业个数已达上限',
|
|
|
+ message: '您最多可监控'+data.limit_count+'个企业,可联系客服,申请监控更多企业',
|
|
|
+ messageAlign:'center',
|
|
|
+ confirmButtonText: '联系客服',
|
|
|
+ confirmButtonColor: '#2ABED1',
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ cancelButtonText: '返回',
|
|
|
+ // cancelButtonColor: '#5F5E64'
|
|
|
+ }).then(() =>{
|
|
|
+ if(utils.$envs.inWX){
|
|
|
+ window.location.href = '/big/wx/page/customer'
|
|
|
+ } else{
|
|
|
+ window.location.href = '/jyapp/free/customer'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else if(this.powerInfo.isFree){
|
|
|
+ let href_
|
|
|
+ if(utils.$envs.inWX){
|
|
|
+ href_ = '/weixin/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.wx
|
|
|
+ }else if(utils.$envs.inApp){
|
|
|
+ href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.app
|
|
|
+ }else if(utils.$envs.inH5){
|
|
|
+ href_ = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + this.sourceLimitMap.h5
|
|
|
+ }
|
|
|
+ window.location.href = href_
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ // 赚剑鱼币任务完成提示
|
|
|
pointsTaskSuccessTip: function() {
|
|
|
// 获取剑鱼币任务信息
|
|
|
const from = utils.getParam('from')
|
|
@@ -1579,6 +1699,7 @@ var vNode = {
|
|
|
svipBuyset: this.svipBuyset,
|
|
|
bidcollPowerInfo: this.bidcollPowerInfo,
|
|
|
scrollTop: this.scrollTop + scrollTopOffset,
|
|
|
+ showGroupingDialog: this.showGroupingDialog,
|
|
|
gotTab2: this.gotTab2
|
|
|
}
|
|
|
sessionStorage.setItem(this.sessKey, JSON.stringify(data))
|