diff --git a/App.vue b/App.vue index 5a82140..eec1a81 100644 --- a/App.vue +++ b/App.vue @@ -49,7 +49,6 @@ function getUserInfo() { lightAppJssdk.user.getUserInfoWithEncryptedParamByAppId({ appId: 'qdsrgznrgpp', // 接入方在成功创建应用后自动生成 success: function (data) { - console.log('res', data); if (data == '未登录') onLoginApp(); else { if (typeof data == 'string') data = JSON.parse(data); @@ -106,8 +105,8 @@ function oncloseWindow() { } function loginCallback(userInfo) { - let pramams = { - token: userInfo, + let params = { + username: userInfo, }; $api.createRequest('/app/login', params, 'post').then((resData) => { useUserStore() @@ -119,7 +118,9 @@ function loginCallback(userInfo) { url: '/pages/index/index', }); } else { - nextStep(); + uni.redirectTo({ + url: '/pages/login/login', + }); } }); }); @@ -179,4 +180,4 @@ uni-modal, body { font-family: 'PingFangSC-Regular', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; } - + \ No newline at end of file diff --git a/components/selectJobs/selectJobs.vue b/components/selectJobs/selectJobs.vue index 22c6aac..09cc886 100644 --- a/components/selectJobs/selectJobs.vue +++ b/components/selectJobs/selectJobs.vue @@ -32,7 +32,7 @@