吕梁营销型网站建设费用iis部署网站 红叉

web/2025/10/1 7:46:01/文章来源:
吕梁营销型网站建设费用,iis部署网站 红叉,做网站的技术性说明,wordpress 颜色选择器node+mysql实现账户登录 注意效果图项目插件代码参数说明短信验证模块邮箱验证模块注册方式登录方式密码重置前端页面部分登录页面账户登录页面(login.html)短信验证登录页面(smsLogin.html)邮箱登录页面(emailLogin.html)注册部分页面短信验证注册页面(register.html)邮… node+mysql实现账户登录 注意效果图项目插件代码参数说明短信验证模块邮箱验证模块注册方式登录方式密码重置 前端页面部分登录页面账户登录页面(login.html)短信验证登录页面(smsLogin.html)邮箱登录页面(emailLogin.html) 注册部分页面短信验证注册页面(register.html)邮箱验证注册(emailRegister.html) 密码重置部分页面短信验证密码重置(restPassword.html)邮箱验证密码重置(emailRest.html) js部分数据库连接db.jsSQL语句部分(db/account.js)路由下的js部分(router/*)account.jsapi.jsemail.js app.jsMySQL 注意 项目中所用到的验证码模块都不是虚拟的,手机号短信验证调用的是阿里云的短信服务模块,QQ邮箱验证码是调用邮件服务模块 效果图 项目插件 layui ,layui消息通知插件(notify) //Express npm install express //body-parser npm install body-parser //阿里云相关短信服务 npm install @alicloud/dysmsapi20170525 npm install @alicloud/openapi-client npm install @alicloud/tea-util //mysql2 npm install mysql2 //邮件 npm install nodemailer 代码参数说明 短信验证模块 邮箱验证模块 注册方式 登录方式 密码重置 前端页面部分 登录页面 账户登录页面(login.html) !DOCTYPE html html headmeta charset="utf-8"meta name="viewport" content="width=device-width, initial-scale=1"title暖意书栈登录/title!-- 设置系统图标 --link rel="shortcut icon" href="../icon/login.ico" type="image/x-icon" /!-- 引用layui文件中layui.css --link rel="stylesheet" href="../layui/css/layui.css" media="all"/link /head style.login-container{width: 320px; margin: 241px auto 0;}.reg-other .layui-icon{position: relative; display: inline-block; margin: 0 15px; top: 2px; font-size: 30px;}body {background-image: url(../image/login_index.jpg);background-size: cover;background-repeat: repeat;}.register-link-container {text-align: right; /* 右对齐文本 */}/style body form class="layui-form" id="loginForm"div class="login-container"div class="layui-form-item"div class="layui-input-wrap"div class="layui-input-prefix"i class="layui-icon layui-icon-username"/i/divinput type="number" name="account" lay-verify="required|phone" placeholder="账户" lay-reqtext="请先填写账户" lay-vertype="tips" autocomplete="off" class="layui-input" lay-affix="clear"/div/divdiv class="layui-form-item"div class="layui-input-wrap"div class="layui-input-prefix"i class="layui-icon layui-icon-password"/i/divinput type="password" name="password" lay-verify="required" placeholder="密 码" lay-reqtext="请填写密码" lay-vertype="tips" autocomplete="off" class="layui-input" lay-affix="eye"/div/divdiv class="layui-form-item"input type="checkbox" name="remember" lay-skin="primary" title="记住密码"a href="/rest" style="float: right; margin-top: 7px;color: #435594;"忘记密码?/a/divdiv class="layui-form-item"button class="layui-btn layui-btn-fluid layui-bg-black" lay-submit lay-filter="loginBtn"登nbsp;nbsp;nbsp;nbsp;录/button/divdiv class="layui-form-item "a href="/sms" style="position: fixed;color: #435594;"短信快捷登录/adiv class="register-link-container"a href="/register" style="color: #435594;"注册帐号/a /divdiv style="display: flex; align-items: center;"hr class="layui-border-green" style="height: 1px; flex: 1; margin: 0 5px;"span style="color: gray;font-size: 12px;"其他方式登录/spanhr class="layui-border-green" style="height: 1px; flex: 1; margin: 0 5px;"/divdiv class="reg-other"a href="/emailLogin"title="使用QQ邮箱登录" i class="layui-icon layui-icon-login-qq" style="color: #1680eb;"/i/aa href="javascript:;" title="使用微信账号登录" onclick="layer.msg('功能设计开发中')"i class="layui-icon layui-icon-login-wechat" style="color: #36761e;"/i/aa href="javascript:;" title="使用微博账号登录" onclick="layer.msg('功能设计开发中')"i class="layui-icon layui-icon-login-weibo" style="color: #cf1900;"/i/aa href="javascript:;" title="使用GitHub账号登录" onclick="layer.msg('功能设计开发中')"i class="layui-icon layui-icon-github" /i/aa href="javascript:;" title="使用Windows账户登录" onclick="layer.msg('功能设计开发中')"i class="layui-icon layui-icon-windows" style="color: #91b0d4;" /i/a/div/div/div /form!-- layui.js 地址 -- script src="../layui/layui.js"/script script src="../notify/notify.js"/script scriptlayui.use(['notify'],function(){var $ = layui.$;var form = layui.form;var layer = layui.layer;var util = layui.util;var notify = layui.notify;// 方法2: 引用第三方消息通知组件进行表单提交事件form.on('submit(loginBtn)', function(data){var field = data.field; // 获取表单字段值if(field.password.length 6){notify.info({msg:'密码长度不能小于6位',position:'vcenter',shadow:true, closable:false,duration:1000});return false;}/*加载提示:用法 notify.info({msg:"提示",//提示信息closable:true,//是否显示关闭按钮 默认是trueposition:'vcenter',// 指定弹出位置:默认topCenter,可选值:bottomRight|bottomLeft|topRight|topLeft|topCenter|bottomCenter|vcenter"shadow:true,// 是否显示阴影默认是falseduration:2000,//显示时间默认3000,为 0 时不自动关闭});*/notify.loading({msg:'验证登录中,请稍后...',position:'vcenter',shadow:true, closable:false});//显示加载中setTimeout(function(){notify.destroyAll();//关闭所有通知$.ajax({url: '/user/login',type: 'post',data: {account:field.account,password:field.password,key:1 //1:账户手机号登录;2:短信验证登录;3:邮箱登录}, // 数据转换为JSON字符串success: function(res) {if(res.code == 0){//弹出成功提示notify.success({msg:res.msg,position:'vcenter',shadow:true, closable:false,duration:1000});//跳转到系统首页,延迟500毫秒setTimeout(function(){location.href = '/main';}, 500);}else{//弹出错误提示notify.error({msg:res.msg,position:'vcenter',shadow:true, closable:false,duration:1000});}}}).done(function () {setTimeout(function () {parent.location.reload();//重载页面}, 1500);});}, 2000);// 阻止表单跳转return false; //如果不加的话,表单不会跳转但不会进行登录操作});});/script/body /html短信验证登录页面(smsLogin.html) !DOCTYPE html html headmeta charset="utf-8"meta name="viewport" content="width=device-width, initial-scale=1"title暖意书栈快捷账户登录/title!-- 设置系统图标 --link rel="shortcut icon" href="../icon/smslogin.ico" type="image/x-icon" /!-- 引用该 layui.css 地址 --link href="../layui/css/layui.css" rel="stylesheet" /head style.reg-container{width: 320px; margin: 240px auto 0;}.reg-other .layui-icon{position: relative; display: inline-block; margin: 0 2px; top: 2px; font-size: 26px;}body {background-image: url(../image/login_index.jpg);background-size: cover;background-repeat: repeat;}.register-link-container {text-align: right; /* 右对齐文本 */}/style body form class="layui-form"div class="reg-container"div class="layui-form-item"div class="layui-input-wrap"div class="layui-input-prefix"i class="layui-icon layui-icon-cellphone"/i/divinput type="number" name="cellphone" value="" lay-verify="required|phone" lay-vertype="tips" placeholder="手机号" lay-reqtext="请先填写手机号" autocomplete="off" class="layui-input" id="login-cellphone"/div/divdiv class="layui-form-item"div class="layui-row"div class="layui-col-xs7"div class="layui-input-wrap"div class="layui-input-prefix"i class="layui-icon layui-icon-vercode"/i/divinput type="text" name="vercode" value="" lay-verify="required" placeholder="验证码" lay-vertype="tips" lay-reqtext="请填写验证码" autocomplete="off" class="layui-input"/div/divdiv class="layui-col-xs5"div style="margin-left: 11px;"button type="button" class="layui-btn layui-btn-fluid layui-bg-cyan" lay-on="get-vercode"获取验证码/button/div/div/div/divdiv class="layui-form-item"button class="layui-btn layui-btn-fluid layui-bg-cyan" lay-submit lay-filter="loginBtn"登 nbsp;nbsp;nbsp;nbsp; 录/button/divdiv class="layui-form-item reg-other"label其他账号登录/labelspan style="padding: 0 21px 0 6px;"a href="/emailLogin"title="使用QQ邮箱登录" "i class="layui-icon layui-icon-login-qq" style="color: #124e89;"/i/aa href="javascript:;" title="使用微信账号登录" onclick="layer.msg('功能设计开发中')"i class="layui-icon layui-icon-login-wechat" style="color: #36761e;"/i/aahref="javascript:;" title="使用微博账号登录" οnclick="layer.msg('功能设计开发中')"i class="layui-icon layui-icon-login-weibo" style="color: #cf1900;"/i/a/span或a href="/" style="color: #435594;"返回账户登录/a/div/div /form!-- 请勿在项目正式环境中引用该 layui.js 地址 -- script src="../layui/layui.js"/script script src="../notify/notify.js"/script script layui.use(function(){var $ = layui.$;var form = layui.form;var layer = layui.layer;var util = layui.util;// 提交事件form.on('submit(loginBtn)', function(data){var field = data.field; // 获取表单字段值notify.loading({msg:'验证登录中,请稍后...',position:'vcenter',shadow:true, closable:false});//显示加载中setTimeout(function(){notify.destroyAll();$.ajax({url: '/api/verifyCode',type: 'POST',data: {phoneNumber:field.cellphone,//手机号verificationCode:field.vercode,//验证码code:2//1代表注册;2:登录;3:密码重置}, // 数据转换为JSON字符串success: function(res) {if(res.success){//进行账户注册操作$.ajax({url: '/user/login',type: 'POST',data: {account:field.cellphone,key:2 //1:账户登录;2:短信登录;3:邮箱登录}, // 数据转换为JSON字符串success: function(res) {if(res.code == 0){//弹出成功提示notify.success({msg:res.msg,position:'vcenter',shadow:true, closable:false,duration:1000});//跳转到系统首页,延迟500毫秒setTimeout(function(){location.href = '/main';}, 500);}else if(res.code == 1){notify.warning({msg:res.msg,position:'vcenter',shadow:true, closable:false,duration:1000})}else{notify.error({msg:res.msg,position:'vcenter',shadow:true, closable:false,duration:1000})}}});}else{notify.error({msg:res.message,position:'vcenter',shadow:true, closable:false,duration:1000})}}}).done(function () {setTimeout(function () {parent.location.reload();//重载页面}, 1500);});},2000)return false; // 阻止默认 form 跳转});// 普通事件util.on('lay-on', {// 获取验证码'get-vercode': function(othis){var isvalid = form.validate('#login-cellphone'); // 主动触发验证,v2.7.0 新增 //获取输入框的手机号值var phoneNumber = $('#login-cellphone').val();//验证手机号是否是正确手机号if(phoneNumber!=''){if (!/^1[3456789]\d{9}$/.test(phoneNumber)) {notify.warning({msg:'请输入正确的手机号',position:'vcenter',shadow:true, closable:false,duration:1500});return false;}}// 验证通过if(isvalid){$.ajax({url: '/api/sendCode',type: 'POST',data: { phoneNumber:phoneNumber,//手机号code:2//验证码类型},success: function(response) {if (response.success) {notify.success({msg:response.message,position:'vcenter',shadow:true, closable:false,duration:1200});// 按钮显示倒计时(60秒后重新获取)var countdown = 60; // 直接用秒数进行倒计时othis.attr('disabled', true); // 在开始倒计时前禁用按钮othis.text(countdown + '秒后重新获取');var interval = setInterval(function() {if (countdown = 0) { // 当倒计时小于等于0时clearInterval(interval); // 清除倒计时定时器othis.text('获取验证码'); // 恢复按钮文本othis.removeAttr('disabled'); // 恢复按钮的可点击状态} else {othis.text(countdown + '秒后重新获取'); // 更新倒计时文本countdown--; // 减少倒计时秒数}}, 1000); // 每1000毫秒执行一次,即每秒倒计时递减} else {notify.error({msg:response.message,position:'vcenter',shadow:true, closable:false,duration:1000});}},error: function() {notify.error({msg:response.message,position:'vcenter',shadow:true, closable:false,duration:1000});}});}}}); }); /script/body /html邮箱登录页面(emailLogin.html) !DOCTYPE html html headmeta charset="utf-8"meta name="viewport" content="width=device-width, initial-scale=1"title暖意书栈邮箱登录/title!-- 设置系统图标 --link rel="shortcut icon" href="../icon/email.ico" type="image/x-icon" /!-- 引用layui文件中layui.css --link rel="stylesheet" href="../layui/css/layui.css" media="all"/link /head style.login-container{

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/84926.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

网站排名优化公司哪家好品牌网站建设优化公司

好长一段时间没有关注vue脚手架了,昨天因为需要个后台模板,用脚手架 搞了一下,竟然发现指令不能用了,看官方文档已经升级3.0,也是试的玩了一下, 大致写写怎么玩的!12341.先全局安装vue-cli3.0 …

做网站空间和服务器的电脑上怎么运行wordpress

欢迎来到《小5讲堂》 大家好,我是全栈小5。 这是是《前端》序列文章,每篇文章将以博主理解的角度展开讲解, 特别是针对知识点的概念进行叙说,大部分文章将会对这些概念进行实际例子验证,以此达到加深对知识点的理解和掌…

中国建筑装饰网站建立网站如何盈利

1.背景信息 Background 针对连锁餐饮业能耗高且能源管理不合理的问题,利用计算机网络技术、通讯技术、计量控制技术等信息化技术,实现能源资源分类分项计量和能源资源运行监管功能,清晰描述各分店总的用能现状;实时监测各供电回路…

网站开发合同缴纳印花税吗做网站如何引流

在翻出12年前用C#写的自我管理软件之后,进一步激发了本猫的怀旧情怀。上一篇在此:竟然无意间翻出12年前自己用C#写的程序这不,昨天竟然又找出2010年写的一款Windows系统入侵检测及防御小工具,当时命名是:NtInfoGuy!对于Windows的内部&#xf…

我要看一集片做网站中山网站建设方案托管

目录​​​​​​​​​​​​​​ 表格的主要作用: 表格的基本语法: 表格相关的标签 合并单元格: 实战: 表格的主要作用: 表格主要是用来展示数据的,使用表格来展示数据,数据可读性更好…

做乐高肖像的网站做网站要几天

在论坛上看到很多关于datagrid,gridview,datalist,rpeater提取header,footer中控件的问题,整理了一下.供大家分享下面我以DataGrid为便进行说明.footer栏又称页脚栏,在很多时候我们可以在该栏放页码及相当的功能键.但是最后在获得这些控件引用的时候就会有点麻烦,由于footer(页…

网站建设按钮生物制药公司网站建设

题目链接: 素数判定https://www.nowcoder.com/share/jump/437195121691718831561 描述 给定一个数n,要求判断其是否为素数(0,1,负数都是非素数)。 输入描述: 测试数据有多组,每组输入一个数…

优惠券直播网站怎么做的爱站网官网

随着云计算技术的飞速发展,云原生成为了企业数字化转型的重要方向。云原生技术通过容器化、微服务、持续集成/持续部署(CI/CD)等实践,帮助企业构建和运行可扩展的应用程序。然而,云原生技术的复杂性也给开发团队带来了…

国外做内容网站微信社群运营工具

重点 更多前端知识 诚邀各位前端从事者爱好者加入前端大佬技术交流社区,本社区主要分享技术栈、个人心得、技术交流、问题解惑等前端体系交流 点击下方文字加入 前端大佬技术交流社区 1. 函数的定义和调用 1.1 函数的定义方式 方式1 函数声明方式 function 关键…

培训网站图片济南品牌网站建设价格

形态学中的膨胀操作即让照片变得更大,与腐蚀操作互为逆运算 cv2.dilate(erosion,kernel,iterations 1) 第一个参数:图像对象名称 第二个参数:卷积核的大小 第三个参数:迭代次数 此时就可与腐蚀操作进行相结合,腐蚀去毛…

罗湖网站建设哪家好最好最全的搜索引擎

文章目录 前言一、QString与std::string二、QString与int三、QString与double四、QString与char*五、大小端转换 前言 本文涉及QString转int、QString转std::string、QString转double、QString转char*及大小端转换 一、QString与std::string QString qstr "你好&#x…

个人网站设计论文摘要二手书交易网站开发毕业设计

官网地址下载安装包点击下载 会自动识别你当前的系统,或者点击你需要安装的平台或者选择其他版本执行安装高级选项说明:Install for all users 所有用户可使用Associate files with Python 关联PY相关的文件Create shortcuts for installed applications…

网站建设 技术团队html5 网站自适应

一.ZLMediaKit(webrtc)在CentOS7部署与启动 # 1. 卸载旧版本 yum remove git # 2. 安装 yum 源的 Git 版本 yum install -y git # 3. 查看版本 git version # 输出 git version 1.8.3.1配置全局环境变量 # 1. 编辑配置文件 vim /etc/profile # 2. 在 /etc/profile 文件中末尾…

如何自建淘宝客网站小程序开发商有哪些

1 xpath定位 没有某个属性的元素 例如定位没有class属性的td tds tr.xpath(.//td[not(class)])

如何在云服务器上搭建网站国外有哪做交互设计网站

本篇文章是我在B站上看到关于计算机网络的介绍视频收到的启发。本篇文章的内容来自【网络】半小时看懂<计算机网络>_哔哩哔哩_bilibili 一、物理层 从常理来说&#xff0c;进行连个设备之间的通讯&#xff0c;首先最容易想到的就是使用一根线连接两个设备进行通讯。但是…

通过关键词优化提升企业网站centos yum wordpress

Arthas是阿里巴巴开源的Java诊断工具&#xff0c;采用命令行交互的形式进行问题的定位与诊断。它能够帮助你. 解决以下问题&#xff1a; 这个类从哪个 jar 包加载的&#xff1f;为什么会报各种类相关的 Exception&#xff1f;我改的代码为什么没有执行到&#xff1f;难道是我…

静态网站建设背景设计网站开发方案流程

1.View层&#xff08;视图层&#xff09; 职责&#xff1a;负责数据的展示和用户交互。在Web应用中&#xff0c;View层通常与HTML、CSS和JavaScript等技术相关。 技术实现&#xff1a;在Spring MVC中&#xff0c;View层可以使用JSP、Thymeleaf、FreeMarker等模板引擎来实现。…

郑州建设网站企业网站视频主持人网

请阅读【Trace32 ARM 专栏导读】 文章目录 Trace32 Go.directGo配合程序断点使用Go 配合读写断点使用Go 快速回到上一层函数 System.Mode Go Trace32 Go.direct TRACE32调试过程中&#xff0c;会经常对芯片/内核进行控制&#xff0c;比如全速运行、暂停、单步等等。这篇文章先…

中企动力的网站wordpress+百度云图安装

快速上手Spring Cloud 一&#xff1a;Spring Cloud 简介 快速上手Spring Cloud 二&#xff1a;核心组件解析 快速上手Spring Cloud 三&#xff1a;API网关深入探索与实战应用 快速上手Spring Cloud 四&#xff1a;微服务治理与安全 快速上手Spring Cloud 五&#xff1a;Spring …