Files
juipnet/Host/Views/LineList/Index.cshtml

373 lines
17 KiB
Plaintext
Raw Normal View History

2020-11-09 11:02:50 +08:00

@using Hncore.Pass.Vpn.Domain
2020-10-07 20:25:03 +08:00
@using Hncore.Infrastructure.Extension
@using Hncore.Pass.Vpn.Service
@inject ProductService m_ProductService
@model List<ProductRouteEntity>
@{
var pid = this.Context.Request.GetInt("ProductId");
var product = ViewData["products"] as List<ProductEntity>;
var currentProduct =(await m_ProductService.GetById(pid)) ?? new ProductEntity();
var lineTotalCount = Model.Count;
var lineCount = Model.Where(m=>m.Status== "正常").Count();
}
<style>
.blueLine img {
display: inline !important;
}
</style>
2020-11-09 11:02:50 +08:00
<div id="app">
2020-10-07 20:25:03 +08:00
<div class="container-fluid softBg">
<div class="container">
<div class="row">
2020-11-12 14:15:51 +08:00
<div style="float: left;" class="col-lg-3 zxbz">
2020-10-07 20:25:03 +08:00
<img src="~/img/img_xinalu.png">
</div>
2020-11-12 14:15:51 +08:00
<div style="float: left;" class="col-lg-5 searchInput">
<span style="float: left;width:10%;margin-top:60px;height:40px;line-height:200%" class="input-group-addon">全部</span>
<input style="float: left;width:90%;margin-top:60px;border: none;border-radius:0px" class="form-control" v-on:keyup.13="search_all()" type="text" v-model="search_all_data" name="KeyWord" placeholder="输入地区/名称/服务器" />
2020-10-07 20:25:03 +08:00
</div>
<div class="col-lg-2 searchBtn text-left">
2020-11-09 11:02:50 +08:00
<button v-on:click="search_all()" class="btn btn-search">搜索全部</button>
2020-10-07 20:25:03 +08:00
</div>
<div class="col-lg-2">
<span class="btnZhilian cursor"><a asp-index="" asp-controller="article" asp-route-Catalog="4" style="color:white"><img src="~/img/zhilian.png">直连教程</a></span>
</div>
</div>
<div class="row">
<div class="col-lg-3">
</div>
<div class="col-lg-9">
2020-11-30 13:56:19 +08:00
<p class="hot"><img src="~/img/shuju.png">实时总线路:{{count}}条<img src="~/img/shuju.png">实时可用线路:{{use_count}}条 所有线路均支持:【电脑/安卓/苹果】【IP/L2TP/SSTP】</p>
2020-10-07 20:25:03 +08:00
</div>
</div>
</div>
</div>
<div class="container">
2020-11-09 11:02:50 +08:00
<p style="text-align: center;font-size: 25px;color:red;">*****公告*****</p>
<p style="text-align: center;font-size: 20px;">*聚IP商城全线服务器都已更新可显示实时维护状态及服务器负载情况*</p>
<p class="xianluIntro" style="text-align: center;font-size: 25px;">*线路表和账号必须为同一产品才能使用。</p>
2020-10-07 20:25:03 +08:00
<div class="xianlu">
2022-04-07 17:10:08 +08:00
@foreach (var item in product.Where(m => m.Id != 3 && m.Id != 7 && m.Id != 9&& m.Id != 20&& m.Id != 21))
2020-10-07 20:25:03 +08:00
{
2020-11-09 11:02:50 +08:00
<div v-on:click="select_product(@item.Id)" id="product-@item.Id" class="item @(item.Id==pid?"blueLine":"")" a-pid="@item.Id" a-name="@item.Name">
2020-10-07 20:25:03 +08:00
<span>@item.Name</span><img src="~/img/check.png">
</div>
}
</div>
</div>
<div class="container">
2021-03-05 17:28:56 +08:00
<div class="row">
2023-01-13 18:29:25 +08:00
<p class="col-lg-12" style="background-color: #FFFF00; color:#FF0033;text-align:center;margin-bottom:30px;">{{search_field}} ------线路表API接口每5分钟更新一次,禁止频繁访问!http://php-api.juip.com/script/linedata/display.php?product={{product_id}}</p>
2021-04-04 18:13:45 +08:00
<div style="color: red;line-height:50%;" v-if="product_id ==1|| product_id==2">
<p style="text-align:center;">
2021-05-16 10:09:17 +08:00
<span style="font-size: 20px;color:#FF0033;">{{search_field}}</span> 用服务器地址直连用户请注意:
2021-04-04 18:13:45 +08:00
</p>
2021-05-16 10:09:17 +08:00
<p>因电信联通机房限制此协议会存在个别地区直连无法连接电脑客户端和安卓APP不受影响。</p>
2021-04-04 18:13:45 +08:00
<p v-if="product_id ==1">解决方法IP账号后边输入@@特征码例如您的IP账号为zx1234要用sstp直连温州的那账号框就输入zx1234@zjwz服务器输入任意一个全国混拨的服务器则会连接到温州。</p>
<p v-if="product_id==2">解决方法IP账号后边输入@@特征码例如您的IP账号为zx1234要用sstp直连三亚的那账号框就输入zx1234@hnsy服务器输入任意一个全国混拨的服务器则会连接到三亚。</p>
</div>
2021-06-04 18:50:47 +08:00
<div style="color: #CC3333;line-height:50%;text-align:center;font-size:20px;" v-if="product_id ==19">
<p>该产品切记一定要指定一下地区,不然会没有网络</p>
</div>
2021-03-05 17:28:56 +08:00
</div>
2020-10-07 20:25:03 +08:00
<div class="row">
<div class="col-lg-2 miyao">
2020-11-09 11:02:50 +08:00
<p><img src="~/img/miyao.png"> L2TP密钥<b style="color:red;">{{l2tp}}</b></p>
<p><img src="~/img/dk.png"> SSTP端口<b style="color:red;">{{sstp}}</b></p>
2020-10-07 20:25:03 +08:00
</div>
2020-11-12 14:15:51 +08:00
<div class="col-lg-10">
<span style="float: left;width:10%;height:34px;line-height:150%" class="input-group-addon">{{search_field}}</span>
<input style="width:40%" v-on:keyup.13="search_product()" type="text" v-model="search_product_data" name="KeyWord" class="searchDq" placeholder="输入地区/名称/服务器" />
2020-11-09 11:02:50 +08:00
<button v-on:click="search_product()" class="btn btn-primary">搜索当前线路表</button>
<span class="daochu" v-on:click="export_data()" ><img src="~/img/excel.png">导出Excel</span>
2020-10-07 20:25:03 +08:00
</div>
</div>
</div>
2020-11-09 11:02:50 +08:00
<div class="container" >
2020-11-27 12:05:38 +08:00
<table class="table table-striped xianluTable" style="margin-bottom: 10px;">
2020-10-07 20:25:03 +08:00
<tr>
2020-11-09 11:02:50 +08:00
<th>产品</th>
<th>城市</th>
2021-04-28 08:48:56 +08:00
<th v-if="product_id ==19">剩余拨数</th>
<th v-else="product_id ==19">运营商</th>
2020-11-09 11:02:50 +08:00
<th>服务器域名</th>
<th>IP量</th>
<th>实时带宽</th>
<th>维护状态</th>
2021-04-04 18:13:45 +08:00
<th v-if="product_id ==1|| product_id==2">特征码</th>
<th v-else="product_id ==1|| product_id==2">负载状态</th>
2020-10-07 20:25:03 +08:00
</tr>
2020-11-09 11:02:50 +08:00
<tr v-for="site in table_data" :style="(site.online=='故障')?'color:#ec5656;':''">
<td>{{site.name}}</td>
2020-11-12 14:15:51 +08:00
<td colspan="7" v-if="!site.nasname" style="color:#339933;font-weight:bold;">{{site.city}}</td>
<td v-if="site.nasname">{{site.city}}</td>
<td v-if="site.nasname">{{site.supply}}</td>
<td v-if="site.nasname">{{site.nasname}}</td>
<td v-if="site.nasname">{{site.ip}}</td>
<td v-if="site.nasname">{{site.daikuan}}</td>
<td v-if="site.nasname">{{site.online}}</td>
<td v-if="site.nasname">{{site.status}}</td>
2020-11-09 11:02:50 +08:00
</tr>
2020-10-07 20:25:03 +08:00
</table>
2020-11-27 12:05:38 +08:00
<div v-if="!is_all && (product_id == 0)" class="text-center" style="margin-bottom: 20px;">
2020-11-27 14:25:18 +08:00
<button @@click="get_index_data()" type="button" class="btn btn-link" style="font-size:25px;">
------------------------------------------更多
2020-11-27 12:05:38 +08:00
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-chevron-double-down" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M1.646 6.646a.5.5 0 0 1 .708 0L8 12.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
<path fill-rule="evenodd" d="M1.646 2.646a.5.5 0 0 1 .708 0L8 8.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
</svg>
2020-11-27 14:25:18 +08:00
------------------------------------------
2020-11-27 12:05:38 +08:00
</button>
</div>
2020-10-07 20:25:03 +08:00
</div>
2020-11-09 11:02:50 +08:00
</div>
<script src="~/js/vue.js"></script>
2020-10-07 20:25:03 +08:00
<script type="text/javascript">
2020-11-09 11:02:50 +08:00
var app = new Vue({
el: '#app',
data: {
table_data: [],
search_all_data: '',
search_product_data:'',
product_id:0,
l2tp:'',
2020-11-12 14:15:51 +08:00
search_field:'全部',
sstp:'',
count:0,
2020-11-27 12:05:38 +08:00
use_count:0,
all_data: [],
is_all: false
2020-11-09 11:02:50 +08:00
},
computed: {
},
watch: {
},
created: function () {
this.select_product(0);
},
methods: {
select_product(ProductId){
this.product_id = ProductId;
let datalist = [];
2020-11-12 14:15:51 +08:00
let count = 0;
let use_count = 0;
2020-11-09 11:02:50 +08:00
$("div").removeClass("blueLine");
$("#product-"+ProductId).addClass("blueLine");
switch(ProductId){
case 2:
this.l2tp = '123';
2020-11-30 13:56:19 +08:00
this.search_field = '讯连IP';
2020-11-09 11:02:50 +08:00
this.sstp = '1500';
break;
case 4:
this.l2tp = '123456';
2020-11-30 13:56:19 +08:00
this.search_field = '金瑞IP';
2020-11-09 11:02:50 +08:00
this.sstp = '4438';
break;
case 5:
2021-08-14 09:38:12 +08:00
this.l2tp = '123';
2020-11-30 13:56:19 +08:00
this.search_field = '老鹰IP';
2021-08-20 16:45:19 +08:00
this.sstp = '4430';
2020-11-09 11:02:50 +08:00
break;
case 6:
this.l2tp = '123';
2020-11-30 13:56:19 +08:00
this.search_field = '先锋IP';
2020-11-09 11:02:50 +08:00
this.sstp = '6665';
break;
case 10:
this.l2tp = '88';
this.search_field = '无限-单窗口单ip';
this.sstp = '';
break;
case 13:
this.l2tp = '123456';
2020-11-30 13:56:19 +08:00
this.search_field = '极客IP';
2020-11-09 11:02:50 +08:00
this.sstp = '4433';
break;
2021-01-25 10:49:33 +08:00
case 17:
this.l2tp = '123456';
this.search_field = '西瓜IP';
this.sstp = '4433';
break;
2020-11-09 11:02:50 +08:00
case 14:
2021-08-05 14:25:17 +08:00
this.l2tp = '1234';
2020-11-30 13:56:19 +08:00
this.search_field = '天天IP';
2020-11-09 11:02:50 +08:00
this.sstp = '4430';
break;
case 15:
this.l2tp = '66';
this.search_field = '共享IP';
this.sstp = '888';
break;
case 16:
this.l2tp = '8899';
this.search_field = '实惠IP';
this.sstp = '不支持';
break;
case 1:
this.l2tp = '888888';
2020-11-30 13:56:19 +08:00
this.search_field = '强子IP';
2020-11-09 11:02:50 +08:00
this.sstp = '1500';
break;
case 8:
this.l2tp = '88';
2020-11-30 13:56:19 +08:00
this.search_field = '星星IP';
2020-11-09 11:02:50 +08:00
this.sstp = '6666';
break;
2021-01-27 14:33:21 +08:00
case 18:
2021-09-03 13:54:44 +08:00
this.l2tp = '8899';
2021-01-27 14:33:21 +08:00
this.search_field = '蘑菇IP';
this.sstp = '4430';
break;
2022-04-19 16:50:04 +08:00
case 22:
this.l2tp = '888888';
2021-04-28 08:48:56 +08:00
this.search_field = '火狐IP';
2022-04-19 16:50:04 +08:00
this.sstp = '5908';
2021-04-28 08:48:56 +08:00
break;
2022-04-29 16:44:02 +08:00
case 23:
this.l2tp = '888888';
this.search_field = '云牛IP';
this.sstp = '5908';
break;
2020-11-09 11:02:50 +08:00
}
$.ajax({
type: 'GET',
url: 'http://php-api.juip.com/script/linedata/display.php?product=' + ProductId,
dataType: "json",
async:false,
success: function (res) {
datalist = res.data;
2020-11-12 14:15:51 +08:00
count = res.count;
use_count = res.use_count;
2020-11-09 11:02:50 +08:00
}
});
2020-11-27 12:05:38 +08:00
if (ProductId == 0){
this.all_data = datalist;
let now_data = [];
for (let i = 0;i<50;i++){
now_data[i] = datalist[i];
}
this.table_data = now_data;
} else {
this.table_data = datalist;
}
2020-11-12 14:15:51 +08:00
this.count = count;
if(ProductId != 16){
this.use_count = use_count;
} else {
this.use_count = count;
}
2020-11-09 11:02:50 +08:00
},
2020-11-27 12:05:38 +08:00
get_index_data(){
this.table_data = this.all_data;
this.is_all = true;
},
2020-11-09 11:02:50 +08:00
search_all(){
2020-11-27 14:39:57 +08:00
this.is_all = true;
2020-11-12 14:15:51 +08:00
if(!this.search_all_data){
this.select_product(0);
return;
}
2020-11-09 11:02:50 +08:00
$.ajax({
type: 'GET',
url: 'http://php-api.juip.com/script/linedata/search.php?type=1&info=' + this.search_all_data,
dataType: "json",
async:false,
success: function (res) {
datalist = res.data;
}
});
this.table_data = datalist;
},
search_product(){
2020-11-12 14:15:51 +08:00
if(!this.search_product_data){
this.select_product(this.product_id);
return;
}
2020-11-09 11:02:50 +08:00
$.ajax({
type: 'GET',
url: 'http://php-api.juip.com/script/linedata/search.php?type=0&productid='+this.product_id+'&info=' + this.search_product_data,
dataType: "json",
async:false,
success: function (res) {
datalist = res.data;
}
});
this.table_data = datalist;
},
export_data(){
switch(this.product_id){
case 0:
self.location.href='http://php-api.juip.com/script/linedata/data/download/all.csv';
break;
case 2:
self.location.href='http://php-api.juip.com/script/linedata/data/download/xunlian.csv';
break;
case 4:
self.location.href='http://php-api.juip.com/script/linedata/data/download/jinrui.csv';
break;
case 5:
self.location.href='http://php-api.juip.com/script/linedata/data/download/laoying.csv';
break;
case 6:
self.location.href='http://php-api.juip.com/script/linedata/data/download/xianfeng.csv';
break;
case 10:
self.location.href='http://php-api.juip.com/script/linedata/data/download/wuxian.csv';
break;
case 13:
self.location.href='http://php-api.juip.com/script/linedata/data/download/jike.csv';
break;
2021-02-02 10:28:36 +08:00
case 17:
self.location.href='http://php-api.juip.com/script/linedata/data/download/xigua.csv';
break;
case 18:
self.location.href='http://php-api.juip.com/script/linedata/data/download/mogu.csv';
break;
2020-11-09 11:02:50 +08:00
case 14:
self.location.href='http://php-api.juip.com/script/linedata/data/download/tiantian.csv';
break;
case 15:
self.location.href='http://php-api.juip.com/script/linedata/data/download/gongxiang.csv';
break;
case 16:
self.location.href='http://php-api.juip.com/script/linedata/data/download/shihui.csv';
break;
case 1:
self.location.href='http://php-api.juip.com/script/linedata/data/download/qiangzi.csv';
break;
case 8:
self.location.href='http://php-api.juip.com/script/linedata/data/download/xingxing.csv';
break;
2021-02-02 09:49:49 +08:00
case 17:
self.location.href='http://php-api.juip.com/script/linedata/data/download/xigua.csv';
break;
case 18:
self.location.href='http://php-api.juip.com/script/linedata/data/download/mogu.csv';
break;
2022-04-19 16:50:04 +08:00
case 22:
2021-04-28 08:48:56 +08:00
self.location.href='http://php-api.juip.com/script/linedata/data/download/huohu.csv';
break;
2023-01-13 18:29:25 +08:00
case 23:
self.location.href='http://php-api.juip.com/script/linedata/data/download/yunniu.csv';
break;
2020-11-09 11:02:50 +08:00
}
}
}
})
2020-10-07 20:25:03 +08:00
</script>