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 复制 |
|
{{site.city}} |
{{site.supply}} |
- {{site.nasname}} |
+ {{site.nasname}} 复制 |
{{site.ip}} |
{{site.daikuan}} |
{{site.online}} |
@@ -343,7 +343,7 @@
data: {
table_data: [],
search_all_data: '',
- search_product_data:'',
+ search_product_data:'混拨',
product_id:0,
l2tp:'',
search_field:'全部',
@@ -363,6 +363,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/Product/Http.cshtml b/Host/Views/Product/Http.cshtml
index c9245bb..fc502d1 100644
--- a/Host/Views/Product/Http.cshtml
+++ b/Host/Views/Product/Http.cshtml
@@ -1013,6 +1013,7 @@ $(document).on("ready", function(e) {
//充值
recharge(money) {
this.order_info.money = money;
+ alert('此充值只针对HTTP,无法购买 动静态ip 以及其他产品,请确认仔细!');
},
//短效无限量购买时长修改
dxwxl_gmsc_reduce(){
@@ -1091,6 +1092,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/User/MyAccounts.cshtml b/Host/Views/User/MyAccounts.cshtml
index 5adc21d..fbade34 100644
--- a/Host/Views/User/MyAccounts.cshtml
+++ b/Host/Views/User/MyAccounts.cshtml
@@ -389,10 +389,10 @@
@item.CreateTime.ToString("yyyy.MM.dd") |
@item.ProductName |
@item.PackageName |
- @item.Account |
- @item.Pwd |
+ @item.Account 复制 |
+ @item.Pwd 复制 |
@(item.Remark)切换 |
- @(item.Raw) |
+ @(item.Raw) 复制 |
查看 |
@item.ConnectCount |
@@ -634,6 +634,31 @@
this.getProducts();
},
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("复制失败");
+ }
+ );
+ },
change_ip(account_id,package,account,old_ip){
this.province_city = [];
let data = {