physical.html 5.1 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="css/base.css" />
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/tanchu.css" />

    <script src="js/base.js"></script>

    <title>新增体检报告</title>
    <style>
        .phybut{
            position: fixed;
            bottom:0;
            width:100%;
        }
        .pharea{
            resize: none;
        }
    </style>
</head>

<body>
    <div style="background-color:#fff;">
        <div class="perheader center">
            <div class="left perback">
                <a href="#" onClick="javascript:history.back(-1);">
                    <img src="images/care_03.jpg" />
                </a>
            </div>
            <div class="bloodtext">新增体检报告</div>
        </div>
    </div>
    <form action="#">
        <div class="perpart1">
            <div id="datePlugin"></div>
            <div class="phyp">
                <span>体检日期</span>
                <span class="right">
                    <input type="text" id="beginTime" value="日期" />
                    <img src="images/pergo_03.jpg" />
                </span>
            </div>
            <div class="phyp">
                <span>体检名称</span>
                <span class="right">
                    <input type="text" class="select-value25" id="names" value="名称" />
                    <img src="images/pergo_03.jpg" />
                </span>
            </div>
            <div class="phyp">
                <span>体检机构</span>
                <span class="right">
                    <input type="text" class="select-value16" id="org" value="慈界医养" />
                    <img src="images/pergo_03.jpg" />
                </span>
            </div>
            <div style="height:0.05rem; background-color:#f5f5f5;"></div>

            <div class="phyp">
                <span>具体描述</span>
            </div>

            <div class="phyarea">
                <img src="images/phyarea_03.jpg" class="areaimg1" style="width:0.44rem;" />
                <textarea rows="3" cols="20" class="pharea" placeholder="请您详细描述客观情况,以便更好为您提供分析解读服务。(最多支持输入200字)"></textarea>
            </div>

            <div style="height:0.05rem; background-color:#f5f5f5;"></div>

            <div class="phyp">
                <span>上传照片或扫描报告</span>
            </div>
            <div class="phyimg">
                <a href="#">
                    <img src="images/phy_03.png" />
                </a>
                <a href="#">
                    <img src="images/phy_05.png" />
                </a>
            </div>
        </div>



        <div>
            <button type="button" class="phybut" />保存</div>
    </form>
    <div class="mPicker hide">
        <div class="mPicker-mask hide"></div>
    </div>
    <script type="text/javascript" src="js/jquery.min.js"></script>

    <script type="text/javascript" src="js/common.js"/>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script type="text/javascript" src="js/date.js"></script>
    <script type="text/javascript" src="js/iscroll.js"></script>
    <script src="js/per.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#beginTime').date();
            $('#endTime').date({ theme: "datetime" });
        });
        $(document).ready(function () {
            
        })
        
        var checktime,name,org,descript,pic,r_type,code;
        $('.phybut').click(function () {
            checktime=$('#beginTime').val();
            name=$('#names').val()
            org=$('#org').val()
            descript=$('.pharea').val()
            pic='https://f11.baidu.com/it/u=1562411134,1079853278&fm=173&app=25&f=JPEG?w=640&h=564&s=5A12758DCA255E8EBA8889500300D0B1&access=215967316';
            code='https://f11.baidu.com/it/u=1562411134,1079853278&fm=173&app=25&f=JPEG?w=640&h=564&s=5A12758DCA255E8EBA8889500300D0B1&access=215967316';
            $.ajax({
                type:"POST",
                url: baseUrl+"user/index/addReport",
                dataType:"json",
                headers:{
                    "XX-Device-Type":1,
                    "XX-Token":1,
                },
                data:{
                    rid:0,
                    checktime:checktime,
                    name:name,
                    org:org,
                    descript:descript,
                    pic:pic,
                    code:code
                },
                success:function (res) {
                    console.log(res.data)
                }
            })
        })
    </script>
</body>