task#13769,新签培训全部已完成弹框更换

This commit is contained in:
2024-05-16 11:34:50 +08:00
parent a6156be569
commit f8432ffbba

View File

@ -3,7 +3,7 @@
<div class="navBar"> <div class="navBar">
<van-nav-bar title="新人培训" :border="false" :fixed="true" :safe-area-inset-top="true"> <van-nav-bar title="新人培训" :border="false" :fixed="true" :safe-area-inset-top="true">
<template slot="left" v-if="isFinished"> <template slot="left" v-if="isFinished">
<van-icon @click="allProcessed" name="checked" color="#37ec37" size="20"/> <van-icon name="checked" color="#37ec37" size="20"/>
</template> </template>
</van-nav-bar> </van-nav-bar>
</div> </div>
@ -41,11 +41,24 @@
</div> </div>
</div> </div>
<div class="poupWrap" v-if="isFinished">
<div class="container">
<div class="con">
<div class="title">提示</div>
<div class="content">恭喜您您已经全部完成培训现在您可以正常使用我们的app请前往体验</div>
<div class="line"></div>
<div class="btnWrap">
<div class="nextBtn" @click="goApp">前往</div>
</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import { Dialog } from 'vant'; // import { Dialog } from 'vant';
import {myMixins} from "@/utils/myMixins" import {myMixins} from "@/utils/myMixins"
import {pageList} from "@/api/mine" import {pageList} from "@/api/mine"
@ -95,7 +108,7 @@ export default {
if(aaa){ if(aaa){
this.showPoup=false this.showPoup=false
this.isFinished=true this.isFinished=true
await this.allProcessed() // await this.allProcessed()
} }
if(res.data.length === 0){ if(res.data.length === 0){
this.showEmpty = true this.showEmpty = true
@ -108,7 +121,17 @@ export default {
this.keyword= '', this.keyword= '',
this.getList() this.getList()
}, },
allProcessed(){ goApp(){
let data = {"action":"goBack","params":""}
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isiOS){
window.webkit.messageHandlers.nativeObject.postMessage(data);
}else {
window.android.sendMessage("goBack");
}
},
/*allProcessed(){
Dialog.confirm({ Dialog.confirm({
title: '提示', title: '提示',
message: '恭喜您您已经全部完成培训现在您可以正常使用我们的app请前往体验。', message: '恭喜您您已经全部完成培训现在您可以正常使用我们的app请前往体验。',
@ -129,7 +152,7 @@ export default {
// on cancel // on cancel
}); });
console.log("全部处理") console.log("全部处理")
}, },*/
} }
} }
</script> </script>