Browse Source

接口对接

lihuilin/feature-20251024095243-我的
maziyang 4 weeks ago
parent
commit
3d0d54ef94
  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>
<script>
import { useUserStore } from "../../stores/modules/userInfo.js"
import {
getQuestionApi,
addFeedbackRecordApi,
@ -118,15 +117,12 @@
showQuestions: [],
feedbackText: '',
images: [],
token:''
}
},
mounted() {
//
this.iSMT = uni.getSystemInfoSync().statusBarHeight;
this.getQuestionList()
const memberStore = useUserStore()
this.token = memberStore.userInfo?.token
},
methods: {
onSuccess() {
@ -267,7 +263,6 @@
}
const [image1 = '', image2 = '', image3 = ''] = uploadedImages;
const res = await addFeedbackRecordApi({
token: this.token,
content: this.feedbackText,
image1,
image2,

9
pages/customerServicePlatform/historyRecord.vue

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

5
pages/customerServicePlatform/questionDetail.vue

@ -62,7 +62,6 @@
</template>
<script>
import { useUserStore } from "../../stores/modules/userInfo.js"
import {
getAnswerApi
} from "../../api/customerServicePlatform/customerServicePlatform";
@ -74,14 +73,11 @@
questionTitle: '',
answerContent: '正在思考...',
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) {
@ -106,7 +102,6 @@
const res = await getAnswerApi({
question: this.questionTitle,
conversationId: conversationId,
token:this.token
})
console.log(res)

Loading…
Cancel
Save