123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { request } from "@/api/config.js"
- // 登录方法
- export function loginByWeixinApi(data) {
- return request({
- url: '/wx/account/loginByWeixin',
- headers: {
- isToken: false
- },
- method: 'post',
- data: data
- })
- }
- export function userInfoApi(data) {
- return request({
- url: '/wx/account/info',
- method: 'get',
- data: data
- })
- }
- // 注销账号
- export function logOffApi(data) {
- return request({
- url: '/wx/account/logOff',
- method: 'post',
- data: data
- })
- }
- // 绑定手机号
- export function bindPhoneApi(data) {
- return request({
- url: '/wx/account/bindPhone',
- method: 'post',
- data: data
- })
- }
- // 更新用户信息
- export function profileApi(data) {
- return request({
- url: '/wx/account/profile',
- method: 'post',
- data: data
- })
- }
|