美文网首页前端数据处理
前端开发:模拟现有接口数据

前端开发:模拟现有接口数据

作者: 逸笛 | 来源:发表于2020-05-29 14:28 被阅读0次

    response.data.result为接口返回的结果数据

     response.data.result.push({
              avatar: "//api.chief-info.com/uploads/sys/image/c2999b90dbac38e2259e8cf2f3f57525.jpg",
              coc: [],
              coc_id: 0,
              company: {
                address: "河北省秦皇岛市山海关区dh多喝点酒能",
                cert: 2,
                describe: "",
                id: 2,
                industry: "",
                lat: "0.0000000000",
                logo: "//api.chief-info.com/static/temp/img.png",
                lon: "0.0000000000",
                name: "艾比利",
                phone: "15616342587",
                profiles: ""
              },
              company_id: 2,
              id: 2,
              name: "李乐",
              phone: "",
              position: "开发",
              section: { id: 1, name: "艾比利" },
              section_id: 1,
              skin: 0,
              state: 2,
              user: { user_id: 8, name: "徐乐", cert: 1, phone: "", mail: "" },
              user_id: 8
            }, {
              avatar: "//api.chief-info.com/uploads/sys/image/c2999b90dbac38e2259e8cf2f3f57525.jpg",
              coc: [],
              coc_id: 0,
              company: {
                address: "河北省秦皇岛市山海关区dh多喝点酒能",
                cert: 2,
                describe: "",
                id: 3,
                industry: "",
                lat: "0.0000000000",
                logo: "//api.chief-info.com/static/temp/img.png",
                lon: "0.0000000000",
                name: "艾比利1223455",
                phone: "15616342587",
                profiles: ""
              },
              company_id: 3,
              id: 3,
              name: "张乐",
              phone: "",
              position: "开发456",
              section: { id: 3, name: "艾比利123456" },
              section_id: 1,
              skin: 0,
              state: 2,
              user: { user_id: 9, name: "张乐", cert: 1, phone: "", mail: "" },
              user_id: 9
            }, {
              avatar: "//api.chief-info.com/uploads/sys/image/c2999b90dbac38e2259e8cf2f3f57525.jpg",
              coc: [],
              coc_id: 0,
              company: {
                address: "河北省秦皇岛市山海关区dh多喝点酒能",
                cert: 2,
                describe: "",
                id: 4,
                industry: "",
                lat: "0.0000000000",
                logo: "//api.chief-info.com/static/temp/img.png",
                lon: "0.0000000000",
                name: "艾比利1223455",
                phone: "15616342587",
                profiles: ""
              },
              company_id: 4,
              id: 4,
              name: "茶颜悦色",
              phone: "",
              position: "开发456",
              section: { id: 4, name: "艾比利123456" },
              section_id: 1,
              skin: 0,
              state: 2,
              user: { user_id: 9, name: "张乐", cert: 1, phone: "", mail: "" },
              user_id: 9
            });
    

    相关文章

      网友评论

        本文标题:前端开发:模拟现有接口数据

        本文链接:https://www.haomeiwen.com/subject/zwixzhtx.html