feat: NTRP测试入口接入
This commit is contained in:
@@ -3,22 +3,32 @@ import { View, Text, Button, Image } from "@tarojs/components";
|
||||
import Taro from "@tarojs/taro";
|
||||
import classnames from "classnames";
|
||||
import { useUserInfo } from "@/store/userStore";
|
||||
import { useEvaluate, EvaluateCallback } from "@/store/evaluateStore";
|
||||
import { delay } from "@/utils";
|
||||
import ArrwoRight from "@/static/ntrp/ntrp_arrow_right.svg";
|
||||
import CloseIcon from "@/static/ntrp/ntrp_popup_close.svg";
|
||||
import DocCopy from "@/static/ntrp/ntrp_doc_copy.svg";
|
||||
import styles from "./index.module.scss";
|
||||
|
||||
function NtrpPopupGuide(props: { close: () => void; skipGuide: () => void }) {
|
||||
const { close, skipGuide } = props;
|
||||
function NtrpPopupGuide(props: {
|
||||
close: () => void;
|
||||
skipGuide: () => void;
|
||||
evaluateCallback: EvaluateCallback;
|
||||
}) {
|
||||
const { close, skipGuide, evaluateCallback } = props;
|
||||
const userInfo = useUserInfo();
|
||||
const { setCallback } = useEvaluate();
|
||||
|
||||
function handleTest() {
|
||||
Taro.redirectTo({
|
||||
url: `/other_pages/ntrp-evaluate/index`,
|
||||
async function handleTest() {
|
||||
setCallback(evaluateCallback);
|
||||
Taro.navigateTo({
|
||||
url: `/other_pages/ntrp-evaluate/index?stage=test`,
|
||||
});
|
||||
await delay(1000);
|
||||
close();
|
||||
}
|
||||
return (
|
||||
<View className={styles.container}>
|
||||
<View className={styles.container} onClick={(e) => e.stopPropagation()}>
|
||||
<View className={styles.header}>
|
||||
<View className={styles.closeBtn} onClick={close}>
|
||||
<Image className={styles.closeIcon} src={CloseIcon} />
|
||||
|
||||
Reference in New Issue
Block a user