From 035edfa382d349ba66240fbfef68c14c7cfc95d1 Mon Sep 17 00:00:00 2001 From: admin <1101184511@qq.com> Date: 星期五, 08 八月 2025 01:20:21 +0800 Subject: [PATCH] 功能完善 --- src/main/resources/static/admin/order-client-list.html | 30 ++++++++++++++++++++++++++++-- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/resources/static/admin/order-client-list.html b/src/main/resources/static/admin/order-client-list.html index f70be70..3ebf2be 100644 --- a/src/main/resources/static/admin/order-client-list.html +++ b/src/main/resources/static/admin/order-client-list.html @@ -141,6 +141,32 @@ }); } + function updatePwd(id) { + // 淇敼瀵嗙爜 + layer.prompt({ + formType: 2, + value: '', + title: '璇疯緭鍏ュ瘑鐮�', + area: ['200px', '50px'] //鑷畾涔夋枃鏈煙瀹介珮 + }, function(value, index, elem){ + if(value.length < 6){ + layer.msg("瀵嗙爜涓嶈兘灏戜簬6浣嶆暟"); + return; + } + $.post("/admin/api/clientinfo/js2/setpwd", {"id":id,"pwd":value}, function(response) { + if (response.code == 0) { + layer.close(index); + layer.msg("瀵嗙爜淇敼鎴愬姛"); + } else { + layer.msg(response.msg); + } + }, 'json').fail(function(jqXHR, textStatus, errorThrown) { + layer.msg("缃戠粶璇锋眰澶辫触"); + }); + }); + } + + layui.use(['form', 'jquery', 'layer', 'table'], function() { var table = layui.table; var form = layui.form; @@ -221,11 +247,11 @@ { field: '', title: '鎿嶄綔', - width: 120, + width: 200, fixed: 'right', align: 'center', templet: function(d) { - return '<div><a href="javascript:void(0)" onclick="updateClient(' + d["client.id"] + ')" class="layui-table-link">淇敼</a></div>'; + return '<div><a href="javascript:void" onclick="updatePwd(' + d["client.id"] + ')" class="layui-table-link">璁剧疆瀵嗙爜</a> <a href="javascript:void(0)" onclick="updateClient(' + d["client.id"] + ')" class="layui-table-link">淇敼</a></div>'; } } ] -- Gitblit v1.8.0