|
@@ -1,5 +1,6 @@
|
|
|
var mine = {
|
|
|
pageUserInfo: pageUserInfo,
|
|
|
+ entUserInfo: entUserInfo,
|
|
|
init: function () {
|
|
|
this.iosBackInvoke()
|
|
|
|
|
@@ -21,6 +22,8 @@ var mine = {
|
|
|
this.showUserMerge()
|
|
|
// 获取小红点状态
|
|
|
this.getRedDotState()
|
|
|
+ // 商机管理权限
|
|
|
+ this.getEntNicheRoot()
|
|
|
// 清除超级订阅购买、续费、升级相关的缓存
|
|
|
sessionStorage.removeItem('vip-cur-select-coupon')
|
|
|
sessionStorage.removeItem('$select-coupon')
|
|
@@ -39,6 +42,21 @@ var mine = {
|
|
|
isPageHide = true;
|
|
|
});
|
|
|
},
|
|
|
+ getEntNicheRoot: function() {
|
|
|
+ $.ajax({
|
|
|
+ type: "post",
|
|
|
+ url: '/entnicheNew/buy/whetherbuy',
|
|
|
+ success: function(res) {
|
|
|
+ console.log(res)
|
|
|
+ if(res.error_code == 0) {
|
|
|
+ entUserInfo = res.data
|
|
|
+ if(res.data.isNew) {
|
|
|
+ $('.customer-follow').show()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 查询用户信息(p19.1账号合并新增接口)
|
|
|
getUserInfo: function () {
|
|
|
$.ajax({
|
|
@@ -100,8 +118,12 @@ var mine = {
|
|
|
// 项目关注跳转
|
|
|
$('.project-follow').on('click', function (e) {
|
|
|
setLiActive(e.currentTarget)
|
|
|
- var url = $(this).attr('data-href')
|
|
|
- autoLogin(url)
|
|
|
+ if(entUserInfo.isNew) {
|
|
|
+ location.href = '/jyapp/big/page/client_follow_list'
|
|
|
+ } else {
|
|
|
+ var url = $(this).attr('data-href')
|
|
|
+ autoLogin(url)
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
// 客户关注跳转
|