diff --git a/Host/Views/User/MyAccounts.cshtml b/Host/Views/User/MyAccounts.cshtml
index 2e29698..f9dd28c 100644
--- a/Host/Views/User/MyAccounts.cshtml
+++ b/Host/Views/User/MyAccounts.cshtml
@@ -88,7 +88,7 @@
.editList {
position: fixed;
width: 400px;
- height: 240px;
+ height: 260px;
left: 50%;
top: 50%;
margin-left: -200px;
@@ -104,9 +104,32 @@
display: none;
}
- .editList form, .zhanghaoCon form, .tab-content {
- width: 100%;
- }
+ .editList form, .zhanghaoCon form, .tab-content {
+ 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 {
border-bottom: 1px solid #3157ad !important;
@@ -304,6 +327,21 @@
+
+
为了给您带来更好的服务体验,请完善qq号和微信号。立即完善》
筛选功能已优化完成,可正常使用,更加便捷。
@@ -1322,6 +1353,85 @@
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 () {
var accounts = [];