mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +08:00
弹窗增加
This commit is contained in:
@@ -162,15 +162,13 @@
|
|||||||
<view v-show="conType != 0">
|
<view v-show="conType != 0">
|
||||||
<uni-load-more :status="loadStatus"></uni-load-more>
|
<uni-load-more :status="loadStatus"></uni-load-more>
|
||||||
</view>
|
</view>
|
||||||
<!-- <u-overlay :show="signInShow">
|
<u-overlay :show="signInShow">
|
||||||
<view style="padding-top: 180upx;">
|
<view style="padding-top: 180upx;">
|
||||||
<view style="margin-top: 180upx;width:624upx;margin: 0px auto;position: relative;">
|
<view style="margin-top: 180upx;width:624upx;margin: 0px auto;position: relative;">
|
||||||
<img usemap="#HotMap" :src="`${context}/static/images/dlg.png`" style="width:624upx;height: 864upx;">
|
<img @click="signInShow=false" :src="`${context}/static/images/dlg202212.png`" style="width:624upx;height: 684upx;">
|
||||||
<text @click="signInShow=false" style="position: absolute;right: 15upx;top: 0upx;color: #ffffff;font-size: 40px;">×</text>
|
|
||||||
<mapelement></mapelement>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-overlay> -->
|
</u-overlay>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -193,7 +191,7 @@
|
|||||||
noDataList: true,//判断接口是否还有数据
|
noDataList: true,//判断接口是否还有数据
|
||||||
msgNum:0,
|
msgNum:0,
|
||||||
signInShow:false,
|
signInShow:false,
|
||||||
signLocalTimesKey:'xboe_sign_dlg_times',
|
signLocalTimesKey:'xboe_sign_dlg1_times',
|
||||||
context:this.$config.context,
|
context:this.$config.context,
|
||||||
courseList:[],//课程列表数据
|
courseList:[],//课程列表数据
|
||||||
articleList: [],//文章列表数据
|
articleList: [],//文章列表数据
|
||||||
@@ -297,22 +295,10 @@
|
|||||||
let end = new Date('2022/12/29 00:00:00') //对比时间
|
let end = new Date('2022/12/29 00:00:00') //对比时间
|
||||||
if(now.getTime() < end.getTime()){
|
if(now.getTime() < end.getTime()){
|
||||||
let times = uni.getStorageSync(this.signLocalTimesKey);
|
let times = uni.getStorageSync(this.signLocalTimesKey);
|
||||||
let isNewLogin=uni.getStorageSync("boe_new_login");
|
if(!times){
|
||||||
//let isNewLogin='1';
|
|
||||||
if(isNewLogin && isNewLogin=='1'){
|
|
||||||
if(!times){
|
|
||||||
this.signInShow = true;//显示
|
this.signInShow = true;//显示
|
||||||
uni.setStorageSync(this.signLocalTimesKey,1);
|
uni.setStorageSync(this.signLocalTimesKey,1);
|
||||||
}else{
|
|
||||||
//console.log(times,'times');
|
|
||||||
let intTimes=parseInt(times);
|
|
||||||
if(intTimes<3){
|
|
||||||
this.signInShow = true;//显示
|
|
||||||
intTimes++;
|
|
||||||
uni.setStorageSync(this.signLocalTimesKey,intTimes);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
uni.setStorageSync("boe_new_login",0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user