addPromotionRule.html 4.0 KB
<style>
	form select{min-width: 0;}
</style>
<div class="pageheader notab">
	<h1 class="pagetitle">添加促销规则</h1>
	<span class="pagedesc">用于添加促销规则,并设置商品的相关属性()</span>
	<ul class="hornav">
        <li class="current"><a href="javascript:void(0)">促销规则信息</a></li>
        <li ng-if="type == 'BuyProductPromostion'"><a href="#productGift/{{promotionId}}/{{type}}">商品促销</a>
        <li ng-if="type == 'FullMoneyPromostion'"><a href="#moneyGift/{{promotionId}}/{{type}}">订单满送促销</a>
    </ul>
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
	<div id="basicform" class="subcontent">
		<div class="contenttitle2">
			<h3>促销规则表单</h3>
		</div>
		<!--contenttitle-->
		<form class="stdform stdform2" method="post" action="javascript:void(0);">
			<p>
				<label>促销名称</label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" name="name"
					ng-model="promotion.name" ng-value="{{promotion.name}}"/>
					<span style="color: red;">(促销名称不能为空)</span>
				</span>
			</p>
			<p>
				<label>促销类型</label>
				<span class="field">
					<select name="typeId" id="selection2" style="width: 150px;" ng-model="promotion.type"  >
						<option value='' selected="selected">--选择促销类型--</option>
						<option value='{{promotionType.type}}' ng-repeat="promotionType in types">{{promotionType.text}}</option>
					</select>
						<span style="color: red;">(促销类型不能为空)</span>
				</span>
			</p>
			<!--<p>
				<label>优先级</label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" name="prority"
					ng-model="promotion.prority" ng-value="{{promotion.prority}}" style="width: 60px;"/>
				</span>
			</p>-->
			<p>
				<label>有效时间</label>
				<span class="field">
					<input type="text"  id="startDt"placeholder="请输入开始日期" class="laydate-icon" onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" style="width: 150px;" ng-model="promotion.startDate" ng-value="{{promotion.startDate}}"/>
					--<input type="text" id="endDt" placeholder="请输入结束日期" class="laydate-icon" onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" style="width: 150px;"  ng-model="promotion.endDate" ng-value="{{promotion.endDate}}"/>
					<span style="color: red;">(活动有效时间,同一类型同一时间段不能有两个活动规则)</span>
				</span>
				
			</p>
			<p>
				<label>是否限制</label> <span class="field">
				<input type="radio" name="radiofield" value="1" ng-model="promotion.isLimit" />限制 &nbsp; &nbsp;
				<input type="radio" name="radiofield" value="0"  ng-model="promotion.isLimit" />不限制&nbsp; &nbsp;
				<span style="color: red;">(限制促销次数开关)</span>
				</span>
			</p>
			<p>
				<label>限制的数量</label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" name="limitNum"
					ng-model="promotion.limitNum" ng-value="{{promotion.limitNum}}" style="width: 150px;"/>
					<span style="color: red;">(赠送总数量)</span>
				</span>
			</p>
			<p>
				<label>促销状态</label> <span class="field">
				<select name="typeId" id="status" style="width: 150px;" ng-model="promotion.status"  >
						<option value='0' selected="selected">未生效 </option>
						<option value='1' >激活</option>
						<option value="2" >已结束</option>
					</select>
				</span>
			</p>
			<p>
				<label>促销规则说明</label>
				<span class="field">
					<textarea rows="8" cols="220" style="width: 600px" class="longinput" name="remark" ng-model="promotion.ruleDesc" ng-value="{{promotion.ruleDesc}}">
					</textarea>
					<span style="color: red;">(规则说明不能为空)</span>
				</span>
			</p>
			<p class="stdformbutton">
				<button class="submit radius2" ng-click="onSubmitAdvert()">提交</button>
				<input type="reset" class="reset radius2" value="重置" />
			</p>
		</form>
		<br />
	</div>
	<!--subcontent-->
</div>
<!--contentwrapper-->