index.js
649 Bytes
import base from './public/base'
import Login from './public/login'
import Goto from './public/goto'
import wxCtrl from './public/share'
import {getQueryObj,invokeMethod} from './utils/common'
const env = base.env();
const loginUrl = base.loginUrl();
const login = new Login({loginUrl, env});
const goto = new Goto(env);
const wx = new wxCtrl();
export default {
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,
invokeMethod
}