index.js 692 Bytes
var base = require('./public/base');
var Login = require('./public/login');
var Goto = require('./public/goto');
var wxCtrl = require('./public/share');
var common = require('./utils/common');
var env = base.env();
var loginUrl = base.loginUrl();
var login = new Login({loginUrl:loginUrl, env:env});
var goto = new Goto(env);
var wx = new wxCtrl();

module.exports = {
    auth:login.auth.bind(login),
    goLogin: login.goLogin.bind(login),
    getUser:base.getUser,
    env: env,
    link: goto.link.bind(goto),
    goBack: goto.goBack.bind(goto),
    wxShare: wx.wxShare.bind(wx),
    wxSignature: wx.wxSignature,
    getQueryObj:common.getQueryObj,
    invokeMethod:common.invokeMethod
}