ick(function(){
                    parent.layer.close(parent.layer.getFrameIndex(window.name));
                });
                //生成随机密码
                layui.$("#random_paw").click(function(){
                    layui.$("input[name='share_password']").val(generateRandomCode())
                });
                //随机码生成
                let generateRandomCode = function() {
                    var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    