瀏覽代碼

feat: 企业监控、项目监控添加错误提示

cuiyalong 1 年之前
父節點
當前提交
1b2cdceec1

+ 2 - 0
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/client_buyer_project_news.js

@@ -328,6 +328,8 @@ var vConfig = {
                         loading.clear()
                         if (res.data === 'success' || res.data.status) {
                             _this.entInfo.follow = !_this.entInfo.follow
+                        } else {
+                            _this.showToast(res.error_msg || '监控失败')
                         }
                     } else {
                         _this.showToast(res.error_msg)

+ 2 - 0
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_follow_search.js

@@ -110,6 +110,8 @@ var vNode = {
                         loading.clear()
                         if (res.data === 'success' || res.data.status) {
                             item.follow = !item.follow
+                        } else {
+                            _this.showToast(res.error_msg || '监控失败')
                         }
                     } else {
                         _this.showToast(res.error_msg)

+ 2 - 0
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_portrait.js

@@ -976,6 +976,8 @@ var vNode = {
             loading.clear()
             if (res.data === 'success' || res.data.status) {
               _this.entInfo.follow = !_this.entInfo.follow
+            } else {
+              return _this.showToast(res.error_msg || '监控失败')
             }
             if(_this.entInfo.follow) {
               _this.pointsTaskSuccessTip()

+ 2 - 0
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/potential_cor_list.js

@@ -345,6 +345,8 @@ var vConfig = {
                                 _this.showToast('已添加至企业情报内')
                             }
                             item.follow = !item.follow
+                        } else {
+                            _this.showToast(res.error_msg || '监控失败')
                         }
                     } else {
                         _this.showToast(res.error_msg)

+ 2 - 0
src/web/staticres/big-member/js/ent_portrait.js

@@ -476,6 +476,8 @@ var vNode = {
                         loading.clear()
                         if (res.data === 'success' || res.data.status) {
                             _this.entInfo.follow = !_this.entInfo.follow
+                        } else {
+                            return _this.showToast(res.error_msg || '监控失败')
                         }
 
                         if (!_this.entInfo.follow) {

+ 2 - 0
src/web/staticres/common-module/big-member/js/buyer_project_news.js

@@ -506,6 +506,8 @@ var vConfig = {
                         loading.clear()
                         if (res.data === 'success' || res.data.status) {
                             _this.entInfo.follow = !_this.entInfo.follow
+                        } else {
+                            return _this.showToast(res.error_msg || '监控失败')
                         }
                     } else {
                         _this.showToast(res.error_msg)

+ 2 - 0
src/web/staticres/common-module/big-member/js/ent_project_news.js

@@ -528,6 +528,8 @@ var vConfig = {
                         loading.clear()
                         if (res.data === 'success' || res.data.status) {
                             _this.entInfo.follow = !_this.entInfo.follow
+                        } else {
+                            return _this.showToast(res.error_msg || '监控失败')
                         }
                     } else {
                         _this.showToast(res.error_msg)

+ 2 - 0
src/web/staticres/common-module/collection/js/ent_portrait.js

@@ -947,6 +947,8 @@ var vNode = {
             loading.clear()
             if (res.data === 'success' || res.data.status) {
               _this.entInfo.follow = !_this.entInfo.follow
+            } else {
+              return _this.showToast(res.error_msg || '监控失败')
             }
             if(_this.entInfo.follow) {
               _this.pointsTaskSuccessTip()