12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <meta name="author" content=""/>
- <meta name="description" content=""/>
- <meta name="keywords" content="扫码支付,线上投币,运营数据,物联网"/>
- <meta name="format-detection" content="telphone=no,email=no"/>
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <title>测试员:账号设置</title>
- <link rel="stylesheet" href="/components/lib/mui.min.css"/>
- <link rel="stylesheet" href="/components/custom/css/common.css"/>
- <link rel="stylesheet" href="/app/css/xyf.common.min.css">
- </head>
- <body>
- <div class="mui-content" style="bottom: 0;top: 0;position: absolute;width: 100%;">
- <ul class="mui-table-view account-hd">
- <li class="mui-table-view-cell mui-media" id="userInfo">
- <img id="headImg" src="/app/img/headImg.jpg" class="mui-media-object mui-pull-left">
- <div class="mui-media-body">
- <span id="name"></span>
- <p class='mui-ellipsis' id="telephone"></p>
- </div>
- </li>
- </ul>
- <ul class="mui-table-view custom-top account-bd">
- <li class="mui-table-view-cell">
- <a href="password-newpass.html" class="mui-navigate-right">
- <i class="iconfont icon-password c-primary"></i>设置密码
- </a>
- </li>
- </ul>
- <div class="custom-top">
- <a href="javascript:void(0);" onclick="logout()" class="custom-btn-vertical">退出账号</a>
- </div>
- </div>
- </body>
- <script src="/components/lib/jquery.min.js"></script>
- <script src="/components/lib/mui.min.js"></script>
- <script src="/components/custom/js/common.js"></script>
- <script src="/app/js/xyf.common.js"></script>
- <script>
- $(function () {
- //获取用户个人信息
- showLoading();
- sendRequestWithHeaders("/test/accountInfo", "GET", get_token_headers("Tester"), null, function (response) {
- hideLoading();
- if (response.result == 1) {
- $("#headImg").attr("src", response.para.avatar);
- $("#name").html(response.para.name);
- $("#telephone").html(response.para.tel);
- } else {
- mui.toast(response.description);
- }
- });
- });
- function logout() {
- var btnArray = ['取消', '确认'];
- mui.confirm('确定要退出当前账号?', '温馨提示', btnArray, function (e) {
- if (e.index == 1) {
- localStorage.removeItem(get_token_session_key("Tester"));
- var url = "login.html";
- goPage(url);
- }
- });
- }
- </script>
- </html>
|