强子指定地区
This commit is contained in:
@@ -387,7 +387,7 @@
|
||||
<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>
|
||||
<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 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>
|
||||
<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>
|
||||
@@ -655,8 +655,8 @@
|
||||
});
|
||||
},
|
||||
assign_address(productId, account,pass) {
|
||||
if(productId != 13 && productId != 19 && productId != 17){
|
||||
alert('目前仅支持极客、火狐、西瓜产品!');
|
||||
if(productId != 13 && productId != 19 && productId != 17 && productId != 1){
|
||||
alert('目前仅支持强子、极客、火狐、西瓜产品!');
|
||||
return;
|
||||
}
|
||||
$("#showAddress").show();
|
||||
@@ -708,6 +708,21 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
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);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
if(productId == 19){
|
||||
$("#huohu").show();
|
||||
$("#jike").hide();
|
||||
@@ -794,6 +809,38 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
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) {
|
||||
// that.onLineData = res.Data;
|
||||
// for (var i = 0; i < that.onLineData.length; i++) {
|
||||
// that.onLineData[i].ProductId = productId;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
});
|
||||
}
|
||||
if(this.productId == 17){
|
||||
if(this.assign_list.length>20||this.assign_list.length==0){
|
||||
alert('最多选择20个,至少选择一个!');
|
||||
|
||||
Reference in New Issue
Block a user