123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <!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">
- <style>
- </style>
- </head>
- <body>
- <div class="mui-content" style="bottom: 0;top: 0;width: 100%;padding-bottom: 60px;">
- <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 class="mui-navigate-right" href="javascript:goWallet()">
- <i class="iconfont icon-wallet c-primary"></i>钱包
- <span class="mui-pull-right custom-right" id="balance">余额 0.00元</span>
- </a>
- </li>
- <li class="mui-table-view-cell">
- <a href="password-newpass.html" class="mui-navigate-right">
- <i class="iconfont icon-password c-red"></i>设置密码
- </a>
- </li>
- <li class="mui-table-view-cell">
- <a href="account-config.html" class="mui-navigate-right">
- <i class="iconfont icon-setting c-primary"></i>功能配置
- </a>
- </li>
- </ul>
- <ul class="mui-table-view custom-top account-bd">
- <li class="mui-table-view-cell">
- <a href="brand-setting.html" class="mui-navigate-right">
- <i class="iconfont icon-member-vip c-orange"></i>品牌设置
- </a>
- </li>
- <!-- 暂时屏蔽, 厂商时没有客服电话配置的
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right" href="javascript:goHelp()">
- <i class="iconfont icon-service c-blue"></i>客服帮助
- <span class="mui-pull-right custom-right"></span>
- </a>
- </li>
- -->
- </ul>
- <div class="custom-top">
- <a href="javascript:void(0);" onclick="logout()" class="custom-btn-vertical">退出账号</a>
- </div>
- </div>
- <div id="serviceMenu" class="mui-popover mui-popover-action mui-popover-bottom">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell">
- <a href="javascript:;" id="servicePhone">拨打电话</a>
- </li>
- <li class="mui-table-view-cell">
- <a href="javascript:$('#pop_box').show();" id="serviceQRCode">微信联系</a>
- </li>
- </ul>
- <ul class="mui-table-view">
- <li class="mui-table-view-cell">
- <a class="font-bold">取消</a>
- </li>
- </ul>
- </div>
- <!--客服二维码弹窗-->
- <div id="pop_box" class="pop-box">
- <div class="pop-bg" id="close_pop_btn"></div>
- <div class="pop-con">
- <div class="pop-tit">长按二维码关注公众号</div>
- <div class="pop-img"><img id="qrCodeImg" src="" alt=""><span
- class="img-title">管理后台公众号</span></div>
- </div>
- </div>
- </body>
- <script src="/components/lib/jquery.min.js?v=1"></script>
- <script src="/components/lib/mui.min.js"></script>
- <script src="/components/lib/clipboard.min.js"></script>
- <script src="/components/custom/js/common.js"></script>
- <script src="/app/js/xyf.common.js"></script>
- <script>
- window.initAgentNav && initAgentNav('account');
- var popBox = $("#pop_box"),
- closeBtn = $("#close_pop_btn")
- closeBtn.on("click", function (evt) {
- popBox.hide();
- evt.stopPropagation()
- });
- //底部菜单事件
- mui('.mui-popover-action').on('click', 'a', function () {
- mui('#serviceMenu').popover('toggle');
- });
- function goHelp() {
- if (noServiceInfo) {
- mui.alert('您的代理商没有留下联系方式')
- } else {
- mui('#serviceMenu').popover('toggle');
- }
- }
- var noServiceInfo = false;
- var agentId = null;
- $(function () {
- //获取用户个人信息
- showLoading();
- sendRequest("/agent/accountInfo", "GET", null, function (response) {
- hideLoading();
- if (response.result == 1) {
- var payload = response.payload
- $("#headImg").attr("src", payload.avatar);
- $("#name").html(payload.nickname);
- $("#telephone").html(payload.username);
- $("#balance").html("余额 " + payload.balance + "元");
- agentId = payload.agentId;
- var servicePhone = payload.servicePhone;
- var qrCode = payload.serviceQrcodeUrl;
- //客服电话显示
- if (servicePhone) {
- $("#servicePhone").attr("href", "tel:" + servicePhone).html("拨打电话:" + servicePhone);
- } else {
- $("#servicePhone").parent().hide();
- }
- //代理商客服二维码
- if (qrCode) {
- $("#qrCodeImg").attr("src", qrCode);
- } else {
- $("#serviceQRCode").parent().hide()
- }
- if (!servicePhone && !qrCode) {
- noServiceInfo = true
- }
- } else {
- mui.toast(response.description);
- }
- });
- });
- function goWallet() {
- location.href = "/agents/wallet/wallet.html";
- }
- function logout() {
- var btnArray = ['取消', '确认'];
- mui.confirm('确定要退出当前账号?', '温馨提示', btnArray, function (e) {
- if (e.index == 1) {
- sendRequest("/agent/logout", "POST", null, function (response) {
- if (response.result == 1) {
- sessionStorage.clear();//清除缓存
- var url = "login.html";
- goPage(url);
- } else {
- mui.toast(response.description);
- }
- });
- }
- });
- }
- </script>
- </html>
|