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/page/user/payment/index.php

349 lines
22 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 HtmlTool::getStaticFile('payment.css?' . TsConst::cssPayment); ?>
<div class="right-container">
<?php if($errorMsg){?>
<div class="alert alert-danger alert-dismissible fade in mb_10">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p><?php echo $errorMsg;?></p>
</div>
<?php }?>
<div class="alert alert-warning mt_20" style="height: 120px;">
<div style="font-size: 28px;line-height: 50px;font-weight: bold;"><span>如需<span class="red">购买软件、延长使用时间</span>,请点击按钮前往服务市场订购</span><a class="btn btn-danger ml_20" style="padding:12px 18px;font-size: 20px;border-radius:8px" href="https://mms.pinduoduo.com/login/sso?platform=fuwu&redirectUrl=https%3A%2F%2Ffuwu.pinduoduo.com%2Fservice-market%2Fservice-detail%3FdetailId%3D187" target="_blank">立即订购</a></div>
<div class="ft_16 mt_10"><span>重要提示:需要切换店铺购买的话,请在跳转到拼多多服务市场后切换,<span class="red">妙手多店铺管理内切换无效</span>,实际购买店铺以服务市场右上角显示的店铺为准。</span></div>
</div>
<div class="well well-lg mt_20 <?php echo !$isAllowUpgrade ? 'hidden' : '';?>">
<div class="text-center" style="font-size: 28px;line-height: 50px;font-weight: bold;">如需<span class="red">升级版本、充值搬家数量</span>,可在下方直接购买</div>
<div class="row mt_20">
<div class="col-md-6">
<div class="thumbnail layer-cart clearfix" style="height: 400px;">
<div style="padding-left: 50px;">
<div class="select-area">
<div class="col-sm-12 mt_20 ft_18" style="color: #03B3B2;"><b>升级版本</b><span class="ft_12 text-muted">&nbsp;&nbsp;(如需提高每日搬家额度,可补差价进行升级)</span></div>
<div class="col-sm-12 mt_20 red">
当前订购版本为<?php echo AppVersionConst::getAppVersionName($mallInfo['app_version'])?><?php echo AppVersionConst::getMoveBillingTypeByAppVersion($mallInfo['app_version']) === MoveConst::moveBillingTypeTime ? '(每天搬' . $mallInfo['day_move_limit'] . '个商品)': '(每月搬' . AppVersionConst::getAllowMoveCountByAppVersion($mallInfo['app_version'], $mallInfo['app_cycle']) . '个商品)'?>,如需提高搬家额度,
<?php if ($mallInfo['app_version'] === AppVersionConst::move7) {?>
请订购其他付费版本,或购买按需充值
<?php } elseif ($mallInfo['app_version'] === AppVersionConst::moveInfiniteAdvanced) {?>
请订购按需充值
<?php } else { ?>
请在此购买
<?php } ?>
</div>
<div class="col-sm-12 mt_20">
<ul class="list-unstyled">
<li>
<em class="ft_14">提高额度:</em>
<p class="J_versionOrCycleBox" data-type="version">
<?php
foreach ($appVersionList as $appVersion) {
echo '<span class="sel-item layer-cart" data-code="' . $appVersion['app_version_code'] . '" data-toggle="tooltip" data-title="搬家速度( 约' . $appVersion['day_move_limit'] . ' / 每天 ">'.$appVersion['app_version_name'].'</span>';
}?>
</p>
</li>
<li>
<em class="ft_14">可用时长:</em>
<p><span>与订购时软件内剩余时间一致</span></p>
</li>
<li class="hide">
<em class="ft_14">周  期:</em>
<p class="J_versionOrCycleBox" data-type="cycle">
<?php foreach ($appCycleList as $appCycle){?>
<span class="sel-item" data-code="<?php echo $appCycle['app_cycle_code'];?>"><?php echo $appCycle['app_cycle_name']?></span>
<?php }?>
</p>
</li>
<li id="price">
<em class="ft_14">提额费用:</em>
<p><strong class="d-price" id="J_calcSerPriceAreaId">--</strong><span class="text-muted">(价格:<span id="J_calcOriPriceAreaId">--</span>元/月)</span></p>
</li>
<li id="finalPrice">
<em class="ft_14">实  付:</em>
<p><strong class="d-price" id="J_calcFinalPriceAreaId">--</strong><span class="text-muted"><span id="J_calcFinalPriceDetail"></span></span></p>
</li>
<li>
<div><button class="btn btn-danger btn-lg" id="J_createUpgradeOrderAndGotoPay">当前店铺提高额度</button></div>
</li>
</ul>
</div>
<div class="col-sm-12 alert alert-warning">
如需购买软件、延长使用时间,请前往服务市场订购。<a href="<?php echo AppConst::getAppServiceMarketLink();?>" target="_blank">前往订购</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="thumbnail layer-cart clearfix" style="height: 400px;">
<div style="padding-left: 50px;height: 400px;">
<div class="select-area">
<div class="col-sm-12 mt_20 ft_18" style="color: #03B3B2;">
<b>按需充值</b><span class="ft_12 text-muted">&nbsp;&nbsp;(如需提高搬家数量,可充值数量)</span>
</div>
<div class="col-sm-12 mt_20">
<ul class="list-unstyled">
<li>
<em class="ft_14 w90">充值数量:</em>
<p class="J_moveSpeedPacksBox" style="padding-left: 90px;">
<?php
foreach ($moveSpeedPackList as $moveSpeedPack) {
echo '<span class="sel-item layer-cart" data-type="box" data-num="' . $moveSpeedPack['num'] . '">' . $moveSpeedPack['title'] . '</span>';
}?>
<span class="sel-item layer-cart" data-type="box">其他 <input type="text" class="text-center J_otherMoveSpeedNumber" style="width:42px;height:16px;border:0;border-bottom:1px solid black;color: red;" oninput="value=value.replace(/[^\d]/g,'')"> 个</span>
</p>
</li>
<li class="mt_10" id="price">
<div class="inline w200">
<em class="ft_14 w90">价   格:</em>
<p><strong class="d-price" id="J_calcMoveSpeedPriceAreaId">--</strong></p>
</div>
</li>
<li>
<div class="inline">
<button class="btn btn-danger btn-lg" id="J_createMoveSpeedOrderAndGotoPay">立即充值</button>
</div>
</li>
<li>
<div class="ft_12 text-muted" style="background-color: #f3f3f3;width: 450px;padding: 5px 20px;line-height: 18px">
<span>购买按需充值,可临时提高搬家数量,数量用完即止。</span><br>
<span>例:"标准版"一天可搬500个商品</span><br>
<span>临时要搬1000个商品只需购买500个商品</span><br>
<span>临时要搬1500个商品只需购买1000个商品</span><br>
<span>以此类推,一天(24小时)内不间断搬家最多可搬10000个商品。</span>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="margin-top: 30px;">
<div class="col-md-12">
<div class="ft_18 text-center" style="color: #03B3B2;"><b>拼团购买</b></div>
<div class="text-center text-muted mt_10">妙手先发起团购活动,赶紧拉上小伙伴一起团购吧!</div>
<div class="text-center text-muted mt_5">该优惠活动只针对普通版、标准版、高级版,按需充值、免费版、豪华版不参与团购优惠。</div>
</div>
<div class="col-md-12 mt_10">
<table class="table table-bordered text-center ft_18">
<tr>
<td>
<div>2个店铺</div>
<div class="red mt_5">9.2折</div>
</td>
<td>
<div>5个店铺</div>
<div class="red mt_5">9折</div>
</td>
<td>
<div>10个店铺</div>
<div class="red mt_5">8.8折</div>
</td>
<td>
<div>15个店铺</div>
<div class="red mt_5">8.6折</div>
</td>
<td>
<div>20个店铺</div>
<div class="red mt_5">8.5折</div>
</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center text-muted mt_20">符合下方<span class="red">拼团详细规则</span>的订单才可返现,拼团详细规则联系客服了解&nbsp;&nbsp;客服电话13609589263&nbsp;&nbsp;&nbsp;&nbsp;客服QQ800808619
<a target="_blank" href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDgwODYxOV80ODM5OTdfODAwODA4NjE5Xw">
<img border="0" src="http://pdd.szchengji-inc.com/app/views/static/img/qq.png" alt="点击这里给我发消息, QQ:800808619" title="点击这里给我发消息, QQ:800808619">
</a>
</div>
</div>
<div class="row hidden" style="margin-top: 50px;">
<div class="col-md-2">
<div class="ft_18 text-center" style="color: #02B4B3;"><b>赚取佣金</b></div>
<div class="w120 text-left text-muted" style="margin-left: 25%;">邀请好友订购,赚取佣金,邀请越多,赚取越多</div>
</div>
<div class="col-md-9">
<table class="table table-bordered text-center ft_18">
<tr>
<td>
<div>邀请订购1个月版本</div>
<div>赚取百分X佣金</div>
<div class="mt_5 ft_14">最高&nbsp;<span class="red"><span class="ft_18">XX</span>&nbsp;元</span></div>
</td>
<td>
<div>邀请订购1个月版本</div>
<div>赚取百分X佣金</div>
<div class="mt_5 ft_14">最高&nbsp;<span class="red"><span class="ft_18">XX</span>&nbsp;元</span></div>
</td>
<td>
<div>邀请订购1个月版本</div>
<div>赚取百分X佣金</div>
<div class="mt_5 ft_14">最高&nbsp;<span class="red"><span class="ft_18">XX</span>&nbsp;元</span></div>
</td>
<td>
<div>邀请订购1个月版本</div>
<div>赚取百分X佣金</div>
<div class="mt_5 ft_14">最高&nbsp;<span class="red"><span class="ft_18">XX</span>&nbsp;元</span></div>
</td>
</tr>
</table>
</div>
</div>
<div class="row hidden">
<div class="col-md-11 text-right text-muted mt_10">
邀请佣金发到支付宝账号&nbsp;<input type="text" class="w160">&nbsp;
姓名&nbsp;<input type="text" class="w120">&nbsp;
<button class="btn btn-danger btn-sm" id="J_submitAccount">确认提交</button>
</div>
</div>
<div class="row hidden">
<div class="col-md-11 text-right mt_10"><button class="btn btn-info" id="J_share">点击邀请好友购买</button></div>
</div>
</div>
<div class="text-center ft_18 mt_20">其他妙手平台推荐</div>
<div class="ft_16 mt_20 text-center">
<div class="text-center inline" style="width: 240px;">
<a href="http://www.91miaoshou.com?pdddg" target="_blank">
<img src="<?php echo HtmlTool::getStaticFile('payment/logo_jd.jpg')?>" width="240px;">
<div class="well well-sm">京东版妙手</div>
</a>
</div>
<div class="text-center ml_20 inline" style="width: 240px;">
<a href="http://www.91miaoshou.com?pdddg" target="_blank">
<img src="<?php echo HtmlTool::getStaticFile('payment/logo_sn.jpg')?>" width="240px;">
<div class="well well-sm">苏宁版妙手</div>
</a>
</div>
<div class="text-center ml_20 inline" style="width: 240px;">
<a href="http://www.91miaoshou.com?pdddg" target="_blank">
<img src="<?php echo HtmlTool::getStaticFile('payment/logo_tb.jpg')?>" width="240px;">
<div class="well well-sm">淘宝版妙手</div>
</a>
</div>
<div class="text-center ml_20 inline" style="width: 240px;">
<a href="http://www.91miaoshou.com?pdddg" target="_blank">
<img src="<?php echo HtmlTool::getStaticFile('payment/logo_1688.jpg')?>" width="240px;">
<div class="well well-sm">1688版妙手</div>
</a>
</div>
</div>
<div class="col-sm-12 text-center" data-toggle="noticeBanner" data-key="<?php echo MarketConst::bannerLocatePaymentIndexBottom; ?>">
</div>
<span id="J_appVersionAndCycleMapList" data-value="<?php echo Zc::sh(json_encode($appVersionAndCycleMapList));?>"></span>
<span id="J_moveSpeedPackList" data-value="<?php echo Zc::sh(json_encode($moveSpeedPackList));?>"></span>
<span id="J_mallInfo" data-value="<?php echo Zc::sh(json_encode($mallInfo));?>"></span>
<span id="J_appGroupMemberMallMap" data-value="<?php echo Zc::sh(json_encode($groupMemberMallMap));?>"></span>
<span id="J_appGroupDiscount" data-value="<?php echo $appGroupDiscount['discount'] ? $appGroupDiscount['discount'] : 0;?>"></span>
</div>
<div class="modal fade" role="dialog" id="J_payConfirm">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">是否已支付成功?</h4>
</div>
<div class="modal-body">
<div class="text-center">
<a class="btn btn-success" href="<?php echo Zc::url(RouteConst::userPaymentCheckPayIsSuccess);?>">已成功充值</a>
<a class="btn btn-danger" data-dismiss="modal">未成功</a>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" role="dialog" id="J_moveSpeedRechargeConfirm">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">是否已支付成功?</h4>
</div>
<div class="modal-body">
<div class="text-center">
<a class="btn btn-success" href="<?php echo Zc::url(RouteConst::userPaymentMoveSpeedRechargeList);?>">已成功充值</a>
<a class="btn btn-danger" data-dismiss="modal">未成功</a>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" role="dialog" id="J_appGroupOrderConfirm">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">是否已支付成功?</h4>
</div>
<div class="modal-body">
<div class="text-center">
<a class="btn btn-success" href="<?php echo Zc::url(RouteConst::userPaymentAppGroupOrderList);?>">已成功充值</a>
<a class="btn btn-danger" data-dismiss="modal">未成功</a>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="J_addAppGroupMallModal">
<div class="modal-dialog" role="document" style="width: 850px;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">添加参与团购店铺</h4>
</div>
<div class="modal-body">
<div style="height: 28px;background-color: #f3f3f3;padding: 5px 20px;"><strong>手动填写添加</strong><span class="red ml_10">店铺名或ID必填*</span></div>
<div class="form-inline mt_20">
<div class="input-group ml_20">
<label class="input-group-addon">店铺名:</label>
<input class="form-control w200 J_memberMallName" type="text" placeholder="请输入店铺名">
</div>
<div class="input-group ml_20">
<label class="input-group-addon">店铺ID</label>
<input class="form-control w200 J_memberMallId" type="text" placeholder="请输入店铺ID">
</div>
<a class="btn btn-info ml_10 J_addGroupMemberMallBtn"><i class="fa fa-plus"></i>添加</a>
</div>
<div style="height: 28px;background-color: #f3f3f3;padding: 5px 20px;margin-top: 40px;"><strong>导入表格添加</strong><span class="red ml_10">(如果添加的店铺过多,建议选择表格导入)</span></div>
<div class="form-inline mt_20">
<?php echo ZcHtmlHelper::drawForm('download', Zc::url(RouteConst::userPaymentGroupMemberMallDownloadCsv), 'post', 'class="inline ml_20" style="width:120px;"')?>
<button class="btn btn-primary" type="submit"><span class="glyphicon glyphicon-download"></span>下载模板</button>
<?php echo ZcHtml::endForm();?>
<div class="thumbnail-upload-box inline">
<input id="J_uploadGroupMemberMallFile" class="thumbnail-upload-bg-input" name="uploadGroupMemberMallFile" type="file">
<button class="btn btn-primary" type="button"><span class="glyphicon glyphicon-upload"></span>上传模板</button>
<span id="J_importGroupMemberMallFileName"></span>
</div>
</div>
<div style="height: 28px;background-color: #f3f3f3;padding: 5px 20px;margin-top: 40px;"><strong>加入多店管理团购</strong><span class="red ml_10">(加入多店管理后,除了可团购,还可以一键切换店铺,进行多个店铺的统一操作,多店管理卖家必备)</span></div>
<div class="mt_20">
<a class="btn btn-info ml_20" href="<?php echo Zc::url(RouteConst::userMallAuthIndex)?>">点击进入多店铺管理</a>
</div>
<div class="ml_20 mb_20" style="margin-top: 40px;line-height: 18px;">
<div class="red">温馨提示:</div>
<div class="ft_12 text-muted">
<div class="mt_10">1、如您只想参与团购活动不想各个店铺绑定授权建议使用手动填写或导入表格添加团购店铺</div>
<div class="mt_10">2、未订购过妙手的用户建议使用手动填写或导入表格添加团购店铺</div>
<div class="mt_10">3、用多店管理方式参与团购与前两种方式有所区别。加入多店管理后除了可团购还可以一键切换店铺进行多个店铺的统一操作多店管理卖家必备</div>
</div>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" id="J_mallIsExpired" value="<?php echo ($_SESSION[SessionConst::mallGmtExpire] < ZcDateHelper::now()) ? 1 : 0;?>">
<?php echo HtmlTool::getStaticFile(array('ajaxupload.js?' . TsConst::jsGlobal)); ?>
<?php echo HtmlTool::getStaticFile(array('biz/payment.js?' . TsConst::jsPayment));?>