弹窗增加

This commit is contained in:
daihh
2022-12-23 17:51:37 +08:00
parent b4b3f3e132
commit e58b8f4dca

View File

@@ -162,15 +162,13 @@
<view v-show="conType != 0">
<uni-load-more :status="loadStatus"></uni-load-more>
</view>
<!-- <u-overlay :show="signInShow">
<u-overlay :show="signInShow">
<view style="padding-top: 180upx;">
<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;">
<text @click="signInShow=false" style="position: absolute;right: 15upx;top: 0upx;color: #ffffff;font-size: 40px;">×</text>
<mapelement></mapelement>
<img @click="signInShow=false" :src="`${context}/static/images/dlg202212.png`" style="width:624upx;height: 684upx;">
</view>
</view>
</u-overlay> -->
</u-overlay>
</view>
</template>
<script>
@@ -193,7 +191,7 @@
noDataList: true,//判断接口是否还有数据
msgNum:0,
signInShow:false,
signLocalTimesKey:'xboe_sign_dlg_times',
signLocalTimesKey:'xboe_sign_dlg1_times',
context:this.$config.context,
courseList:[],//课程列表数据
articleList: [],//文章列表数据
@@ -297,22 +295,10 @@
let end = new Date('2022/12/29 00:00:00') //对比时间
if(now.getTime() < end.getTime()){
let times = uni.getStorageSync(this.signLocalTimesKey);
let isNewLogin=uni.getStorageSync("boe_new_login");
//let isNewLogin='1';
if(isNewLogin && isNewLogin=='1'){
if(!times){
if(!times){
this.signInShow = true;//显示
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);
}
}