Browse Source

feat: 潜在竞争对手列表取消监控添加弹窗

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 6 months ago
parent
commit
5334a4e686

+ 0 - 3
src/jfw/modules/app/src/web/staticres/jyapp/big-member/css/ent_follow.css

@@ -5,9 +5,6 @@
     color: #171826;
 }
 
-.ent-grouping {
-  margin-bottom: .2rem;
-}
 
 .dot-red {
     width: .16rem;

+ 25 - 1
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/potential_cor_list.js

@@ -317,6 +317,24 @@ var vConfig = {
         //     	this.changeFS_bigvip(item)
         //     }
         // },
+
+        monitorCancellation (){ // 取消监控
+          this.$dialog({
+            width: 303,
+            className: 'monitor-dialog',
+            title: '确定不再监控?',
+            message: `取消监控,将错过企业最新动态推送`,
+            messageAlign:'center',
+            confirmButtonText: '确认取消',
+            confirmButtonColor: '#2ABED1',
+            showConfirmButton: true,
+            showCancelButton: true,
+            cancelButtonText: '我再想想',
+            cancelButtonColor: '#2ABED1'
+          }).then(() =>{
+            this.changeFollowStateRequest()
+          })
+        },
         
         changeFollowState: function (item) {
           var _this = this
@@ -326,7 +344,7 @@ var vConfig = {
             return
           }
           if (item.follow) {
-            _this.changeFollowStateRequest()
+            _this.monitorCancellation()
             
           } else {
             this.getEntFollowState(item, (res) => {
@@ -396,6 +414,12 @@ var vConfig = {
                 loading.clear()
                 if (res.data === 'success' || res.data.status) {
                   const active = !_this.powerInfo.isFree ? 4 : 3
+                  if(_this.selectedItem.follow) {
+                    _this.$toast({
+                      duration: 2000,
+                      message: '取消监控成功'
+                    })
+                  }
                   _this.selectedItem.follow = !_this.selectedItem.follow
                   // _this.getEntFollowState()
                   if(utils.$envs.inApp && JyObj.checkNoticePermission()!=1 && res.data.status){