Browse Source

邀请回答

luyanan 7 years ago
parent
commit
b6e014dd84
1 changed files with 7 additions and 4 deletions
  1. 7 4
      js/qa-show.js

+ 7 - 4
js/qa-show.js

@ -628,6 +628,9 @@ $(function() {
628 628
				}else{
629 629
					$str.find(".attenSpan").hide()
630 630
				}
631
				if(Fflag){
632
					inviteStatus(dataStr.id, $str);
633
				}
631 634
			});
632 635
		},
633 636
		isAgree=function(id,$str){
@ -669,7 +672,6 @@ $(function() {
669 672
						document.getElementById(aimId).appendChild(liStr);
670 673
						var $str = $(liStr)
671 674
						proinfo($info[i].id, $str,1);
672
						inviteStatus($info[i].id, $str);
673 675
					}
674 676
				}
675 677
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
@ -699,6 +701,7 @@ $(function() {
699 701
				"pid": id,
700 702
				"uid": userid,
701 703
			}, "get", function(res) {
704
				console.log(res)
702 705
				if(res.data.length>0){
703 706
					$str.find(".yaoqing").addClass("yiyaoqing");
704 707
					$str.find(".yaoqing").html("已邀请");
@ -857,9 +860,9 @@ $(function() {
857 860
				"uid": userid,
858 861
				"uname": username,
859 862
			}, "post", function(res) {
860
				$(this).attr("data-type", "");
861
				$(this).addClass("yiyaoqing");
862
				$(this).text("已邀请");
863
				that.attr("data-type", "");
864
				that.addClass("yiyaoqing");
865
				that.text("已邀请");
863 866
				$.MsgBox.Alert("提示", "邀请成功");
864 867
				$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
865 868
			})