强子迅连停用

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(){

View File

@@ -157,6 +157,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 type="text/javascript">
function buyrecommendfunc() {
@@ -165,9 +201,15 @@
localStorage.setItem('rebuyrecommend', new Date().getTime());
}
}
function buyrecommendfunc_2() {
var isChecked = $('#recommendchechk_2').is(':checked');
if (isChecked) {
localStorage.setItem('buyrecommend_2', new Date().getTime());
}
}
var id = getUrlParam('productId')
if (id != 29 && id != 28 && id != 25 && id != 22 && id != 21 && id != 20 && id != 18 ) {
var lastClosedTime = localStorage.getItem('rebuyrecommend');
if (id != 29 && id != 28 && id != 22 && id != 21 && id != 20 && id != 18 && id != 1 ) {
var lastClosedTime = localStorage.getItem('buyrecommend');
if (!lastClosedTime) {
// 如果之前没有关闭时间记录,则显示提示框
$('#product_recommend').modal('show')
@@ -181,6 +223,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')
}
}
}
//获取url中的参数
function getUrlParam(name) {

View File

@@ -138,7 +138,7 @@
</tr>
} else {
<tr>
<td><input type="checkbox" class="selectAccount" value="@item.Account" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" style="width: 0.4rem;height: 0.4rem;" /></td>
<td><input type="checkbox" class="selectAccount" value="@item.Account" a-package="@(item.PackageName)" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" style="width: 0.4rem;height: 0.4rem;" /></td>
<td>@item.ProductName/@item.PackageName</td>
<td> <a style="cursor:pointer;" v-on:click="copyText('@item.Account')">复制</a><br>@item.Pwd <a style="cursor:pointer;" v-on:click="copyText('@item.Pwd')">复制</a></td>
<td>

View File

@@ -499,6 +499,23 @@
<p class="youhuiNew" style="color: #0066CC;margin:0;padding:0;">本产品已升级更新为极狐地区超全涵盖全国260个城市IP高纯净度超速且稳定且每个城市都是三网混合更真实有效 现活动推广期周卡送1天月卡送1周双月送1个月</p>
}
@if(item.Product.Id == 1){
<p class="youhuiNew" style="color: red;margin:0;padding:0;">强子IP即将停运IP资源池将加进极狐IP。</p>
<p class="youhuiNew" style="color: #0066CC;">极狐IP聚IP最好的动态产品260城市纯净IP三网混合IP稳定极速视频直播无压力且有不同带宽可选
<br>现推广期天卡1毛体验周送1天月送1周双月送1月
承诺不好用48小时内免费退款</p>
}
@if(item.Product.Id == 2){
<p class="youhuiNew" style="color: red;margin:0;padding:0;">迅连IP即将停运IP资源池将加进极狐IP。</p>
<p class="youhuiNew" style="color: #0066CC;">极狐IP聚IP最好的动态产品260城市纯净IP三网混合IP稳定极速视频直播无压力且有不同带宽可选
<br>现推广期天卡1毛体验周送1天月送1周双月送1月
承诺不好用48小时内免费退款</p>
}
@if(item.Product.Id == 25){
<p class="youhuiNew" style="color: red;margin:0;padding:0;">强子静态IP即将停运已开通账号不受影响可继续使用。需要购买静态请开通水滴或火狐。</p>
}
@if(item.Product.Id == 20){
<p class="youhuiNew" style="color: #0066CC;margin:0;padding:0;">购买后请联系客服授权登录<br>仅电脑支持单窗口单ip手机端为全局代理需求几个窗口就买几个连接数</p>
@@ -1121,6 +1138,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>
@section Scripts{
@@ -1492,9 +1545,15 @@
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 select(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) {
// 如果之前没有关闭时间记录,则显示提示框
@@ -1509,6 +1568,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')
}
}
}
var el = "#p" + id;
var packageBox = "#box" + id;
$(".packagebox").hide();

View File

@@ -519,6 +519,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>
@if(!string.IsNullOrWhiteSpace(ViewBag.errorTip))
{
@@ -537,9 +573,15 @@
localStorage.setItem('rebuyrecommend', new Date().getTime());
}
}
function buyrecommendfunc_2() {
var isChecked = $('#recommendchechk_2').is(':checked');
if (isChecked) {
localStorage.setItem('buyrecommend_2', new Date().getTime());
}
}
var id = getUrlParam('productId')
if (id != 29 && id != 28 && id != 25 && id != 22 && id != 21 && id != 20 && id != 18 ) {
var lastClosedTime = localStorage.getItem('rebuyrecommend');
if (id != 29 && id != 28 && id != 22 && id != 21 && id != 20 && id != 18 && id != 1 ) {
var lastClosedTime = localStorage.getItem('buyrecommend');
if (!lastClosedTime) {
// 如果之前没有关闭时间记录,则显示提示框
$('#product_recommend').modal('show')
@@ -553,7 +595,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')
}
}
}
//获取url中的参数
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象

View File

@@ -406,7 +406,7 @@
</tr>
} else {
<tr>
<td><input type="checkbox" class="selectAccount" value="@item.Account" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" /></td>
<td><input type="checkbox" class="selectAccount" value="@item.Account" a-package="@(item.PackageName)" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" /></td>
<td>@item.CreateTime.ToString("yyyy.MM.dd")</td>
<td>@item.ProductName</td>
<td>@item.PackageName</td>

View File

@@ -252,6 +252,11 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
{
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "本产品已升级更新为极狐地区超全涵盖全国260个城市IP高纯净度超速且稳定且每个城市都是三网混合更真实有效 现活动推广期周卡送1天月卡送1周双月送1个月");
}
if (packageEntity.ProductId == 1 || packageEntity.ProductId == 25)
{
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "强子IP即将停运IP资源池将加进极狐IP。极狐IP地区超全涵盖全国260个城市IP高纯净度超速且稳定且每个城市都是三网混合更真实有效 现活动推广期周卡送1天月卡送1周双月送1个月");
}
// if (productEntity.Status == 0)
// {
// return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "产品不存在或者下架");
@@ -1308,6 +1313,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
return new ApiResult(ResultCode.C_Illegal_Operation, "此类帐号不允许退款");
}
if (accountInfo.ProductId == 1 || accountInfo.ProductId == 2 || accountInfo.ProductId == 25)
{
return new ApiResult(ResultCode.C_Illegal_Operation, "该类型账号不允许退款!");
}
if (accountInfo == null)
{
return new ApiResult(ResultCode.C_Illegal_Operation, "账户不存在");