Commit Graph
297 Commits
Author SHA1 Message Date
kate522 eac58f07bf feat(orders): polish detail modal layout and visuals
Restructure the order detail modal into status-tinted hero, product
card, info list with copyable order number, multi-item lines, and a
newest-first timeline. Refresh spacing, dark mode, and footer buttons.
2026-07-27 13:54:34 +08:00
kate522 e6eee91eb3 fix(orders): drop secondary "我的余额/会员/积分" link from detail modal
The user center already has a dedicated tab for these; showing the
secondary shortcut inside the order detail modal is redundant noise.
The view-model field is kept for other consumers.
2026-07-27 13:40:23 +08:00
kate522 e47a3958fb feat(orders): redesign detail modal — hero pill, no duplicate close
- Remove bottom "关闭" button so the top-right ✕ is the single dismiss.
- Drop redundant 订单类型 row from modal body (already shown as card chip).
- Add hero strip with status pill + amount; unify dt/dd rows into a
  bordered card; tighten items list and add timeline rail.
- Refresh modal styling: rounded dialog, gradient header, hover-lift
  buttons, mobile-friendly rows.
2026-07-27 13:34:30 +08:00
kate522 a1e35a4499 feat(orders): order detail modal, list actions, use configured prefix
Wire admin payment_order_prefix into order number generation (with 32-char
cap for gateways), make 查看 open a full order-detail modal with
status-aware footer actions, keep type badge top-left only, and right-align
unpaid list actions with countdown on the left.
2026-07-27 12:39:21 +08:00
kate522andClaude Fable 5 723dd180e4 feat(payment): tighten gateways and implement Epay
Keep only balance, Alipay, WeChat, PayPal, Stripe, Epay, and card-pass
channels; remove placeholder aggregators. Add dual-channel Epay gateway
with MD5 notify/return, register cashier methods, and gate card-pass
redeem behind the payment channel switch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-26 12:59:28 +08:00
kate522 53ff99f343 fix(payment): harden payment and refund chains 2026-07-26 02:29:46 +08:00
kate522 a8d99b200b refactor(payment): migrate SDK to yansongda pay 2026-07-26 00:09:38 +08:00
kate522 06d4844c8e fix(ip-geo): fallback free lookup when Amap key platform mismatches 2026-07-25 15:46:36 +08:00
kate522 ac7ff8d4f2 feat(ip-geo): full-chain IP 归属地 on comments, user home, center, post 2026-07-25 14:39:47 +08:00
kate522 9277674da0 fix(orders): restore frontend pay REST and harden order-center client
Add AKSRT\Payment\OrderCenterRest so /shop/frontend/orders/{n}/pay|cancel
always register on rest_api_init; widen order_number route charset; make
order-center.js use credentials, encodeURIComponent, and clearer 404 errors.
2026-07-25 14:12:40 +08:00
kate522 3117081a58 style(orders): polish UC order center cards, tabs, and empty state
Refresh orders.css for embedded user-center layout: segmented status
tabs, stat tiles, card hierarchy, action pills, after-sale list, and
dark mode; light HTML polish for title and empty state.
2026-07-25 13:58:44 +08:00
kate522 354a1072ef feat(orders): embed My Orders inside user center (zibll-style)
Register UC panel tab=orders with full order list/actions UI; route
aksrt_get_orders_page_url and /orders template to profile?tab=orders;
enqueue order assets when the UC orders tab is active.
2026-07-25 13:54:08 +08:00
kate522 3baa8573c9 feat(orders): full-chain My Orders for all product types
Unify front-end order center across shop, content, VIP, recharge,
points, and plate-follow with type filters, stats, and type-aware
cards; keep shop-only fulfillment actions; ensure 权益与消费 entry URL.
2026-07-25 13:33:43 +08:00
kate522 8bc2a934c2 Merge pull request 'fix(rest): build signin URLs from restUrl under plain permalinks' (#289) from worktree-fix-user-card-vip-btn into main
Reviewed-on: CYL/wordpress-theme-aksrt#289
2026-07-25 13:11:38 +08:00
kate522 6db4da32c6 feat(admin): collapsible gateway credential forms on payment page
Hide channel config cards until enabled; open expanded on enable and allow manual collapse via group header.
2026-07-25 13:08:37 +08:00
kate522 3267bee71e fix(payment): wire balance wallet end-to-end when pay_balance_s is on
Opening 余额功能 alone now enables cash-wallet pay (unless 余额支付 is explicitly off). Drop points-as-balance fallback, stop fake method injection, expose real wallet in cashiers, and honor auto_to_balance on recharge fulfill.
2026-07-25 12:46:38 +08:00
kate522 e4905e3088 fix(rest): build signin URLs from restUrl under plain permalinks
credits.js hardcoded siteUrl + /wp-json/aksrt/v1 which 404s when WP uses
plain permalinks (?rest_route=...). Prefer aksrtData.restUrl/apiUrl and
harden header-userbox path join for the same case.
2026-07-25 12:29:03 +08:00
kate522 c8b4d1a851 fix(nav): never drop top-nav 发布 when submit page URL is empty
aksrt_get_new_post_url() returns '' without a page-submit assignment,
which previously skipped the post action and emptied the multi-type
chip. Fall back to post-new.php, keep a last-resort action list, put
radius/jb paint on the toggle, and force chip visibility CSS.
2026-07-25 12:00:07 +08:00
kate522 e194c603cb fix(nav): restore multi-type 发布 chip paint on bare navbar-but
Paint classes (jb-*/but/radius) were on the transparent newadd wrapper,
so the multi-type 发布 toggle rendered invisible outside navbar-but-cluster.
Move them onto .newadd-btns__toggle and style the bare DOM path.
2026-07-25 11:51:47 +08:00
kate522 e98f94bc06 fix(nav): align header user-card VIP CTA with check-in button
Drop navbar-cta/pill radius classes from the dropdown 开通会员 link and
force full-width 6px radius geometry to match the签到 button.
2026-07-25 11:42:13 +08:00
kate522 89b4070614 fix(nav): kill Bootstrap 5 navbar padding so bar matches zibll height
AKSRT loads BS5 (.navbar --bs-navbar-padding-y:.5rem) while zibll uses
BS3 without it; that alone added ~16px. Zero BS navbar pad, keep only
.header 8px 20px (mobile 0 8px), horizontal CTA margins, tighter mobile
logo/toggle row.
2026-07-25 11:33:52 +08:00
kate522 8a6f6feafb fix(nav): align header bar height with zibll main.css
Drop forced 34px CTA chips and container min-height:50 that inflated
or shrank the bar vs zibll. Restore .navbar-but .but to 0.8em / 0.3em
1em / margin 0.4em; keep logo 36px, header pad 8px 20px, fixed reserve 88px.
2026-07-25 11:27:31 +08:00
kate522 ab3d361d46 fix(admin): accept multi-value 发布类型 on header-nav save
header_newposts_types is multi-select but PHP schema used type=select,
so validate() rejected arrays with 422. Use checkbox and allow
select+multiple arrays in SchemaProvider.
2026-07-25 11:13:52 +08:00
kate522 53836ac6b8 fix(vip): join REST query with & under plain permalinks
GET pay/vip/modal?vip_level=1 became rest_route=.../modal?vip_level which
404s. Build rest_route path then append &vip_level= for plain links.
2026-07-25 11:08:15 +08:00
kate522 7daaa03417 fix(auth): use restUrl for modal-login under plain permalinks
Local WP has empty permalink_structure so /wp-json/* 404s on Apache.
modal-auth fell back to /wp-json/aksrt/v1; prefer aksrtData.restUrl
(index.php?rest_route=/aksrt/v1) and join paths correctly.
2026-07-25 11:02:32 +08:00
kate522 d3cae1f1cb fix(nav): stop click ripple from stretching CTA chips
.aksrt-wave was injected into .but without position:absolute, so the
oversized span expanded header publish/VIP buttons on click. Make the
wave absolute, honor .nowave, and skip navbar CTA roots.
2026-07-25 10:58:04 +08:00
kate522 77150afe38 fix(nav): hard-lock CTA chips at 34px for bare navbar-but markup
Live header uses .navbar-form.navbar-but without .navbar-but-cluster;
remove em padding/height:auto/min-height calc that grew chips on press
and override .but.radius padding so publish/VIP stay fixed size.
2026-07-25 10:38:23 +08:00
kate522 4c18910dc4 fix(nav): stop CTA press warp, pin user menu, hide PC hamburger
Lock top-bar button transforms on press; anchor avatar dropdown under
the trigger; show mobile drawer toggle only ≤767 and grid-layout the
mobile header so logo and menu no longer overlap.
2026-07-25 10:31:52 +08:00
kate522 f599cfe3fb Merge pull request 'fix(nav): zero FA vertical-align in top bar for flex centering' (#275) from worktree-fix-top-multifunc-cards into main
Reviewed-on: CYL/wordpress-theme-aksrt#275
2026-07-25 10:21:20 +08:00
kate522 2898922a17 fix(theme): stop sun/moon overlap and restore dark float contrast
Drive toggle glyphs with html.dark/body theme classes only, drop
inline display styles that lost to !important CSS, and give the
float rail a solid surface + brighter ink in dark mode.
2026-07-25 10:18:19 +08:00
kate522 aa339c5a4d fix(nav): zero FA vertical-align in top bar for flex centering 2026-07-24 12:53:15 +08:00
kate522 c72f51987d fix(nav): scope multi-type newadd wrapper without collapsing CTA links 2026-07-24 12:46:30 +08:00
kate522 a9aba6bdd1 fix(nav): win cascade for CTA and icon baseline
Scope multi-type newadd wrapper rules so they cannot collapse single CTA links; re-enqueue nav.css after header-menu-buttons for final zibll alignment.
2026-07-24 12:44:55 +08:00
kate522 4f5430cdba fix(nav): complete zibll top-bar text/icon alignment pass
Rewrite inline nav.css alignment for logo, menu titles, CTA chips, theme toggle (29px), icon-only buttons, and user-href badges so FA glyphs and labels share zibll baselines.
2026-07-24 12:32:34 +08:00
kate522 683506f3a2 fix(nav): finish top-bar icon/text baseline alignment
Center toggle/badge FA icons, normalize CTA icon+label without raw spaces, and extend .but FA5 margin so navbar text/icons match zibll.
2026-07-24 12:24:32 +08:00
kate522 a5fd5105f4 fix(nav): inline top-bar icon/text alignment into nav.css
Bypass @import cache for critical FA centering, CTA baseline, and menu title flex so navbar offsets match zibll after hard refresh.
2026-07-24 12:16:59 +08:00
kate522 f492174297 fix(nav): align navbar text and icon baselines with zibll
Center FA icons in toggle-radius/btn chips, restore menu-item title flex baseline, and match CTA/logo vertical alignment so top bar text and icons no longer drift.
2026-07-24 12:08:09 +08:00
kate522 9aa0bd0755 fix(header): cache-bust frontend CSS modules via filemtime
header-components used fixed AKSRT_VERSION so card-gap fixes never reached browsers; inline gap rules and filemtime enqueue.
2026-07-24 11:48:25 +08:00
kate522 8bad0c1252 fix(header): force 10px seams between homepage icon cards
Harden gutters-5 child padding with higher specificity so homepage-fixed utilities cannot collapse header-slider card gaps.
2026-07-24 11:45:15 +08:00
kate522 e45bfc6eec fix(header): restore gutters-5 gaps on homepage icon cards
Homepage never loaded zibll-utilities (single-post only), so .gutters-5 padding was missing and cards stuck together while other pages looked correct.
2026-07-24 11:42:13 +08:00
kate522 d1f1cab6c8 fix(header): restore horizontal gutters on header-slider-card container 2026-07-24 11:34:34 +08:00
kate522 b8d6f70af3 fix(header): stop homepage-only pull of header-slider-container
Align nav-fixed geometry with zibll: only .slide-header pulls under the bar; restore card container gutters so home overlay cards match other page types.
2026-07-24 11:32:31 +08:00
kate522 a25feb4161 fix(header): align header-slider DOM/height with zibll demo
Match demo.zibll.com slide markup (a/span wrap, data-* attrs, --pc/--m height on .new-swiper), keyword chip classes, and height CSS so the top multifunc block renders like the official demo.
2026-07-24 11:02:42 +08:00
kate522 96bd9d949d fix(header): full zibll 1:1 for top multifunc search/cards/admin
Wire hero search through aksrt_get_search_box, device-gated cards/blur (zib_m_pc_is_show), expanded admin schema, and keyword/type UI styles matching zibll header-slider.
2026-07-24 10:43:29 +08:00
kate522 e35011f2c0 fix(header): 1:1 zibll overlay icon cards for top multifunc component
Rebuild header-slider card DOM/CSS against zib_header_slide + zib_icon_cover_card so shared/individual backgrounds, flex gutters, and badge icons match the reference theme.
2026-07-24 10:30:22 +08:00
kate522 6ce6ce44e4 fix(layout): stop content-layout width:100% from covering the sidebar
Zibll dual-column relies on margin carving out .content-layout while width
stays auto. Under border-box, width:100% + margin-right kept the border-box
at full container width so .sidebar (margin-left:-311px) sat under the main
column. Drop the forced 100% width, pin layout 2/3 gutters and sidebar
negative margins to Zibll's 311px (+ CSS var fallback).
2026-07-24 09:48:43 +08:00
kate522 7d33097209 fix(layout): restore Zibll float dual-column so content no longer overlaps sidebar
Align main shells to main.container > .content-wrap + .sidebar siblings, drop
content-shell padding on dual-column hosts, and remove route flex overrides that
disabled the negative-margin sidebar math.
2026-07-22 21:05:12 +08:00
kate522 79bc4159f5 fix(admin): join REST URLs correctly under plain permalinks
When permalink_structure is empty, rest_url() is
index.php?rest_route=/aksrt/v1. Naive base+endpoint produced
rest_route=/aksrt/v1/banners?kind=banner (query inside route value),
so WP returned rest_no_route and Banner/Hero managers 404'd.
Fold path into rest_route and append extra params as siblings.
2026-07-22 20:32:32 +08:00
kate522 5a6f4e427f fix(nav): pin right actions to trailing edge of top bar
Desktop entries were stacking after the logo because navbar-form.navbar-right
lost Bootstrap 3 float:right. Use flex:1 on the primary menu and
margin-left:auto when no menu is present so publish/user/search sit right.
2026-07-22 20:17:51 +08:00
kate522 c5c238bb63 fix(nav): stop Bootstrap .collapse from hiding desktop top bar
Markup used `collapse navbar-collapse`; BS5 hides `.collapse:not(.show)`.
Drop the `.collapse` class in the header shell and force desktop
`.navbar-collapse` to display:flex so menu/CTA/user/search stay visible.
2026-07-22 20:08:54 +08:00