<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" href="/static/weixin/css/public.css">
    <link rel="stylesheet" href="/static/weixin/css/basic.css">
    <link rel="stylesheet" href="/static/weixin/css/SG_area_select.css?v=1.0.6">

    <script src="/static/weixin/js/jquery-1.8.3.min.js"></script>
    <script src="/static/weixin/js/flexible.js"></script>
    <script src="/static/weixin/common/layer_mobile/layer.js"></script>
    <link rel="stylesheet" href="/static/weixin/common/layer_mobile/need/right.css">
    <script src="/static/weixin/common/jquery.formHelper.js"></script>
    <script src="/static/weixin/js/g.js"></script>
    <style>
        .specialText{
            white-space: normal !important;
            word-break: break-all !important;
            text-overflow: unset !important;
            line-height: 0.6rem !important;
            padding-top: 0.3rem !important;
            padding-bottom: 0.3rem !important;
            text-align: right !important;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function(){
            //退出登录
            $("#exit").click(function() {
                g_ajax("/weixin/account/exit",{},function(json){
                    if(json.success)  window.location.href="/weixin/webUser/login/init?oppenId="+json.msg;
                },false);
            });

            //字典列表， 数据列表，现场翻译
            function setP(row){
               $("#contain p").each(function(){
                  var name = $(this).attr('name');
                  var str = row[name];
                  if(name=="province,city,district"){//第一个省市县
                      str = ""+g_getRegion(row.province).province+" "+g_getRegion(row.city).citytype+" "+g_getRegion(row.district).city
                  }
                  if(name=="bank_province,bank_city"){ //开户行所在省市
                      str = ""+g_getRegion(row.bank_province).province+" "+g_getRegion(row.bank_city).citytype
                  }
                  if(name=="terminal_type")  str = g_getDict("terminalType", row.terminal_type);
                  if(name=="document_type" && row.terminal_type=="2")  str = g_getDict("iDType", row.document_type);
                  if(name=="document_type" && row.terminal_type=="1")  str = g_getDict("documentType", row.document_type);

                  $(this).html(str);
               });
            }
            g_ajax("/weixin/account/getAccount",{},function(json){  setP(json); },false);

        });
    </script>
    <title>我的信息</title>
</head>
<body id="contain">
<div class="contain">
    <div class="bai-head">
        <span>我的信息</span>
        <a href="/weixin/primaryPage/listNew" class="left">
            <img src="/static/weixin/images/head-left.png"/>
        </a>
        <a href="/weixin/account/upd/index" class="trash amend">
            <img src="/static/weixin/images/amend.png" />
        </a>
    </div>
        <div class="lower-level my-level">
        <h2>基础信息</h2>
        <ul class="basic-information distributor-level">
            <li>
                <span>名称</span>
                <p class="specialText" name="company_name"></p>
            </li>
            <li>
                <span>企业/个人</span>
                <p name="terminal_type"></p>
            </li>
            <li>
                <span>证件类型</span>
                <p name="document_type"></p>
            </li>
            <li>
                <span>证件号</span>
                <p name="organization_code"></p>
            </li>
            <li>
                <span>所在城市</span>
                <p name="province,city,district">福建省 厦门市 集美区</p>
            </li>
            <li>
                <span>具体地址</span>
                <p  id="specific" name="address"></p>
            </li>
        </ul>
        <h2>联系人</h2>
        <ul class="basic-information distributor-level">
            <li>
                <span>姓名</span>
                <p name="contacts_name"></p>
            </li>
            <li>
                <span>手机</span>
                <p name="contacts_contacts_way"></p>
            </li>
            <li>
                <span>电子邮箱</span>
                <p name="contacts_email"></p>
            </li>
        </ul>
        <h2>银行卡信息</h2>
        <ul class="basic-information distributor-level">
            <li>
                <span>开户银行</span>
                <p name="bank_name"></p>
            </li>
            <li>
                <span>银行卡号</span>
                <p name="bank_account"></p>
            </li>
            <li>
                <span>银行预留联系电话</span>
                <p name="bank_phone"></p>
            </li>
            <li>
                <span>户名</span>
                <p name="bank_account_name"></p>
            </li>
            <li>
                <span>开户行所在城市</span>
                <p name="bank_province,bank_city"></p>
            </li>
        </ul>

            <div class="pro-steps assigned-steps" style=" padding-top: 1rem; position: relative;">
                <div class="steps">
                    <button id="exit" class="xia">退出登录</button>
                </div>
            </div>
    </div>
</div>
<%--<div class="pro-steps assigned-steps">--%>
    <%--<div class="steps">--%>
        <%--<button class="xia">返回</button>--%>
    <%--</div>--%>
<%--</div>--%>

</body>
</html>