修改删除接口
This commit is contained in:
@@ -379,6 +379,7 @@
|
||||
<th>剩余时间</th>
|
||||
<th>在线及踢线</th>
|
||||
<th>选择地区</th>
|
||||
<th>操作</th>
|
||||
<th>软件下载</th>
|
||||
</tr>
|
||||
@foreach (var item in Model)
|
||||
@@ -402,6 +403,7 @@
|
||||
<td class="blueT"><a @@click="online(@item.ProductId,'@item.Account')">查看</a> </td>
|
||||
<td class="blueT"><a v-if="@item.ProductId==19||@item.ProductId==13||@item.ProductId==17||@item.ProductId==1" @@click="assign_address(@item.ProductId,'@item.Account','@item.Pwd')">切换地区</a> </td>
|
||||
|
||||
<td class="blueT" ><a v-on:click="deleteacct(@item.Id)">删除</a></td>
|
||||
<td class="blueT"><a href="/product/soft">下载</a></td>
|
||||
</tr>
|
||||
} else {
|
||||
@@ -423,6 +425,7 @@
|
||||
<td class="blueT"><a @@click="online(@item.ProductId,'@item.Account')">查看</a> </td>
|
||||
<td class="blueT"><a v-if="@item.ProductId==19||@item.ProductId==13||@item.ProductId==17||@item.ProductId==1" @@click="assign_address(@item.ProductId,'@item.Account','@item.Pwd')">切换地区</a> </td>
|
||||
|
||||
<td class="blueT" ><a v-on:click="deleteacct('@item.Id')">删除</a></td>
|
||||
<td class="blueT"><a href="/product/soft">下载</a></td>
|
||||
</tr>
|
||||
}
|
||||
@@ -659,6 +662,30 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
deleteacct(Id) {
|
||||
|
||||
let data = {
|
||||
cookie:document.cookie,
|
||||
id: Id
|
||||
}
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'https://php-api.juip.com/manager/account/delete',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
alert('删除成功');
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
},
|
||||
change_ip(account_id,package,account,old_ip){
|
||||
this.province_city = [];
|
||||
let data = {
|
||||
|
||||
Reference in New Issue
Block a user