|
@@ -1,10 +1,11 @@
|
|
-import { Button, Cell, Icon, Popup } from 'vant'
|
|
|
|
-import { defineComponent, reactive } from 'vue'
|
|
|
|
|
|
+import { Button, Cell, Icon, Image, Popup, Swipe, SwipeItem, Tag } from 'vant'
|
|
|
|
+import { defineComponent, reactive, ref } from 'vue'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import NoticeStart from '../model/notice-start'
|
|
import NoticeStart from '../model/notice-start'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
import iconQuestionNums from '../images/icon-question-nums.png'
|
|
import iconQuestionNums from '../images/icon-question-nums.png'
|
|
import iconCountDown from '../images/icon-count-down.png'
|
|
import iconCountDown from '../images/icon-count-down.png'
|
|
|
|
+import iconButtonList from '../images/icon-button-list.png'
|
|
import OSticky from '@/components/o-sticky'
|
|
import OSticky from '@/components/o-sticky'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -12,6 +13,7 @@ export default defineComponent({
|
|
setup() {
|
|
setup() {
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
|
+ const swipeRef = ref()
|
|
const state = reactive({
|
|
const state = reactive({
|
|
visiableNotice: false
|
|
visiableNotice: false
|
|
})
|
|
})
|
|
@@ -35,11 +37,36 @@ export default defineComponent({
|
|
}}
|
|
}}
|
|
</Cell>
|
|
</Cell>
|
|
|
|
|
|
|
|
+ <Swipe loop={false} showIndicators={false} ref={swipeRef} duration={300}>
|
|
|
|
+ <SwipeItem>
|
|
|
|
+ <div class={styles.unitSubject}>
|
|
|
|
+ <div class={styles.unitSubjectTitle}>
|
|
|
|
+ 1、选出与方框内音符时值相同的节奏阶段 <span class={styles.unitScore}>(5分)</span>
|
|
|
|
+ <Tag type="primary">单选题</Tag>
|
|
|
|
+ </div>
|
|
|
|
+ <Image src="https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/dbb27307d428424c8efb9f26032cfa1a_mergeImage.png" />
|
|
|
|
+ </div>
|
|
|
|
+ </SwipeItem>
|
|
|
|
+ <SwipeItem>
|
|
|
|
+ <div class={styles.unitSubject}>
|
|
|
|
+ <Image src="https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/dbb27307d428424c8efb9f26032cfa1a_mergeImage.png" />
|
|
|
|
+ </div>
|
|
|
|
+ </SwipeItem>
|
|
|
|
+ </Swipe>
|
|
|
|
+
|
|
<OSticky position="bottom" background="white">
|
|
<OSticky position="bottom" background="white">
|
|
- <div class={['btnGroup']}>
|
|
|
|
- <Button block round type="primary">
|
|
|
|
|
|
+ <div class={['btnGroup btnMore']}>
|
|
|
|
+ <Button
|
|
|
|
+ block
|
|
|
|
+ round
|
|
|
|
+ type="primary"
|
|
|
|
+ onClick={() => {
|
|
|
|
+ swipeRef.value.next()
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
下一题
|
|
下一题
|
|
</Button>
|
|
</Button>
|
|
|
|
+ <Image src={iconButtonList} class={[styles.wapList, 'van-haptics-feedback']} />
|
|
</div>
|
|
</div>
|
|
</OSticky>
|
|
</OSticky>
|
|
|
|
|