|
@@ -1180,12 +1180,12 @@
|
|
|
newEntNiche = res.data.isNew
|
|
|
if(res.data.isNew) {
|
|
|
$('.commonUser').hide()
|
|
|
- var buyerName = {{.T.obj.buyer}}
|
|
|
- if (buyerName) {
|
|
|
- $('.entnicheUser').show()
|
|
|
+ $('.entnicheUser').show()
|
|
|
+ if({{.T.obj.buyer}} == '') {
|
|
|
+ $('.entnicheUser .sum_right').hide()
|
|
|
}
|
|
|
- getActionState(buyerName, 'g')
|
|
|
- getActionState(buyerName, 'r')
|
|
|
+ getActionState ({{.T.obj.buyer}}, 'g')
|
|
|
+ getActionState ({{.T.obj.buyer}}, 'r')
|
|
|
} else {
|
|
|
$('.commonUser').show()
|
|
|
$('.entnicheUser').hide()
|
|
@@ -1330,7 +1330,7 @@
|
|
|
url: '/entnicheNew/follow/project/check',
|
|
|
data: param,
|
|
|
success: function(res) {
|
|
|
- if(res.error_code == 0 && res.data&& res.data.showFollow) {
|
|
|
+ if(res.error_code == 0 &&res.data&& res.data.showFollow) {
|
|
|
$(".follow").css("display","")
|
|
|
if(res.data.flag) {
|
|
|
followFlag = true
|
|
@@ -2444,7 +2444,7 @@
|
|
|
// 添加关注的项目
|
|
|
let cancelurl = '/bigmember/follow/project/cancel'
|
|
|
let confirmurl = '/bigmember/follow/project/add'
|
|
|
- if(window.entniche && bigstatus < 0) {
|
|
|
+ if(newEntNiche) {
|
|
|
cancelurl = '/entnicheNew/follow/project/cancel'
|
|
|
confirmurl = '/entnicheNew/follow/project/add'
|
|
|
}
|