|
|
|
@ -142,7 +142,7 @@ app.factory('common', ['$http', 'auth', '$routeParams','rms','config','wx','$loc
|
|
|
|
|
|
|
|
|
|
data.disabled = false;
|
|
|
|
|
if(typeof cb === 'function'){
|
|
|
|
|
cb();
|
|
|
|
|
cb(response.data.subscribe);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//保证内外回复数一致
|
|
|
|
@ -301,9 +301,16 @@ app.factory('common', ['$http', 'auth', '$routeParams','rms','config','wx','$loc
|
|
|
|
|
loadData(args.id,0,0);
|
|
|
|
|
args.scope.addReply = function(data){
|
|
|
|
|
console.log(data.comment);
|
|
|
|
|
addCommonReply(args.id, args.replyType, data,args, function(){
|
|
|
|
|
addCommonReply(args.id, args.replyType, data,args, function(subscribe){
|
|
|
|
|
args.scope.formData = {comment: ''};
|
|
|
|
|
loadData(args.id,0,0);
|
|
|
|
|
if(subscribe == 0){
|
|
|
|
|
$location.path("/login_tip");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
loadData(args.id,0,0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(typeof args.replyCallback === 'function'){
|
|
|
|
|
args.replyCallback();
|
|
|
|
|
}
|
|
|
|
|