view.vm 5.53 KB

<link href="/css/style.css" rel="stylesheet" type="text/css" />
<div class="main">
    <div class="g-datum">
        <ul>

            <li><span class="spw">预售商品</span>
                <span>$!{presale.title}</span>
            </li>
            <li><span class="spw">上市时间</span>
                <span>$!dateTool.format('yyyy-MM-dd',${presale.startTime})至$!dateTool.format('yyyy-MM-dd',${presale.endTime})</span>
            </li>
            <li><span class="spw">预计产量</span>
                <span>$!{presale.count}$!{presale.unitName}</span>
            </li>
            <li><span class="spw">发货地址</span>
                <span>$!{presale.localityArea}</span>
            </li>
            <li><span class="spw">发布时间</span>
                <span>$!dateTool.format('yyyy-MM-dd HH:mm:ss',${presale.ctime})</span>
            </li>
            <li><span class="spw">审核状态</span>
                <span>
                    #if($!{presale.status}==1) 待审核
                    #elseif($!{presale.status}==2)审核通过
                    #elseif($!{presale.status}==3)审核失败
                    #elseif($!{presale.status}==4)过期
                    #end
                </span>
            </li>
            #if($presale.imgs && $presale.imgs.size()>0)
                <li><span class="spw">图片:</span>
                #foreach(${item} in ${presale.imgs})
                    <span><img src="$!{item}" /></span>
                #end
                </li>
            #end
        <li><span class="spw">详细描述:</span>
                <span>$!{presale.desc}</span>
            </li>
            #if($!{presale.status} && $!{presale.status}==3)
            <li><span class="spw">审核失败原因:</span>
                <span>$!{presale.reason}</span>
            </li>
            #end
##            <li class="clear u-heightauto" style="text-align: center;">
##                #if($!{presale.status}==1)
##                    <input type="button"  class="btn btn-sm btn-primary btn-clear" value="审批" tabindex="0" style="margin-top: 20px;display: inline;" onclick="XUI.PPS.showAuditDlg($!{presale.id},'/titan/presale/audit',1)"/>
##                #end
##
##            </li>
        </ul>

    </div>
</div>


<!-- modal -->
<div class="modal fade" id="auditModal" tabindex="-1" role="dialog" aria-labelledby="auditModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header" id="modaltitle">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">商品审核</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <div class="alert alert-danger" id="auditAlert" style="width:521px;display: none;">
                        <strong>注意!</strong>强制下架后商品状态将变更为审核不通过!<br>
                    </div>
                    <filedset>
                        <div class="form-group" id="auditResult">
                            <label class="col-sm-3 control-label" for="radioDiv">审核结果 :</label>
                            <label class="col-sm-2 radio inline"><input type="radio" name="audit" id="audit_ok" value="2" checked>通过</input></label>
                            <label class="col-sm-2 radio inline"><input type="radio" name="audit" id="audit_no" value="3">不通过</input></label>
                        </div>
                        <div class="form-group" id="feedback" style="display:none">
                            <label class="col-sm-3 control-label" id="feedbackLabel"for="selectFeedback"></label>
                            <select  id="selectFeedback" class="span2 align-middle" style="height:28px">
                                #foreach(${msg} in ${auditMsg})
                                    <option value="$!{velocityCount}">$!{msg.name}</option>
                                #end
                                <option value="-1">手动输入</option>
                            </select>
                        </div>
                        <div class="form-group " id="feedbackArea" class="col-sm-3  no-padding-right" style="display:none">
                            <label class="col-sm-3 control-label" for="selectDiv"></label>
                            <textarea name="feedback" id="feedback"   style="width:350px;height:110px;"></textarea>
                        </div>
                    </filedset>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" name="confirmAudit">确认</button>
            </div>
        </div>
    </div>
</div>

<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/riotjs/riotjs.js"></script>

<script type="text/javascript"
        src="http://static.1n4j.com/static/newStatic/common/js/base/sea.js"></script>
<script src="/assets/products/list.js"></script>

<script src="http://static.1n4j.com/static/newStatic/pnr/dist/js/javascript/sell/manageProduct.js"></script>
<script src="/assets/products/product.search.categroy.js"></script>

<link href="/css/user_common.css?v=0.0002" rel="stylesheet" type="text/css">
<link href="/css/manageProduct.css?v=0.0002" rel="stylesheet" type="text/css">
<script>
    $(document).ready(function(){
        XUI.PPS.init();
    });
</script>