2020-10-07 20:25:03 +08:00
|
|
|
|
@using Hncore.Infrastructure.Data
|
|
|
|
|
|
@using Hncore.Pass.Vpn.Domain
|
|
|
|
|
|
@using Hncore.Infrastructure.Extension
|
|
|
|
|
|
@using ViewComponents
|
|
|
|
|
|
@model List<ProductAccountEntity>
|
|
|
|
|
|
@{
|
|
|
|
|
|
Layout = "_UserLayout";
|
|
|
|
|
|
}
|
|
|
|
|
|
<script>
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
2021-01-05 21:01:20 +08:00
|
|
|
|
|
2020-12-13 12:53:37 +08:00
|
|
|
|
|
2020-10-07 20:25:03 +08:00
|
|
|
|
$('#myTabs a').click(function (e) {
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
$(this).tab('show')
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//$(".edit").click(function () {
|
|
|
|
|
|
// $(".editList").show();
|
|
|
|
|
|
//});
|
|
|
|
|
|
$(".quxiao").click(function () {
|
|
|
|
|
|
$(".editList").hide();
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(".laozhanghao").click(function () {
|
|
|
|
|
|
$(".zhanghaoCon").show();
|
|
|
|
|
|
});
|
|
|
|
|
|
$(".btnClose").click(function () {
|
|
|
|
|
|
$(".zhanghaoCon").hide();
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
.zhanghaoCon {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
|
height: 455px;
|
|
|
|
|
|
left: 50%;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
margin-left: -200px;
|
|
|
|
|
|
margin-top: -220px;
|
|
|
|
|
|
z-index: 3;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
box-shadow: 0px 6px 8px 6px #ccc;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
padding: 30px;
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
.citylabel {
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
width: 160px;
|
|
|
|
|
|
height: 35px;
|
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
|
padding-top: 5px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
border: solid 1px #ccc;
|
|
|
|
|
|
}
|
|
|
|
|
|
.province{
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
2020-10-07 20:25:03 +08:00
|
|
|
|
|
|
|
|
|
|
.online {
|
|
|
|
|
|
position: fixed;
|
2021-03-27 19:29:08 +08:00
|
|
|
|
left: 350px;
|
|
|
|
|
|
width: 1000px;
|
2021-03-30 14:37:23 +08:00
|
|
|
|
height: 710px;
|
2020-10-07 20:25:03 +08:00
|
|
|
|
top: 100px;
|
|
|
|
|
|
z-index: 3;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
box-shadow: 0px 6px 8px 6px #ccc;
|
|
|
|
|
|
padding: 30px;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.editList {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
|
height: 240px;
|
|
|
|
|
|
left: 50%;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
margin-left: -200px;
|
|
|
|
|
|
margin-top: -120px;
|
|
|
|
|
|
z-index: 3;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
box-shadow: 0px 6px 8px 6px #ccc;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
padding: 30px;
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.editList form, .zhanghaoCon form, .tab-content {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.activetit {
|
|
|
|
|
|
border-bottom: 1px solid #3157ad !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btnClose {
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 10px;
|
|
|
|
|
|
right: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btnOnlineClose {
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 10px;
|
|
|
|
|
|
right: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
form .row {
|
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
line-height: 60px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
form .row input {
|
|
|
|
|
|
height: 35px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
form .row select {
|
|
|
|
|
|
width: 160px;
|
|
|
|
|
|
height: 35px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btnClose {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input[type=checkbox] {
|
|
|
|
|
|
width: 17px;
|
|
|
|
|
|
height: 17px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.blueT{
|
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
[v-cloak] {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
<div id="app">
|
|
|
|
|
|
<div class="zhanghaoCon">
|
|
|
|
|
|
<img src="~/img/close.png" class="btnClose" />
|
|
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
|
|
<ul class="nav nav-tabs" role="tablist" style="margin-top:20px;border-bottom:none;">
|
|
|
|
|
|
<li role="presentation" class="activetit"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">单个认证</a></li>
|
|
|
|
|
|
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">批量认证</a></li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Tab panes -->
|
|
|
|
|
|
<div class="tab-content" style="margin-top:40px;">
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="home">
|
|
|
|
|
|
<form>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">选择产品:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<select v-model="oneAuthModel.ProductId">
|
|
|
|
|
|
<option v-for="item in productWithPackage" :value="item.Product.Id">{{item.Product.Name}}</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">输入账号:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<input type="text" v-model="oneAuthModel.Account" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">验证密码:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<input type="text" v-model="oneAuthModel.Pwd" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p v-if="oneAuthLoading" class="text-center" style="margin:8px;color:red;">认证中,请耐心等待...</p>
|
|
|
|
|
|
<p class="text-center" style="margin-top:20px"><button type="button" class="btn btn-primary" v-on:click="accountOneAuth">认证账号</button></p>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="profile">
|
|
|
|
|
|
<form>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">选择产品:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<select v-model="mutilAuthModel.ProductId">
|
|
|
|
|
|
<option v-for="item in productWithPackage" :value="item.Product.Id">{{item.Product.Name}}</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">账号前缀:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<input type="text" v-model="mutilAuthModel.Account" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">开始数:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<input type="number" v-model="mutilAuthModel.StartNum" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">认证个数:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<input type="number" v-model="mutilAuthModel.Count" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-3">验证密码:</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<input type="text" v-model="mutilAuthModel.Pwd" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p v-if="mutilAuthLoading" class="text-center" style="margin:8px;color:red;">认证中,请耐心等待...</p>
|
|
|
|
|
|
<p class="text-center" style="margin-top:20px"><button type="button" class="btn btn-primary" v-on:click="accountMutilAuth">认证账号</button></p>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="online" v-cloak v-if="showOnline">
|
2021-10-11 14:49:15 +08:00
|
|
|
|
<img src="~/img/close.png" class="btnOnlineClose" v-on:click="closeOnline()" />
|
|
|
|
|
|
<p style="color: #FF6666;font-size:20px;" id="online_status"></p>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<div class="tab-content" style="margin-top:40px;">
|
|
|
|
|
|
<table class="table table-striped table_person">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th>序号</th>
|
|
|
|
|
|
<th>账号</th>
|
|
|
|
|
|
<th>登录时间</th>
|
|
|
|
|
|
<th>在线时间</th>
|
|
|
|
|
|
<th>服务器Ip</th>
|
|
|
|
|
|
<th>登录ip</th>
|
|
|
|
|
|
<th>上行</th>
|
|
|
|
|
|
<th>下行</th>
|
|
|
|
|
|
<th>操作</th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr v-for="(item,index) in onLineData">
|
|
|
|
|
|
<td>#{{index+1}}</td>
|
|
|
|
|
|
<td>{{item.Account}}</td>
|
|
|
|
|
|
<td>{{item.LoginTime}}</td>
|
|
|
|
|
|
<td>{{item.OnlineTime}}</td>
|
|
|
|
|
|
<td>{{item.ServerIP}}</td>
|
|
|
|
|
|
<td>{{item.LoginIP}}</td>
|
|
|
|
|
|
<td>{{item.UpStream}}</td>
|
|
|
|
|
|
<td>{{item.DownStream}}</td>
|
|
|
|
|
|
<td class="blueT" @@click="killout(item)"> 强制离线</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-03-27 19:29:08 +08:00
|
|
|
|
@* 指定地区 *@
|
2021-04-28 08:48:56 +08:00
|
|
|
|
<div class="online" style="overflow: hidden;display:none;" v-cloak id="showAddress">
|
2021-05-26 16:21:29 +08:00
|
|
|
|
<img src="~/img/close.png" class="btnOnlineClose" style="position: absolute;top:10px;cursor:pointer" v-on:click="closeOnline()" />
|
2021-04-28 08:48:56 +08:00
|
|
|
|
<div id="jike">
|
2021-06-02 11:06:54 +08:00
|
|
|
|
<h4 v-if="productId==13">请点击☞<a style="cursor:pointer" v-on:click="checkLine(1)">入口一</a> <a style="cursor:pointer" v-on:click="checkLine(2)">入口二</a></h4>
|
|
|
|
|
|
<h4><span style="color:#FF6666">{{line_text}}</span>统一服务器地址为:<span style="color:#FF6666">{{address_url}}</span> 换地区时无需在设备上更换服务器,只需在此页面选择需要的地区即可,可实现任意城市组合的混拨。<span style="color: red;">标红</span>为此线路正在维护中,最多可选择20个线路</h4>
|
|
|
|
|
|
<div style="overflow-y: auto;width:950px;height:530px;">
|
2021-04-28 08:48:56 +08:00
|
|
|
|
<div class="checkbox">
|
|
|
|
|
|
<label style="width: 25%;" v-for="(item,index) in assign_add_list">
|
2021-06-01 18:24:05 +08:00
|
|
|
|
<input type="checkbox" v-model="assign_list" :value="item.name+'-'+item.id"/><span v-if="item.status ==2">{{item.name}}</span><span v-if="item.status ==1" style="color: red;">{{item.name}}</span>
|
2021-04-28 08:48:56 +08:00
|
|
|
|
</label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="huohu" style="overflow-y: auto;width:950px;height:580px;">
|
|
|
|
|
|
请稍后,加载中...
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
|
<button type="button" class="btn btn-default" v-on:click="closeOnline()">取消</button>
|
|
|
|
|
|
<button type="button" class="btn btn-primary" v-on:click="selectAddAssign()">确定选择</button>
|
|
|
|
|
|
</div>
|
2021-03-27 19:29:08 +08:00
|
|
|
|
</div>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<div class="editList">
|
|
|
|
|
|
<form>
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label>账户:</label>
|
|
|
|
|
|
<input type="text" class="form-control" placeholder="" v-model="UpdateAccountModel.Account">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label>新密码:</label>
|
|
|
|
|
|
<input type="text" class="form-control" placeholder="" v-model="UpdateAccountModel.Pwd">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p class="text-center"><button type="button" class="btn btn-primary" v-on:click="UpdateAccountPwd">提交</button><button type="reset" class="btn btn-danger quxiao" style="margin-left:20px;">取消</button></p>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p class="wanshan"><img src="~/img/smile.png"> 为了给您带来更好的服务体验,请完善qq号和微信号。<a class="edit" asp-action="index" asp-controller="user" asp-route-e="1">立即完善》</a></p>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<p style="text-align:center;">筛选功能已优化完成,可正常使用,更加便捷。</p>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<div class="toolsBar">
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<div class="item" style="width:20%;">
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<div class="btn-group">
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<select v-model="searchModel.ExpiredDay" @@change="search" style="height:35px;width:200%;">
|
2021-05-27 16:13:29 +08:00
|
|
|
|
<option disabled :value="0">选择过期时间</option>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<option :value="-100">全部</option>
|
|
|
|
|
|
<option :value="1">1天内到期</option>
|
|
|
|
|
|
<option :value="3">3天内到期</option>
|
|
|
|
|
|
<option :value="7">一周内到期</option>
|
2021-06-01 18:24:05 +08:00
|
|
|
|
<option :value="10">10天内到期</option>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<option :value="-1">已经到期1天内</option>
|
|
|
|
|
|
<option :value="-3">已经到期3天内</option>
|
|
|
|
|
|
<option :value="-4">已经到期3天以上</option>
|
2021-05-28 11:03:39 +08:00
|
|
|
|
<option :value="-5">全部未过期</option>
|
|
|
|
|
|
<option :value="-6">全部已过期</option>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<div class="item">
|
|
|
|
|
|
<div class="btn-group">
|
2021-05-26 14:56:20 +08:00
|
|
|
|
<select v-model="searchModel.ProductId" @@change="search" style="height:35px;">
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<option value="0">全部产品</option>
|
|
|
|
|
|
<option v-for="item in productWithPackage" :value="item.Product.Id">{{item.Product.Name}}</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<div class="btn-group">
|
2021-05-26 14:56:20 +08:00
|
|
|
|
<select v-model="searchModel.PackageId" @@change="search" style="height:35px;">
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<option value="0">全部套餐</option>
|
2021-05-26 17:06:41 +08:00
|
|
|
|
<option value="测试卡">测试卡</option>
|
|
|
|
|
|
<option value="天卡">天卡</option>
|
|
|
|
|
|
<option value="周卡">周卡</option>
|
|
|
|
|
|
<option value="月卡">月卡</option>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<option value="月卡(活动)">月卡(活动)</option>
|
2021-05-26 17:06:41 +08:00
|
|
|
|
<option value="双月卡(活动)">双月卡(活动)</option>
|
|
|
|
|
|
<option value="季卡">季卡</option>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<option value="季卡(活动)">季卡(活动)</option>
|
2021-05-26 17:06:41 +08:00
|
|
|
|
<option value="年卡">年卡</option>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<input type="text" v-model="searchModel.Keyword" placeholder="账号" class="bianhao" />
|
|
|
|
|
|
<button type="button" class="btn btn-primary" v-on:click="search">查询</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row xufeiBar">
|
|
|
|
|
|
<div class="col-lg-6 text-left xuTui">
|
2020-10-19 15:45:32 +08:00
|
|
|
|
<button type="button" class="btn btn-danger btn-rebuy"><img src="~/img/xufei.png"> 续费</button>
|
|
|
|
|
|
<button type="button" class="btn btn-primary btn-refund">
|
|
|
|
|
|
<img src="~/img/tui.png"> 退货</button>
|
2021-04-28 08:48:56 +08:00
|
|
|
|
<a style="color:red"> *批量续费可通过筛选和搜索功能精准定位账号</a>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<table class="table table-striped table_person">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th><input type="checkbox" name="" id="checkAll" value="" /></th>
|
|
|
|
|
|
<th>开通时间</th>
|
|
|
|
|
|
<th>产品</th>
|
|
|
|
|
|
<th>套餐</th>
|
|
|
|
|
|
<th>账号</th>
|
|
|
|
|
|
<th>密码</th>
|
|
|
|
|
|
<th>连接数</th>
|
|
|
|
|
|
<th>到期时间</th>
|
|
|
|
|
|
<th>剩余时间</th>
|
|
|
|
|
|
<th>在线及踢线</th>
|
2021-05-27 09:23:02 +08:00
|
|
|
|
<th>选择地区</th>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<th>服务器</th>
|
|
|
|
|
|
<th>软件下载</th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
@foreach (var item in Model)
|
|
|
|
|
|
{
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td><input type="checkbox" class="selectAccount" value="@item.Account" 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>
|
|
|
|
|
|
<td>@item.Account</td>
|
|
|
|
|
|
<td>@item.Pwd <img src="~/img/change.png" class="change" v-on:click="showAccountBox(@item.Id,'@item.Account','@item.Pwd')" /></td>
|
|
|
|
|
|
<td>@item.ConnectCount</td>
|
|
|
|
|
|
<td>@item.EndTime.Value.ToString("yyyy.MM.dd")</td>
|
|
|
|
|
|
<td class="redT">@(item.Status==AccountStatus.Refund?"已退货": item.RestTime)</td>
|
|
|
|
|
|
@*<td class="greenT">查看</td>*@
|
|
|
|
|
|
<td class="blueT"><a @@click="online(@item.ProductId,'@item.Account')">查看</a> </td>
|
2021-08-14 15:11:31 +08:00
|
|
|
|
<td class="blueT"><a v-if="@item.ProductId==19||@item.ProductId==13||@item.ProductId==17||@item.ProductId==1" @@click="assign_address(@item.ProductId,'@item.Account','@item.Pwd')">切换地区</a> </td>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
<td class="blueT"><a asp-action="Index" asp-controller="LineList" asp-route-ProductId="@item.ProductId" target="_blank">查看</a> </td>
|
|
|
|
|
|
<td class="blueT"> <a asp-action="soft" asp-controller="product" target="_blank">下载</a></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
@*<div class="fenye">
|
|
|
|
|
|
@await Component.InvokeAsync("Pager", new PagerModel() { Total = Model.RowCount, PageIndex = this.Context.Request.GetInt("PageIndex") })
|
|
|
|
|
|
</div>*@
|
2020-10-19 15:45:32 +08:00
|
|
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
|
<div class="modal-content" style="width: 70%;">
|
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
|
|
<h4 class="modal-title" id="myModalLabel">温馨提示:请选择退款原因</h4>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-6 text-center">
|
|
|
|
|
|
<button type="button" style="width:160px;" v-on:click="refund_reason('连接不上')" class="btn btn-info btn-lg">连接不上</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6 text-center">
|
|
|
|
|
|
<button type="button" style="width:160px;" v-on:click="refund_reason('网速慢')" class="btn btn-info btn-lg">网速慢</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-6 text-center">
|
|
|
|
|
|
<button type="button" style="width:160px;" v-on:click="refund_reason('稳定性差')" class="btn btn-info btn-lg">稳定性差</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6 text-center">
|
|
|
|
|
|
<button type="button" style="width:160px;" v-on:click="refund_reason('IP太少')" class="btn btn-info btn-lg">IP太少</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-6 text-center">
|
|
|
|
|
|
<button type="button" style="width:160px;" v-on:click="refund_reason('想换用其他产品')" class="btn btn-info btn-lg">想换用其他产品</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6 text-center">
|
|
|
|
|
|
<button type="button" style="width:160px;" v-on:click="refund_reason(false)" class="btn btn-info btn-lg">暂时用不到了</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<p style="color: red;display:none;" class="refund-info"> * 此类问题可联系专业售后客服帮助解决,解决率为95%,点击联系售后客服。</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
|
|
|
|
|
<button type="button" class="btn btn-primary confirm-refund" disabled="disabled">确定退款</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
</div>
|
2020-10-07 20:25:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
2021-05-27 16:13:29 +08:00
|
|
|
|
function getQueryVariable(variable)
|
|
|
|
|
|
{
|
|
|
|
|
|
var query = window.location.search.substring(1);
|
|
|
|
|
|
var vars = query.split("&");
|
|
|
|
|
|
for (var i=0;i<vars.length;i++) {
|
|
|
|
|
|
var pair = vars[i].split("=");
|
|
|
|
|
|
if(pair[0] == variable){return pair[1];}
|
|
|
|
|
|
}
|
|
|
|
|
|
return(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2020-10-19 15:45:32 +08:00
|
|
|
|
var reason = '';
|
|
|
|
|
|
|
2020-10-07 20:25:03 +08:00
|
|
|
|
var app = new Vue({
|
|
|
|
|
|
el: '#app',
|
|
|
|
|
|
data: {
|
|
|
|
|
|
productWithPackage: [],
|
|
|
|
|
|
packages: [],
|
|
|
|
|
|
mutilAuthLoading: false,
|
|
|
|
|
|
oneAuthLoading: false,
|
|
|
|
|
|
showOnline: false,
|
2021-03-27 19:29:08 +08:00
|
|
|
|
assign_add_list:[],
|
|
|
|
|
|
assign_list:[],
|
2021-06-02 11:06:54 +08:00
|
|
|
|
line_text:'入口一',
|
2021-03-27 19:29:08 +08:00
|
|
|
|
assign_account:'',
|
|
|
|
|
|
assign_pass:'',
|
2021-04-28 08:48:56 +08:00
|
|
|
|
productId:'',
|
2021-06-01 18:24:05 +08:00
|
|
|
|
address_url:'',
|
2020-10-07 20:25:03 +08:00
|
|
|
|
searchModel: {
|
2021-05-27 16:13:29 +08:00
|
|
|
|
ExpiredDay:@this.Context.Request.GetInt("ExpiredDay"),
|
2020-10-07 20:25:03 +08:00
|
|
|
|
ProductId:@this.Context.Request.GetInt("ProductId"),
|
2021-05-26 17:06:41 +08:00
|
|
|
|
PackageId:'0',
|
2020-10-07 20:25:03 +08:00
|
|
|
|
Keyword:'@this.Context.Request.Get("Keyword")',
|
|
|
|
|
|
BTime: '@this.Context.Request.Get("BTime")',
|
|
|
|
|
|
ETime: '@this.Context.Request.Get("ETime")',
|
|
|
|
|
|
},
|
|
|
|
|
|
oneAuthModel: {
|
|
|
|
|
|
ProductId: 0,
|
|
|
|
|
|
Account: "",
|
|
|
|
|
|
Pwd:""
|
|
|
|
|
|
},
|
|
|
|
|
|
mutilAuthModel: {
|
|
|
|
|
|
ProductId: 0,
|
|
|
|
|
|
Account: "",
|
|
|
|
|
|
Pwd: "",
|
|
|
|
|
|
StartNum: 0,
|
|
|
|
|
|
Count:0
|
|
|
|
|
|
},
|
|
|
|
|
|
UpdateAccountModel: {
|
|
|
|
|
|
ProductId:0,
|
|
|
|
|
|
UserId:0,
|
|
|
|
|
|
Account: "",
|
|
|
|
|
|
Pwd:""
|
|
|
|
|
|
},
|
|
|
|
|
|
onLineData:[]
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
watch: {
|
2021-05-26 17:06:41 +08:00
|
|
|
|
|
2020-10-07 20:25:03 +08:00
|
|
|
|
},
|
|
|
|
|
|
created: function () {
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted: function () {
|
|
|
|
|
|
this.getProducts();
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
initPackages: function () {
|
|
|
|
|
|
var productId = this.searchModel.ProductId;
|
|
|
|
|
|
if (productId == 0) return;
|
|
|
|
|
|
for (var i = 0; i < this.productWithPackage.length; i++) {
|
|
|
|
|
|
var item = this.productWithPackage[i];
|
|
|
|
|
|
if (item.Product.Id == productId) {
|
|
|
|
|
|
this.packages = item.Packages
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
getProducts() {
|
2021-05-27 16:13:29 +08:00
|
|
|
|
if(decodeURIComponent(getQueryVariable('PackageId'))!='false'){
|
|
|
|
|
|
this.searchModel.PackageId = decodeURIComponent(getQueryVariable('PackageId'))
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.searchModel.PackageId = '0'
|
|
|
|
|
|
}
|
2020-10-07 20:25:03 +08:00
|
|
|
|
var that = this;
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: '/api/course/v1/product/ProductWithPackage',
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
that.productWithPackage = res.Data;
|
|
|
|
|
|
that.initPackages();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
search() {
|
|
|
|
|
|
var ps = [];
|
|
|
|
|
|
for (var item in this.searchModel) {
|
2021-05-27 16:13:29 +08:00
|
|
|
|
if (this.searchModel[item]!=0 && this.searchModel[item] != 'false' && this.searchModel[item]!=null){
|
|
|
|
|
|
var p = item + "=" + this.searchModel[item];
|
|
|
|
|
|
ps.push(p);
|
|
|
|
|
|
}
|
2020-10-07 20:25:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
window.location.href = "?" + ps.join("&");
|
|
|
|
|
|
},
|
|
|
|
|
|
showAccountBox(id,account,pwd) {
|
|
|
|
|
|
$(".editList").show();
|
|
|
|
|
|
this.UpdateAccountModel.Id = id;
|
|
|
|
|
|
this.UpdateAccountModel.Account = account;
|
|
|
|
|
|
this.UpdateAccountModel.Pwd = pwd;
|
|
|
|
|
|
},
|
|
|
|
|
|
UpdateAccountPwd(){
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: '/user/UpdateAccountPwd',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
data: JSON.stringify(this.UpdateAccountModel),
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert(res.Message)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
accountOneAuth() {
|
|
|
|
|
|
if (this.oneAuthModel.ProductId ==0) {
|
|
|
|
|
|
alert('请选择产品')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (this.oneAuthModel.Account == '' || this.oneAuthModel.Pwd == '') {
|
|
|
|
|
|
alert('账号和密码不能为空')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
if (this.oneAuthLoading) return
|
|
|
|
|
|
this.oneAuthLoading = true;
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: '/user/OrginAccountAuth',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
data: JSON.stringify(this.oneAuthModel),
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
that.oneAuthLoading = false;
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
alert('认证成功')
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert(res.Message)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2021-06-01 18:24:05 +08:00
|
|
|
|
|
2020-10-07 20:25:03 +08:00
|
|
|
|
accountMutilAuth() {
|
|
|
|
|
|
if (this.mutilAuthModel.ProductId == 0) {
|
|
|
|
|
|
alert('请选择产品')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (this.mutilAuthModel.Account == '' || this.mutilAuthModel.Pwd == '') {
|
|
|
|
|
|
alert('账号和密码不能为空')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (this.mutilAuthLoading) return;
|
|
|
|
|
|
this.mutilAuthLoading = true;
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: '/user/OrginAccountAuth',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
data: JSON.stringify(this.mutilAuthModel),
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
that.mutilAuthLoading = false;
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
alert('认证成功')
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert(res.Message)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
online(productId, account) {
|
|
|
|
|
|
this.showOnline = true
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: '/api/course/v1/productaccount/OnLine?productId=' + productId + '&account=' + account,
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
that.onLineData = res.Data;
|
|
|
|
|
|
for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2021-03-27 19:29:08 +08:00
|
|
|
|
assign_address(productId, account,pass) {
|
2021-08-14 15:11:31 +08:00
|
|
|
|
if(productId != 13 && productId != 19 && productId != 17 && productId != 1){
|
|
|
|
|
|
alert('目前仅支持强子、极客、火狐、西瓜产品!');
|
2021-03-27 19:29:08 +08:00
|
|
|
|
return;
|
|
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
$("#showAddress").show();
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
2021-03-27 19:29:08 +08:00
|
|
|
|
this.assign_account = account;
|
2021-04-28 08:48:56 +08:00
|
|
|
|
this.assign_pass = pass;
|
|
|
|
|
|
this.productId = productId;
|
|
|
|
|
|
if(productId == 13){
|
|
|
|
|
|
$("#jike").show();
|
|
|
|
|
|
$("#huohu").hide();
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/index?user='+account+'&password='+pass,
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
2021-06-01 18:24:05 +08:00
|
|
|
|
that.assign_add_list = res.data;
|
|
|
|
|
|
that.assign_list =res.list;
|
|
|
|
|
|
that.address_url = 'a.jkip.com'
|
2021-06-02 11:06:54 +08:00
|
|
|
|
that.line_text = '入口一'
|
2021-06-01 18:24:05 +08:00
|
|
|
|
//if (res.Code == 10000) {
|
|
|
|
|
|
// that.onLineData = res.Data;
|
|
|
|
|
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
// that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
if(productId == 17){
|
|
|
|
|
|
$("#jike").show();
|
|
|
|
|
|
$("#huohu").hide();
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/indexXigua?user='+account+'&password='+pass,
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
that.assign_add_list = res.data;
|
|
|
|
|
|
that.assign_list =res.list;
|
|
|
|
|
|
that.address_url = 'a.xgip.vip'
|
2021-04-28 08:48:56 +08:00
|
|
|
|
//if (res.Code == 10000) {
|
|
|
|
|
|
// that.onLineData = res.Data;
|
|
|
|
|
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
// that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2021-03-27 19:29:08 +08:00
|
|
|
|
}
|
2021-08-14 15:11:31 +08:00
|
|
|
|
if(productId == 1){
|
|
|
|
|
|
$("#huohu").show();
|
|
|
|
|
|
$("#jike").hide();
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/qiangzi_address?user='+account+'&password='+pass,
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
$("#huohu").html('<p style="font-size:30px;">服务器地址是混拨服务器,不选择任何地区,则为全国随机</p>');
|
|
|
|
|
|
$("#huohu").append(res);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
if(productId == 19){
|
|
|
|
|
|
$("#huohu").show();
|
|
|
|
|
|
$("#jike").hide();
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/getList?user='+account+'&password='+pass,
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
2021-06-04 18:50:47 +08:00
|
|
|
|
$("#huohu").html('<p style="font-size:30px;">统一服务器地址:1.hhip.vip <span style="color:red;">请不要选择剩余为0的地区</span></p><p>换地区时无需在设备上更换服务器,只需在此页面选择需要的地区即可,可实现任意城市组合的混拨。</p>');
|
2021-04-28 08:48:56 +08:00
|
|
|
|
$("#huohu").append(res.ipmodel);
|
|
|
|
|
|
$("#huohu").append("<hr>");
|
|
|
|
|
|
$("#huohu").append(res.city);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2021-03-27 19:29:08 +08:00
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
},
|
2021-06-01 18:24:05 +08:00
|
|
|
|
checkLine(n) {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
if (n==1){
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/index?user='+this.assign_account+'&password='+this.assign_pass,
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
that.assign_add_list = res.data;
|
|
|
|
|
|
that.assign_list =res.list;
|
|
|
|
|
|
that.address_url = 'a.jkip.com'
|
2021-06-02 11:06:54 +08:00
|
|
|
|
that.line_text = '入口一'
|
2021-06-01 18:24:05 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
if (n==2){
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/index2?user='+this.assign_account+'&password='+this.assign_pass,
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
that.assign_add_list = res.data;
|
|
|
|
|
|
that.assign_list =res.list;
|
|
|
|
|
|
that.address_url = 'b.jkip.com'
|
2021-06-02 11:06:54 +08:00
|
|
|
|
that.line_text = '入口二'
|
2021-06-01 18:24:05 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2021-04-28 08:48:56 +08:00
|
|
|
|
selectAddAssign() {
|
|
|
|
|
|
if(this.productId == 19){
|
|
|
|
|
|
let address_checked = [];
|
|
|
|
|
|
$("input[name='citys[]']:checked").each(function(i){
|
|
|
|
|
|
address_checked.push($(this).val());
|
|
|
|
|
|
});
|
|
|
|
|
|
let ipmode = $("select[name='ipmode']").val();
|
|
|
|
|
|
console.log(address_checked)
|
|
|
|
|
|
console.log(ipmode)
|
|
|
|
|
|
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
list:address_checked,
|
|
|
|
|
|
account:this.assign_account,
|
|
|
|
|
|
password:this.assign_pass,
|
|
|
|
|
|
ipmode:ipmode,
|
|
|
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/setAddress',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
data:JSON.stringify(data),
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if(res.code == 1){
|
|
|
|
|
|
alert('选择成功');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert('选择失败');
|
|
|
|
|
|
}
|
|
|
|
|
|
//if (res.Code == 10000) {
|
2021-08-14 15:11:31 +08:00
|
|
|
|
// that.onLineData = res.Data;
|
|
|
|
|
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
// that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
if(this.productId == 1){
|
|
|
|
|
|
let address_checked = [];
|
|
|
|
|
|
$("input[name='poolids[]']:checked").each(function(i){
|
|
|
|
|
|
address_checked.push($(this).val());
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
list:address_checked,
|
|
|
|
|
|
account:this.assign_account,
|
|
|
|
|
|
password:this.assign_pass,
|
|
|
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/qiangzi',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
data:JSON.stringify(data),
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if(res.code == 1){
|
|
|
|
|
|
alert('选择成功');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert('选择失败');
|
|
|
|
|
|
}
|
|
|
|
|
|
//if (res.Code == 10000) {
|
2021-04-28 08:48:56 +08:00
|
|
|
|
// that.onLineData = res.Data;
|
|
|
|
|
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
// that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
2021-03-27 19:29:08 +08:00
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
});
|
|
|
|
|
|
}
|
2021-06-01 18:24:05 +08:00
|
|
|
|
if(this.productId == 17){
|
|
|
|
|
|
if(this.assign_list.length>20||this.assign_list.length==0){
|
|
|
|
|
|
alert('最多选择20个,至少选择一个!');
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
list:this.assign_list,
|
|
|
|
|
|
account:this.assign_account,
|
|
|
|
|
|
password:this.assign_pass,
|
|
|
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/selectXigua',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
data:JSON.stringify(data),
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if(res.code == 1){
|
|
|
|
|
|
alert('选择成功');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert('选择失败');
|
|
|
|
|
|
}
|
|
|
|
|
|
//if (res.Code == 10000) {
|
|
|
|
|
|
// that.onLineData = res.Data;
|
|
|
|
|
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
// that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
if(this.productId == 13){
|
|
|
|
|
|
if(this.assign_list.length>20||this.assign_list.length==0){
|
|
|
|
|
|
alert('最多选择20个,至少选择一个!');
|
|
|
|
|
|
return;
|
2021-03-27 19:29:08 +08:00
|
|
|
|
}
|
2021-04-28 08:48:56 +08:00
|
|
|
|
let data = {
|
|
|
|
|
|
list:this.assign_list,
|
|
|
|
|
|
account:this.assign_account,
|
|
|
|
|
|
password:this.assign_pass,
|
|
|
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
url: 'http://php-api.juip.com/product/AccountAddress/select',
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
data:JSON.stringify(data),
|
|
|
|
|
|
contentType: "application/json",
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if(res.code == 1){
|
|
|
|
|
|
alert('选择成功');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert('选择失败');
|
|
|
|
|
|
}
|
|
|
|
|
|
//if (res.Code == 10000) {
|
|
|
|
|
|
// that.onLineData = res.Data;
|
|
|
|
|
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
|
|
|
|
|
// that.onLineData[i].ProductId = productId;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2021-03-27 19:29:08 +08:00
|
|
|
|
},
|
2020-10-07 20:25:03 +08:00
|
|
|
|
closeOnline() {
|
|
|
|
|
|
this.showOnline = false;
|
2021-04-28 08:48:56 +08:00
|
|
|
|
$("#showAddress").hide();
|
2021-06-02 11:06:54 +08:00
|
|
|
|
this.line_text = '';
|
2020-10-07 20:25:03 +08:00
|
|
|
|
this.onLineData = [];
|
|
|
|
|
|
},
|
|
|
|
|
|
killout: function (item) {
|
2021-10-11 14:49:15 +08:00
|
|
|
|
$("#online_status").text("正在踢线......");
|
2020-10-07 20:25:03 +08:00
|
|
|
|
var that = this;
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: '/api/course/v1/productaccount/KillOut?productId=' + item.ProductId + '&id=' + item.Id,
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if (res.Code == 10000) {
|
2021-10-11 14:49:15 +08:00
|
|
|
|
$("#online_status").text("断开成功!");
|
|
|
|
|
|
that.online(item.ProductId, item.Account);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#online_status").text("断开失败!");
|
2020-10-07 20:25:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2020-10-19 15:45:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
refund_reason(reason_info){
|
|
|
|
|
|
if(reason_info){
|
|
|
|
|
|
$(".refund-info").show();
|
|
|
|
|
|
reason = reason_info;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$(".refund-info").hide();
|
|
|
|
|
|
reason = '暂时用不到了';
|
|
|
|
|
|
}
|
|
|
|
|
|
$(".confirm-refund").removeAttr('disabled');
|
2020-10-07 20:25:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
var picker1 = $('#datetimepicker1').datetimepicker({
|
|
|
|
|
|
format: 'YYYY-MM-DD',
|
|
|
|
|
|
locale: moment.locale('zh-cn'),
|
|
|
|
|
|
//minDate: '2016-7-1'
|
|
|
|
|
|
});
|
|
|
|
|
|
var picker2 = $('#datetimepicker2').datetimepicker({
|
|
|
|
|
|
format: 'YYYY-MM-DD',
|
|
|
|
|
|
locale: moment.locale('zh-cn')
|
|
|
|
|
|
});
|
|
|
|
|
|
//动态设置最小值
|
|
|
|
|
|
picker1.on('dp.change', function (e) {
|
|
|
|
|
|
picker2.data('DateTimePicker').minDate(e.date);
|
|
|
|
|
|
});
|
|
|
|
|
|
//动态设置最大值
|
|
|
|
|
|
picker2.on('dp.change', function (e) {
|
|
|
|
|
|
picker1.data('DateTimePicker').maxDate(e.date);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//退款
|
|
|
|
|
|
|
|
|
|
|
|
function caclRefund(account,refundFun) {
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
url: '/api/course/v1/order/CaclRefund?account=' + account,
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
var msg = res.Data.info +",确定要退款吗?"
|
|
|
|
|
|
//var msg ="剩余:"+res.Data.RefundRestTime+",还需退款:"+ res.Data.RefundAmount+",确定要退款吗?"
|
|
|
|
|
|
if (!confirm(msg)) { return; }
|
|
|
|
|
|
refundFun(account);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert(res.Message)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function refund(account) {
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'GET',
|
2020-10-19 15:45:32 +08:00
|
|
|
|
url: '/api/course/v1/order/Refund?account=' +account + "-" + reason,
|
2020-10-07 20:25:03 +08:00
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if (res.Code == 10000) {
|
|
|
|
|
|
alert('退款成功')
|
|
|
|
|
|
window.location.reload()
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert(res.Message)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
$(".btn-refund").on('click', function () {
|
|
|
|
|
|
var accounts = [];
|
|
|
|
|
|
$.each($('input:checkbox:checked'), function () {
|
|
|
|
|
|
accounts.push($(this).val())
|
|
|
|
|
|
});
|
2020-10-19 15:45:32 +08:00
|
|
|
|
|
|
|
|
|
|
if (accounts.length >1) { alert('一次只能退款一个账号'); return; }
|
|
|
|
|
|
if (accounts.length == 0) { alert('请先选择账号'); return; }
|
|
|
|
|
|
$('#myModal').modal('show');
|
|
|
|
|
|
})
|
|
|
|
|
|
$(".confirm-refund").on('click', function () {
|
|
|
|
|
|
var accounts = [];
|
|
|
|
|
|
$.each($('input:checkbox:checked'), function () {
|
|
|
|
|
|
accounts.push($(this).val())
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#myModal').modal('hide');
|
2020-10-07 20:25:03 +08:00
|
|
|
|
caclRefund(accounts[0],refund)
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2020-10-19 15:45:32 +08:00
|
|
|
|
|
2020-10-07 20:25:03 +08:00
|
|
|
|
function isSame(data, property) {
|
|
|
|
|
|
if (data.length == 0) return true;
|
|
|
|
|
|
var first = data[0];
|
|
|
|
|
|
for (var i = 1; i < data.length; i++) {
|
|
|
|
|
|
var item = data[i];
|
|
|
|
|
|
if (first[property] != item[property])
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//续费
|
|
|
|
|
|
$(".btn-rebuy").on('click', function () {
|
|
|
|
|
|
var accounts = [];
|
|
|
|
|
|
var accountModels = [];
|
|
|
|
|
|
var isTest = false
|
|
|
|
|
|
$.each($('input:checkbox:checked'), function () {
|
|
|
|
|
|
var account = $(this).val();
|
|
|
|
|
|
if (account) {
|
|
|
|
|
|
var accountItem = {
|
|
|
|
|
|
account: account,
|
|
|
|
|
|
pid: $(this).attr('a-pid'),
|
|
|
|
|
|
connectCount: $(this).attr('a-connectCount'),
|
|
|
|
|
|
isTest: $(this).attr('a-aType')==200
|
|
|
|
|
|
}
|
|
|
|
|
|
accountModels.push(accountItem)
|
|
|
|
|
|
accounts.push($(this).val())
|
|
|
|
|
|
if (accountItem.isTest) isTest = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
if (accountModels.length == 0) { alert('请选择账号'); return; }
|
|
|
|
|
|
if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; }
|
|
|
|
|
|
if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; }
|
|
|
|
|
|
if (isTest) { alert('测试账号暂不支持续费,请新开正式账号'); return; }
|
|
|
|
|
|
window.location.href = "/product/rebuyindex?productId=" + accountModels[0].pid + "&accounts=" + accounts.join(",");
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
$("#checkAll").on('click', function () {
|
|
|
|
|
|
console.log($(this).prop("checked"),"check")
|
|
|
|
|
|
$("td > input:checkbox").prop("checked", $(this).prop("checked"))
|
|
|
|
|
|
})
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|