<!–
24H
7天
30天
近三月
近一年
24H
7天
30天
近三月
近一年
–>
<!–
币界网免责声明:
1.本网站所提供的所有信息仅供参考,不构成任何投资建议。
2.用户在使用本网站的信息时应自行判断和承担风险。
3.币界网不对用户因使用本网站信息而导致的任何损失负责。
4.用户在进行任何投资活动前应自行进行调查和研究。
5.币界网不对用户基于本网站信息做出的任何投资决策负责。
6.用户在本网站发布的任何内容均由其个人负责,与币界网无关。
–>
<!–
–>
<!–
–>
<!–
–>
<!–
–>
function follow(id,ts){
let url = ‘/e/extend/api/index.php?m=appapi&c=getdata’;
let data = {‘url’:’/memberFollow/follow’+’?id=’+id,’data’:”};
checkisLogin();
$.ajax( {
url:url,
data:data,
type:’post’,
cache:false,
dataType:’json’,
success:function(resdata) {
console.log(‘resdata’,resdata);
if(resdata.code != ‘200’){
layer.msg(resdata.msg, {icon: 2});
return false;
}
ts.innerText = ‘已关注’;
ts.setAttribute(‘onclick’,’unfollow(‘+ id +’,this)’);
ts.className = ‘active’;
},
error : function(e) {
console.log(‘resdata e’,e);
}
});
}
function unfollow(id,ts){
let url = ‘/e/extend/api/index.php?m=appapi&c=getdata’;
let data = {‘url’:’/memberFollow/unFollow’+’?id=’+id,’data’:”};
checkisLogin();
$.ajax( {
url:url,
data:data,
type:’post’,
cache:false,
dataType:’json’,
success:function(resdata) {
console.log(‘resdata’,resdata);
if(resdata.code != ‘200’){
layer.msg(resdata.msg, {icon: 2});
return false;
}
ts.innerText = ‘关注’;
ts.setAttribute(‘onclick’,’follow(‘+ id +’,this)’);
ts.className = ”;
},
error : function(e) {
console.log(‘resdata e’,e);
}
});
}