优化代码

This commit is contained in:
Your Name 2023-09-20 16:22:53 +08:00
parent 1f84fa3ae3
commit 801cbe0462
2 changed files with 7 additions and 3 deletions

View File

@ -117,11 +117,11 @@
let that = this; let that = this;
if(_question.qaType == '3003'){ if(_question.qaType == '3003'){
this.vc.navigateTo({ this.vc.navigateTo({
url: "/pages/questionAnswer/ownerVote?qaId=" + _question.qaId+"&objType="+_question.objType url: "/pages/questionAnswer/ownerVote?qaId=" + _question.qaId+"&objType="+_question.objType+"&userQaId="+_question.userQaId
}); });
}else{ }else{
this.vc.navigateTo({ this.vc.navigateTo({
url: "/pages/questionAnswer/questionAnswerDetail?qaId=" + _question.qaId+"&objType="+_question.objType url: "/pages/questionAnswer/questionAnswerDetail?qaId=" + _question.qaId+"&objType="+_question.objType+"&userQaId="+_question.userQaId
}); });
} }
}, },

View File

@ -74,7 +74,8 @@
}, },
titles: [], titles: [],
qaId: '', qaId: '',
communityId: '' communityId: '',
userQaId:''
}; };
}, },
@ -86,6 +87,8 @@
context.onLoad(options); context.onLoad(options);
this.communityId = context.getCurrentCommunity().communityId; this.communityId = context.getCurrentCommunity().communityId;
this.qaId = options.qaId; this.qaId = options.qaId;
this.userQaId = options.userQaId;
this._queryQuestionAnswer(); this._queryQuestionAnswer();
queryQuestionAnswerTitle({ queryQuestionAnswerTitle({
@ -127,6 +130,7 @@
page: 1, page: 1,
row: 1, row: 1,
qaId:this.qaId, qaId:this.qaId,
userQaId:this.userQaId,
communityId: that.communityId, communityId: that.communityId,
}) })
.then(_data => { .then(_data => {