From 695f6b70ecdb75ac6c958abe35f47baa352c1451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 27 Mar 2021 19:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=81=E5=AE=A2=E6=8C=87=E5=AE=9A=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views/User/MyAccounts.cshtml | 84 ++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 2 deletions(-) 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) {