import { POST } from "./Request.js" // let base = 'https://hsgcs.dctpay.com/crest'; let app = getApp(); let base = app.globalData.url; //根据code获取openId export const HandleCode = params => { return POST('GET', `${base}/wechat/handleCode`, params).then(res => res.data); } //微信第一次登录 export const GetPhoneNumber = params => { return POST('GET', `${base}/wechat/getPhoneNumber`, params).then(res => res.data); }; //微信登录 export const WXlogin = params => { return POST('GET', `${base}/wechat/login`, params).then(res => res.data); }; //通过openid获取用户的信息 export const OpenidGetUser = (openId, params) => { return POST('GET', `${base}/User/openid/${openId}`, params).then(res => res.data); };