From 4a9887eae861169c08c0b490e79cdafd28f1097c Mon Sep 17 00:00:00 2001 From: ch Date: Tue, 17 May 2022 19:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/wx.js | 11 +++++++++-- pages/login.vue | 11 ++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) 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 -->