|
|
|
@ -62,6 +62,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { useUserStore } from "../../stores/modules/userInfo.js" |
|
|
|
import { |
|
|
|
getAnswerApi |
|
|
|
} from "../../api/customerServicePlatform/customerServicePlatform"; |
|
|
|
@ -72,12 +73,15 @@ |
|
|
|
iSMT: 0, |
|
|
|
questionTitle: '', |
|
|
|
answerContent: '正在思考...', |
|
|
|
showLoginRegister:false |
|
|
|
showLoginRegister:false, |
|
|
|
token:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.iSMT = uni.getSystemInfoSync().statusBarHeight || 0; |
|
|
|
this.getAnswerContent() |
|
|
|
const memberStore = useUserStore() |
|
|
|
this.token = memberStore.userInfo?.token |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
if (options.question) { |
|
|
|
@ -102,7 +106,7 @@ |
|
|
|
const res = await getAnswerApi({ |
|
|
|
question: this.questionTitle, |
|
|
|
conversationId: conversationId, |
|
|
|
token:"f4383aec3be3c853ff5a71dfae2d061f" |
|
|
|
token:this.token |
|
|
|
}) |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
|