| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- import { requestApi } from '../util/network'
- // 用户登录
- export const login =
- (userName, password, pictureCode = '') =>
- requestApi(
- '/Login/index',
- 'POST',
- {
- 'username': userName,
- 'password': password,
- 'captcha': pictureCode,
- 'client_type': 'wap'
- }
- )
- // 用户微信登录
- export const wechatLogin =
- (ref, inviterId) =>
- requestApi(
- '/Wxauto/login',
- 'GET',
- {
- 'ref': ref,
- 'inviter_id': inviterId
- }
- )
- // 用户微信登录
- export const wechatcheck =
- (data) =>
- requestApi(
- '/Wxauto/checkAuth',
- 'GET',
- data
- )
- // 用户微信登录
- export const wechatUser =
- (data) =>
- requestApi(
- '/Wxauto/getUser',
- 'GET',
- data
- )
- // 用户手机登录
- export const LoginByMobile =
- (phone, captcha) =>
- requestApi(
- '/Connect/sms_login',
- 'POST',
- {
- 'usermobile': phone,
- 'mobilecode': captcha,
- 'client': 'wap'
- }
- )
- // 绑定
- export const bind =
- (type, from, openid, unionid, nickname, headimgurl, user, password, password2, inviter_id) =>
- requestApi(
- '/Login/bind',
- 'POST',
- {
- type: type,
- from: from,
- openid: openid,
- unionid: unionid,
- nickname: nickname,
- headimgurl: headimgurl,
- user: user,
- password: password,
- password2: password2,
- inviter_id: inviter_id,
- client_type: 'wap'
- }
- )
- export const getThirdLogin =
- (id) =>
- requestApi(
- '/Login/third_login',
- 'POST',
- {
- id:id
- }
- )
|