猫妈狗爸伴宠师小程序前端代码
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.

37 lines
652 B

  1. import request from '@/utils/request'
  2. // 个人中心信息
  3. export function getPersonalInfo() {
  4. return request({
  5. headers: {
  6. "isToken": true
  7. },
  8. url: "/h5/companion/staff/getStaffInfo",
  9. method: 'get'
  10. })
  11. }
  12. //获取openId
  13. export function getOpenId(code) {
  14. return request({
  15. url: `/no-auth/wechat/getOpenId?code=${code}&sourceType=1`,
  16. method: 'get'
  17. })
  18. }
  19. //获取手机号
  20. export function getPhoneNumber(data) {
  21. return request({
  22. url: `/applet/login/bindPhone`,
  23. method: 'post',
  24. data
  25. })
  26. }
  27. // 微信授权登录
  28. export const wxLogin = (data) => {
  29. return request({
  30. url: `/applet/login/wechatLogin`,
  31. method: 'post',
  32. data
  33. })
  34. }