From b8418bb5a7fc18ae4554f85d8567af22c7f2605d Mon Sep 17 00:00:00 2001 From: yanyan Date: Fri, 2 Feb 2024 10:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=A7=92=E8=89=B2id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/practice/practice.vue | 4 ++++ subpkg/role/role.vue | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/subpkg/practice/practice.vue b/subpkg/practice/practice.vue index 9000a82..aae1d91 100644 --- a/subpkg/practice/practice.vue +++ b/subpkg/practice/practice.vue @@ -15,9 +15,13 @@ data() { return { + roleId:"", page: "", }; }, + onLoad(options) { + this.roleId = options.roleId + }, onReady() { this.QR(); }, diff --git a/subpkg/role/role.vue b/subpkg/role/role.vue index 448f129..05ef29e 100644 --- a/subpkg/role/role.vue +++ b/subpkg/role/role.vue @@ -8,13 +8,13 @@ 请选择您在“{{sceneName}}”演练中的角色: - {{item.name}} + {{item.name}} 更多角色 - 开始演练 + 开始演练 题目来源:深圳市******有限公司 @@ -91,7 +91,7 @@ }, startPractice(item) { uni.navigateTo({ - url: '/subpkg/practice/practice?roleId='+this.roleId + url: '/subpkg/practice/practice?roleId='+item.guid }) } }