<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>精准导购系统企业号应用</title>
    <link rel="stylesheet" href="/static/css/wechat/weui.min.css"/>
    <link rel="stylesheet" href="/static/css/wechat/dynamicStyle.css">
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/weui.min.js"></script>
    <script type="text/javascript" src="/static/js/history.js"></script>

    <!--<script type="text/javascript" src="/static/js/ajaxfileupload.js?v=2222"></script>-->

    <style>
        #showTooltips:disabled{
            background: #ccc;
        }
        .top-header{
            background: #4284D9;
        }
    </style>
</head>
<body ontouchstart style="background: white">
<!--<form id="dynamicpicform" class="page-moments" enctype="multipart/form-data" target="rfFrame">-->
    <div class="top-header" style="margin-bottom: 0;position: fixed;top: 0;z-index: 99;">


        <a href="javascript:backToUrl();" class="btn-a-back" style="color:white"><img src="/static/images/u3430.png" alt="" srcset=""></a>
        <div class="title">添加动态</div>
        <a style="width: 56px"></a>
    </div>
    <div class="weui-cells weui-cells_form">
        <div class="weui-cell">
            <div class="weui-cell__bd textarea-listener" style="margin-top: 3.3rem">
                <textarea class="weui-textarea" placeholder="请输入文本" rows="5" maxlength="300" name="content"></textarea>
                <div class="weui-textarea-counter"><span>0</span>/300</div>
            </div>
        </div>
    </div>
    <div class="weui-cells weui-cells_form" id="uploader">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <div class="weui-uploader">
                    <div class="weui-uploader__hd">
                        <p class="weui-uploader__title">图片上传</p>
                        <div class="weui-uploader__info"><span id="uploadCount">0</span>/9</div>
                    </div>
                    <div class="weui-uploader__bd">
                        <ul class="weui-uploader__files" id="uploaderFiles"></ul>
                        <div class="weui-uploader__input-box">
                            <input id="uploaderInput" class="weui-uploader__input" type="file" accept="image/*"
                                   multiple="" name="img" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="weui-btn-area">
        <input class="weui-btn weui-btn_primary" href="javascript:" id="showTooltips" value="保存" type="button" onclick="uploadAndSave();" disabled= />
    </div>
    <input type="hidden" id="projectId" name="projectId" th:value="${projectId}"/>
    <input type="hidden" id="createUserid" name="createUserid" th:value="${createUserid}"/>
    <input type="hidden" id="createUsername" name="createUsername" th:value="${createUsername}"/>
    <input type="hidden" id="projectName" name="projectName" th:value="${projectName}"/>-
<!--</form>-->
<!--<iframe id="rfFrame" name="rfFrame" src="about:blank" style="display:none;"></iframe>-->
<div class="weui-gallery">
    <span class="weui-gallery__img" style="background-image: url(./images/pic_article.png);"></span>
    <div class="weui-gallery__opr">
        <a href="javascript:" class="weui-gallery__del">
            <i class="weui-icon-delete weui-icon_gallery-delete"></i>
        </a>
    </div>
</div>
<!--提交成功提示-->
<div id="toast" style="display: none;">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-icon-success-no-circle weui-icon_toast"></i>
        <p class="weui-toast__content">提交成功</p>
    </div>
</div>

<div id="loadingToast" style="display: none;">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-loading weui-icon_toast"></i>
        <p class="weui-toast__content">数据提交中</p>
    </div>
</div>

<script type="text/javascript" src="/static/js/adddynamic.js"></script>
<!--<script type="text/javascript" src="/static/js/jquery.form.js"></script>-->

</body>
</html>