user
parent
472e1de077
commit
758f7199a7
|
|
@ -459,6 +459,13 @@ return array(
|
|||
1 => array('id' => 1, 'name' => '是', 'checked' => true),
|
||||
),
|
||||
|
||||
// 用户状态
|
||||
'common_user_status_list' => array(
|
||||
0 => array('id' => 0, 'name' => '正常', 'checked' => true),
|
||||
1 => array('id' => 1, 'name' => '禁止发言', 'tips' => '用户被禁止发言'),
|
||||
2 => array('id' => 2, 'name' => '禁止登录', 'tips' => '用户被禁止登录'),
|
||||
),
|
||||
|
||||
|
||||
// 色彩值
|
||||
'common_color_list' => array(
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ class CommonController extends Controller
|
|||
{
|
||||
$this->ajaxReturn(L('common_param_error'), -10);
|
||||
}
|
||||
$verify = new \My\Verify($verify_param);
|
||||
$verify = new \Library\Verify($verify_param);
|
||||
if(!$verify->CheckExpire())
|
||||
{
|
||||
$this->ajaxReturn(L('common_verify_expire'), -11);
|
||||
|
|
@ -306,14 +306,14 @@ class CommonController extends Controller
|
|||
* @datetime 2017-03-05T15:10:21+0800
|
||||
* @param [string] $type [验证码类型]
|
||||
*/
|
||||
protected function CommonVerifyEntry($type = 'schoolcms')
|
||||
protected function CommonVerifyEntry($type = 'shopxo')
|
||||
{
|
||||
$param = array(
|
||||
'width' => 100,
|
||||
'height' => 32,
|
||||
'key_prefix' => $type,
|
||||
);
|
||||
$verify = new \My\Verify($param);
|
||||
$verify = new \Library\Verify($param);
|
||||
$verify->Entry();
|
||||
}
|
||||
|
||||
|
|
@ -330,8 +330,7 @@ class CommonController extends Controller
|
|||
{
|
||||
if(!empty($user_id))
|
||||
{
|
||||
$field = array('id', 'mobile', 'email', 'nickname', 'gender', 'signature', 'describe', 'birthday', 'add_time', 'upd_time');
|
||||
$user = M('User')->field($field)->find($user_id);
|
||||
$user = M('User')->field('*')->find($user_id);
|
||||
if(!empty($user))
|
||||
{
|
||||
// 基础数据处理
|
||||
|
|
@ -342,6 +341,21 @@ class CommonController extends Controller
|
|||
$user['mobile_security']= empty($user['mobile']) ? '' : substr($user['mobile'], 0, 3).'***'.substr($user['mobile'], -3);
|
||||
$user['email_security'] = empty($user['email']) ? '' : substr($user['email'], 0, 3).'***'.substr($user['email'], -3);
|
||||
|
||||
// 页面显示名称
|
||||
$user['user_name_view'] = $user['username'];
|
||||
if(empty($user['user_name_view']))
|
||||
{
|
||||
$user['user_name_view'] = $user['nickname'];
|
||||
}
|
||||
if(empty($user['user_name_view']))
|
||||
{
|
||||
$user['user_name_view'] = $user['mobile_security'];
|
||||
}
|
||||
if(empty($user['user_name_view']))
|
||||
{
|
||||
$user['user_name_view'] = $user['email_security'];
|
||||
}
|
||||
|
||||
// 存储session
|
||||
$_SESSION['user'] = $user;
|
||||
return !empty($_SESSION['user']);
|
||||
|
|
|
|||
|
|
@ -184,9 +184,9 @@ class UserController extends CommonController
|
|||
);
|
||||
if(I('type') == 'sms')
|
||||
{
|
||||
$obj = new \My\Sms($verify_param);
|
||||
$obj = new \Library\Sms($verify_param);
|
||||
} else {
|
||||
$obj = new \My\Email($verify_param);
|
||||
$obj = new \Library\Email($verify_param);
|
||||
}
|
||||
// 是否已过期
|
||||
if(!$obj->CheckExpire())
|
||||
|
|
@ -273,16 +273,16 @@ class UserController extends CommonController
|
|||
}
|
||||
|
||||
// 获取用户账户信息
|
||||
$where = array('mobile' => $accounts, 'email' => $accounts, '_logic' => 'OR');
|
||||
$user = M('User')->field(array('id', 'pwd', 'salt', 'state'))->where($where)->find();
|
||||
$where = array(['mobile' => $accounts, 'email' => $accounts, '_logic' => 'OR'], 'is_delete_time'=>0);
|
||||
$user = M('User')->field(array('id', 'pwd', 'salt', 'status'))->where($where)->find();
|
||||
if(empty($user))
|
||||
{
|
||||
$this->ajaxReturn(L('user_login_accounts_on_exist_error'), -3);
|
||||
}
|
||||
// 用户状态
|
||||
if($user['state'] == 2)
|
||||
if($user['status'] == 2)
|
||||
{
|
||||
$this->ajaxReturn(L('common_user_state_list')[$user['state']]['tips'], -10);
|
||||
$this->ajaxReturn(L('common_user_status_list')[$user['status']]['tips'], -10);
|
||||
}
|
||||
|
||||
// 密码校验
|
||||
|
|
@ -359,10 +359,10 @@ class UserController extends CommonController
|
|||
$code = GetNumberCode(6);
|
||||
if(I('type') == 'sms')
|
||||
{
|
||||
$obj = new \My\Sms($verify_param);
|
||||
$obj = new \Library\Sms($verify_param);
|
||||
$state = $obj->SendText(I('accounts'), MyC('home_sms_user_reg'), $code);
|
||||
} else {
|
||||
$obj = new \My\Email($verify_param);
|
||||
$obj = new \Library\Email($verify_param);
|
||||
$email_param = array(
|
||||
'email' => I('accounts'),
|
||||
'content' => MyC('home_email_user_reg'),
|
||||
|
|
@ -476,13 +476,13 @@ class UserController extends CommonController
|
|||
// 手机
|
||||
if($type == 'mobile')
|
||||
{
|
||||
$obj = new \My\Sms($verify_param);
|
||||
$obj = new \Library\Sms($verify_param);
|
||||
$state = $obj->SendText($accounts, MyC('home_sms_user_forget_pwd'), $code);
|
||||
|
||||
// 邮箱
|
||||
} else if($type == 'email')
|
||||
{
|
||||
$obj = new \My\Email($verify_param);
|
||||
$obj = new \Library\Email($verify_param);
|
||||
$email_param = array(
|
||||
'email' => $accounts,
|
||||
'content' => MyC('home_email_user_forget_pwd'),
|
||||
|
|
@ -544,10 +544,10 @@ class UserController extends CommonController
|
|||
);
|
||||
if($field == 'mobile')
|
||||
{
|
||||
$obj = new \My\Sms($verify_param);
|
||||
$obj = new \Library\Sms($verify_param);
|
||||
} else if($field == 'email')
|
||||
{
|
||||
$obj = new \My\Email($verify_param);
|
||||
$obj = new \Library\Email($verify_param);
|
||||
}
|
||||
// 是否已过期
|
||||
if(!$obj->CheckExpire())
|
||||
|
|
|
|||
|
|
@ -56,24 +56,35 @@
|
|||
<div class="marqueen">
|
||||
<div class="mod-vip">
|
||||
<div class="m-baseinfo">
|
||||
<a href="../person/index.html">
|
||||
<img src="__PUBLIC__/Home/{{$default_theme}}/Images/getAvatar.do.jpg">
|
||||
<a href="<if condition="!empty($user)">{{:u('Home/User/Index')}}<else />javascript:;</if>">
|
||||
<img src="<if condition="!empty($user['avatar'])">{{$user.avatar}}<else />__PUBLIC__/Home/{{$default_theme}}/Images/default-user-avatar.jpg</if>" class="user-avatar" />
|
||||
</a>
|
||||
<em>
|
||||
Hi,<span class="s-name">小叮当</span>
|
||||
<a href="#"><p>点击更多优惠活动</p></a>
|
||||
<span class="s-name">
|
||||
<if condition="!empty($user)">
|
||||
Hi, {{$user.user_name_view}}
|
||||
<else />
|
||||
您好 {{$user.user_name_view}},欢迎来到 {{:MyC('home_site_name')}}
|
||||
</if>
|
||||
</span>
|
||||
</em>
|
||||
<if condition="!empty($user)">
|
||||
<a href="{{:U('Home/User/Logout')}}" class="member-logout">退出</a>
|
||||
</if>
|
||||
</div>
|
||||
<div class="member-logout">
|
||||
<a class="am-btn-warning btn" href="login.html">登录</a>
|
||||
<a class="am-btn-warning btn" href="register.html">注册</a>
|
||||
</div>
|
||||
<div class="member-login">
|
||||
<a href="#"><strong>0</strong>待收货</a>
|
||||
<a href="#"><strong>0</strong>待发货</a>
|
||||
<a href="#"><strong>0</strong>待付款</a>
|
||||
<a href="#"><strong>0</strong>待评价</a>
|
||||
</div>
|
||||
<if condition="empty($user)">
|
||||
<div class="member-login">
|
||||
<a class="am-btn-warning btn" href="{{:U('Home/User/LoginInfo')}}">登录</a>
|
||||
<a class="am-btn-warning btn" href="{{:U('Home/User/RegInfo')}}">注册</a>
|
||||
</div>
|
||||
<else />
|
||||
<div class="member-center">
|
||||
<a href="#"><strong>0</strong>待收货</a>
|
||||
<a href="#"><strong>0</strong>待发货</a>
|
||||
<a href="#"><strong>0</strong>待付款</a>
|
||||
<a href="#"><strong>0</strong>待评价</a>
|
||||
</div>
|
||||
</if>
|
||||
</div>
|
||||
<span class="marqueen-title">新闻头条</span>
|
||||
<div class="banner-news">
|
||||
|
|
|
|||
|
|
@ -4,8 +4,14 @@
|
|||
<ul class="message-l">
|
||||
<div class="topMessage">
|
||||
<div class="menu-hd">
|
||||
<a href="#" target="_top" class="h">亲,请登录</a>
|
||||
<a href="#" target="_top">免费注册</a>
|
||||
<if condition="empty($user)">
|
||||
<span>您好,欢迎来到 {{:MyC('home_site_name')}}</span>
|
||||
[<a href="{{:U('Home/User/LoginInfo')}}">登录</a>]
|
||||
[<a href="{{:U('Home/User/RegInfo')}}">注册</a>]
|
||||
<else />
|
||||
<span>您好 {{$user.user_name_view}},欢迎来到 {{:MyC('home_site_name')}}</span>
|
||||
[<a href="{{:U('Home/User/Logout')}}">退出</a>]
|
||||
</if>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,21 +1,29 @@
|
|||
<include file="Public/Header" />
|
||||
|
||||
<!-- header nav start -->
|
||||
<!-- header top nav -->
|
||||
<include file="Public/HeaderTopNav" />
|
||||
|
||||
<!-- search -->
|
||||
<include file="Public/NavSearch" />
|
||||
|
||||
<!-- header nav -->
|
||||
<include file="Public/HeaderNav" />
|
||||
<!-- header nav end -->
|
||||
|
||||
<!-- goods category -->
|
||||
<include file="Public/GoodsCategory" />
|
||||
|
||||
<!-- conntent start -->
|
||||
<div class="am-g my-content" <if condition="!empty($max_width_style)">style="{{$max_width_style}}"</if>>
|
||||
<div class="am-g my-content">
|
||||
<div class="am-u-md-6 am-u-sm-centered">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation m-t-30" method="post" action="{{:U('Home/User/Reg')}}" request-type="ajax-url" request-value="{{$referer_url}}">
|
||||
<form class="am-form form-validation" method="post" action="{{:U('Home/User/Reg')}}" request-type="ajax-url" request-value="{{$referer_url}}">
|
||||
<fieldset>
|
||||
<span class="">{{:L('user_reg_there_are_accounts_text')}}</span>
|
||||
<a href="{{:U('Home/User/LoginInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_reg_login_immediately_text')}}</a>
|
||||
<hr />
|
||||
<label>{{:L('common_email_name')}}
|
||||
<if condition="in_array('sms', MyC('home_user_reg_state'))">
|
||||
<a href="{{:U('Home/User/RegInfo')}}" class="m-l-25 fs-12 fw-100">{{:L('user_reg_no_email_tips')}}</a>
|
||||
<a href="{{:U('Home/User/RegInfo')}}" class="reg-switch-tips">{{:L('user_reg_no_email_tips')}}</a>
|
||||
</if>
|
||||
</label>
|
||||
<div class="am-form-group">
|
||||
|
|
@ -53,12 +61,12 @@
|
|||
<div class="am-modal-hd">
|
||||
<a href="javascript:;" class="am-close am-close-spin" data-am-modal-close>×</a>
|
||||
</div>
|
||||
<div class="am-modal-bd o-h">
|
||||
<div class="o-h m-t-15">
|
||||
<div class="am-modal-bd">
|
||||
<div class="base">
|
||||
<input type="text" placeholder="{{:L('common_img_verify_text')}}" maxlength="6" id="verify-img-value" data-validation-message="{{:L('common_img_verify_tips')}}" class="am-form-field am-radius" />
|
||||
<div class="fl">
|
||||
<div class="am-fl">
|
||||
<img src="{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}" class="am-radius c-p" id="verify-img" onClick='this.src="{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}"' />
|
||||
<a href="javascript:;" class="fs-12 c-p" onClick="document.getElementById('verify-img').src='{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}'">{{:L('common_img_verify_submit_text')}}</a>
|
||||
<a href="javascript:;" class="verify-tips" onClick="document.getElementById('verify-img').src='{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}'">{{:L('common_img_verify_submit_text')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-sm block m-t-20 btn-loading-example verify-submit-win" data-am-loading="{spinner:'circle-o-notch', loadingText:'{{:L('common_send_tips')}}'}" data-win="1">{{:L('common_operation_confirm')}}</button>
|
||||
|
|
@ -70,10 +78,6 @@
|
|||
</div>
|
||||
<!-- conntent end -->
|
||||
|
||||
<!-- layuot common module start -->
|
||||
<include file="Public/CommonModule" />
|
||||
<!-- layuot common module end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,14 +1,22 @@
|
|||
<include file="Public/Header" />
|
||||
|
||||
<!-- header nav start -->
|
||||
<!-- header top nav -->
|
||||
<include file="Public/HeaderTopNav" />
|
||||
|
||||
<!-- search -->
|
||||
<include file="Public/NavSearch" />
|
||||
|
||||
<!-- header nav -->
|
||||
<include file="Public/HeaderNav" />
|
||||
<!-- header nav end -->
|
||||
|
||||
<!-- goods category -->
|
||||
<include file="Public/GoodsCategory" />
|
||||
|
||||
<!-- conntent start -->
|
||||
<div class="am-g my-content" <if condition="!empty($max_width_style)">style="{{$max_width_style}}"</if>>
|
||||
<div class="am-g my-content">
|
||||
<div class="am-u-md-6 am-u-sm-centered">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation m-t-30" method="post" action="{{:U('Home/User/ForgetPwd')}}" request-type="ajax-url" request-value="{{:U('Home/User/LoginInfo')}}">
|
||||
<form class="am-form form-validation" method="post" action="{{:U('Home/User/ForgetPwd')}}" request-type="ajax-url" request-value="{{:U('Home/User/LoginInfo')}}">
|
||||
<fieldset>
|
||||
<span class="">{{:L('user_reg_there_are_accounts_text')}}</span>
|
||||
<a href="{{:U('Home/User/LoginInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_reg_login_immediately_text')}}</a>
|
||||
|
|
@ -46,12 +54,12 @@
|
|||
<div class="am-modal-hd">
|
||||
<a href="javascript:;" class="am-close am-close-spin" data-am-modal-close>×</a>
|
||||
</div>
|
||||
<div class="am-modal-bd o-h">
|
||||
<div class="o-h m-t-15">
|
||||
<div class="am-modal-bd">
|
||||
<div class="base">
|
||||
<input type="text" placeholder="{{:L('common_img_verify_text')}}" maxlength="6" id="verify-img-value" data-validation-message="{{:L('common_img_verify_tips')}}" class="am-form-field am-radius" />
|
||||
<div class="fl">
|
||||
<div class="am-fl">
|
||||
<img src="{{:U('Home/User/UserVerifyEntry', ['type'=>'forget'])}}" class="am-radius c-p" id="verify-img" onClick='this.src="{{:U('Home/User/UserVerifyEntry', ['type'=>'forget'])}}"' />
|
||||
<a href="javascript:;" class="fs-12 c-p" onClick="document.getElementById('verify-img').src='{{:U('Home/User/UserVerifyEntry', ['type'=>'forget'])}}'">{{:L('common_img_verify_submit_text')}}</a>
|
||||
<a href="javascript:;" class="verify-tips" onClick="document.getElementById('verify-img').src='{{:U('Home/User/UserVerifyEntry', ['type'=>'forget'])}}'">{{:L('common_img_verify_submit_text')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-sm block m-t-20 btn-loading-example verify-submit-win" data-am-loading="{spinner:'circle-o-notch', loadingText:'{{:L('common_send_tips')}}'}" data-win="1">{{:L('common_operation_confirm')}}</button>
|
||||
|
|
@ -63,10 +71,6 @@
|
|||
</div>
|
||||
<!-- conntent end -->
|
||||
|
||||
<!-- layuot common module start -->
|
||||
<include file="Public/CommonModule" />
|
||||
<!-- layuot common module end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,14 +1,22 @@
|
|||
<include file="Public/Header" />
|
||||
|
||||
<!-- header nav start -->
|
||||
<!-- header top nav -->
|
||||
<include file="Public/HeaderTopNav" />
|
||||
|
||||
<!-- search -->
|
||||
<include file="Public/NavSearch" />
|
||||
|
||||
<!-- header nav -->
|
||||
<include file="Public/HeaderNav" />
|
||||
<!-- header nav end -->
|
||||
|
||||
<!-- goods category -->
|
||||
<include file="Public/GoodsCategory" />
|
||||
|
||||
<!-- conntent start -->
|
||||
<div class="am-g my-content" <if condition="!empty($max_width_style)">style="{{$max_width_style}}"</if>>
|
||||
<div class="am-g my-content">
|
||||
<div class="am-u-md-6 am-u-sm-centered">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation m-t-30" method="post" action="{{:U('Home/User/Login')}}" request-type="ajax-url" request-value="{{$referer_url}}">
|
||||
<form class="am-form form-validation" method="post" action="{{:U('Home/User/Login')}}" request-type="ajax-url" request-value="{{$referer_url}}">
|
||||
<fieldset>
|
||||
<if condition="in_array('sms', MyC('home_user_reg_state')) or in_array('email', MyC('home_user_reg_state'))">
|
||||
<span class="">{{:L('user_login_on_accounts_text')}}</span>
|
||||
|
|
|
|||
|
|
@ -1,21 +1,29 @@
|
|||
<include file="Public/Header" />
|
||||
|
||||
<!-- header nav start -->
|
||||
<!-- header top nav -->
|
||||
<include file="Public/HeaderTopNav" />
|
||||
|
||||
<!-- search -->
|
||||
<include file="Public/NavSearch" />
|
||||
|
||||
<!-- header nav -->
|
||||
<include file="Public/HeaderNav" />
|
||||
<!-- header nav end -->
|
||||
|
||||
<!-- goods category -->
|
||||
<include file="Public/GoodsCategory" />
|
||||
|
||||
<!-- conntent start -->
|
||||
<div class="am-g my-content" <if condition="!empty($max_width_style)">style="{{$max_width_style}}"</if>>
|
||||
<div class="am-g my-content">
|
||||
<div class="am-u-md-6 am-u-sm-centered">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation m-t-30" method="post" action="{{:U('Home/User/Reg')}}" request-type="ajax-url" request-value="{{$referer_url}}">
|
||||
<form class="am-form form-validation" method="post" action="{{:U('Home/User/Reg')}}" request-type="ajax-url" request-value="{{$referer_url}}">
|
||||
<fieldset>
|
||||
<span class="">{{:L('user_reg_there_are_accounts_text')}}</span>
|
||||
<a href="{{:U('Home/User/LoginInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_reg_login_immediately_text')}}</a>
|
||||
<hr />
|
||||
<label>{{:L('common_mobile_name')}}
|
||||
<if condition="in_array('email', MyC('home_user_reg_state'))">
|
||||
<a href="{{:U('Home/User/EmailRegInfo')}}" class="m-l-25 fs-12 fw-100">{{:L('user_reg_no_mobile_tips')}}</a>
|
||||
<a href="{{:U('Home/User/EmailRegInfo')}}" class="reg-switch-tips">{{:L('user_reg_no_mobile_tips')}}</a>
|
||||
</if>
|
||||
</label>
|
||||
<div class="am-form-group">
|
||||
|
|
@ -53,12 +61,12 @@
|
|||
<div class="am-modal-hd">
|
||||
<a href="javascript:;" class="am-close am-close-spin" data-am-modal-close>×</a>
|
||||
</div>
|
||||
<div class="am-modal-bd o-h">
|
||||
<div class="o-h m-t-15">
|
||||
<div class="am-modal-bd">
|
||||
<div class="base">
|
||||
<input type="text" placeholder="{{:L('common_img_verify_text')}}" maxlength="6" id="verify-img-value" data-validation-message="{{:L('common_img_verify_tips')}}" class="am-form-field am-radius" />
|
||||
<div class="fl">
|
||||
<div class="am-fl">
|
||||
<img src="{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}" class="am-radius c-p" id="verify-img" onClick='this.src="{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}"' />
|
||||
<a href="javascript:;" class="fs-12 c-p" onClick="document.getElementById('verify-img').src='{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}'">{{:L('common_img_verify_submit_text')}}</a>
|
||||
<a href="javascript:;" class="verify-tips" onClick="document.getElementById('verify-img').src='{{:U('Home/User/UserVerifyEntry', ['type'=>'reg'])}}'">{{:L('common_img_verify_submit_text')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-sm block m-t-20 btn-loading-example verify-submit-win" data-am-loading="{spinner:'circle-o-notch', loadingText:'{{:L('common_send_tips')}}'}" data-win="1">{{:L('common_operation_confirm')}}</button>
|
||||
|
|
@ -70,10 +78,6 @@
|
|||
</div>
|
||||
<!-- conntent end -->
|
||||
|
||||
<!-- layuot common module start -->
|
||||
<include file="Public/CommonModule" />
|
||||
<!-- layuot common module end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -9,7 +9,7 @@ del, dfn, em, img, ins, kbd, q, s, samp,
|
|||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
fieldset, form, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
|
|
@ -41,13 +41,20 @@ html{width:100%;
|
|||
}
|
||||
/*text-size-adjust不管屏幕怎么变文字大小不变*/
|
||||
|
||||
* { font-size: 14px; }
|
||||
body{margin:0;
|
||||
padding:0;
|
||||
width:100%;
|
||||
font-size:14px;
|
||||
font-family: arial,"Lantinghei SC","Microsoft Yahei";
|
||||
}
|
||||
|
||||
.am-form select, .am-form textarea, .am-form input[type="text"], .am-form input[type="password"], .am-form input[type="datetime"], .am-form input[type="datetime-local"], .am-form input[type="date"], .am-form input[type="month"], .am-form input[type="time"], .am-form input[type="week"], .am-form input[type="number"], .am-form input[type="email"], .am-form input[type="url"], .am-form input[type="search"], .am-form input[type="tel"], .am-form input[type="color"], .am-form-field {
|
||||
font-size: 14px;
|
||||
}
|
||||
.am-input-group-sm > .am-input-group-btn > .am-btn {
|
||||
height: 32px;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
a:link,a:visited,a:hover{text-decoration:none; outline:none;}
|
||||
a:hover, a:focus { color: #d2364c; }
|
||||
|
|
@ -207,7 +214,7 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
|||
|
||||
/*分类*/
|
||||
.goods-category-s {display:block;position: absolute;}
|
||||
.goods-category-s, .goods-category-title { z-index: 10002; }
|
||||
.goods-category-s, .goods-category-title { z-index: 100; }
|
||||
.nav-table{max-width:1000px;margin: 0px auto;height: 45px;position: relative;overflow: hidden;}
|
||||
.all-goods{font-size: 16px;}
|
||||
.goods-category-title{background:#d2364c;color:#fff ;height: 45px;line-height: 45px;display:block;position: absolute;width:150px ;text-align: center;font-size:16px ;top:0px;z-index: 6;cursor: pointer;}
|
||||
|
|
@ -278,7 +285,6 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
|||
|
||||
.category-content .menu-item.top{top:0px;}
|
||||
.category-content .menu-item.bottom{bottom: -2px;*bottom: -6px;_*bottom: -7px;}
|
||||
.am-dimmer {background:#fff ;}
|
||||
|
||||
|
||||
/*导航图标*/
|
||||
|
|
@ -499,4 +505,54 @@ background:url(../Images/ibar_sprites.png) no-repeat;background-position:0px -23
|
|||
.am-slider-a1 {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* PC
|
||||
*/
|
||||
@media only screen and (min-width: 641px) {
|
||||
/**
|
||||
* 图片验证码
|
||||
*/
|
||||
#verify-img-value { float: left; width: 50%; margin-right: 5px; }
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
@media only screen and (max-width: 641px) {
|
||||
/**
|
||||
* 图片验证码
|
||||
*/
|
||||
#verify-img-value { margin-bottom: 10px; }
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 框架覆盖
|
||||
*/
|
||||
.am-btn-secondary {
|
||||
color: #fff;
|
||||
background-color: #f07c8c;
|
||||
border-color: #f07c8c;
|
||||
}
|
||||
.am-btn-secondary:hover, .am-btn-secondary:focus {
|
||||
background-color: #e86175;
|
||||
}
|
||||
.am-btn-secondary:hover, .am-btn-secondary:focus, .am-btn-secondary:active, .am-btn-secondary.am-active, .am-dropdown.am-active .am-btn-secondary.am-dropdown-toggle {
|
||||
color: #fff;
|
||||
border-color: #e86175;
|
||||
}
|
||||
|
||||
.am-btn-primary {
|
||||
color: #fff;
|
||||
background-color: #d2364c;
|
||||
border-color: #d2364c;
|
||||
}
|
||||
.am-btn-primary:hover, .am-btn-primary:focus {
|
||||
background-color: #d31e37;
|
||||
}
|
||||
.am-btn-primary:hover, .am-btn-primary:focus, .am-btn-primary:active, .am-btn-primary.am-active, .am-dropdown.am-active .am-btn-primary.am-dropdown-toggle {
|
||||
color: #fff;
|
||||
border-color: #d31e37;
|
||||
}
|
||||
|
|
@ -344,21 +344,21 @@ text-align: center;float:none}
|
|||
.banner .am-slider .am-slides li{height:430px;}
|
||||
.banner .am-slider .am-slides img{width:954px ;left:50% ;position: absolute;margin-left: -438px;}
|
||||
/*公告布局*/
|
||||
.marqueen {width:220px;height: 410px;text-align: left;top:10px;padding: 10px;}
|
||||
.banner-news{padding-top: 5px;}
|
||||
.marqueen {width:220px;height: 412px;text-align: left;top:10px;padding: 10px;}
|
||||
.banner-news{padding-top: 0px;}
|
||||
.banner-news li {height: 26px;line-height: 26px;}
|
||||
.marqueen-title{display: block;margin-left:5px ;margin-top: 5px;}
|
||||
.mod-vip{display: block; padding-bottom: 10px; border-bottom: 1px solid #eee;}
|
||||
.m-baseinfo{position: relative;margin-bottom: 10px;}
|
||||
.m-baseinfo a img{display: block;width: 50px;height: 50px;border-radius: 50px;}
|
||||
.m-baseinfo em{position: absolute;top:15px;left:60px;font-size: 14px;color: #3C3C3C;}
|
||||
.m-baseinfo p{color:#fd3f49 ;font-size: 12px;}
|
||||
.member-logout{height: 25px;overflow: hidden;display: block;}
|
||||
.member-logout .btn{width:95px;margin-right:3px;height: 25px;display: inline-block;line-height: 25px;text-align: center;}
|
||||
|
||||
.member-login{overflow: hidden;height:36px;display: none;}
|
||||
.member-login a {float: left;margin-left: -1px;width:50px;text-align: center;border-left: 1px solid #EEE;}
|
||||
.member-login a strong {height: 18px;display: block;font-size: 14px;color: #F40;}
|
||||
.m-baseinfo img.user-avatar {display: block;width: 50px;height: 50px;border-radius: 50px;}
|
||||
.m-baseinfo em span {position: absolute;top:15px;left:60px;font-size: 12px;color: #3C3C3C;}
|
||||
.member-login{height: 25px;overflow: hidden;display: block;}
|
||||
.member-login .btn{width:95px;margin-right:3px;height: 25px;display: inline-block;line-height: 25px;text-align: center;}
|
||||
.member-login{overflow: hidden;height:25px;}
|
||||
.member-logout { position: absolute; top: 33px; left: 60px; font-size: 12px; color: #f4546b; }
|
||||
.member-center { overflow: hidden; }
|
||||
.member-center a {float: left;margin-left: -1px;width:50px;text-align: center;border-left: 1px solid #EEE;font-size: 12px; }
|
||||
.member-center a strong {height: 18px;display: block;font-size: 14px;color: #F40;}
|
||||
|
||||
.advTip{display:block;width:100% ;position: absolute;bottom:2px;left:0px}
|
||||
.advTip img{width:100% ;}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
form.form-validation { margin: 30px 0 60px 0; }
|
||||
.verify-submit-win { margin-top: 20px; display: block; }
|
||||
.reg-switch-tips { font-weight: 100; font-size: 12px; color: #f87689; margin-left: 20px; }
|
||||
#verify-win .am-modal-bd .base { overflow: hidden; }
|
||||
#verify-win .am-modal-bd .base .verify-tips { font-size: 12px; }
|
||||
|
||||
/**
|
||||
* PC
|
||||
*/
|
||||
@media only screen and (min-width: 641px) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
@media only screen and (max-width: 641px) {
|
||||
|
||||
}
|
||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
|
@ -0,0 +1,121 @@
|
|||
$(function()
|
||||
{
|
||||
$verify_win = $('#verify-win');
|
||||
|
||||
// 查看密码
|
||||
$('.eye-submit').on('click', function()
|
||||
{
|
||||
var $obj = $(this).parent().prev();
|
||||
if($obj.attr('type') == 'password')
|
||||
{
|
||||
$(this).addClass('cr-green');
|
||||
$obj.attr('type', 'text');
|
||||
} else {
|
||||
$(this).removeClass('cr-green');
|
||||
$obj.attr('type', 'password');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// 短信验证码获取
|
||||
$('.verify-submit, .verify-submit-win').on('click', function()
|
||||
{
|
||||
var $this = $(this);
|
||||
var $accounts = $('#accounts');
|
||||
var $verify = $('#verify-img-value');
|
||||
var $verify_img = $('#verify-img');
|
||||
var verify = '';
|
||||
if($accounts.hasClass('am-field-valid'))
|
||||
{
|
||||
// 是否需要先校验图片验证码
|
||||
if($this.data('verify') == 1)
|
||||
{
|
||||
// 开启图片验证码窗口
|
||||
$verify_win.modal('open');
|
||||
$verify_img.trigger("click");
|
||||
$verify.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 验证码窗口操作按钮则更新按钮对象
|
||||
var is_win = $(this).data('win');
|
||||
if(is_win == 1)
|
||||
{
|
||||
$this = $('.verify-submit');
|
||||
|
||||
// 验证码参数处理
|
||||
verify = $verify.val().replace(/\s+/g, '');
|
||||
|
||||
if(verify.length < 6)
|
||||
{
|
||||
Prompt($verify.data('validation-message'));
|
||||
$verify.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 验证码时间间隔
|
||||
var time_count = parseInt($this.data('time'));
|
||||
|
||||
// 按钮交互
|
||||
$this.button('loading');
|
||||
if(is_win == 1)
|
||||
{
|
||||
$('.verify-submit-win').button('loading');
|
||||
}
|
||||
|
||||
// 发送验证码
|
||||
$.ajax({
|
||||
url:$('.verify-submit').data('url'),
|
||||
type:'POST',
|
||||
data:{"accounts":$accounts.val(), "verify":verify, "type":$('form input[name="type"]').val()},
|
||||
dataType:'json',
|
||||
success:function(result)
|
||||
{
|
||||
if(result.code == 0)
|
||||
{
|
||||
var intervalid = setInterval(function()
|
||||
{
|
||||
if(time_count == 0)
|
||||
{
|
||||
$this.button('reset');
|
||||
if(is_win == 1)
|
||||
{
|
||||
$('.verify-submit-win').button('reset');
|
||||
}
|
||||
$this.text($this.data('text'));
|
||||
$verify.val('');
|
||||
clearInterval(intervalid);
|
||||
} else {
|
||||
var send_msg = $this.data('send-text').replace(/{time}/, time_count--);
|
||||
$this.text(send_msg);
|
||||
}
|
||||
}, 1000);
|
||||
$verify_win.modal('close');
|
||||
} else {
|
||||
$this.button('reset');
|
||||
if(is_win == 1)
|
||||
{
|
||||
$('.verify-submit-win').button('reset');
|
||||
$verify_img.trigger("click");
|
||||
}
|
||||
Prompt(result.msg);
|
||||
}
|
||||
},
|
||||
error:function()
|
||||
{
|
||||
$this.button('reset');
|
||||
if(is_win == 1)
|
||||
{
|
||||
$('.verify-submit-win').button('reset');
|
||||
}
|
||||
Prompt('网络错误');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$verify_win.modal('close');
|
||||
$accounts.focus();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
19
shopxo.sql
19
shopxo.sql
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue