|
|
@@ -58,6 +58,7 @@
|
|
|
<div class="pac_s_i_list">
|
|
|
<div
|
|
|
:class="['pac_s_i_l_item', chapter == index ? 'pac_s_i_l_itemActive' : '',[0,2].includes(index)?'pac_s_i_l_itemDisabled':'']"
|
|
|
+ style="justify-content: flex-start;padding-left: 2px;"
|
|
|
v-for="(item, index) in classList"
|
|
|
:key="index"
|
|
|
@click.stop="changeChapter(index)"
|
|
|
@@ -697,14 +698,20 @@ export default {
|
|
|
getFirstEnterStatus(){
|
|
|
let data = window.localStorage.getItem('showDialog');
|
|
|
if(data){
|
|
|
- if(data==1){
|
|
|
+ data = JSON.parse(data)
|
|
|
+ if(data.type==1){
|
|
|
+ if((new Date().getTime()-data.time)<=(1000*60)){
|
|
|
+ return window.localStorage.removeItem('showDialog')
|
|
|
+ };
|
|
|
this.dialogMessage = `同學仔,歡迎返嚟!請問你想要繼續學習,定係想同我傾吓偈呢?`
|
|
|
this.showDialog = true;
|
|
|
- window.localStorage.removeItem('showDialog')
|
|
|
- }else if(data==2){
|
|
|
+ }else if(data.type==2){
|
|
|
+ if((new Date().getTime()-data.time)<=(1000*60)){
|
|
|
+ return window.localStorage.removeItem('showDialog')
|
|
|
+ };
|
|
|
this.dialogMessage = `同學仔,歡迎返嚟!請問你想要繼續學習,定係想同我傾吓偈呢?`
|
|
|
this.showDialog = true;
|
|
|
- window.localStorage.removeItem('showDialog')
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}else{
|