promotionView.html 6.74 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
    <form name="promotionEditForm" id="promotionEditForm" method="post">
        <div style="margin-top: 20px;margin-left: 30px">
            <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
                <tr style="height: 60px" >
                    <td width="10%"><span style="color:red">*</span><label>活动名称:</label></td>
                    <td colspan="3">
                        <input class="easyui-textbox" id="activityName" name="activityName" data-options="validType:'length[1,50]'" style="width: 280px;"/>
                    </td>
                </tr>
                <tr style="height: 60px" >
                    <td width="10%"><span style="color:red">*</span><label>活动时间:</label></td>
                    <td colspan="3">
                        <input class="easyui-datetimebox" name="startTimeStr" id="startTimeStr" data-options="required:true,showSeconds:false" style="width:200px"> ~
                        <input class="easyui-datetimebox" name="endTimeStr" id="endTimeStr" data-options="required:true,showSeconds:false" style="width:200px">
                    </td>
                </tr>
                <tr style="height: 60px">
                    <td width="10%"><span style="color:red">*</span><label>标签:</label></td>
                    <td colspan="3">
                        <input class="easyui-textbox" id="label" name="label" style="width: 280px;"/>
                    </td>
                </tr>
                <tr style="height: 60px">
                    <td width="10%"><span style="color:red">*</span><label>促销类型:</label></td>
                    <td colspan="3">
                        <input class="easyui-combobox" id="promotionType" name="promotionType" style="width: 200px;"/>
                    </td>
                </tr>
                <tr style="height: 60px;display: none" id="limitDisCountTr">
                    <td width="10%"><span style="color:red">*</span><label>优惠条件:</label></td>
                    <td colspan="3">
                        <div id="limitDisCountDiv">
                            商品金额大于等于<input class="easyui-numberbox" id="limitAmount_0" style="width: 60px" data-options="min:0,precision:0">元,
                            折扣为 <input class="easyui-numberbox" id="offerAmount_0" style="width: 60px;" data-options="min:0,precision:2">
                            最高优惠<input class="easyui-numberbox" id="offerMaxLimit" style="width: 60px;" data-options="min:0,precision:0">
                        </div>
                    </td>

                </tr>
                <tr>
                    <td></td>
                    <td colspan="3">
                        <span style="color:red">提示:折扣填写0-1之间的两位小数。例如:0.85表示85折</span><br>
                    </td>
                </tr>
                <tr style="height: 60px">
                    <td width="10%"><span style="color:red">*</span><label>适用范围:</label></td>
                    <td>
                        <input class="easyui-combobox" id="productScopeType" name="productScopeType" style="width: 200px;"/>
                    </td>
                    <td>
                        <input class="easyui-combobox" id="limitType" name="limitType" style="width: 200px;"/>
                    </td>
                    <td>
                        <input class="easyui-textbox" id="limitValues" name="limitValues" style="width: 280px;"/>
                    </td>
                </tr>

                <tr style="height: 60px">
                    <td width="10%"><span style="color:red">*</span><label>可用商品类型:</label></td>
                    <td colspan="3">
                        <label>
                            <input type="checkbox" name="isAll"
                                   id="isAll" onclick="isAllClick(this)">全部商品
                        </label>
                    </td>
                </tr>
                <tr style="height: 60px">
                    <td></td>
                    <td colspan="3">
                        <input type="checkbox" name="productLimitChose" id="productLimit1" value="1">现货发货
                        <input type="checkbox" name="productLimitChose" id="productLimit18" value="18" >闪存寄存
                        <input type="checkbox" name="productLimitChose" id="productLimit4" value="4" >预售
                        <input type="checkbox" name="productLimitChose" id="productLimit7" value="7" >现货寄存
                        <input type="checkbox" name="productLimitChose" id="productLimit17" value="17" >香港极速仓
                        <input type="checkbox" name="productLimitChose" id="productLimit6" value="6" >二手
                        <input type="checkbox" name="productLimitChose" id="productLimit2" value="2" >闪购发货
                        <input type="checkbox" name="productLimitChose" id="productLimit3" value="3" >极速发货
                        <input type="checkbox" name="productLimitChose" id="productLimit5" value="5" >全新瑕疵
                    </td>
                </tr>
                <tr style="height: 60px">
                    <td width="10%"><span style="color:red">*</span><label>活动期间内总次数限制:</label></td>
                    <td colspan="3">
                        <input class="easyui-numberbox" id="joinLimitTimes" name="joinLimitTimes" style="width: 120px;"/>
                    </td>
                </tr>

                <tr style="height: 60px">
                    <td width="10%"><span style="color:red">*</span><label>活动是否开启:</label></td>
                    <td colspan="3">
                        <input class="easyui-combobox" id="initStatus" name="initStatus" style="width: 200px;"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<script>

    $("#promotionEditForm #activityName").textbox({
        required: true,
        missingMessage: "促活动名称不能为空",
        prompt: "活动名称"
    });

    $("#promotionEditForm #startTime").datetimebox({
        required: true,
        missingMessage: "开始时间不能为空",
        prompt: "开始时间"
    });

    $("#promotionEditForm #endTime").datetimebox({
        required: true,
        missingMessage: "结束时间不能为空",
        prompt: "结束时间"
    });

    $("#promotionEditForm #limitValues").textbox({
        prompt : "请输入商品池id",
        multiline : true,
        height : 50
    });

    $("#promotionEditForm #isAll").iCheckbox({
        onChange : function(checked){
            debugger;
        }
    });
</script>