|
@@ -179,21 +179,25 @@ var mobilePortrayalFooter = {
|
|
|
name_list:[decodeURIComponent(utils.getParam('entName'))]
|
|
|
}
|
|
|
if(this_.monitor){ // 已监控
|
|
|
- if (this.customMonitor) {
|
|
|
- this.$emit('monitorclick', true)
|
|
|
+ if (this_.customMonitor) {
|
|
|
+ this_.$emit('monitorclick', true)
|
|
|
} else {
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/publicapply/customer/check',
|
|
|
- contentType: 'application/json',
|
|
|
- data: JSON.stringify(params),
|
|
|
- success: function(res) {
|
|
|
- this_.yes_monitor(res.data) // 弹出取消监控弹窗
|
|
|
- }
|
|
|
- })
|
|
|
+ if(this_.portraitOrigin === 'ent'){
|
|
|
+ this_.yes_monitor(this_.entInfo)
|
|
|
+ } else {
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: '/publicapply/customer/check',
|
|
|
+ contentType: 'application/json',
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ success: function(res) {
|
|
|
+ this_.yes_monitor(res.data) // 弹出取消监控弹窗
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
} else{ //未监控 去监控
|
|
|
- this.$emit('monitorclick')
|
|
|
+ this_.$emit('monitorclick')
|
|
|
}
|
|
|
},300),
|
|
|
monitorCancellation (){ // 取消监控
|
|
@@ -201,7 +205,7 @@ var mobilePortrayalFooter = {
|
|
|
width: 303,
|
|
|
className: 'monitor-dialog',
|
|
|
title: '确定不再监控?',
|
|
|
- message: '取消监控,将错过业主最新动态推送',
|
|
|
+ message: `取消监控,将错过${this.setMonitorObj}最新动态推送`,
|
|
|
messageAlign:'center',
|
|
|
confirmButtonText: '确认取消',
|
|
|
// confirmButtonColor: '#2ABED1',
|
|
@@ -218,9 +222,12 @@ var mobilePortrayalFooter = {
|
|
|
this.$emit('claimclick')
|
|
|
},
|
|
|
lookDynamic (){
|
|
|
- try{
|
|
|
- this.$parent.$refs.scrollspyTabs.scrollTo('2'); //触发引用此组件父级tab 滚动至招标动态
|
|
|
- }catch(e){
|
|
|
+ this.$emit('lookdynamic')
|
|
|
+ if(!this.portraitOrigin){
|
|
|
+ try{
|
|
|
+ this.$parent.$refs.scrollspyTabs.scrollTo('2'); //触发引用此组件父级tab 滚动至招标动态
|
|
|
+ }catch(e){
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 采购单位监控点击相关
|
|
@@ -230,7 +237,11 @@ var mobilePortrayalFooter = {
|
|
|
if(utils.$envs.inWX){
|
|
|
window.location.href = '/jylab/followent/entList'
|
|
|
} else {
|
|
|
- window.location.href = '/jyapp/big/page/ent_follow'
|
|
|
+ if(this.allpower.memberStatus > 0) {
|
|
|
+ window.location.href = '/jyapp/big/page/ent_follow'
|
|
|
+ } else {
|
|
|
+ window.location.href = '/jyapp/followent/entList'
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
// 非企业画像跳转至对应的监控列表页
|
|
@@ -283,8 +294,8 @@ var mobilePortrayalFooter = {
|
|
|
},
|
|
|
yes_monitor (data, isInit){
|
|
|
if(this.portraitOrigin === 'ent'){
|
|
|
- this.surplus = this.entInfo.info.surplus
|
|
|
- this.use = this.entInfo.info.used
|
|
|
+ this.surplus = data.info.surplus
|
|
|
+ this.use = data.info.used
|
|
|
} else {
|
|
|
this.surplus = data.count.surplus
|
|
|
this.use = data.count.use
|