收回绑币玩家账号select框改为input框

master
zhengyongxing 5 years ago
parent c6e6f1e713
commit abdf68a91c

@ -103,7 +103,7 @@ class AjaxController extends ThinkController{
}
public function getUserPlayGameName($user_id=0){
$map['user_id'] = $user_id;
$map['user_account'] = $user_id;
$data = M("UserPlay","tab_")->field("game_id,game_name,bind_balance")->where($map)->group('user_id,game_id')->select();
$this->AjaxReturn($data);
}

@ -49,12 +49,13 @@
<tr>
<td class="l">玩家账号:</td>
<td class="r" >
<select id="user_id" name="user_id">
<option value="0">请选择账号</option>
<volist name=":get_user_play_group_list()" id="vo">
<option value="{$vo.user_id}" account="{$vo.user_account}">{$vo.user_account}</option>
</volist>
</select>
<!-- <select id="user_id" name="user_id">-->
<!-- <option value="0">请选择账号</option>-->
<!-- <volist name=":get_user_play_group_list()" id="vo">-->
<!-- <option value="{$vo.user_id}" account="{$vo.user_account}">{$vo.user_account}</option>-->
<!-- </volist>-->
<!-- </select>-->
<input type="text" class="txt" id="user_id" name="user_id"/>
</td>
</tr>
<tr>
@ -144,7 +145,7 @@ $(function(){
//$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币');
$('#user_id').change(function(){
//$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币');
var user_id = $('#user_id option:selected').attr('value');
var user_id = $('#user_id').val();
if(this.value !="请选择账号"){
getUserPlayGameName(user_id);

Loading…
Cancel
Save