import request from "@/utils/request.js"; import {host} from "@/config/host.js"; /** * 登录 * @param {Object} data */ export function testLogin(data) { return request({ url: `${host}/user/gettoken`, method: "get", data }); } export function login(data) { return request({ url: `${host}`, method: "method", data }); } export function userDetail(data) { return request({ url: `${host}/user/detail`, method: "post", data }); } export function userExtends(data) { return request({ url: `${host}/user/user-count`, method: "post", data }); } export function userCoupons(data) { return request({ url: `${host}/user/coupons-list`, method: "get", data }); } export function appletLogin(code){ return request({ url: `${host}/user/login`, method: "post", data:{ code:code } }) }