diff --git a/src/pages/sparring/chooseRole.vue b/src/pages/sparring/chooseRole.vue index 7a2432da..974c772c 100644 --- a/src/pages/sparring/chooseRole.vue +++ b/src/pages/sparring/chooseRole.vue @@ -62,6 +62,11 @@ } const isPreview = ref(false) const toTip = () => { + if (isPreview.value) { + common.navigateTo('/pages/sparring/tip?traId=' + traId.value + '&chaId=' + activeRole.value.chaId + + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ? '1' : '')) + return + } checkTraPartnerInfoById({ traId: traId.value }).then(res => { diff --git a/src/pages/sparring/detail.vue b/src/pages/sparring/detail.vue index 84061a2a..11d44505 100644 --- a/src/pages/sparring/detail.vue +++ b/src/pages/sparring/detail.vue @@ -125,6 +125,12 @@ }) } const toChooseRole = type => { + if (isPreview.value) { + common.navigateTo('/pages/sparring/chooseRole?traId=' + traId.value + '&type=' + type + '&isPreview=' + ( + isPreview + .value ? '1' : '')) + return + } checkTraPartnerInfoById({ traId: traId.value }).then(res => { diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index 15be2ae5..9a2ccf93 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -249,6 +249,10 @@ // #endif }; const beforeToTalking = () => { + if (isPreview.value) { + toTalking() + return + } checkTraPartnerInfoById({ traId: traId.value }).then(res => {