lixin-web
Version:
vue and bootstrap
173 lines (163 loc) • 6.1 kB
HTML
<section class="manager-menu">
<div class="container">
<div class="row">
<h3><span data-field="greeting"></span>,<span data-field="nickname"></span>,欢迎您来到利信娱乐!</h3>
</div>
<div class="row">
<span class="fa fa-user fa-6"></span><a href="javascript:void(0)" data-command="XiuGaiNiCheng">修改昵称</a>
<span class="glyphicon glyphicon-list-alt"></span><span data-field="withdrawName"></span>
<span class="glyphicon glyphicon-lock"></span><a href="javascript:void(0)" data-command="XiuGaiDengLuMiMa">修改登录密码</a>
<span class="glyphicon glyphicon-lock"></span><a href="javascript:void(0)" data-command="XiuGaiZiJinMiMa">修改资金密码</a>
<span class="glyphicon glyphicon-credit-card"></span><a href="javascript:void(0)" data-command="BangDingYinHangKa">快捷绑定银行卡</a>
<span class="glyphicon glyphicon-time"></span><a href="javascript:void(0)">上次登录时间:<span data-field="loginTime"></span></a>
</div>
</div>
<div class="container">
<div class="row">
<nav class="" role="navigation" id='manager-nav'>
<div class="" data-injection="manager-menu" id="bs-example-navbar-collapse-2"></div>
</nav>
</div>
</div>
</section>
<script type="text/javascript">
// $('.a888 .b1 .c1 .d4').hover(function(){
// window.location.hash = '#change';
// });
// Will.ajax({},'/api/account/get-bind-info',function(data){
// if(data.withdrawName) {
// $('[data-field="withdrawName"]').html(data.withdrawName);
// }else{
// $('[data-field="withdrawName"]').parent().css({'visibility':'hidden'});
// }
// },0,0);
// Will.ajax({showInfo: true, showLoginLog: true},'/api/account/list-full-info', function(data){
// $('[data-field="loginTime"]').html(moment(data.accountLoginLog.loginTime).format('YYYY-MM-DD HH:mm:ss'));
// });
// //修改登录密码
// $('[data-command="mod-login-pwd"]').unbind().click(function() {
// PopModLoginPwd.init();
// });
// //修改资金密码
// var bindStatus = AppData.getMainAccount().bindStatus;
// $('[data-command="mod-withdraw-pwd"]').unbind().click(function() {
// if(bindStatus == 1) {
// PopModWithdrawPwd.init();
// } else {
// Will.info('您的资料未锁定,请先完善您的个人资料!');
// }
// });
// //tab 跳转添加样式
// $("#manager-nav a").each(function(){
// if(this.pathname === window.location.pathname){
// $(this).addClass("selected");
// }
// });
// $('#will-select01').change(function(){
// $('#will-select01-show .h').hide();
// $('#will-select01-show .h').eq($(this).val()).show();
// });
// $('#will-select01').change()
// $('.a888 select').dropkick({theme: Constant.dropkickColor,width:Constant.dropkickWidth});
// var score = function() {
// var isLoading = false;
// var thisContent = $('body');
// var loadBindInfo = function() {
// if(!isLoading) {
// isLoading = true;
// App.blockUI({
// target: thisContent,
// boxed: true
// });
// $.ajax({
// type: 'post',
// url: '/api/account/get-bind-status',
// data: {},
// timeout: 10000,
// dataType: 'json',
// success: function(response) {
// isLoading = false;
// App.unblockUI(thisContent);
// if(response.error == 0) {
// buildBindInfo(response.data);
// }
// if(response.error == 1 || response.error == 2) {
// App.alert('warning', '提示消息', response.message);
// }
// },
// error: function() {
// isLoading = false;
// App.unblockUI(thisContent);
// }
// });
// }
// }
// var buildBindInfo = function(data) {
// if(data) {
// var totalPoint = 0;
// if(data.isBindWithdrawPassword) {
// totalPoint += 20;
// }
// if(data.isBindSecurity) {
// totalPoint += 25;
// }
// if(data.isBindCard) {
// totalPoint += 30;
// }
// if(data.isBindWithdrawName) {
// totalPoint += 25;
// }
// // 设置分数效果
// var thisPoint = 0;
// var sp = $('.a888 .security-point');
// sp.find('.stars').removeClass('safe');
// sp.find('.stars > a').removeClass('light');
// var timer = undefined;
// timer = setInterval(function() {
// thisPoint++;
// sp.find('.point > .value > span').html(thisPoint);
// if(thisPoint == 100) {
// sp.find('.point').addClass('safe');
// } else {
// sp.find('.point').removeClass('safe');
// }
// if(thisPoint >= 20) {
// sp.find('.stars > a').eq(0).addClass('light');
// sp.find('.tips').html('您的账号级别为低,请完善您的安全信息!');
// }
// if(thisPoint >= 40) {
// sp.find('.stars > a').eq(1).addClass('light');
// sp.find('.tips').html('您的账号级别为低,请完善您的安全信息!');
// }
// if(thisPoint >= 60) {
// sp.find('.stars > a').eq(2).addClass('light');
// sp.find('.tips').html('您的账号级别为中,还有提升空间!');
// }
// if(thisPoint >= 80) {
// sp.find('.stars > a').eq(3).addClass('light');
// sp.find('.tips').html('您的账号级别为高,差一点就完美了!');
// }
// if(thisPoint == 100) {
// sp.find('.stars > a').eq(4).addClass('light');
// sp.find('.stars').addClass('safe');
// sp.find('.tips').html('您的账号已经非常安全!');
// }
// if(thisPoint >= totalPoint) {
// clearInterval(timer);
// }
// }, 1);
// }
// }
// $.ajaxSetup({async: false});
// loadBindInfo();
// $.ajaxSetup({async: true});
// }
// !function(){
// if(AppData.isLogin) {
// $('[data-field="nickname"]').html(AppData.getMainAccount().nickname);
// $('#will-sum01').html(AppData.getLotteryAccount().availableBalance.toFixed(3));
// $('[data-field="lotteryMoney"]').html(AppData.getLotteryAccount().availableBalance.toFixed(3));
// }
// score();
// }();
</script>