فهرست منبع

feat:商机管理用户

wangshan 3 سال پیش
والد
کامیت
1f56fa7da9

+ 4 - 2
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js

@@ -7,7 +7,7 @@ var mine = {
         // 设置用户头像
         // 设置用户头像
         this.setUserImg()
         this.setUserImg()
         this.getUserInfo()
         this.getUserInfo()
-        this.setBigVipState()
+        //this.setBigVipState()
 
 
         // this.getSuperVipState()
         // this.getSuperVipState()
         this.getBigVipState()
         this.getBigVipState()
@@ -43,6 +43,7 @@ var mine = {
         });
         });
     },
     },
     getEntNicheRoot: function() {
     getEntNicheRoot: function() {
+      var _this = this
       $.ajax({
       $.ajax({
         type: "post",
         type: "post",
         url: '/entnicheNew/buy/whetherbuy',
         url: '/entnicheNew/buy/whetherbuy',
@@ -53,6 +54,7 @@ var mine = {
             if(res.data.isNew) {
             if(res.data.isNew) {
               $('.customer-follow').show()
               $('.customer-follow').show()
             }
             }
+            _this.setBigVipState()
           }
           }
         }
         }
       })
       })
@@ -331,7 +333,7 @@ var mine = {
                     if (res.data.viper) {
                     if (res.data.viper) {
                         $('.ent-search').show().attr('data-href', '/jyapp/vipsubscribe/entSearch')
                         $('.ent-search').show().attr('data-href', '/jyapp/vipsubscribe/entSearch')
                     }
                     }
-                    _this.setBigVipState()
+                    //_this.setBigVipState()
                 }
                 }
             }
             }
         })
         })

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

@@ -144,7 +144,7 @@
                     <div class="sum_caigou client_caigou" v-if="entIsNew">
                     <div class="sum_caigou client_caigou" v-if="entIsNew">
                         <div class="sum_center">${this.$data.prolist.buyer}</div>
                         <div class="sum_center">${this.$data.prolist.buyer}</div>
                         <div class="sum_right">
                         <div class="sum_right">
-                          <div class="claim" @click="gopurchase()">
+                          <div class="claim"  @click.stop="viewEntPort">
                             <span class="j-icon icon-porait"></span>
                             <span class="j-icon icon-porait"></span>
                             <span class="getproit">查看画像</span>
                             <span class="getproit">查看画像</span>
                           </div>
                           </div>
@@ -374,6 +374,9 @@
                     }
                     }
                 }
                 }
             },
             },
+            viewEntPort: function () {
+              location.href='/jyapp/big/page/client_portrayal?from=client&entName=' + this.$data.prolist.buyer
+            },
             // 是否认领和关注企业
             // 是否认领和关注企业
             getActionState () {
             getActionState () {
               let _this = this
               let _this = this

+ 4 - 3
src/jfw/modules/common/src/qfw/util/jy/bigVipPower.go

@@ -191,9 +191,10 @@ func GetBigVipUserBaseMsg(userId string, mysql *mysql.Mysql, mg MongodbSim) *Big
 				for _, v := range *res {
 				for _, v := range *res {
 					if qutil.IntAll(v["status"]) == 1 && qutil.IntAll(v["power"]) == 1 {
 					if qutil.IntAll(v["status"]) == 1 && qutil.IntAll(v["power"]) == 1 {
 						userPower.EntnicheStatus = 1
 						userPower.EntnicheStatus = 1
-					}
-					if qutil.IntAll(v["isNew"]) == 1 {
-						userPower.EntIsNew = true
+						if qutil.IntAll(v["isNew"]) == 1 {
+							userPower.EntIsNew = true
+							break
+						}
 					}
 					}
 				}
 				}
 			}
 			}