|
@@ -8,6 +8,9 @@ import PwdLogin from './components/pwdLogin';
|
|
|
import { NTabs, NTabPane, useDialog, NModal, NButton, NSpace } from 'naive-ui';
|
|
|
import styles from './index.module.less';
|
|
|
import ForgotPassword from './components/forgotPassword';
|
|
|
+import moveTop from './images/moveTopBg.png'
|
|
|
+import dingPng from './images/ding.png'
|
|
|
+import closeAble from './images/closeAble.png'
|
|
|
export default defineComponent({
|
|
|
name: 'login-page',
|
|
|
setup() {
|
|
@@ -15,9 +18,9 @@ export default defineComponent({
|
|
|
const NavsValue = ref('pwdLogin');
|
|
|
const pwdLoginRef = ref();
|
|
|
const forgotPasswordRef = ref();
|
|
|
- const popEvent = ref();
|
|
|
+ const popEvent = ref()
|
|
|
const dialog = useDialog();
|
|
|
- const showModalMask = ref()
|
|
|
+ const showModalMask = ref(false)
|
|
|
const checkInstall = async (event: any) => {
|
|
|
event.preventDefault();
|
|
|
console.log('checkInstall', event)
|
|
@@ -47,23 +50,21 @@ export default defineComponent({
|
|
|
console.log(btn)
|
|
|
if(btn){
|
|
|
btn.addEventListener('click', () => {
|
|
|
-
|
|
|
console.log(popEvent.value )
|
|
|
if( !popEvent.value ) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
popEvent.value.prompt();
|
|
|
-
|
|
|
popEvent.value.userChoice.then( (choiceResult:any) => {
|
|
|
if (choiceResult.outcome === 'accepted') {
|
|
|
console.log('用户已同意添加到桌面')
|
|
|
+ showModalMask.value = false;
|
|
|
} else {
|
|
|
console.log('用户已取消添加到桌面')
|
|
|
- // showModalMask.value = false;
|
|
|
+ showModalMask.value = false;
|
|
|
}
|
|
|
})
|
|
|
- showModalMask.value = false;
|
|
|
})
|
|
|
}
|
|
|
},500)
|
|
@@ -138,9 +139,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
<NModal
|
|
|
v-model:show={showModalMask.value}
|
|
|
- class={['modalTitle background', styles.showModalTone]}
|
|
|
- preset="card"
|
|
|
- title={'提示'}>
|
|
|
+ >
|
|
|
{/* <div
|
|
|
onClick={() => {
|
|
|
showModalTone.value = false;
|
|
@@ -150,10 +149,16 @@ export default defineComponent({
|
|
|
previewDisabled
|
|
|
class={styles.beatImage}></NImage>
|
|
|
</div> */}
|
|
|
- <div class={styles.studentRemove}>
|
|
|
- <p>检测到您尚未从音乐数字课堂应用程序打开</p>
|
|
|
+ <div class={styles.downMove}>
|
|
|
+ <img src={dingPng} class={styles.dingPng} alt="" />
|
|
|
+ <img src={moveTop} class={styles.downMoveBg} alt="" />
|
|
|
+ <img src={closeAble} class={styles.closeAble} onClick={()=>{
|
|
|
+ showModalMask.value = false
|
|
|
+ }} alt="" />
|
|
|
+ <h2>温馨提示</h2>
|
|
|
+ <p>检测到您尚未安装“音乐数字课堂”应用程序,为了更好的使用体验,是否立即下载?</p>
|
|
|
{/* <NButton>确定</NButton> */}
|
|
|
- <NSpace style={{ padding: '20px 0 0 0' }} justify="center">
|
|
|
+ <NSpace style={{ padding: '25px 0 0 0' }} justify="center">
|
|
|
<NButton
|
|
|
{...{id
|
|
|
:'submitBtn'}}
|
|
@@ -162,7 +167,7 @@ export default defineComponent({
|
|
|
type="primary"
|
|
|
|
|
|
>
|
|
|
- 确定
|
|
|
+ 立即下载
|
|
|
</NButton>
|
|
|
</NSpace>
|
|
|
</div>
|