Merge pull request '修改' (#687) from feature/GamePaymentRule into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/687
master
廖金灵 2 years ago
commit eabea44fc4

@ -938,7 +938,7 @@ class PaymentMerchantController extends ThinkController
$gameService = new GameService();
$games = $gameService->getBaseGames();
$gameNameMap = array_column($games, 'id', 'name');
$gameNameMap = array_column($games, 'name', 'id');
$records = [];
foreach ($items as $item) {

@ -102,10 +102,10 @@
<tr>
<td class="l"><i class="mustmark">*</i>首充限制:</td>
<td class="r">
<label>
<label style="margin-right: 20px;">
<input type="radio" name="is_first_pay" class="" <?php if(empty($rule) || $rule['is_first_pay']==1):?>checked<?php endif;?> value="1"> 开启
</label>
<label></label>
<label>
<input type="radio" name="is_first_pay" class="" <?php if($rule && $rule['is_first_pay']==0):?>checked<?php endif;?> value="0"> 关闭
</label>
</td>

@ -232,27 +232,34 @@
})
return ids;
}
$('.delete-btn').on({
click: function() {
var id = $(this).parents('tr').eq(0).attr('data-id');
$.ajax({
url: '{:U("deleteMasterRule")}',
type: 'post',
dataType: 'json',
data: {id: id},
success: function(result) {
if (result.status == 1) {
layer.msg(result.message)
setTimeout(function() {
window.location.href = window.location.href
}, 200)
} else {
layer.msg(result.message)
}
}
var id = $(this).parents('tr').eq(0).attr('data-id')
layer.confirm('确定要删除该规则 ', {icon: 3, title:'提示'}, function(index){
deleteRule(id)
})
}
})
function deleteRule(id) {
$.ajax({
url: '{:U("deleteMasterRule")}',
type: 'post',
dataType: 'json',
data: {id: id},
success: function(result) {
if (result.status == 1) {
layer.msg(result.message)
setTimeout(function() {
window.location.href = window.location.href
}, 200)
} else {
layer.msg(result.message)
}
}
})
}
$('.edit-form-btn').on({
click: function() {

Loading…
Cancel
Save