|
|
<div class="modal fade" id="J_purchaseUrlsModal" role="dialog" aria-hidden="true">
|
|
|
<input type="hidden" class="J_goodsId" value="">
|
|
|
<div class="modal-dialog modal-lg" style="width: 1200px">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
<?php $title = $isPurchasePage ? '一键下单':'货源管理'?>
|
|
|
<div data-source-title="<?= $title?>" class="modal-title J_purchaseUrlsModalTitle"><?= $title ?></div>
|
|
|
|
|
|
</div>
|
|
|
<div class="modal-body" style="max-height: 800px; overflow: scroll">
|
|
|
<input type="hidden" name="isPurchaseIndex" class="J_isPurchasePage" value="<?php echo $isPurchasePage ? 1:0?>">
|
|
|
<input type="hidden" name="curPurchaseOrderId" class="J_curPurchaseOrderId">
|
|
|
<input type="hidden" name="curPurchaseUrls" class="J_curPurchaseUrls">
|
|
|
<input type="hidden" name="curPurchaseGoodsId" class="J_curPurchaseGoodsId">
|
|
|
<input type="hidden" name="curPurchaseMallId" class="J_curPurchaseMallId">
|
|
|
<input type="hidden" name="curPurchaseGoodsName" class="J_curPurchaseGoodsName">
|
|
|
<input type="hidden" name="curPurchaseGoodsImageUrl" class="J_curPurchaseGoodsImageUrl">
|
|
|
<input type="hidden" name="curOrderInfo" class="J_curOrderInfo">
|
|
|
<input type="hidden" name="purchaseSameGoodPlatform" class="J_purchaseSameGoodPlatform">
|
|
|
<input type="hidden" name="curCartPurchasePlatform" class="J_curCartPurchasePlatform">
|
|
|
|
|
|
<?php if ($isPurchasePage) {?>
|
|
|
<div class="alert alert-warning J_itemPurchaseNode">
|
|
|
<strong>重要提示:</strong>
|
|
|
<div>1.在同一平台下,尽量使用一个账号下单。</div>
|
|
|
<div>2.在下单过程中请勿新开任何窗口去下单,否则数据会丢失。</div>
|
|
|
<div>3.下单支付成功后,请不要太快的关闭“支付成功页”,直到提示“关联拼多多订单成功”,再关闭“支付成功页”,否则会绑定订单失败。
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php }?>
|
|
|
<div class="text-left mb_20 J_itemPurchaseNode">
|
|
|
<div class="inline ml_10 ft-12" style="width: calc(100% - 220px);">当前已支持采购平台: 淘宝/天猫、阿里巴巴、淘特、拼多多、京东、网商园、搜款网、搜鞋网、青创网、折800、一起做网店、杭州女装网、包牛牛、新款网、开山网、聚衣网、二童网、生意网、孔夫子旧书网、宇教商城、军埔网、52电商园、91家纺网、优批之家。</div>
|
|
|
</div>
|
|
|
<div class="J_purchaseOrderTransitAddrList mb_20"></div>
|
|
|
<div class="text-center mb_10 J_itemPurchaseNode">
|
|
|
<div class="btn btn-sm btn-primary J_addPurchaseGoodsUrlBtn J_addPurchaseUrl">
|
|
|
添加商品来源链接
|
|
|
</div>
|
|
|
<?php if (AppConst::isPddMsOdApp()) {?>
|
|
|
<img style="position:absolute;margin-top: -18px;" src="<?php echo HtmlTool::getStaticFile('purchase/taote_guide.png')?>" usemap="#J_addPurchaseUrlBtnPopoverAreaMap" />
|
|
|
<map name="J_addPurchaseUrlBtnPopoverAreaMap">
|
|
|
<area shape="rect" target="_blank" coords="0,0,326,40" href="<?php echo Zc::url('front/help/index', ['articleId' => 23]);?>">
|
|
|
</map>
|
|
|
<?php } ?>
|
|
|
</div>
|
|
|
<div class="J_purchaseUrlList J_purchaseWareUrlList J_itemPurchaseNode">
|
|
|
|
|
|
</div>
|
|
|
<div></div>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<div class="text-center J_cartPurchaseNode">
|
|
|
<button type="button" class="btn btn-primary J_goCartPurchase">去下单</button>
|
|
|
</div>
|
|
|
<div class="text-right J_itemPurchaseNode">
|
|
|
<button type="button" class="btn btn-info btn-sm w60" data-dismiss="modal">关闭</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="J_defaultPurchaseUrItem" data-purchase-goods-url='{}' style="display: none">
|
|
|
<?php echo ZcHtml::hiddenInput('', '{}', ['class' => 'J_purchaseGoodsUrlData']) ?>
|
|
|
<div class="purchase-url-item">
|
|
|
<div class="text-center" style="width: 70px;font-weight: bold">采购链接:</div>
|
|
|
<div style="border:1px solid #ddd;width: calc(100% - 530px);position: relative;padding: 0">
|
|
|
<input name="purchaseTag" type="text" value="" class="inline" placeholder="备注" style="border:none;border-right: 1px solid #ddd;width: 80px;padding:5px;position: absolute;top: 0">
|
|
|
<input name="purchaseUrl" class="purchase-url J_purchaseUrl" value="">
|
|
|
<a href="javascript:void(0)" class="btn btn-default btn-sm jump-purchase-url J_openPurchaseUrl">
|
|
|
<i class="fa fa-external-link"></i>
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="J_purchaseUrlDetail mb_20" style="width:90%;">
|
|
|
<div class="purchase-goods-detail-row mt_10">
|
|
|
<div class="spec-label">SPU关联:</div>
|
|
|
<div class="spec-table">
|
|
|
<div class="spec-title">拼多多规格</div>
|
|
|
<div class="source-spec-title">货源规格
|
|
|
<a class="ml_10 J_reloadSpecList" href="javascript:void(0)">获取货源SKU</a>
|
|
|
<a class="ml_10 J_showManualGoodsSpecModalBtn" href="javascript:void(0)">手动录入货源</a>
|
|
|
</div>
|
|
|
<div class="spec-span"><span>-</span></div>
|
|
|
<div class="spec-list-container">
|
|
|
<div class="spec-list J_specList">
|
|
|
|
|
|
</div>
|
|
|
<div class="spec-list J_sourceSpecList" style="float: right">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="purchase-goods-detail-row mt_10" style="min-height: 30px;">
|
|
|
<div class="spec-label">操作:</div>
|
|
|
<div>
|
|
|
<?php echo ZcHtml::checkbox('isDefault', false, array('value' => 1, 'class' => '', 'label' => '设为默认下单链接'));?>
|
|
|
|
|
|
<div class="btn btn-sm pull-right btn-primary J_savePurchaseGoodsUrl">保存</div>
|
|
|
<div class="btn btn-sm pull-right btn-default mr_10 J_delPurchaseGoodsUrl">取消</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="modal fade" id="J_manualPurchaseGoodsSpecModal" role="dialog" aria-hidden="true">
|
|
|
<div class="modal-dialog modal-lg" style="width: 800px">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
<div class="modal-title">手动录入货源SKU</div>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="purchase-url-item">
|
|
|
<div class="text-center" style="width: 70px;font-weight: bold">采购链接:</div>
|
|
|
<div style="border:1px solid #ddd;width: calc(90% - 70px);position: relative;padding: 0">
|
|
|
<input name="purchaseTag" type="text" value="" class="inline" placeholder="备注" style="border:none;border-right: 1px solid #ddd;width: 80px;padding:5px;position: absolute;top: 0">
|
|
|
<input name="purchaseUrl" class="purchase-url" value="" readonly>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="mb_20" style="width:90%;">
|
|
|
<div class="purchase-goods-detail-row mt_10">
|
|
|
<div class="spec-label">货源SKU:</div>
|
|
|
<div class="spec-table ft-12 ft_12" style="height: unset;">
|
|
|
<div class="spec-title" style="width: 100%;position: unset;">货源SKU</div>
|
|
|
<div class="J_purchaseGoodsSpecList">
|
|
|
<div>
|
|
|
<div class="inline ml_10">颜色:</div>
|
|
|
<div class="inline J_purchaseGoodsSpecColorList" style="width: calc(100% - 50px)">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
<div class="inline ml_10">尺码:</div>
|
|
|
<div class="inline J_purchaseGoodsSpecSizeList" style="width: calc(100% - 50px)">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="purchase-goods-detail-row mt_10" style="min-height: 30px;">
|
|
|
<div class="btn btn-sm pull-right btn-primary J_savePurchaseGoodsSpec">保存</div>
|
|
|
<div class="btn btn-sm pull-right btn-default mr_10" data-dismiss="modal">取消</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script id="J_purchaseGoodsSpecColorListTemplate" type="text/template">
|
|
|
<% if(_.isEmpty(colorList)) { %>
|
|
|
<div class="inline pd_10 J_purchaseGoodsSpecItem">
|
|
|
<input class="form-control input-sm" style="white-space: nowrap;text-overflow: ellipsis">
|
|
|
</div>
|
|
|
<% } %>
|
|
|
<% _.each(colorList, function(color, index){ %>
|
|
|
<div class="inline pd_10 J_purchaseGoodsSpecItem">
|
|
|
<input class="form-control input-sm" style="white-space: nowrap;text-overflow: ellipsis" value="<%= color %>">
|
|
|
<% if(colorList.length > 1) { %>
|
|
|
<i class="fa fa-remove J_removePurchaseGoodsSpecItem" style="position: absolute;top: 19px;left: 150px;color: gray;cursor: pointer;"></i>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
<% }) %>
|
|
|
<button class="btn btn-xs btn-default J_addPurchaseGoodsSpecColorBtn" style="margin-left: 8px;"><i class="fa fa-plus"></i></button>
|
|
|
</script>
|
|
|
<script id="J_purchaseGoodsSpecSizeListTemplate" type="text/template">
|
|
|
<% if(_.isEmpty(sizeList)) { %>
|
|
|
<div class="inline pd_10 J_purchaseGoodsSpecItem">
|
|
|
<input class="form-control input-sm" style="white-space: nowrap;text-overflow: ellipsis">
|
|
|
</div>
|
|
|
<% } %>
|
|
|
<% _.each(sizeList, function(size, index){ %>
|
|
|
<div class="inline pd_10 J_purchaseGoodsSpecItem">
|
|
|
<input class="form-control input-sm" style="white-space: nowrap;text-overflow: ellipsis" value="<%= size %>">
|
|
|
<% if(sizeList.length > 1) { %>
|
|
|
<i class="fa fa-remove J_removePurchaseGoodsSpecItem" style="position: absolute;top: 19px;left: 150px;color: gray;cursor: pointer;"></i>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
<% }) %>
|
|
|
<button class="btn btn-xs btn-default J_addPurchaseGoodsSpecSizeBtn" style="margin-left: 8px;"><i class="fa fa-plus"></i></button>
|
|
|
</script>
|