极客西瓜选择地区
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
.checkbox {
|
.checkbox {
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
height: calc(85vh);
|
height: calc(80vh);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.form-control {
|
.form-control {
|
||||||
@@ -58,8 +58,9 @@
|
|||||||
<div id="app" >
|
<div id="app" >
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<div id="jike">
|
<div id="jike">
|
||||||
|
<h4>最多选择20条线路 <span style="color: red;">标红</span>为线路正在维护中 <span v-if="productId==13"><a v-on:click="checkLine(1)">线路1</a> <a v-on:click="checkLine(2)">线路2</a></span> 该线路服务器地址:{{address_url}}</h4>
|
||||||
<label style="width: 90%;margin-left: 0.3rem;" v-for="(item,index) in assign_add_list">
|
<label style="width: 90%;margin-left: 0.3rem;" v-for="(item,index) in assign_add_list">
|
||||||
<input type="checkbox" style="height: 0.3rem;width: 0.3rem;" 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>
|
<input type="checkbox" v-model="assign_list" style="left:-13px;" :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>
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
@@ -79,7 +80,7 @@
|
|||||||
account = getQueryVariable('account'),
|
account = getQueryVariable('account'),
|
||||||
pass = getQueryVariable('password');
|
pass = getQueryVariable('password');
|
||||||
|
|
||||||
if(product_id != 13&&product_id != 19) {
|
if(product_id != 13&&product_id != 19&&product_id != 17) {
|
||||||
alert('目前仅支持极客、火狐产品!');
|
alert('目前仅支持极客、火狐产品!');
|
||||||
window.location.href = "/User/MyAccounts";
|
window.location.href = "/User/MyAccounts";
|
||||||
}
|
}
|
||||||
@@ -91,6 +92,8 @@
|
|||||||
assign_list:[],
|
assign_list:[],
|
||||||
assign_account:'',
|
assign_account:'',
|
||||||
assign_pass:'',
|
assign_pass:'',
|
||||||
|
address_url:'',
|
||||||
|
productId:getQueryVariable('productId')
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.assign_address();
|
this.assign_address();
|
||||||
@@ -109,7 +112,30 @@
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
that.assign_add_list = res;
|
that.assign_add_list = res.data;
|
||||||
|
that.assign_list =res.list;
|
||||||
|
that.address_url = 'a.jkip.com'
|
||||||
|
//if (res.Code == 10000) {
|
||||||
|
// that.onLineData = res.Data;
|
||||||
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
||||||
|
// that.onLineData[i].ProductId = productId;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if(product_id == 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'
|
||||||
//if (res.Code == 10000) {
|
//if (res.Code == 10000) {
|
||||||
// that.onLineData = res.Data;
|
// that.onLineData = res.Data;
|
||||||
// for (var i = 0; i < that.onLineData.length; i++) {
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
||||||
@@ -137,6 +163,35 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
selectAddAssign() {
|
selectAddAssign() {
|
||||||
if(product_id == 13){
|
if(product_id == 13){
|
||||||
if(this.assign_list.length>20||this.assign_list.length==0){
|
if(this.assign_list.length>20||this.assign_list.length==0){
|
||||||
@@ -169,6 +224,37 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
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;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if(product_id == 19){
|
if(product_id == 19){
|
||||||
let address_checked = [];
|
let address_checked = [];
|
||||||
$("input[name='citys[]']:checked").each(function(i){
|
$("input[name='citys[]']:checked").each(function(i){
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
<option :value="1">1天内到期</option>
|
<option :value="1">1天内到期</option>
|
||||||
<option :value="3">3天内到期</option>
|
<option :value="3">3天内到期</option>
|
||||||
<option :value="7">一周内到期</option>
|
<option :value="7">一周内到期</option>
|
||||||
|
<option :value="10">10天内到期</option>
|
||||||
<option :value="-1">已经到期1天内</option>
|
<option :value="-1">已经到期1天内</option>
|
||||||
<option :value="-3">已经到期3天内</option>
|
<option :value="-3">已经到期3天内</option>
|
||||||
<option :value="-4">已经到期3天以上</option>
|
<option :value="-4">已经到期3天以上</option>
|
||||||
@@ -118,7 +119,7 @@
|
|||||||
<a class="btnXq" asp-action="OnLine" asp-controller="User" asp-route-productId="@item.ProductId" asp-route-account="@item.Account">
|
<a class="btnXq" asp-action="OnLine" asp-controller="User" asp-route-productId="@item.ProductId" asp-route-account="@item.Account">
|
||||||
<button type="button" class="btnXq" style="margin-top:3px">查看在线</button>
|
<button type="button" class="btnXq" style="margin-top:3px">查看在线</button>
|
||||||
</a>
|
</a>
|
||||||
<a class="btnXq" v-if="@item.ProductId==19" href="/User/AssignAddress?productId=@item.ProductId&account=@item.Account&password=@item.Pwd">
|
<a class="btnXq" v-if="@item.ProductId==19||@item.ProductId==13||@item.ProductId==17" href="/User/AssignAddress?productId=@item.ProductId&account=@item.Account&password=@item.Pwd">
|
||||||
<button type="button" class="btnXq" style="margin-top:3px">选择地区</button>
|
<button type="button" class="btnXq" style="margin-top:3px">选择地区</button>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -265,12 +265,11 @@
|
|||||||
<div class="online" style="overflow: hidden;display:none;" v-cloak id="showAddress">
|
<div class="online" style="overflow: hidden;display:none;" v-cloak id="showAddress">
|
||||||
<img src="~/img/close.png" class="btnOnlineClose" style="position: absolute;top:10px;cursor:pointer" v-on:click="closeOnline()" />
|
<img src="~/img/close.png" class="btnOnlineClose" style="position: absolute;top:10px;cursor:pointer" v-on:click="closeOnline()" />
|
||||||
<div id="jike">
|
<div id="jike">
|
||||||
<h4>最多选择20条线路 <span style="color: red;">标红</span>为线路正在维护中</h4>
|
<h4>最多选择20条线路 <span style="color: red;">标红</span>为线路正在维护中 <span v-if="productId==13"><a v-on:click="checkLine(1)">线路1</a> <a v-on:click="checkLine(2)">线路2</a></span> 该线路服务器地址:{{address_url}}</h4>
|
||||||
|
|
||||||
<div style="overflow-y: auto;width:950px;height:580px;">
|
<div style="overflow-y: auto;width:950px;height:580px;">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label style="width: 25%;" v-for="(item,index) in assign_add_list">
|
<label style="width: 25%;" v-for="(item,index) in assign_add_list">
|
||||||
<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>
|
<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>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -308,6 +307,7 @@
|
|||||||
<option :value="1">1天内到期</option>
|
<option :value="1">1天内到期</option>
|
||||||
<option :value="3">3天内到期</option>
|
<option :value="3">3天内到期</option>
|
||||||
<option :value="7">一周内到期</option>
|
<option :value="7">一周内到期</option>
|
||||||
|
<option :value="10">10天内到期</option>
|
||||||
<option :value="-1">已经到期1天内</option>
|
<option :value="-1">已经到期1天内</option>
|
||||||
<option :value="-3">已经到期3天内</option>
|
<option :value="-3">已经到期3天内</option>
|
||||||
<option :value="-4">已经到期3天以上</option>
|
<option :value="-4">已经到期3天以上</option>
|
||||||
@@ -386,7 +386,7 @@
|
|||||||
<td class="redT">@(item.Status==AccountStatus.Refund?"已退货": item.RestTime)</td>
|
<td class="redT">@(item.Status==AccountStatus.Refund?"已退货": item.RestTime)</td>
|
||||||
@*<td class="greenT">查看</td>*@
|
@*<td class="greenT">查看</td>*@
|
||||||
<td class="blueT"><a @@click="online(@item.ProductId,'@item.Account')">查看</a> </td>
|
<td class="blueT"><a @@click="online(@item.ProductId,'@item.Account')">查看</a> </td>
|
||||||
<td class="blueT"><a v-if="@item.ProductId==19" @@click="assign_address(@item.ProductId,'@item.Account','@item.Pwd')">切换地区</a> </td>
|
<td class="blueT"><a v-if="@item.ProductId==19||@item.ProductId==13||@item.ProductId==17" @@click="assign_address(@item.ProductId,'@item.Account','@item.Pwd')">切换地区</a> </td>
|
||||||
<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="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>
|
<td class="blueT"> <a asp-action="soft" asp-controller="product" target="_blank">下载</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -472,6 +472,7 @@
|
|||||||
assign_account:'',
|
assign_account:'',
|
||||||
assign_pass:'',
|
assign_pass:'',
|
||||||
productId:'',
|
productId:'',
|
||||||
|
address_url:'',
|
||||||
searchModel: {
|
searchModel: {
|
||||||
ExpiredDay:@this.Context.Request.GetInt("ExpiredDay"),
|
ExpiredDay:@this.Context.Request.GetInt("ExpiredDay"),
|
||||||
ProductId:@this.Context.Request.GetInt("ProductId"),
|
ProductId:@this.Context.Request.GetInt("ProductId"),
|
||||||
@@ -604,6 +605,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
accountMutilAuth() {
|
accountMutilAuth() {
|
||||||
if (this.mutilAuthModel.ProductId == 0) {
|
if (this.mutilAuthModel.ProductId == 0) {
|
||||||
alert('请选择产品')
|
alert('请选择产品')
|
||||||
@@ -651,8 +653,8 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
assign_address(productId, account,pass) {
|
assign_address(productId, account,pass) {
|
||||||
if(productId != 13 && productId != 19){
|
if(productId != 13 && productId != 19 && productId != 17){
|
||||||
alert('目前仅支持极客、火狐产品!');
|
alert('目前仅支持极客、火狐、西瓜产品!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$("#showAddress").show();
|
$("#showAddress").show();
|
||||||
@@ -670,7 +672,30 @@
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
that.assign_add_list = res;
|
that.assign_add_list = res.data;
|
||||||
|
that.assign_list =res.list;
|
||||||
|
that.address_url = 'a.jkip.com'
|
||||||
|
//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'
|
||||||
//if (res.Code == 10000) {
|
//if (res.Code == 10000) {
|
||||||
// that.onLineData = res.Data;
|
// that.onLineData = res.Data;
|
||||||
// for (var i = 0; i < that.onLineData.length; i++) {
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
||||||
@@ -698,6 +723,35 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
selectAddAssign() {
|
selectAddAssign() {
|
||||||
if(this.productId == 19){
|
if(this.productId == 19){
|
||||||
let address_checked = [];
|
let address_checked = [];
|
||||||
@@ -735,6 +789,37 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
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;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if(this.productId == 13){
|
if(this.productId == 13){
|
||||||
if(this.assign_list.length>20||this.assign_list.length==0){
|
if(this.assign_list.length>20||this.assign_list.length==0){
|
||||||
alert('最多选择20个,至少选择一个!');
|
alert('最多选择20个,至少选择一个!');
|
||||||
|
|||||||
Reference in New Issue
Block a user