promotionView.html
6.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!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>