import { Button, Popup } from 'vant' import { PropType, defineComponent, onMounted, ref, watch } from 'vue' import styles from './index.module.less' import { postMessage } from '@/helpers/native-message' import { getCodeBaseUrl } from '@/helpers/utils' import { ElButton, ElScrollbar } from 'element-plus' export default defineComponent({ name: 'message-tip', props: { type: { type: String as PropType<'upload' | 'error' | 'origin'>, default: 'upload' }, title: { type: String, default: '温馨提示' }, showButton: { type: Boolean, default: true }, buttonText: { type: String, default: '我已知晓' } }, emits: ['confirm'], setup(props, { emit }) { const showPopup = ref(false) // props.title, props.type // watch( // () => [props.title, props.type], // () => {} // ) // 详情 const onDetail = (type: string) => { let url = `${getCodeBaseUrl('/teacher')}/#/registerProtocol` if (type === 'question') { url = `${getCodeBaseUrl('/teacher')}/muic-standard/question.html` } else if (type === 'music') { url = `${getCodeBaseUrl('/teacher')}/muic-standard/index.html` } window.open(url) } return () => (
{props.title}
注意事项:
曲谱审核标准: