You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.0 KiB
88 lines
1.0 KiB
|
|
|
|
|
|
import { http } from '@/uni_modules/uview-plus'
|
|
|
|
// 微信小程序的一键登录
|
|
export const weixinLogin = (data) => http.post('member/auth/weixin-mini-app-login', data)
|
|
// 验证码登录
|
|
export const loginSMS = (data) => http.post('member/auth/sms-login', data, { custom: { noToken: true }})
|
|
// 登录发验证码
|
|
export const getLoginCode = (data) => http.post('member/auth/send-sms-code', data, { custom: { noToken: true, catch: true,}})
|
|
// 获取个人信息
|
|
export const getUserInfo = (data) => http.post('member/user/get', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}})
|
|
// 退出登录
|
|
export const logOut = (data={}) => http.post('member/auth/logout', data, {custom: {catch: true, toast: false }})
|
|
// 驾校列表分页
|
|
export const schoolPage = (params) => http.get('business/school/page', {params: params})
|
|
// 新增的接口
|
|
export const getBannerList = (params={}) => http.get('business/video/getBannerList', {params})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|