| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <script>
- (function () {
- if (/\?|&/.test(location.search) && /full=1/.test(location.search)) return;
- if (/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent)) {
- location.replace('m.html');
- }
- })();
- </script>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="theme-color" content="#ffffff">
- <link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
- <title>3D云设计编辑器 — 袋研社 POUCHLAB</title>
- <meta name="description" content="在线 3D 纸盒设计:盒型库、模板、素材、文字、条码二维码、智能参数、动效预览与印刷下单。">
- <link rel="stylesheet" href="assets/css/base.css?v=1.8.26">
- <link rel="stylesheet" href="assets/css/antd.css?v=1.8.26">
- <link rel="stylesheet" href="assets/css/auth.css?v=1.8.26">
- <link rel="stylesheet" href="assets/css/box.css?v=1.8.26">
- <script src="assets/js/i18n-en.js?v=1.8.26"></script>
- <script src="assets/js/i18n.js?v=1.8.26"></script>
- </head>
- <body class="bx-body">
- <header class="bx-topbar">
- <div class="bx-brand">
- <a class="logo" href="index.html" aria-label="返回首页">
- <span class="logo-mark">
- <svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
- <path d="M7 8.2h10l1 10.1a2.8 2.8 0 0 1-2.8 3H8.8A2.8 2.8 0 0 1 6 18.3L7 8.2Z" fill="#fffdf8"/>
- <path d="M7.4 11.1h9.2" stroke="#17140f" stroke-width="1.4" stroke-linecap="round"/>
- <circle cx="14.2" cy="11.1" r="1.15" fill="#ff5c2b"/>
- <path d="M9.5 14.4h4.9" stroke="#ff5c2b" stroke-width="1.4" stroke-linecap="round"/>
- <path d="M17.8 5.2v2.4M16.6 6.4h2.4" stroke="#17140f" stroke-width="1.2" stroke-linecap="round"/>
- </svg>
- </span>
- <span class="logo-type"><b>袋研社</b><span>POUCHLAB</span></span>
- </a>
- <div class="bx-file-menu-wrap">
- <button class="bx-file-btn" id="bxFileBtn">文件 <i class="caret"></i></button>
- <div class="bx-file-menu" id="bxFileMenu" hidden>
- <div class="bx-file-name" id="bxFileNameWrap">
- <span id="bxFileName">未命名纸盒</span>
- <svg viewBox="0 0 24 24" class="edit-ic"><path d="M4 20h4L19 9l-4-4L4 16v4Z" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
- </div>
- <button data-file="new">新建设计方案</button>
- <button data-file="copy">创建副本</button>
- <button data-file="mine">查看我的设计方案</button>
- <button data-file="history">历史版本记录</button>
- <div class="bx-file-sep"></div>
- <button data-file="save">保存</button>
- <button data-file="import-art">导入PSD/AI/PDF</button>
- <button data-file="import-cad">导入CAD</button>
- <button data-file="submit">投稿至模板中心</button>
- </div>
- </div>
- </div>
- <div class="bx-top-tools">
- <button class="tb-btn" id="bxShareBtn" title="分享">
- <svg viewBox="0 0 24 24"><path d="M14 5l7 7-7 7v-4C7 15 4 17 3 20c0-7 4-10 11-11V5Z" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"/></svg>
- </button>
- <button class="tb-btn" id="bxSaveBtn" title="保存">
- <svg viewBox="0 0 24 24"><path d="M5 4h11l4 4v12H5V4Z" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M8 4v5h7V4M8 20v-6h8v6" fill="none" stroke="currentColor" stroke-width="1.7"/></svg>
- </button>
- <button class="tb-btn" id="bxUndoBtn" title="撤销" disabled>
- <svg viewBox="0 0 24 24"><path d="M8 5 3 10l5 5" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M3 10h11a6 6 0 0 1 0 12h-3" fill="none" stroke="currentColor" stroke-width="1.7"/></svg>
- </button>
- <button class="tb-btn" id="bxRedoBtn" title="重做" disabled>
- <svg viewBox="0 0 24 24"><path d="m16 5 5 5-5 5" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M21 10H10a6 6 0 0 0 0 12h3" fill="none" stroke="currentColor" stroke-width="1.7"/></svg>
- </button>
- </div>
- <div class="bx-mode-switch" id="bxModeSwitch">
- <button data-mode="2d" class="on">2D设计</button>
- <button data-mode="3d">3D预览</button>
- </div>
- <div class="bx-top-actions">
- <span data-lang-slot></span>
- <button class="btn-print" id="bxPrintBtn">
- <svg viewBox="0 0 24 24"><path d="M7 8V3h10v5M5 8h14a2 2 0 0 1 2 2v6h-4v5H7v-5H3v-6a2 2 0 0 1 2-2Z" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M7 16h10" stroke="currentColor" stroke-width="1.7"/></svg>
- 印刷下单
- </button>
- <button class="btn-plain" id="bxRenderBtn">渲 染</button>
- <button class="btn-export" id="bxExportBtn">导出</button>
- <button class="btn-plain" id="bxAiBtn" title="AI 排版(登录后可用)">✨ AI 排版</button>
- <button class="btn-plain" id="bxOrdersBtn" title="我的订单" onclick="location.href='orders.html'">我的订单</button>
- <button class="bx-avatar" id="bxAvatar" title="登录 / 账号">
- <svg viewBox="0 0 24 24"><circle cx="12" cy="8.2" r="3.4" fill="#ffb27a"/><path d="M4.5 20c1.4-3.8 4.2-5.4 7.5-5.4s6.1 1.6 7.5 5.4" fill="#ffd9b8"/></svg>
- </button>
- </div>
- </header>
- <main class="bx-main">
- <nav class="bx-rail" id="bxRail" aria-label="设计工具">
- <button data-tab="box" class="on">
- <svg viewBox="0 0 24 24"><path d="M12 3 3 8.2v7.6L12 21l9-5.2V8.2L12 3Z"/><path d="M3 8.2 12 13l9-4.8M12 13v8"/></svg>
- <span>盒型</span>
- </button>
- <button data-tab="template">
- <svg viewBox="0 0 24 24"><rect x="3.5" y="3.5" width="17" height="17" rx="2"/><path d="M3.5 9.5h17M9.5 9.5v11"/></svg>
- <span>模板</span>
- </button>
- <button data-tab="asset">
- <svg viewBox="0 0 24 24"><path d="M12 4 4 19h16L12 4Z"/><circle cx="17" cy="7.5" r="2.2"/></svg>
- <span>素材</span>
- </button>
- <button data-tab="text">
- <svg viewBox="0 0 24 24"><path d="M5 6h14M12 6v13M8.5 19h7"/></svg>
- <span>文字</span>
- </button>
- <button data-tab="tool">
- <svg viewBox="0 0 24 24"><path d="M9.5 14.5 4 20l1.6 1.6M9.5 14.5l6-9.6a4 4 0 0 1 5.4 5.4l-9.6 6"/></svg>
- <span>工具</span>
- </button>
- <button data-tab="upload">
- <svg viewBox="0 0 24 24"><path d="M12 15V5M7.5 9 12 4.5 16.5 9"/><path d="M4 15v4h16v-4" fill="none"/></svg>
- <span>上传</span>
- </button>
- <button data-tab="layers">
- <svg viewBox="0 0 24 24"><path d="m12 3 9 5-9 5-9-5 9-5Z"/><path d="m3 13 9 5 9-5"/></svg>
- <span>图层</span>
- </button>
- <button data-tab="help">
- <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="8.6" fill="none"/><path d="M9.6 9.4a2.6 2.6 0 1 1 3.6 2.4c-.8.4-1.2 1-1.2 1.9" fill="none"/><circle cx="12" cy="16.8" r=".9" fill="currentColor" stroke="none"/></svg>
- <span>帮助</span>
- </button>
- </nav>
- <aside class="bx-panel" id="bxPanel">
- <div class="bx-panel-body" id="bxPanelBody"></div>
- </aside>
- <section class="bx-stage" id="bxStage">
- <!-- 2D 刀版画布 -->
- <div class="bx-flat" id="bxFlat">
- <div class="bx-flat-inner" id="bxFlatInner">
- <div class="dieline-wrap" id="boxDieline"></div>
- </div>
- <div class="bx-canvas-corner left">
- <button id="bxPreviewToggle" title="预览(隐藏刀版线)">
- <svg viewBox="0 0 24 24"><path d="M2.5 12S6 5.8 12 5.8 21.5 12 21.5 12 18 18.2 12 18.2 2.5 12 2.5 12Z" fill="none" stroke="currentColor" stroke-width="1.6"/><circle cx="12" cy="12" r="2.6" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
- </button>
- <button id="bxPanToggle" title="平移画布">
- <svg viewBox="0 0 24 24"><path d="M12 3v18M3 12h18M12 3 9.5 5.5M12 3l2.5 2.5M12 21l-2.5-2.5M12 21l2.5-2.5M3 12l2.5-2.5M3 12l2.5 2.5M21 12l-2.5-2.5M21 12l-2.5 2.5" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>
- </button>
- </div>
- <div class="bx-canvas-corner right">
- <button id="bxZoomOut2d" aria-label="缩小">−</button>
- <span id="bxZoom2dLabel">60 %</span>
- <button id="bxZoomIn2d" aria-label="放大">+</button>
- <button id="bxFit2d" title="适应画布">
- <svg viewBox="0 0 24 24"><path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
- </button>
- </div>
- <!-- 外侧 / 内侧 浮窗 -->
- <div class="bx-side-float" id="bxSideFloat">
- <div class="side-tabs">
- <button data-side="outer" class="on">外侧</button>
- <i>|</i>
- <button data-side="inner">内侧</button>
- </div>
- <div class="side-thumb" id="bxSideThumb"></div>
- <a class="side-model" id="bxModelId" href="index.html" target="_blank">模型ID: 100010</a>
- </div>
- </div>
- <!-- 3D 预览 -->
- <div class="bx-3dview" id="bx3dView" hidden>
- <div class="box-scene" id="boxScene">
- <div class="box3d" id="box3d"></div>
- <div class="box-shadow" id="boxShadow"></div>
- </div>
- <div class="bx-3d-ctrl" id="bx3dCtrl">
- <div class="ctrl-color" id="bxColorQuick">
- <button class="cc-main" id="bxColorBtn" title="盒身颜色">
- <svg viewBox="0 0 24 24"><path d="m5 17 7-12 7 12-7 3-7-3Z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg>
- </button>
- <span class="cc-cur" id="bxColorCur"></span>
- <div class="cc-pop" id="bxColorPop" hidden>
- <div class="cc-row">
- <label class="cc-picker" title="自定义颜色">
- <svg viewBox="0 0 24 24"><path d="m5 17 7-12 7 12-7 3-7-3Z" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
- <input type="color" id="bxColorInput" value="#4a90e2">
- </label>
- <span class="cc-swatch cur" data-cc="#4a90e2" style="background:#4a90e2"></span>
- <span class="cc-swatch" data-cc="none" title="无颜色"><i class="none"></i></span>
- </div>
- <div class="cc-grid" id="bxColorGrid"></div>
- </div>
- </div>
- <div class="ctrl-fold">
- <button id="bxFoldPlay">▶</button>
- <span class="fl">开</span>
- <input type="range" id="boxFoldRange" min="0" max="100" value="0" aria-label="折叠程度">
- <span class="fr">合</span>
- <button id="bxFoldReset" title="重置视角">
- <svg viewBox="0 0 24 24"><path d="M4 10a8 8 0 1 1 2 6" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M4 4v6h6" fill="none" stroke="currentColor" stroke-width="1.7"/></svg>
- </button>
- </div>
- <button class="ctrl-4k" id="bx4kBtn">下载4K图片</button>
- </div>
- </div>
- </section>
- <aside class="bx-props" id="bxProps">
- <!-- 迷你 3D 实时预览(2D 模式显示) -->
- <div class="bx-mini3d" id="bxMini3d" hidden>
- <div class="mini-stage" id="bxMiniStage"></div>
- <div class="mini-ctrl">
- <button id="bxMiniAuto" title="自动播放" class="on">
- <svg class="ic-play" viewBox="0 0 24 24"><path d="M8 5.5v13l11-6.5L8 5.5Z"/></svg>
- <svg class="ic-pause" viewBox="0 0 24 24"><path d="M8.5 5.5v13M15.5 5.5v13" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round"/></svg>
- </button>
- <button id="bxMiniPlay" title="播放开合">▶</button>
- <span class="ml">开</span>
- <input type="range" id="bxMiniFold" min="0" max="100" value="0">
- <span class="mr">合</span>
- <button id="bxMiniReset" title="重置视角">
- <svg viewBox="0 0 24 24"><path d="M4 10a8 8 0 1 1 2 6" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M4 4v6h6" fill="none" stroke="currentColor" stroke-width="1.7"/></svg>
- </button>
- <button id="bxMiniZoom" title="放大预览">
- <svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="m16 16 5 5M8.5 11h5M11 8.5v5" stroke="currentColor" stroke-width="1.7"/></svg>
- </button>
- </div>
- </div>
- <div class="bx-props-body" id="bxPropsBody"></div>
- </aside>
- </main>
- <!-- 弹窗挂载点 -->
- <div id="bxModals"></div>
- <script src="assets/vendor/react.production.min.js?v=1.8.26"></script>
- <script src="assets/vendor/react-dom.production.min.js?v=1.8.26"></script>
- <script src="assets/vendor/dayjs.min.js?v=1.8.26"></script>
- <script src="assets/vendor/antd.min.js?v=1.8.26"></script>
- <script src="assets/vendor/three.min.js?v=1.8.26"></script>
- <script src="assets/js/data.js?v=1.8.26"></script>
- <script src="assets/js/pantone.js?v=1.8.26"></script>
- <script src="assets/js/render.js?v=1.8.26"></script>
- <script src="assets/js/antd-bridge.js?v=1.8.26"></script>
- <script src="assets/js/api.js?v=1.8.26"></script>
- <script src="assets/js/auth.js?v=1.8.26"></script>
- <script src="assets/js/qr.js?v=1.8.26"></script>
- <script src="assets/js/boxlib.js?v=1.8.26"></script>
- <script src="assets/js/boxdieline.js?v=1.8.26"></script>
- <script src="assets/js/box3d.js?v=1.8.26"></script>
- <script src="assets/js/box.js?v=1.8.26"></script>
- </body>
- </html>
|