网上商城详细设计说明书
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
网上商城详细设计说明书(范本1)
2.会员模块
2.1用户注册页面
图2-2.1-用户注册
///
/// 用户名注册校验
///
If(用户名==空)
{
提示“用户名不能为空”
}
Else
{
UserNameChk 校验系统中是否存在指定用户并传给userID
if(userID>0)
{
提示“这个用户名还未注册,赶快注册吧!!”
返回
}}
///
/// 用户注册
///
If(用户名==0)
{
提示“用户名不能为空”
regChkPass值为 0
返回
}
Else{
UserNameChk 校验系统中是否存在指定用户并传给userID
If(userID>0)
{
提示“用户名已经被注册,请换个名字再试试”
regChkPass值为 0
}
}
If(UserPwd==0)
{
提示“密码不能为空!”
regChkPass值为 0
返回
}
If(确认密码==0)
{
提示“确认密码不能为空!”
regChkPass值为 0
返回
}
Else
{
If(确认密码!=密码)
{
提示“确认密码错误!”
regChkPass值为 0
返回
}}
If(密码提问为空)
提示“密码提问不能为空!”
regChkPass值为 0
返回
}
If(密码回答==0)
{
提示“密码回答不能为空!”
regChkPass值为 0
返回
}
If(真实姓名==0)
{
提示“真实姓名不能为空!”
regChkPass值为 0
返回
}
If(手机号码==0)
{
提示“手机号码不能为空!”
regChkPass值为 0
返回
}
Else
If(UserMobile长度不为十一位|| UserMobile前两位不为“13”)
提示“手机号码错误!”
regChkPass值为 0
返回
}
}
If(UserTelphone1==0|| UserTelphone2==0)
{
提示“电话号码不能为空”
regChkPass值为 0
返回
}
If(UserPostcode==0)
{
提示“电子邮件不能为空”
regChkPass值为 0
返回
}
If(UserAddress==0)
{
提示“详细地址不能为空”
regChkPass值为 0
返回
If(regChkPass 值为 1)
{
StringUtil.CheckStr对输入的用户名进行过滤传给字符串userName
StringUtil.CheckStr对输入的密码进行解密传给字符串userPwd StringUtil.CheckStr方法对输入的PwdQuestion过滤传给字符串pwdQuestion
StringUtil.CheckStr方法对输入的PwdAnswer过滤传给字符串PwdAnswer StringUtil.CheckStr方法对输入的UserRealName过滤传给字符串UserRealName StringUtil.CheckStr方法对输入的UserSex过滤传给字符串UserSex
StringUtil.CheckStr方法对输入的UserTelphone1和UserTelphone2过滤传给字符串
userTelphone
StringUtil.CheckStr方法对输入的UserEmail过滤传给字符串UserEmail
StringUtil.CheckStr方法对输入的UserMobile过滤传给字符串userMobile StringUtil.CheckStr方法对输入的UserPostcode过滤传给字符串userPostcode StringUtil.CheckStr方法对输入的UserAddress过滤传给字符串userAddress Request对象获取客户端地址并传给userLastVisitIP
调用UserReg函数把(userName, userPwd, pwdQuestion, pwdAnswer, userRealName, userSex, userTelphone, userEmail, userMobile, userPostcode, userAddress, userLastVisitIP)添加到表中,并把返回值传给变量regOK
If(regOk> 0)
{
把userName传给Session对象中的UserName
UserChk检查userName和 userPwd传给Session对象中的UserID
}else
{