Commit 8c2a5dff authored by youjie's avatar youjie

no message

parent 56094a3f
import request from '../utils/request.js' import request from '../utils/request.js'
/**
* 获取“我的孩子”列表
* @param {JSON参数} data
*/
export function MyChildList(data) {
return request({
url: '/AppletCenter/MyChildList',
method: 'post',
data
})
}
/** /**
* 账号密码登录 * 账号密码登录
* @param {JSON参数} data * @param {JSON参数} data
......
...@@ -200,8 +200,8 @@ ...@@ -200,8 +200,8 @@
import Loadmore from "../../components/loadmore.vue"; import Loadmore from "../../components/loadmore.vue";
import bottom from "../../components/bottom"; import bottom from "../../components/bottom";
import { import {
GetOrderPage MyChildList
} from "../../api/erp"; } from "../../api/index";
export default { export default {
components: { components: {
bottom, bottom,
...@@ -215,7 +215,6 @@ ...@@ -215,7 +215,6 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
OrderType: 1
}, },
pageCount: 0, pageCount: 0,
dataList: [], dataList: [],
...@@ -270,8 +269,7 @@ ...@@ -270,8 +269,7 @@
}); });
}, },
async getData() { async getData() {
return let res = await MyChildList(data.msg);
let res = await GetOrderPage(data.msg);
if (res) { if (res) {
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.msg.pageIndex === 1) { if (data.msg.pageIndex === 1) {
...@@ -289,6 +287,9 @@ ...@@ -289,6 +287,9 @@
}, },
}; };
let that = methods; let that = methods;
onMounted(() => {
that.getData()
});
return { return {
...toRefs(data), ...toRefs(data),
...methods ...methods
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment