Browse Source

Merge branch 'milestone-20251031-简版功能开发' of http://39.101.133.168:8807/qimaohong/deepChartVueApp into milestone-20251031-简版功能开发

maziyang/feature-20251025172218-智能客服中台
宋杰 4 weeks ago
parent
commit
4f4e2ef130
  1. 5
      pages/customerServicePlatform/csPlatformIndex.vue
  2. 9
      pages/customerServicePlatform/historyRecord.vue
  3. 5
      pages/customerServicePlatform/questionDetail.vue

5
pages/customerServicePlatform/csPlatformIndex.vue

@ -90,7 +90,6 @@
</template> </template>
<script> <script>
import { useUserStore } from "../../stores/modules/userInfo.js"
import { import {
getQuestionApi, getQuestionApi,
addFeedbackRecordApi, addFeedbackRecordApi,
@ -118,15 +117,12 @@
showQuestions: [], showQuestions: [],
feedbackText: '', feedbackText: '',
images: [], images: [],
token:''
} }
}, },
mounted() { mounted() {
// //
this.iSMT = uni.getSystemInfoSync().statusBarHeight; this.iSMT = uni.getSystemInfoSync().statusBarHeight;
this.getQuestionList() this.getQuestionList()
const memberStore = useUserStore()
this.token = memberStore.userInfo?.token
}, },
methods: { methods: {
onSuccess() { onSuccess() {
@ -267,7 +263,6 @@
} }
const [image1 = '', image2 = '', image3 = ''] = uploadedImages; const [image1 = '', image2 = '', image3 = ''] = uploadedImages;
const res = await addFeedbackRecordApi({ const res = await addFeedbackRecordApi({
token: this.token,
content: this.feedbackText, content: this.feedbackText,
image1, image1,
image2, image2,

9
pages/customerServicePlatform/historyRecord.vue

@ -57,7 +57,6 @@
</template> </template>
<script> <script>
import { useUserStore } from "../../stores/modules/userInfo.js"
import { import {
getFeedbackRecordsApi, getFeedbackRecordsApi,
} from "../../api/customerServicePlatform/customerServicePlatform"; } from "../../api/customerServicePlatform/customerServicePlatform";
@ -67,14 +66,12 @@
iSMT: 0, iSMT: 0,
statusText: '反馈成功', statusText: '反馈成功',
historyList: [], historyList: [],
token:''
}; };
}, },
mounted() { mounted() {
this.iSMT = uni.getSystemInfoSync().statusBarHeight; this.iSMT = uni.getSystemInfoSync().statusBarHeight;
this.loadHistoryList() this.loadHistoryList()
const memberStore = useUserStore()
this.token = memberStore.userInfo?.token
}, },
methods: { methods: {
formatTime(str) { formatTime(str) {
@ -95,9 +92,7 @@
} }
}, },
async loadHistoryList() { async loadHistoryList() {
const res = await getFeedbackRecordsApi({
token: this.token
})
const res = await getFeedbackRecordsApi()
console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
this.historyList = res.data.map(item => { this.historyList = res.data.map(item => {

5
pages/customerServicePlatform/questionDetail.vue

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

Loading…
Cancel
Save