<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:85:"/www/wwwroot/fk.ybhz.xyz/application/templates/pc/merchant/default/user/settings.html";i:1543624690;s:76:"/www/wwwroot/fk.ybhz.xyz/application/templates/pc/merchant/default/base.html";i:1539744040;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title>商户面板 - <?php echo sysconf('site_name'); ?></title>

        <meta name="keywords" content="<?php echo sysconf('site_keywords'); ?>" />
        <meta name="description" content="<?php echo sysconf('site_desc'); ?>" />
        <link rel="shortcut icon" href="<?php echo sysconf('browser_icon'); ?>" />
        <!--Morris Chart CSS -->
		<link rel="stylesheet" href="/static/assets/plugins/morris/morris.css">

        <!-- Plugins css-->
        <link href="/static/assets/plugins/bootstrap-tagsinput/dist/bootstrap-tagsinput.css" rel="stylesheet" />
        <link href="/static/assets/plugins/multiselect/css/multi-select.css"  rel="stylesheet" type="text/css" />
        <link href="/static/assets/plugins/select2/dist/css/select2.css" rel="stylesheet" type="text/css">
        <link href="/static/assets/plugins/select2/dist/css/select2-bootstrap.css" rel="stylesheet" type="text/css">
        <link href="/static/assets/plugins/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css" rel="stylesheet" />
        <link href="/static/assets/plugins/switchery/switchery.min.css" rel="stylesheet" />
        <link href="/static/assets/plugins/timepicker/bootstrap-timepicker.min.css" rel="stylesheet">
		<link href="/static/assets/plugins/mjolnic-bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css" rel="stylesheet">
		<link href="/static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" rel="stylesheet">
		<link href="/static/assets/plugins/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
        <link href="/static/plugs/awesome/css/font-awesome.min.css" rel="stylesheet">

        <!-- Sweet Alert css -->
        <link href="/static/assets/plugins/bootstrap-sweetalert/sweet-alert.css" rel="stylesheet" type="text/css" />
        <!-- form Uploads -->
        <link href="/static/assets/plugins/fileuploads/css/dropify.min.css" rel="stylesheet" type="text/css" />

        <!-- App css -->
        <link href="/static/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="/static/assets/css/core.css" rel="stylesheet" type="text/css" />
        <link href="/static/assets/css/components.css" rel="stylesheet" type="text/css" />
        <link href="/static/assets/css/icons.css" rel="stylesheet" type="text/css" />
        <link href="/static/assets/css/pages.css" rel="stylesheet" type="text/css" />
        <link href="/static/assets/css/menu.css" rel="stylesheet" type="text/css" />
        <link href="/static/assets/css/responsive.css" rel="stylesheet" type="text/css" />

        <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->

        <script src="/static/assets/js/modernizr.min.js"></script>
        <style type="text/css">
            .page-title{ overflow: hidden;  height: 70px;  width: auto;  text-overflow: ellipsis;  white-space: nowrap;  }
        </style>
    </head>


    <body class="fixed-left">

        <!-- Begin page -->
        <div id="wrapper">

            <!-- Top Bar Start -->
            <div class="topbar">

                <!-- LOGO -->
                <div class="topbar-left">
                    <a href="/merchant/" class="logo"><img src="<?php echo sysconf('merchant_logo'); ?>" style="max-width:100%;max-height:60px" alt=""></a>
                </div>

                <!-- Button mobile view to collapse sidebar menu -->
                <div class="navbar navbar-default" role="navigation">
                    <div class="container">

                        <!-- Page title -->
                        <ul class="nav navbar-nav navbar-left">
                            <li>
                                <button class="button-menu-mobile open-left">
                                    <i class="zmdi zmdi-menu"></i>
                                </button>
                            </li>
                            <li>
                                <h4 class="page-title"><?php echo (isset($_title) && ($_title !== '')?$_title:"商户中心"); ?></h4>
                            </li>

                        </ul>

                        <!-- Right(Notification and Searchbox -->
                        <ul class="nav navbar-nav navbar-right">

                            <div class="right-guide hidden-xs">
                                
                                <li><i class="zmdi zmdi-user"></i>ID：<a href="<?php echo url('merchant/user/settings'); ?>"><?php echo $_user['id']; ?> </a></li>

                                <li><i class="zmdi zmdi-money"></i>今日可提现：<a href="javascript:;"><?php echo $_user['money']; ?> </a> <a style="color:#71b6f9;padding-left: 5px;" href="/merchant/cash/apply">提现</a></li>
                                <li><i class="zmdi zmdi-money"></i>未结余额：<a href="javascript:;"><?php echo $_user['freeze_money']; ?> </a><img src="/static/assets/images/help_ico.png" id="freeze_money_tip" style="width:15px;margin-top: -2px;cursor: pointer;"></li>
                                    <li>
                                        <a href="/merchant/user/settings" >
                                            <i class="zmdi zmdi-settings"></i> 设置
                                        </a>
                                    </li>

                                    <li>
                                        <a href="/logout" class="text-custom">
                                            <i class="zmdi zmdi-power"></i> 退出
                                        </a>
                                    </li>

                            </div>


                        </ul>

                    </div><!-- end container -->
                </div><!-- end navbar -->
            </div>
            <!-- Top Bar End -->


            <!-- ========== Left Sidebar Start ========== -->
            <div class="left side-menu">
                <div class="sidebar-inner slimscrollleft">


                    <!-- End User -->

                    <!--- Sidemenu -->
                    <div id="sidebar-menu">
                        <ul>
                        	<li class="text-muted menu-title">导航菜单</li>

                            <li>
                                <a href="/merchant" class="waves-effect <?php if($_controller=='Index'): ?>active<?php endif; ?>"><i class="zmdi zmdi-view-dashboard"></i> <span>管理中心</span> </a>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if(($_controller=='User' || $_controller=='Message') && $_action!='channel'): ?>active<?php endif; ?>">
                                    <i class="fa fa-user"></i>
                                    <span>商家管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                	<li class="waves-effect <?php if($_controller=='User' && $_action=='loginlog'): ?>active<?php endif; ?>">
                                        <a href="/merchant/user/loginlog">登录日志</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Message' && $_action=='index'): ?>active<?php endif; ?>">
                                        <a href="/merchant/message/index">站内消息</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='User' && $_action=='settings'): ?>active<?php endif; ?>">
                                        <a href="/merchant/user/settings">商家设置</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='User' && $_action=='password'): ?>active<?php endif; ?>">
                                        <a href="/merchant/user/password">修改密码</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='User' && $_action=='link'): ?>active<?php endif; ?>">
                                        <a href="/merchant/user/link">店铺链接</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='Complaint'): ?>active<?php endif; ?>">
                                    <i class="fa fa-frown-o"></i>
                                    <span>投诉管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                	<li class="waves-effect <?php if($_controller=='Complaint' && $_action=='index' && \think\Request::instance()->get('status')===null): ?>active<?php endif; ?>">
                                        <a href="/merchant/complaint/index">全部投诉</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Complaint' && $_action=='index' && \think\Request::instance()->get('status')==1): ?>active<?php endif; ?>">
                                        <a href="/merchant/complaint/index?status=1">已处理</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Complaint' && $_action=='index' && \think\Request::instance()->get('status')==='0'): ?>active<?php endif; ?>">
                                        <a href="/merchant/complaint/index?status=0">未处理</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='Goods' || $_controller=='GoodsCategory'): ?>active<?php endif; ?>">
                                    <i class="fa fa-shopping-bag"></i>
                                    <span>商品管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                	<li class="waves-effect <?php if($_controller=='GoodsCategory' && $_action=='index'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_category/index">商品分类</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Goods' && $_action=='add'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods/add">添加商品</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Goods' && $_action=='index'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods/index">商品列表</a>
                                    </li>
                                    <li class="waves-effect <?php if($_controller=='Goods' && $_action=='trash'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods/trash">回收站</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='GoodsCard'): ?>active<?php endif; ?>">
                                    <i class="fa fa-cc-discover"></i>
                                    <span>虚拟卡管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                    <li class="waves-effect <?php if($_controller=='GoodsCard' && $_action=='add'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_card/add">添加虚拟卡</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCard' && $_action=='index' && \think\Request::instance()->get('status')===null): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_card/index">虚拟卡列表</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCard' && $_action=='index' && \think\Request::instance()->get('status')==='2'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_card/index?status=2">已售出</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCard' && $_action=='index' && \think\Request::instance()->get('status')==='1'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_card/index?status=1">未售出</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCard' && $_action=='ashbin'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_card/ashbin">回收站</a>
                                    </li>
                                	<!-- <li class="waves-effect <?php if($_controller=='GoodsCard' && $_action=='sold'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_card/sold">最近卖出</a>
                                    </li> -->
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='GoodsCoupon'): ?>active<?php endif; ?>">
                                    <i class="fa fa-ticket"></i>
                                    <span>优惠券管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                	<li class="waves-effect <?php if($_controller=='GoodsCoupon' && $_action=='add'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_coupon/add">添加优惠券</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCoupon' && $_action=='index' && \think\Request::instance()->get('status')===null): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_coupon/index">优惠券列表</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCoupon' && $_action=='index' && \think\Request::instance()->get('status')==='2'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_coupon/index?status=2">已使用</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='GoodsCoupon' && $_action=='index' && \think\Request::instance()->get('status')==='1'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_coupon/index?status=1">未使用</a>
                                    </li>
                                    <li class="waves-effect <?php if($_controller=='GoodsCoupon' && $_action=='trash'): ?>active<?php endif; ?>">
                                        <a href="/merchant/goods_coupon/trash">回收站</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='Order' ||  $_controller=='User' && $_action=='channel'): ?>active<?php endif; ?>">
                                    <i class="fa fa-reorder"></i>
                                    <span>订单管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                    <li class="waves-effect <?php if($_controller=='User' && $_action=='channel'): ?>active<?php endif; ?>">
                                        <a href="/merchant/user/channel">付款方式</a>
                                    </li>
                                    <li class="waves-effect <?php if($_controller=='Order' && $_action=='channelstatis'): ?>active<?php endif; ?>">
                                        <a href="/merchant/order/channelStatis">渠道分析</a>
                                    </li>
                                    <li class="waves-effect <?php if($_controller=='Order' && $_action=='index' && \think\Request::instance()->get('status')===null): ?>active<?php endif; ?>">
                                        <a href="/merchant/order/index">订单列表</a>
                                    </li>
                                    <li class="waves-effect <?php if($_controller=='Order' && $_action=='analysis' && \think\Request::instance()->get('status')===null): ?>active<?php endif; ?>">
                                        <a href="/merchant/order/analysis">收益分析</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Order' && $_action=='index' && \think\Request::instance()->get('status')==1): ?>active<?php endif; ?>">
                                        <a href="/merchant/order/index?status=1">已付款</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Order' && $_action=='index' && \think\Request::instance()->get('status')==='0'): ?>active<?php endif; ?>">
                                        <a href="/merchant/order/index?status=0">未付款</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='Spread' || $_controller=='InviteCode'): ?>active<?php endif; ?>">
                                    <i class="fa fa-paper-plane-o"></i>
                                    <span>推广管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                	<li class="waves-effect <?php if($_controller=='Spread' && $_action=='index'): ?>active<?php endif; ?>">
                                        <a href="/merchant/spread/index">推广列表</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Spread' && $_action=='rebate'): ?>active<?php endif; ?>">
                                        <a href="/merchant/spread/rebate">推广返利</a>
                                    </li>
                                    <?php if(sysconf('spread_invite_code') == 1): ?>
                                    <li class="waves-effect <?php if($_controller=='InviteCode' && $_action=='index'): ?>active<?php endif; ?>">
                                        <a href="/merchant/invite_code/index">邀请码管理</a>
                                    </li>
                                    <?php endif; ?>
                                </ul>
                            </li>

                            <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect <?php if($_controller=='Cash'): ?>active<?php endif; ?>">
                                    <i class="fa fa-dollar"></i>
                                    <span>提现管理</span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="list-unstyled">
                                	<li class="waves-effect <?php if($_controller=='Cash' && $_action=='apply'): ?>active<?php endif; ?>">
                                        <a href="/merchant/cash/apply">申请提现</a>
                                    </li>
                                	<li class="waves-effect <?php if($_controller=='Cash' && $_action=='index'): ?>active<?php endif; ?>">
                                        <a href="/merchant/cash/index">提现列表</a>
                                    </li>
                                </ul>
                            </li>

                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <!-- Sidebar -->
                    <div class="clearfix"></div>

                </div>

            </div>
            <!-- Left Sidebar End -->



            <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="content-page">
                <!-- Start content -->
                <div class="content">
                    <div class="container">
                    
<div class="row">
	<div class="col-sm-12">
		<div class="card-box">
			<div class="row">
				<div class="col-lg-6">
					<h4 class="header-title m-t-0 m-b-30">商户基本信息</h4>
					<form class="form-horizontal" role="form" action="" method="post">
						<div class="form-group">
							<label class="col-md-3 control-label">商户编号</label>
							<div class="col-md-9">
								<p class="form-control-static"><?php echo $_user['id']; ?></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">用户名</label>
							<div class="col-md-9">
								<p class="form-control-static"><?php echo $_user['username']; ?></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">电子邮箱</label>
							<div class="col-md-9">
								<p class="form-control-static"><?php echo $_user['email']; ?></p>
							</div>
						</div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">手机号码</label>
                            <div class="col-md-9">
                                <input name="mobile" type="text" class="form-control" value="<?php echo $_user['mobile']; ?>">
                                <br>
                                <button type="button" id="get_code" onclick="getCode()"> 获取验证码</button>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">短信验证码</label>
                            <div class="col-md-9">
                                <input name="mobileCode" type="text" class="form-control" value="">
                            </div>
                        </div>
                        <div class="form-group" style="color:red;">
                            <label class="col-md-3 control-label">* 说明 *</label>
                            <div class="col-md-9">
                                修改手机号需验证旧手机号码，新增或不修改，此项留空，验证码错误时，手机号码不会修改
                            </div>
                        </div>
						<?php if(sysconf('login_auth') == 1) {?>
						<div class="form-group">
							<label class="col-md-3 control-label">安全登录</label>
							<div class="col-md-9">
								<select name="login_auth" class="form-control" required>
									<option value="1" <?php if($_user['login_auth']==1): ?>selected<?php endif; ?>>是</option>
									<option value="0" <?php if($_user['login_auth']==0): ?>selected<?php endif; ?>>否</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">安全登录方式</label>
							<div class="col-md-9">
								<select name="login_auth_type" class="form-control" required>
									<?php if(sysconf('login_auth_type') == 0) { ?>
									<option value="1" <?php if($_user['login_auth_type']==1): ?>selected<?php endif; ?>>短信验证</option>
									<option value="2" <?php if($_user['login_auth_type']==2): ?>selected<?php endif; ?>>邮件验证</option>
									<option value="3" <?php if($_user['login_auth_type']==3): ?>selected<?php endif; ?>>谷歌密码验证</option>
									<?php } if(sysconf('login_auth_type') == 1) { ?>
									<option value="2" <?php if($_user['login_auth_type']==2): ?>selected<?php endif; ?>>邮件验证</option>
									<option value="3" <?php if($_user['login_auth_type']==3): ?>selected<?php endif; ?>>谷歌密码验证</option>
									<?php } if(sysconf('login_auth_type') == 2) { ?>
									<option value="1" <?php if($_user['login_auth_type']==1): ?>selected<?php endif; ?>>短信验证</option>
									<option value="3" <?php if($_user['login_auth_type']==3): ?>selected<?php endif; ?>>谷歌密码验证</option>
									<?php } ?>
								</select>
							</div>
						</div>
						<?php } ?>
						<div class="form-group">
							<label class="col-md-3 control-label">商户QQ</label>
							<div class="col-md-9">
								<input name="qq" type="text" class="form-control" value="<?php echo $_user['qq']; ?>">
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">商户网站</label>
							<div class="col-md-9">
								<input name="website" type="text" class="form-control" value="<?php echo $_user['website']; ?>">
								<p class="stock_display_2_tips">网址前面加http://或https://</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">子域名</label>
							<div class="col-md-9">
								<input name="subdomain" type="text" class="form-control" value="<?php echo $_user['subdomain']; ?>">
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">店铺名称</label>
							<div class="col-md-9">
								<input name="shop_name" type="text" class="form-control" value="<?php echo $_user['shop_name']; ?>">
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">店铺公告</label>
							<div class="col-md-9">
								<textarea name="shop_notice" placeholder="" class="form-control" rows="5" maxlength="200"><?php echo $_user['shop_notice']; ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">系统公告自动弹出</label>
							<div class="col-md-9">
								<select name="shop_notice_auto_pop" class="form-control" required>
									<option value="1" <?php if($_user['shop_notice_auto_pop']==1): ?>selected<?php endif; ?>>是</option>
									<option value="0" <?php if($_user['shop_notice_auto_pop']==0): ?>selected<?php endif; ?>>否</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">商家公告自动弹出</label>
							<div class="col-md-9">
								<select name="user_notice_auto_pop" class="form-control" required>
									<option value="1" <?php if($_user['user_notice_auto_pop']==1): ?>selected<?php endif; ?>>是 </option>
									<option value="0" <?php if($_user['user_notice_auto_pop']==0): ?>selected<?php endif; ?>>否 </option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">购卡协议自动弹出</label>
							<div class="col-md-9">
								<select name="shop_gouka_protocol_pop" class="form-control" required>
									<option value="1" <?php if($_user['shop_gouka_protocol_pop']==1): ?>selected<?php endif; ?>>是 </option>
									<option value="0" <?php if($_user['shop_gouka_protocol_pop']==0): ?>selected<?php endif; ?>>否 </option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">支付页面风格</label>
							<div class="col-md-9">
								<select name="pay_theme" class="form-control" required>
									<!-- <?php foreach(config('pay_themes') as $theme): ?> -->
									<option value="<?php echo $theme['alias']; ?>" <?php if($_user['pay_theme']==$theme['alias']): ?>selected<?php endif; ?>><?php echo $theme['name']; ?></option>
									<!-- <?php endforeach; ?> -->
								</select>
							</div>
						</div>
						<!-- <div class="form-group">
							<label class="col-md-3 control-label">取卡页售后菜单</label>
							<div class="col-md-9">
								<select name="pay_theme" class="form-control" required>
									<?php foreach(config('pay_themes') as $theme): ?>
									<option value="<?php echo $theme['alias']; ?>" <?php if($_user['pay_theme']==$theme['alias']): ?>selected<?php endif; ?>><?php echo $theme['name']; ?></option>
									<?php endforeach; ?>
								</select>
							</div>
						</div> -->
						<div class="form-group">
							<label class="col-md-3 control-label">库存展示方式</label>
							<div class="col-md-9">
								<select name="stock_display" class="form-control" required>
									<option value="1" <?php if($_user['stock_display']==1): ?>selected<?php endif; ?>>实际库存</option>
									<option value="2" <?php if($_user['stock_display']==2): ?>selected<?php endif; ?>>范围库存</option>
								</select>
								<p class="stock_display_2_tips" <?php if($_user['stock_display']==1): ?>style="display:none"<?php endif; ?>>
									1. 库存大于100，显示 库存非常多<br>
									2. 库存小于100、大于30，显示 库存很多<br>
									3. 库存小于30、大于10，显示 库存一般<br>
									4. 库存小于10，显示 库存少量<br>
								</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">提现方式</label>
							<div class="col-md-9">
								<select name="cash_type" class="form-control">
									<option value="1" <?php if($_user['cash_type']==1): ?>selected<?php endif; ?>>系统默认</option>
									<option value="2" <?php if($_user['cash_type']==2): ?>selected<?php endif; ?>>手工提现</option>
									<option value="3" <?php if($_user['cash_type']==3): ?>selected<?php endif; ?>>自动提现</option>
								</select>
							</div>
						</div>
						<div class="form-group" style="color:red;">
							<label class="col-md-3 control-label">* 说明 *</label>
							<div class="col-md-9">
								手工提现：手动申请提现。自动提现：金额满 <?php echo sysconf('auto_cash_money'); ?> 元系统自动生成提款记录无需手工操作。
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">费率承担方</label>
							<div class="col-md-9">
								<select name="fee_payer" class="form-control">
									<option value="0" <?php if($_user['fee_payer']==0): ?>selected<?php endif; ?>>跟随系统</option>
									<option value="1" <?php if($_user['fee_payer']==1): ?>selected<?php endif; ?>>商家承担</option>
									<option value="2" <?php if($_user['fee_payer']==2): ?>selected<?php endif; ?>>买家承担</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label"></label>
							<div class="col-md-9">
								<button type="submit" class="btn btn-purple waves-effect waves-light">保存设置</button>
							</div>
						</div>
					</form>
				</div>
				<!-- end col -->
				<div class="col-lg-6">
					<h4 class="header-title m-t-0 m-b-30">商户收款信息</h4>
					<form class="form-horizontal" role="form" action="<?php echo url('collect'); ?>" method="post" id="gathering_info" enctype="multipart/form-data">
						<div class="form-group">
							<label class="col-md-3 control-label">收款方式</label>
							<div class="col-md-9">
								<select name="type" class="form-control"  <?php if(isset($_user['collect']['info']) && $_user['collect']['allow_update'] == 0): ?> disabled="disabled" <?php endif; ?> >
								<?php if(in_array(1, (array)json_decode((string)sysconf('cash_type'), true))): ?>
								<option value="1" <?php if($_user['collect']['type']==1): ?>selected<?php endif; ?>>支付宝收款</option>
								<?php endif; if(in_array(2, (array)json_decode((string)sysconf('cash_type'), true))): ?>
								<option value="2" <?php if($_user['collect']['type']==2): ?>selected<?php endif; ?>>微信收款</option>
								<?php endif; if(in_array(3, (array)json_decode((string)sysconf('cash_type'), true))): ?>
								<option value="3" <?php if($_user['collect']['type']==3): ?>selected<?php endif; ?>>银行卡收款</option>
								<?php endif; ?>
								</select>
							</div>
						</div>
						<?php if($type = json_decode(sysconf('cash_type'), true)): ?>
						<div class="collect_type type_alipay" <?php if((!$_user['collect'] && $_user['collect']['type']!='1' && $type[0] != 1) || ($_user['collect'] && $_user['collect']['type']!='1')): ?>style="display:none;"<?php endif; ?>>
						<div class="form-group">
							<label class="col-md-3 control-label">支付宝账号</label>
							<div class="col-md-9">
								<input name="alipay[account]" type="text" class="form-control"  <?php if(isset($_user['collect']['info']['account']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  value="<?php echo (isset($_user['collect']['info']['account']) && ($_user['collect']['info']['account'] !== '')?$_user['collect']['info']['account']:''); ?>">
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">收款人姓名</label>
							<div class="col-md-9">
								<input name="alipay[realname]" type="text" class="form-control" <?php if(isset($_user['collect']['info']['realname']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  value="<?php echo (isset($_user['collect']['info']['realname']) && ($_user['collect']['info']['realname'] !== '')?$_user['collect']['info']['realname']:''); ?>">
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">身份证号</label>
							<div class="col-md-9">
								<input name="alipay[idcard_number]" type="text" class="form-control idcard_number" <?php if(isset($_user['collect']['info']['idcard_number']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  onblur="if(this.value==''){this.value='<?php echo idcardnoMask($_user['collect']['info']['idcard_number']); ?>'}" onfocus="if(this.value=='<?php echo idcardnoMask($_user['collect']['info']['idcard_number']); ?>'){this.value=''}" value="<?php echo idcardnoMask($_user['collect']['info']['idcard_number']); ?>">
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">收款二维码</label>
							<div class="col-md-9">
								<?php if($_user['collect']['collect_img'] && $_user['collect']['allow_update'] == 0): ?>
								<img src="<?php echo (isset($_user['collect']['collect_img']) && ($_user['collect']['collect_img'] !== '')?$_user['collect']['collect_img']:''); ?>" style="width: 80%;margin:0 auto;" alt="">
								<?php else: ?>
								<input type="file" name="ali_collect_img" class="dropify"/>
								<?php endif; ?>
							</div>
						</div>
				</div>
				<div class="collect_type type_wxpay" <?php if((!$_user['collect'] && $_user['collect']['type']!='2' && $type[0] != 2) || ($_user['collect'] && $_user['collect']['type']!='2')): ?>style="display:none;"<?php endif; ?>>
				<div class="form-group">
					<label class="col-md-3 control-label">微信账号</label>
					<div class="col-md-9">
						<input name="wxpay[account]" type="text" class="form-control"  <?php if(isset($_user['collect']['info']['account']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  value="<?php echo (isset($_user['collect']['info']['account']) && ($_user['collect']['info']['account'] !== '')?$_user['collect']['info']['account']:''); ?>">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label">收款人姓名</label>
					<div class="col-md-9">
						<input name="wxpay[realname]" type="text" class="form-control"  <?php if(isset($_user['collect']['info']['realname']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  value="<?php echo (isset($_user['collect']['info']['realname']) && ($_user['collect']['info']['realname'] !== '')?$_user['collect']['info']['realname']:''); ?>">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label">身份证号</label>
					<div class="col-md-9">
						<input name="wxpay[idcard_number]" type="text" class="form-control idcard_number"  <?php if(isset($_user['collect']['info']['idcard_number']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  value="<?php echo (isset($_user['collect']['info']['idcard_number']) && ($_user['collect']['info']['idcard_number'] !== '')?$_user['collect']['info']['idcard_number']:''); ?>">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label">收款二维码</label>
					<div class="col-md-9">
						<?php if($_user['collect']['collect_img'] && $_user['collect']['allow_update'] == 0): ?>
						<img src="<?php echo (isset($_user['collect']['collect_img']) && ($_user['collect']['collect_img'] !== '')?$_user['collect']['collect_img']:''); ?>" style="width: 80%;margin:0 auto;" alt="">
						<?php else: ?>
						<input type="file" name="collect_img" class="dropify"/>
						<?php endif; ?>
					</div>
				</div>
			</div>
			<div class="collect_type type_bank" <?php if((!$_user['collect'] && $_user['collect']['type']!='3' && $type[0] != 3) || ($_user['collect'] && $_user['collect']['type']!='3')): ?>style="display:none;"<?php endif; ?>>
			<div class="form-group">
				<label class="col-md-3 control-label">开户银行</label>
				<div class="col-md-9">
					<select name="bank[bank_name]" class="form-control"  <?php if(isset($_user['collect']['info']['bank_name']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?> >
					<option value="中国工商银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='中国工商银行'): ?>selected<?php endif; ?>>中国工商银行</option>
					<option value="中国建设银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='中国建设银行'): ?>selected<?php endif; ?>>中国建设银行</option>
					<option value="中国农业银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='中国农业银行'): ?>selected<?php endif; ?>>中国农业银行</option>
					<option value="中国邮政储蓄银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='中国邮政储蓄银行'): ?>selected<?php endif; ?>>中国邮政储蓄银行</option>
					<option value="招商银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='招商银行'): ?>selected<?php endif; ?>>招商银行</option>
					<option value="农村信用合作社" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='农村信用合作社'): ?>selected<?php endif; ?>>农村信用合作社</option>
					<option value="兴业银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='兴业银行'): ?>selected<?php endif; ?>>兴业银行</option>
					<option value="广东发展银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='广东发展银行'): ?>selected<?php endif; ?>>广东发展银行</option>
					<option value="深圳发展银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='深圳发展银行'): ?>selected<?php endif; ?>>深圳发展银行</option>
					<option value="民生银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='民生银行'): ?>selected<?php endif; ?>>民生银行</option>
					<option value="交通银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='交通银行'): ?>selected<?php endif; ?>>交通银行</option>
					<option value="中信银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='中信银行'): ?>selected<?php endif; ?>>中信银行</option>
					<option value="光大银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='光大银行'): ?>selected<?php endif; ?>>光大银行</option>
					<option value="中国银行" <?php if($_user['collect']['type']==3 && $_user['collect']['info']['bank_name']=='中国银行'): ?>selected<?php endif; ?>>中国银行</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">开户地址</label>
				<div class="col-md-9">
					<input name="bank[bank_branch]" type="text" class="form-control" value="<?php echo (isset($_user['collect']['info']['bank_branch']) && ($_user['collect']['info']['bank_branch'] !== '')?$_user['collect']['info']['bank_branch']:''); ?>" <?php if(isset($_user['collect']['info']['bank_branch'])&& $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  placeholder="开户行请精确到市">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">银行卡号</label>
				<div class="col-md-9">
					<input name="bank[bank_card]" type="text" class="form-control" <?php if(isset($_user['collect']['info']['bank_card']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?>  value="<?php echo (isset($_user['collect']['info']['bank_card']) && ($_user['collect']['info']['bank_card'] !== '')?$_user['collect']['info']['bank_card']:''); ?>" placeholder="请认真核对银行卡号">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">收款人姓名</label>
				<div class="col-md-9">
					<input name="bank[realname]" type="text" class="form-control" <?php if(isset($_user['collect']['info']['realname']) && $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?> value="<?php echo (isset($_user['collect']['info']['realname']) && ($_user['collect']['info']['realname'] !== '')?$_user['collect']['info']['realname']:''); ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">身份证号</label>
				<div class="col-md-9">
					<input name="bank[idcard_number]" type="text" class="form-control idcard_number" <?php if(isset($_user['collect']['info']['idcard_number'])&& $_user['collect']['allow_update'] == 0): ?> readonly="readonly" <?php endif; ?> value="<?php echo (isset($_user['collect']['info']['idcard_number']) && ($_user['collect']['info']['idcard_number'] !== '')?$_user['collect']['info']['idcard_number']:''); ?>">
				</div>
			</div>
		</div>
		<?php endif; if(!$_user['collect']['info'] || $_user['collect']['allow_update'] == 1): ?>
		<div class="form-group" style="display: flex; align-items: center; color: red;">
			<label class="col-md-3 control-label">*</label>
			<div class="col-md-9">
				慎重填写，再三确认，填写后不可修改
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-3 control-label"></label>
			<div class="col-md-9">
				<button type="submit" class="btn btn-purple waves-effect waves-light">保存设置</button>
			</div>
		</div>
		<?php else: ?>
		<div class="form-group" style="display: flex; align-items: center; color: red;">
			<label class="col-md-3 control-label">*</label>
			<div class="col-md-9">
				修改收款方式请联系客服
			</div>
		</div>
		<?php endif; ?>
		</form>
	</div>
	<!-- end col -->
</div>
<!-- end row -->
</div>
</div>
<!-- end col -->
</div>

                    </div> <!-- container -->
                </div> <!-- content -->

                <footer class="footer text-right">
                    <?php echo date('Y'); ?> © <?php echo sysconf('site_name'); ?>.
                </footer>

            </div>


            <!-- ============================================================== -->
            <!-- End Right content here -->
            <!-- ============================================================== -->


            <!-- Right Sidebar -->
            <div class="side-bar right-bar">
                <a href="javascript:void(0);" class="right-bar-toggle">
                    <i class="zmdi zmdi-close-circle-o"></i>
                </a>
                <h4 class="">T`H`E`M`E`L`O`C`K`.`C`O`M`</h4>
                <div class="notification-list nicescroll">
                    <ul class="list-group list-no-border user-list">
                        <li class="list-group-item">
                            <a href="#" class="user-list-item">
                                <div class="avatar">
                                    <img src="/static/assets/images/users/avatar-2.jpg" alt="">
                                </div>
                                <div class="user-desc">
                                    <span class="name">Michael Zenaty</span>
                                    <span class="desc">There are new settings available</span>
                                    <span class="time">2 hours ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="list-group-item">
                            <a href="#" class="user-list-item">
                                <div class="icon bg-info">
                                    <i class="zmdi zmdi-account"></i>
                                </div>
                                <div class="user-desc">
                                    <span class="name">New Signup</span>
                                    <span class="desc">There are new settings available</span>
                                    <span class="time">5 hours ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="list-group-item">
                            <a href="#" class="user-list-item">
                                <div class="icon bg-pink">
                                    <i class="zmdi zmdi-comment"></i>
                                </div>
                                <div class="user-desc">
                                    <span class="name">New Message received</span>
                                    <span class="desc">There are new settings available</span>
                                    <span class="time">1 day ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="list-group-item active">
                            <a href="#" class="user-list-item">
                                <div class="avatar">
                                    <img src="/static/assets/images/users/avatar-3.jpg" alt="">
                                </div>
                                <div class="user-desc">
                                    <span class="name">James Anderson</span>
                                    <span class="desc">There are new settings available</span>
                                    <span class="time">2 days ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="list-group-item active">
                            <a href="#" class="user-list-item">
                                <div class="icon bg-warning">
                                    <i class="zmdi zmdi-settings"></i>
                                </div>
                                <div class="user-desc">
                                    <span class="name">Settings</span>
                                    <span class="desc">There are new settings available</span>
                                    <span class="time">1 day ago</span>
                                </div>
                            </a>
                        </li>

                    </ul>
                </div>
            </div>
            <!-- /Right-bar -->

        </div>
        <!-- END wrapper -->



        <script>
            var resizefunc = [];
        </script>

        <!-- jQuery  -->
        <script src="/static/assets/js/jquery.min.js"></script>
        <script src="/static/assets/js/bootstrap.min.js"></script>
        <script src="/static/assets/js/detect.js"></script>
        <script src="/static/assets/js/fastclick.js"></script>
        <script src="/static/assets/js/jquery.slimscroll.js"></script>
        <script src="/static/assets/js/jquery.blockUI.js"></script>
        <script src="/static/assets/js/waves.js"></script>
        <script src="/static/assets/js/jquery.nicescroll.js"></script>
        <script src="/static/assets/js/jquery.scrollTo.min.js"></script>

        <!-- Plugins Js -->
        <script src="/static/assets/plugins/switchery/switchery.min.js"></script>
        <script src="/static/assets/plugins/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js"></script>
        <script type="text/javascript" src="/static/assets/plugins/multiselect/js/jquery.multi-select.js"></script>
        <script type="text/javascript" src="/static/assets/plugins/jquery-quicksearch/jquery.quicksearch.js"></script>
        <script src="/static/assets/plugins/select2/dist/js/select2.min.js" type="text/javascript"></script>
        <script src="/static/assets/plugins/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js" type="text/javascript"></script>
        <script src="/static/assets/plugins/bootstrap-inputmask/bootstrap-inputmask.min.js" type="text/javascript"></script>
        <script src="/static/assets/plugins/moment/moment.js"></script>
     	<script src="/static/assets/plugins/timepicker/bootstrap-timepicker.min.js"></script>
     	<script src="/static/assets/plugins/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"></script>
     	<script src="/static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
     	<script src="/static/assets/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
        <script src="/static/assets/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js" type="text/javascript"></script>

        <!-- Sweet Alert js -->
        <script src="/static/assets/plugins/bootstrap-sweetalert/sweet-alert.min.js"></script>
        <script src="/static/assets/pages/jquery.sweet-alert.init.js"></script>

        <!-- file uploads js -->
        <script src="/static/assets/plugins/fileuploads/js/dropify.min.js"></script>

        <script>
            //Date range picker
            $('.input-daterange-datepicker').daterangepicker({
                buttonClasses: ['btn', 'btn-sm'],
                applyClass: 'btn-default',
                cancelClass: 'btn-primary',
                locale: {
                    applyLabel: '应用',
                    cancelLabel: '取消',
                    daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                    monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十月', '十二月'],
                    firstDay: 1
                }

            });
        </script>

        
<script>
    $('[name="type"]').change(function(){
        var selected=$(this).val()*1;
        $('.collect_type').slideUp();
        switch(selected){
            case 1:  // 支付宝
                $('.type_alipay').slideDown();
                break;
            case 2:  // 微信
                $('.type_wxpay').slideDown();
                break;
            case 3:  // 银行
                $('.type_bank').slideDown();
                break;
        }
    });
    $('[name="stock_display"]').change(function(){
        var selected=$(this).val()*1;
        console.log(selected);
        if(selected==2){
            $('.stock_display_2_tips').show();
        }else{
            $('.stock_display_2_tips').hide();
        }
    });
    $('#gathering_info').submit(function(){
        var status = true;
        $('.collect_type').each(function(){
            if($(this).is(':visible')){
                //验证二维码
                var collect_img_value = $(this).find('.dropify').val();
                if($(this).find('.dropify').length > 0 && !collect_img_value){
                    layer.alert('请选择收款二维码！');
                    status = false;
                }
                var idcard_number = $(this).find('input.idcard_number').last().val()
                var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
                console.log(idcard_number);
                if(!reg.test(idcard_number)){
                    layer.alert('请输入正确的身份证号码');
                    status = false;
                }

            }
        })
        return status;
    })
    $('.dropify').dropify({
        messages: {
            'default': '点击上传二维码',
            'replace': '点击替换二维码',
            'remove': '删除',
            'error': '上传错误'
        },
        error: {
            'fileSize': '文件太大超过（1M）'
        }
    });

    function getCode() {
        layer.prompt({
            title: '请输入验证码',
            formType: 3
        }, function (chkcode) {
            $('#get_code').off('click');
            $.post('/merchant/user/sendSmsCode', {
                chkcode: chkcode,
                token: "<?php echo $sms_token; ?>",
                phone: "<?php echo $_user['mobile']; ?>",
                t: new Date().getTime()
            }, function (ret) {
                //                        console.log(ret);
                if (ret.code === 1) {
                    layer.closeAll();
                    layer.msg(ret.msg);
                    token = ret.data.token;
                    $('#get_code').html('<i class="times">80</i> 秒后重发');
                    timeC(80, '#get_code');
                } else {
                    alert(ret.msg);
                    $('#get_code').on('click', getCode);
                }
            }, 'json');
        })
        $('.layui-layer-prompt .layui-layer-content').prepend($(
            '<img style="cursor:pointer;height: 60px;" id="chkcode_img" src="/chkcode" onclick="javascript:this.src=\'/chkcode\'+\'?time=\'+Math.random()">'
        ))
    }</script>


        <!-- App js -->
        <script src="/static/assets/js/jquery.core.js"></script>
        <script src="/static/assets/js/jquery.app.js"></script>
        <script src="/static/app/js/layer.js"></script>
        <?php if(!(empty($common_announce) || (($common_announce instanceof \think\Collection || $common_announce instanceof \think\Paginator ) && $common_announce->isEmpty()))): ?>
        <div id="common_title" style="display: none"><?php echo $common_announce['title']; ?></div>
        <div id="common_announce" style="display: none"><div style="padding:15px"><?php echo htmlspecialchars_decode($common_announce['content']); ?></div></div>
        <script>
        layer.open({
            type: 1,
            skin: 'layui-layer-rim',
            title: $('#common_title').html(),
            area: ['680px', '400px'],
            content: $('#common_announce').html()
        });
        </script>
        <?php endif; ?>
        <script>
            if(!getCookie('freeze_money_tip')){
                setCookie('freeze_money_tip', 1, 1)
                layer.tips('今天的交易明天才可以提现哦', '#freeze_money_tip',{
                    tips: [1, '#ff5b5b'],
                });
            }
            $("#freeze_money_tip").click(function(){
                layer.alert('今天的交易明天才可以提现哦', {
                    btn: ['知道了']
                });
            });
            function setCookie(name, value, iDay)
            {
                var oDate=new Date();

                oDate.setDate(oDate.getDate()+iDay);

                document.cookie=name+'='+encodeURIComponent(value)+';expires='+oDate;
            }

            function getCookie(name)
            {
                var arr=document.cookie.split('; ');
                var i=0;
                for(i=0;i<arr.length;i++)
                {
                    //arr2->['username', 'abc']
                    var arr2=arr[i].split('=');

                    if(arr2[0]==name)
                    {
                        var getC = decodeURIComponent(arr2[1]);
                        return getC;
                    }
                }

                return '';
            }
        </script>
    </body>
</html>
