<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=0.5, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <meta name="sharetitle" content="全科界"/>
    <meta name="sharedesc" content="赋能全科医生，培养百姓良医"/>
    <meta name="sharepic" content="https://qkj-web.oss-cn-beijing.aliyuncs.com/html5/share.png"/>
    <meta name="shareurl" content=""/>
    <script src="/static/js/jquery-3.5.1.min.js?v=" +Math.random()></script>
    <script src="/static/js/common.js?v=" +Math.random()></script>
    <script>
        document.write('<link href="/static/css/html5/user/personal-center.css?v=' + Math.random() + '" rel="stylesheet" type="text/css"/>');
    </script>
    <link href="/static/css/html5/common.css?v=" +Math.random() rel="stylesheet" type="text/css"/>

    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?0305f34866fc4fe377f1bec6dc84d92f";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>

<div class="container">
    <div th:include="html5/common::common-loading"></div>
    <div th:include="html5/common::common-integral"></div>
    <div th:include="html5/common::common-conMusic"></div>
    <div th:include="html5/common::common-firstlogin"></div>
    <input type="hidden" th:value="${memToken}" id="memToken" class="memToken">
    <div class="user-info-item float">
        <div @click="change()" class="user-img">
            <input type="file" @change="chooseImg()" hidden id="fileInput" value=""/>
            <img onload="AutoResizeImage(90,90,this)" :src="info.memHeadimg" alt="">
            <img class="user-type" v-if="info.memTotalPoints >= 0 && info.memTotalPoints <= 3000"
                 onload="AutoResizeImage(90,90,this)" src="http://files.qkyxzx.com/html5/yizhe@2x.png" alt="">
            <img class="user-type" v-if="info.memTotalPoints > 3000 && info.memTotalPoints <= 6000"
                 onload="AutoResizeImage(90,90,this)" src="http://files.qkyxzx.com/html5/yiling@2x.png" alt="">
            <img class="user-type" v-if="info.memTotalPoints > 6000 && info.memTotalPoints <= 9000"
                 onload="AutoResizeImage(90,90,this)" src="http://files.qkyxzx.com/html5/yizun@2x.png" alt="">
            <img class="user-type" v-if="info.memTotalPoints > 9000 && info.memTotalPoints <= 12000"
                 onload="AutoResizeImage(90,90,this)" src="http://files.qkyxzx.com/html5/yisheng@2x.png" alt="">
            <img class="user-type" v-if="info.memTotalPoints > 12000 && info.memTotalPoints <= 15000"
                 onload="AutoResizeImage(90,90,this)" src="http://files.qkyxzx.com/html5/yishen@2x.png" alt="">
            <img class="user-type" v-if="info.memTotalPoints > 15000" onload="AutoResizeImage(90,90,this)"
                 src="http://files.qkyxzx.com/html5/yixian@2x.png" alt="">
            <ul class="userrz">
                <li v-if="info.smrzFlag==1"><a class="smrzIcon">
                    <svg t="1658206407027" class="icon" viewBox="0 0 1024 1024" version="1.1"
                         xmlns="http://www.w3.org/2000/svg" p-id="2874" width="20" height="20">
                        <path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m345.344 334.848l-399.36 414.464a44.288 44.288 0 0 1-67.84 5.12 43.264 43.264 0 0 1-3.328-5.12l-220.16-228.096a47.36 47.36 0 0 1 0-65.28 43.264 43.264 0 0 1 62.72 0l192.768 199.936L793.6 269.824a43.264 43.264 0 0 1 62.72 0 47.36 47.36 0 0 1 1.024 65.024z"
                              p-id="2875"></path>
                    </svg>
                    实名</a></li>
                <li v-else><span @click="certificationSm()" class="smrzIconGray">
                    实名</span></li>
                <li v-if="info.ysrzFlag==1"><a>
                    <svg t="1658206407027" class="icon" viewBox="0 0 1024 1024" version="1.1"
                         xmlns="http://www.w3.org/2000/svg" p-id="2874" width="20" height="20">
                        <path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m345.344 334.848l-399.36 414.464a44.288 44.288 0 0 1-67.84 5.12 43.264 43.264 0 0 1-3.328-5.12l-220.16-228.096a47.36 47.36 0 0 1 0-65.28 43.264 43.264 0 0 1 62.72 0l192.768 199.936L793.6 269.824a43.264 43.264 0 0 1 62.72 0 47.36 47.36 0 0 1 1.024 65.024z"
                              p-id="2875"></path>
                    </svg>
                    医师</a></li>
                <li v-else><span @click="certificationYs()" class="smrzIconGray">
                    医师</span></li>
            </ul>

        </div>
        <div class="user-info">
            <div class="user-name">{{info.memNickname}}</div>
            <div class="day">您已加入全科界{{info.days + 1}}天</div>
        </div>
        <div class="jfph" onclick="goHome()">返回首页</div>
    </div>
    <div class="qd-time">
        <img v-if="info.sign && info.sign[0].isTodayChenckIn == 0" onload="AutoResizeImage(598,122,this)"
             src="http://files.qkyxzx.com/html5/1.png">
        <img v-if="info.sign && info.sign[0].isTodayChenckIn == 1 && info.sign[1].isTodayChenckIn == 0 && info.sign[0].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/1-q.png">
        <img v-if="info.sign && info.sign[1].isTodayChenckIn == 0 && info.sign[0].isTodayChenckIn == 1 && info.sign[1].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/2.png">
        <img v-if="info.sign && info.sign[1].isTodayChenckIn == 1 && info.sign[2].isTodayChenckIn == 0 && info.sign[1].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/2-q.png">
        <img v-if="info.sign && info.sign[2].isTodayChenckIn == 0 && info.sign[1].isTodayChenckIn == 1 && info.sign[2].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/3.png">
        <img v-if="info.sign && info.sign[2].isTodayChenckIn == 1 && info.sign[3].isTodayChenckIn == 0 && info.sign[2].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/3-q.png">
        <img v-if="info.sign && info.sign[3].isTodayChenckIn == 0 && info.sign[2].isTodayChenckIn == 1 && info.sign[3].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/4.png">
        <img v-if="info.sign && info.sign[3].isTodayChenckIn == 1 && info.sign[4].isTodayChenckIn == 0 && info.sign[3].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/4-q.png">
        <img v-if="info.sign && info.sign[4].isTodayChenckIn == 0 && info.sign[3].isTodayChenckIn == 1 && info.sign[4].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/5.png">
        <img v-if="info.sign && info.sign[4].isTodayChenckIn == 1 && info.sign[5].isTodayChenckIn == 0 && info.sign[4].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/5-q.png">
        <img v-if="info.sign && info.sign[5].isTodayChenckIn == 0 && info.sign[4].isTodayChenckIn == 1 && info.sign[5].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/6.png">
        <img v-if="info.sign && info.sign[5].isTodayChenckIn == 1 && info.sign[6].isTodayChenckIn == 0 && info.sign[5].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/6-q.png">
        <img v-if="info.sign && info.sign[6].isTodayChenckIn == 0 && info.sign[5].isTodayChenckIn == 1 && info.sign[6].isCuur == 1"
             onload="AutoResizeImage(598,122,this)" src="http://files.qkyxzx.com/html5/7.png">
        <img v-if="info.sign && info.sign[6].isTodayChenckIn == 1 && info.sign[6].isCuur == 1" onload="AutoResizeImage(598,122,this)"
             src="http://files.qkyxzx.com/html5/7-q.png">
        <div class="jf">我的积分 {{info.memResidualPoints}}</div>
        <button @click="singDay()" v-if="info.siginStatus == 0" class="sign">签到</button>
        <button v-if="info.siginStatus == 1" class="signed">已签到</button>
    </div>
    <div class="classification">
        <div @click="buyRecord()" class="box gmjl">
            <div class="img"></div>
            <div class="text">购买记录</div>
        </div>
        <div @click="pointsMall()" class="box jfsc">
            <div class="img"></div>
            <div class="text">积分商城</div>
        </div>
        <div @click="certificationSm()" class="box smrz">
            <div class="img"></div>
            <div class="text">实名认证</div>
            <img v-if="info.smrzFlag == 0" class="jf_logo" onload="AutoResizeImage(76,26,this)"
                 src="http://files.qkyxzx.com/html5/200.png">
        </div>
        <div @click="certificationYs()" class="box ysrz">
            <div class="img"></div>
            <div class="text">医师认证</div>
            <img v-if="info.ysrzFlag == 0" class="jf_logo" onload="AutoResizeImage(76,26,this)"
                 src="http://files.qkyxzx.com/html5/500.png">
        </div>
    </div>
    <div class="operate">
        <div class="xxjl" @click="gotoUserStudyRecord()">学习记录</div>
        <div class="wdzh" @click="userAccountNumber()">我的账号</div>
        <div class="xgmm" @click="editPass()">修改密码</div>
        <div class="lxwm" @click="callWe()">联系我们</div>
        <div class="gywm" @click="aboutWe()">关于我们</div>
    </div>
    <div class="qhzh" @click="logOut()">切换账号</div>
    <!--    <p id="bottomInfo">全科在线提供技术支持</p>-->
</div>
<!--签到弹框-->
<div class="toast">
    <div class="toast-info">
        <img class="toast-log" src="http://files.qkyxzx.com/html5/sign.png" alt="">
        <div>连续签到第1天，获得<span>+{{info.dayPoints}}积分</span></div>
        <button onclick="closeToast()">确定</button>
        <img onclick="closeToast()" class="close" src="http://files.qkyxzx.com/html5/close.png" alt="">
    </div>
</div>
<footer>
    <div th:include="html5/common::common-footer"></div>
</footer>
<!--    <div class="first-login-toast">-->
<!--        <link href="/static/css/html5/common.css" rel="stylesheet" type="text/css"/>-->
<!--        <div class="integralType">首次登录</div>-->
<!--        <div class="integralCount"><img src="http://files.qkyxzx.com/html5/jb.png"/>+200</div>-->
<!--    </div>-->
</body>
<script>
    function closeToast() {
        $(".toast").hide();
    }
</script>
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
<script src="/static/js/ucenter.js?v=" +Math.random()></script>
<script src="/static/js/vue.js"></script>
<script th:inline="javascript">
    //<![CDATA[
    var fromlogin = [[${fromlogin}]];
    //]]>
</script>
<script type="text/javascript" src="/static/js/h5/common.js"></script>

<script>
    document.write('<script src="/static/js/h5/user/personal-center.js?v=' + Math.random() + '"><\/script\>');
</script>

<script>
    if (typeof (fromlogin) != "undefined" && fromlogin == "1") {
        setTimeout(() => {
            // jifen();
        }, 4000)
    }
</script>
<script src="/static/js/jweixin-1.0.0.js"></script>
<script src="/static/js/wxshare.js?version=20220630"></script>
</html>
