Browse Source

反馈api

zhaowenkang/feature-20251028181547-行情页面
maziyang 4 weeks ago
parent
commit
151bd9ec64
  1. 21
      api/customerServicePlatform/customerServicePlatform.js
  2. 11
      pages/customerServicePlatform/historyRecord.vue

21
api/customerServicePlatform/customerServicePlatform.js

@ -0,0 +1,21 @@
import { http } from '@/utils/http.js'
const baseFeedbackURL = "http://39.101.133.168:8828/link"
//反馈添加
export const addFeedbackRecord = (data) => {
return http({
method: 'POST',
url: baseFeedbackURL +'/third/dcFeedBack/feedback/add',
data
})
}
//反馈历史记录
export const getFeedbackRecords = (data) => {
return http({
method: 'POST',
url: baseFeedbackURL+'/third/dcFeedBack/feedback/select',
data
})
}

11
pages/customerServicePlatform/historyRecord.vue

@ -56,6 +56,7 @@
</template>
<script>
import { getFeedbackRecords, addFeedbackRecord} from "../../api/customerServicePlatform/customerServicePlatform";
export default {
data() {
return {
@ -82,6 +83,7 @@
},
mounted() {
this.iSMT = uni.getSystemInfoSync().statusBarHeight;
this.loadHistoryList()
},
methods: {
goBack() {
@ -91,8 +93,15 @@
window.history.back();
}
},
loadHistoryList(){
async loadHistoryList(){
console.log("????")
const res = await getFeedbackRecords({
token:'dccec0b65a94f498b8183a17589ab16e'
})
console.log(res)
if(res.code == 200){
}
},
previewImage(list, index) {
if (typeof uni !== 'undefined' && uni.previewImage) {

Loading…
Cancel
Save