81,092
社区成员
发帖
与我相关
我的任务
分享
<%--计费模式--%>
<aui:select label="product-billingmode" name="billingMode" id="billingMode" showEmptyOption="false" style="width:350px">
<c:if test='${1==model.billingMode}'>
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" onclick="showInput()" selected="true"/>
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" onclick="disableInput()"/>
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" onclick="disableInput()"/>
</c:if>
<c:if test='${2==model.billingMode}'>
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" onclick="showInput()" />
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" onclick="disableInput()" selected="true"/>
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" onclick="disableInput()"/>
</c:if>
<c:if test='${3==model.billingMode}'>
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" onclick="showInput()" />
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" onclick="disableInput()" />
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" onclick="disableInput()" selected="true"/>
</c:if>
</aui:select>
<%--计次有效时长--%>
<div id="showId">
<c:if test='${1==model.billingMode}'>
<aui:input label="product-effectiveduration" name="effectiveDuration" value="${model.effectiveDuration}" id="effectiveDuration" type="text" style="width:350px" suffix="product.effectiveduration.hour">
<aui:validator name="custom" errorMessage="product.effectiveduration.errormessage">
function(val, fieldNode, ruleValue){
return effectivePattern.test(val);
}
</aui:validator>
</aui:input>
</c:if>
</div>
<%--计费模式--%>
<aui:select label="product-billingmode" name="billingMode" id="billingMode" showEmptyOption="false" style="width:350px" onchange="seltype(this)">
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" />
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" />
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" />
</aui:select>
<%--计次有效时长--%>
<div id="showId" style="dsiplay: block">
<aui:input label="product-effectiveduration" name="effectiveDuration" id="effectiveDuration" type="text" style="width:350px" suffix="product.effectiveduration.hour" value="72">
<aui:validator name="custom" errorMessage="product.effectiveduration.errormessage">
function(val, fieldNode, ruleValue){
return effectivePattern.test(val);
}
</aui:validator>
</aui:input>
</div>
function seltype(select)
{
var ID=select.options[select.selectedIndex].value;
if(ID==1)
{
document.getElementById("showId").style.display="block";
document.getElementById("bill").style.display="none";
document.getElementById("jicitime").style.display="block";
}
if(ID==2||ID==3)
{
document.getElementById("showId").style.display="none";
document.getElementById("bill").style.display="block";
document.getElementById("jicitime").style.display="none";
}
document.getElementById("showId").style.display="block";