ssoApi.js
588 Bytes
import api from '~/utils/request/request'
const path = 'scrm.api.sso.weapp.'
export default {
/**wx.login登录 */
jsCodeLogin(data) {
return api.post(
{
method: `${path}jscode.login`,
...data
},
true
)
},
/**授权手机号 */
authUserPhone(data) {
return api.post(
{
method: `${path}auth.phone`,
...data
},
true
)
},
/**获取openid */
getOpenId(data) {
return api.post(
{
method: 'scrm.api.sso.weapp.jscode.getOpenId',
...data
},
true
)
}
}