| | |
| | | <div style="height: 200px;width: 1100px; border: 1px solid #e5e6e7;overflow-y: auto;"> |
| | | <table class="table table-striped table-bordered table-hover table-condensed"> |
| | | <thead> |
| | | <tr> |
| | | </tr> |
| | | </thead> |
| | | <tbody id="rules"> |
| | | <!-- <tr class="rulesClass" style="display: flex; justify-content: space-between;">--> |
| | |
| | | }; |
| | | var editor_1 = null; |
| | | $(function () { |
| | | |
| | | var c = $("#content").val() |
| | | var d= $("#description").val() |
| | | var t = $("#time").val(); |
| | | |
| | | var rulesTable = document.getElementById("rules"); |
| | | var rulesTimeTable = document.getElementById("rulesTime"); |
| | | // 将json串解析为对象 |
| | |
| | | // 普通储值规则 |
| | | for (var i = 0; i < data.rules.length; i++) { |
| | | var rule = data.rules[i]; |
| | | |
| | | var row = document.createElement("tr"); |
| | | row.className = "rulesClass"; |
| | | row.style.display = "flex"; |
| | |
| | | td2.style.textAlign = "center"; |
| | | td3.style.textAlign = "center"; |
| | | td4.style.textAlign = "center"; |
| | | |
| | | td1.innerHTML = "*充值金额:<input placeholder='请输入充值金额' id='rechargeTime' name='rechargeTime' value='" + rule.money + "'>"; |
| | | row.appendChild(td1); |
| | | td2.innerHTML = "*用户兑换玩湃币:<input placeholder='请输入兑换玩湃币' id='userTime' name='userTime' value='" + rule.usersCoins + "'>"; |