//index.js //获取应用实例 const getReq = require('./../../config.js').getReq const app = getApp() Page({ data: { }, onLoad: function () { getReq({ act: 'index', op: 'tabs' }, function(res) { console.log(res) }) }, })