65 行
2.9 KiB
Plaintext
65 行
2.9 KiB
Plaintext
<script>
|
|
Z.onload(function(){
|
|
var consumerType=${Jsons.toString(order.getConsumerType())};
|
|
var labelIds=${Jsons.toString(order.getLabelIds())};
|
|
var industryId=${Jsons.toString(order.getIndustryId())};
|
|
var defaultLabel=${Jsons.toString(order.isDefaultLabel())};
|
|
var htmlstr="";
|
|
if(Z.V.isNotEmpty(consumerType)&&consumerType>0){
|
|
Z("#consumerType_"+consumerType).addClass("z-blue").siblings("button").removeClass("z-blue");
|
|
}
|
|
if(Z.V.isNotEmpty(industryId)&&defaultLabel==false){
|
|
htmlstr+='<button id="industry_'+industryId+'" type="button" class="z-button z-mg3" value="'+industryId+'" onclick="doQueryIndustryLabel('+industryId+')">'+${Jsons.toString(Global.get(DesignIndustryCache.class).getIndustryName(order.getIndustryId()))}+'</button>';
|
|
Z("#mainIndustry").html(htmlstr);
|
|
doQueryIndustryLabel(industryId);
|
|
}
|
|
if(Z.V.isNotEmpty(labelIds)){
|
|
setTimeout(function(){
|
|
var array = labelIds.split(",");
|
|
for (var i in array) {
|
|
Z("#label_"+array[i]).addClass("z-blue").siblings("button").removeClass("z-blue");
|
|
}
|
|
},500);
|
|
}
|
|
});
|
|
</script>
|
|
<input id="labelOid" type="hidden" value="${order.getDesignId()}">
|
|
<input id="unmatchkey" type="hidden" value="">
|
|
<div>
|
|
<p class="list-title z-mg-b10">客户类型</p>
|
|
<div class="z-show-ib z-w100p">
|
|
<#for item : Global.get(CustomerTypeCache.class).getCustomerTypeCacheAll()>
|
|
<button id="consumerType_${item.getCustomerTypeId()}" name="consumerType" type="button" class="z-button <#if order.getConsumerType()==item.getCustomerTypeId()>z-blue</#if>" value="${item.getCustomerTypeId()}" onclick="doSelectConsumerType(${item.getCustomerTypeId()})">${item.getCustomerTypeName()}</button>
|
|
</#for>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<p class="list-title z-mg-b10">行业关键词</p>
|
|
<div class="z-show-ib z-w100p">
|
|
<input id="industryKey" class="z-input z-w150"><button id="queryIndustryByKey" type="button" class="z-button z-blue" onclick="doQueryIndustryByKey()">匹配</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<p class="list-title z-mg-b10">主行业</p>
|
|
<div id="mainIndustry" class="z-show-ib z-w100p"></div>
|
|
</div>
|
|
<div>
|
|
<p class="list-title z-mg-b10">推荐行业</p>
|
|
<div id="recommendIndustry" class="z-show-ib z-w100p"></div>
|
|
</div>
|
|
<div>
|
|
<p class="list-title z-mg-b10">子行业</p>
|
|
<div id="subIndustry" class="z-show-ib z-w100p"></div>
|
|
</div>
|
|
<div>
|
|
<p class="list-title z-mg-b10">应用场景</p>
|
|
<div id="applicationScenario" class="z-show-ib z-w100p"></div>
|
|
</div>
|
|
<div>
|
|
<p class="list-title z-mg-b10">设计风格</p>
|
|
<div id="designStyle" class="z-show-ib z-w100p"></div>
|
|
</div>
|
|
<div class="z-mg10" style="text-align:center;">
|
|
<button id="saveLabel" type="button" class="z-button z-blue" onclick="doSaveLabel()">保存</button>
|
|
<button type="button" class="z-button" onclick="doCancelLabel()">取消</button>
|
|
</div> |