diff --git a/Host/Views.Mobile/User/AssignAddress.cshtml b/Host/Views.Mobile/User/AssignAddress.cshtml index 0559116..51ed428 100644 --- a/Host/Views.Mobile/User/AssignAddress.cshtml +++ b/Host/Views.Mobile/User/AssignAddress.cshtml @@ -16,7 +16,7 @@ .checkbox { margin-left: 1rem; margin-top: 2rem; - height: calc(85vh); + height: calc(80vh); overflow: auto; } .form-control { @@ -58,8 +58,9 @@
+

最多选择20条线路 标红为线路正在维护中 线路1 线路2 该线路服务器地址:{{address_url}}



@@ -79,7 +80,7 @@ account = getQueryVariable('account'), pass = getQueryVariable('password'); - if(product_id != 13&&product_id != 19) { + if(product_id != 13&&product_id != 19&&product_id != 17) { alert('目前仅支持极客、火狐产品!'); window.location.href = "/User/MyAccounts"; } @@ -91,6 +92,8 @@ assign_list:[], assign_account:'', assign_pass:'', + address_url:'', + productId:getQueryVariable('productId') }, mounted: function () { this.assign_address(); @@ -109,7 +112,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(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) { // that.onLineData = res.Data; // 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() { if(product_id == 13){ 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){ let address_checked = []; $("input[name='citys[]']:checked").each(function(i){ diff --git a/Host/Views.Mobile/User/MyAccounts.cshtml b/Host/Views.Mobile/User/MyAccounts.cshtml index 26abe3e..5f4d0ee 100644 --- a/Host/Views.Mobile/User/MyAccounts.cshtml +++ b/Host/Views.Mobile/User/MyAccounts.cshtml @@ -51,6 +51,7 @@ + @@ -118,7 +119,7 @@ - + diff --git a/Host/Views/User/MyAccounts.cshtml b/Host/Views/User/MyAccounts.cshtml index ebe3a83..6591dd3 100644 --- a/Host/Views/User/MyAccounts.cshtml +++ b/Host/Views/User/MyAccounts.cshtml @@ -265,12 +265,11 @@