活动管理-按钮值传递
This commit is contained in:
parent
7adb33f89d
commit
6885218899
|
|
@ -316,9 +316,10 @@
|
|||
<div>
|
||||
<h4 class="form-header h4">第2步-选择UI模板</h4>
|
||||
<div th:with="type=${@dict.getType('activityTemplate')}">
|
||||
<a class="btn btn-rounded" href="#" th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
<a id="activityTemplate" class="btn btn-rounded" href="#" th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}" onclick="activityTemplate(this)"></a>
|
||||
</div>
|
||||
<input id="activityTemplateval" name="actConfig-pageStyle" value="" type="hidden">
|
||||
<h4 class="form-header h4">字典表显示字段</h4>
|
||||
<img src="../../img/1.jpg" width="104" height="142">
|
||||
</div>
|
||||
|
|
@ -442,9 +443,10 @@
|
|||
<div id="step-4" class="tab-pane" role="tabpanel" aria-labelledby="step-4">
|
||||
<h4 class="form-header h4">第4步-选择玩法</h4>
|
||||
<div th:with="type=${@dict.getType('activityPlay')}">
|
||||
<a class="btn btn-rounded" href="#" th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
<a id="activityPlay" class="btn btn-rounded" href="#" th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}" onclick="activityTemplate(this)"></a>
|
||||
</div>
|
||||
<input type="hidden" name="actConfig-actType" id="activityPlayval" value="">
|
||||
<img src="../../img/1.jpg" width="104" height="142">
|
||||
<h4 class="form-header h4">活动规则</h4>
|
||||
<div class="row">
|
||||
|
|
@ -1207,7 +1209,9 @@
|
|||
|
||||
function activityTemplate(val) {
|
||||
$(val).addClass('btn-success').siblings().removeClass('btn-success');
|
||||
//todo 添加逻辑
|
||||
var id = val.id;
|
||||
var valus = $("#"+id).attr("value");
|
||||
$("#"+id+"val").val(valus);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue