|
@@ -21,14 +21,13 @@ import evastyles from '../popups/evaluating/index.module.less'
|
|
import ModelWraper from './model-wraper'
|
|
import ModelWraper from './model-wraper'
|
|
import Follow from '../popups/follow'
|
|
import Follow from '../popups/follow'
|
|
import { switchProps } from '../popups/setting/evaluat'
|
|
import { switchProps } from '../popups/setting/evaluat'
|
|
|
|
+import iconBack from './icons/icon-back.svg'
|
|
import iconFollowEndBtn from '../popups/follow/icons/icon-followEndBtn.png'
|
|
import iconFollowEndBtn from '../popups/follow/icons/icon-followEndBtn.png'
|
|
import iconEvaluatingEnd from './icons/icon-evaluatingEnd.png'
|
|
import iconEvaluatingEnd from './icons/icon-evaluatingEnd.png'
|
|
import store from 'store'
|
|
import store from 'store'
|
|
-import { useRoute } from 'vue-router'
|
|
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
export const confirmShow: Ref<boolean> = ref(false)
|
|
export const confirmShow: Ref<boolean> = ref(false)
|
|
|
|
|
|
-
|
|
|
|
export const startButtonShow = ref(true)
|
|
export const startButtonShow = ref(true)
|
|
|
|
|
|
export const evaluatingRef: Ref<any> = ref({})
|
|
export const evaluatingRef: Ref<any> = ref({})
|
|
@@ -153,8 +152,9 @@ export default defineComponent({
|
|
|
|
|
|
//根据路由传参设置模式
|
|
//根据路由传参设置模式
|
|
const useRouteSetModelType = () => {
|
|
const useRouteSetModelType = () => {
|
|
- if (route.query.modelType) {
|
|
|
|
- // onChangeModelType(route.query.modelType as IModelType)
|
|
|
|
|
|
+ const modelType: IModelType = route.query.modelType as IModelType
|
|
|
|
+ if (modelType && modelType != 'evaluation') {
|
|
|
|
+ onChangeModelType(modelType)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
@@ -214,10 +214,8 @@ export default defineComponent({
|
|
}
|
|
}
|
|
>
|
|
>
|
|
<div class={styles.leftButton}>
|
|
<div class={styles.leftButton}>
|
|
- {!route.query?.modelType && (
|
|
|
|
- <Button class={[styles.button, styles.backbtn]} onClick={back}>
|
|
|
|
- <ButtonIcon name="icon-back" />
|
|
|
|
- </Button>
|
|
|
|
|
|
+ {route.query?.modelType && !route.query.unitId ? null : (
|
|
|
|
+ <img class={styles.backbtn} src={iconBack} onClick={back} />
|
|
)}
|
|
)}
|
|
<div class={styles.titleWrap}>
|
|
<div class={styles.titleWrap}>
|
|
<div class={styles.title}>{detailState.activeDetail?.musicSheetName}</div>
|
|
<div class={styles.title}>{detailState.activeDetail?.musicSheetName}</div>
|
|
@@ -236,7 +234,8 @@ export default defineComponent({
|
|
}}
|
|
}}
|
|
></Button>
|
|
></Button>
|
|
)}
|
|
)}
|
|
-
|
|
|
|
|
|
+ </Transition>
|
|
|
|
+ <Transition name="finish">
|
|
{followRef?.value?.data.start && (
|
|
{followRef?.value?.data.start && (
|
|
<Button
|
|
<Button
|
|
style={{ backgroundImage: `url(${iconFollowEndBtn})` }}
|
|
style={{ backgroundImage: `url(${iconFollowEndBtn})` }}
|
|
@@ -250,7 +249,7 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
<div class={[styles.moreButton]} style={{ opacity: detailState.initRendered ? 1 : 0 }}>
|
|
<div class={[styles.moreButton]} style={{ opacity: detailState.initRendered ? 1 : 0 }}>
|
|
{/* route.query?.modelType 就不显示模式按钮 */}
|
|
{/* route.query?.modelType 就不显示模式按钮 */}
|
|
- {route.query?.modelType == 'practice' && modelType.value !== 'init' && !detailState.frozenMode && (
|
|
|
|
|
|
+ {!route.query?.modelType && modelType.value !== 'init' && !detailState.frozenMode && (
|
|
<Button
|
|
<Button
|
|
data-step="m1"
|
|
data-step="m1"
|
|
class={[styles.button, styles.hasText]}
|
|
class={[styles.button, styles.hasText]}
|