扶持账号的登录bug修正

master
zyx 5 years ago
parent bd572379b0
commit a12002a567

@ -37,6 +37,7 @@ class TestResourceController extends BaseController
$map['tab_test_resource.promote_account']=I('promote_name');
}
$map['user.promote_id']=session("promote_auth.pid");
$data = M('test_resource','tab_')
->field('tab_test_resource.id,tab_test_resource.user_id,tab_test_resource.game_name,tab_test_resource.server_name,tab_test_resource.user_account,tab_test_resource.promote_account,tab_test_resource.role_name,tab_test_resource.create_time,device_number,check_status')
->join('left join tab_user as user on tab_test_resource.user_id = user.id')

@ -117,7 +117,7 @@
<tr><td colspan="12" style="text-align: center;height: 45vh;"><img src="__IMG__/20180207/icon_wushujv2.png"/><p style="line-height: 40px;color: #A5A5A5;">暂无数据</p></td></tr>
<else />
<volist name="data" id="s" mod="2">
<tr data-id="{$s.id}" class="<eq name='mod' value='1'>odd</eq>">
<tr data-id="{$s.user_id}" class="<eq name='mod' value='1'>odd</eq>">
<td>{$s.game_name}</td>
<td>{$s.server_name}</td>
<td>{$s.user_account}</td>
@ -129,13 +129,13 @@
</if>
</td>
<td>
<if condition="$s['freeze'] eq 0">冻结
<if condition="$s['check_status'] eq 0">冻结
<else/>启用
</if>
</td>
<td>{$s.create_time}</td>
<td>
<if condition="$s['freeze'] eq 1">
<if condition="$s['check_status'] eq 1">
<a href="javascript:;" class="froze-btn editbtn">冻结</a>
<else/>
<a href="javascript:;" class="unfroze-btn editbtn">启用</a>
@ -377,25 +377,6 @@
}
})
$('.unfroze-btn').on({
click: function() {
var id = $(this).parents('tr').eq(0).attr('data-id')
layer.confirm('是否确认启用帐号?', {icon: 3, title:'提示'}, function(index){
$.ajax({
url: "{:U('TestResource/unfreezeSupport')}",
data: {support_id: id},
type: 'post',
dataType: 'json',
success: function(response) {
layer.msg(response.msg, {time: 1000}, function() {
window.location.href = window.location.href
})
}
})
})
}
})
$('.changePassward-btn').on({
click: function() {
var id = $(this).attr('data-id')

Loading…
Cancel
Save