From be4a1e09b2cd1a2d472cb28489df2c285c25455f Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Mon, 17 Jul 2023 14:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=85=A5=E4=BC=A0?= =?UTF-8?q?=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/modules/h5Income/js/login.js | 11 +- view/peko/modules/myincome/index.html | 2 +- ...d7f9793e6.js => 0.1b5c2ea8472946953399.js} | 4 +- ...af.js => manifest.836a505b906b68c0fb93.js} | 4 +- .../vue-project/myincome/src/utils/request.js | 156 +++++++++--------- 5 files changed, 90 insertions(+), 87 deletions(-) rename view/peko/modules/myincome/static/js/{0.0f4b96e785ed7f9793e6.js => 0.1b5c2ea8472946953399.js} (94%) rename view/peko/modules/myincome/static/js/{manifest.b1f89da6bab829d854af.js => manifest.836a505b906b68c0fb93.js} (89%) diff --git a/view/peko/modules/h5Income/js/login.js b/view/peko/modules/h5Income/js/login.js index 1c7cf87..0a95946 100644 --- a/view/peko/modules/h5Income/js/login.js +++ b/view/peko/modules/h5Income/js/login.js @@ -100,15 +100,18 @@ function oauthToken () { showLoading() networkRequest({ type: 'POST', - url: urlPrefix + '/oauth/token', + url: urlPrefix + '/oauth/h5/token', data: idOrPhone ? { - "grant_type": "password", phone, password, client_id: "erban-client", "client_secret": "uyzjdhds" + "grant_type": "password", phone, password, } : - { grant_type: 'verify_code', phoneAreaCode, phone:`${phoneAreaCode}${phone}`, code, client_id: "erban-client", "client_secret": "uyzjdhds" }, + { grant_type: 'verify_code', phoneAreaCode, phone:`${phoneAreaCode}${phone}`, code,}, success (res) { if (res.code === 200) { token = res.data.access_token; - ticket(); + // ticket(); + sessionStorage.setItem("uid", res.data.uid); + sessionStorage.setItem("ticket", token); + window.location.href = './index.html' } else { toastMsg(res.message) } diff --git a/view/peko/modules/myincome/index.html b/view/peko/modules/myincome/index.html index 0264bbe..96ecf17 100644 --- a/view/peko/modules/myincome/index.html +++ b/view/peko/modules/myincome/index.html @@ -1 +1 @@ -