feat: 增加跳转逻辑
This commit is contained in:
@@ -194,8 +194,9 @@ function Intro() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
Taro.redirectTo({
|
Taro.redirectTo({
|
||||||
url: `/other_pages/ntrp-evaluate/index?stage=${type}${type === StageType.RESULT ? `&id=${id}` : ""
|
url: `/other_pages/ntrp-evaluate/index?stage=${type}${
|
||||||
}`,
|
type === StageType.RESULT ? `&id=${id}` : ""
|
||||||
|
}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,7 +230,10 @@ function Intro() {
|
|||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View className={styles.lastResult}>
|
<View
|
||||||
|
className={styles.lastResult}
|
||||||
|
onClick={() => handleNext(StageType.RESULT)}
|
||||||
|
>
|
||||||
<View className={styles.tipAndTime}>
|
<View className={styles.tipAndTime}>
|
||||||
<Text>上次测试结果</Text>
|
<Text>上次测试结果</Text>
|
||||||
<Text>{lastTestTime}</Text>
|
<Text>{lastTestTime}</Text>
|
||||||
@@ -638,12 +642,13 @@ function Result() {
|
|||||||
}
|
}
|
||||||
const currentPage = getCurrentFullPath();
|
const currentPage = getCurrentFullPath();
|
||||||
Taro.redirectTo({
|
Taro.redirectTo({
|
||||||
url: `/login_pages/index/index${currentPage ? `?redirect=${encodeURIComponent(currentPage)}` : ""
|
url: `/login_pages/index/index${
|
||||||
}`,
|
currentPage ? `?redirect=${encodeURIComponent(currentPage)}` : ""
|
||||||
|
}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleGo() { }
|
function handleGo() {}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View className={styles.resultContainer}>
|
<View className={styles.resultContainer}>
|
||||||
|
|||||||
Reference in New Issue
Block a user