This commit is contained in:
“wanyongkang”
2021-03-16 15:53:16 +08:00
parent 02519d99e4
commit e9a971e1ab

View File

@@ -13,7 +13,7 @@
<div id="app">
<div class="quanjushousuo">
<p><input type="text" v-model="search_all_data" name="KeyWord" placeholder="输入地区/名称/服务器" id="KeyWord" /><button type="submit" v-on:click="search_all()" class="btnOrange">搜索全部</button></p>
<p><img src="~/m/img/shuju.png"> 实时总线路:@(lineTotalCount)条 <img src="~/m/img/shuju.png"> 实时可用线路:@(lineCount)条</p>
<p><img src="~/m/img/shuju.png"> 实时总线路:{{ count }}条 <img src="~/m/img/shuju.png"> 实时可用线路:{{ use_count }}条</p>
<p>所有线路均支持:【电脑/安卓/苹果】【IP/L2TP/SSTP】</p>
</div>
@@ -139,7 +139,9 @@
l2tp:'',
search_field:'',
sstp:'',
info: {}
info: {},
count:'0',
use_count:'0',
},
computed: {
@@ -154,6 +156,8 @@
select_product(ProductId){
this.product_id = ProductId;
let datalist = [];
let count = 0;
let use_count = 0;
$("li").removeClass("cpActive");
$("#product-"+ProductId).addClass("cpActive");
switch(ProductId){
@@ -230,9 +234,13 @@
async:false,
success: function (res) {
datalist = res.data;
count = res.count;
use_count = res.use_count;
}
});
this.table_data = datalist;
this.count = count;
this.use_count = use_count;
},
search_all(){
if(!this.search_all_data){