diff --git a/Host/Views.Mobile/LineList/Index.cshtml b/Host/Views.Mobile/LineList/Index.cshtml index b37fce8..d7e644c 100644 --- a/Host/Views.Mobile/LineList/Index.cshtml +++ b/Host/Views.Mobile/LineList/Index.cshtml @@ -206,7 +206,7 @@ {{site.city}} {{site.city}} {{site.supply}} - {{site.nasname}} + {{site.nasname}} 复制 {{site.online}} @@ -291,6 +291,31 @@ this.select_product(0); }, methods: { + copyText(text) { + // 检查浏览器是否支持 Clipboard API + if (!navigator.clipboard) { + // 如果不支持,则使用传统的 document.execCommand("copy") 方式 + const textArea = document.createElement("textarea"); + textArea.value = text; + textArea.style.position = "fixed"; + document.body.appendChild(textArea); + textArea.focus(); + textArea.select(); + document.execCommand("copy"); + document.body.removeChild(textArea); + return; + } + + // 使用 Clipboard API 复制内容到剪切板 + navigator.clipboard.writeText(text).then( + function() { + console.log("复制成功"); + }, + function() { + console.log("复制失败"); + } + ); + }, select_product(ProductId){ this.product_id = ProductId; let datalist = []; diff --git a/Host/Views.Mobile/Product/Http.cshtml b/Host/Views.Mobile/Product/Http.cshtml index e61de1c..cfa4c92 100644 --- a/Host/Views.Mobile/Product/Http.cshtml +++ b/Host/Views.Mobile/Product/Http.cshtml @@ -1028,6 +1028,7 @@ $(document).on("ready", function(e) { //充值 recharge(money) { this.order_info.money = money; + alert('此充值只针对HTTP,无法购买 动静态ip 以及其他产品,请确认仔细!'); }, //短效无限量购买时长修改 dxwxl_gmsc_reduce(){ @@ -1106,6 +1107,10 @@ $(document).on("ready", function(e) { this.order_info.data = this.dxwxl_data; break; case 3: + if (this.dxbt_data.ipAmount < 500) { + alert("ip数量最低500个"); + return; + } this.order_info.data = this.dxbt_data; break; case 4: diff --git a/Host/Views.Mobile/User/MyAccounts.cshtml b/Host/Views.Mobile/User/MyAccounts.cshtml index 60c6649..85644dd 100644 --- a/Host/Views.Mobile/User/MyAccounts.cshtml +++ b/Host/Views.Mobile/User/MyAccounts.cshtml @@ -110,7 +110,7 @@ @item.ProductName/@item.PackageName - @item.Account
@item.Pwd + @item.Account 复制
@item.Pwd 复制