diff --git a/honey_box/common/server/auth.js b/honey_box/common/server/auth.js index 4d5f0b5d..1cb80045 100644 --- a/honey_box/common/server/auth.js +++ b/honey_box/common/server/auth.js @@ -86,6 +86,19 @@ export const isTokenExpired = () => { return Date.now() >= tokenExpireTime; }; +/** + * 微信手机号快速验证登录 + * @param {String} code 微信手机号授权code(getPhoneNumber返回) + * @param {String} pid 推荐人ID + * @returns {Promise} 登录结果 + */ +export const wxPhoneLogin = async (code, pid = '') => { + return await RequestManager.post('/wxPhoneLogin', { + code, + pid + }); +}; + /** * 微信登录 * @param {Object} params 登录参数 diff --git a/honey_box/pages/user/login.vue b/honey_box/pages/user/login.vue index 288a9fe6..8a213708 100644 --- a/honey_box/pages/user/login.vue +++ b/honey_box/pages/user/login.vue @@ -13,8 +13,8 @@ - - @@ -63,7 +63,7 @@