Sfoglia il codice sorgente

cps:获取订单列表、粉丝列表接口

panyong 3 anni fa
parent
commit
e96bbed76c

+ 4 - 4
htmldev/cps/src/views/fans/api/api.js

@@ -1,10 +1,10 @@
 import request from '@/api/request'
 
 /**
- * 订单列表接口
+ * 用户粉丝列表
  */
-export const apiOrderList = (params) => request({
+export const apiFansList = (obj) => request({
   method: 'GET',
-  url: '/api/v1/user/order/list',
-  params: params
+  url: '/api/user/fans/list',
+  params: obj
 })

+ 2 - 2
htmldev/cps/src/views/fans/child/main.vue

@@ -52,7 +52,7 @@
 <script>
 import BScroll from 'better-scroll'
 import { Toast, Loading } from 'vant'
-import { apiOrderList } from '../api/api'
+import { apiFansList } from '../api/api'
 
 export default {
   components: {
@@ -103,7 +103,7 @@ export default {
       this.isFetchLock = true
       this.pagenum++
       try {
-        const { status, data, msg } = await apiOrderList({ page: this.pagenum, page_size: this.pagesize })
+        const { status, data, msg } = await apiFansList({ page: this.pagenum, page_size: this.pagesize })
         if (status) {
           const { list } = data
           // 下拉刷新数据清空

+ 4 - 4
htmldev/cps/src/views/order/api/api.js

@@ -1,10 +1,10 @@
 import request from '@/api/request'
 
 /**
- * 订单列表接口
+ * 订单列表
  */
-export const apiOrderList = (params) => request({
+export const apiOrderList = (obj) => request({
   method: 'GET',
-  url: '/api/v1/user/order/list',
-  params: params
+  url: '/api/order/list',
+  params: obj
 })