import { ApiModel } from './utils/Api'; App({ onLaunch() { wx.getSystemInfo({ success (res) { console.log(res) } }) }, globalData: { http: new ApiModel(), //接口文件 } })