浏览代码

商机管理接口修改

tsz 3 年之前
父节点
当前提交
e2b1df7801

+ 0 - 1
src/jfw/modules/app/src/config.json

@@ -35,7 +35,6 @@
 		"remark": "您收到这条信息是因为您之前设置了项目开标提醒,如果您不再需要此类提醒,可点击下方“详情”修改提醒设置。"
 	},
 	"followPushRpc": "127.0.0.1:8759",
-	D
 	"rewardText": [
 		"憋说话!赏我!",
 		"“赏”就一个字 我只说一次",

+ 5 - 5
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/client_portrayal.js

@@ -428,7 +428,7 @@ var vNode = {
           if(str == 'r') {
             $.ajax({
               type: 'POST',
-              url: '/entniche/customer/claimcheck',
+              url: '/entnicheNew/customer/claimcheck',
               contentType: 'application/json',
               data: JSON.stringify(params),
               success: function(res) {
@@ -446,7 +446,7 @@ var vNode = {
             // 关注
             $.ajax({
               type: 'POST',
-              url: '/entniche/customer/check',
+              url: '/entnicheNew/customer/check',
               contentType: 'application/json',
               data: JSON.stringify(params),
               success: function(res) {
@@ -485,7 +485,7 @@ var vNode = {
           }
           $.ajax({
             type: 'POST',
-            url: '/entniche/customer/attention',
+            url: '/entnicheNew/customer/attention',
             contentType: 'application/json',
             data: JSON.stringify(params),
             success: function(res) {
@@ -558,7 +558,7 @@ var vNode = {
           var isMember = this.bigStatus > 0 && this.power.indexOf(5) > -1
           $.ajax({
             type:'POST',
-            url: '/entniche/portrait/buyer/getNewMsg',
+            url: '/entnicheNew/portrait/buyer/getNewMsg',
             data: storageSet ? Object.assign(data, storageSet) : data,
             timeout: 8000,
             success:function(res) {
@@ -622,7 +622,7 @@ var vNode = {
           var isMember = this.bigStatus > 0 && this.power.indexOf(5) > -1
           $.ajax({
             type:'POST',
-            url: '/entniche/portrait/buyer/getData',
+            url: '/entnicheNew/portrait/buyer/getData',
             data: storageSet ? Object.assign(data, storageSet) : data,
             timeout: 10000,
             success:function(res) {

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

@@ -508,7 +508,7 @@ var vNode = {
                 value: utils.unique(keysArr).join(' ')
             }
             $.ajax({
-                url: '/entniche/custome/getRecomKWs',
+                url: '/entnicheNew/custome/getRecomKWs',
                 type: 'POST',
                 data: fetchData,
                 success: function (r) {

+ 17 - 0
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -230,6 +230,7 @@ var SuperSearch = {
     dropload: null,
     s_words: "",
     myHistory: "",
+    isEntNicheNew: false, // 是否是新版商机管理
     isSubCount: false, // 是否是大会员子账号
     dyDiv: true,     //显示订阅剑鱼标讯信息
     subtype_proposed: "拟建",
@@ -468,6 +469,22 @@ var SuperSearch = {
             SuperSearch.dyDiv = true;
         });
 
+        // 获取是否是商机管理
+        function getNewEntNiche () {
+          $.ajax({
+            type: 'POST',
+            url: '/entnicheNew/buy/whetherbuy',
+            success: function(res) {
+              console.log(res)
+              if(res.error_code == 0) {
+                SuperSearch.isEntNicheNew = res.data.isNew
+              }
+            },
+          })
+        }
+
+        getNewEntNiche()
+
         // 获取用户信息-用于立即订阅按钮
         function getKeyUserInfo() {
             // 免费用户

+ 1 - 1
src/jfw/modules/app/src/web/templates/big-member/page_client_follow_detail.html

@@ -359,7 +359,7 @@
             getProDetail: function () {
                 let url = '/bigmember/follow/project/detail'
                 if(utils.getParam('from')) {
-                  url = '/entniche/follow/project/detail'
+                  url = '/entnicheNew/follow/project/detail'
                 }
                 var _this = this
                 $.ajax({

+ 3 - 3
src/jfw/modules/app/src/web/templates/big-member/page_client_follow_list.html

@@ -272,7 +272,7 @@
               let _this = this
               $.ajax({
                 type: 'POST',
-                url: '/entniche/follow/project/screenArea',
+                url: '/entnicheNew/follow/project/screenArea',
                 success: function(res) {
                   console.log(res)
                   _this.initArea = res.data
@@ -421,7 +421,7 @@
                     var _this = this
                     $.ajax({
                         type:'POST',
-                        url:'/entniche/follow/project/remove30Day',
+                        url:'/entnicheNew/follow/project/remove30Day',
                         data:{},
                         success:function(res) {
                             if(res.data.removeNum == 0) {
@@ -456,7 +456,7 @@
                 this.loading = true
                 $.ajax({
                     type:'POST',
-                    url:'/entniche/follow/project/list',
+                    url:'/entnicheNew/follow/project/list',
                     data:{
                         pageNum:_this.pageNum,
                         pageSize:50

+ 4 - 4
src/jfw/modules/app/src/web/templates/big-member/page_client_list.html

@@ -309,7 +309,7 @@
               // 关注
               $.ajax({
                 type: 'POST',
-                url: '/entniche/customer/check',
+                url: '/entnicheNew/customer/check',
                 contentType: 'application/json',
                 data: JSON.stringify(params),
                 success: function(res) {
@@ -330,7 +330,7 @@
               // 认领
               $.ajax({
                 type: 'POST',
-                url: '/entniche/customer/claimcheck',
+                url: '/entnicheNew/customer/claimcheck',
                 contentType: 'application/json',
                 data: JSON.stringify(params),
                 success: function(res) {
@@ -411,7 +411,7 @@
               let _this = this
               $.ajax({
                 type:'POST',
-                url: '/entniche/customer/attention',
+                url: '/entnicheNew/customer/attention',
                 contentType: 'application/json',
                 data: JSON.stringify(params),
                 success: (res) => {
@@ -455,7 +455,7 @@
                 this.loading = true
                 $.ajax({
                     type:'get',
-                    url:'/entniche/customer/list',
+                    url:'/entnicheNew/customer/list',
                     data:{
                       searchCode: _this.inputVal,
                     },

+ 5 - 5
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -1245,7 +1245,7 @@
       if(str == 'r') {
         $.ajax({
           type: 'POST',
-          url: '/entniche/customer/claimcheck',
+          url: '/entnicheNew/customer/claimcheck',
           contentType: 'application/json',
           data: JSON.stringify(params),
           success: function(res) {
@@ -1266,7 +1266,7 @@
         // 关注
         $.ajax({
           type: 'POST',
-          url: '/entniche/follow/project/check',
+          url: '/entnicheNew/follow/project/check',
           contentType: 'application/json',
           data: {
             sid:id
@@ -1305,7 +1305,7 @@
         }
         $.ajax({
           type: 'POST',
-          url: '/entniche/customer/attention',
+          url: '/entnicheNew/customer/attention',
           contentType: 'application/json',
           data: JSON.stringify(params),
           success: function(res) {
@@ -2337,8 +2337,8 @@
           let cancelurl = '/bigmember/follow/project/cancel'
           let confirmurl = '/bigmember/follow/project/add'
           if(window.entniche) {
-            cancelurl = '/entniche/follow/project/cancel'
-            confirmurl = '/entniche/follow/project/add'
+            cancelurl = '/entnicheNew/follow/project/cancel'
+            confirmurl = '/entnicheNew/follow/project/add'
           }
           if(followFlag){
               $.post(cancelurl,{reqType:"cancel",sid:id},function(r){

+ 1 - 1
src/web/staticres/common-module/collection/js/history-project.js

@@ -101,7 +101,7 @@ var hisproComponent = {
         }
         item.datas.buyer = this.buyer
       } else if(this.type == 'client') {
-        item.url = '/entniche/portrait/buyer/contacts'
+        item.url = '/entnicheNew/portrait/buyer/contacts'
         item.datas.buyer = this.buyer
       } else {
         loading.clear()

+ 6 - 6
src/web/staticres/common-module/ent-search/ent-search-template.js

@@ -1091,7 +1091,7 @@ window.vBuyerSearchComponent = new Vue({
       let _this = this
       $.ajax({
         type: 'POST',
-        url: '/entniche/customer/history',
+        url: '/entnicheNew/customer/history',
         success: function(res) {
           console.log(res)
           if(res.error_code == 0) {
@@ -1278,7 +1278,7 @@ window.vBuyerSearchComponent = new Vue({
       } else {
         $.ajax({
           type: 'POST',
-          url: '/entniche/subscribe/key/get',
+          url: '/entnicheNew/subscribe/key/get',
           success:function(res) {
             // console.log(res)
             let getArr = []
@@ -1422,7 +1422,7 @@ window.vBuyerSearchComponent = new Vue({
       if(str == 'r') {
         $.ajax({
           type: 'POST',
-          url: '/entniche/customer/claimcheck',
+          url: '/entnicheNew/customer/claimcheck',
           contentType: 'application/json',
           data: JSON.stringify(params),
           success: function(res) {
@@ -1442,7 +1442,7 @@ window.vBuyerSearchComponent = new Vue({
         // 关注
         $.ajax({
           type: 'POST',
-          url: '/entniche/customer/check',
+          url: '/entnicheNew/customer/check',
           contentType: 'application/json',
           data: JSON.stringify(params),
           success: function(res) {
@@ -1482,7 +1482,7 @@ window.vBuyerSearchComponent = new Vue({
       }
       $.ajax({
         type: 'POST',
-        url: '/entniche/customer/attention',
+        url: '/entnicheNew/customer/attention',
         contentType: 'application/json',
         data: JSON.stringify(params),
         success: function(res) {
@@ -1502,7 +1502,7 @@ window.vBuyerSearchComponent = new Vue({
     ajaxEntList() {
       let aa = this.getSearchParams()
       return $.ajax({
-        url: '/entniche/customer/corList',
+        url: '/entnicheNew/customer/corList',
         type: 'POST',
         contentType: 'application/json',
         data: JSON.stringify(aa)