From 703fc2f85ce3f22bf5eaf5f75c925addcd933a1c Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 11 Apr 2023 15:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E6=A0=87=E5=87=86=20?= =?UTF-8?q?=E6=A0=87=E5=87=86=E9=97=AE=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otherBussStandardDetails/index.vue | 68 +++++++++++-------- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index 049871ad2..ebaffa63c 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -2973,37 +2973,51 @@ export default { },e => reject(e)); }) }, + jump(){ + return new Promise((resolve,reject)=>{ + this.$http.post('lawss/AskQuestions/jump', { + standId: this.$route.params.id, + userId : this.$store.getters.userInfo.userId, + }, { + _this: this + }, res => { + resolve(res) + },e => reject(e)); + }) + }, //标准问答按钮 knowledgeSharing() { - this.selectAskReply() - .then((res)=>{ - if( res && res.data.length === 0){ - this.$router.push({ - name: 'MyQuestions3', - query: { - activeName: "myQue", - type: this.$route.params.pageType, - id: this.$route.params.id, - dialogVisible: true - }, - }) - }else{ - const data = res.data[0].askQuestions - this.$router.push({ - name: 'MyQuestions3', - query: { - activeName: "myQue", - type: this.$route.params.pageType, - // classification: data.classification, - id: this.$route.params.id, - dialogVisible: false - }, - }) - } - }).catch(e =>{ - console.log(e) + this.jump().then(res => { + let activeName = res.data + this.selectAskReply() + .then((res)=>{ + if( res && res.data.length === 0){ + this.$router.push({ + name: 'MyQuestions3', + query: { + activeName, + type: this.$route.params.pageType, + id: this.$route.params.id, + dialogVisible: true + }, + }) + }else{ + const data = res.data[0].askQuestions + this.$router.push({ + name: 'MyQuestions3', + query: { + activeName, + type: this.$route.params.pageType, + // classification: data.classification, + id: this.$route.params.id, + dialogVisible: false + }, + }) + } + }) }) + // this.$router.push({ // // path: '/standQA', // query: {