From d8970bab48e9e904c7d05fc2fc14d9780620dd68 Mon Sep 17 00:00:00 2001 From: Lx <935448346@qq.com> Date: Thu, 17 Apr 2025 10:32:04 +0800 Subject: [PATCH] 0417-2 --- pages/index/contract.vue | 2 +- pagesA/register/index.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/index/contract.vue b/pages/index/contract.vue index 011b0d4..6f1e2d4 100644 --- a/pages/index/contract.vue +++ b/pages/index/contract.vue @@ -158,7 +158,7 @@ setTimeout(function() { // 在这里写需要延迟执行的代码 - uni.navigateTo({ + uni.switchTab({ url: '/newPages/newIndex/index' }) }, 2600); // 3000毫秒即为3秒 diff --git a/pagesA/register/index.vue b/pagesA/register/index.vue index 48ea1a3..b4cbdb7 100644 --- a/pagesA/register/index.vue +++ b/pagesA/register/index.vue @@ -221,6 +221,7 @@ loading: false, localStaffType: null, localCoachId: null, + userDetails: [], columns: [ [{ label: '全款', @@ -235,6 +236,7 @@ } }, onLoad(option) { + console.log('option', option) uni.showToast({ title: '请完善个人信息', icon: 'none' @@ -243,13 +245,15 @@ this.hideTeacher = 1 } this.jlId = uni.getStorageSync('jlId'); + this.userDetails = getLocalUserInfo(); this.courseId = option.courseId, - this.userId = option.userId, - this.tenantId = option.tenantId - this.userinfo = getLocalUserInfo() + this.tenantId = option.tenantId, + this.userId = this.userDetails.id, + this.userinfo = getLocalUserInfo() this.localStaffType = getStaffType() this.localCoachId = getCoachId() console.log('localCoachId', this.localCoachId); + console.log('userId', this.userId); }, onShow() { this.getListAll()