mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化代码
This commit is contained in:
parent
1f84fa3ae3
commit
801cbe0462
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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 => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user