diff --git a/Host/Views/User/MyAccounts.cshtml b/Host/Views/User/MyAccounts.cshtml index d4f1e4d..f96f34f 100644 --- a/Host/Views/User/MyAccounts.cshtml +++ b/Host/Views/User/MyAccounts.cshtml @@ -54,8 +54,8 @@ .online { position: fixed; - left: 300px; - width: 950px; + left: 350px; + width: 1000px; height: 700px; top: 100px; z-index: 3; @@ -249,6 +249,22 @@ + @* 指定地区 *@ +
+ 最多选择20条线路 + +
+
+ +
+
+ +
@@ -348,6 +364,7 @@ 到期时间 剩余时间 在线及踢线 + 指定地区 服务器 软件下载 @@ -365,6 +382,7 @@ @(item.Status==AccountStatus.Refund?"已退货": item.RestTime) @*查看*@ 查看 + 地区列表 查看 下载 @@ -434,6 +452,11 @@ mutilAuthLoading: false, oneAuthLoading: false, showOnline: false, + showAddress: false, + assign_add_list:[], + assign_list:[], + assign_account:'', + assign_pass:'', searchModel: { ExpiredDay:-1, ProductId:@this.Context.Request.GetInt("ProductId"), @@ -619,8 +642,65 @@ } }); }, + assign_address(productId, account,pass) { + if(productId != 13){ + alert('目前仅支持极客产品!'); + return; + } + this.showAddress = true + var that = this; + this.assign_account = account; + this.assign_pass = pass; + $.ajax({ + type: 'GET', + url: 'http://php-api.juip.com/product/AccountAddress/index?user='+account+'&password='+pass, + dataType: "json", + contentType: "application/json", + success: function (res) { + that.assign_add_list = res; + //if (res.Code == 10000) { + // that.onLineData = res.Data; + // for (var i = 0; i < that.onLineData.length; i++) { + // that.onLineData[i].ProductId = productId; + // } + //} + } + }); + }, + selectAddAssign() { + 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/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; + // } + //} + } + }); + }, closeOnline() { this.showOnline = false; + this.showAddress = false; this.onLineData = []; }, killout: function (item) {