批量修改密码
This commit is contained in:
@@ -88,7 +88,7 @@
|
|||||||
.editList {
|
.editList {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 240px;
|
height: 260px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
margin-left: -200px;
|
margin-left: -200px;
|
||||||
@@ -108,6 +108,29 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#update_many_passwd {
|
||||||
|
position: fixed;
|
||||||
|
width: 400px;
|
||||||
|
height: 260px;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin-left: -200px;
|
||||||
|
margin-top: -120px;
|
||||||
|
z-index: 3;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0px 6px 8px 6px #ccc;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding: 30px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#update_many_passwd form, .zhanghaoCon form, .tab-content {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.activetit {
|
.activetit {
|
||||||
border-bottom: 1px solid #3157ad !important;
|
border-bottom: 1px solid #3157ad !important;
|
||||||
}
|
}
|
||||||
@@ -304,6 +327,21 @@
|
|||||||
<p class="text-center"><button type="button" class="btn btn-primary" v-on:click="UpdateAccountPwd">提交</button><button type="button" class="btn btn-danger quxiao" style="margin-left:20px;">取消</button></p>
|
<p class="text-center"><button type="button" class="btn btn-primary" v-on:click="UpdateAccountPwd">提交</button><button type="button" class="btn btn-danger quxiao" style="margin-left:20px;">取消</button></p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="update_many_passwd">
|
||||||
|
<form>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>账户:</label>
|
||||||
|
<input type="text" class="form-control" placeholder="" id="update_many_account">
|
||||||
|
<input type="hidden" class="form-control" placeholder="" id="update_many_proid">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>新密码:</label>
|
||||||
|
<input type="text" class="form-control" placeholder="" id="update_many_pwd">
|
||||||
|
</div>
|
||||||
|
<p class="text-center"><button type="button" id="update_many_submit" class="btn btn-primary">提交</button><button type="button" class="btn btn-danger quxiao_update_many" style="margin-left:20px;">取消</button></p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
<p class="wanshan"><img src="~/img/smile.png"> 为了给您带来更好的服务体验,请完善qq号和微信号。<a class="edit" asp-action="index" asp-controller="user" asp-route-e="1">立即完善》</a></p>
|
<p class="wanshan"><img src="~/img/smile.png"> 为了给您带来更好的服务体验,请完善qq号和微信号。<a class="edit" asp-action="index" asp-controller="user" asp-route-e="1">立即完善》</a></p>
|
||||||
<p style="text-align:center;">筛选功能已优化完成,可正常使用,更加便捷。</p>
|
<p style="text-align:center;">筛选功能已优化完成,可正常使用,更加便捷。</p>
|
||||||
<div class="toolsBar">
|
<div class="toolsBar">
|
||||||
@@ -337,15 +375,7 @@
|
|||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<select v-model="searchModel.PackageId" @@change="search" style="height:35px;">
|
<select v-model="searchModel.PackageId" @@change="search" style="height:35px;">
|
||||||
<option value="0">全部套餐</option>
|
<option value="0">全部套餐</option>
|
||||||
<option value="测试卡">测试卡</option>
|
<option v-for="item in packages" v-if="item.Status == 1" :value="item.Name">{{item.Name}}</option>
|
||||||
<option value="天卡">天卡</option>
|
|
||||||
<option value="周卡">周卡</option>
|
|
||||||
<option value="月卡">月卡</option>
|
|
||||||
<option value="月卡(活动)">月卡(活动)</option>
|
|
||||||
<option value="双月卡(活动)">双月卡(活动)</option>
|
|
||||||
<option value="季卡">季卡</option>
|
|
||||||
<option value="季卡(活动)">季卡(活动)</option>
|
|
||||||
<option value="年卡">年卡</option>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -361,6 +391,7 @@
|
|||||||
<button type="button" class="btn btn-danger btn-rebuy"><img src="~/img/xufei.png"> 续费</button>
|
<button type="button" class="btn btn-danger btn-rebuy"><img src="~/img/xufei.png"> 续费</button>
|
||||||
<button type="button" class="btn btn-primary btn-refund">
|
<button type="button" class="btn btn-primary btn-refund">
|
||||||
<img src="~/img/tui.png"> 退货</button>
|
<img src="~/img/tui.png"> 退货</button>
|
||||||
|
<button type="button" class="btn btn-warning btn-update-passwd">批量修改密码</button>
|
||||||
<a style="color:red"> *批量续费可通过筛选和搜索功能精准定位账号</a>
|
<a style="color:red"> *批量续费可通过筛选和搜索功能精准定位账号</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1322,6 +1353,85 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(".btn-update-passwd").on('click', function () {
|
||||||
|
var accounts = [];
|
||||||
|
var accountModels = [];
|
||||||
|
var isrefund = false;
|
||||||
|
var product_flag = false;
|
||||||
|
|
||||||
|
var product_id = 0;
|
||||||
|
$.each($('input:checkbox:checked'), function () {
|
||||||
|
var ppip = $(this).attr('a-pid');
|
||||||
|
|
||||||
|
product_id = ppip;
|
||||||
|
|
||||||
|
var account = $(this).val();
|
||||||
|
if (account) {
|
||||||
|
var accountItem = {
|
||||||
|
account: account,
|
||||||
|
pid: $(this).attr('a-pid')
|
||||||
|
}
|
||||||
|
accountModels.push(accountItem)
|
||||||
|
accounts.push($(this).val())
|
||||||
|
var status = $(this).attr('a-status');
|
||||||
|
if (status == 'Refund') {
|
||||||
|
isrefund = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ppip != '3' && ppip != '29' && ppip != '18' && ppip != '26' && (typeof ppip != 'undefined')) {
|
||||||
|
product_flag = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (product_flag) {alert('仅支持极狐、蘑菇、极光、猎豹');return;}
|
||||||
|
if (accountModels.length == 0) { alert('请选择账号'); return; }
|
||||||
|
if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; }
|
||||||
|
if (isrefund) { alert('退款账号暂不支持该操作'); return; }
|
||||||
|
|
||||||
|
$("#update_many_account").val(accounts.join(','));
|
||||||
|
$("#update_many_proid").val(product_id);
|
||||||
|
$("#update_many_passwd").show();
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$(".quxiao_update_many").on('click', function () {
|
||||||
|
$("#update_many_passwd").hide();
|
||||||
|
})
|
||||||
|
|
||||||
|
$("#update_many_submit").on('click', function () {
|
||||||
|
$("#update_many_passwd").hide();
|
||||||
|
let data = {
|
||||||
|
cookie:document.cookie,
|
||||||
|
accounts:$("#update_many_account").val(),
|
||||||
|
pwd:$("#update_many_pwd").val(),
|
||||||
|
productId:$("#update_many_proid").val()
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: 'https://php-api.juip.com/product/account/updatePasswd',
|
||||||
|
dataType: "json",
|
||||||
|
data:JSON.stringify(data),
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (res) {
|
||||||
|
if(res.Code == 10000){
|
||||||
|
alert('修改成功');
|
||||||
|
window.location.reload();
|
||||||
|
} else {
|
||||||
|
alert('修改失败');
|
||||||
|
}
|
||||||
|
//if (res.Code == 10000) {
|
||||||
|
// that.onLineData = res.Data;
|
||||||
|
// for (var i = 0; i < that.onLineData.length; i++) {
|
||||||
|
// that.onLineData[i].ProductId = productId;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
//续费
|
//续费
|
||||||
$(".btn-rebuy").on('click', function () {
|
$(".btn-rebuy").on('click', function () {
|
||||||
var accounts = [];
|
var accounts = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user