<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## html頁面 ``` <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-idcard" class="form-control" name="row[idcard]" type="text"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">參保信息:</label> <div class="col-xs-12 col-sm-8" style="background-color: #f2f2f2;"> <p id="name">姓名:</p> <p id="school">校區:</p> <p id="dept">院系:</p> <p id="idcard">身份證號:</p> <p id="mobile">手機號: </p> <p id="address">家庭住址: </p> <p id="money">余額: </p> </div> </div> ``` ## js頁面 ``` add: function () { $('#c-idcard').keydown(function(event) { if (event.keyCode == 13) { var idcard = $(this).val(); $.ajax({ url: 'yibao_recharge/getUserInfo', type: 'post', dataType: 'json', data: {idcard: idcard}, success: function(res) { if (res.code == 1) { $('#name').html('姓名:'+ res.data.name + '<span style="margin-left:20px"><span>性別:' + res.data.sex + '<span style="margin-left:20px"><span>年齡:' + res.data.age); $('#school').html('校區:'+res.data.school); $('#dept').html('院系:'+res.data.dept); $('#idcard').html('身份證號:'+res.data.idcard); $('#mobile').html('手機號:'+res.data.mobile); $('#address').html('家庭住址:'+res.data.address); $('#money').html('余額:'+res.data.money); $('#c-user_id').val(res.data.id); $('#c-user_name').val(res.data.name); // alert(res.msg); } else { alert(res.msg); } }, error: function() { alert('請求失敗'); } }); } }); Controller.api.bindevent(); }, ``` php頁面 ``` public function getUserInfo() { $idcard = trim($this->request->post('idcard')); $member = YibaoUser::where('idcard', $idcard)->find(); if ($member) { $data = [ 'id' => $member->id, 'name' => $member->name, 'school' => $member->school, 'dept' => $member->dept.$member->class.'班', 'sex' => $member->sex, 'age' => $member->age, 'idcard' => $member->idcard, 'mobile' => $member->mobile, 'address' => $member->address, 'begindate' => $member->begindate, 'enddate' => $member->enddate, 'amount' => $member->amount, 'money' => $member->money, ]; return json(['code' => 1, 'msg' => '查詢成功', 'data' => $data]); } else { return json(['code' => 0, 'msg' => '會員不存在']); } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看