-
最多选择20条线路 标红为线路正在维护中
-
+
最多选择20条线路 标红为线路正在维护中 线路1 线路2 该线路服务器地址:{{address_url}}
@@ -308,6 +307,7 @@
+
@@ -386,7 +386,7 @@
@(item.Status==AccountStatus.Refund?"已退货": item.RestTime) |
@*
查看 | *@
查看 |
-
切换地区 |
+
切换地区 |
查看 |
下载 |
@@ -472,6 +472,7 @@
assign_account:'',
assign_pass:'',
productId:'',
+ address_url:'',
searchModel: {
ExpiredDay:@this.Context.Request.GetInt("ExpiredDay"),
ProductId:@this.Context.Request.GetInt("ProductId"),
@@ -604,6 +605,7 @@
}
});
},
+
accountMutilAuth() {
if (this.mutilAuthModel.ProductId == 0) {
alert('请选择产品')
@@ -651,8 +653,8 @@
});
},
assign_address(productId, account,pass) {
- if(productId != 13 && productId != 19){
- alert('目前仅支持极客、火狐产品!');
+ if(productId != 13 && productId != 19 && productId != 17){
+ alert('目前仅支持极客、火狐、西瓜产品!');
return;
}
$("#showAddress").show();
@@ -670,7 +672,30 @@
dataType: "json",
contentType: "application/json",
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) {
// that.onLineData = res.Data;
// 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() {
if(this.productId == 19){
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.assign_list.length>20||this.assign_list.length==0){
alert('最多选择20个,至少选择一个!');