diff --git a/common/api/wx.js b/common/api/wx.js index 527b589..383a014 100644 --- a/common/api/wx.js +++ b/common/api/wx.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-04-28 16:30:54 * @LastEditors: ch - * @LastEditTime: 2022-05-06 20:58:31 + * @LastEditTime: 2022-05-17 19:49:08 * @Description: file content */ @@ -25,7 +25,14 @@ export const ApiGetAuthUrl = (params) => * @param {*} data */ export const ApiGetOpenId = ({code}) => - ToAsyncAwait(MsbRequest.get(`${AUTH_URL}/wx/mp/getOpenId/${APPID}`, {code})); + ToAsyncAwait(MsbRequest.get(`${AUTH_URL}/wx/mp/getOpenId/${APPID}`, { code })); + +/** + * 微信OPENID绑定用户 + * @param {*} data + */ +export const ApiPostThirdInfo = (data) => + ToAsyncAwait(MsbRequestTk.post(`${AUTH_URL}/third/saveThirdInfo`, {...data, appid:APPID})); /** * 微信h5支付,获取支付URL diff --git a/pages/login.vue b/pages/login.vue index 52c6d06..42ab480 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-22 15:36:46 * @LastEditors: ch - * @LastEditTime: 2022-05-16 20:33:11 + * @LastEditTime: 2022-05-17 19:50:10 * @Description: file content -->