From 3ba6af2fd35e669b4d8ff324c63b07fd5fe592d1 Mon Sep 17 00:00:00 2001 From: maziyang <2049865907@qq.com> Date: Wed, 29 Oct 2025 20:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerServicePlatform.js | 31 +++- pages/customerServicePlatform/csPlatformIndex.vue | 187 +++++++++++++-------- pages/customerServicePlatform/historyRecord.vue | 44 ++--- pages/customerServicePlatform/questionDetail.vue | 153 +++++++++-------- 4 files changed, 248 insertions(+), 167 deletions(-) diff --git a/api/customerServicePlatform/customerServicePlatform.js b/api/customerServicePlatform/customerServicePlatform.js index 709cdbc..0f20be0 100644 --- a/api/customerServicePlatform/customerServicePlatform.js +++ b/api/customerServicePlatform/customerServicePlatform.js @@ -1,29 +1,46 @@ import { http } from '@/utils/http.js' -const baseFeedbackURL = "http://39.101.133.168:8828/link" +const baseURL = "http://39.101.133.168:8828" +//图片上传 +export const uploadImageApi = (data) => { + return http({ + method: 'POST', + url: baseURL +'/hljw/api/aws/upload', + data + }) +} -export const getQuestion = (data) => { +//问题回答 +export const getAnswerApi = (data) => { return http({ method: 'POST', - url: 'http://pbb6edde.natappfree.cc' +'/api/customer/getQuestion', + url: 'http://pbb6edde.natappfree.cc' +'/api/customer/askQuestion', data }) } +//获取随机5条猜你想问问题 +export const getQuestionApi = (data) => { + return http({ + method: 'GET', + url: 'http://pbb6edde.natappfree.cc' +'/api/customer/getQuestion', + }) +} + //反馈添加 -export const addFeedbackRecord = (data) => { +export const addFeedbackRecordApi = (data) => { return http({ method: 'POST', - url: baseFeedbackURL +'/third/dcFeedBack/feedback/add', + url: baseURL +'/link/third/dcFeedBack/feedback/add', data }) } //反馈历史记录 -export const getFeedbackRecords = (data) => { +export const getFeedbackRecordsApi = (data) => { return http({ method: 'POST', - url: baseFeedbackURL+'/third/dcFeedBack/feedback/select', + url: baseURL+'/link/third/dcFeedBack/feedback/select', data }) } \ No newline at end of file diff --git a/pages/customerServicePlatform/csPlatformIndex.vue b/pages/customerServicePlatform/csPlatformIndex.vue index 04d5e48..58d7df6 100644 --- a/pages/customerServicePlatform/csPlatformIndex.vue +++ b/pages/customerServicePlatform/csPlatformIndex.vue @@ -5,7 +5,8 @@ - + {{headerTitle}} @@ -29,18 +30,17 @@ 猜你想问 - + 换一换 - + {{ idx + 1 }} - {{ q }} + {{ q }} @@ -90,11 +90,17 @@