You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/app/views/widget/common/header_dzop.php

92 lines
5.7 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php echo Zc::W(WidgetConst::commonLoading);?>
<?php
$qqTalkLink = 'http://q.url.cn/AB6COP?_type=wpa&qidian=true';
if (AppConst::isShAppCategory()) {
$brandName = '智能上货';
$qqGroupLink = 'https://jq.qq.com/?_wv=1027&k=5pJvDop';
} elseif (AppConst::isOdAppCategory()) {
$qqGroupLink = 'https://jq.qq.com/?_wv=1027&k=Tro2DiNk';
$brandName = '智能下单';
} elseif (AppConst::isOpAppCategory()) {
$qqGroupLink = 'https://jq.qq.com/?_wv=1027&k=e6KAvmJu';
$qqTalkLink = 'http://wpa.qq.com/msgrd?v=3&uin=3163153953&site=qq&menu=yes';
$brandName = '智能打单';
} else {
$qqGroupLink = 'https://jq.qq.com/?_wv=1027&k=54yczQ1';
$brandName = '智能店长';
}
if ($imConfig['qq_url']) {
$qqTalkLink = $imConfig['qq_url'];
}
if ($imConfig['qq_group_url']) {
$qqGroupLink = $imConfig['qq_group_url'];
}
?>
<div class="navbar navbar-fixed-top navbar-dz">
<div class="navbar-collapse collapse">
<a class="navbar-brand" href="<?php echo Zc::url(CommonTool::getDefaultRoute(), '', false, AppConst::getDuoDuoCloudHost(true, false))?>">
<img src="<?php echo HtmlTool::getStaticFile('dz-logo.png');?>" height="30"><span class="p-l-sm"><?php echo $brandName;?></span>
<div id="J_sidebarCollapse" style="display: inline;"><i class="collapse-icon fa fa-arrow-left"></i></div>
</a>
<ul class="nav navbar-nav navbar-right user-link m-r-lg">
<li class="navbar-text">
<a href="<?php echo Zc::url(RouteConst::orderOrderPrintShortcutToDesktop); ?>" target="_blank" data-toggle="tooltip" data-container="body" data-placement="bottom" title="点击保存到桌面也可以按住CTRL + D 收藏打单页面,方便下次快速进入打单">保存到桌面</a>
</li>
<li>
<a href="<?php echo $qqTalkLink; ?>" target="_blank"><img border="0" style="height: 20px;" src="<?php echo HtmlTool::getStaticUrl('img/qq.png');?>"/></a>
</li>
<li class="J_qqGroupLinkBox hidden">
<a href="<?php echo $qqGroupLink;?>" target="_blank"><img border="0" style="height: 20px;" src="https://pub.idqqimg.com/wpa/images/group.png"></a>
</li>
<?php if ($mallInfo) { ?>
<li>
<a href="javascript:void(0);">
<?php echo date('Y-m-d', strtotime($mallInfo['gmt_pdd_expire'])) . ' 剩余' . round((strtotime($mallInfo['gmt_pdd_expire']) - time()) / 86400) . '天到期';?>
</a>
</li>
<li><a href="<?php echo Zc::url(RouteConst::userUserGoRenew, ['shopName' => $mallInfo['mall_name']]);?>" target="_blank" class="btn btn-warning btn-xs" style="background: #ef6c00;padding: 1px 5px;">续费</a></li>
<?php } ?>
<li class="dropdown J_navAuthGroupDroupmenu">
<a class="dropdown-toggle" data-toggle="dropdown" title="店铺切换" href="#"><i class="fa fa-exchange"></i> 切换店铺</a>
<div class="dropdown-menu p-t J_navAuthGroupContent" style="top:31px;left:auto;width: 540px;overflow-y: scroll;max-height: 390px;overflow-x: hidden;">
<div class="darkcarbon row J_authGroupMemberSearchDiv" style="padding: 0 14px 8px;border-bottom:1px dashed #ccc;display: none">
<div class="col-lg-3" style="padding-right:0;">
<span class="m-r-sm" style="line-height: 34px;">店铺名搜索</span>
</div>
<div class="col-lg-8" style="padding-left:0;">
<div class="input-group">
<input type="text" id="J_authGroupMemberSearchInput" class="form-control" placeholder="输入搜索店铺" />
<span class="input-group-btn">
<button class="btn btn-default J_authGroupMemberSearchCloseBtn" type="button"> X </button>
</span>
</div>
</div>
</div>
<div id="J_navAuthGroupContent"></div>
</div>
</li>
<?php if (false) {?>
<li><a>剩余短信:<span class="fm-georgia ft_14"><span class="J_totalSmsNumInfo" style="color:#fc2;">0</span></span>&nbsp;条</a> </li>
<li><a href="<?php echo Zc::url(RouteConst::userRechargeSmsPay);?>" class="label label-danger mt_5" style="background-color: #d9534f;padding: 0 10px;">充值</a></li>
<?php }?>
<li><a href="javascript:void(0);" id="J_showSyncDataModal"><i class="fa fa-refresh fa-fw m-r-sm"></i>同步数据</a></li>
<?php if ($mallInfo) { ?>
<li class="dropdown" data-hover="dropdown" style="line-height: 45px;">
<a href="javascript:;" aria-haspopup="true" class="p-x" style="max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">
<?php echo $mallInfo['mall_name'];?><i class="m-l-sm fa fa-angle-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li>
<a class="pull-right m-r-md" href="<?php echo Zc::url(RouteConst::commonAuthExitApp)?>" style="background: white;color: black;">
退出<i class="fa fa-sign-out"></i>
</a>
</li>
</ul>
</li>
<?php } ?>
<li class="navbar-text"><i class="fa fa-bell-o"></i></li>
</ul>
</div>
</div>
<?php Zc::W(WidgetConst::commonCommonTopTips); ?>