import fetch from './fetch.js'; import config from './config.js'; class Api { // 微信登录 static wechatLogin(data) { let url = `${config.host}/worker/worker/login`; return fetch.request('postFrom', url, data, false) } // 绑定手机号 static bindPhoneNumber(data) { let url = `${config.host}/worker/worker/bindPhoneNumber`; return fetch.request('postFrom', url, data, false) } // 游客登录 static guestLogin(data) { let url = `${config.host}/worker/worker/guestLogin`; return fetch.request('postFrom', url, data, false) } } export default Api