From 028187797d61083b19aee88f331a741fadab5ae8 Mon Sep 17 00:00:00 2001 From: molong Date: Mon, 27 Jun 2016 17:53:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E5=8D=87?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/config.php | 2 +- application/admin/controller/Content.php | 16 +- application/admin/controller/Model.php | 2 +- application/admin/view/content/index.html | 9 +- application/admin/view/model/add.html | 10 + application/admin/view/model/edit.html | 16 +- application/admin/view/order/index.html | 11 ++ application/common/controller/User.php | 21 +- application/common/model/User.php | 3 +- application/common/validate/Member.php | 7 +- application/common/widget/Ad.php | 1 + application/user/controller/Login.php | 19 +- application/user/static/css/member_login.css | 198 +++++++++++++++++++ application/user/view/login/index.html | 127 ++++++------ application/user/view/login/register.html | 147 ++++++++------ 15 files changed, 453 insertions(+), 136 deletions(-) create mode 100644 application/user/static/css/member_login.css diff --git a/application/admin/config.php b/application/admin/config.php index 81651663..60e804a4 100644 --- a/application/admin/config.php +++ b/application/admin/config.php @@ -11,7 +11,7 @@ return array( 'user_administrator' => 1, - 'url_common_param'=>true, + //'url_common_param'=>true, 'template' => array( ), diff --git a/application/admin/controller/Content.php b/application/admin/controller/Content.php index 23db5dc3..3d328304 100644 --- a/application/admin/controller/Content.php +++ b/application/admin/controller/Content.php @@ -48,11 +48,12 @@ class Content extends Admin{ $grid_list = get_grid_list($this->modelInfo['list_grid']); $order = "id desc"; $map = array(); + $field = array_filter($grid_list['fields']); if ($this->modelInfo['extend'] == 1) { $map['model_id'] = $this->modelInfo['id']; + array_push($field, 'is_top'); } - - $field = array_filter($grid_list['fields']); + $list = $this->model->where($map)->field($field)->order($order)->paginate(15); $data = array( @@ -60,9 +61,14 @@ class Content extends Admin{ 'list' => $list, 'page' => $list->render() ); + if($this->modelInfo['template_list']){ + $template = 'content/' . $this->modelInfo['template_list']; + }else{ + $template = 'content/index'; + } $this->assign($data); $this->setMeta($this->modelInfo['title'] . "列表"); - return $this->fetch('content/index'); + return $this->fetch($template); } /** @@ -104,7 +110,7 @@ class Content extends Admin{ return $this->error($this->model->getError(),''); } }else{ - $id = input('get.id','','trim,intval'); + $id = input('id','','trim,intval'); if (!$id) { return $this->error("非法操作!"); } @@ -129,7 +135,7 @@ class Content extends Admin{ */ public function del(){ $id = input('get.id','','trim'); - $ids = input('post.ids/a',array()); + $ids = input('post.ids',array()); array_push($ids, $id); if (empty($ids)) { return $this->error("非法操作!"); diff --git a/application/admin/controller/Model.php b/application/admin/controller/Model.php index 5562a188..ad04a559 100644 --- a/application/admin/controller/Model.php +++ b/application/admin/controller/Model.php @@ -60,7 +60,7 @@ class Model extends Admin{ * @author huajie */ public function edit() { - $id = input('get.id', ''); + $id = input('id', '', 'trim,intval'); if (empty($id)) { return $this->error('参数不能为空!'); } diff --git a/application/admin/view/content/index.html b/application/admin/view/content/index.html index e5f412c2..22481e35 100644 --- a/application/admin/view/content/index.html +++ b/application/admin/view/content/index.html @@ -35,7 +35,7 @@ {else/} {volist name="list" id="item"} - + {volist name="grid['grids']" id="vo"} {if isset($vo['format'])} {$item[$vo['field'][0]]|$vo['format']} @@ -44,6 +44,13 @@ {/if} {/volist} + {if isset($item['is_top'])} + {if $item['is_top']} + 取消置顶 + {else/} + 置顶 + {/if} + {/if} {if isset($item['status'])} {if $item['status']} 取消审核 diff --git a/application/admin/view/model/add.html b/application/admin/view/model/add.html index 14f8d4ca..9dfe7a46 100644 --- a/application/admin/view/model/add.html +++ b/application/admin/view/model/add.html @@ -63,6 +63,16 @@ (选“是”则会新建默认的id字段作为主键) +
+ +
+ + (选“是”则会新建默认的id字段作为主键) +
+
diff --git a/application/admin/view/model/edit.html b/application/admin/view/model/edit.html index cc3a434d..ae134c6b 100644 --- a/application/admin/view/model/edit.html +++ b/application/admin/view/model/edit.html @@ -47,6 +47,16 @@ (目前只支持独立模型和文档模型)
+
+ +
+ + (选“是”则会新建默认的id字段作为主键) +
+
@@ -127,21 +137,21 @@
- (自定义的列表模板,放在Application\Admin\View\Think下,不写则使用默认模板) + (自定义的列表模板,放在application\admin\view\content下,不写则使用默认模板)
- (自定义的新增模板,放在Application\Admin\View\Think下,不写则使用默认模板) + (自定义的新增模板,放在application\admin\view\content下,不写则使用默认模板)
- (自定义的编辑模板,放在Application\Admin\View\Think下,不写则使用默认模板) + (自定义的编辑模板,放在application\admin\view\content下,不写则使用默认模板)
diff --git a/application/admin/view/order/index.html b/application/admin/view/order/index.html index b6b3deea..3620e07e 100644 --- a/application/admin/view/order/index.html +++ b/application/admin/view/order/index.html @@ -9,6 +9,17 @@
+
+
+
+
+ + +
+ +
+
+
{volist name="list" id="item"}
diff --git a/application/common/controller/User.php b/application/common/controller/User.php index 9abf542e..b50ae1f2 100644 --- a/application/common/controller/User.php +++ b/application/common/controller/User.php @@ -16,8 +16,11 @@ class User extends Base{ if (!is_login() and !in_array($this->url,array('user/login/index', 'user/index/verify'))) { $this->redirect('user/login/index');exit(); - }else{ + }elseif (is_login()) { $user = model('User')->getInfo(session('user_auth.uid')); + if (!$this->checkProfile($user) && $this->url !== 'user/profile/index') { + return $this->error('请补充完个人资料!', url('user/profile/index')); + } $this->assign('user', $user); //设置会员中心菜单 @@ -34,7 +37,11 @@ class User extends Base{ $menu['订单管理'] = array( array('title'=>'我的订单', 'url'=>'user/order/index', 'icon'=>'shopping-bag'), ); - $menu['内容管理'] = $this->getContentMenu(); + $contetnmenu = $this->getContentMenu(); + if (!empty($contetnmenu)) { + $menu['内容管理'] = $contetnmenu; + } + foreach ($menu as $group => $item) { foreach ($item as $key => $value) { if (url($value['url']) == $_SERVER['REQUEST_URI']) { @@ -51,6 +58,7 @@ class User extends Base{ protected function getContentMenu(){ $list = array(); $map = array( + 'is_user_show' => 1, 'status' => array('gt',0), 'extend' => array('gt',0), ); @@ -64,4 +72,13 @@ class User extends Base{ } return $list; } + + protected function checkProfile($user){ + $result = true; + //判断用户资料是否填写完整 + if (!$user['nickname'] || !$user['qq']) { + $result = false; + } + return $result; + } } diff --git a/application/common/model/User.php b/application/common/model/User.php index c82a2453..3bc0f18e 100644 --- a/application/common/model/User.php +++ b/application/common/model/User.php @@ -110,7 +110,7 @@ class User extends \think\model\Merge{ * 用户注册 * @param integer $user 用户信息数组 */ - function register($username, $password, $repassword, $isautologin = true){ + function register($username, $password, $repassword, $email, $isautologin = true){ if ($password !== $repassword) { $this->error = "密码和确认密码不相同"; return false; @@ -119,6 +119,7 @@ class User extends \think\model\Merge{ $data['username'] = $username; $data['salt'] = rand_string(6); $data['password'] = $password; + $data['email'] = $email; $result = $this->validate(true)->save($data); if ($result) { $this->data['uid'] = $result; diff --git a/application/common/validate/Member.php b/application/common/validate/Member.php index 478b99ad..6067ce17 100644 --- a/application/common/validate/Member.php +++ b/application/common/validate/Member.php @@ -16,11 +16,16 @@ class Member extends \think\Validate{ protected $rule = array( 'username' => 'require|unique:member|/^[a-zA-Z]\w{0,39}$/', + 'email' => 'require|unique:member|email', ); protected $message = array( 'username.require' => '用户名必须', 'username.unique' => '用户名已存在', + 'email.require' => '邮箱必须', + 'email.unique' => '邮箱已存在', + ); + protected $scene = array( + //'add' => 'username,email', ); - protected $scene = array(); } \ No newline at end of file diff --git a/application/common/widget/Ad.php b/application/common/widget/Ad.php index 17ef5398..dd0b353c 100644 --- a/application/common/widget/Ad.php +++ b/application/common/widget/Ad.php @@ -18,6 +18,7 @@ class Ad{ echo "";return; } $ad = db('Ad')->where(array('place_id'=>$place['id'],'status'=>1))->select(); + $list = array(); foreach ($ad as $key => $value) { if ($value['photolist'] != '') { $photolist = explode(',', $value['photolist']); diff --git a/application/user/controller/Login.php b/application/user/controller/Login.php index bcc20768..117e35ce 100644 --- a/application/user/controller/Login.php +++ b/application/user/controller/Login.php @@ -47,13 +47,9 @@ class Login extends Fornt{ return $this->redirect('index/index/index'); } - public function register(){ + public function register($username = '', $password = '', $repassword = '', $email = '', $verify = ''){ if (IS_POST) { $user = model('User'); - $username = input('username', '', 'trim'); - $password = input('password', '', 'trim'); - $repassword = input('repassword', '', 'trim'); - $verify = input('verify', '', 'trim'); //验证码验证 $this->checkVerify($verify); @@ -61,14 +57,25 @@ class Login extends Fornt{ if ($username == '' || $password == '' || $repassword == '') { return $this->error("请填写完整注册信息!", ''); } - $result = $user->register($username, $password, $repassword); + $result = $user->register($username, $password, $repassword, $email); if ($result) { return $this->success('注册成功!', url('user/index/index')); }else{ return $this->error($user->getError(), ''); } }else{ + if (is_login()) { + $this->redirect('user/index/index'); + } return $this->fetch(); } } + + public function forget(){ + + } + + public function find(){ + + } } diff --git a/application/user/static/css/member_login.css b/application/user/static/css/member_login.css new file mode 100644 index 00000000..f040519d --- /dev/null +++ b/application/user/static/css/member_login.css @@ -0,0 +1,198 @@ +@charset "utf-8"; +/* =============== + * 重新定义Html元素 + * =============== */ +html, body, div, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, fieldset, input { padding: 0; margin: 0;} +h1, h2, h3, h4, h5, h6, pre, code, address, caption, cite, code, em, strong, table, th, td { font-size: 1em; font-style: normal; font-weight: normal;} +strong { font-weight: bold;} +ul, ol { list-style: none outside none;} +fieldset, img { border: medium none; vertical-align: middle;} +caption, th { text-align: left;} +table { border-collapse: collapse; border-spacing: 0;} +body { font: 12px/20px "Hiragino Sans GB","Microsoft Yahei",arial,宋体,"Helvetica Neue",Helvetica,STHeiTi,sans-serif; color: #666; background: #FFF none repeat scroll 0 0; min-width: 1200px;} +input, select, textarea { font: 12px/20px Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif;} +i, cite, em { font-style: normal;} +input,button,select,textarea{ outline:none} +html {min-height:101%; } + +/* 链接 */ +a { color: #333; text-decoration: none; outline: medium none; -webkit-transition-property:color; -webkit-transition-duration: 0.3s; -webkit-transition-timing-function: ease;} +a:link, a:visited, a:active { text-decoration: none;} +a:hover { color: #F87622; text-decoration: underline;} + +/* 超出隐藏(需要再设置宽高) */ +.over_hidden{ display: block; overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap;} + +.mt15{margin-top: 15px;} +.w80{width: 80px !important;} + +/* input放大by input_max.js */ +.parentCls { display: inline-block; *display: inline/*IE7*/; *zoom: 1;} +.js-max-input { font-size: 20px; color: #F40; background: #FFFAE5; white-space: nowrap; padding: 7px; border: solid 1px #FFD2B2;} + +/* Clearfix,避免因子元素浮动而导致的父元素高度缺失能问题 */ + .clearfix:after { clear: both; content: "."; display: block; height: 0; line-height: 0; visibility: hidden;} + .clearfix { display: inline-block;} + html[xmlns] .clearfix { display: block;} + *html .clearfix{height:1%;} + *+html .clearfix{height:1%;} + +time { color: #777;} + +/*页面整体宽度控制*/ +.wrapper { width: 1200px; margin: auto;} +/* 公用头部区域 +-------------------------------------- */ +.header-wrap { background-color: #FFF; width: 100%;} +.public-head-layout { height: 100px;} +/* 站点logo */ +.public-head-layout .site-logo { width: 240px; height: 60px; float: left; margin: 15px 10px auto 0;} +.public-head-layout .site-logo img { max-width: 240px; max-height: 60px;} +.public-head-layout .site-ad { width: 120px; height: 70px; float: left; margin: 10px 10px auto 0;} +.public-head-layout .site-ad img { max-width: 120px; max-height: 70px;} +.header-wrap { width: 99%; height: 80px; border-bottom: solid 2px #F5F5F5; margin: 5px auto 0 auto;} +.public-head-layout { height: 80px;} +.header-wrap .wrapper { width: 1000px} +.public-head-layout .site-logo { margin: 10px 0 0 0;} +.public-head-layout .nc-login-now { font-size: 14px; color: #AAA; line-height: 24px; float: right; height: 24px; margin-top: 50px;} +.public-head-layout .nc-login-now a { font-weight: 600; margin-left: 4px;color: #06C;} +.public-head-layout .nc-regist-now { font-size: 14px; color: #AAA; line-height: 20px; float: right; height: 40px; margin-top: 30px;} +.public-head-layout .nc-regist-now span { vertical-align: top; display: inline-block; *display: inline; *zoom: 1;} +.public-head-layout .nc-regist-now .avatar { width: 40px; height: 40px; margin-right: 6px; border-radius: 100%;} +.public-head-layout .nc-regist-now .avatar img { width: 40px; height: 40px; border-radius: 100%;} +.public-head-layout .nc-regist-now a { font-weight: 600; margin-left: 4px;color: #06C;} +.nc-register-bg { background: #FAFAFA url(../images/register_bg.png) repeat 50% 50% ; width: 100%; height: 680px; overflow: hidden;} +.nc-register-box { filter:progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr='#26000000', endColorstr='#26000000');background:rgba(0,0,0,0.15); width: 860px; height: 560px; padding: 10px; margin: 60px auto;} +.nc-register-layout { background-color: #FFF; display: block; width: 820px; height: 520px; padding: 19px; border: solid 1px #CCC; overflow: hidden;} +.nc-register-layout .left { width: 600px; height: 520px; float: left;} +.nc-register-mode { width: 580px;} +.tabs-nav { font-size: 0; word-spacing:-1em; border-bottom: solid 1px #E6E6E6;} +.tabs-nav li { vertical-align: bottom; letter-spacing: normal; word-spacing: normal; text-align: center; display: inline-block; *display: inline; width: 50%; height: 40px; margin-bottom: -1px; *zoom: 1;} +.tabs-nav li a { font-size: 18px; color: #999; line-height: 24px; padding-bottom: 13px; position: relative; z-index: 1;} +.tabs-nav li a:hover { text-decoration: none; color: #000;} +.tabs-nav li a.tabulous_active { color: #F87622; display: block; border-bottom: 3px solid #F87622} +.tabs-nav li a i { font-size: 0; line-height: 0; border-color: #F87622 transparent transparent transparent; border-style: solid dashed dashed dashed; border-width: 7px; display: none; width: 0; height: 0; margin-left: -4px; position: absolute; z-index: 1; left: 50%; bottom: -17px;} +.tabs-nav li a.tabulous_active i { display: block;} +.tabs-container { position: relative; z-index: 1;} +.nc-register-mode .tabs-content { padding: 50px 80px 0 100px;} +.nc-login-form { display: block;} +.nc-login-form dl { background-color: #FFF; width: 398px; height: 52px; margin-top: -1px; border: solid 1px #E6E6E6; position: relative; z-index: 1; overflow: hidden;} +.nc-login-form dl.focus { border-color: #7ABD54; z-index: 3;} +.nc-login-form dl.error { border-color: #F87622 !important; z-index: 2;} +.nc-login-form dl dt { font-size: 14px; line-height: 20px; color: #666; width: 72px; padding: 16px 0 16px 20px; float: left;} +.nc-login-form dl dd { height: 28px; float: left; padding: 12px 0;} +.nc-login-form dl dd .text { font-family: "microsoft yahei"; font-size: 14px; line-height: 28px; width: 290px; height: 28px; padding: 0; border: none 0;} + +.nc-login-form dl .note { color: #CCC; line-height: 16px; width: 145px; height: 32px; position: absolute; z-index: 1; top: 10px; left: 245px;} +.nc-login-form dl.focus .note { color: #7ABD54;} +.nc-login-form .code-div { width: 100%; height: 54px;} +.nc-login-form .code-div dl { width: 277px; float: left;} +.nc-login-form .code-div span { width: 120px; height: 52px; float: left; margin: -1px 0 0 -1px; border: solid 1px #E6E6E6; position: relative; z-index: 1;} +.nc-login-form .code-div span img { width: 120px; height: 52px;} +.nc-login-form .code-div span a { font-size: 14px; text-decoration: none; line-height: 52px; color: #FFF; filter:progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr='#7F000000', endColorstr='#7F000000');background:rgba(0,0,0,0.5); text-align: center; display: none; width: 120px; height: 52px; position: absolute; z-index: 1; top: 0; left: 0;} +.nc-login-form .code-div span:hover a { display: block;} +.nc-login-form .clause-div { font-size: 14px; color: #666; line-height: 30px; width: 400px; height: 30px; margin-top: 15px; border: none 0;} +.nc-login-form .clause-div dd { padding: 0; height: auto;} +.nc-login-form .clause-div .checkbox { vertical-align: middle; margin-right: 8px;} +.nc-login-form .tiptext { line-height: 20px; color: #999; margin: 15px 0;} +.nc-login-form .tiptext a { line-height: 22px; color: #FFF; background-color: #21b384; vertical-align: middle; display: inline-block; height: 22px; padding: 0 8px; margin: 0 4px; border-radius: 2px;} +.nc-login-form .tiptext a:hover { text-decoration: none; background-color: #1FA67A;} +.nc-login-form .tiptext a i { font-size: 14px; margin-right: 4px;} +.nc-login-form .submit-div { margin-top: 15px;} +.nc-login-form .submit-div .submit { font-family: "microsoft yahei"; font-size: 16px; font-weight: 600; color: #FFF; background-color: #F87622; width: 398px; height: 42px; border: solid 1px #D91E17; border-radius: 3px; cursor: pointer;} +.nc-login-form label.error { color: #000; line-height: 24px; background: #FFF5D9 no-repeat 0 0; text-align: left; white-space: nowrap; height: 24px; padding: 8px 12px 8px 24px; position: absolute; z-index: 2; top: 5px; left: 300px; } +.nc-login-form label.error i { font-size: 24px; margin-right: 12px; color: #FF875A; vertical-align: middle;} +.nc-login-form .clause-div label.error { top: -5px; right: 50px;} +.nc-login-form .code-div label.error { background: transparent none; min-width: auto; padding: 0; top: 15px; right: 0; left: auto;} +.transition { -webkit-transition: all .3s ease-in-out; -moz-transition: all .3s ease-in-out; -o-transition: all .3s ease-in-out; -ms-transition: all .3s ease-in-out; transition: all .3s ease-in-out; -webkit-transition-delay: .3s; -moz-transition-delay: .3s; -o-transition-delay: .3s; -ms-transition-delay: .3s; transition-delay: .3s; } +.make_transist { -webkit-transition: all .3s ease-in-out; -moz-transition: all .3s ease-in-out; -o-transition: all .3s ease-in-out; -ms-transition: all .3s ease-in-out; transition: all .3s ease-in-out; } +.hidescale { -webkit-transform: scale(0.9); -moz-transform: scale(0.9); -o-transform: scale(0.9); -ms-transform: scale(0.9); transform: scale(0.9); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); filter: alpha(opacity=0); opacity: 0; } +.showscale { -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1; -webkit-transition-delay: .3s; -moz-transition-delay: .3s; -o-transition-delay: .3s; -ms-transition-delay: .3s; transition-delay: .3s; } +.hideleft { -webkit-transform: translateX(-100%); -moz-transform: translateX(-100%); -o-transform: translateX(-100%); -ms-transform: translateX(-100%); transform: translateX(-100%); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; display: none\9; ;/*ie6,ie7,ie8*/} +.showleft { -webkit-transform: translateX(0px); -moz-transform: translateX(0px); -o-transform: translateX(0px); -ms-transform: translateX(0px); transform: translateX(0px); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1; -webkit-transition-delay: .3s; -moz-transition-delay: .3s; -o-transition-delay: .3s; -ms-transition-delay: .3s; transition-delay: .3s; display: block\9; ;/*ie6,ie7,ie8*/} +.hidescaleup { -webkit-transform: scale(1.1); -moz-transform: scale(1.1); -o-transform: scale(1.1); -ms-transform: scale(1.1); transform: scale(1.1); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; } +.showscaleup { -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1; -webkit-transition-delay: .3s; -moz-transition-delay: .3s; -o-transition-delay: .3s; -ms-transition-delay: .3s; transition-delay: .3s; } +.hideflip { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); display: none\9; ;/*ie6,ie7,ie8*/ opacity: 0; -webkit-transform: rotatey(-90deg) scale(1.1); -moz-transform: rotatey(-90deg) scale(1.1); -o-transform: rotatey(-90deg) scale(1.1); -ms-transform: rotatey(-90deg) scale(1.1); transform: rotatey(-90deg) scale(1.1); -webkit-transform-origin: 50% 50%; -moz-transform-origin: 50% 50%; -o-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; } +.showflip { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); display: block\9; ;/*ie6,ie7,ie8*/ opacity: 1; -webkit-transition-delay: .3s; -moz-transition-delay: .3s; -o-transition-delay: .3s; -ms-transition-delay: .3s; transition-delay: .3s; -webkit-transform: rotatey(0deg) scale(1); -moz-transform: rotatey(0deg) scale(1); -o-transform: rotatey(0deg) scale(1); -ms-transform: rotatey(0deg) scale(1); transform: rotatey(0deg) scale(1); -webkit-transform-origin: 50% 50%; -moz-transform-origin: 50% 50%; -o-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; } +.tabulousclear { display: block; clear: both; } +.nc-register-layout .right { width: 200px; height: 500px; float: right; padding: 20px 0 0 19px; border-left: solid 1px #E6E6E6;} +.nc-register-layout .right h4 { font-size: 14px; line-height: 20px; height: 20px; margin-bottom: 20px; color: #333;} +.nc-register-layout .right .api-login { font-size: 0; *word-spacing:-1px/*IE6、7*/; padding-bottom: 20px; margin-bottom: 20px; border-bottom: dashed 1px #E6E6E6; } +.nc-register-layout .right .api-login a { vertical-align: top; display: inline-block; *display: inline; width: 42px; margin-left: 12px; *zoom: 1;} +.nc-register-layout .right .api-login a i { background: url(../images/login_pic.png) no-repeat; display: block; width: 42px; height: 42px;} +.nc-register-layout .right .api-login a.qq i { background-position: -126px -32px;} +.nc-register-layout .right .api-login a.sina i { background-position: -168px -32px;} +.nc-register-layout .right .api-login a.wx i { background-position: -210px -32px;} +.nc-register-layout .right .reister-after li { color: #999; line-height: 24px; margin-bottom: 10px; padding-left: 12px;} +.nc-register-layout .right .reister-after i { background: url(../images/login_pic.png) no-repeat; vertical-align: middle; display: inline-block; width: 24px; height: 24px; margin-right: 8px;} +.nc-register-layout .right .reister-after .ico01 i { background-position: 0 -76px;} +.nc-register-layout .right .reister-after .ico02 i { background-position: -30px -76px;} +.nc-register-layout .right .reister-after .ico03 i { background-position: -60px -76px;} +.nc-register-layout .right .reister-after .ico04 i { background-position: -90px -76px;} +.nc-register-layout .right .reister-after .ico05 i { background-position: -120px -76px;} +.nc-register-layout .right .reister-after .ico06 i { background-position: -150px -76px;} +/* 注册表单样式 */ +.nc-login-layout { width: 1000px; margin: 20px auto; position: relative; z-index: 1;} +.nc-login-layout .openid { font-size: 14px; color: #AAA; line-height: 20px; height: 40px; position: absolute; z-index: 1; top: -70px; right: 0;} +.nc-login-layout .openid span { vertical-align: top; display: inline-block; *display: inline; *zoom: 1;} +.nc-login-layout .openid .avatar { width: 40px; height: 40px; margin-right: 6px; border-radius: 100%;} +.nc-login-layout .openid .avatar img { width: 40px; height: 40px; border-radius: 100%;} +.nc-login-layout .openid a { font-weight: 600; margin: 0 4px;} +.nc-login { background-color: #FFF; width: 440px; padding: 19px 19px 29px 19px; border: solid 1px #E6E6E6; border-radius: 5px; float:right; position: relative; z-index: 1;} +.nc-login .arrow { background: url(../images/login_pic.png) no-repeat -280px 0; width: 17px; height: 9px; position: absolute; z-index: 1; top: -9px; left: 160px;} +.nc-login .tabs-container { margin-top: 30px; padding: 0 40px 20px 40px;} +.nc-login .tabs-content { width: 352px; } +.nc-login .nc-login-form dl { width: 348px;} +.nc-login .nc-login-form dl dd .text { width: 240px;} +.nc-login .nc-login-form .code-div dl { width: 228px;} +.nc-login .nc-login-form .handle-div { line-height: 20px; margin-top: 15px; overflow: hidden;} +.nc-login .nc-login-form .handle-div .auto { color: #999; float: left;} +.nc-login .nc-login-form .handle-div .auto .checkbox { vertical-align: middle; display: inline-block; margin-right: 4px;} +.nc-login .nc-login-form .handle-div .auto em { line-height: 20px; color: #ff3238; vertical-align: top; display: inline-block; margin-left: 6px;} +.nc-login .nc-login-form .handle-div .forget { float: right;} +.nc-login .nc-login-form .submit-div .submit { width: 348px;} +.nc-login-api { font-size: 0; *word-spacing:-1px/*IE6、7*/; width: 340px; margin: 0 auto; } +.nc-login-api h4 { font-size: 12px; line-height: 20px; color: #333; font-weight: 600; height: 20px; margin-bottom: 10px;} +.nc-login-api a { font-size: 12px; text-decoration: none; color: #AAA; vertical-align: top; display: inline-block; *display: inline; height: 32px; margin-right: 24px; *zoom: 1;} +.nc-login-api a i { background: url(../images/login_pic.png) no-repeat; vertical-align: middle; display: inline-block; *display: inline; width: 32px; height: 32px; margin-right:6px; *zoom: 1;} +.nc-login-api a.qq i { background-position: 0 0;} +.nc-login-api a.sina i { background-position: -32px 0;} +.nc-login-api a.wx i { background-position: -64px 0;} +.nc-login-api a.qq:hover { color: #3EB6E8;} +.nc-login-api a.qq:hover i { background-position: -96px 0;} +.nc-login-api a.sina:hover { color: #F77260;} +.nc-login-api a.sina:hover i { background-position: -128px 0;} +.nc-login-api a.wx:hover { color: #4EA335;} +.nc-login-api a.wx:hover i { background-position: -160px 0;} +.nc-login-layout .left-pic { width: 450px; height: 350px; float:left; margin: 30px 0; position: relative; z-index:1;} +.nc-login-layout .left-pic img { max-width: 450px; max-height: 350px; position: absolute; z-index:1; top:0; left:0 } +.nc-login-layout .left-pic span { position:absolute; z-index: 2; top:220px; left:100px; line-height:32px; font-size: 24px; font-family:"microsoft yahei"; width: 250px; text-align: center; } +.nc-login-layout .left-pic p a { color: #FFF; position:absolute; z-index: 2; top:270px; left: 165px; line-height:28px; font-size: 12px; width: 120px; text-align: center; } +.nc-login-left { line-height: 22px; color: #626A73; display: inline; width: 450px; float: left; margin: 10px 0;} +.nc-login-left h3 { font-size:18px; font-family: "microsoft yahei"; font-weight:700; color: #555; line-height: 30px; margin-top: 2px; margin-bottom: 6px;} +.nc-login-left ol { width: 420px; margin-top: 20px; border-bottom: dashed 1px #E7E7E7;} +.nc-login-left ol li { font-family: "microsoft yahei"; font-size: 14px; line-height: 48px; display: block; vertical-align: middle; width: 200px; height: 48px; float: left; padding: 0 0 12px 0; margin: 0 0 5px 10px; overflow: hidden;} +.nc-login-left ol li i { display: inline-block; background: url(../images/login.png) no-repeat scroll; vertical-align: middle; width: 48px; height: 48px; margin-right:10px;} +.nc-login-left ol li.ico01 i { background-position: -256px 0;} +.nc-login-left ol li.ico02 i { background-position: -304px 0; } +.nc-login-left ol li.ico03 i { background-position: -352px 0; } +.nc-login-left ol li.ico04 i { background-position: -256px -48px; } +.nc-login-left ol li.ico05 i { background-position: -304px -48px; } +.nc-login-left ol li.ico06 i { background-position: -352px -48px; } + @media projection, screen {.ui-tabs-hide { display: none; }} +@media print {.ui-tabs-nav { display: none; }} +.ui-tabs-nav:after { display: block; clear: both; content: " "; } +.ui-tabs-disabled { opacity: .4; filter: alpha(opacity=40); } +.ui-tabs-loading em { background: url(../images/loading.gif) no-repeat 0 50%; padding: 0 0 0 20px; } +* html .ui-tabs-nav { display: inline-block; } +*:first-child+html .ui-tabs-nav { display: inline-block; } +#faq { display:none;} + +#footer { font-size: 12px !important; border-top:1px solid #e7e7e7; text-align: center; margin: 0 auto; padding-bottom: 10px; overflow: hidden; background:#F5F5F5; width:100%} +#footer p { color: #666; word-spacing: 5px; padding: 10px 0; } +#footer a { color: #666; text-decoration: none; } +#footer a:hover { text-decoration: underline; } +#footer .vol { font-family: Verdana, Geneva, sans-serif; font-weight: 600; font-style: oblique; font-size: 12px;} +#footer .vol .b { color: #00F;} +#footer .vol .o { color: #F60;} +#footer .vol em { font-family: Georgia, Arial; font-weight: 600; font-style: italic; color: #000; margin-left: 2px;} \ No newline at end of file diff --git a/application/user/view/login/index.html b/application/user/view/login/index.html index 71065900..c3e56d99 100644 --- a/application/user/view/login/index.html +++ b/application/user/view/login/index.html @@ -4,13 +4,11 @@ -会员登录 - +用户注册 - - + - -
-
-
-
-
-
-
-
-
-
-
- - -
-
- - -
-
- - - - 验证码 -
-
-
- -
-
-
-
-
-
+
+
+

+ +

+ +
+
+ + + @@ -103,19 +116,19 @@ $(function(){ } else { $.messager.show(data.msg, {placement: 'center',type:'success'}); //刷新验证码 - $(".reloadverify").click(); + $(".makecode").click(); } } }); //初始化选中用户名输入框 $("#itemBox").find("input[name=username]").focus(); //刷新验证码 - var verifyimg = $(".verifyimg").attr("src"); - $(".reloadverify").click(function(){ + var verifyimg = $(".codeimage").attr("src"); + $(".makecode").click(function(){ if( verifyimg.indexOf('?')>0){ - $(".verifyimg").attr("src", verifyimg+'&random='+Math.random()); + $(".codeimage").attr("src", verifyimg+'&random='+Math.random()); }else{ - $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random()); + $(".codeimage").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random()); } }); diff --git a/application/user/view/login/register.html b/application/user/view/login/register.html index 6ca11f05..28328d60 100644 --- a/application/user/view/login/register.html +++ b/application/user/view/login/register.html @@ -5,12 +5,10 @@ 用户注册 - - - + - -
-
-
-
-
-
-
-
-
-
-
- - -
-
- - -
-
- - -
-
- - - - 验证码 -
-
-
- -
-
-
-
+
+
+

+ +

+ +
+
+ +
+
+
+
+
+ +
+
+
-
-
+
+
+

注册之后您可以

+
    +
  1. 购买在线图书
  2. +
+
+
+
+ @@ -107,19 +138,19 @@ $(function(){ } else { $.messager.show(data.msg, {placement: 'center',type:'success'}); //刷新验证码 - $(".reloadverify").click(); + $(".makecode").click(); } } }); //初始化选中用户名输入框 $("#itemBox").find("input[name=username]").focus(); //刷新验证码 - var verifyimg = $(".verifyimg").attr("src"); - $(".reloadverify").click(function(){ + var verifyimg = $("#codeimage").attr("src"); + $(".makecode").click(function(){ if( verifyimg.indexOf('?')>0){ - $(".verifyimg").attr("src", verifyimg+'&random='+Math.random()); + $("#codeimage").attr("src", verifyimg+'&random='+Math.random()); }else{ - $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random()); + $("#codeimage").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random()); } });