123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?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"></span>标准封装
- </a>
- </li>
- <li class="<?php echo $this->module == "webview2" ? "active" : "";?>">
- <a href="/index/webview2" style="display:flex;align-items:center;">
- <svg width="18" height="18" style="margin-right:10px;" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M11.9556 5.6588C11.9966 4.54303 12.3101 3.56297 12.8886 2.7437C13.4701 1.92028 14.4314 1.33535 15.7473 1.00391C15.756 1.04443 15.7651 1.08497 15.7746 1.12536V1.33736C15.7746 1.81808 15.658 2.36931 15.4278 2.97564C15.1866 3.56271 14.8097 4.11524 14.309 4.61391C13.8408 5.0533 13.4076 5.3442 13.0247 5.4757C12.8983 5.51345 12.725 5.5506 12.5157 5.58405C12.3296 5.61305 12.1428 5.638 11.9556 5.6588Z" fill="#2168FB"/>
- <path d="M12.1751 7.31455C10.6888 7.31455 9.6568 6 8.19065 6C6.72455 6 3.7041 7.3476 3.7041 12C3.7041 16.6524 6.3863 19.65 6.6863 20C6.98625 20.3501 7.68005 21.2498 8.7549 21.2498C9.8298 21.2498 11.0066 20.3951 12.1751 20.3951C13.3436 20.3951 14.8144 21.2498 15.7746 21.2498C16.7348 21.2498 17.1298 20.8583 17.7833 20.1831C18.4367 19.508 19.6832 17.4477 20.1185 16.2111C19.4015 15.7843 17.5011 14.6256 17.5011 12C17.5011 10.2497 18.1407 8.7955 19.4201 7.63765C18.5808 6.5459 17.6074 6 16.4998 6C14.8385 6 13.6615 7.31455 12.1751 7.31455Z" stroke="#2168FB" stroke-width="1.5"/>
- </svg>
- 苹果免签封装
- </a>
- </li>
- <li class="<?php echo $this->module == "webview_log" ? "active" : "";?>">
- <a href="/index/webview_log">
- <span class="iconfont icon-xiangzi font18"></span>封装记录
- </a>
- </li>
- <div class="details-top clearfix"></div>
- </ul>
- </aside>
- </div>
- <?php
- }
- }
|