收回绑币玩家账号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){ 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(); $data = M("UserPlay","tab_")->field("game_id,game_name,bind_balance")->where($map)->group('user_id,game_id')->select();
$this->AjaxReturn($data); $this->AjaxReturn($data);
} }

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

Loading…
Cancel
Save