123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- <?php
- // by 请勿倒卖,已申请软著,否则追究法律责任
- namespace app\index;
- class BaseUser extends Base
- {
- function initialize()
- {
- parent::initialize();
- if (!$this->userlogined) {
- redirect("/index/login");
- }
- }
- function inc_merge()
- {
- ?> <div class="modal inmodal fade in" id="selApp" tabindex="-1" role="dialog" aria-hidden="false"
- style="display: none;">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header task-sel-app-modal-header">
- <h4 class="modal-title">选择 App</h4>
- </div>
- <form id="selForm" novalidate="novalidate">
- <input id="appid" name="appid" value="20802" type="hidden">
- <input id="mType" name="mType" value="ipa" type="hidden">
- <div class="modal-body task-sel-app-modal-body">
- <div class="panel-body">
- <div class="tab-content" style="border: 0">
- <div id="tab-1" class="tab-pane active" mtype="app">
- <div class="row" style="height:340px; overflow-y:auto;overflow-x:hidden">
- <div class="wrapper wrapper-content" style="padding-bottom:0px;">
- <div id="loading" style="display: none;">
- <div class="sk-spinner sk-spinner-wandering-cubes">
- <div class="sk-cube1">
- </div>
- <div class="sk-cube2">
- </div>
- </div>
- </div>
- <div class="row" id="appContainer">
- </div>
- </div>
- </div>
- <input id="mAKey" name="mAKey" value="" type="hidden">
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <p style="float:left;padding-top:10px;padding-left:10px;">
- 合并后的两个应用,进入任一个应用的单页,扫描二维码,会根据你的手机系统自动帮你下载相应的版本。</p>
- <button class="btn btn-info" data-dismiss="modal" href="javascript:void(0)">取消</button>
- <button type="button" id="btnMerge" class="btn btn-success">合并应用</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="modal inmodal fade in" id="cancel_dialog" tabindex="-1" role="dialog">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header task-sel-app-modal-header">
- <h4 class="modal-title">解除合并</h4>
- </div>
- <div class="modal-body task-sel-app-modal-body">
- <div class="panel-body">
- <div id="cancel_container">
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button class="btn btn-info" data-dismiss="modal" href="javascript:void(0)"
- onclick="$('#myModal').modal('hide');">取消
- </button>
- <button type="button" id="btnCancel" class="btn btn-warning">取消合并</button>
- </div>
- </div>
- </div>
- </div>
- <script>
- $('.cancel_merge').click(function (event) {
- event.preventDefault();
- var id = $(this).attr('app_id');
- $.get('/index/apps_cancelMerge?id=' + id, function (html) {
- $('#btnCancel').unbind();
- $('#cancel_container').html(html);
- $('#cancel_dialog').modal('show');
- $('#btnCancel').click(function () {
- $.post('/index/ajax_profile/each_del', {aid: id}, function (data) {
- if (data.code == 200) {
- $('#cancel_dialog').modal('hide');
- alert(data.msg, function () {
- window.location.reload();
- });
- return true;
- } else {
- alert(data.msg);
- }
- }, 'json');
- return true;
- });
- });
- });
- $('.btn-success').click(function (e) {
- e.preventDefault();
- var id = $(this).attr('app_id');
- $.get('/index/apps_merge?id=' + id, function (html) {
- $("#btnMerge").unbind();
- $('#appContainer').html(html);
- $('#appContainer .ibox').click(function () {
- $('#appContainer .ibox .caption').each(function () {
- $(this).hide();
- })
- $(this).find('.caption').show();
- });
- $('#selApp').modal('show');
- $('#btnMerge').click(function () {
- var kid = $("#appContainer .ibox .caption:visible").find('input').val();
- if (!kid) {
- alert('请选择要合并的应用');
- return false;
- }
- $.post('/index/ajax_profile/each_add', {aid: id, kid: kid}, function (data) {
- if (data.code == 200) {
- $('#selApp').modal('hide');
- alert(data.msg, function () {
- window.location.reload();
- });
- } else {
- alert(data.msg);
- }
- }, 'json');
- });
- });
- });
- </script>
- <?php
- }
- function left()
- {
- ?> <div class="col-sm-2">
- <aside class="aside-left">
- <ul>
- <?php
- if ($this->action == "apps" && IN_DIST_ON || $this->action == "sign" && IN_SIGN || $this->action == "super" && IN_SUPER) {
- ?> <li class="<?php echo $this->module == "publish" || $this->module == "publish_update" ? "active" : "";?>">
- <a href="/index/publish/<?php echo $this->action;?>"> <span
- class="iconfont icon-upload1"></span>上传应用</a>
- </li>
- <?php
- }
- ?> <li class="<?php echo $this->module == "apps" ? "active" : "";?>">
- <a href="/index/apps/<?php echo $this->action;?>"><span class="iconfont icon-41"></span>应用列表</a>
- </li>
- <?php
- if ($this->action == "apps") {
- ?> <li class="<?php echo $this->module == "domain" ? "active" : "";?>">
- <a href="/index/domain/<?php echo $this->action;?>">
- <span class="iconfont icon-liulanqi"></span>绑定域名</a>
- </li>
- <?php
- }
- ?> <?php
- if (IN_SUPER && ($this->action == "super" || strstr($this->module, "super"))) {
- ?> <li class="<?php echo $this->module == "super_code" ? "active" : "";?>">
- <a href="/index/super_code/super"><span class="iconfont icon-pwd"></span>授权码管理</a>
- </li>
- <li class="<?php echo $this->module == "super_cert" ? "active" : "";?>">
- <a href="/index/super_cert/super"><span class="iconfont icon-gongju"></span>开发者账号</a>
- </li>
- <?php
- }
- ?> </ul>
- </aside>
- </div>
- <?php
- }
- function publish_left()
- {
- $_var_0 = SafeRequest("id", "get");
- ?> <div class="col-sm-2">
- <aside class="aside-left">
- <ul>
- <li class="<?php echo $this->module == "publish_detail" ? "active" : "";?>">
- <a href="/index/publish_detail/<?php echo $this->action;?>?id=<?php echo $_var_0;?>">
- <span class="iconfont icon-41"></span>应用详情
- </a>
- </li>
- <li class="<?php echo $this->module == "publish_setting" ? "active" : "";?>">
- <a href="/index/publish_setting/<?php echo $this->action;?>?id=<?php echo $_var_0;?>">
- <span class="iconfont icon-19"></span>应用设置
- </a>
- </li>
- <li class="<?php echo $this->module == "publish_statistics" ? "active" : "";?>">
- <a href="/index/publish_statistics/<?php echo $this->action;?>?id=<?php echo $_var_0;?>">
- <span class="iconfont icon-download2"></span>下载明细
- </a>
- </li>
- <?php
- if ($this->action == "sign" && IN_SIGN) {
- ?> <li class="<?php echo $this->module == "publish_sign" ? "active" : "";?>">
- <a href="/index/publish_sign/<?php echo $this->action;?>?id=<?php echo $_var_0;?>">
- <span class="iconfont icon-qianming"></span>企业签名</a>
- </li>
- <?php
- }
- ?> <?php
- if ($this->action == "super") {
- ?> <li class="<?php echo $this->module == "publish_superlog" ? "active" : "";?>">
- <a href="/index/publish_superlog/<?php echo $this->action;?>?id=<?php echo $_var_0;?>">
- <span class="iconfont icon-qianming"></span>签名记录</a>
- </li>
- <?php
- }
- ?> </ul>
- </aside>
- </div>
- <?php
- }
- function publish_top($_var_1 = [])
- {
- ?> <div class="details-top clearfix">
- <div class="fl upload-icon-common uploaded ">
- <img class="fl" src="<?php echo geticon($_var_1["in_icon"]);?>" onerror="javascript:this.src='<?php echo IN_PATH;?>static/index/image/<?php echo $_var_1["in_form"];?>.png'">
- <input type="file" class="thumbnail" name="icon" value="">
- <div class="text">
- 上传图标
- </div>
- <div class="reset">
- 重新上传
- </div>
- </div>
- <dl class="information fl">
- <dt>
- <span class="i-tit">
- <span class="text"><?php echo $_var_1["in_name"];?></span>
- <span class="<?php echo $_var_1["in_form"] == "iOS" ? "iconfont icon-iphone" : "iconfont icon-android";?>"></span>
- <?php
- if ($_var_1["in_form"] == "iOS") {
- ?> <span class="version version-private"><span
- class="font10"><?php echo $this->action == "super" ? "超级版" : ($_var_1["in_type"] == 1 ? "企业版" : "内测版");?></span></span>
- <?php
- }
- ?> </span>
- </dt>
- <dd>
- <span>适用于<?php echo $_var_1["in_form"] == "iOS" ? "苹果" : "安卓";?><?php echo $_var_1["in_mnvs"];?>系统以上的设备</span>
- <span>版本<i><?php echo $_var_1["in_bsvs"];?> (Build <?php echo $_var_1["in_bvs"];?>)</i></span>
- <span>大小<i><?php echo formatsize($_var_1["in_size"]);?></i></span>
- </dd>
- <?php
- if ($_var_1["in_type"] == "2") {
- ?> <dd class="clearfix">
- <span class="add-notes-wrap fl">
- <span class="add-notes clearfix">
- <span class="fl"><a href="javascript:void(0);" data-toggle="modal"
- data-target="#adhocUDIDBox">内测设备查看</a></span>
- </span>
- </span>
- </dd>
- <?php
- }
- ?> </dl>
- <div class="fr d-right">
- <?php
- if (!$_var_1["in_applock"]) {
- if ($this->action == "apps" && IN_DIST_ON || $this->action == "sign" && IN_SIGN || $this->action == "super" && IN_SUPER) {
- ?> <a href="<?php echo IN_PATH;?>index/publish/<?php echo $this->action;?>?id=<?php echo bees_encrypt($_var_1["in_id"]);?>"
- class="ms-btn details-upload-new-version">
- <span class="iconfont icon-upload1"></span>
- <span class="text">上传新版本</span>
- </a>
- <?php
- }
- ?> <a href="<?php echo getlink($_var_1["in_id"]);?>" target="_blank"
- class="ms-btn ml10 details-preview">预览</a>
- <?php
- if ($_var_1["in_kid"]) {
- ?> <button app_id="<?php echo bees_encrypt($_var_1["in_id"]);?>"
- class="ms-btn ml10 details-merge cancel_merge" data-toggle="modal"
- data-target="#myModal2">
- 取消合并
- </button>
- <?php
- } else {
- ?> <button class="ms-btn ml10 details-merge btn-success" data-toggle="modal"
- data-target="#myModal"
- app_id="<?php echo bees_encrypt($_var_1["in_id"]);?>">
- 合并
- </button>
- <?php
- }
- }
- ?> </div>
- </div>
- <?php
- }
- function user_left()
- {
- ?> <div class="col-sm-2">
- <aside class="aside-left">
- <ul>
- <li class="<?php echo $this->module == "user_profile" ? "active" : "";?>">
- <a href="<?php echo IN_PATH;?>index/user_profile">
- <span class="iconfont icon-user1"></span>账号信息
- </a>
- </li>
- <li class="<?php echo $this->module == "user_order" ? "active" : "";?>">
- <a href="<?php echo IN_PATH;?>index/user_order">
- <span class="iconfont icon-028"></span>我的订单
- </a>
- </li>
- <li class="<?php echo $this->module == "user_aclog" ? "active" : "";?>">
- <a href="<?php echo IN_PATH;?>index/user_aclog">
- <span class="iconfont icon-fapiao"></span>账户记录
- </a>
- </li>
- <?php
- if (IN_PROMOTE) {
- ?> <li class="<?php echo $this->module == "user_promote" ? "active" : "";?>">
- <a href="<?php echo IN_PATH;?>index/user_promote">
- <span class="iconfont icon-team"></span>代理推广
- </a>
- </li>
- <?php
- }
- ?> <li class="<?php echo $this->module == "user_cash" ? "active" : "";?>">
- <a href="<?php echo IN_PATH;?>index/user_cash">
- <span class="iconfont icon-008"></span>提现记录
- </a>
- </li>
- </ul>
- </aside>
- </div>
- <?php
- }
- function webview_left()
- {
- ?> <div class="col-sm-2">
- <aside class="aside-left">
- <ul>
- <li class="<?php echo $this->module == "webview" ? "active" : "";?>">
- <a href="/index/webview">
- <span class="iconfont icon-xiangzi font18 icon-fz"></span>标准封装
- </a>
- </li>
- <li class="<?php echo $this->module == "webview2" ? "active" : "";?>">
- <a href="/index/webview2">
- <span class="iconfont icon-xiangzi font18 icon-fzmianqian"></span>苹果免签封装
- </a>
- </li>
- <li class="<?php echo $this->module == "webview_log" ? "active" : "";?>">
- <a href="/index/webview_log">
- <span class="iconfont icon-xiangzi font18 icon-fzjilu"></span>封装记录
- </a>
- </li>
- <div class="details-top clearfix"></div>
- </ul>
- </aside>
- </div>
- <?php
- }
- }
|