P 系列 width/height=null 不裁切保留原比例;blade 尺寸標示對 null 做防護 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
46 lines
3.2 KiB
PHP
46 lines
3.2 KiB
PHP
<?php
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| APP UI 部位定義(比照舊後台 unibuy 的「類別」代碼)
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| 每個部位 = 機台 App 上一個可由後台換膚的位置。
|
||
| key 部位代碼(沿用舊後台,如 A1/A2/A3),= ui_elements.part_key
|
||
| label 後台顯示名稱
|
||
| group 分類(僅用於後台排版分區)
|
||
| type image = 選一張 UI 元素圖片;color = 選一個色值(C/T 系列,Phase 3)
|
||
| width 建議上傳寬度(px)
|
||
| height 建議上傳高度(px)
|
||
| active 是否已在本階段啟用(Phase 1 僅開 A1/A2/A3 滿版狀態頁)
|
||
|
|
||
| 擴充方式:後續階段把對應部位 active 改 true 並在 App 端對照表補上 view 即可,
|
||
| 後台/下發邏輯不需改動(一律以本表 active=true 的部位為準)。
|
||
|
|
||
*/
|
||
|
||
return [
|
||
'parts' => [
|
||
// === A 系列:滿版 / 大圖背景 ===
|
||
'A1' => ['label' => 'A1 - 頁面跳轉中', 'group' => 'fullscreen', 'type' => 'image', 'width' => 1080, 'height' => 1920, 'active' => true],
|
||
'A2' => ['label' => 'A2 - 機台自檢中', 'group' => 'fullscreen', 'type' => 'image', 'width' => 1080, 'height' => 1920, 'active' => true],
|
||
'A3' => ['label' => 'A3 - 機台異常鎖定', 'group' => 'fullscreen', 'type' => 'image', 'width' => 1080, 'height' => 1920, 'active' => true],
|
||
|
||
// === E 系列:交易結果 ===
|
||
'E1' => ['label' => 'E1 - 交易失敗/客服圖', 'group' => 'transaction', 'type' => 'image', 'width' => 720, 'height' => 1280, 'active' => true],
|
||
|
||
// === P 系列:支付方式按鈕圖(不裁切、保留原比例,width/height=null)===
|
||
'P1' => ['label' => 'P1 - 信用卡支付', 'group' => 'payment', 'type' => 'image', 'width' => null, 'height' => null, 'active' => true],
|
||
'P2' => ['label' => 'P2 - 卡片/電子票證', 'group' => 'payment', 'type' => 'image', 'width' => null, 'height' => null, 'active' => true],
|
||
'P3' => ['label' => 'P3 - 玉山掃碼支付', 'group' => 'payment', 'type' => 'image', 'width' => null, 'height' => null, 'active' => true],
|
||
'P4' => ['label' => 'P4 - 手機支付', 'group' => 'payment', 'type' => 'image', 'width' => null, 'height' => null, 'active' => true],
|
||
'P5' => ['label' => 'P5 - 現金支付', 'group' => 'payment', 'type' => 'image', 'width' => null, 'height' => null, 'active' => true],
|
||
'P6' => ['label' => 'P6 - TapPay 掃碼', 'group' => 'payment', 'type' => 'image', 'width' => null, 'height' => null, 'active' => true],
|
||
|
||
// --- 以下為舊後台既有部位,Phase 2+ 逐步啟用(active=false 時後台不顯示、不下發)---
|
||
'A4' => ['label' => 'A4 - 對話框標頭', 'group' => 'fullscreen', 'type' => 'image', 'width' => 1080, 'height' => 192, 'active' => false],
|
||
'A7' => ['label' => 'A7 - 購買頁廣告底圖', 'group' => 'fullscreen', 'type' => 'image', 'width' => 1080, 'height' => 620, 'active' => false],
|
||
'A8' => ['label' => 'A8 - 來店廣告底圖', 'group' => 'fullscreen', 'type' => 'image', 'width' => 864, 'height' => 648, 'active' => false],
|
||
],
|
||
];
|