|
|
|
@ -13,7 +13,11 @@ |
|
|
|
|
<div |
|
|
|
|
class="box" |
|
|
|
|
:style="{ |
|
|
|
|
backgroundImage: isBox1Clicked ? `url(${btn1})` : `url(${btn2})`, |
|
|
|
|
backgroundImage: isStudy |
|
|
|
|
? `url(${btn1})` |
|
|
|
|
: isBox2Clicked |
|
|
|
|
? `url(${btn1})` |
|
|
|
|
: `url(${btn2})`, |
|
|
|
|
}" |
|
|
|
|
@click="handleBoxClick(1)" |
|
|
|
|
> |
|
|
|
@ -22,9 +26,7 @@ |
|
|
|
|
<div |
|
|
|
|
class="box" |
|
|
|
|
:style="{ |
|
|
|
|
backgroundImage: complete |
|
|
|
|
? `url(${btn1})` |
|
|
|
|
: `url(${btn2})`, |
|
|
|
|
backgroundImage: complete ? `url(${btn1})` : `url(${btn2})`, |
|
|
|
|
}" |
|
|
|
|
@click="handleBoxClick(2)" |
|
|
|
|
> |
|
|
|
@ -100,8 +102,9 @@ import { submitExperiment, getScore } from "@/api"; |
|
|
|
|
import { ElMessage, ElMessageBox } from "element-plus"; |
|
|
|
|
const isShowExperiment = |
|
|
|
|
Number(localStorage.getItem("activeStepIndex")) == 12 ? true : false; |
|
|
|
|
const isStudy = Boolean(localStorage.getItem("isStudy")) || false; |
|
|
|
|
const router = useRouter(); |
|
|
|
|
const complete = localStorage.getItem('complete') |
|
|
|
|
const complete = localStorage.getItem("complete"); |
|
|
|
|
const user = userStore(); |
|
|
|
|
const loginFn = () => { |
|
|
|
|
// user.token ? router.push("/spacePage") : ""; |
|
|
|
|