强子迅连停用

This commit is contained in:
“wanyongkang”
2024-08-12 14:43:48 +08:00
parent 1a067bdc2c
commit c4cfb8888e
7 changed files with 265 additions and 10 deletions

View File

@@ -745,6 +745,42 @@
</div><!-- /.modal -->
</div>
<div class="modal fade" id="product_recommend_2" tabindex="-1" role="dialog" aria-labelledby="myModalLabelproduct" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabelproduct">
产品推荐
</h4>
</div>
<div class="modal-body">
<p style="font-weight:bold;color: red;">强子IP即将停运IP资源池将加进极狐IP。</p>
<p style="font-weight:bold;">极狐IP聚IP最好的动态产品260城市纯净IP三网混合IP稳定极速视频直播无压力且有不同带宽可选</p>
<p style="font-weight:bold;">现推广期天卡1毛体验周送1天月送1周双月送1月</p>
<p style="font-weight:bold;">承诺不好用48小时内免费退款</p>
<div class="text-right">
<label>
<input id="recommendchechk_2" type="checkbox"> 7天内不再提示
</label>
</div>
</div>
<div class="modal-footer">
<a href="/product/index" type="button" class="btn btn-primary" >
查看
</a>
<button type="button" class="btn btn-warning" onclick="buyrecommendfunc_2()" data-dismiss="modal">
忽略
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<script src="~/js/vue.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/css/bootstrap-select.min.css">
@@ -1103,8 +1139,14 @@
localStorage.setItem('buyrecommend', new Date().getTime());
}
}
function buyrecommendfunc_2() {
var isChecked = $('#recommendchechk_2').is(':checked');
if (isChecked) {
localStorage.setItem('buyrecommend_2', new Date().getTime());
}
}
function onrecommend(id) {
if (id != 29 && id != 28 && id != 25 && id != 22 && id != 21 && id != 20 && id != 18 ) {
if (id != 29 && id != 28 && id != 22 && id != 21 && id != 20 && id != 18 && id != 1 ) {
var lastClosedTime = localStorage.getItem('buyrecommend');
if (!lastClosedTime) {
// 如果之前没有关闭时间记录,则显示提示框
@@ -1119,6 +1161,21 @@
}
}
}
if (id == 1) {
var lastClosedTime = localStorage.getItem('buyrecommend_2');
if (!lastClosedTime) {
// 如果之前没有关闭时间记录,则显示提示框
$('#product_recommend_2').modal('show')
} else {
// 如果有关闭时间记录则检查是否超过7天
var sevenDaysInMillis = 7 * 24 * 60 * 60 * 1000; // 7天的毫秒数
var currentTime = new Date().getTime();
if (currentTime - lastClosedTime > sevenDaysInMillis) {
// 超过7天显示提示框
$('#product_recommend_2').modal('show')
}
}
}
}
$(function(){
setTimeout(function(){