预览下单页布局审查修复(手机 + 电脑);正式下单页去掉进入时闪一下黑色旧页面
预览站(backend/pay-proto/preview,已上预览机): - 电脑 ≥1024:左表单 + 右侧跟随滚动的「你的订单」(逐项、分辨率、皮肤状态、合计、去付款);模板 4 列。 - 平板 761–1023:模板 4 列;吸底汇总条不透明。 - 手机:模板两列网格(不再横滑)、分辨率 2×2、皮肤预览缩到左侧、吸底条压成一行并把挡住原因写进说明行、 查单上下排;收银台按钮优先(打开支付宝 / 去爱发电),二维码收进「用另一台设备扫码」;收款后台表格改卡片。 正式下单页 order/index.html(只改仓库,未部署):jz-2026 / jz-site 两块新外观样式原来在 body 最末尾, 浏览器先按旧深色样式画出首帧 → 点「自助渲染」先闪黑。挪进 <head>(顺序不变)。测试机实测:暗帧 3 → 0, 冻结动效后最终画面与改前逐像素一致。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
<section aria-labelledby="go-h"><div class="sec-h"><div><h2 id="go-h">怎么下单?</h2></div></div><div class="paths"><a class="path crystal" href="#tpl"><span class="pi"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="20" r="1.5"/><circle cx="18" cy="20" r="1.5"/><path d="M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6"/></svg></span><h3>网页下单</h3><p style="margin:0;font-size:14.5px;color:var(--ink-2);line-height:1.75">选好模板,在收银台用爱发电或支付宝扫码付款,到账自动开始渲染。</p><div class="hint"><span></span><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg></div></a><a class="path code crystal" href="#tpl"><span class="pi"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="15" r="4"/><path d="m10.85 12.15 7.65-7.65"/><path d="m15 6 3 3"/><path d="m17.5 3.5 3 3"/></svg></span><h3>用卡密</h3><p style="margin:0;font-size:14.5px;color:var(--ink-2);line-height:1.75">在闲鱼、B站工坊或爱发电买了卡密?填进来就行,模板会自动选好。</p><div class="hint"><span></span><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg></div></a></div><div class="pickup"><span>下过单了?</span><span class="sp"></span><a class="btn btn-crystal btn-sm" href="#pass">取图</a><a class="btn btn-crystal btn-sm" href="#pass">我的订单</a></div></section>
|
<section aria-labelledby="go-h"><div class="sec-h"><div><h2 id="go-h">怎么下单?</h2></div></div><div class="paths"><a class="path crystal" href="#tpl"><span class="pi"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="20" r="1.5"/><circle cx="18" cy="20" r="1.5"/><path d="M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6"/></svg></span><h3>网页下单</h3><p style="margin:0;font-size:14.5px;color:var(--ink-2);line-height:1.75">选好模板,在收银台用爱发电或支付宝扫码付款,到账自动开始渲染。</p><div class="hint"><span></span><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg></div></a><a class="path code crystal" href="#tpl"><span class="pi"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="15" r="4"/><path d="m10.85 12.15 7.65-7.65"/><path d="m15 6 3 3"/><path d="m17.5 3.5 3 3"/></svg></span><h3>用卡密</h3><p style="margin:0;font-size:14.5px;color:var(--ink-2);line-height:1.75">在闲鱼、B站工坊或爱发电买了卡密?填进来就行,模板会自动选好。</p><div class="hint"><span></span><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg></div></a></div><div class="pickup"><span>下过单了?</span><span class="sp"></span><a class="btn btn-crystal btn-sm" href="#pass">取图</a><a class="btn btn-crystal btn-sm" href="#pass">我的订单</a></div></section>
|
||||||
<section class="sec" id="tpl" aria-labelledby="tpl-h">
|
<section class="sec" id="tpl" aria-labelledby="tpl-h">
|
||||||
<div class="sec-h"><div><h2 id="tpl-h">网页下单</h2><p>每个模板出两张:一张压缩过的,一张无压缩 16bit 的。一张 ¥6。</p></div></div>
|
<div class="sec-h"><div><h2 id="tpl-h">网页下单</h2><p>每个模板出两张:一张压缩过的,一张无压缩 16bit 的。一张 ¥6。</p></div></div>
|
||||||
|
<div class="buy"><div class="buy-form">
|
||||||
<div class="buy-step"><h3>选模板</h3><p>可以多选,选几个出几张。</p><div class="tpl-grid" id="tplGrid"></div></div>
|
<div class="buy-step"><h3>选模板</h3><p>可以多选,选几个出几张。</p><div class="tpl-grid" id="tplGrid"></div></div>
|
||||||
<div class="buy-step"><h3>分辨率</h3><p>默认 1000px 就是网易我的世界头图的标准尺寸,出图最快。</p>
|
<div class="buy-step"><h3>分辨率</h3><p>默认 1000px 就是网易我的世界头图的标准尺寸,出图最快。</p>
|
||||||
<div class="seg crystal" id="resSeg" role="group" aria-label="分辨率">
|
<div class="seg crystal" id="resSeg" role="group" aria-label="分辨率">
|
||||||
@@ -29,7 +30,9 @@
|
|||||||
<label class="skin-drop" id="skinDrop"><span id="skinPh">点这里选皮肤<br>或把 .png 拖进来</span><canvas id="skinCv" width="64" height="64" hidden></canvas><input type="file" id="skinFile" accept="image/png" aria-label="选择皮肤文件"></label>
|
<label class="skin-drop" id="skinDrop"><span id="skinPh">点这里选皮肤<br>或把 .png 拖进来</span><canvas id="skinCv" width="64" height="64" hidden></canvas><input type="file" id="skinFile" accept="image/png" aria-label="选择皮肤文件"></label>
|
||||||
<div class="skin-rep" id="skinRep"><div class="lamp warn">还没选皮肤</div></div>
|
<div class="skin-rep" id="skinRep"><div class="lamp warn">还没选皮肤</div></div>
|
||||||
</div></div>
|
</div></div>
|
||||||
<div class="sumbar crystal"><div class="sum"><b id="sumAmt">¥0</b><span id="sumTxt">还没选模板</span></div><span class="sp"></span><span class="why" id="sumWhy"></span><button type="button" class="btn btn-prism" id="btnBuy" disabled>去付款</button></div>
|
</div>
|
||||||
|
<aside class="sumbar crystal" aria-label="你的订单"><div class="sum"><span class="sum-h">你的订单</span><ul class="sum-list" id="sumList"></ul><b id="sumAmt">¥0</b><span id="sumTxt">还没选模板</span></div><span class="sp"></span><span class="why" id="sumWhy"></span><button type="button" class="btn btn-prism" id="btnBuy" disabled>去付款</button><p class="sum-note">付款方式:爱发电或支付宝扫码。到账后自动开始渲染,不用再操作。</p></aside>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="sec" id="pass" aria-labelledby="pass-h">
|
<section class="sec" id="pass" aria-labelledby="pass-h">
|
||||||
<div class="sec-h"><div><h2 id="pass-h">我的订单</h2><p>这台浏览器下过的单都在这里。换了设备,用订单号和取件码查。</p></div></div>
|
<div class="sec-h"><div><h2 id="pass-h">我的订单</h2><p>这台浏览器下过的单都在这里。换了设备,用订单号和取件码查。</p></div></div>
|
||||||
@@ -102,7 +105,12 @@ function sum(){
|
|||||||
var n=S.tpls.length, w=why();
|
var n=S.tpls.length, w=why();
|
||||||
$('sumAmt').textContent='¥'+(n*6);
|
$('sumAmt').textContent='¥'+(n*6);
|
||||||
$('sumTxt').textContent=n?(n+' 张 · '+S.res+'px · '+P.TPLS.filter(function(t){return S.tpls.indexOf(t.k)>=0;}).map(function(t){return t.n;}).join('、')):'还没选模板';
|
$('sumTxt').textContent=n?(n+' 张 · '+S.res+'px · '+P.TPLS.filter(function(t){return S.tpls.indexOf(t.k)>=0;}).map(function(t){return t.n;}).join('、')):'还没选模板';
|
||||||
|
var L=P.TPLS.filter(function(t){return S.tpls.indexOf(t.k)>=0;}).map(function(t){ return '<li><span>'+P.esc(t.n)+'</span><span class="num">¥6</span></li>'; });
|
||||||
|
L.push('<li class="meta"><span>分辨率</span><span class="num">'+S.res+'px</span></li>');
|
||||||
|
L.push('<li class="meta"><span>皮肤</span><span>'+(S.skin?(S.skin.lv==='bad'?'不能渲染':(S.skin.lv==='warn'?(S.skin.ack?'已确认风险':'待确认风险'):'已通过质检')):'还没选')+'</span></li>');
|
||||||
|
$('sumList').innerHTML=L.join('');
|
||||||
$('sumWhy').textContent=w; $('btnBuy').disabled=!!w;
|
$('sumWhy').textContent=w; $('btnBuy').disabled=!!w;
|
||||||
|
if(matchMedia('(max-width:760px)').matches && w){ $('sumTxt').textContent=w; $('sumTxt').className='blocked'; } else $('sumTxt').className='';
|
||||||
}
|
}
|
||||||
$('btnBuy').onclick=function(){
|
$('btnBuy').onclick=function(){
|
||||||
var b=this; b.disabled=true; b.textContent='正在下单…';
|
var b=this; b.disabled=true; b.textContent='正在下单…';
|
||||||
|
|||||||
Reference in New Issue
Block a user