From 2c39e6d7da09f0b803d5cc6ee0318f709f37fd7f Mon Sep 17 00:00:00 2001 From: obroccolio Date: Sat, 8 Aug 2026 04:26:44 +0800 Subject: [PATCH] fix: unify product detail back button with top mask style --- dist/app-origin.wxss | 2 +- dist/common.js | 2 +- dist/common.wxss | 2 +- dist/pages/designList/index.js | 2 +- dist/pages/designList/index.wxss | 2 +- dist/pages/diy/index.js | 2 +- dist/pages/orderDetail/index.js | 2 +- dist/pages/orderDetail/index.wxss | 2 +- dist/pages/orders/index.wxss | 2 +- dist/pages/product/index.js | 2 +- dist/pages/product/index.wxss | 2 +- dist/pages/service/index.js | 2 +- dist/pages/service/index.wxss | 2 +- dist/pages/shop/detail/index.js | 2 +- dist/pages/shop/detail/index.wxss | 2 +- dist/pages/shop/index.wxss | 2 +- dist/pages/userDatabase/index.wxss | 2 +- src/app.scss | 23 ++++++++++++++++++++--- src/components/ScrollTopMask/index.scss | 1 - src/components/ScrollTopMask/index.tsx | 2 ++ src/pages/designList/index.scss | 19 +++++++------------ src/pages/designList/index.tsx | 1 - src/pages/diy/index.tsx | 2 +- src/pages/orderDetail/index.scss | 5 ----- src/pages/orderDetail/index.tsx | 6 ++---- src/pages/orders/index.scss | 7 ++++--- src/pages/product/index.scss | 9 +++++---- src/pages/product/index.tsx | 5 +---- src/pages/service/index.scss | 2 +- src/pages/service/index.tsx | 1 - src/pages/settings/index.tsx | 1 + src/pages/shop/detail/index.scss | 11 ++++++----- src/pages/shop/detail/index.tsx | 2 +- src/pages/shop/index.scss | 8 ++++---- src/pages/userDatabase/index.scss | 7 ++++--- 35 files changed, 76 insertions(+), 70 deletions(-) diff --git a/dist/app-origin.wxss b/dist/app-origin.wxss index cb08155..ebaa9bb 100644 --- a/dist/app-origin.wxss +++ b/dist/app-origin.wxss @@ -1 +1 @@ -.theme-light{background-color:var(--bg-page,#fff);-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh}.theme-dark{background-color:var(--bg-page,#191919);-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh}.theme-light{--bg-page:#faf7f2;--bg-card:#fff;--bg-muted:#f3eee7;--bg-input:#f5f1eb;--text-primary:#2e2622;--text-secondary:#8a7e76;--text-muted:#b3a89e;--accent-primary:#d96c6a;--accent-primary-strong:#c75b59;--accent-primary-soft:#f6e0dc;--accent-secondary:#6c7bdb;--accent-secondary-soft:rgba(108,123,219,.12);--success:#4fa477;--success-soft:rgba(79,164,119,.14);--warning:#d99a4e;--warning-soft:rgba(217,154,78,.14);--danger:#d85d5d;--danger-soft:rgba(216,93,93,.14);--border:#ede5dc;--border-strong:#e0d5c8;--glass:hsla(0,0%,100%,.72);--glass-line:hsla(0,0%,100%,.55);--shadow-card:0 8rpx 24rpx rgba(46,38,34,.08);--shadow-elevated:0 12rpx 40rpx rgba(46,38,34,.12)}.theme-dark{--bg-page:#191919;--bg-card:#23201d;--bg-muted:#2b2622;--bg-input:#2b2622;--text-primary:#f5efe8;--text-secondary:#b3a79c;--text-muted:#82766c;--accent-primary:#f09198;--accent-primary-strong:#ffa7ad;--accent-primary-soft:rgba(240,145,152,.14);--accent-secondary:#8e97e8;--accent-secondary-soft:rgba(142,151,232,.14);--success:#67c58e;--success-soft:rgba(103,197,142,.16);--warning:#e0ad68;--warning-soft:hsla(35,66%,64%,.16);--danger:#ef7a7a;--danger-soft:hsla(0,79%,71%,.16);--border:#37312c;--border-strong:#463e37;--glass:rgba(25,25,25,.72);--glass-line:hsla(0,0%,100%,.14);--shadow-card:0 8rpx 24rpx rgba(0,0,0,.32);--shadow-elevated:0 12rpx 40rpx rgba(0,0,0,.48)}page{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Noto Sans SC,Microsoft YaHei,Segoe UI,sans-serif}.surface-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card)}.container{padding:48rpx}.flex{display:-webkit-flex;display:-ms-flexbox;display:flex}.flex-center{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.flex-between{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between}.flex-column{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.text-center{text-align:center}.mt-10{margin-top:20rpx}.mt-20{margin-top:40rpx}.mb-10{margin-bottom:20rpx}.mb-20{margin-bottom:40rpx}.btn-primary{background:var(--accent-primary);border-radius:999rpx;color:#fff}.btn-secondary{background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:999rpx;color:var(--text-primary)}.btn-ghost{background:transparent;color:var(--accent-primary)}.btn-danger{background:var(--danger);border-radius:999rpx;color:#fff}.page-title{color:var(--text-primary);display:block;font-size:80rpx;font-weight:800}.section-title{color:var(--text-primary);display:block;font-size:72rpx;font-weight:700;margin-bottom:48rpx}.badge{border-radius:100rpx;display:inline-block;font-size:44rpx;font-weight:500;padding:16rpx 40rpx}.badge-pink{background:var(--accent-primary-soft);color:var(--accent-primary)}.badge-blue{background:var(--accent-secondary-soft);color:var(--accent-secondary)}.badge-green{background:var(--success-soft);color:var(--success)}.badge-warning{background:var(--warning-soft);color:var(--warning)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-gray{background:var(--bg-muted);color:var(--text-secondary)}.safe-bottom{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.safe-bottom-placeholder{height:400rpx}.page-header{padding-top:calc(env(safe-area-inset-top, 20rpx) + 96rpx)}.back-btn,.edit-back{display:inline-block}.modal-overlay{-ms-flex-align:end;-ms-flex-pack:center;-webkit-align-items:flex-end;align-items:flex-end;background:rgba(0,0,0,.5);bottom:0;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:600}.addr-picker-sheet{background:var(--bg-card);border-radius:48rpx 48rpx 0 0;border-top:1rpx solid var(--border);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;max-height:70vh;padding:48rpx 48rpx calc(48rpx + env(safe-area-inset-bottom));width:100%}.system-theme-detector{height:1rpx;left:-9999rpx;opacity:0;pointer-events:none;position:fixed;top:0;width:1rpx}@media (prefers-color-scheme:dark){.system-theme-detector{opacity:1}} \ No newline at end of file +.theme-light{background-color:var(--bg-page,#fff);-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh}.theme-dark{background-color:var(--bg-page,#191919);-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh}.theme-light{--bg-page:#faf7f2;--bg-card:#fff;--bg-muted:#f3eee7;--bg-input:#f5f1eb;--text-primary:#2e2622;--text-secondary:#8a7e76;--text-muted:#b3a89e;--accent-primary:#d96c6a;--accent-primary-strong:#c75b59;--accent-primary-soft:#f6e0dc;--accent-secondary:#6c7bdb;--accent-secondary-soft:rgba(108,123,219,.12);--success:#4fa477;--success-soft:rgba(79,164,119,.14);--warning:#d99a4e;--warning-soft:rgba(217,154,78,.14);--danger:#d85d5d;--danger-soft:rgba(216,93,93,.14);--border:#ede5dc;--border-strong:#e0d5c8;--glass:hsla(0,0%,100%,.72);--glass-line:hsla(0,0%,100%,.55);--shadow-card:0 8rpx 24rpx rgba(46,38,34,.08);--shadow-elevated:0 12rpx 40rpx rgba(46,38,34,.12)}.theme-dark{--bg-page:#191919;--bg-card:#23201d;--bg-muted:#2b2622;--bg-input:#2b2622;--text-primary:#f5efe8;--text-secondary:#b3a79c;--text-muted:#82766c;--accent-primary:#f09198;--accent-primary-strong:#ffa7ad;--accent-primary-soft:rgba(240,145,152,.14);--accent-secondary:#8e97e8;--accent-secondary-soft:rgba(142,151,232,.14);--success:#67c58e;--success-soft:rgba(103,197,142,.16);--warning:#e0ad68;--warning-soft:hsla(35,66%,64%,.16);--danger:#ef7a7a;--danger-soft:hsla(0,79%,71%,.16);--border:#37312c;--border-strong:#463e37;--glass:rgba(25,25,25,.72);--glass-line:hsla(0,0%,100%,.14);--shadow-card:0 8rpx 24rpx rgba(0,0,0,.32);--shadow-elevated:0 12rpx 40rpx rgba(0,0,0,.48)}page{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Noto Sans SC,Microsoft YaHei,Segoe UI,sans-serif}.surface-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card)}.container{padding:48rpx}.flex{display:-webkit-flex;display:-ms-flexbox;display:flex}.flex-center{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.flex-between{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between}.flex-column{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.text-center{text-align:center}.mt-10{margin-top:20rpx}.mt-20{margin-top:40rpx}.mb-10{margin-bottom:20rpx}.mb-20{margin-bottom:40rpx}.btn-primary{background:var(--accent-primary);border-radius:999rpx;color:#fff}.btn-secondary{background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:999rpx;color:var(--text-primary)}.btn-ghost{background:transparent;color:var(--accent-primary)}.btn-danger{background:var(--danger);border-radius:999rpx;color:#fff}.page-title{color:var(--text-primary);display:block;font-size:80rpx;font-weight:800}.section-title{color:var(--text-primary);display:block;font-size:72rpx;font-weight:700;margin-bottom:48rpx}.badge{border-radius:100rpx;display:inline-block;font-size:44rpx;font-weight:500;padding:16rpx 40rpx}.badge-pink{background:var(--accent-primary-soft);color:var(--accent-primary)}.badge-blue{background:var(--accent-secondary-soft);color:var(--accent-secondary)}.badge-green{background:var(--success-soft);color:var(--success)}.badge-warning{background:var(--warning-soft);color:var(--warning)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-gray{background:var(--bg-muted);color:var(--text-secondary)}.safe-bottom{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.safe-bottom-placeholder{height:400rpx}.page-header{padding-top:calc(env(safe-area-inset-top, 20rpx) + 96rpx)}.back-btn,.edit-back,.shop-back-btn{-ms-flex-align:center!important;-ms-flex-pack:center!important;-webkit-align-items:center!important;align-items:center!important;backdrop-filter:blur(32rpx) saturate(1.2)!important;-webkit-backdrop-filter:blur(32rpx) saturate(1.2)!important;background:hsla(0,0%,100%,.55)!important;border:1rpx solid hsla(0,0%,100%,.55)!important;border-radius:50%!important;-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.18),0 4rpx 12rpx rgba(0,0,0,.08)!important;box-shadow:0 12rpx 40rpx rgba(0,0,0,.18),0 4rpx 12rpx rgba(0,0,0,.08)!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-justify-content:center!important;justify-content:center!important}.theme-dark .back-btn,.theme-dark .edit-back,.theme-dark .shop-back-btn{background:rgba(25,25,25,.55)!important;border-color:hsla(0,0%,100%,.14)!important;-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3)!important;box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3)!important}.modal-overlay{-ms-flex-align:end;-ms-flex-pack:center;-webkit-align-items:flex-end;align-items:flex-end;background:rgba(0,0,0,.5);bottom:0;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:600}.addr-picker-sheet{background:var(--bg-card);border-radius:48rpx 48rpx 0 0;border-top:1rpx solid var(--border);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;max-height:70vh;padding:48rpx 48rpx calc(48rpx + env(safe-area-inset-bottom));width:100%}.system-theme-detector{height:1rpx;left:-9999rpx;opacity:0;pointer-events:none;position:fixed;top:0;width:1rpx}@media (prefers-color-scheme:dark){.system-theme-detector{opacity:1}} \ No newline at end of file diff --git a/dist/common.js b/dist/common.js index b27e377..fba9433 100644 --- a/dist/common.js +++ b/dist/common.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[76],{9513:function(n,t,e){e.d(t,{A:function(){return i}});var r=e(118),o=e(4848);function i(n){var t=n.children,e=n.className,i=n.style;return(0,o.jsx)(r.Ss,{className:"bottom-action-bar ".concat(e||""),style:i,children:t})}},7723:function(n,t,e){e.d(t,{A:function(){return f}});var r=e(5544),o=e(758),i=e.n(o),u=e(6540),c=e(118),a=e(6764),s=e(9703),l=e(8199),d=e(4848);function f(n){var t=(0,u.useState)("checking"),e=(0,r.A)(t,2),o=e[0],f=e[1],g=(0,u.useCallback)(function(){var n=!1;return(0,a.d)().then(function(t){n||f(t?"ok":"denied")}).catch(function(){n||f("denied")}),function(){n=!0}},[]);return(0,u.useEffect)(function(){var n=g(),t=function(){g()},e=function(){g()};return i().eventCenter.on("tabBarChange",t),i().eventCenter.on(s.Wo,e),i().eventCenter.on("authStateChanged",t),function(){n(),i().eventCenter.off("tabBarChange",t),i().eventCenter.off(s.Wo,e),i().eventCenter.off("authStateChanged",t)}},[g]),"checking"===o?(0,d.jsx)(c.Ss,{className:"login-guard",children:(0,d.jsxs)(c.Ss,{className:"login-guard-inner",children:[(0,d.jsx)(c._V,{className:"login-guard-icon",src:(0,l.uq)("/icon/\u8bbe\u7f6e.png"),mode:"aspectFit"}),(0,d.jsx)(c.EY,{className:"login-guard-title",children:"\u6821\u9a8c\u767b\u5f55\u72b6\u6001"})]})}):"denied"===o?(0,d.jsx)(c.Ss,{className:"login-guard",children:(0,d.jsxs)(c.Ss,{className:"login-guard-inner",children:[(0,d.jsx)(c._V,{className:"login-guard-icon",src:(0,l.uq)("/icon/\u4e2a\u4eba.png"),mode:"aspectFit"}),(0,d.jsx)(c.EY,{className:"login-guard-title",children:"\u8bf7\u5148\u767b\u5f55"}),(0,d.jsx)(c.EY,{className:"login-guard-desc",children:"\u767b\u5f55\u540e\u67e5\u770b\u60a8\u7684\u4e13\u5c5e\u5185\u5bb9"}),(0,d.jsx)(c.Ss,{className:"btn-primary login-guard-btn",onTap:function(){return i().switchTab({url:"/pages/profile/index"})},children:(0,d.jsx)(c.EY,{children:"\u53bb\u767b\u5f55"})})]})}):n.children}},3053:function(n,t,e){e.d(t,{A:function(){return f}});var r=e(5544),o=e(118),i=e(758),u=e.n(i),c=e(6540),a=e(9201);function s(n){var t=n.viewportBottom,e=n.scrollTop,r=n.statusBarHeight,o=Number.isFinite(t)?t:0,i=Number.isFinite(e)?e:0,u=Number.isFinite(r)?r:0;return Math.max(0,o+i-u-8)}function l(n){var t=n.scrollTop,e=n.startY,r=n.rangeY,o=Number.isFinite(t)?t:0,i=Math.max(0,Number.isFinite(e)?e:0),u=Math.max(1,Number.isFinite(r)?r:1);return o<=i?0:Math.min(1,(o-i)/u)}var d=e(4848);function f(n){var t=n.title,e=n.targetSelector,i=void 0===e?".page-header":e,f=n.showBack,g=void 0!==f&&f,h=(0,a.c)(),p=(0,c.useState)(0),m=(0,r.A)(p,2),v=m[0],S=m[1],y=(0,c.useMemo)(function(){return{startY:Math.max(0,h.headerPaddingTop-h.statusBarHeight),rangeY:Math.max(48,.45*h.headerPaddingTop)}},[h.headerPaddingTop,h.statusBarHeight]),k=(0,c.useRef)(y),b=(0,c.useRef)(null),A=(0,c.useRef)(0),T=(0,c.useCallback)(function(n){A.current=n,null===b.current&&(b.current=setTimeout(function(){b.current=null;var n=k.current,t=n.startY,e=n.rangeY;S(l({scrollTop:A.current,startY:t,rangeY:e}))},16))},[]);return(0,c.useEffect)(function(){var n=!1,t=null;k.current=y;var e=function(){n||u().createSelectorQuery().select(i).boundingClientRect(function(t){if(!n){if(!t||Array.isArray(t)||"number"!==typeof t.bottom||"number"!==typeof t.height)return k.current=y,void T(A.current);var e=s({viewportBottom:t.bottom,scrollTop:A.current,statusBarHeight:h.statusBarHeight}),r=Math.max(32,.7*t.height);k.current={startY:e,rangeY:r},T(A.current)}}).exec()};return u().nextTick(function(){n||(t=setTimeout(e,80))}),function(){n=!0,null!==t&&clearTimeout(t),null!==b.current&&clearTimeout(b.current),b.current=null}},[T,y,i]),u().usePageScroll(function(n){T(n.scrollTop)}),(0,d.jsxs)(o.Ss,{className:"scroll-top-mask",style:{height:"".concat(Math.max(h.menuButtonTop+h.menuButtonHeight+18,h.statusBarHeight+52)+24,"px"),opacity:v},children:[(0,d.jsx)(o.Ss,{className:"scroll-top-blur scroll-top-blur-mid"}),(0,d.jsx)(o.Ss,{className:"scroll-top-blur scroll-top-blur-soft"}),(0,d.jsx)(o.Ss,{className:"scroll-top-gradient"}),g&&(0,d.jsx)(o.Ss,{className:"scroll-top-back",style:{top:"".concat(h.menuButtonTop,"px")},onTap:function(){return u().navigateBack()},children:(0,d.jsx)(o.EY,{className:"scroll-top-back-arrow",children:"\u2190"})}),(0,d.jsx)(o.EY,{className:"scroll-top-title",style:{opacity:Math.max(0,Math.min(1,(v-.5)/.5))},children:t})]})}},9674:function(n,t,e){e.d(t,{A:function(){return u}});var r=e(118),o=e(9703),i=e(4848);function u(n){var t=n.darkTop,e=void 0!==t&&t,u=(0,o.wR)(),c=u.resolvedTheme,a="dark"===c||e,s=a?"#191919":"#faf7f2",l=a?"#ffffff":"#000000";return(0,i.jsx)(r.tf,{backgroundColor:s,backgroundColorTop:s,backgroundColorBottom:s,backgroundTextStyle:a?"light":"dark",rootBackgroundColor:s,children:(0,i.jsx)(r.yk,{frontColor:l,backgroundColor:s})})}},9703:function(n,t,e){e.d(t,{NP:function(){return g},Wo:function(){return f},wR:function(){return h}});var r=e(5544),o=e(6540),i=e(758),u=e.n(i),c=e(118),a=e(8594),s=e(6606),l=e(4848),d=(0,o.createContext)({theme:"auto",resolvedTheme:"light",toggleTheme:function(){},setTheme:function(){}}),f="themeChange";function g(n){var t=n.children,e=(0,o.useState)((0,a.O4)()),g=(0,r.A)(e,2),h=g[0],p=g[1],m=(0,o.useState)((0,a.eW)((0,a.O4)())),v=(0,r.A)(m,2),S=v[0],y=v[1],k=(0,o.useCallback)(function(n){y((0,a.eW)(n))},[]),b=(0,o.useCallback)(function(n){(0,a.Rq)(n),"auto"===(0,a.O4)()&&y(n)},[]),A=(0,o.useCallback)(function(){try{var n=u().getAppBaseInfo();b("dark"===n.theme?"dark":"light")}catch(n){}try{u().createSelectorQuery().select(".system-theme-detector").fields({computedStyle:["opacity"]}).exec(function(n){var t=n&&n[0]&&n[0].computedStyle&&n[0].computedStyle.opacity;b("1"===t?"dark":"light")})}catch(n){}},[b]),T=(0,o.useCallback)(function(n){(0,a.F0)(n),p(n),"auto"===n?A():k(n)},[A,k]),w=(0,o.useCallback)(function(){var n="light"===S?"dark":"light";T(n)},[S,T]);return(0,o.useEffect)(function(){A()},[A]),(0,o.useEffect)(function(){var n,t=function(n){!n||"dark"!==n.theme&&"light"!==n.theme||b(n.theme)},e=u();return null===(n=e.onThemeChange)||void 0===n||n.call(e,t),function(){var n;null===(n=e.offThemeChange)||void 0===n||n.call(e,t)}},[b]),(0,o.useEffect)(function(){u().eventCenter.trigger(f,S)},[S]),(0,o.useEffect)(function(){(0,s.G)(S)},[S]),(0,i.useDidShow)(function(){"auto"===h&&A()}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.Ss,{className:"system-theme-detector"}),(0,l.jsx)(d.Provider,{value:{theme:h,resolvedTheme:S,toggleTheme:w,setTheme:T},children:t})]})}function h(){return(0,o.useContext)(d)}},9201:function(n,t,e){e.d(t,{c:function(){return a}});var r=e(5544),o=e(6540),i=e(758),u=e.n(i),c=null;function a(){var n=(0,o.useState)(null!==c&&void 0!==c?c:{statusBarHeight:20,menuButtonTop:26,menuButtonHeight:32,capsuleRight:368,safeInsetTop:20,safeInsetBottom:0,headerPaddingTop:66,backBtnPaddingTop:20}),t=(0,r.A)(n,2),e=t[0],i=t[1];return(0,o.useEffect)(function(){if(c)i(c);else try{var n,t,e,r,o,a,s,l,d=u().getSystemInfoSync(),f=u().getMenuButtonBoundingClientRect(),g=d.statusBarHeight||20,h=null!==(n=f.top)&&void 0!==n?n:g+4,p=null!==(t=f.height)&&void 0!==t?t:32,m=null!==(e=f.right)&&void 0!==e?e:d.windowWidth-7,v=null!==(r=null===(o=d.safeArea)||void 0===o?void 0:o.top)&&void 0!==r?r:g,S=null!==(a=d.safeAreaInsetBottom)&&void 0!==a?a:d.screenHeight-(null!==(s=null===(l=d.safeArea)||void 0===l?void 0:l.bottom)&&void 0!==s?s:d.screenHeight),y=Math.max(h+p+6,g+44),k=Math.max(g,h-4),b={statusBarHeight:g,menuButtonTop:h,menuButtonHeight:p,capsuleRight:m,safeInsetTop:v,safeInsetBottom:S,headerPaddingTop:y,backBtnPaddingTop:k};c=b,i(b)}catch(n){}},[]),e}},5414:function(n,t,e){e.d(t,{l:function(){return c}});var r=e(6540),o=e(758),i=e.n(o),u=e(6606);function c(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.mode,c=void 0===e?"auto":e,a=(0,r.useCallback)(function(){var t="dark"===c||"auto"===c&&"light"===n,e=t?"#000000":"#ffffff",r=t?"#faf7f2":"#191919";i().setNavigationBarColor({frontColor:e,backgroundColor:r}),(0,u.G)(n,r)},[c,n]);(0,r.useEffect)(a,[a]),(0,o.useDidShow)(a)}},6295:function(n,t,e){e.d(t,{gf:function(){return i.gf},iD:function(){return u},jp:function(){return d},r7:function(){return a},ri:function(){return l}});var r=e(1212),o=e(467),i=e(3246);function u(n){return c.apply(this,arguments)}function c(){return c=(0,o.A)((0,r.A)().m(function n(t){var e;return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.n=1,i.Ay.post("/api/auth/login",{code:t},{auth:!1});case 1:return e=n.v,null!==e&&void 0!==e&&e.accessToken&&(0,i.WG)(e.accessToken),n.a(2,e)}},n)})),c.apply(this,arguments)}function a(n){return s.apply(this,arguments)}function s(){return s=(0,o.A)((0,r.A)().m(function n(t){return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.a(2,i.Ay.patch("/api/users/me",t))}},n)})),s.apply(this,arguments)}function l(){(0,i.L)()}function d(){return f.apply(this,arguments)}function f(){return f=(0,o.A)((0,r.A)().m(function n(){return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.a(2,i.Ay.get("/api/users/me"))}},n)})),f.apply(this,arguments)}},8199:function(n,t,e){e.d(t,{uq:function(){return o}});var r="https://wordcloudwechat.oss-cn-hangzhou.aliyuncs.com";function o(n){if(!n)return"";if(/^(https?:|wxfile:|data:)/i.test(n))return n;if(!r)return n;var t=r.replace(/\/+$/,"");if(!n.startsWith("/img/"))return n;var e=n.startsWith("/")?n:"/".concat(n);return"".concat(t).concat(e)}},6764:function(n,t,e){e.d(t,{d:function(){return S},m:function(){return h}});var r=e(1212),o=e(467),i=e(2284),u=e(758),c=e.n(u),a=e(6295),s=e(8594),l="smart_auth_verified",d=18e5,f=null,g=null;function h(){f=null,g=null;try{c().removeStorageSync(l)}catch(n){}}function p(n){var t=f||function(){try{var n=c().getStorageSync(l);return n&&"object"===(0,i.A)(n)?n:null}catch(n){return null}}();return t&&t.openid===n?Date.now()-t.at>d?null:(f=t,t.ok):null}function m(n,t){var e={openid:n,ok:t,at:Date.now()};f=e;try{c().setStorageSync(l,e)}catch(n){}}function v(){var n=(0,s.Q4)();return!(null===n||void 0===n||!n.openid)&&!(0,s.Ic)(n.openid)&&!!n.accessToken&&!!(0,a.gf)()}function S(){return y.apply(this,arguments)}function y(){return y=(0,o.A)((0,r.A)().m(function n(){var t,e;return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:if(t=(0,s.Q4)(),null!==t&&void 0!==t&&t.openid){n.n=1;break}return console.log("[AuthGuard] \u65e0\u672c\u5730\u7528\u6237\uff0c\u5224\u5b9a\u672a\u767b\u5f55"),n.a(2,!1);case 1:if(console.log("[AuthGuard] \u672c\u5730\u7528\u6237 openid=",t.openid),!(0,s.Ic)(t.openid)){n.n=2;break}return(0,s.Hf)(),(0,a.ri)(),h(),n.a(2,!1);case 2:if(e=p(t.openid),null===e){n.n=3;break}return console.log("[AuthGuard] \u547d\u4e2d\u672c\u5730\u7f13\u5b58 ok=",e),n.a(2,e);case 3:return g||(g=(0,a.jp)().then(function(n){console.log("[AuthGuard] getMe \u8fd4\u56de:",JSON.stringify(n));var e=!!n&&!!n.id&&n.openid===t.openid;return console.log("[AuthGuard] \u4e00\u81f4\u6027=",e),e?(m(t.openid,!0),!0):((0,s.Hf)(),(0,a.ri)(),h(),!1)}).catch(function(n){return console.error("[AuthGuard] getMe \u5931\u8d25\uff0c\u8d70\u672c\u5730\u4f1a\u8bdd\u515c\u5e95:",n),v()}).finally(function(){g=null})),n.a(2,g)}},n)})),y.apply(this,arguments)}},5234:function(n,t,e){e.d(t,{QE:function(){return l},R6:function(){return c},rj:function(){return s},y9:function(){return a},zv:function(){return u}});var r=e(9379),o=e(8199),i=[{id:"notebook-small",name:"\u5fae\u96d5\u7b14\u8bb0\u672c\uff08\u5c0f\uff09",desc:"\u4fbf\u643a\u968f\u884c\uff0c\u8bb0\u5f55\u70b9\u6ef4",icon:"/icon/\u4e66\u672c.png",iconImg:"/icon/\u4e66\u672c.png",price:12,originalPrice:18,leadTime:"3-5\u4e2a\u5de5\u4f5c\u65e5",description:"\u7cbe\u9009\u4f18\u8d28\u7eb8\u5f20\uff0c\u5c01\u9762\u91c7\u7528\u9ad8\u6863PU\u6750\u8d28\uff0c\u624b\u611f\u7ec6\u817b\u3002\u5185\u9875\u53ef\u5b9a\u5236\u6a2a\u7ebf\u3001\u65b9\u683c\u6216\u7a7a\u767d\u4e09\u79cd\u7248\u5f0f\u3002\u6fc0\u5149\u5fae\u96d5\u5de5\u827a\u5c06\u540d\u5b57\u6216\u56fe\u6848\u7cbe\u51c6\u523b\u5370\u5728\u5c01\u9762\uff0c\u6c38\u4e0d\u892a\u8272\u3002\u5c0f\u5de7\u8f7b\u4fbf\uff0c\u9002\u5408\u968f\u8eab\u643a\u5e26\uff0c\u65e0\u8bba\u662f\u8bfe\u5802\u7b14\u8bb0\u8fd8\u662f\u65e5\u5e38\u5907\u5fd8\uff0c\u90fd\u662f\u4f60\u7684\u4e13\u5c5e\u4f34\u4fa3\u3002",subtitle:"\u638c\u5fc3\u95f4\u7684\u4e13\u5c5e\u5370\u8bb0 \xb7 \u6fc0\u5149\u5fae\u96d5 \xb7 \u4e09\u8272\u5185\u9875\u53ef\u9009",tone:[28,22,18],story:"\u7075\u611f\u6e90\u81ea\u624b\u8d26\u6587\u5316\u4e2d\u5bf9\u4e66\u5199\u4eea\u5f0f\u611f\u7684\u8ffd\u6c42\u3002\u6211\u4eec\u76f8\u4fe1\uff0c\u5728\u6570\u5b57\u6d2a\u6d41\u7684\u65f6\u4ee3\uff0c\u7eb8\u7b14\u7684\u6e29\u5ea6\u4f9d\u7136\u4e0d\u53ef\u66ff\u4ee3\u3002\u5f53\u6fc0\u5149\u5fae\u96d5\u5728PU\u5c01\u9762\u4e0a\u7559\u4e0b\u4e13\u5c5e\u5370\u8bb0\uff0c\u6bcf\u4e00\u7b14\u4e66\u5199\u90fd\u5728\u4e0e\u8fc7\u53bb\u5bf9\u8bdd\u3002\u7b14\u8bb0\u672c\u5c0f\u5de7\u5230\u8db3\u4ee5\u653e\u5165\u4efb\u4f55\u53e3\u888b\uff0c\u5374\u627f\u8f7d\u7740\u72ec\u4e00\u65e0\u4e8c\u7684\u8bb0\u5fc6\u3002",scene:"\u8bfe\u5802\u7b14\u8bb0\u3001\u65e5\u5e38\u5907\u5fd8\u3001\u65c5\u884c\u624b\u8d26\u3001\u5fc3\u60c5\u65e5\u8bb0\u3002\u9002\u5408\u9001\u7ed9\u540c\u5b66\u3001\u4f34\u4fa3\u6216\u4f5c\u4e3a\u6d3b\u52a8\u4f34\u624b\u793c\u2014\u2014\u8ba9\u6bcf\u4e00\u4e2a\u4eba\u90fd\u62e5\u6709\u523b\u7740\u81ea\u5df1\u540d\u5b57\u7684\u4e13\u5c5e\u7b14\u8bb0\u672c\u3002",tags:["\u4f34\u624b\u793c","\u5b66\u751f","\u624b\u8d26","\u4fbf\u643a","\u6fc0\u5149\u5fae\u96d5"],specs:[["\u5c3a\u5bf8","105 \xd7 148mm\uff08A6\uff09"],["\u9875\u6570","120\u5f20/240\u9875"],["\u5185\u9875\u7248\u5f0f","\u6a2a\u7ebf / \u65b9\u683c / \u7a7a\u767d \u53ef\u9009"],["\u5c01\u9762\u6750\u8d28","\u9ad8\u6863PU\u76ae\u9769"],["\u96d5\u523b\u5de5\u827a","CO2 \u6fc0\u5149\u5fae\u96d5\uff08\u6c38\u4e0d\u892a\u8272\uff09"],["\u9002\u7528\u573a\u666f","\u8bfe\u5802\u3001\u65c5\u884c\u3001\u65e5\u5e38\u5907\u5fd8"]],images:["/img/book_small/The1.jpg"],mask:{shape:"rect",width:300,height:420,borderRadius:8}},{id:"notebook-large",name:"\u5fae\u96d5\u7b14\u8bb0\u672c\uff08\u5927\uff09",desc:"\u5927\u5f00\u672c\uff0c\u66f4\u591a\u521b\u4f5c\u7a7a\u95f4",icon:"/icon/\u4e66\u672c_\u5927.png",iconImg:"/icon/\u4e66\u672c_\u5927.png",price:45,originalPrice:58,leadTime:"3-5\u4e2a\u5de5\u4f5c\u65e5",description:"A4\u5c3a\u5bf8\u5927\u5f00\u672c\uff0c180\xb0\u5e73\u644a\u8bbe\u8ba1\uff0c\u4e66\u5199\u66f4\u81ea\u7531\u3002\u5c01\u9762\u53ef\u9009\u771f\u76ae\u3001\u4eff\u5e03\u7eb9\u6216\u78e8\u7802\u6750\u8d28\uff0c\u6fc0\u5149\u5fae\u96d5\u533a\u57df\u66f4\u5927\uff0c\u9002\u5408\u5448\u73b0\u5168\u73ed\u540d\u5b57\u3001\u56e2\u961f\u53e3\u53f7\u6216\u516c\u53f8Logo\u7b49\u5927\u7bc7\u5e45\u5185\u5bb9\u3002\u662f\u6bd5\u4e1a\u7eaa\u5ff5\u3001\u4f01\u4e1a\u5e74\u4f1a\u793c\u54c1\u7684\u9996\u9009\u3002",subtitle:"\u5927\u7bc7\u5e45\u5b9a\u5236\u9996\u9009 \xb7 180\xb0\u5e73\u644a \xb7 \u6bd5\u4e1a/\u56e2\u5efa\u5fc5\u5907",tone:[35,28,22],story:"\u6bcf\u4e00\u6b21\u544a\u522b\u90fd\u503c\u5f97\u88ab\u90d1\u91cd\u4e66\u5199\u3002\u6bd5\u4e1a\u5b63\u7684\u6559\u5ba4\u91cc\uff0c\u7b14\u8bb0\u672c\u644a\u5f00\u5728\u8bfe\u684c\u4e0a\uff0c\u5168\u73ed\u7684\u540d\u5b57\u88ab\u6fc0\u5149\u523b\u5370\u5728\u5c01\u9762\u4e2d\u592e\uff0c\u6210\u4e3a\u6c38\u6052\u7684\u540c\u5b66\u5f55\u3002180\xb0\u5e73\u644a\u8bbe\u8ba1\u8ba9\u4e66\u5199\u4e0d\u518d\u88ab\u8ba2\u88c5\u675f\u7f1a\uff0cA4\u5927\u5c3a\u5bf8\u7ed9\u4f60\u5c3d\u60c5\u6325\u6d12\u7684\u5929\u5730\u3002\u8fd9\u662f\u9001\u7ed9\u4e00\u7fa4\u4eba\u6700\u597d\u7684\u544a\u522b\u793c\u7269\u3002",scene:"\u6bd5\u4e1a\u7eaa\u5ff5\u518c\u3001\u516c\u53f8\u5e74\u4f1a\u793c\u54c1\u3001\u56e2\u961f\u5efa\u8bbe\u4f34\u624b\u793c\u3001\u5ba2\u6237\u7b54\u8c22\u3002\u7279\u522b\u9002\u5408\u9700\u8981\u5728\u5c01\u9762\u5448\u73b0\u5927\u91cf\u6587\u5b57\u6216\u56fe\u6848\u7684\u5b9a\u5236\u9700\u6c42\u2014\u2014\u73ed\u7ea7\u540d\u5355\u3001\u516c\u53f8\u613f\u666f\u3001\u56e2\u961f\u53e3\u53f7\u4e00\u7f51\u6253\u5c3d\u3002",tags:["\u6bd5\u4e1a\u793c","\u56e2\u5efa","\u4f01\u4e1a\u5b9a\u5236","\u5927\u7bc7\u5e45","\u5e73\u644a\u8bbe\u8ba1"],specs:[["\u5c3a\u5bf8","210 \xd7 297mm\uff08A4\uff09"],["\u9875\u6570","100\u5f20/200\u9875"],["\u5c01\u9762\u6750\u8d28","\u771f\u76ae / \u4eff\u5e03\u7eb9 / \u78e8\u7802 \u53ef\u9009"],["\u5f00\u5408\u9002\u7528","180\xb0\u5e73\u644a\u8bbe\u8ba1"],["\u96d5\u523b\u5de5\u827a","CO2 \u6fc0\u5149\u5fae\u96d5\uff08\u9ad8\u6e05\u6670\u5ea6\uff09"],["\u5b9a\u5236\u9762\u79ef","\u5c01\u9762\u6574\u9762\u53ef\u96d5"]],images:["/img/book_big/The1.jpg","/img/book_big/The2.jpg"],mask:{shape:"rect",width:340,height:480,borderRadius:8}},{id:"coaster",name:"\u94dc\u8d28\u676f\u57ab",desc:"\u91d1\u5c5e\u8d28\u611f\uff0c\u684c\u9762\u827a\u672f",icon:"/icon/\u676f\u5b50.png",iconImg:"/icon/\u676f\u5b50.png",price:25,originalPrice:35,leadTime:"5-7\u4e2a\u5de5\u4f5c\u65e5",description:"\u91c7\u7528\u4f18\u8d28\u9ec4\u94dc\u6750\u8d28\uff0c\u8868\u9762\u7ecf\u62c9\u4e1d\u5de5\u827a\u5904\u7406\uff0c\u5448\u73b0\u54d1\u5149\u91d1\u5c5e\u8d28\u611f\u3002\u80cc\u9762\u914d\u6709\u9632\u6ed1\u8f6f\u6728\u57ab\uff0c\u4fdd\u62a4\u684c\u9762\u540c\u65f6\u9632\u6b62\u6ed1\u52a8\u3002\u6fc0\u5149\u5fae\u96d5\u53ef\u5728\u8868\u9762\u523b\u5370\u540d\u5b57\u3001\u65e5\u671f\u6216\u795d\u798f\u8bed\uff0c\u662f\u4e54\u8fc1\u65b0\u5c45\u3001\u65b0\u5a5a\u8d3a\u793c\u7684\u7cbe\u81f4\u4e4b\u9009\u3002",subtitle:"\u9ec4\u94dc\u8d28\u611f \xb7 \u62c9\u4e1d\u54d1\u5149 \xb7 \u684c\u9762\u4e0a\u7684\u5fae\u578b\u96d5\u5851",tone:[42,30,18],story:"\u8bbe\u8ba1\u7075\u611f\u6765\u81ea\u65e5\u5f0f\u4f98\u5bc2\u7f8e\u5b66\u3002\u5c81\u6708\u4f1a\u5728\u9ec4\u94dc\u8868\u9762\u7559\u4e0b\u6e29\u67d4\u7684\u6c27\u5316\u75d5\u8ff9\uff0c\u5c31\u5982\u540c\u4e00\u676f\u8336\u4ece\u70ed\u5230\u51c9\u7684\u8fc7\u7a0b\u3002\u62c9\u4e1d\u5904\u7406\u540e\u7684\u54d1\u5149\u8868\u9762\u5728\u706f\u5149\u4e0b\u5448\u73b0\u7ec6\u817b\u7684\u91d1\u5c5e\u7eb9\u7406\uff0c\u6fc0\u5149\u5fae\u96d5\u7684\u540d\u5b57\u6210\u4e3a\u8fd9\u4ef6\u5668\u7269\u4e0a\u6700\u51b7\u9759\u7684\u6ce8\u811a\u3002\u5b83\u4e0d\u53ea\u662f\u676f\u57ab\uff0c\u66f4\u662f\u684c\u9762\u4e0a\u7684\u5fae\u578b\u96d5\u5851\u3002",scene:"\u4e54\u8fc1\u9001\u793c\u3001\u65b0\u5a5a\u8d3a\u793c\u3001\u5496\u5561\u89d2\u5e03\u7f6e\u3001\u529e\u516c\u684c\u7f8e\u5b66\u3002\u9002\u5408\u9001\u7ed9\u559c\u6b22\u624b\u51b2\u5496\u5561\u7684\u670b\u53cb\uff0c\u6216\u4f5c\u4e3a\u5a5a\u793c\u5bbe\u5ba2\u7684\u56de\u793c\u2014\u2014\u6bcf\u4e00\u53ea\u676f\u57ab\u4e0a\u90fd\u523b\u7740\u5bbe\u5ba2\u7684\u540d\u5b57\uff0c\u8ba9\u793c\u7269\u672c\u8eab\u6210\u4e3a\u5ea7\u4f4d\u5361\u3002",tags:["\u4e54\u8fc1\u793c","\u65b0\u5a5a\u8d3a\u793c","\u684c\u9762\u7f8e\u5b66","\u9ec4\u94dc","\u624b\u51b2\u5496\u5561"],specs:[["\u6750\u8d28","\u9ec4\u94dc + \u80cc\u9762\u8f6f\u6728\u9632\u6ed1\u57ab"],["\u8868\u9762\u5904\u7406","\u62c9\u4e1d\u54d1\u5149"],["\u76f4\u5f84","100mm"],["\u539a\u5ea6","3mm"],["\u96d5\u523b\u5de5\u827a","\u5149\u7ea4\u6fc0\u5149\u7cbe\u7ec6\u5fae\u96d5"],["\u8010\u6e29","\u2264120\xb0C"]],images:["/img/cup/The1.jpg"],mask:{shape:"circle",width:280,height:280}},{id:"penbox",name:"\u7af9\u5236\u7b14\u76d2",desc:"\u81ea\u7136\u7af9\u7eb9\uff0c\u6587\u623f\u96c5\u5668",icon:"/icon/\u7b14\u76d2.png",iconImg:"/icon/\u7b14\u76d2.png",price:75,originalPrice:98,leadTime:"7-10\u4e2a\u5de5\u4f5c\u65e5",description:"\u7cbe\u9009\u5929\u7136\u6960\u7af9\uff0c\u7ecf\u591a\u9053\u5de5\u5e8f\u6253\u78e8\u629b\u5149\uff0c\u4fdd\u7559\u5929\u7136\u7af9\u7eb9\u808c\u7406\u3002\u76d2\u76d6\u91c7\u7528\u78c1\u5438\u5f00\u5408\uff0c\u5185\u90e8\u8bbe\u6709\u5206\u5c42\u9694\u677f\u3002\u6fc0\u5149\u5fae\u96d5\u5728\u7af9\u9762\u4e0a\u5448\u73b0\u6df1\u6d45\u4e0d\u4e00\u7684\u96d5\u523b\u6548\u679c\uff0c\u878d\u5165\u58a8\u9999\u6c14\u8d28\u3002\u9002\u5408\u4e66\u623f\u6848\u5934\u3001\u4e66\u6cd5\u7231\u597d\u8005\u7684\u6587\u623f\u4f34\u4fa3\u3002",subtitle:"\u5929\u7136\u6960\u7af9 \xb7 \u78c1\u5438\u5f00\u5408 \xb7 \u6587\u623f\u96c5\u5668\u4e4b\u9009",tone:[30,24,16],story:"\u6bcf\u4e00\u53ea\u7b14\u76d2\u90fd\u6765\u81ea\u540c\u4e00\u7247\u7af9\u6797\u7684\u4e0d\u540c\u90e8\u4f4d\uff0c\u56e0\u6b64\u7eb9\u8def\u7edd\u4e0d\u91cd\u590d\u2014\u2014\u6b63\u5982\u6ca1\u6709\u4e24\u4e2a\u4eba\u7684\u4e66\u6cd5\u98ce\u683c\u5b8c\u5168\u76f8\u540c\u3002\u6211\u4eec\u4fdd\u7559\u4e86\u6960\u7af9\u5929\u7136\u7684\u6e29\u6da6\u89e6\u611f\uff0c\u53ea\u5728\u8868\u9762\u4ee5\u6fc0\u5149\u523b\u4e0b\u540d\u5b57\u6216\u4e00\u53e5\u7bb4\u8a00\u3002\u6253\u5f00\u78c1\u5438\u76d2\u76d6\u65f6\u7684\u6e05\u8106\u58f0\u54cd\uff0c\u662f\u6587\u623f\u4e2d\u7684\u5c0f\u5c0f\u4eea\u5f0f\u3002",scene:"\u4e66\u623f\u6848\u5934\u3001\u4e66\u6cd5\u7231\u597d\u8005\u88c5\u5907\u3001\u6559\u5e08\u8282\u793c\u7269\u3001\u4e66\u623f\u6696\u623f\u793c\u3002\u9002\u5408\u9001\u7ed9\u5199\u5b57\u597d\u770b\u7684\u4eba\u2014\u2014\u56e0\u4e3a\u61c2\u4e66\u5199\u7684\u4eba\uff0c\u624d\u61c2\u4e00\u53ea\u597d\u7b14\u76d2\u7684\u5206\u91cf\u3002",tags:["\u6587\u623f","\u4e66\u6cd5","\u6559\u5e08\u8282","\u4e66\u623f","\u5929\u7136\u6750\u8d28"],specs:[["\u6750\u8d28","\u5929\u7136\u6960\u7af9"],["\u5f00\u5408\u65b9\u5f0f","\u78c1\u5438\u5f0f\u76d2\u76d6"],["\u5185\u90e8\u7ed3\u6784","\u5206\u5c42\u9694\u677f\uff08\u53ef\u8c03\u8282\uff09"],["\u5c3a\u5bf8","200 \xd7 65 \xd7 30mm"],["\u8868\u9762\u5904\u7406","\u624b\u5de5\u6253\u78e8\u629b\u5149\uff0c\u65e0\u6f06"],["\u96d5\u523b\u5de5\u827a","CO2 \u6fc0\u5149\u70e7\u8680\uff08\u6df1\u6d45\u53ef\u8c03\uff09"]],images:["/img/penbox/The1.jpg","/img/penbox/The2.jpg","/img/penbox/The3.jpg"],mask:{shape:"rect",width:320,height:160,borderRadius:12}},{id:"booklamp",name:"\u4e66\u672c\u578b\u706f",desc:"\u6e29\u6696\u5149\u5f71\uff0c\u70b9\u4eae\u5fc3\u610f",icon:"/icon/\u4e66\u706f.png",iconImg:"/icon/\u4e66\u706f.png",price:45,originalPrice:68,leadTime:"5-7\u4e2a\u5de5\u4f5c\u65e5",description:"\u5f00\u5408\u5f0f\u8bbe\u8ba1\uff0c\u6253\u5f00\u5373\u4eae\uff0c\u5408\u62e2\u5373\u706d\uff0c\u5982\u9b54\u6cd5\u4e66\u822c\u5145\u6ee1\u60ca\u559c\u3002\u91c7\u7528LED\u6696\u5149\u706f\u6e90\uff0c\u5149\u7ebf\u67d4\u548c\u4e0d\u523a\u773c\uff0c\u53ef\u6301\u7eed\u70b9\u4eae6-8\u5c0f\u65f6\u3002\u5c01\u9762\u6fc0\u5149\u5fae\u96d5\u53ef\u5b9a\u5236\u6587\u5b57\u3001\u56fe\u6848\u6216\u7167\u7247\uff0c\u8ba9\u6e29\u6696\u7684\u706f\u5149\u627f\u8f7d\u4e13\u5c5e\u8bb0\u5fc6\u3002\u662f\u60c5\u4fa3\u793c\u7269\u3001\u6bd5\u4e1a\u793c\u7269\u7684\u521b\u610f\u4e4b\u9009\u3002",subtitle:"\u5f00\u5408\u5373\u4eae \xb7 LED\u6696\u5149 \xb7 \u9b54\u6cd5\u4e66\u822c\u7684\u60ca\u559c",tone:[25,20,15],story:"\u7075\u611f\u6765\u81ea\u300a\u54c8\u5229\xb7\u6ce2\u7279\u300b\u4e2d\u7684\u9b54\u6cd5\u8bfe\u672c\u2014\u2014\u6253\u5f00\u4e00\u672c\u4e66\uff0c\u5149\u8292\u503e\u6cfb\u800c\u51fa\u3002\u6211\u4eec\u91c7\u7528\u675c\u90a6\u7eb8\u4e0e\u5b9e\u6728\u5c01\u9762\u7ed3\u5408\uff0c\u8ba9\u706f\u4f53\u65e2\u8f7b\u8584\u53c8\u575a\u56fa\u3002\u6fc0\u5149\u5fae\u96d5\u5728\u5c01\u9762\u7559\u4e0b\u4f60\u7684\u540d\u5b57\u6216\u4e00\u5e45\u5c0f\u753b\uff0c\u5f53\u706f\u5728\u6df1\u591c\u4eae\u8d77\uff0c\u90a3\u662f\u4e13\u5c5e\u4e8e\u4f60\u7684\u6e29\u6696\u89d2\u843d\u3002",scene:"\u60c5\u4fa3\u793c\u7269\u3001\u6bd5\u4e1a\u7eaa\u5ff5\u3001\u5e8a\u5934\u591c\u706f\u3001\u9732\u8425\u6c1b\u56f4\u706f\u3001\u513f\u7ae5\u623f\u3002\u7279\u522b\u9002\u5408\u5728\u5c01\u9762\u523b\u4e0a\u4e24\u4e2a\u4eba\u7684\u540d\u5b57\u548c\u4e00\u53e5\u60c5\u8bdd\uff0c\u5728\u60c5\u4eba\u8282\u6216\u7eaa\u5ff5\u65e5\u9001\u51fa\u2014\u2014\u6253\u5f00\u4e66\u706f\uff0c\u5c31\u50cf\u6253\u5f00\u4e00\u5c01\u4f1a\u53d1\u5149\u7684\u60c5\u4e66\u3002",tags:["\u60c5\u4fa3\u793c","\u6bd5\u4e1a\u7eaa\u5ff5","\u591c\u706f","\u6c1b\u56f4\u706f","\u521b\u610f\u793c\u7269"],specs:[["\u5149\u6e90","LED \u6696\u767d\u5149\uff083000K\uff09"],["\u7eed\u822a","6-8\u5c0f\u65f6\uff08\u5185\u7f6e\u53ef\u5145\u7535\u9502\u7535\u6c60\uff09"],["\u5145\u7535","USB Type-C \u63a5\u53e3"],["\u5c01\u9762\u6750\u8d28","\u675c\u90a6\u7eb8 + \u5b9e\u6728\u5c01\u9762"],["\u5c55\u5f00\u5c3a\u5bf8","210 \xd7 150mm"],["\u96d5\u523b\u5de5\u827a","\u6fc0\u5149\u5fae\u96d5\uff08\u652f\u6301\u6587\u5b57+\u7b80\u5355\u56fe\u6848\uff09"]],images:["/img/booklight/The1.jpg","/img/booklight/The2.jpg"],mask:{shape:"rect",width:320,height:240,borderRadius:4}}],u=i.map(function(n){return(0,r.A)((0,r.A)({},n),{},{images:(n.images||[]).map(function(n){return(0,o.uq)(n)}),iconImg:(0,o.uq)(n.iconImg)})}),c=u,a=function(n){return u.find(function(t){return t.id===n})},s={"notebook-small":(0,o.uq)("/icon/\u4e66\u672c.png"),"notebook-large":(0,o.uq)("/icon/\u4e66\u672c_\u5927.png"),coaster:(0,o.uq)("/icon/\u676f\u5b50.png"),penbox:(0,o.uq)("/icon/\u7b14\u76d2.png"),booklamp:(0,o.uq)("/icon/\u4e66\u706f.png")};function l(n){return null!==n&&void 0!==n&&n.iconImg?(0,o.uq)(n.iconImg):null!==n&&void 0!==n&&n.id?(0,o.uq)(s[n.id]||"/icon/\u56db\u89d2\u661f.svg"):(0,o.uq)("/icon/\u56db\u89d2\u661f.svg")}},3246:function(n,t,e){e.d(t,{L:function(){return g},Sy:function(){return l},WG:function(){return f},gf:function(){return d},q:function(){return m}});var r=e(1212),o=e(9379),i=e(467),u=e(758),c=e.n(u),a="https://wxbackend.tokenleaping.com",s="smart_access_token";function l(){try{c().hideLoading()}catch(n){}}function d(){try{return c().getStorageSync(s)||""}catch(n){return""}}function f(n){c().setStorageSync(s,n)}function g(){try{c().removeStorageSync(s)}catch(n){}}var h=null;var p=null;function m(n){p=n}function v(n,t,e,r){return S.apply(this,arguments)}function S(){return S=(0,i.A)((0,r.A)().m(function n(t,e,o,i){return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.a(2,c().request({url:"".concat(a).concat(t),method:e,data:o,header:i}))}},n)})),S.apply(this,arguments)}function y(n){return k.apply(this,arguments)}function k(){return k=(0,i.A)((0,r.A)().m(function n(t){var e,i,u,c,a,s,l,f,m,S,y,k,b,A,T,w,C,x,_=arguments;return(0,r.A)().w(function(n){while(1)switch(n.p=n.n){case 0:return e=_.length>1&&void 0!==_[1]?_[1]:{},i=e.method,u=void 0===i?"GET":i,c=e.data,a=e.headers,s=void 0===a?{}:a,l=e.auth,f=void 0===l||l,m=e.skipAuthRefresh,S=void 0!==m&&m,y=function(){var n=d();return(0,o.A)((0,o.A)({"Content-Type":"application/json"},f&&n?{Authorization:"Bearer ".concat(n)}:{}),s)},n.p=1,n.n=2,v(t,u,c,y());case 2:k=n.v,n.n=4;break;case 3:throw n.p=3,n.v,b=new Error("\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"),b.statusCode=-1,b;case 4:if(401!==k.statusCode||S||!p){n.n=9;break}return n.n=5,p();case 5:if(A=n.v,!A){n.n=9;break}return n.p=6,n.n=7,v(t,u,c,y());case 7:k=n.v,n.n=9;break;case 8:throw n.p=8,n.v,T=new Error("\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"),T.statusCode=-1,T;case 9:if(401!==k.statusCode){n.n=10;break}throw g(),null===(w=h)||void 0===w||w(),C=new Error("\u767b\u5f55\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55"),C.statusCode=401,C;case 10:if(x=k.data,!x||"number"!==typeof x.code||0===x.code){n.n=11;break}throw new Error(x.message||"\u8bf7\u6c42\u5931\u8d25");case 11:return n.a(2,x&&"number"===typeof x.code?x.data:x)}},n,null,[[6,8],[1,3]])})),k.apply(this,arguments)}var b={get:function(n,t){return y(n,(0,o.A)((0,o.A)({},t),{},{method:"GET"}))},post:function(n,t,e){return y(n,(0,o.A)((0,o.A)({},e),{},{method:"POST",data:t}))},put:function(n,t,e){return y(n,(0,o.A)((0,o.A)({},e),{},{method:"PUT",data:t}))},patch:function(n,t,e){return y(n,(0,o.A)((0,o.A)({},e),{},{method:"PATCH",data:t}))},del:function(n,t){return y(n,(0,o.A)((0,o.A)({},t),{},{method:"DELETE"}))}};t.Ay=b},8594:function(n,t,e){e.d(t,{E1:function(){return K},EB:function(){return X},F0:function(){return U},Fu:function(){return q},Hf:function(){return w},IU:function(){return W},Ic:function(){return g},O4:function(){return O},Q1:function(){return _},Q4:function(){return b},Re:function(){return J},Rq:function(){return Q},ab:function(){return $},cY:function(){return H},eW:function(){return z},hG:function(){return N},i5:function(){return M},iA:function(){return C},iZ:function(){return B},kg:function(){return j},kh:function(){return Y},n7:function(){return G},p_:function(){return R},uF:function(){return I},ug:function(){return x},yU:function(){return Z}});var r=e(9379),o=e(436),i=e(758),u=e.n(i),c=e(5234),a=e(8199),s=e(6764),l="smart_theme",d="smart_user_info",f="smart_active_openid";function g(n){return!!n&&(n.startsWith("mock_")||n.startsWith("mock-"))}function h(){var n=b(),t=(null===n||void 0===n?void 0:n.openid)||u().getStorageSync(f)||"_guest_";return u().setStorageSync(f,t),t}function p(n){var t=h();return"".concat(n,"_").concat(t)}var m="smart_user_registry",v="zhihui2024";function S(){try{return u().getStorageSync(m)||[]}catch(n){return[]}}function y(n){var t=S();t.includes(n)||(t.push(n),u().setStorageSync(m,t))}function k(n){var t=S().filter(function(t){return t!==n});u().setStorageSync(m,t)}function b(){try{return u().getStorageSync(d)}catch(n){return null}}function A(n){var t;u().setStorageSync(d,n),null!==n&&void 0!==n&&n.openid&&(u().setStorageSync(f,n.openid),u().setStorageSync("user_info_".concat(n.openid),n),y(n.openid)),(0,s.m)(),null===(t=u().eventCenter)||void 0===t||t.trigger("authStateChanged",{openid:(null===n||void 0===n?void 0:n.openid)||""})}function T(n){try{var t=u().getStorageSync("user_info_".concat(n));if(t)return t}catch(n){}var e=b();return(null===e||void 0===e?void 0:e.openid)===n?e:null}function w(){var n;u().removeStorageSync(d),u().removeStorageSync(f),(0,s.m)(),null===(n=u().eventCenter)||void 0===n||n.trigger("authStateChanged",{openid:""})}function C(n){A(n)}function x(){return b()}function _(){var n=S();return n.map(function(n){var t=T(n),e=D(n),r=P(n);return{openid:n,nickName:(null===t||void 0===t?void 0:t.nickName)||"\u672a\u77e5\u7528\u6237",avatarUrl:(null===t||void 0===t?void 0:t.avatarUrl)||"",loginAt:(null===t||void 0===t?void 0:t.loginAt)||0,designCount:e.length,orderCount:r.length}})}function j(n,t){var e="mock_"+Date.now().toString(36)+"_"+Math.random().toString(36).slice(2,6),r={openid:e,nickName:n||"\u5fae\u4fe1\u7528\u6237",avatarUrl:t||"",loginAt:Date.now()};return A(r),r}function B(n){var t=T(n);return!!t&&(u().setStorageSync(d,t),u().setStorageSync(f,n),!0)}function N(n){u().removeStorageSync("user_info_".concat(n)),u().removeStorageSync("design_list_".concat(n)),u().removeStorageSync("order_list_".concat(n)),u().removeStorageSync("address_list_".concat(n)),k(n);var t=b();(null===t||void 0===t?void 0:t.openid)===n&&w()}function I(n){return n===v}function E(n,t){return"".concat(n,"_").concat(t)}function D(n){try{return u().getStorageSync(E("design_list",n))||[]}catch(n){return[]}}function P(n){try{return u().getStorageSync(E("order_list",n))||[]}catch(n){return[]}}function R(){try{return u().getStorageSync(p("design_list"))||[]}catch(n){return[]}}function q(n){u().setStorageSync(p("design_list"),n)}function H(n,t){var e=R(),r=(0,a.uq)((null===n||void 0===n?void 0:n.iconImg)||c.rj[null===n||void 0===n?void 0:n.id]||"/icon/\u56db\u89d2\u661f.svg"),i={id:"DSG"+Date.now(),productId:n.id,productName:n.name,productIcon:r,unitPrice:n.price,count:t,status:"undesigned",createdAt:(new Date).toISOString().slice(0,10)};return q([].concat((0,o.A)(e),[i])),i}function M(n,t){var e=R(),o=e.findIndex(function(t){return t.id===n});-1!==o&&(e[o]=(0,r.A)((0,r.A)({},e[o]),t),q(e))}function Y(n){var t=R().filter(function(t){return!n.includes(t.id)});q(t)}function G(){try{return u().getStorageSync(p("order_list"))||[]}catch(n){return[]}}function F(n){u().setStorageSync(p("order_list"),n)}function W(n){var t,e=R(),r=G(),i=e.find(function(t){return t.id===n});if(!i)return null;var u=null!==(t=i.productIcon)&&void 0!==t&&t.startsWith("/icon/")||/^https?:/i.test(i.productIcon||"")?i.productIcon:c.rj[i.productId]||"/icon/\u56db\u89d2\u661f.svg",s=(0,a.uq)(u),l={id:"ORD"+Date.now().toString().slice(-9),productName:i.productName,productIcon:s,statusCode:"pending",date:(new Date).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-"),price:"\xa5"+(i.unitPrice*i.count).toFixed(2),count:i.count,sku:"".concat(i.productName," \xd7 ").concat(i.count)},d=e.findIndex(function(t){return t.id===n});return-1!==d&&(e[d].status="ordered",e[d].orderId=l.id),q(e),F([l].concat((0,o.A)(r))),l}function O(){try{return u().getStorageSync(l)||"auto"}catch(n){return"auto"}}function U(n){u().setStorageSync(l,n)}var L=null;function Q(n){L=n}function z(n){if("auto"===n){if(L)return L;try{var t=u().getAppBaseInfo();if("dark"===t.theme||"light"===t.theme)return t.theme}catch(n){}return"light"}return n}function J(){try{return u().getStorageSync(p("address_list"))||[]}catch(n){return[]}}function V(n){u().setStorageSync(p("address_list"),n)}function K(n){var t=J(),e=(0,r.A)((0,r.A)({},n),{},{id:"ADR"+Date.now()});return e.isDefault&&t.forEach(function(n){n.isDefault=!1}),V([e].concat((0,o.A)(t))),e}function Z(n,t){var e=J(),o=e.findIndex(function(t){return t.id===n});-1!==o&&(t.isDefault&&e.forEach(function(n){n.isDefault=!1}),e[o]=(0,r.A)((0,r.A)({},e[o]),t),V(e))}function $(n){var t=J().filter(function(t){return t.id!==n});V(t)}function X(){return J().find(function(n){return n.isDefault})}},6606:function(n,t,e){e.d(t,{G:function(){return u}});var r=e(758),o=e.n(r);function i(n){return"dark"===n?"#191919":"#faf7f2"}function u(n,t){var e=null!==t&&void 0!==t?t:i(n);o().setBackgroundColor({backgroundColor:e,backgroundColorTop:e,backgroundColorBottom:e}),o().setBackgroundTextStyle({textStyle:"dark"===n?"light":"dark"})}}}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[76],{9513:function(n,t,e){e.d(t,{A:function(){return i}});var r=e(118),o=e(4848);function i(n){var t=n.children,e=n.className,i=n.style;return(0,o.jsx)(r.Ss,{className:"bottom-action-bar ".concat(e||""),style:i,children:t})}},7723:function(n,t,e){e.d(t,{A:function(){return f}});var r=e(5544),o=e(758),i=e.n(o),u=e(6540),c=e(118),a=e(6764),s=e(9703),l=e(8199),d=e(4848);function f(n){var t=(0,u.useState)("checking"),e=(0,r.A)(t,2),o=e[0],f=e[1],g=(0,u.useCallback)(function(){var n=!1;return(0,a.d)().then(function(t){n||f(t?"ok":"denied")}).catch(function(){n||f("denied")}),function(){n=!0}},[]);return(0,u.useEffect)(function(){var n=g(),t=function(){g()},e=function(){g()};return i().eventCenter.on("tabBarChange",t),i().eventCenter.on(s.Wo,e),i().eventCenter.on("authStateChanged",t),function(){n(),i().eventCenter.off("tabBarChange",t),i().eventCenter.off(s.Wo,e),i().eventCenter.off("authStateChanged",t)}},[g]),"checking"===o?(0,d.jsx)(c.Ss,{className:"login-guard",children:(0,d.jsxs)(c.Ss,{className:"login-guard-inner",children:[(0,d.jsx)(c._V,{className:"login-guard-icon",src:(0,l.uq)("/icon/\u8bbe\u7f6e.png"),mode:"aspectFit"}),(0,d.jsx)(c.EY,{className:"login-guard-title",children:"\u6821\u9a8c\u767b\u5f55\u72b6\u6001"})]})}):"denied"===o?(0,d.jsx)(c.Ss,{className:"login-guard",children:(0,d.jsxs)(c.Ss,{className:"login-guard-inner",children:[(0,d.jsx)(c._V,{className:"login-guard-icon",src:(0,l.uq)("/icon/\u4e2a\u4eba.png"),mode:"aspectFit"}),(0,d.jsx)(c.EY,{className:"login-guard-title",children:"\u8bf7\u5148\u767b\u5f55"}),(0,d.jsx)(c.EY,{className:"login-guard-desc",children:"\u767b\u5f55\u540e\u67e5\u770b\u60a8\u7684\u4e13\u5c5e\u5185\u5bb9"}),(0,d.jsx)(c.Ss,{className:"btn-primary login-guard-btn",onTap:function(){return i().switchTab({url:"/pages/profile/index"})},children:(0,d.jsx)(c.EY,{children:"\u53bb\u767b\u5f55"})})]})}):n.children}},3053:function(n,t,e){e.d(t,{A:function(){return f}});var r=e(5544),o=e(118),i=e(758),u=e.n(i),c=e(6540),a=e(9201);function s(n){var t=n.viewportBottom,e=n.scrollTop,r=n.statusBarHeight,o=Number.isFinite(t)?t:0,i=Number.isFinite(e)?e:0,u=Number.isFinite(r)?r:0;return Math.max(0,o+i-u-8)}function l(n){var t=n.scrollTop,e=n.startY,r=n.rangeY,o=Number.isFinite(t)?t:0,i=Math.max(0,Number.isFinite(e)?e:0),u=Math.max(1,Number.isFinite(r)?r:1);return o<=i?0:Math.min(1,(o-i)/u)}var d=e(4848);function f(n){var t=n.title,e=n.targetSelector,i=void 0===e?".page-header":e,f=n.showBack,g=void 0!==f&&f,h=(0,a.c)(),p=(0,c.useState)(0),m=(0,r.A)(p,2),v=m[0],S=m[1],y=(0,c.useMemo)(function(){return{startY:Math.max(0,h.headerPaddingTop-h.statusBarHeight),rangeY:Math.max(48,.45*h.headerPaddingTop)}},[h.headerPaddingTop,h.statusBarHeight]),k=(0,c.useRef)(y),b=(0,c.useRef)(null),A=(0,c.useRef)(0),T=(0,c.useCallback)(function(n){A.current=n,null===b.current&&(b.current=setTimeout(function(){b.current=null;var n=k.current,t=n.startY,e=n.rangeY;S(l({scrollTop:A.current,startY:t,rangeY:e}))},16))},[]);return(0,c.useEffect)(function(){var n=!1,t=null;k.current=y;var e=function(){n||u().createSelectorQuery().select(i).boundingClientRect(function(t){if(!n){if(!t||Array.isArray(t)||"number"!==typeof t.bottom||"number"!==typeof t.height)return k.current=y,void T(A.current);var e=s({viewportBottom:t.bottom,scrollTop:A.current,statusBarHeight:h.statusBarHeight}),r=Math.max(32,.7*t.height);k.current={startY:e,rangeY:r},T(A.current)}}).exec()};return u().nextTick(function(){n||(t=setTimeout(e,80))}),function(){n=!0,null!==t&&clearTimeout(t),null!==b.current&&clearTimeout(b.current),b.current=null}},[T,y,i]),u().usePageScroll(function(n){T(n.scrollTop)}),(0,d.jsxs)(o.Ss,{className:"scroll-top-mask",style:{height:"".concat(Math.max(h.menuButtonTop+h.menuButtonHeight+18,h.statusBarHeight+52)+24,"px"),opacity:v},children:[(0,d.jsx)(o.Ss,{className:"scroll-top-blur scroll-top-blur-mid"}),(0,d.jsx)(o.Ss,{className:"scroll-top-blur scroll-top-blur-soft"}),(0,d.jsx)(o.Ss,{className:"scroll-top-gradient"}),g&&(0,d.jsx)(o.Ss,{className:"scroll-top-back",style:{top:"".concat(h.menuButtonTop,"px")},onTap:function(){return u().navigateBack()},children:(0,d.jsx)(o.EY,{className:"scroll-top-back-arrow",children:"\u2190"})}),(0,d.jsx)(o.EY,{className:"scroll-top-title",style:{top:"calc(".concat(h.menuButtonTop,"px + 40rpx)"),transform:"translateY(-50%)",opacity:Math.max(0,Math.min(1,(v-.5)/.5))},children:t})]})}},9674:function(n,t,e){e.d(t,{A:function(){return u}});var r=e(118),o=e(9703),i=e(4848);function u(n){var t=n.darkTop,e=void 0!==t&&t,u=(0,o.wR)(),c=u.resolvedTheme,a="dark"===c||e,s=a?"#191919":"#faf7f2",l=a?"#ffffff":"#000000";return(0,i.jsx)(r.tf,{backgroundColor:s,backgroundColorTop:s,backgroundColorBottom:s,backgroundTextStyle:a?"light":"dark",rootBackgroundColor:s,children:(0,i.jsx)(r.yk,{frontColor:l,backgroundColor:s})})}},9703:function(n,t,e){e.d(t,{NP:function(){return g},Wo:function(){return f},wR:function(){return h}});var r=e(5544),o=e(6540),i=e(758),u=e.n(i),c=e(118),a=e(8594),s=e(6606),l=e(4848),d=(0,o.createContext)({theme:"auto",resolvedTheme:"light",toggleTheme:function(){},setTheme:function(){}}),f="themeChange";function g(n){var t=n.children,e=(0,o.useState)((0,a.O4)()),g=(0,r.A)(e,2),h=g[0],p=g[1],m=(0,o.useState)((0,a.eW)((0,a.O4)())),v=(0,r.A)(m,2),S=v[0],y=v[1],k=(0,o.useCallback)(function(n){y((0,a.eW)(n))},[]),b=(0,o.useCallback)(function(n){(0,a.Rq)(n),"auto"===(0,a.O4)()&&y(n)},[]),A=(0,o.useCallback)(function(){try{var n=u().getAppBaseInfo();b("dark"===n.theme?"dark":"light")}catch(n){}try{u().createSelectorQuery().select(".system-theme-detector").fields({computedStyle:["opacity"]}).exec(function(n){var t=n&&n[0]&&n[0].computedStyle&&n[0].computedStyle.opacity;b("1"===t?"dark":"light")})}catch(n){}},[b]),T=(0,o.useCallback)(function(n){(0,a.F0)(n),p(n),"auto"===n?A():k(n)},[A,k]),x=(0,o.useCallback)(function(){var n="light"===S?"dark":"light";T(n)},[S,T]);return(0,o.useEffect)(function(){A()},[A]),(0,o.useEffect)(function(){var n,t=function(n){!n||"dark"!==n.theme&&"light"!==n.theme||b(n.theme)},e=u();return null===(n=e.onThemeChange)||void 0===n||n.call(e,t),function(){var n;null===(n=e.offThemeChange)||void 0===n||n.call(e,t)}},[b]),(0,o.useEffect)(function(){u().eventCenter.trigger(f,S)},[S]),(0,o.useEffect)(function(){(0,s.G)(S)},[S]),(0,i.useDidShow)(function(){"auto"===h&&A()}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.Ss,{className:"system-theme-detector"}),(0,l.jsx)(d.Provider,{value:{theme:h,resolvedTheme:S,toggleTheme:x,setTheme:T},children:t})]})}function h(){return(0,o.useContext)(d)}},9201:function(n,t,e){e.d(t,{c:function(){return a}});var r=e(5544),o=e(6540),i=e(758),u=e.n(i),c=null;function a(){var n=(0,o.useState)(null!==c&&void 0!==c?c:{statusBarHeight:20,menuButtonTop:26,menuButtonHeight:32,capsuleRight:368,safeInsetTop:20,safeInsetBottom:0,headerPaddingTop:66,backBtnPaddingTop:20}),t=(0,r.A)(n,2),e=t[0],i=t[1];return(0,o.useEffect)(function(){if(c)i(c);else try{var n,t,e,r,o,a,s,l,d=u().getSystemInfoSync(),f=u().getMenuButtonBoundingClientRect(),g=d.statusBarHeight||20,h=null!==(n=f.top)&&void 0!==n?n:g+4,p=null!==(t=f.height)&&void 0!==t?t:32,m=null!==(e=f.right)&&void 0!==e?e:d.windowWidth-7,v=null!==(r=null===(o=d.safeArea)||void 0===o?void 0:o.top)&&void 0!==r?r:g,S=null!==(a=d.safeAreaInsetBottom)&&void 0!==a?a:d.screenHeight-(null!==(s=null===(l=d.safeArea)||void 0===l?void 0:l.bottom)&&void 0!==s?s:d.screenHeight),y=Math.max(h+p+6,g+44),k=Math.max(g,h-4),b={statusBarHeight:g,menuButtonTop:h,menuButtonHeight:p,capsuleRight:m,safeInsetTop:v,safeInsetBottom:S,headerPaddingTop:y,backBtnPaddingTop:k};c=b,i(b)}catch(n){}},[]),e}},5414:function(n,t,e){e.d(t,{l:function(){return c}});var r=e(6540),o=e(758),i=e.n(o),u=e(6606);function c(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.mode,c=void 0===e?"auto":e,a=(0,r.useCallback)(function(){var t="dark"===c||"auto"===c&&"light"===n,e=t?"#000000":"#ffffff",r=t?"#faf7f2":"#191919";i().setNavigationBarColor({frontColor:e,backgroundColor:r}),(0,u.G)(n,r)},[c,n]);(0,r.useEffect)(a,[a]),(0,o.useDidShow)(a)}},6295:function(n,t,e){e.d(t,{gf:function(){return i.gf},iD:function(){return u},jp:function(){return d},r7:function(){return a},ri:function(){return l}});var r=e(1212),o=e(467),i=e(3246);function u(n){return c.apply(this,arguments)}function c(){return c=(0,o.A)((0,r.A)().m(function n(t){var e;return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.n=1,i.Ay.post("/api/auth/login",{code:t},{auth:!1});case 1:return e=n.v,null!==e&&void 0!==e&&e.accessToken&&(0,i.WG)(e.accessToken),n.a(2,e)}},n)})),c.apply(this,arguments)}function a(n){return s.apply(this,arguments)}function s(){return s=(0,o.A)((0,r.A)().m(function n(t){return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.a(2,i.Ay.patch("/api/users/me",t))}},n)})),s.apply(this,arguments)}function l(){(0,i.L)()}function d(){return f.apply(this,arguments)}function f(){return f=(0,o.A)((0,r.A)().m(function n(){return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.a(2,i.Ay.get("/api/users/me"))}},n)})),f.apply(this,arguments)}},8199:function(n,t,e){e.d(t,{uq:function(){return o}});var r="https://wordcloudwechat.oss-cn-hangzhou.aliyuncs.com";function o(n){if(!n)return"";if(/^(https?:|wxfile:|data:)/i.test(n))return n;if(!r)return n;var t=r.replace(/\/+$/,"");if(!n.startsWith("/img/"))return n;var e=n.startsWith("/")?n:"/".concat(n);return"".concat(t).concat(e)}},6764:function(n,t,e){e.d(t,{d:function(){return S},m:function(){return h}});var r=e(1212),o=e(467),i=e(2284),u=e(758),c=e.n(u),a=e(6295),s=e(8594),l="smart_auth_verified",d=18e5,f=null,g=null;function h(){f=null,g=null;try{c().removeStorageSync(l)}catch(n){}}function p(n){var t=f||function(){try{var n=c().getStorageSync(l);return n&&"object"===(0,i.A)(n)?n:null}catch(n){return null}}();return t&&t.openid===n?Date.now()-t.at>d?null:(f=t,t.ok):null}function m(n,t){var e={openid:n,ok:t,at:Date.now()};f=e;try{c().setStorageSync(l,e)}catch(n){}}function v(){var n=(0,s.Q4)();return!(null===n||void 0===n||!n.openid)&&!(0,s.Ic)(n.openid)&&!!n.accessToken&&!!(0,a.gf)()}function S(){return y.apply(this,arguments)}function y(){return y=(0,o.A)((0,r.A)().m(function n(){var t,e;return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:if(t=(0,s.Q4)(),null!==t&&void 0!==t&&t.openid){n.n=1;break}return console.log("[AuthGuard] \u65e0\u672c\u5730\u7528\u6237\uff0c\u5224\u5b9a\u672a\u767b\u5f55"),n.a(2,!1);case 1:if(console.log("[AuthGuard] \u672c\u5730\u7528\u6237 openid=",t.openid),!(0,s.Ic)(t.openid)){n.n=2;break}return(0,s.Hf)(),(0,a.ri)(),h(),n.a(2,!1);case 2:if(e=p(t.openid),null===e){n.n=3;break}return console.log("[AuthGuard] \u547d\u4e2d\u672c\u5730\u7f13\u5b58 ok=",e),n.a(2,e);case 3:return g||(g=(0,a.jp)().then(function(n){console.log("[AuthGuard] getMe \u8fd4\u56de:",JSON.stringify(n));var e=!!n&&!!n.id&&n.openid===t.openid;return console.log("[AuthGuard] \u4e00\u81f4\u6027=",e),e?(m(t.openid,!0),!0):((0,s.Hf)(),(0,a.ri)(),h(),!1)}).catch(function(n){return console.error("[AuthGuard] getMe \u5931\u8d25\uff0c\u8d70\u672c\u5730\u4f1a\u8bdd\u515c\u5e95:",n),v()}).finally(function(){g=null})),n.a(2,g)}},n)})),y.apply(this,arguments)}},5234:function(n,t,e){e.d(t,{QE:function(){return l},R6:function(){return c},rj:function(){return s},y9:function(){return a},zv:function(){return u}});var r=e(9379),o=e(8199),i=[{id:"notebook-small",name:"\u5fae\u96d5\u7b14\u8bb0\u672c\uff08\u5c0f\uff09",desc:"\u4fbf\u643a\u968f\u884c\uff0c\u8bb0\u5f55\u70b9\u6ef4",icon:"/icon/\u4e66\u672c.png",iconImg:"/icon/\u4e66\u672c.png",price:12,originalPrice:18,leadTime:"3-5\u4e2a\u5de5\u4f5c\u65e5",description:"\u7cbe\u9009\u4f18\u8d28\u7eb8\u5f20\uff0c\u5c01\u9762\u91c7\u7528\u9ad8\u6863PU\u6750\u8d28\uff0c\u624b\u611f\u7ec6\u817b\u3002\u5185\u9875\u53ef\u5b9a\u5236\u6a2a\u7ebf\u3001\u65b9\u683c\u6216\u7a7a\u767d\u4e09\u79cd\u7248\u5f0f\u3002\u6fc0\u5149\u5fae\u96d5\u5de5\u827a\u5c06\u540d\u5b57\u6216\u56fe\u6848\u7cbe\u51c6\u523b\u5370\u5728\u5c01\u9762\uff0c\u6c38\u4e0d\u892a\u8272\u3002\u5c0f\u5de7\u8f7b\u4fbf\uff0c\u9002\u5408\u968f\u8eab\u643a\u5e26\uff0c\u65e0\u8bba\u662f\u8bfe\u5802\u7b14\u8bb0\u8fd8\u662f\u65e5\u5e38\u5907\u5fd8\uff0c\u90fd\u662f\u4f60\u7684\u4e13\u5c5e\u4f34\u4fa3\u3002",subtitle:"\u638c\u5fc3\u95f4\u7684\u4e13\u5c5e\u5370\u8bb0 \xb7 \u6fc0\u5149\u5fae\u96d5 \xb7 \u4e09\u8272\u5185\u9875\u53ef\u9009",tone:[28,22,18],story:"\u7075\u611f\u6e90\u81ea\u624b\u8d26\u6587\u5316\u4e2d\u5bf9\u4e66\u5199\u4eea\u5f0f\u611f\u7684\u8ffd\u6c42\u3002\u6211\u4eec\u76f8\u4fe1\uff0c\u5728\u6570\u5b57\u6d2a\u6d41\u7684\u65f6\u4ee3\uff0c\u7eb8\u7b14\u7684\u6e29\u5ea6\u4f9d\u7136\u4e0d\u53ef\u66ff\u4ee3\u3002\u5f53\u6fc0\u5149\u5fae\u96d5\u5728PU\u5c01\u9762\u4e0a\u7559\u4e0b\u4e13\u5c5e\u5370\u8bb0\uff0c\u6bcf\u4e00\u7b14\u4e66\u5199\u90fd\u5728\u4e0e\u8fc7\u53bb\u5bf9\u8bdd\u3002\u7b14\u8bb0\u672c\u5c0f\u5de7\u5230\u8db3\u4ee5\u653e\u5165\u4efb\u4f55\u53e3\u888b\uff0c\u5374\u627f\u8f7d\u7740\u72ec\u4e00\u65e0\u4e8c\u7684\u8bb0\u5fc6\u3002",scene:"\u8bfe\u5802\u7b14\u8bb0\u3001\u65e5\u5e38\u5907\u5fd8\u3001\u65c5\u884c\u624b\u8d26\u3001\u5fc3\u60c5\u65e5\u8bb0\u3002\u9002\u5408\u9001\u7ed9\u540c\u5b66\u3001\u4f34\u4fa3\u6216\u4f5c\u4e3a\u6d3b\u52a8\u4f34\u624b\u793c\u2014\u2014\u8ba9\u6bcf\u4e00\u4e2a\u4eba\u90fd\u62e5\u6709\u523b\u7740\u81ea\u5df1\u540d\u5b57\u7684\u4e13\u5c5e\u7b14\u8bb0\u672c\u3002",tags:["\u4f34\u624b\u793c","\u5b66\u751f","\u624b\u8d26","\u4fbf\u643a","\u6fc0\u5149\u5fae\u96d5"],specs:[["\u5c3a\u5bf8","105 \xd7 148mm\uff08A6\uff09"],["\u9875\u6570","120\u5f20/240\u9875"],["\u5185\u9875\u7248\u5f0f","\u6a2a\u7ebf / \u65b9\u683c / \u7a7a\u767d \u53ef\u9009"],["\u5c01\u9762\u6750\u8d28","\u9ad8\u6863PU\u76ae\u9769"],["\u96d5\u523b\u5de5\u827a","CO2 \u6fc0\u5149\u5fae\u96d5\uff08\u6c38\u4e0d\u892a\u8272\uff09"],["\u9002\u7528\u573a\u666f","\u8bfe\u5802\u3001\u65c5\u884c\u3001\u65e5\u5e38\u5907\u5fd8"]],images:["/img/book_small/The1.jpg"],mask:{shape:"rect",width:300,height:420,borderRadius:8}},{id:"notebook-large",name:"\u5fae\u96d5\u7b14\u8bb0\u672c\uff08\u5927\uff09",desc:"\u5927\u5f00\u672c\uff0c\u66f4\u591a\u521b\u4f5c\u7a7a\u95f4",icon:"/icon/\u4e66\u672c_\u5927.png",iconImg:"/icon/\u4e66\u672c_\u5927.png",price:45,originalPrice:58,leadTime:"3-5\u4e2a\u5de5\u4f5c\u65e5",description:"A4\u5c3a\u5bf8\u5927\u5f00\u672c\uff0c180\xb0\u5e73\u644a\u8bbe\u8ba1\uff0c\u4e66\u5199\u66f4\u81ea\u7531\u3002\u5c01\u9762\u53ef\u9009\u771f\u76ae\u3001\u4eff\u5e03\u7eb9\u6216\u78e8\u7802\u6750\u8d28\uff0c\u6fc0\u5149\u5fae\u96d5\u533a\u57df\u66f4\u5927\uff0c\u9002\u5408\u5448\u73b0\u5168\u73ed\u540d\u5b57\u3001\u56e2\u961f\u53e3\u53f7\u6216\u516c\u53f8Logo\u7b49\u5927\u7bc7\u5e45\u5185\u5bb9\u3002\u662f\u6bd5\u4e1a\u7eaa\u5ff5\u3001\u4f01\u4e1a\u5e74\u4f1a\u793c\u54c1\u7684\u9996\u9009\u3002",subtitle:"\u5927\u7bc7\u5e45\u5b9a\u5236\u9996\u9009 \xb7 180\xb0\u5e73\u644a \xb7 \u6bd5\u4e1a/\u56e2\u5efa\u5fc5\u5907",tone:[35,28,22],story:"\u6bcf\u4e00\u6b21\u544a\u522b\u90fd\u503c\u5f97\u88ab\u90d1\u91cd\u4e66\u5199\u3002\u6bd5\u4e1a\u5b63\u7684\u6559\u5ba4\u91cc\uff0c\u7b14\u8bb0\u672c\u644a\u5f00\u5728\u8bfe\u684c\u4e0a\uff0c\u5168\u73ed\u7684\u540d\u5b57\u88ab\u6fc0\u5149\u523b\u5370\u5728\u5c01\u9762\u4e2d\u592e\uff0c\u6210\u4e3a\u6c38\u6052\u7684\u540c\u5b66\u5f55\u3002180\xb0\u5e73\u644a\u8bbe\u8ba1\u8ba9\u4e66\u5199\u4e0d\u518d\u88ab\u8ba2\u88c5\u675f\u7f1a\uff0cA4\u5927\u5c3a\u5bf8\u7ed9\u4f60\u5c3d\u60c5\u6325\u6d12\u7684\u5929\u5730\u3002\u8fd9\u662f\u9001\u7ed9\u4e00\u7fa4\u4eba\u6700\u597d\u7684\u544a\u522b\u793c\u7269\u3002",scene:"\u6bd5\u4e1a\u7eaa\u5ff5\u518c\u3001\u516c\u53f8\u5e74\u4f1a\u793c\u54c1\u3001\u56e2\u961f\u5efa\u8bbe\u4f34\u624b\u793c\u3001\u5ba2\u6237\u7b54\u8c22\u3002\u7279\u522b\u9002\u5408\u9700\u8981\u5728\u5c01\u9762\u5448\u73b0\u5927\u91cf\u6587\u5b57\u6216\u56fe\u6848\u7684\u5b9a\u5236\u9700\u6c42\u2014\u2014\u73ed\u7ea7\u540d\u5355\u3001\u516c\u53f8\u613f\u666f\u3001\u56e2\u961f\u53e3\u53f7\u4e00\u7f51\u6253\u5c3d\u3002",tags:["\u6bd5\u4e1a\u793c","\u56e2\u5efa","\u4f01\u4e1a\u5b9a\u5236","\u5927\u7bc7\u5e45","\u5e73\u644a\u8bbe\u8ba1"],specs:[["\u5c3a\u5bf8","210 \xd7 297mm\uff08A4\uff09"],["\u9875\u6570","100\u5f20/200\u9875"],["\u5c01\u9762\u6750\u8d28","\u771f\u76ae / \u4eff\u5e03\u7eb9 / \u78e8\u7802 \u53ef\u9009"],["\u5f00\u5408\u9002\u7528","180\xb0\u5e73\u644a\u8bbe\u8ba1"],["\u96d5\u523b\u5de5\u827a","CO2 \u6fc0\u5149\u5fae\u96d5\uff08\u9ad8\u6e05\u6670\u5ea6\uff09"],["\u5b9a\u5236\u9762\u79ef","\u5c01\u9762\u6574\u9762\u53ef\u96d5"]],images:["/img/book_big/The1.jpg","/img/book_big/The2.jpg"],mask:{shape:"rect",width:340,height:480,borderRadius:8}},{id:"coaster",name:"\u94dc\u8d28\u676f\u57ab",desc:"\u91d1\u5c5e\u8d28\u611f\uff0c\u684c\u9762\u827a\u672f",icon:"/icon/\u676f\u5b50.png",iconImg:"/icon/\u676f\u5b50.png",price:25,originalPrice:35,leadTime:"5-7\u4e2a\u5de5\u4f5c\u65e5",description:"\u91c7\u7528\u4f18\u8d28\u9ec4\u94dc\u6750\u8d28\uff0c\u8868\u9762\u7ecf\u62c9\u4e1d\u5de5\u827a\u5904\u7406\uff0c\u5448\u73b0\u54d1\u5149\u91d1\u5c5e\u8d28\u611f\u3002\u80cc\u9762\u914d\u6709\u9632\u6ed1\u8f6f\u6728\u57ab\uff0c\u4fdd\u62a4\u684c\u9762\u540c\u65f6\u9632\u6b62\u6ed1\u52a8\u3002\u6fc0\u5149\u5fae\u96d5\u53ef\u5728\u8868\u9762\u523b\u5370\u540d\u5b57\u3001\u65e5\u671f\u6216\u795d\u798f\u8bed\uff0c\u662f\u4e54\u8fc1\u65b0\u5c45\u3001\u65b0\u5a5a\u8d3a\u793c\u7684\u7cbe\u81f4\u4e4b\u9009\u3002",subtitle:"\u9ec4\u94dc\u8d28\u611f \xb7 \u62c9\u4e1d\u54d1\u5149 \xb7 \u684c\u9762\u4e0a\u7684\u5fae\u578b\u96d5\u5851",tone:[42,30,18],story:"\u8bbe\u8ba1\u7075\u611f\u6765\u81ea\u65e5\u5f0f\u4f98\u5bc2\u7f8e\u5b66\u3002\u5c81\u6708\u4f1a\u5728\u9ec4\u94dc\u8868\u9762\u7559\u4e0b\u6e29\u67d4\u7684\u6c27\u5316\u75d5\u8ff9\uff0c\u5c31\u5982\u540c\u4e00\u676f\u8336\u4ece\u70ed\u5230\u51c9\u7684\u8fc7\u7a0b\u3002\u62c9\u4e1d\u5904\u7406\u540e\u7684\u54d1\u5149\u8868\u9762\u5728\u706f\u5149\u4e0b\u5448\u73b0\u7ec6\u817b\u7684\u91d1\u5c5e\u7eb9\u7406\uff0c\u6fc0\u5149\u5fae\u96d5\u7684\u540d\u5b57\u6210\u4e3a\u8fd9\u4ef6\u5668\u7269\u4e0a\u6700\u51b7\u9759\u7684\u6ce8\u811a\u3002\u5b83\u4e0d\u53ea\u662f\u676f\u57ab\uff0c\u66f4\u662f\u684c\u9762\u4e0a\u7684\u5fae\u578b\u96d5\u5851\u3002",scene:"\u4e54\u8fc1\u9001\u793c\u3001\u65b0\u5a5a\u8d3a\u793c\u3001\u5496\u5561\u89d2\u5e03\u7f6e\u3001\u529e\u516c\u684c\u7f8e\u5b66\u3002\u9002\u5408\u9001\u7ed9\u559c\u6b22\u624b\u51b2\u5496\u5561\u7684\u670b\u53cb\uff0c\u6216\u4f5c\u4e3a\u5a5a\u793c\u5bbe\u5ba2\u7684\u56de\u793c\u2014\u2014\u6bcf\u4e00\u53ea\u676f\u57ab\u4e0a\u90fd\u523b\u7740\u5bbe\u5ba2\u7684\u540d\u5b57\uff0c\u8ba9\u793c\u7269\u672c\u8eab\u6210\u4e3a\u5ea7\u4f4d\u5361\u3002",tags:["\u4e54\u8fc1\u793c","\u65b0\u5a5a\u8d3a\u793c","\u684c\u9762\u7f8e\u5b66","\u9ec4\u94dc","\u624b\u51b2\u5496\u5561"],specs:[["\u6750\u8d28","\u9ec4\u94dc + \u80cc\u9762\u8f6f\u6728\u9632\u6ed1\u57ab"],["\u8868\u9762\u5904\u7406","\u62c9\u4e1d\u54d1\u5149"],["\u76f4\u5f84","100mm"],["\u539a\u5ea6","3mm"],["\u96d5\u523b\u5de5\u827a","\u5149\u7ea4\u6fc0\u5149\u7cbe\u7ec6\u5fae\u96d5"],["\u8010\u6e29","\u2264120\xb0C"]],images:["/img/cup/The1.jpg"],mask:{shape:"circle",width:280,height:280}},{id:"penbox",name:"\u7af9\u5236\u7b14\u76d2",desc:"\u81ea\u7136\u7af9\u7eb9\uff0c\u6587\u623f\u96c5\u5668",icon:"/icon/\u7b14\u76d2.png",iconImg:"/icon/\u7b14\u76d2.png",price:75,originalPrice:98,leadTime:"7-10\u4e2a\u5de5\u4f5c\u65e5",description:"\u7cbe\u9009\u5929\u7136\u6960\u7af9\uff0c\u7ecf\u591a\u9053\u5de5\u5e8f\u6253\u78e8\u629b\u5149\uff0c\u4fdd\u7559\u5929\u7136\u7af9\u7eb9\u808c\u7406\u3002\u76d2\u76d6\u91c7\u7528\u78c1\u5438\u5f00\u5408\uff0c\u5185\u90e8\u8bbe\u6709\u5206\u5c42\u9694\u677f\u3002\u6fc0\u5149\u5fae\u96d5\u5728\u7af9\u9762\u4e0a\u5448\u73b0\u6df1\u6d45\u4e0d\u4e00\u7684\u96d5\u523b\u6548\u679c\uff0c\u878d\u5165\u58a8\u9999\u6c14\u8d28\u3002\u9002\u5408\u4e66\u623f\u6848\u5934\u3001\u4e66\u6cd5\u7231\u597d\u8005\u7684\u6587\u623f\u4f34\u4fa3\u3002",subtitle:"\u5929\u7136\u6960\u7af9 \xb7 \u78c1\u5438\u5f00\u5408 \xb7 \u6587\u623f\u96c5\u5668\u4e4b\u9009",tone:[30,24,16],story:"\u6bcf\u4e00\u53ea\u7b14\u76d2\u90fd\u6765\u81ea\u540c\u4e00\u7247\u7af9\u6797\u7684\u4e0d\u540c\u90e8\u4f4d\uff0c\u56e0\u6b64\u7eb9\u8def\u7edd\u4e0d\u91cd\u590d\u2014\u2014\u6b63\u5982\u6ca1\u6709\u4e24\u4e2a\u4eba\u7684\u4e66\u6cd5\u98ce\u683c\u5b8c\u5168\u76f8\u540c\u3002\u6211\u4eec\u4fdd\u7559\u4e86\u6960\u7af9\u5929\u7136\u7684\u6e29\u6da6\u89e6\u611f\uff0c\u53ea\u5728\u8868\u9762\u4ee5\u6fc0\u5149\u523b\u4e0b\u540d\u5b57\u6216\u4e00\u53e5\u7bb4\u8a00\u3002\u6253\u5f00\u78c1\u5438\u76d2\u76d6\u65f6\u7684\u6e05\u8106\u58f0\u54cd\uff0c\u662f\u6587\u623f\u4e2d\u7684\u5c0f\u5c0f\u4eea\u5f0f\u3002",scene:"\u4e66\u623f\u6848\u5934\u3001\u4e66\u6cd5\u7231\u597d\u8005\u88c5\u5907\u3001\u6559\u5e08\u8282\u793c\u7269\u3001\u4e66\u623f\u6696\u623f\u793c\u3002\u9002\u5408\u9001\u7ed9\u5199\u5b57\u597d\u770b\u7684\u4eba\u2014\u2014\u56e0\u4e3a\u61c2\u4e66\u5199\u7684\u4eba\uff0c\u624d\u61c2\u4e00\u53ea\u597d\u7b14\u76d2\u7684\u5206\u91cf\u3002",tags:["\u6587\u623f","\u4e66\u6cd5","\u6559\u5e08\u8282","\u4e66\u623f","\u5929\u7136\u6750\u8d28"],specs:[["\u6750\u8d28","\u5929\u7136\u6960\u7af9"],["\u5f00\u5408\u65b9\u5f0f","\u78c1\u5438\u5f0f\u76d2\u76d6"],["\u5185\u90e8\u7ed3\u6784","\u5206\u5c42\u9694\u677f\uff08\u53ef\u8c03\u8282\uff09"],["\u5c3a\u5bf8","200 \xd7 65 \xd7 30mm"],["\u8868\u9762\u5904\u7406","\u624b\u5de5\u6253\u78e8\u629b\u5149\uff0c\u65e0\u6f06"],["\u96d5\u523b\u5de5\u827a","CO2 \u6fc0\u5149\u70e7\u8680\uff08\u6df1\u6d45\u53ef\u8c03\uff09"]],images:["/img/penbox/The1.jpg","/img/penbox/The2.jpg","/img/penbox/The3.jpg"],mask:{shape:"rect",width:320,height:160,borderRadius:12}},{id:"booklamp",name:"\u4e66\u672c\u578b\u706f",desc:"\u6e29\u6696\u5149\u5f71\uff0c\u70b9\u4eae\u5fc3\u610f",icon:"/icon/\u4e66\u706f.png",iconImg:"/icon/\u4e66\u706f.png",price:45,originalPrice:68,leadTime:"5-7\u4e2a\u5de5\u4f5c\u65e5",description:"\u5f00\u5408\u5f0f\u8bbe\u8ba1\uff0c\u6253\u5f00\u5373\u4eae\uff0c\u5408\u62e2\u5373\u706d\uff0c\u5982\u9b54\u6cd5\u4e66\u822c\u5145\u6ee1\u60ca\u559c\u3002\u91c7\u7528LED\u6696\u5149\u706f\u6e90\uff0c\u5149\u7ebf\u67d4\u548c\u4e0d\u523a\u773c\uff0c\u53ef\u6301\u7eed\u70b9\u4eae6-8\u5c0f\u65f6\u3002\u5c01\u9762\u6fc0\u5149\u5fae\u96d5\u53ef\u5b9a\u5236\u6587\u5b57\u3001\u56fe\u6848\u6216\u7167\u7247\uff0c\u8ba9\u6e29\u6696\u7684\u706f\u5149\u627f\u8f7d\u4e13\u5c5e\u8bb0\u5fc6\u3002\u662f\u60c5\u4fa3\u793c\u7269\u3001\u6bd5\u4e1a\u793c\u7269\u7684\u521b\u610f\u4e4b\u9009\u3002",subtitle:"\u5f00\u5408\u5373\u4eae \xb7 LED\u6696\u5149 \xb7 \u9b54\u6cd5\u4e66\u822c\u7684\u60ca\u559c",tone:[25,20,15],story:"\u7075\u611f\u6765\u81ea\u300a\u54c8\u5229\xb7\u6ce2\u7279\u300b\u4e2d\u7684\u9b54\u6cd5\u8bfe\u672c\u2014\u2014\u6253\u5f00\u4e00\u672c\u4e66\uff0c\u5149\u8292\u503e\u6cfb\u800c\u51fa\u3002\u6211\u4eec\u91c7\u7528\u675c\u90a6\u7eb8\u4e0e\u5b9e\u6728\u5c01\u9762\u7ed3\u5408\uff0c\u8ba9\u706f\u4f53\u65e2\u8f7b\u8584\u53c8\u575a\u56fa\u3002\u6fc0\u5149\u5fae\u96d5\u5728\u5c01\u9762\u7559\u4e0b\u4f60\u7684\u540d\u5b57\u6216\u4e00\u5e45\u5c0f\u753b\uff0c\u5f53\u706f\u5728\u6df1\u591c\u4eae\u8d77\uff0c\u90a3\u662f\u4e13\u5c5e\u4e8e\u4f60\u7684\u6e29\u6696\u89d2\u843d\u3002",scene:"\u60c5\u4fa3\u793c\u7269\u3001\u6bd5\u4e1a\u7eaa\u5ff5\u3001\u5e8a\u5934\u591c\u706f\u3001\u9732\u8425\u6c1b\u56f4\u706f\u3001\u513f\u7ae5\u623f\u3002\u7279\u522b\u9002\u5408\u5728\u5c01\u9762\u523b\u4e0a\u4e24\u4e2a\u4eba\u7684\u540d\u5b57\u548c\u4e00\u53e5\u60c5\u8bdd\uff0c\u5728\u60c5\u4eba\u8282\u6216\u7eaa\u5ff5\u65e5\u9001\u51fa\u2014\u2014\u6253\u5f00\u4e66\u706f\uff0c\u5c31\u50cf\u6253\u5f00\u4e00\u5c01\u4f1a\u53d1\u5149\u7684\u60c5\u4e66\u3002",tags:["\u60c5\u4fa3\u793c","\u6bd5\u4e1a\u7eaa\u5ff5","\u591c\u706f","\u6c1b\u56f4\u706f","\u521b\u610f\u793c\u7269"],specs:[["\u5149\u6e90","LED \u6696\u767d\u5149\uff083000K\uff09"],["\u7eed\u822a","6-8\u5c0f\u65f6\uff08\u5185\u7f6e\u53ef\u5145\u7535\u9502\u7535\u6c60\uff09"],["\u5145\u7535","USB Type-C \u63a5\u53e3"],["\u5c01\u9762\u6750\u8d28","\u675c\u90a6\u7eb8 + \u5b9e\u6728\u5c01\u9762"],["\u5c55\u5f00\u5c3a\u5bf8","210 \xd7 150mm"],["\u96d5\u523b\u5de5\u827a","\u6fc0\u5149\u5fae\u96d5\uff08\u652f\u6301\u6587\u5b57+\u7b80\u5355\u56fe\u6848\uff09"]],images:["/img/booklight/The1.jpg","/img/booklight/The2.jpg"],mask:{shape:"rect",width:320,height:240,borderRadius:4}}],u=i.map(function(n){return(0,r.A)((0,r.A)({},n),{},{images:(n.images||[]).map(function(n){return(0,o.uq)(n)}),iconImg:(0,o.uq)(n.iconImg)})}),c=u,a=function(n){return u.find(function(t){return t.id===n})},s={"notebook-small":(0,o.uq)("/icon/\u4e66\u672c.png"),"notebook-large":(0,o.uq)("/icon/\u4e66\u672c_\u5927.png"),coaster:(0,o.uq)("/icon/\u676f\u5b50.png"),penbox:(0,o.uq)("/icon/\u7b14\u76d2.png"),booklamp:(0,o.uq)("/icon/\u4e66\u706f.png")};function l(n){return null!==n&&void 0!==n&&n.iconImg?(0,o.uq)(n.iconImg):null!==n&&void 0!==n&&n.id?(0,o.uq)(s[n.id]||"/icon/\u56db\u89d2\u661f.svg"):(0,o.uq)("/icon/\u56db\u89d2\u661f.svg")}},3246:function(n,t,e){e.d(t,{L:function(){return g},Sy:function(){return l},WG:function(){return f},gf:function(){return d},q:function(){return m}});var r=e(1212),o=e(9379),i=e(467),u=e(758),c=e.n(u),a="https://wxbackend.tokenleaping.com",s="smart_access_token";function l(){try{c().hideLoading()}catch(n){}}function d(){try{return c().getStorageSync(s)||""}catch(n){return""}}function f(n){c().setStorageSync(s,n)}function g(){try{c().removeStorageSync(s)}catch(n){}}var h=null;var p=null;function m(n){p=n}function v(n,t,e,r){return S.apply(this,arguments)}function S(){return S=(0,i.A)((0,r.A)().m(function n(t,e,o,i){return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.a(2,c().request({url:"".concat(a).concat(t),method:e,data:o,header:i}))}},n)})),S.apply(this,arguments)}function y(n){return k.apply(this,arguments)}function k(){return k=(0,i.A)((0,r.A)().m(function n(t){var e,i,u,c,a,s,l,f,m,S,y,k,b,A,T,x,w,C,_=arguments;return(0,r.A)().w(function(n){while(1)switch(n.p=n.n){case 0:return e=_.length>1&&void 0!==_[1]?_[1]:{},i=e.method,u=void 0===i?"GET":i,c=e.data,a=e.headers,s=void 0===a?{}:a,l=e.auth,f=void 0===l||l,m=e.skipAuthRefresh,S=void 0!==m&&m,y=function(){var n=d();return(0,o.A)((0,o.A)({"Content-Type":"application/json"},f&&n?{Authorization:"Bearer ".concat(n)}:{}),s)},n.p=1,n.n=2,v(t,u,c,y());case 2:k=n.v,n.n=4;break;case 3:throw n.p=3,n.v,b=new Error("\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"),b.statusCode=-1,b;case 4:if(401!==k.statusCode||S||!p){n.n=9;break}return n.n=5,p();case 5:if(A=n.v,!A){n.n=9;break}return n.p=6,n.n=7,v(t,u,c,y());case 7:k=n.v,n.n=9;break;case 8:throw n.p=8,n.v,T=new Error("\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"),T.statusCode=-1,T;case 9:if(401!==k.statusCode){n.n=10;break}throw g(),null===(x=h)||void 0===x||x(),w=new Error("\u767b\u5f55\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55"),w.statusCode=401,w;case 10:if(C=k.data,!C||"number"!==typeof C.code||0===C.code){n.n=11;break}throw new Error(C.message||"\u8bf7\u6c42\u5931\u8d25");case 11:return n.a(2,C&&"number"===typeof C.code?C.data:C)}},n,null,[[6,8],[1,3]])})),k.apply(this,arguments)}var b={get:function(n,t){return y(n,(0,o.A)((0,o.A)({},t),{},{method:"GET"}))},post:function(n,t,e){return y(n,(0,o.A)((0,o.A)({},e),{},{method:"POST",data:t}))},put:function(n,t,e){return y(n,(0,o.A)((0,o.A)({},e),{},{method:"PUT",data:t}))},patch:function(n,t,e){return y(n,(0,o.A)((0,o.A)({},e),{},{method:"PATCH",data:t}))},del:function(n,t){return y(n,(0,o.A)((0,o.A)({},t),{},{method:"DELETE"}))}};t.Ay=b},8594:function(n,t,e){e.d(t,{E1:function(){return K},EB:function(){return X},F0:function(){return U},Fu:function(){return q},Hf:function(){return x},IU:function(){return W},Ic:function(){return g},O4:function(){return O},Q1:function(){return _},Q4:function(){return b},Re:function(){return J},Rq:function(){return Q},ab:function(){return $},cY:function(){return H},eW:function(){return z},hG:function(){return N},i5:function(){return Y},iA:function(){return w},iZ:function(){return j},kg:function(){return B},kh:function(){return M},n7:function(){return G},p_:function(){return R},uF:function(){return I},ug:function(){return C},yU:function(){return Z}});var r=e(9379),o=e(436),i=e(758),u=e.n(i),c=e(5234),a=e(8199),s=e(6764),l="smart_theme",d="smart_user_info",f="smart_active_openid";function g(n){return!!n&&(n.startsWith("mock_")||n.startsWith("mock-"))}function h(){var n=b(),t=(null===n||void 0===n?void 0:n.openid)||u().getStorageSync(f)||"_guest_";return u().setStorageSync(f,t),t}function p(n){var t=h();return"".concat(n,"_").concat(t)}var m="smart_user_registry",v="zhihui2024";function S(){try{return u().getStorageSync(m)||[]}catch(n){return[]}}function y(n){var t=S();t.includes(n)||(t.push(n),u().setStorageSync(m,t))}function k(n){var t=S().filter(function(t){return t!==n});u().setStorageSync(m,t)}function b(){try{return u().getStorageSync(d)}catch(n){return null}}function A(n){var t;u().setStorageSync(d,n),null!==n&&void 0!==n&&n.openid&&(u().setStorageSync(f,n.openid),u().setStorageSync("user_info_".concat(n.openid),n),y(n.openid)),(0,s.m)(),null===(t=u().eventCenter)||void 0===t||t.trigger("authStateChanged",{openid:(null===n||void 0===n?void 0:n.openid)||""})}function T(n){try{var t=u().getStorageSync("user_info_".concat(n));if(t)return t}catch(n){}var e=b();return(null===e||void 0===e?void 0:e.openid)===n?e:null}function x(){var n;u().removeStorageSync(d),u().removeStorageSync(f),(0,s.m)(),null===(n=u().eventCenter)||void 0===n||n.trigger("authStateChanged",{openid:""})}function w(n){A(n)}function C(){return b()}function _(){var n=S();return n.map(function(n){var t=T(n),e=D(n),r=P(n);return{openid:n,nickName:(null===t||void 0===t?void 0:t.nickName)||"\u672a\u77e5\u7528\u6237",avatarUrl:(null===t||void 0===t?void 0:t.avatarUrl)||"",loginAt:(null===t||void 0===t?void 0:t.loginAt)||0,designCount:e.length,orderCount:r.length}})}function B(n,t){var e="mock_"+Date.now().toString(36)+"_"+Math.random().toString(36).slice(2,6),r={openid:e,nickName:n||"\u5fae\u4fe1\u7528\u6237",avatarUrl:t||"",loginAt:Date.now()};return A(r),r}function j(n){var t=T(n);return!!t&&(u().setStorageSync(d,t),u().setStorageSync(f,n),!0)}function N(n){u().removeStorageSync("user_info_".concat(n)),u().removeStorageSync("design_list_".concat(n)),u().removeStorageSync("order_list_".concat(n)),u().removeStorageSync("address_list_".concat(n)),k(n);var t=b();(null===t||void 0===t?void 0:t.openid)===n&&x()}function I(n){return n===v}function E(n,t){return"".concat(n,"_").concat(t)}function D(n){try{return u().getStorageSync(E("design_list",n))||[]}catch(n){return[]}}function P(n){try{return u().getStorageSync(E("order_list",n))||[]}catch(n){return[]}}function R(){try{return u().getStorageSync(p("design_list"))||[]}catch(n){return[]}}function q(n){u().setStorageSync(p("design_list"),n)}function H(n,t){var e=R(),r=(0,a.uq)((null===n||void 0===n?void 0:n.iconImg)||c.rj[null===n||void 0===n?void 0:n.id]||"/icon/\u56db\u89d2\u661f.svg"),i={id:"DSG"+Date.now(),productId:n.id,productName:n.name,productIcon:r,unitPrice:n.price,count:t,status:"undesigned",createdAt:(new Date).toISOString().slice(0,10)};return q([].concat((0,o.A)(e),[i])),i}function Y(n,t){var e=R(),o=e.findIndex(function(t){return t.id===n});-1!==o&&(e[o]=(0,r.A)((0,r.A)({},e[o]),t),q(e))}function M(n){var t=R().filter(function(t){return!n.includes(t.id)});q(t)}function G(){try{return u().getStorageSync(p("order_list"))||[]}catch(n){return[]}}function F(n){u().setStorageSync(p("order_list"),n)}function W(n){var t,e=R(),r=G(),i=e.find(function(t){return t.id===n});if(!i)return null;var u=null!==(t=i.productIcon)&&void 0!==t&&t.startsWith("/icon/")||/^https?:/i.test(i.productIcon||"")?i.productIcon:c.rj[i.productId]||"/icon/\u56db\u89d2\u661f.svg",s=(0,a.uq)(u),l={id:"ORD"+Date.now().toString().slice(-9),productName:i.productName,productIcon:s,statusCode:"pending",date:(new Date).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-"),price:"\xa5"+(i.unitPrice*i.count).toFixed(2),count:i.count,sku:"".concat(i.productName," \xd7 ").concat(i.count)},d=e.findIndex(function(t){return t.id===n});return-1!==d&&(e[d].status="ordered",e[d].orderId=l.id),q(e),F([l].concat((0,o.A)(r))),l}function O(){try{return u().getStorageSync(l)||"auto"}catch(n){return"auto"}}function U(n){u().setStorageSync(l,n)}var L=null;function Q(n){L=n}function z(n){if("auto"===n){if(L)return L;try{var t=u().getAppBaseInfo();if("dark"===t.theme||"light"===t.theme)return t.theme}catch(n){}return"light"}return n}function J(){try{return u().getStorageSync(p("address_list"))||[]}catch(n){return[]}}function V(n){u().setStorageSync(p("address_list"),n)}function K(n){var t=J(),e=(0,r.A)((0,r.A)({},n),{},{id:"ADR"+Date.now()});return e.isDefault&&t.forEach(function(n){n.isDefault=!1}),V([e].concat((0,o.A)(t))),e}function Z(n,t){var e=J(),o=e.findIndex(function(t){return t.id===n});-1!==o&&(t.isDefault&&e.forEach(function(n){n.isDefault=!1}),e[o]=(0,r.A)((0,r.A)({},e[o]),t),V(e))}function $(n){var t=J().filter(function(t){return t.id!==n});V(t)}function X(){return J().find(function(n){return n.isDefault})}},6606:function(n,t,e){e.d(t,{G:function(){return u}});var r=e(758),o=e.n(r);function i(n){return"dark"===n?"#191919":"#faf7f2"}function u(n,t){var e=null!==t&&void 0!==t?t:i(n);o().setBackgroundColor({backgroundColor:e,backgroundColorTop:e,backgroundColorBottom:e}),o().setBackgroundTextStyle({textStyle:"dark"===n?"light":"dark"})}}}]); \ No newline at end of file diff --git a/dist/common.wxss b/dist/common.wxss index 6d6acb6..e681e6f 100644 --- a/dist/common.wxss +++ b/dist/common.wxss @@ -1 +1 @@ -.scroll-top-mask{left:0;pointer-events:none;position:fixed;right:0;top:0;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:40}.scroll-top-blur,.scroll-top-gradient{height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0}.scroll-top-gradient{height:80%}.scroll-top-title{bottom:38%;color:var(--text-primary);font-size:36rpx;font-weight:600;left:0;letter-spacing:0;pointer-events:none;position:absolute;right:0;text-align:center}.scroll-top-back{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;backdrop-filter:blur(32rpx) saturate(1.2);-webkit-backdrop-filter:blur(32rpx) saturate(1.2);background:hsla(0,0%,100%,.55);border:1rpx solid hsla(0,0%,100%,.55);border-radius:50%;-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.18),0 4rpx 12rpx rgba(0,0,0,.08);box-shadow:0 12rpx 40rpx rgba(0,0,0,.18),0 4rpx 12rpx rgba(0,0,0,.08);display:-webkit-flex;display:-ms-flexbox;display:flex;height:80rpx;-webkit-justify-content:center;justify-content:center;left:30rpx;pointer-events:auto;position:absolute;width:80rpx}.theme-dark .scroll-top-back{background:rgba(25,25,25,.55);border-color:hsla(0,0%,100%,.14);-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3);box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3)}.scroll-top-back-arrow{color:var(--text-primary);font-size:44rpx;font-weight:600;line-height:1}.scroll-top-blur-mid{backdrop-filter:blur(12rpx);-webkit-backdrop-filter:blur(12rpx);-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(42%,rgba(0,0,0,.8)),color-stop(76%,rgba(0,0,0,0)));-webkit-mask-image:-webkit-linear-gradient(top,#000,rgba(0,0,0,.8) 42%,rgba(0,0,0,0) 76%);mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(42%,rgba(0,0,0,.8)),color-stop(76%,rgba(0,0,0,0)));mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.8) 42%,rgba(0,0,0,0) 76%)}.scroll-top-blur-soft{backdrop-filter:blur(6rpx);-webkit-backdrop-filter:blur(6rpx);-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(52%,rgba(0,0,0,.65)),to(rgba(0,0,0,0)));-webkit-mask-image:-webkit-linear-gradient(top,#000,rgba(0,0,0,.65) 52%,rgba(0,0,0,0));mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(52%,rgba(0,0,0,.65)),to(rgba(0,0,0,0)));mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.65) 52%,rgba(0,0,0,0))}.theme-light .scroll-top-gradient{background:-webkit-gradient(linear,left top,left bottom,from(hsla(38,44%,96%,.94)),color-stop(50%,hsla(38,44%,96%,.9)),color-stop(78%,hsla(38,44%,96%,.58)),to(hsla(38,44%,96%,0)));background:-webkit-linear-gradient(top,hsla(38,44%,96%,.94),hsla(38,44%,96%,.9) 50%,hsla(38,44%,96%,.58) 78%,hsla(38,44%,96%,0));background:linear-gradient(180deg,hsla(38,44%,96%,.94) 0,hsla(38,44%,96%,.9) 50%,hsla(38,44%,96%,.58) 78%,hsla(38,44%,96%,0))}.theme-dark .scroll-top-gradient{background:-webkit-gradient(linear,left top,left bottom,from(rgba(25,25,25,.94)),color-stop(50%,rgba(25,25,25,.9)),color-stop(78%,rgba(25,25,25,.58)),to(rgba(25,25,25,0)));background:-webkit-linear-gradient(top,rgba(25,25,25,.94),rgba(25,25,25,.9) 50%,rgba(25,25,25,.58) 78%,rgba(25,25,25,0));background:linear-gradient(180deg,rgba(25,25,25,.94) 0,rgba(25,25,25,.9) 50%,rgba(25,25,25,.58) 78%,rgba(25,25,25,0))}.bottom-action-bar{-ms-flex-align:center;-webkit-align-items:center;align-items:center;backdrop-filter:blur(32rpx) saturate(1.2);-webkit-backdrop-filter:blur(32rpx) saturate(1.2);background:hsla(0,0%,100%,.55);border:1rpx solid hsla(0,0%,100%,.55);border-radius:64rpx;bottom:36rpx;-webkit-box-shadow:0 12rpx 40rpx rgba(46,34,34,.18),0 4rpx 12rpx rgba(46,34,34,.08);box-shadow:0 12rpx 40rpx rgba(46,34,34,.18),0 4rpx 12rpx rgba(46,34,34,.08);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;left:36rpx;padding:24rpx 24rpx calc(24rpx + env(safe-area-inset-bottom));position:fixed;right:36rpx;z-index:500}.theme-dark .bottom-action-bar{background:rgba(25,25,25,.55);border-color:hsla(0,0%,100%,.14);-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3);box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3)} \ No newline at end of file +.scroll-top-mask{left:0;pointer-events:none;position:fixed;right:0;top:0;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:40}.scroll-top-blur,.scroll-top-gradient{height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0}.scroll-top-gradient{height:80%}.scroll-top-title{color:var(--text-primary);font-size:36rpx;font-weight:600;left:0;letter-spacing:0;pointer-events:none;position:absolute;right:0;text-align:center}.scroll-top-back{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;backdrop-filter:blur(32rpx) saturate(1.2);-webkit-backdrop-filter:blur(32rpx) saturate(1.2);background:hsla(0,0%,100%,.55);border:1rpx solid hsla(0,0%,100%,.55);border-radius:50%;-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.18),0 4rpx 12rpx rgba(0,0,0,.08);box-shadow:0 12rpx 40rpx rgba(0,0,0,.18),0 4rpx 12rpx rgba(0,0,0,.08);display:-webkit-flex;display:-ms-flexbox;display:flex;height:80rpx;-webkit-justify-content:center;justify-content:center;left:30rpx;pointer-events:auto;position:absolute;width:80rpx}.theme-dark .scroll-top-back{background:rgba(25,25,25,.55);border-color:hsla(0,0%,100%,.14);-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3);box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3)}.scroll-top-back-arrow{color:var(--text-primary);font-size:44rpx;font-weight:600;line-height:1}.scroll-top-blur-mid{backdrop-filter:blur(12rpx);-webkit-backdrop-filter:blur(12rpx);-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(42%,rgba(0,0,0,.8)),color-stop(76%,rgba(0,0,0,0)));-webkit-mask-image:-webkit-linear-gradient(top,#000,rgba(0,0,0,.8) 42%,rgba(0,0,0,0) 76%);mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(42%,rgba(0,0,0,.8)),color-stop(76%,rgba(0,0,0,0)));mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.8) 42%,rgba(0,0,0,0) 76%)}.scroll-top-blur-soft{backdrop-filter:blur(6rpx);-webkit-backdrop-filter:blur(6rpx);-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(52%,rgba(0,0,0,.65)),to(rgba(0,0,0,0)));-webkit-mask-image:-webkit-linear-gradient(top,#000,rgba(0,0,0,.65) 52%,rgba(0,0,0,0));mask-image:-webkit-gradient(linear,left top,left bottom,from(#000),color-stop(52%,rgba(0,0,0,.65)),to(rgba(0,0,0,0)));mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.65) 52%,rgba(0,0,0,0))}.theme-light .scroll-top-gradient{background:-webkit-gradient(linear,left top,left bottom,from(hsla(38,44%,96%,.94)),color-stop(50%,hsla(38,44%,96%,.9)),color-stop(78%,hsla(38,44%,96%,.58)),to(hsla(38,44%,96%,0)));background:-webkit-linear-gradient(top,hsla(38,44%,96%,.94),hsla(38,44%,96%,.9) 50%,hsla(38,44%,96%,.58) 78%,hsla(38,44%,96%,0));background:linear-gradient(180deg,hsla(38,44%,96%,.94) 0,hsla(38,44%,96%,.9) 50%,hsla(38,44%,96%,.58) 78%,hsla(38,44%,96%,0))}.theme-dark .scroll-top-gradient{background:-webkit-gradient(linear,left top,left bottom,from(rgba(25,25,25,.94)),color-stop(50%,rgba(25,25,25,.9)),color-stop(78%,rgba(25,25,25,.58)),to(rgba(25,25,25,0)));background:-webkit-linear-gradient(top,rgba(25,25,25,.94),rgba(25,25,25,.9) 50%,rgba(25,25,25,.58) 78%,rgba(25,25,25,0));background:linear-gradient(180deg,rgba(25,25,25,.94) 0,rgba(25,25,25,.9) 50%,rgba(25,25,25,.58) 78%,rgba(25,25,25,0))}.bottom-action-bar{-ms-flex-align:center;-webkit-align-items:center;align-items:center;backdrop-filter:blur(32rpx) saturate(1.2);-webkit-backdrop-filter:blur(32rpx) saturate(1.2);background:hsla(0,0%,100%,.55);border:1rpx solid hsla(0,0%,100%,.55);border-radius:64rpx;bottom:36rpx;-webkit-box-shadow:0 12rpx 40rpx rgba(46,34,34,.18),0 4rpx 12rpx rgba(46,34,34,.08);box-shadow:0 12rpx 40rpx rgba(46,34,34,.18),0 4rpx 12rpx rgba(46,34,34,.08);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;left:36rpx;padding:24rpx 24rpx calc(24rpx + env(safe-area-inset-bottom));position:fixed;right:36rpx;z-index:500}.theme-dark .bottom-action-bar{background:rgba(25,25,25,.55);border-color:hsla(0,0%,100%,.14);-webkit-box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3);box-shadow:0 12rpx 40rpx rgba(0,0,0,.5),0 4rpx 12rpx rgba(0,0,0,.3)} \ No newline at end of file diff --git a/dist/pages/designList/index.js b/dist/pages/designList/index.js index 2995134..6bbb319 100644 --- a/dist/pages/designList/index.js +++ b/dist/pages/designList/index.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[319],{3512:function(e,s,n){var a=n(7842),t=n(5544),c=n(118),i=n(758),l=n.n(i),r=n(6540),d=n(8594),o=n(5234),u=n(8199),h=n(9703),g=n(9201),m=n(5414),x=n(7723),p=n(9674),j=n(3053),b=n(4848),f=[{code:"all",label:"\u5168\u90e8"},{code:"toDesign",label:"\u5f85\u8bbe\u8ba1"},{code:"undesigned",label:"\u672a\u8bbe\u8ba1"},{code:"designing",label:"\u8bbe\u8ba1\u4e2d"},{code:"ordered",label:"\u5df2\u4e0b\u5355"}],S=f.filter(function(e){return"undesigned"!==e.code}),N={undesigned:{label:"\u672a\u8bbe\u8ba1",cls:"badge-pink"},designing:{label:"\u8bbe\u8ba1\u4e2d",cls:"badge-blue"},ordered:{label:"\u5df2\u4e0b\u5355",cls:"badge-green"}};function v(){var e=(0,h.wR)(),s=e.resolvedTheme,n=(0,g.c)();(0,m.l)(s);var a=(0,r.useState)("all"),i=(0,t.A)(a,2),v=i[0],w=i[1],y=(0,r.useState)([]),T=(0,t.A)(y,2),E=T[0],Y=T[1],k=(0,r.useState)(!1),A=(0,t.A)(k,2),z=A[0],I=A[1],P=(0,r.useState)(new Set),B=(0,t.A)(P,2),C=B[0],L=B[1],M=(0,r.useCallback)(function(){Y((0,d.p_)())},[]),F=(0,r.useCallback)(function(){var e=l().getStorageSync("designList:filter");e&&f.some(function(s){return s.code===e})&&(w(e),l().removeStorageSync("designList:filter")),M()},[M]);(0,r.useEffect)(function(){var e=l().getCurrentInstance().page;if(e){var s=e.onShow;e.onShow=function(){F(),s&&s.apply(this)}}F()},[F]);var _="all"===v?E:"toDesign"===v?E.filter(function(e){return"undesigned"===e.status||"designing"===e.status}):E.filter(function(e){return e.status===v}),q=function(e){"ordered"!==e.status?l().navigateTo({url:"/pages/diy/index?source=designList&designId=".concat(e.id)}):l().showToast({title:"\u8be5\u5546\u54c1\u5df2\u4e0b\u5355\uff0c\u8bf7\u67e5\u770b\u8ba2\u5355",icon:"none"})},D=function(e){var s=new Set(C);s.has(e)?s.delete(e):s.add(e),L(s)},J=function(){C.size===_.length?L(new Set):L(new Set(_.map(function(e){return e.id})))},O=function(){0!==C.size&&l().showModal({title:"\u786e\u8ba4\u5220\u9664",content:"\u786e\u5b9a\u5220\u9664\u9009\u4e2d\u7684 ".concat(C.size," \u4e2a\u6761\u76ee\u5417\uff1f"),success:function(e){e.confirm&&((0,d.kh)(Array.from(C)),L(new Set),I(!1),M())}})},V=function(){z?(I(!1),L(new Set)):I(!0)};return(0,b.jsxs)(c.Ss,{className:"theme-".concat(s),children:[(0,b.jsx)(p.A,{}),(0,b.jsx)(j.A,{title:"\u6211\u7684\u8bbe\u8ba1\u6e05\u5355",targetSelector:".page-header.design-header"}),(0,b.jsx)(x.A,{children:(0,b.jsxs)(c.Ss,{className:"design-page",children:[(0,b.jsxs)(c.Ss,{className:"page-header design-header",style:{paddingTop:"".concat(n.statusBarHeight+12,"px")},children:[(0,b.jsx)(c.Ss,{className:"header-spacer"}),(0,b.jsx)(c.EY,{className:"header-title",children:"\u6211\u7684\u8bbe\u8ba1\u6e05\u5355"}),(0,b.jsx)(c.Ss,{className:"header-manage",onTap:V,children:(0,b.jsx)(c.EY,{children:z?"\u5b8c\u6210":"\u7ba1\u7406"})})]}),(0,b.jsx)(c.Ss,{className:"status-tabs",children:(0,b.jsx)(c.BM,{className:"tabs-scroll",scrollX:!0,children:S.map(function(e){return(0,b.jsx)(c.Ss,{className:"chip ".concat(v===e.code?"active":""),onTap:function(){return w(e.code)},children:(0,b.jsx)(c.EY,{className:"tab-label",children:e.label})},e.code)})})}),z&&(0,b.jsx)(c.Ss,{className:"batch-bar",children:(0,b.jsxs)(c.Ss,{className:"flex-between",style:{width:"100%"},children:[(0,b.jsxs)(c.Ss,{className:"batch-select-all",onTap:J,children:[(0,b.jsx)(c.Ss,{className:"batch-checkbox ".concat(C.size===_.length&&_.length>0?"checked":"")}),(0,b.jsxs)(c.EY,{className:"batch-text",children:["\u5168\u9009 (",C.size,"/",_.length,")"]})]}),(0,b.jsx)(c.Ss,{className:"batch-delete ".concat(C.size>0?"active":""),onTap:O,children:(0,b.jsx)(c.EY,{children:"\u5220\u9664"})})]})}),(0,b.jsxs)(c.BM,{className:"design-list",scrollY:!0,children:[_.map(function(e){var s=N[e.status],n=(e.productIcon||"").startsWith("/icon/")||/^https?:/i.test(e.productIcon||"")?e.productIcon:o.rj[e.productId]||"/icon/\u56db\u89d2\u661f.svg",a=(0,u.uq)(n),t=C.has(e.id);return(0,b.jsxs)(c.Ss,{className:"design-card ".concat(t?"selected":""),onTap:function(){return z?D(e.id):void 0},children:[(0,b.jsxs)(c.Ss,{className:"design-body",children:[z&&(0,b.jsx)(c.Ss,{className:"batch-checkbox ".concat(t?"checked":"")}),(0,b.jsx)(c._V,{className:"design-icon-img",src:a,mode:"aspectFit"}),(0,b.jsxs)(c.Ss,{className:"design-info",children:[(0,b.jsxs)(c.Ss,{className:"design-title-row",children:[(0,b.jsx)(c.EY,{className:"design-name",children:e.productName}),(0,b.jsx)(c.EY,{className:"badge ".concat(s.cls),children:s.label})]}),(0,b.jsxs)(c.EY,{className:"design-meta",children:["\u6570\u91cf: ",e.count," \u4ef6 | \u5355\u4ef7: \xa5",e.unitPrice]}),(0,b.jsxs)(c.EY,{className:"design-total",children:["\u5c0f\u8ba1: \xa5",(e.unitPrice*e.count).toFixed(2)]})]})]}),!z&&(0,b.jsxs)(c.Ss,{className:"design-actions",children:["ordered"!==e.status&&(0,b.jsx)(c.Ss,{className:"btn-primary design-btn",onTap:function(){return q(e)},children:(0,b.jsx)(c.EY,{children:"undesigned"===e.status?"\u5f00\u59cb\u8bbe\u8ba1":"\u7ee7\u7eed\u8bbe\u8ba1"})}),"ordered"===e.status&&(0,b.jsx)(c.Ss,{className:"btn-secondary design-btn",onTap:function(){return l().switchTab({url:"/pages/orders/index"})},children:(0,b.jsx)(c.EY,{children:"\u67e5\u770b\u8ba2\u5355"})})]})]},e.id)}),0===_.length&&(0,b.jsxs)(c.Ss,{className:"empty-state",children:[(0,b.jsx)(c._V,{className:"empty-icon-img",src:(0,u.uq)("/icon/\u8c03\u8272\u76d8.png"),mode:"aspectFit"}),(0,b.jsx)(c.EY,{className:"empty-text",children:"\u8fd8\u6ca1\u6709\u8bbe\u8ba1\u6e05\u5355"}),(0,b.jsx)(c.EY,{className:"empty-sub",children:"\u53bb\u9996\u9875\u901b\u901b\uff0c\u627e\u5230\u559c\u6b22\u7684\u5b9a\u5236\u54c1"}),(0,b.jsx)(c.Ss,{className:"btn-primary",onTap:function(){return l().switchTab({url:"/pages/index/index"})},children:(0,b.jsx)(c.EY,{children:"\u53bb\u901b\u901b"})})]})]})]})})]})}var w={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u8bbe\u8ba1\u6e05\u5355"};Page((0,a.createPageConfig)(v,"pages/designList/index",{root:{cn:[]}},w||{}))}},function(e){var s=function(s){return e(e.s=s)};e.O(0,[907,96,76],function(){return s(3512)});e.O()}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[319],{3512:function(e,s,n){var a=n(7842),t=n(5544),c=n(118),i=n(758),l=n.n(i),r=n(6540),d=n(8594),o=n(5234),u=n(8199),h=n(9703),g=n(9201),m=n(5414),x=n(7723),p=n(9674),b=n(3053),j=n(4848),f=[{code:"all",label:"\u5168\u90e8"},{code:"toDesign",label:"\u5f85\u8bbe\u8ba1"},{code:"undesigned",label:"\u672a\u8bbe\u8ba1"},{code:"designing",label:"\u8bbe\u8ba1\u4e2d"},{code:"ordered",label:"\u5df2\u4e0b\u5355"}],S=f.filter(function(e){return"undesigned"!==e.code}),N={undesigned:{label:"\u672a\u8bbe\u8ba1",cls:"badge-pink"},designing:{label:"\u8bbe\u8ba1\u4e2d",cls:"badge-blue"},ordered:{label:"\u5df2\u4e0b\u5355",cls:"badge-green"}};function v(){var e=(0,h.wR)(),s=e.resolvedTheme,n=(0,g.c)();(0,m.l)(s);var a=(0,r.useState)("all"),i=(0,t.A)(a,2),v=i[0],w=i[1],y=(0,r.useState)([]),T=(0,t.A)(y,2),E=T[0],Y=T[1],k=(0,r.useState)(!1),A=(0,t.A)(k,2),z=A[0],I=A[1],P=(0,r.useState)(new Set),B=(0,t.A)(P,2),C=B[0],L=B[1],M=(0,r.useCallback)(function(){Y((0,d.p_)())},[]),F=(0,r.useCallback)(function(){var e=l().getStorageSync("designList:filter");e&&f.some(function(s){return s.code===e})&&(w(e),l().removeStorageSync("designList:filter")),M()},[M]);(0,r.useEffect)(function(){var e=l().getCurrentInstance().page;if(e){var s=e.onShow;e.onShow=function(){F(),s&&s.apply(this)}}F()},[F]);var _="all"===v?E:"toDesign"===v?E.filter(function(e){return"undesigned"===e.status||"designing"===e.status}):E.filter(function(e){return e.status===v}),q=function(e){"ordered"!==e.status?l().navigateTo({url:"/pages/diy/index?source=designList&designId=".concat(e.id)}):l().showToast({title:"\u8be5\u5546\u54c1\u5df2\u4e0b\u5355\uff0c\u8bf7\u67e5\u770b\u8ba2\u5355",icon:"none"})},D=function(e){var s=new Set(C);s.has(e)?s.delete(e):s.add(e),L(s)},J=function(){C.size===_.length?L(new Set):L(new Set(_.map(function(e){return e.id})))},O=function(){0!==C.size&&l().showModal({title:"\u786e\u8ba4\u5220\u9664",content:"\u786e\u5b9a\u5220\u9664\u9009\u4e2d\u7684 ".concat(C.size," \u4e2a\u6761\u76ee\u5417\uff1f"),success:function(e){e.confirm&&((0,d.kh)(Array.from(C)),L(new Set),I(!1),M())}})},V=function(){z?(I(!1),L(new Set)):I(!0)};return(0,j.jsxs)(c.Ss,{className:"theme-".concat(s),children:[(0,j.jsx)(p.A,{}),(0,j.jsx)(b.A,{title:"\u6211\u7684\u8bbe\u8ba1\u6e05\u5355",targetSelector:".page-header.design-header"}),(0,j.jsx)(x.A,{children:(0,j.jsxs)(c.Ss,{className:"design-page",children:[(0,j.jsxs)(c.Ss,{className:"page-header design-header",style:{paddingTop:"".concat(n.statusBarHeight+12,"px")},children:[(0,j.jsx)(c.EY,{className:"header-title",children:"\u6211\u7684\u8bbe\u8ba1\u6e05\u5355"}),(0,j.jsx)(c.Ss,{className:"header-manage",onTap:V,children:(0,j.jsx)(c.EY,{children:z?"\u5b8c\u6210":"\u7ba1\u7406"})})]}),(0,j.jsx)(c.Ss,{className:"status-tabs",children:(0,j.jsx)(c.BM,{className:"tabs-scroll",scrollX:!0,children:S.map(function(e){return(0,j.jsx)(c.Ss,{className:"chip ".concat(v===e.code?"active":""),onTap:function(){return w(e.code)},children:(0,j.jsx)(c.EY,{className:"tab-label",children:e.label})},e.code)})})}),z&&(0,j.jsx)(c.Ss,{className:"batch-bar",children:(0,j.jsxs)(c.Ss,{className:"flex-between",style:{width:"100%"},children:[(0,j.jsxs)(c.Ss,{className:"batch-select-all",onTap:J,children:[(0,j.jsx)(c.Ss,{className:"batch-checkbox ".concat(C.size===_.length&&_.length>0?"checked":"")}),(0,j.jsxs)(c.EY,{className:"batch-text",children:["\u5168\u9009 (",C.size,"/",_.length,")"]})]}),(0,j.jsx)(c.Ss,{className:"batch-delete ".concat(C.size>0?"active":""),onTap:O,children:(0,j.jsx)(c.EY,{children:"\u5220\u9664"})})]})}),(0,j.jsxs)(c.BM,{className:"design-list",scrollY:!0,children:[_.map(function(e){var s=N[e.status],n=(e.productIcon||"").startsWith("/icon/")||/^https?:/i.test(e.productIcon||"")?e.productIcon:o.rj[e.productId]||"/icon/\u56db\u89d2\u661f.svg",a=(0,u.uq)(n),t=C.has(e.id);return(0,j.jsxs)(c.Ss,{className:"design-card ".concat(t?"selected":""),onTap:function(){return z?D(e.id):void 0},children:[(0,j.jsxs)(c.Ss,{className:"design-body",children:[z&&(0,j.jsx)(c.Ss,{className:"batch-checkbox ".concat(t?"checked":"")}),(0,j.jsx)(c._V,{className:"design-icon-img",src:a,mode:"aspectFit"}),(0,j.jsxs)(c.Ss,{className:"design-info",children:[(0,j.jsxs)(c.Ss,{className:"design-title-row",children:[(0,j.jsx)(c.EY,{className:"design-name",children:e.productName}),(0,j.jsx)(c.EY,{className:"badge ".concat(s.cls),children:s.label})]}),(0,j.jsxs)(c.EY,{className:"design-meta",children:["\u6570\u91cf: ",e.count," \u4ef6 | \u5355\u4ef7: \xa5",e.unitPrice]}),(0,j.jsxs)(c.EY,{className:"design-total",children:["\u5c0f\u8ba1: \xa5",(e.unitPrice*e.count).toFixed(2)]})]})]}),!z&&(0,j.jsxs)(c.Ss,{className:"design-actions",children:["ordered"!==e.status&&(0,j.jsx)(c.Ss,{className:"btn-primary design-btn",onTap:function(){return q(e)},children:(0,j.jsx)(c.EY,{children:"undesigned"===e.status?"\u5f00\u59cb\u8bbe\u8ba1":"\u7ee7\u7eed\u8bbe\u8ba1"})}),"ordered"===e.status&&(0,j.jsx)(c.Ss,{className:"btn-secondary design-btn",onTap:function(){return l().switchTab({url:"/pages/orders/index"})},children:(0,j.jsx)(c.EY,{children:"\u67e5\u770b\u8ba2\u5355"})})]})]},e.id)}),0===_.length&&(0,j.jsxs)(c.Ss,{className:"empty-state",children:[(0,j.jsx)(c._V,{className:"empty-icon-img",src:(0,u.uq)("/icon/\u8c03\u8272\u76d8.png"),mode:"aspectFit"}),(0,j.jsx)(c.EY,{className:"empty-text",children:"\u8fd8\u6ca1\u6709\u8bbe\u8ba1\u6e05\u5355"}),(0,j.jsx)(c.EY,{className:"empty-sub",children:"\u53bb\u9996\u9875\u901b\u901b\uff0c\u627e\u5230\u559c\u6b22\u7684\u5b9a\u5236\u54c1"}),(0,j.jsx)(c.Ss,{className:"btn-primary",onTap:function(){return l().switchTab({url:"/pages/index/index"})},children:(0,j.jsx)(c.EY,{children:"\u53bb\u901b\u901b"})})]})]})]})})]})}var w={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u8bbe\u8ba1\u6e05\u5355"};Page((0,a.createPageConfig)(v,"pages/designList/index",{root:{cn:[]}},w||{}))}},function(e){var s=function(s){return e(e.s=s)};e.O(0,[907,96,76],function(){return s(3512)});e.O()}]); \ No newline at end of file diff --git a/dist/pages/designList/index.wxss b/dist/pages/designList/index.wxss index 0b33107..2485875 100644 --- a/dist/pages/designList/index.wxss +++ b/dist/pages/designList/index.wxss @@ -1 +1 @@ -.design-page{min-height:100vh;padding:0 32rpx calc(220rpx + env(safe-area-inset-bottom))}.page-header.design-header{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:88rpx;padding-bottom:16rpx}.header-spacer{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;height:88rpx;width:88rpx}.header-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:36rpx;font-weight:700;text-align:center}.header-manage{color:var(--accent-secondary);font-size:28rpx;font-weight:500;text-align:center;width:88rpx}.status-tabs{margin:8rpx 0 24rpx}.tabs-scroll{white-space:nowrap}.chip{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border);border-radius:999rpx;color:var(--text-secondary);display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:26rpx;font-weight:500;height:64rpx;-webkit-justify-content:center;justify-content:center;margin-right:16rpx;padding:0 32rpx}.chip.active{background:var(--accent-primary);border-color:var(--accent-primary);color:var(--bg-page);font-weight:600}.chip .tab-label{color:inherit}.batch-bar{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:24rpx;padding:24rpx}.batch-select-all{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex}.batch-checkbox{-ms-flex-negative:0;border:2rpx solid var(--border-strong);border-radius:50%;-webkit-flex-shrink:0;flex-shrink:0;height:40rpx;-webkit-transition:background .16s ease,border-color .16s ease;transition:background .16s ease,border-color .16s ease;width:40rpx}.batch-checkbox.checked{background:var(--accent-primary);border-color:var(--accent-primary)}.batch-text{color:var(--text-primary);font-size:26rpx;margin-left:16rpx}.batch-delete{color:var(--text-secondary);font-size:26rpx;padding:12rpx 24rpx}.batch-delete.active{color:var(--danger);font-weight:600}.design-list{padding-bottom:24rpx}.design-card{background:var(--bg-card);border:1rpx solid transparent;border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);margin-bottom:24rpx;padding:24rpx;-webkit-transition:background .16s ease,border-color .16s ease;transition:background .16s ease,border-color .16s ease}.design-card.selected{background:var(--accent-primary-soft);border-color:var(--accent-primary)}.design-body{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:20rpx}.design-icon-img{-ms-flex-negative:0;background:var(--bg-input);border-radius:12rpx;-webkit-flex-shrink:0;flex-shrink:0;height:48rpx;width:48rpx}.design-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.design-title-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:8rpx}.design-name{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:30rpx;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.design-card .badge{-ms-flex-align:center;-ms-flex-pack:center;-ms-flex-negative:0;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-shrink:0;flex-shrink:0;font-size:22rpx;font-weight:600;height:40rpx;-webkit-justify-content:center;justify-content:center;line-height:1;padding:0 16rpx}.design-meta{color:var(--text-secondary);display:block;font-size:24rpx;margin-bottom:4rpx}.design-total{color:var(--accent-primary);display:block;font-size:24rpx;font-weight:600}.design-actions{-ms-flex-pack:end;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-end;justify-content:flex-end;margin-top:24rpx}.design-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:26rpx;font-weight:600;height:64rpx;-webkit-justify-content:center;justify-content:center;padding:0 32rpx}.empty-state{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:100rpx 40rpx;text-align:center}.empty-icon-img{height:88rpx;margin-bottom:24rpx;width:88rpx}.empty-text{color:var(--text-primary);font-size:32rpx;font-weight:700;margin-bottom:12rpx}.empty-sub{color:var(--text-secondary);font-size:28rpx;margin-bottom:32rpx}.empty-state .btn-primary{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:30rpx;font-weight:600;height:88rpx;-webkit-justify-content:center;justify-content:center;min-width:320rpx;padding:0 48rpx} \ No newline at end of file +.design-page{min-height:100vh;padding:0 32rpx calc(220rpx + env(safe-area-inset-bottom))}.page-header.design-header{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:88rpx;padding-bottom:32rpx}.header-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:56rpx;font-weight:800;letter-spacing:0;line-height:1.15}.header-manage{color:var(--accent-secondary);font-size:28rpx;font-weight:500;text-align:right;width:88rpx}.status-tabs{margin:8rpx 0 24rpx}.tabs-scroll{white-space:nowrap}.chip{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border);border-radius:999rpx;color:var(--text-secondary);display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:26rpx;font-weight:500;height:64rpx;-webkit-justify-content:center;justify-content:center;margin-right:16rpx;padding:0 32rpx}.chip.active{background:var(--accent-primary);border-color:var(--accent-primary);color:var(--bg-page);font-weight:600}.chip .tab-label{color:inherit}.batch-bar{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:24rpx;padding:24rpx}.batch-select-all{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex}.batch-checkbox{-ms-flex-negative:0;border:2rpx solid var(--border-strong);border-radius:50%;-webkit-flex-shrink:0;flex-shrink:0;height:40rpx;-webkit-transition:background .16s ease,border-color .16s ease;transition:background .16s ease,border-color .16s ease;width:40rpx}.batch-checkbox.checked{background:var(--accent-primary);border-color:var(--accent-primary)}.batch-text{color:var(--text-primary);font-size:26rpx;margin-left:16rpx}.batch-delete{color:var(--text-secondary);font-size:26rpx;padding:12rpx 24rpx}.batch-delete.active{color:var(--danger);font-weight:600}.design-list{padding-bottom:24rpx}.design-card{background:var(--bg-card);border:1rpx solid transparent;border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);margin-bottom:24rpx;padding:24rpx;-webkit-transition:background .16s ease,border-color .16s ease;transition:background .16s ease,border-color .16s ease}.design-card.selected{background:var(--accent-primary-soft);border-color:var(--accent-primary)}.design-body{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:20rpx}.design-icon-img{-ms-flex-negative:0;background:var(--bg-input);border-radius:12rpx;-webkit-flex-shrink:0;flex-shrink:0;height:48rpx;width:48rpx}.design-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.design-title-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:8rpx}.design-name{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:30rpx;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.design-card .badge{-ms-flex-align:center;-ms-flex-pack:center;-ms-flex-negative:0;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-shrink:0;flex-shrink:0;font-size:22rpx;font-weight:600;height:40rpx;-webkit-justify-content:center;justify-content:center;line-height:1;padding:0 16rpx}.design-meta{color:var(--text-secondary);display:block;font-size:24rpx;margin-bottom:4rpx}.design-total{color:var(--accent-primary);display:block;font-size:24rpx;font-weight:600}.design-actions{-ms-flex-pack:end;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-end;justify-content:flex-end;margin-top:24rpx}.design-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:26rpx;font-weight:600;height:64rpx;-webkit-justify-content:center;justify-content:center;padding:0 32rpx}.empty-state{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:100rpx 40rpx;text-align:center}.empty-icon-img{height:88rpx;margin-bottom:24rpx;width:88rpx}.empty-text{color:var(--text-primary);font-size:32rpx;font-weight:700;margin-bottom:12rpx}.empty-sub{color:var(--text-secondary);font-size:28rpx;margin-bottom:32rpx}.empty-state .btn-primary{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:30rpx;font-weight:600;height:88rpx;-webkit-justify-content:center;justify-content:center;min-width:320rpx;padding:0 48rpx} \ No newline at end of file diff --git a/dist/pages/diy/index.js b/dist/pages/diy/index.js index e015c39..b407ae9 100644 --- a/dist/pages/diy/index.js +++ b/dist/pages/diy/index.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[95],{8955:function(e,a,s){var t=s(7842),c=s(9379),n=s(436),i=s(5544),r=s(118),l=s(758),o=s.n(l),d=s(6540),u=s(5234),h=s(8594),m=s(9703),p=s(9201),x=s(5414),g=s(9674),f=s(3053),v=s(9513),j=s(4848);function N(){var e=(0,m.wR)(),a=(e.theme,e.resolvedTheme),s=(0,p.c)();(0,x.l)(a);var t=(0,d.useState)(null),l=(0,i.A)(t,2),N=l[0],S=l[1],y=(0,d.useState)(1),w=(0,i.A)(y,2),b=(w[0],w[1],(0,d.useState)("")),k=(0,i.A)(b,2),A=k[0],E=k[1],T=(0,d.useState)(1),Y=(0,i.A)(T,2),D=(Y[0],Y[1]),I=(0,d.useState)([]),O=(0,i.A)(I,2),P=O[0],_=O[1],F=(0,d.useState)(null),M=(0,i.A)(F,2),B=M[0],R=M[1],z=(0,d.useState)(!1),V=(0,i.A)(z,2),q=V[0],C=V[1],G=(0,d.useState)({x:0,y:0}),J=(0,i.A)(G,2),X=J[0],H=J[1],L=(0,d.useState)(!1),K=(0,i.A)(L,2),Q=K[0],U=K[1],W=(0,d.useState)(!1),Z=(0,i.A)(W,2),$=Z[0],ee=Z[1];(0,d.useEffect)(function(){var e=o().getCurrentInstance().router,a=e?e.params:void 0,s=a?a.source:void 0,t=a&&a.productId||a&&a.category;if("product"===s&&t){var c=(0,u.y9)(t);if(c){S(c),D(Number(a?a.quantity:void 0)||1);var i={id:"DSG"+Date.now(),productId:c.id,productName:c.name,productIcon:c.icon,unitPrice:c.price,count:Number(a?a.quantity:void 0)||1,status:"designing",createdAt:(new Date).toISOString().slice(0,10)},r=(0,h.p_)();(0,h.Fu)([].concat((0,n.A)(r),[i])),E(i.id)}}else if("designList"===s&&a&&a.designId){var l=a.designId,d=(0,h.p_)(),m=d.find(function(e){return e.id===l});if(m){E(l),D(m.count);var p=(0,u.y9)(m.productId);if(p&&S(p),m.designData?m.designData.stickers:void 0)_(m.designData.stickers);else if(m.designData?m.designData.imageSrc:void 0){var x={id:"legacy_"+Date.now(),src:m.designData.imageSrc,x:m.designData.imagePos&&m.designData.imagePos.x||0,y:m.designData.imagePos&&m.designData.imagePos.y||0,scale:m.designData.imagePos&&m.designData.imagePos.scale||1,width:200,height:200,isOverlapping:!1};_([x])}}}else if(t){var g=(0,u.y9)(t);if(g){S(g);var f={id:"DSG"+Date.now(),productId:g.id,productName:g.name,productIcon:g.icon,unitPrice:g.price,count:1,status:"designing",createdAt:(new Date).toISOString().slice(0,10)},v=(0,h.p_)();(0,h.Fu)([].concat((0,n.A)(v),[f])),E(f.id)}}},[]);var ae=function(e){for(var a=e.map(function(e){return(0,c.A)((0,c.A)({},e),{},{isOverlapping:!1})}),s=0;si.x&&n.yi.y&&(a[s].isOverlapping=!0,a[t].isOverlapping=!0)}var u=a.some(function(e){return e.isOverlapping});return ee(u),a},se=function(){o().chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(e){var a=e.tempFilePaths[0];o().getImageInfo({src:a,success:function(e){var s={id:"stk_"+Date.now(),src:a,x:0,y:0,scale:1,width:e.width,height:e.height,isOverlapping:!1},t=[].concat((0,n.A)(P),[s]),c=ae(t);_(c),R(s.id)},fail:function(){var e={id:"stk_"+Date.now(),src:a,x:0,y:0,scale:1,width:200,height:200,isOverlapping:!1},s=[].concat((0,n.A)(P),[e]),t=ae(s);_(t),R(e.id)}})}})},te=function(e){var a=P.filter(function(a){return a.id!==e}),s=ae(a);_(s),B===e&&R(null)},ce=function(e,a){var s=e.touches[0],t=P.find(function(e){return e.id===a});t&&(R(a),C(!0),H({x:s.clientX-t.x,y:s.clientY-t.y}))},ne=function(e){if(q&&B){var a=e.touches[0],s=P.map(function(e){return e.id!==B?e:(0,c.A)((0,c.A)({},e),{},{x:a.clientX-X.x,y:a.clientY-X.y})}),t=ae(s);_(t)}},ie=function(){return C(!1)},re=function(){B&&A&&o().navigateTo({url:"/pages/diy/stickerEdit/index?designId=".concat(A,"&stickerId=").concat(B)})},le=function(e,a){var s=P.map(function(s){return s.id!==e?s:(0,c.A)((0,c.A)({},s),{},{scale:Math.max(.3,Math.min(3,s.scale+a))})}),t=ae(s);_(t)},oe=function(){o().navigateBack()},de=function(){if(!N)return{width:300,height:420};var e={width:N.mask.width,height:N.mask.height};return"rect"===N.mask.shape&&(e.borderRadius=N.mask.borderRadius||0),"circle"===N.mask.shape&&(e.borderRadius="50%"),e},ue=function(){$?o().showToast({title:"\u8d34\u7eb8\u4e0d\u80fd\u91cd\u53e0",icon:"none"}):(A&&(0,h.i5)(A,{designData:{stickers:P,category:N}}),U(!1),o().navigateTo({url:"/pages/checkout/index?designId=".concat(A)}))},he=B?P.find(function(e){return e.id===B}):void 0,me=he?he.scale:1;return N?(0,j.jsxs)(r.Ss,{className:"theme-".concat(a),children:[(0,j.jsx)(g.A,{}),(0,j.jsx)(f.A,{title:"\u8bbe\u8ba1\u5de5\u4f5c\u53f0",targetSelector:".page-header.surface-card",showBack:!0}),(0,j.jsxs)(r.Ss,{className:"diy-page",children:[(0,j.jsx)(r.Ss,{className:"page-header surface-card mt-20",style:{paddingTop:"".concat(s.statusBarHeight+12,"px")},children:(0,j.jsxs)(r.Ss,{className:"flex-between",style:{width:"100%"},children:[(0,j.jsx)(r.EY,{className:"back-btn",onTap:oe,children:"\u2190"}),(0,j.jsx)(r.EY,{className:"page-title",children:"\u8bbe\u8ba1\u5de5\u4f5c\u53f0"}),(0,j.jsx)(r.Ss,{className:"header-spacer"})]})}),(0,j.jsx)(r.Ss,{className:"canvas-wrapper surface-card mt-20",catchMove:!0,children:(0,j.jsxs)(r.Ss,{className:"canvas-area",style:de(),children:[P.map(function(e){return(0,j.jsx)(r._V,{className:"canvas-image ".concat(e.isOverlapping?"overlap":""," ").concat(B===e.id?"active":""),src:e.src,style:{transform:"translate(".concat(e.x,"px, ").concat(e.y,"px) scale(").concat(e.scale,")"),opacity:q&&B===e.id?.8:1,zIndex:B===e.id?10:5,width:e.width||200,height:e.height||200},onTouchStart:function(a){return ce(a,e.id)},onTouchMove:ne,onTouchEnd:ie,onTap:function(){return R(e.id)},mode:"aspectFit"},e.id)}),(0,j.jsx)(r.Ss,{className:"mask-border",style:de()})]})}),(0,j.jsxs)(r.Ss,{className:"sticker-panel surface-card mt-20",children:[(0,j.jsx)(r.EY,{className:"section-title",children:"\u8d34\u7eb8"}),(0,j.jsxs)(r.Ss,{className:"sticker-list",children:[P.map(function(e){return(0,j.jsxs)(r.Ss,{className:"sticker-thumb ".concat(e.isOverlapping?"overlap":""," ").concat(B===e.id?"active":""),children:[(0,j.jsx)(r._V,{src:e.src,className:"sticker-thumb-img",mode:"aspectFit",onTap:function(){return R(e.id)}}),(0,j.jsx)(r.Ss,{className:"sticker-del",onTap:function(){return te(e.id)},children:(0,j.jsx)(r.EY,{className:"del-icon",children:"\xd7"})})]},e.id)}),(0,j.jsxs)(r.Ss,{className:"sticker-add-btn",onTap:se,children:[(0,j.jsx)(r.EY,{className:"add-icon",children:"+"}),(0,j.jsx)(r.EY,{className:"add-label",children:"\u6dfb\u52a0"})]})]}),$&&(0,j.jsx)(r.EY,{className:"overlap-hint",children:"\u6709\u8d34\u7eb8\u91cd\u53e0\uff0c\u8bf7\u8c03\u6574\u4f4d\u7f6e"})]}),B&&(0,j.jsxs)(r.Ss,{className:"toolbar surface-card mt-20",children:[(0,j.jsxs)(r.Ss,{className:"tool-row",children:[(0,j.jsx)(r.EY,{className:"tool-label",children:"\u7f29\u653e"}),(0,j.jsxs)(r.Ss,{className:"flex-center",style:{gap:"20px"},children:[(0,j.jsx)(r.Ss,{className:"tool-btn",onTap:function(){return le(B,-.1)},children:"\uff0d"}),(0,j.jsxs)(r.EY,{className:"tool-value",children:[Math.round(100*me),"%"]}),(0,j.jsx)(r.Ss,{className:"tool-btn",onTap:function(){return le(B,.1)},children:"\uff0b"})]})]}),(0,j.jsxs)(r.Ss,{className:"tool-row",children:[(0,j.jsx)(r.EY,{className:"tool-label",children:"\u63d0\u793a"}),(0,j.jsx)(r.EY,{className:"tool-hint",children:"\u62d6\u52a8\u8c03\u6574\u4f4d\u7f6e\uff0c\u8d34\u7eb8\u4e0d\u53ef\u91cd\u53e0"})]})]}),(0,j.jsx)(r.Ss,{className:"edit-btn-bar mt-20",children:(0,j.jsx)(r.Ss,{className:"edit-btn ".concat(B?"active":"disabled"),onTap:re,children:(0,j.jsx)(r.EY,{children:"\u7f16\u8f91"})})}),(0,j.jsxs)(v.A,{children:[(0,j.jsx)(r.Ss,{className:"btn-primary",onTap:function(){return U(!0)},children:(0,j.jsx)(r.EY,{children:"\u9884\u89c8\u6548\u679c"})}),(0,j.jsx)(r.Ss,{className:"btn-secondary",onTap:se,children:(0,j.jsx)(r.EY,{children:"\u6dfb\u52a0\u8d34\u7eb8"})})]}),Q&&(0,j.jsx)(r.Ss,{className:"preview-overlay",children:(0,j.jsxs)(r.Ss,{className:"preview-card surface-card",children:[(0,j.jsx)(r.EY,{className:"preview-title",children:"\u786e\u8ba4\u6548\u679c"}),(0,j.jsx)(r.Ss,{className:"preview-canvas",style:de(),children:P.map(function(e){return(0,j.jsx)(r._V,{className:"preview-image ".concat(e.isOverlapping?"overlap":""),src:e.src,style:{transform:"translate(".concat(e.x,"px, ").concat(e.y,"px) scale(").concat(e.scale,")"),width:e.width||200,height:e.height||200},mode:"aspectFit"},e.id)})}),(0,j.jsxs)(r.Ss,{className:"product-info",children:[(0,j.jsx)(r.EY,{className:"product-name",children:N.name}),(0,j.jsxs)(r.EY,{className:"product-size",children:["\u753b\u5e03\u5c3a\u5bf8: ",N.mask.width," \xd7 ",N.mask.height," px"]}),$&&(0,j.jsx)(r.EY,{className:"overlap-hint",children:"\u8d34\u7eb8\u6709\u91cd\u53e0\uff0c\u4e0d\u53ef\u63d0\u4ea4"})]}),(0,j.jsxs)(r.Ss,{className:"preview-actions",children:[(0,j.jsx)(r.Ss,{className:"btn-secondary",onTap:function(){return U(!1)},children:(0,j.jsx)(r.EY,{children:"\u8fd4\u56de\u4fee\u6539"})}),(0,j.jsx)(r.Ss,{className:"btn-primary ".concat($?"disabled":""),onTap:ue,children:(0,j.jsx)(r.EY,{children:"\u786e\u8ba4\u5b8c\u6210"})})]})]})}),(0,j.jsx)(r.Ss,{className:"safe-bottom-placeholder"})]})]}):(0,j.jsxs)(r.Ss,{className:"theme-".concat(a),children:[(0,j.jsx)(g.A,{}),(0,j.jsx)(f.A,{title:"\u8bbe\u8ba1\u5de5\u4f5c\u53f0",targetSelector:".page-header.surface-card",showBack:!0}),(0,j.jsx)(r.Ss,{className:"diy-page",children:(0,j.jsx)(r.EY,{className:"page-title",children:"\u52a0\u8f7d\u4e2d..."})})]})}var S={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"DIY\u5de5\u4f5c\u53f0"};Page((0,t.createPageConfig)(N,"pages/diy/index",{root:{cn:[]}},S||{}))}},function(e){var a=function(a){return e(e.s=a)};e.O(0,[907,96,76],function(){return a(8955)});e.O()}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[95],{8955:function(e,a,s){var t=s(7842),c=s(9379),n=s(436),i=s(5544),r=s(118),l=s(758),o=s.n(l),d=s(6540),u=s(5234),h=s(8594),m=s(9703),p=s(9201),x=s(5414),g=s(9674),f=s(3053),v=s(9513),j=s(4848);function N(){var e=(0,m.wR)(),a=(e.theme,e.resolvedTheme),s=(0,p.c)();(0,x.l)(a);var t=(0,d.useState)(null),l=(0,i.A)(t,2),N=l[0],S=l[1],y=(0,d.useState)(1),w=(0,i.A)(y,2),b=(w[0],w[1],(0,d.useState)("")),k=(0,i.A)(b,2),A=k[0],E=k[1],T=(0,d.useState)(1),Y=(0,i.A)(T,2),D=(Y[0],Y[1]),I=(0,d.useState)([]),O=(0,i.A)(I,2),P=O[0],_=O[1],F=(0,d.useState)(null),M=(0,i.A)(F,2),B=M[0],R=M[1],z=(0,d.useState)(!1),V=(0,i.A)(z,2),q=V[0],C=V[1],G=(0,d.useState)({x:0,y:0}),J=(0,i.A)(G,2),X=J[0],H=J[1],L=(0,d.useState)(!1),K=(0,i.A)(L,2),Q=K[0],U=K[1],W=(0,d.useState)(!1),Z=(0,i.A)(W,2),$=Z[0],ee=Z[1];(0,d.useEffect)(function(){var e=o().getCurrentInstance().router,a=e?e.params:void 0,s=a?a.source:void 0,t=a&&a.productId||a&&a.category;if("product"===s&&t){var c=(0,u.y9)(t);if(c){S(c),D(Number(a?a.quantity:void 0)||1);var i={id:"DSG"+Date.now(),productId:c.id,productName:c.name,productIcon:c.icon,unitPrice:c.price,count:Number(a?a.quantity:void 0)||1,status:"designing",createdAt:(new Date).toISOString().slice(0,10)},r=(0,h.p_)();(0,h.Fu)([].concat((0,n.A)(r),[i])),E(i.id)}}else if("designList"===s&&a&&a.designId){var l=a.designId,d=(0,h.p_)(),m=d.find(function(e){return e.id===l});if(m){E(l),D(m.count);var p=(0,u.y9)(m.productId);if(p&&S(p),m.designData?m.designData.stickers:void 0)_(m.designData.stickers);else if(m.designData?m.designData.imageSrc:void 0){var x={id:"legacy_"+Date.now(),src:m.designData.imageSrc,x:m.designData.imagePos&&m.designData.imagePos.x||0,y:m.designData.imagePos&&m.designData.imagePos.y||0,scale:m.designData.imagePos&&m.designData.imagePos.scale||1,width:200,height:200,isOverlapping:!1};_([x])}}}else if(t){var g=(0,u.y9)(t);if(g){S(g);var f={id:"DSG"+Date.now(),productId:g.id,productName:g.name,productIcon:g.icon,unitPrice:g.price,count:1,status:"designing",createdAt:(new Date).toISOString().slice(0,10)},v=(0,h.p_)();(0,h.Fu)([].concat((0,n.A)(v),[f])),E(f.id)}}},[]);var ae=function(e){for(var a=e.map(function(e){return(0,c.A)((0,c.A)({},e),{},{isOverlapping:!1})}),s=0;si.x&&n.yi.y&&(a[s].isOverlapping=!0,a[t].isOverlapping=!0)}var u=a.some(function(e){return e.isOverlapping});return ee(u),a},se=function(){o().chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(e){var a=e.tempFilePaths[0];o().getImageInfo({src:a,success:function(e){var s={id:"stk_"+Date.now(),src:a,x:0,y:0,scale:1,width:e.width,height:e.height,isOverlapping:!1},t=[].concat((0,n.A)(P),[s]),c=ae(t);_(c),R(s.id)},fail:function(){var e={id:"stk_"+Date.now(),src:a,x:0,y:0,scale:1,width:200,height:200,isOverlapping:!1},s=[].concat((0,n.A)(P),[e]),t=ae(s);_(t),R(e.id)}})}})},te=function(e){var a=P.filter(function(a){return a.id!==e}),s=ae(a);_(s),B===e&&R(null)},ce=function(e,a){var s=e.touches[0],t=P.find(function(e){return e.id===a});t&&(R(a),C(!0),H({x:s.clientX-t.x,y:s.clientY-t.y}))},ne=function(e){if(q&&B){var a=e.touches[0],s=P.map(function(e){return e.id!==B?e:(0,c.A)((0,c.A)({},e),{},{x:a.clientX-X.x,y:a.clientY-X.y})}),t=ae(s);_(t)}},ie=function(){return C(!1)},re=function(){B&&A&&o().navigateTo({url:"/pages/diy/stickerEdit/index?designId=".concat(A,"&stickerId=").concat(B)})},le=function(e,a){var s=P.map(function(s){return s.id!==e?s:(0,c.A)((0,c.A)({},s),{},{scale:Math.max(.3,Math.min(3,s.scale+a))})}),t=ae(s);_(t)},oe=function(){o().navigateBack()},de=function(){if(!N)return{width:300,height:420};var e={width:N.mask.width,height:N.mask.height};return"rect"===N.mask.shape&&(e.borderRadius=N.mask.borderRadius||0),"circle"===N.mask.shape&&(e.borderRadius="50%"),e},ue=function(){$?o().showToast({title:"\u8d34\u7eb8\u4e0d\u80fd\u91cd\u53e0",icon:"none"}):(A&&(0,h.i5)(A,{designData:{stickers:P,category:N}}),U(!1),o().navigateTo({url:"/pages/checkout/index?designId=".concat(A)}))},he=B?P.find(function(e){return e.id===B}):void 0,me=he?he.scale:1;return N?(0,j.jsxs)(r.Ss,{className:"theme-".concat(a),children:[(0,j.jsx)(g.A,{}),(0,j.jsx)(f.A,{title:"\u8bbe\u8ba1\u5de5\u4f5c\u53f0",targetSelector:".page-header.surface-card",showBack:!0}),(0,j.jsxs)(r.Ss,{className:"diy-page",children:[(0,j.jsx)(r.Ss,{className:"page-header surface-card",style:{paddingTop:"".concat(s.statusBarHeight+12,"px")},children:(0,j.jsxs)(r.Ss,{className:"flex-between",style:{width:"100%"},children:[(0,j.jsx)(r.EY,{className:"back-btn",onTap:oe,children:"\u2190"}),(0,j.jsx)(r.EY,{className:"page-title",children:"\u8bbe\u8ba1\u5de5\u4f5c\u53f0"}),(0,j.jsx)(r.Ss,{className:"header-spacer"})]})}),(0,j.jsx)(r.Ss,{className:"canvas-wrapper surface-card mt-20",catchMove:!0,children:(0,j.jsxs)(r.Ss,{className:"canvas-area",style:de(),children:[P.map(function(e){return(0,j.jsx)(r._V,{className:"canvas-image ".concat(e.isOverlapping?"overlap":""," ").concat(B===e.id?"active":""),src:e.src,style:{transform:"translate(".concat(e.x,"px, ").concat(e.y,"px) scale(").concat(e.scale,")"),opacity:q&&B===e.id?.8:1,zIndex:B===e.id?10:5,width:e.width||200,height:e.height||200},onTouchStart:function(a){return ce(a,e.id)},onTouchMove:ne,onTouchEnd:ie,onTap:function(){return R(e.id)},mode:"aspectFit"},e.id)}),(0,j.jsx)(r.Ss,{className:"mask-border",style:de()})]})}),(0,j.jsxs)(r.Ss,{className:"sticker-panel surface-card mt-20",children:[(0,j.jsx)(r.EY,{className:"section-title",children:"\u8d34\u7eb8"}),(0,j.jsxs)(r.Ss,{className:"sticker-list",children:[P.map(function(e){return(0,j.jsxs)(r.Ss,{className:"sticker-thumb ".concat(e.isOverlapping?"overlap":""," ").concat(B===e.id?"active":""),children:[(0,j.jsx)(r._V,{src:e.src,className:"sticker-thumb-img",mode:"aspectFit",onTap:function(){return R(e.id)}}),(0,j.jsx)(r.Ss,{className:"sticker-del",onTap:function(){return te(e.id)},children:(0,j.jsx)(r.EY,{className:"del-icon",children:"\xd7"})})]},e.id)}),(0,j.jsxs)(r.Ss,{className:"sticker-add-btn",onTap:se,children:[(0,j.jsx)(r.EY,{className:"add-icon",children:"+"}),(0,j.jsx)(r.EY,{className:"add-label",children:"\u6dfb\u52a0"})]})]}),$&&(0,j.jsx)(r.EY,{className:"overlap-hint",children:"\u6709\u8d34\u7eb8\u91cd\u53e0\uff0c\u8bf7\u8c03\u6574\u4f4d\u7f6e"})]}),B&&(0,j.jsxs)(r.Ss,{className:"toolbar surface-card mt-20",children:[(0,j.jsxs)(r.Ss,{className:"tool-row",children:[(0,j.jsx)(r.EY,{className:"tool-label",children:"\u7f29\u653e"}),(0,j.jsxs)(r.Ss,{className:"flex-center",style:{gap:"20px"},children:[(0,j.jsx)(r.Ss,{className:"tool-btn",onTap:function(){return le(B,-.1)},children:"\uff0d"}),(0,j.jsxs)(r.EY,{className:"tool-value",children:[Math.round(100*me),"%"]}),(0,j.jsx)(r.Ss,{className:"tool-btn",onTap:function(){return le(B,.1)},children:"\uff0b"})]})]}),(0,j.jsxs)(r.Ss,{className:"tool-row",children:[(0,j.jsx)(r.EY,{className:"tool-label",children:"\u63d0\u793a"}),(0,j.jsx)(r.EY,{className:"tool-hint",children:"\u62d6\u52a8\u8c03\u6574\u4f4d\u7f6e\uff0c\u8d34\u7eb8\u4e0d\u53ef\u91cd\u53e0"})]})]}),(0,j.jsx)(r.Ss,{className:"edit-btn-bar mt-20",children:(0,j.jsx)(r.Ss,{className:"edit-btn ".concat(B?"active":"disabled"),onTap:re,children:(0,j.jsx)(r.EY,{children:"\u7f16\u8f91"})})}),(0,j.jsxs)(v.A,{children:[(0,j.jsx)(r.Ss,{className:"btn-primary",onTap:function(){return U(!0)},children:(0,j.jsx)(r.EY,{children:"\u9884\u89c8\u6548\u679c"})}),(0,j.jsx)(r.Ss,{className:"btn-secondary",onTap:se,children:(0,j.jsx)(r.EY,{children:"\u6dfb\u52a0\u8d34\u7eb8"})})]}),Q&&(0,j.jsx)(r.Ss,{className:"preview-overlay",children:(0,j.jsxs)(r.Ss,{className:"preview-card surface-card",children:[(0,j.jsx)(r.EY,{className:"preview-title",children:"\u786e\u8ba4\u6548\u679c"}),(0,j.jsx)(r.Ss,{className:"preview-canvas",style:de(),children:P.map(function(e){return(0,j.jsx)(r._V,{className:"preview-image ".concat(e.isOverlapping?"overlap":""),src:e.src,style:{transform:"translate(".concat(e.x,"px, ").concat(e.y,"px) scale(").concat(e.scale,")"),width:e.width||200,height:e.height||200},mode:"aspectFit"},e.id)})}),(0,j.jsxs)(r.Ss,{className:"product-info",children:[(0,j.jsx)(r.EY,{className:"product-name",children:N.name}),(0,j.jsxs)(r.EY,{className:"product-size",children:["\u753b\u5e03\u5c3a\u5bf8: ",N.mask.width," \xd7 ",N.mask.height," px"]}),$&&(0,j.jsx)(r.EY,{className:"overlap-hint",children:"\u8d34\u7eb8\u6709\u91cd\u53e0\uff0c\u4e0d\u53ef\u63d0\u4ea4"})]}),(0,j.jsxs)(r.Ss,{className:"preview-actions",children:[(0,j.jsx)(r.Ss,{className:"btn-secondary",onTap:function(){return U(!1)},children:(0,j.jsx)(r.EY,{children:"\u8fd4\u56de\u4fee\u6539"})}),(0,j.jsx)(r.Ss,{className:"btn-primary ".concat($?"disabled":""),onTap:ue,children:(0,j.jsx)(r.EY,{children:"\u786e\u8ba4\u5b8c\u6210"})})]})]})}),(0,j.jsx)(r.Ss,{className:"safe-bottom-placeholder"})]})]}):(0,j.jsxs)(r.Ss,{className:"theme-".concat(a),children:[(0,j.jsx)(g.A,{}),(0,j.jsx)(f.A,{title:"\u8bbe\u8ba1\u5de5\u4f5c\u53f0",targetSelector:".page-header.surface-card",showBack:!0}),(0,j.jsx)(r.Ss,{className:"diy-page",children:(0,j.jsx)(r.EY,{className:"page-title",children:"\u52a0\u8f7d\u4e2d..."})})]})}var S={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"DIY\u5de5\u4f5c\u53f0"};Page((0,t.createPageConfig)(N,"pages/diy/index",{root:{cn:[]}},S||{}))}},function(e){var a=function(a){return e(e.s=a)};e.O(0,[907,96,76],function(){return a(8955)});e.O()}]); \ No newline at end of file diff --git a/dist/pages/orderDetail/index.js b/dist/pages/orderDetail/index.js index 83fb66b..7671e80 100644 --- a/dist/pages/orderDetail/index.js +++ b/dist/pages/orderDetail/index.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[154],{6382:function(s,e,a){var c=a(7842),l=a(9379),r=a(5544),i=a(118),n=a(758),d=a.n(n),t=a(6540),m=a(9703),o=a(9201),h=a(5414),x=a(9674),j=a(3053),N=a(8594),u=a(5234),p=a(8199),S=a(4848);function g(){var s=(0,m.wR)(),e=(s.theme,s.resolvedTheme),a=(0,o.c)();(0,h.l)(e);var c=d().getCurrentInstance().router,n=c?c.params:{},g=n&&n.orderId||"",E=(0,t.useState)(null),Y=(0,r.A)(E,2),f=Y[0],k=Y[1],v=(0,t.useState)(null),w=(0,r.A)(v,2),b=w[0],C=w[1],T=(0,t.useState)(!1),A=(0,r.A)(T,2),y=A[0],B=A[1],I=(0,t.useState)([]),F=(0,r.A)(I,2),q=F[0],P=F[1];(0,t.useEffect)(function(){var s=(0,N.n7)(),e=s.find(function(s){return s.id===g});e&&(k(e),e.address?C(e.address):C((0,N.EB)())),P((0,N.Re)())},[g]);var V=function(s){C(s),B(!1);var e=(0,N.n7)(),a=e.findIndex(function(s){return s.id===g});a>=0&&(e[a]=(0,l.A)((0,l.A)({},e[a]),{},{address:s})),d().showToast({title:"\u5730\u5740\u5df2\u66f4\u6539",icon:"success"})};return f?(0,S.jsxs)(i.Ss,{className:"theme-".concat(e),children:[(0,S.jsx)(x.A,{}),(0,S.jsx)(j.A,{title:"\u8ba2\u5355\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,S.jsxs)(i.Ss,{className:"order-detail-page",children:[(0,S.jsx)(i.Ss,{className:"page-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:(0,S.jsxs)(i.Ss,{className:"page-header-inner",children:[(0,S.jsx)(i.Ss,{className:"back-btn",onTap:function(){return d().navigateBack()},children:(0,S.jsx)(i.EY,{className:"back-arrow",children:"\u2190"})}),(0,S.jsx)(i.EY,{className:"nav-title",children:"\u8ba2\u5355\u8be6\u60c5"}),(0,S.jsx)(i.Ss,{className:"nav-placeholder"})]})}),(0,S.jsxs)(i.Ss,{className:"status-banner surface-card",children:[(0,S.jsxs)(i.EY,{className:"status-text",children:["pending"===f.statusCode&&"\u5f85\u4ed8\u6b3e","paid"===f.statusCode&&"\u5f85\u53d1\u8d27","shipping"===f.statusCode&&"\u5f85\u6536\u8d27","done"===f.statusCode&&"\u5df2\u5b8c\u6210"]}),(0,S.jsxs)(i.EY,{className:"status-desc",children:["pending"===f.statusCode&&"\u8bf7\u572830\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8","paid"===f.statusCode&&"\u5546\u54c1\u6b63\u5728\u6253\u5305\u4e2d\uff0c\u5373\u5c06\u53d1\u8d27","shipping"===f.statusCode&&"\u5feb\u9012\u8fd0\u8f93\u4e2d\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536","done"===f.statusCode&&"\u4ea4\u6613\u5df2\u5b8c\u6210\uff0c\u611f\u8c22\u60e0\u987e"]})]}),("shipping"===f.statusCode||"done"===f.statusCode)&&(0,S.jsxs)(i.Ss,{className:"logistics-card detail-card surface-card",children:[(0,S.jsxs)(i.Ss,{className:"logistics-header",children:[(0,S.jsxs)(i.Ss,{className:"flex-center",children:[(0,S.jsx)(i._V,{className:"card-icon-img",src:(0,p.uq)("/icon/\u5305\u88f9.png"),mode:"aspectFit"}),(0,S.jsx)(i.EY,{className:"logistics-title",children:"\u7269\u6d41\u4fe1\u606f"})]}),(0,S.jsx)(i.EY,{className:"logistics-num",children:"\u5355\u53f7: SF1234567890"})]}),(0,S.jsxs)(i.Ss,{className:"timeline",children:[(0,S.jsxs)(i.Ss,{className:"timeline-item active",children:[(0,S.jsx)(i.Ss,{className:"timeline-dot"}),(0,S.jsxs)(i.Ss,{className:"timeline-content",children:[(0,S.jsx)(i.EY,{className:"timeline-status",children:"\u8fd0\u8f93\u4e2d"}),(0,S.jsx)(i.EY,{className:"timeline-time",children:"2024-01-15 14:30"}),(0,S.jsx)(i.EY,{className:"timeline-desc",children:"\u3010\u5317\u4eac\u5e02\u3011\u5feb\u4ef6\u5df2\u5230\u8fbe\u5317\u4eac\u671d\u9633\u8f6c\u8fd0\u4e2d\u5fc3"})]})]}),(0,S.jsxs)(i.Ss,{className:"timeline-item",children:[(0,S.jsx)(i.Ss,{className:"timeline-dot"}),(0,S.jsxs)(i.Ss,{className:"timeline-content",children:[(0,S.jsx)(i.EY,{className:"timeline-status",children:"\u5df2\u53d1\u8d27"}),(0,S.jsx)(i.EY,{className:"timeline-time",children:"2024-01-15 09:00"}),(0,S.jsx)(i.EY,{className:"timeline-desc",children:"\u3010\u6df1\u5733\u5e02\u3011\u5546\u5bb6\u5df2\u53d1\u8d27\uff0c\u7b49\u5f85\u63fd\u6536"})]})]}),(0,S.jsxs)(i.Ss,{className:"timeline-item",children:[(0,S.jsx)(i.Ss,{className:"timeline-dot"}),(0,S.jsxs)(i.Ss,{className:"timeline-content",children:[(0,S.jsx)(i.EY,{className:"timeline-status",children:"\u5df2\u4e0b\u5355"}),(0,S.jsx)(i.EY,{className:"timeline-time",children:"2024-01-14 20:15"}),(0,S.jsx)(i.EY,{className:"timeline-desc",children:"\u8ba2\u5355\u5df2\u751f\u6210\uff0c\u7b49\u5f85\u5546\u5bb6\u53d1\u8d27"})]})]})]})]}),(0,S.jsxs)(i.Ss,{className:"product-card detail-card surface-card",children:[(0,S.jsxs)(i.Ss,{className:"product-row",children:[(0,S.jsx)(i.Ss,{className:"product-icon-wrapper",children:(0,S.jsx)(i._V,{className:"product-icon-img",src:(0,p.uq)((f.productIcon||"").startsWith("/icon/")||/^https?:/i.test(f.productIcon||"")?f.productIcon:u.rj[f.productId]||"/icon/\u56db\u89d2\u661f.svg"),mode:"aspectFit"})}),(0,S.jsxs)(i.Ss,{className:"product-info",children:[(0,S.jsx)(i.EY,{className:"product-name",children:f.productName}),(0,S.jsx)(i.EY,{className:"product-sku",children:f.sku})]})]}),(0,S.jsxs)(i.Ss,{className:"price-row",children:[(0,S.jsx)(i.EY,{className:"price-label",children:"\u5b9e\u4ed8\u6b3e"}),(0,S.jsx)(i.EY,{className:"price-value",children:f.price})]})]}),(0,S.jsxs)(i.Ss,{className:"address-card detail-card surface-card",children:[(0,S.jsxs)(i.Ss,{className:"address-header",children:[(0,S.jsxs)(i.Ss,{className:"flex-center",children:[(0,S.jsx)(i._V,{className:"card-icon-img",src:(0,p.uq)("/icon/\u5730\u5740.png"),mode:"aspectFit"}),(0,S.jsx)(i.EY,{className:"address-title",children:"\u6536\u8d27\u5730\u5740"})]}),(0,S.jsx)(i.Ss,{className:"address-change",onTap:function(){return B(!0)},children:(0,S.jsx)(i.EY,{className:"change-text",children:"\u66f4\u6539\u6536\u8d27\u5730\u5740"})})]}),b?(0,S.jsxs)(i.Ss,{className:"address-body",children:[(0,S.jsxs)(i.Ss,{className:"address-row",children:[(0,S.jsx)(i.EY,{className:"address-name",children:b.name}),(0,S.jsx)(i.EY,{className:"address-phone",children:b.phone})]}),(0,S.jsxs)(i.EY,{className:"address-detail",children:[(b.region||[]).join(" ")," ",b.detail]})]}):(0,S.jsx)(i.Ss,{className:"address-empty",children:(0,S.jsx)(i.EY,{children:"\u6682\u65e0\u6536\u8d27\u5730\u5740\uff0c\u8bf7\u5148\u6dfb\u52a0"})})]}),(0,S.jsxs)(i.Ss,{className:"meta-card detail-card surface-card",children:[(0,S.jsx)(i.EY,{className:"meta-title",children:"\u8ba2\u5355\u4fe1\u606f"}),(0,S.jsxs)(i.Ss,{className:"meta-row",children:[(0,S.jsx)(i.EY,{className:"meta-label",children:"\u8ba2\u5355\u7f16\u53f7"}),(0,S.jsx)(i.EY,{className:"meta-value",children:f.id})]}),(0,S.jsxs)(i.Ss,{className:"meta-row",children:[(0,S.jsx)(i.EY,{className:"meta-label",children:"\u521b\u5efa\u65f6\u95f4"}),(0,S.jsx)(i.EY,{className:"meta-value",children:f.date})]}),(0,S.jsxs)(i.Ss,{className:"meta-row",children:[(0,S.jsx)(i.EY,{className:"meta-label",children:"\u6570\u91cf"}),(0,S.jsxs)(i.EY,{className:"meta-value",children:[f.count," \u4ef6"]})]})]}),(0,S.jsx)(i.Ss,{className:"page-bottom-spacer"}),y&&(0,S.jsx)(i.Ss,{className:"modal-overlay",style:{alignItems:"flex-end",justifyContent:"flex-end"},children:(0,S.jsxs)(i.Ss,{className:"addr-picker-sheet surface-card",children:[(0,S.jsxs)(i.Ss,{className:"addr-picker-header",children:[(0,S.jsx)(i.EY,{className:"addr-picker-title",children:"\u9009\u62e9\u6536\u8d27\u5730\u5740"}),(0,S.jsx)(i.EY,{className:"addr-picker-close",onTap:function(){return B(!1)},children:"\u2715"})]}),(0,S.jsxs)(i.Ss,{className:"addr-picker-list",children:[q.map(function(s){return(0,S.jsxs)(i.Ss,{className:"addr-picker-item ".concat(b&&b.id===s.id?"active":""),onTap:function(){return V(s)},children:[(0,S.jsxs)(i.Ss,{className:"addr-picker-row",children:[(0,S.jsx)(i.EY,{className:"addr-picker-name",children:s.name}),(0,S.jsx)(i.EY,{className:"addr-picker-phone",children:s.phone}),s.isDefault&&(0,S.jsx)(i.EY,{className:"addr-picker-default",children:"\u9ed8\u8ba4"})]}),(0,S.jsxs)(i.EY,{className:"addr-picker-detail",children:[(s.region||[]).join(" ")," ",s.detail]})]},s.id)}),0===q.length&&(0,S.jsx)(i.Ss,{className:"addr-picker-empty",children:(0,S.jsx)(i.EY,{children:"\u6682\u65e0\u5730\u5740\uff0c\u8bf7\u5148\u6dfb\u52a0\u6536\u8d27\u5730\u5740"})})]}),(0,S.jsx)(i.Ss,{className:"addr-picker-add",onTap:function(){B(!1),d().navigateTo({url:"/pages/address/index"})},children:(0,S.jsx)(i.EY,{className:"addr-picker-add-text",children:"+ \u65b0\u5efa\u6536\u8d27\u5730\u5740"})})]})})]})]}):(0,S.jsxs)(i.Ss,{className:"theme-".concat(e),children:[(0,S.jsx)(x.A,{}),(0,S.jsx)(j.A,{title:"\u8ba2\u5355\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,S.jsx)(i.Ss,{className:"order-detail-page",children:(0,S.jsx)(i.Ss,{className:"page-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:(0,S.jsxs)(i.Ss,{className:"page-header-inner",children:[(0,S.jsx)(i.Ss,{className:"back-btn",onTap:function(){return d().navigateBack()},children:(0,S.jsx)(i.EY,{className:"back-arrow",children:"\u2190"})}),(0,S.jsx)(i.EY,{className:"nav-title",children:"\u8ba2\u5355\u4e0d\u5b58\u5728"}),(0,S.jsx)(i.Ss,{className:"nav-placeholder"})]})})})]})}var E={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u8ba2\u5355\u8be6\u60c5"};Page((0,c.createPageConfig)(g,"pages/orderDetail/index",{root:{cn:[]}},E||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(6382)});s.O()}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[154],{6382:function(s,e,a){var c=a(7842),l=a(9379),r=a(5544),i=a(118),n=a(758),d=a.n(n),t=a(6540),m=a(9703),o=a(9201),h=a(5414),x=a(9674),j=a(3053),N=a(8594),u=a(5234),p=a(8199),S=a(4848);function g(){var s=(0,m.wR)(),e=(s.theme,s.resolvedTheme),a=(0,o.c)();(0,h.l)(e);var c=d().getCurrentInstance().router,n=c?c.params:{},g=n&&n.orderId||"",E=(0,t.useState)(null),Y=(0,r.A)(E,2),f=Y[0],k=Y[1],v=(0,t.useState)(null),w=(0,r.A)(v,2),b=w[0],C=w[1],T=(0,t.useState)(!1),A=(0,r.A)(T,2),y=A[0],B=A[1],I=(0,t.useState)([]),F=(0,r.A)(I,2),q=F[0],P=F[1];(0,t.useEffect)(function(){var s=(0,N.n7)(),e=s.find(function(s){return s.id===g});e&&(k(e),e.address?C(e.address):C((0,N.EB)())),P((0,N.Re)())},[g]);var V=function(s){C(s),B(!1);var e=(0,N.n7)(),a=e.findIndex(function(s){return s.id===g});a>=0&&(e[a]=(0,l.A)((0,l.A)({},e[a]),{},{address:s})),d().showToast({title:"\u5730\u5740\u5df2\u66f4\u6539",icon:"success"})};return f?(0,S.jsxs)(i.Ss,{className:"theme-".concat(e),children:[(0,S.jsx)(x.A,{}),(0,S.jsx)(j.A,{title:"\u8ba2\u5355\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,S.jsxs)(i.Ss,{className:"order-detail-page",children:[(0,S.jsx)(i.Ss,{className:"page-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:(0,S.jsxs)(i.Ss,{className:"page-header-inner",children:[(0,S.jsx)(i.Ss,{className:"back-btn",onTap:function(){return d().navigateBack()},children:(0,S.jsx)(i.EY,{className:"back-arrow",children:"\u2190"})}),(0,S.jsx)(i.EY,{className:"nav-title",children:"\u8ba2\u5355\u8be6\u60c5"}),(0,S.jsx)(i.Ss,{className:"nav-placeholder"})]})}),(0,S.jsxs)(i.Ss,{className:"status-banner surface-card",children:[(0,S.jsxs)(i.EY,{className:"status-text",children:["pending"===f.statusCode&&"\u5f85\u4ed8\u6b3e","paid"===f.statusCode&&"\u5f85\u53d1\u8d27","shipping"===f.statusCode&&"\u5f85\u6536\u8d27","done"===f.statusCode&&"\u5df2\u5b8c\u6210"]}),(0,S.jsxs)(i.EY,{className:"status-desc",children:["pending"===f.statusCode&&"\u8bf7\u572830\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8","paid"===f.statusCode&&"\u5546\u54c1\u6b63\u5728\u6253\u5305\u4e2d\uff0c\u5373\u5c06\u53d1\u8d27","shipping"===f.statusCode&&"\u5feb\u9012\u8fd0\u8f93\u4e2d\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536","done"===f.statusCode&&"\u4ea4\u6613\u5df2\u5b8c\u6210\uff0c\u611f\u8c22\u60e0\u987e"]})]}),("shipping"===f.statusCode||"done"===f.statusCode)&&(0,S.jsxs)(i.Ss,{className:"logistics-card detail-card surface-card",children:[(0,S.jsxs)(i.Ss,{className:"logistics-header",children:[(0,S.jsxs)(i.Ss,{className:"flex-center",children:[(0,S.jsx)(i._V,{className:"card-icon-img",src:(0,p.uq)("/icon/\u5305\u88f9.png"),mode:"aspectFit"}),(0,S.jsx)(i.EY,{className:"logistics-title",children:"\u7269\u6d41\u4fe1\u606f"})]}),(0,S.jsx)(i.EY,{className:"logistics-num",children:"\u5355\u53f7: SF1234567890"})]}),(0,S.jsxs)(i.Ss,{className:"timeline",children:[(0,S.jsxs)(i.Ss,{className:"timeline-item active",children:[(0,S.jsx)(i.Ss,{className:"timeline-dot"}),(0,S.jsxs)(i.Ss,{className:"timeline-content",children:[(0,S.jsx)(i.EY,{className:"timeline-status",children:"\u8fd0\u8f93\u4e2d"}),(0,S.jsx)(i.EY,{className:"timeline-time",children:"2024-01-15 14:30"}),(0,S.jsx)(i.EY,{className:"timeline-desc",children:"\u3010\u5317\u4eac\u5e02\u3011\u5feb\u4ef6\u5df2\u5230\u8fbe\u5317\u4eac\u671d\u9633\u8f6c\u8fd0\u4e2d\u5fc3"})]})]}),(0,S.jsxs)(i.Ss,{className:"timeline-item",children:[(0,S.jsx)(i.Ss,{className:"timeline-dot"}),(0,S.jsxs)(i.Ss,{className:"timeline-content",children:[(0,S.jsx)(i.EY,{className:"timeline-status",children:"\u5df2\u53d1\u8d27"}),(0,S.jsx)(i.EY,{className:"timeline-time",children:"2024-01-15 09:00"}),(0,S.jsx)(i.EY,{className:"timeline-desc",children:"\u3010\u6df1\u5733\u5e02\u3011\u5546\u5bb6\u5df2\u53d1\u8d27\uff0c\u7b49\u5f85\u63fd\u6536"})]})]}),(0,S.jsxs)(i.Ss,{className:"timeline-item",children:[(0,S.jsx)(i.Ss,{className:"timeline-dot"}),(0,S.jsxs)(i.Ss,{className:"timeline-content",children:[(0,S.jsx)(i.EY,{className:"timeline-status",children:"\u5df2\u4e0b\u5355"}),(0,S.jsx)(i.EY,{className:"timeline-time",children:"2024-01-14 20:15"}),(0,S.jsx)(i.EY,{className:"timeline-desc",children:"\u8ba2\u5355\u5df2\u751f\u6210\uff0c\u7b49\u5f85\u5546\u5bb6\u53d1\u8d27"})]})]})]})]}),(0,S.jsxs)(i.Ss,{className:"product-card detail-card surface-card",children:[(0,S.jsxs)(i.Ss,{className:"product-row",children:[(0,S.jsx)(i.Ss,{className:"product-icon-wrapper",children:(0,S.jsx)(i._V,{className:"product-icon-img",src:(0,p.uq)((f.productIcon||"").startsWith("/icon/")||/^https?:/i.test(f.productIcon||"")?f.productIcon:u.rj[f.productId]||"/icon/\u56db\u89d2\u661f.svg"),mode:"aspectFit"})}),(0,S.jsxs)(i.Ss,{className:"product-info",children:[(0,S.jsx)(i.EY,{className:"product-name",children:f.productName}),(0,S.jsx)(i.EY,{className:"product-sku",children:f.sku})]})]}),(0,S.jsxs)(i.Ss,{className:"price-row",children:[(0,S.jsx)(i.EY,{className:"price-label",children:"\u5b9e\u4ed8\u6b3e"}),(0,S.jsx)(i.EY,{className:"price-value",children:f.price})]})]}),(0,S.jsxs)(i.Ss,{className:"address-card detail-card surface-card",children:[(0,S.jsxs)(i.Ss,{className:"address-header",children:[(0,S.jsxs)(i.Ss,{className:"flex-center",children:[(0,S.jsx)(i._V,{className:"card-icon-img",src:(0,p.uq)("/icon/\u5730\u5740.png"),mode:"aspectFit"}),(0,S.jsx)(i.EY,{className:"address-title",children:"\u6536\u8d27\u5730\u5740"})]}),(0,S.jsx)(i.Ss,{className:"address-change",onTap:function(){return B(!0)},children:(0,S.jsx)(i.EY,{className:"change-text",children:"\u66f4\u6539\u6536\u8d27\u5730\u5740"})})]}),b?(0,S.jsxs)(i.Ss,{className:"address-body",children:[(0,S.jsxs)(i.Ss,{className:"address-row",children:[(0,S.jsx)(i.EY,{className:"address-name",children:b.name}),(0,S.jsx)(i.EY,{className:"address-phone",children:b.phone})]}),(0,S.jsxs)(i.EY,{className:"address-detail",children:[(b.region||[]).join(" ")," ",b.detail]})]}):(0,S.jsx)(i.Ss,{className:"address-empty",children:(0,S.jsx)(i.EY,{children:"\u6682\u65e0\u6536\u8d27\u5730\u5740\uff0c\u8bf7\u5148\u6dfb\u52a0"})})]}),(0,S.jsxs)(i.Ss,{className:"meta-card detail-card surface-card",children:[(0,S.jsx)(i.EY,{className:"meta-title",children:"\u8ba2\u5355\u4fe1\u606f"}),(0,S.jsxs)(i.Ss,{className:"meta-row",children:[(0,S.jsx)(i.EY,{className:"meta-label",children:"\u8ba2\u5355\u7f16\u53f7"}),(0,S.jsx)(i.EY,{className:"meta-value",children:f.id})]}),(0,S.jsxs)(i.Ss,{className:"meta-row",children:[(0,S.jsx)(i.EY,{className:"meta-label",children:"\u521b\u5efa\u65f6\u95f4"}),(0,S.jsx)(i.EY,{className:"meta-value",children:f.date})]}),(0,S.jsxs)(i.Ss,{className:"meta-row",children:[(0,S.jsx)(i.EY,{className:"meta-label",children:"\u6570\u91cf"}),(0,S.jsxs)(i.EY,{className:"meta-value",children:[f.count," \u4ef6"]})]})]}),y&&(0,S.jsx)(i.Ss,{className:"modal-overlay",style:{alignItems:"flex-end",justifyContent:"flex-end"},children:(0,S.jsxs)(i.Ss,{className:"addr-picker-sheet surface-card",children:[(0,S.jsxs)(i.Ss,{className:"addr-picker-header",children:[(0,S.jsx)(i.EY,{className:"addr-picker-title",children:"\u9009\u62e9\u6536\u8d27\u5730\u5740"}),(0,S.jsx)(i.EY,{className:"addr-picker-close",onTap:function(){return B(!1)},children:"\u2715"})]}),(0,S.jsxs)(i.Ss,{className:"addr-picker-list",children:[q.map(function(s){return(0,S.jsxs)(i.Ss,{className:"addr-picker-item ".concat(b&&b.id===s.id?"active":""),onTap:function(){return V(s)},children:[(0,S.jsxs)(i.Ss,{className:"addr-picker-row",children:[(0,S.jsx)(i.EY,{className:"addr-picker-name",children:s.name}),(0,S.jsx)(i.EY,{className:"addr-picker-phone",children:s.phone}),s.isDefault&&(0,S.jsx)(i.EY,{className:"addr-picker-default",children:"\u9ed8\u8ba4"})]}),(0,S.jsxs)(i.EY,{className:"addr-picker-detail",children:[(s.region||[]).join(" ")," ",s.detail]})]},s.id)}),0===q.length&&(0,S.jsx)(i.Ss,{className:"addr-picker-empty",children:(0,S.jsx)(i.EY,{children:"\u6682\u65e0\u5730\u5740\uff0c\u8bf7\u5148\u6dfb\u52a0\u6536\u8d27\u5730\u5740"})})]}),(0,S.jsx)(i.Ss,{className:"addr-picker-add",onTap:function(){B(!1),d().navigateTo({url:"/pages/address/index"})},children:(0,S.jsx)(i.EY,{className:"addr-picker-add-text",children:"+ \u65b0\u5efa\u6536\u8d27\u5730\u5740"})})]})})]})]}):(0,S.jsxs)(i.Ss,{className:"theme-".concat(e),children:[(0,S.jsx)(x.A,{}),(0,S.jsx)(j.A,{title:"\u8ba2\u5355\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,S.jsx)(i.Ss,{className:"order-detail-page",children:(0,S.jsx)(i.Ss,{className:"page-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:(0,S.jsxs)(i.Ss,{className:"page-header-inner",children:[(0,S.jsx)(i.Ss,{className:"back-btn",onTap:function(){return d().navigateBack()},children:(0,S.jsx)(i.EY,{className:"back-arrow",children:"\u2190"})}),(0,S.jsx)(i.EY,{className:"nav-title",children:"\u8ba2\u5355\u4e0d\u5b58\u5728"}),(0,S.jsx)(i.Ss,{className:"nav-placeholder"})]})})})]})}var E={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u8ba2\u5355\u8be6\u60c5"};Page((0,c.createPageConfig)(g,"pages/orderDetail/index",{root:{cn:[]}},E||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(6382)});s.O()}]); \ No newline at end of file diff --git a/dist/pages/orderDetail/index.wxss b/dist/pages/orderDetail/index.wxss index bfc8511..6a65c0d 100644 --- a/dist/pages/orderDetail/index.wxss +++ b/dist/pages/orderDetail/index.wxss @@ -1 +1 @@ -.order-detail-page{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 32rpx calc(64rpx + env(safe-area-inset-bottom))}.page-header{margin-bottom:24rpx;padding:0}.page-header-inner{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;min-height:88rpx}.back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:50%;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;width:88rpx}.back-btn:active{-webkit-transform:scale(.96);-ms-transform:scale(.96);transform:scale(.96)}.back-arrow{color:var(--text-primary);font-size:36rpx;line-height:1}.nav-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:34rpx;font-weight:700;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.nav-placeholder{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:88rpx}.status-banner{background:var(--accent-primary-soft);border-color:transparent;margin-bottom:24rpx;padding:32rpx}.status-text{color:var(--accent-primary);display:block;font-size:40rpx;font-weight:800;letter-spacing:0}.status-desc{color:var(--text-secondary);display:block;font-size:26rpx;margin-top:8rpx}.detail-card{margin-bottom:24rpx;padding:32rpx}.card-icon-img{height:40rpx;margin-right:12rpx;width:40rpx}.logistics-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:24rpx;padding-bottom:24rpx}.logistics-header .flex-center{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:0}.logistics-title{color:var(--text-primary);font-size:32rpx;font-weight:700}.logistics-num{color:var(--text-secondary);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:22rpx}.timeline{padding-left:20rpx;position:relative}.timeline::before{background:var(--border);bottom:12rpx;content:"";left:8rpx;opacity:.5;position:absolute;top:12rpx;width:2rpx}.timeline-item{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:32rpx;position:relative}.timeline-item:last-child{margin-bottom:0}.timeline-dot{-ms-flex-negative:0;background:var(--bg-card);border:2rpx solid var(--border-strong);border-radius:50%;-webkit-flex-shrink:0;flex-shrink:0;height:20rpx;margin-left:-30rpx;margin-right:24rpx;width:20rpx;z-index:2}.timeline-item.active .timeline-dot{background:var(--accent-primary);border-color:var(--accent-primary)}.timeline-content{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.timeline-status{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;letter-spacing:0;margin-bottom:8rpx}.timeline-time{color:var(--text-secondary);display:block;font-size:22rpx;margin-bottom:8rpx}.timeline-desc{color:var(--text-secondary);display:block;font-size:26rpx;line-height:1.6}.product-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;padding-bottom:24rpx}.product-icon-wrapper{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-input);border-radius:16rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;overflow:hidden;width:88rpx}.product-icon-img{height:52rpx;width:52rpx}.product-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.product-name{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;line-height:1.3;margin-bottom:8rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-sku{color:var(--text-secondary);display:block;font-size:24rpx}.price-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;padding-top:24rpx}.price-label{color:var(--text-secondary);font-size:28rpx}.price-value{color:var(--accent-primary);font-size:32rpx;font-variant-numeric:tabular-nums;font-weight:700}.address-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:16rpx}.address-header .flex-center{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.address-title{color:var(--text-primary);font-size:32rpx;font-weight:700}.address-change{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--accent-secondary-soft);border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;height:56rpx;padding:0 24rpx}.change-text{color:var(--accent-secondary);font-size:24rpx;font-weight:500}.address-body{padding-top:8rpx}.address-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-bottom:8rpx}.address-name{color:var(--text-primary);font-size:32rpx;font-weight:700}.address-phone{color:var(--text-secondary);font-size:24rpx}.address-detail{color:var(--text-secondary);font-size:26rpx;line-height:1.6}.address-empty{color:var(--text-secondary);font-size:28rpx;padding:32rpx 0;text-align:center}.meta-title{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;letter-spacing:0;margin-bottom:8rpx}.meta-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;padding:20rpx 0}.meta-row:last-child{border-bottom:none;padding-bottom:0}.meta-label{color:var(--text-secondary);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:26rpx}.meta-value{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:26rpx;font-weight:500;text-align:right;word-break:break-all}.addr-picker-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:24rpx}.addr-picker-title{color:var(--text-primary);font-size:36rpx;font-weight:700}.addr-picker-close{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-muted);border-radius:50%;color:var(--text-secondary);display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;height:64rpx;-webkit-justify-content:center;justify-content:center;width:64rpx}.addr-picker-list{-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.addr-picker-item{border:1rpx solid transparent;border-radius:16rpx;padding:24rpx;-webkit-transition:background .16s ease,border-color .16s ease;transition:background .16s ease,border-color .16s ease}.addr-picker-item + .addr-picker-item{margin-top:16rpx}.addr-picker-item.active{background:var(--accent-primary-soft);border-color:var(--accent-primary)}.addr-picker-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-bottom:8rpx}.addr-picker-name{color:var(--text-primary);font-size:30rpx;font-weight:700}.addr-picker-phone{color:var(--text-secondary);font-size:24rpx}.addr-picker-default{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--accent-primary-soft);border-radius:999rpx;color:var(--accent-primary);display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:20rpx;font-weight:600;height:40rpx;padding:0 16rpx}.addr-picker-detail{color:var(--text-secondary);font-size:26rpx;line-height:1.6}.addr-picker-empty{color:var(--text-secondary);font-size:28rpx;padding:48rpx 32rpx;text-align:center}.addr-picker-add{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;height:96rpx;-webkit-justify-content:center;justify-content:center;margin-top:24rpx}.addr-picker-add-text{color:var(--accent-secondary);font-size:28rpx;font-weight:600}.page-bottom-spacer{height:48rpx} \ No newline at end of file +.order-detail-page{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 32rpx calc(64rpx + env(safe-area-inset-bottom))}.page-header{margin-bottom:24rpx;padding:0}.page-header-inner{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;min-height:88rpx}.back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:50%;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;width:88rpx}.back-btn:active{-webkit-transform:scale(.96);-ms-transform:scale(.96);transform:scale(.96)}.back-arrow{color:var(--text-primary);font-size:36rpx;line-height:1}.nav-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:34rpx;font-weight:700;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.nav-placeholder{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:88rpx}.status-banner{background:var(--accent-primary-soft);border-color:transparent;margin-bottom:24rpx;padding:32rpx}.status-text{color:var(--accent-primary);display:block;font-size:40rpx;font-weight:800;letter-spacing:0}.status-desc{color:var(--text-secondary);display:block;font-size:26rpx;margin-top:8rpx}.detail-card{margin-bottom:24rpx;padding:32rpx}.card-icon-img{height:40rpx;margin-right:12rpx;width:40rpx}.logistics-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:24rpx;padding-bottom:24rpx}.logistics-header .flex-center{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:0}.logistics-title{color:var(--text-primary);font-size:32rpx;font-weight:700}.logistics-num{color:var(--text-secondary);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:22rpx}.timeline{padding-left:20rpx;position:relative}.timeline::before{background:var(--border);bottom:12rpx;content:"";left:8rpx;opacity:.5;position:absolute;top:12rpx;width:2rpx}.timeline-item{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:32rpx;position:relative}.timeline-item:last-child{margin-bottom:0}.timeline-dot{-ms-flex-negative:0;background:var(--bg-card);border:2rpx solid var(--border-strong);border-radius:50%;-webkit-flex-shrink:0;flex-shrink:0;height:20rpx;margin-left:-30rpx;margin-right:24rpx;width:20rpx;z-index:2}.timeline-item.active .timeline-dot{background:var(--accent-primary);border-color:var(--accent-primary)}.timeline-content{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.timeline-status{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;letter-spacing:0;margin-bottom:8rpx}.timeline-time{color:var(--text-secondary);display:block;font-size:22rpx;margin-bottom:8rpx}.timeline-desc{color:var(--text-secondary);display:block;font-size:26rpx;line-height:1.6}.product-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;padding-bottom:24rpx}.product-icon-wrapper{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-input);border-radius:16rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;overflow:hidden;width:88rpx}.product-icon-img{height:52rpx;width:52rpx}.product-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.product-name{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;line-height:1.3;margin-bottom:8rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-sku{color:var(--text-secondary);display:block;font-size:24rpx}.price-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;padding-top:24rpx}.price-label{color:var(--text-secondary);font-size:28rpx}.price-value{color:var(--accent-primary);font-size:32rpx;font-variant-numeric:tabular-nums;font-weight:700}.address-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:16rpx}.address-header .flex-center{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.address-title{color:var(--text-primary);font-size:32rpx;font-weight:700}.address-change{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--accent-secondary-soft);border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;height:56rpx;padding:0 24rpx}.change-text{color:var(--accent-secondary);font-size:24rpx;font-weight:500}.address-body{padding-top:8rpx}.address-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-bottom:8rpx}.address-name{color:var(--text-primary);font-size:32rpx;font-weight:700}.address-phone{color:var(--text-secondary);font-size:24rpx}.address-detail{color:var(--text-secondary);font-size:26rpx;line-height:1.6}.address-empty{color:var(--text-secondary);font-size:28rpx;padding:32rpx 0;text-align:center}.meta-title{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;letter-spacing:0;margin-bottom:8rpx}.meta-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;padding:20rpx 0}.meta-row:last-child{border-bottom:none;padding-bottom:0}.meta-label{color:var(--text-secondary);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:26rpx}.meta-value{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:26rpx;font-weight:500;text-align:right;word-break:break-all}.addr-picker-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:24rpx}.addr-picker-title{color:var(--text-primary);font-size:36rpx;font-weight:700}.addr-picker-close{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-muted);border-radius:50%;color:var(--text-secondary);display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;height:64rpx;-webkit-justify-content:center;justify-content:center;width:64rpx}.addr-picker-list{-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.addr-picker-item{border:1rpx solid transparent;border-radius:16rpx;padding:24rpx;-webkit-transition:background .16s ease,border-color .16s ease;transition:background .16s ease,border-color .16s ease}.addr-picker-item + .addr-picker-item{margin-top:16rpx}.addr-picker-item.active{background:var(--accent-primary-soft);border-color:var(--accent-primary)}.addr-picker-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-bottom:8rpx}.addr-picker-name{color:var(--text-primary);font-size:30rpx;font-weight:700}.addr-picker-phone{color:var(--text-secondary);font-size:24rpx}.addr-picker-default{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--accent-primary-soft);border-radius:999rpx;color:var(--accent-primary);display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:20rpx;font-weight:600;height:40rpx;padding:0 16rpx}.addr-picker-detail{color:var(--text-secondary);font-size:26rpx;line-height:1.6}.addr-picker-empty{color:var(--text-secondary);font-size:28rpx;padding:48rpx 32rpx;text-align:center}.addr-picker-add{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;height:96rpx;-webkit-justify-content:center;justify-content:center;margin-top:24rpx}.addr-picker-add-text{color:var(--accent-secondary);font-size:28rpx;font-weight:600} \ No newline at end of file diff --git a/dist/pages/orders/index.wxss b/dist/pages/orders/index.wxss index f3afbb6..ede1b5c 100644 --- a/dist/pages/orders/index.wxss +++ b/dist/pages/orders/index.wxss @@ -1 +1 @@ -.orders-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;padding:0 32rpx calc(220rpx + env(safe-area-inset-bottom))}.orders-page .page-header{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:0;padding-bottom:32rpx}.orders-page .page-title{color:var(--text-primary);display:block;font-size:44rpx;font-weight:700;letter-spacing:0;line-height:1.2}.orders-page .status-tabs{margin:8rpx 0 32rpx}.orders-page .tabs-scroll{white-space:nowrap}.orders-page .tab-item{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border);border-radius:999rpx;color:var(--text-secondary);display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:26rpx;font-weight:500;height:64rpx;-webkit-justify-content:center;justify-content:center;margin-right:16rpx;padding:0 32rpx}.orders-page .tab-item.active{background:var(--accent-primary);border-color:var(--accent-primary);color:var(--bg-page);font-weight:600}.orders-page .tab-label{color:inherit}.orders-page .tab-underline{display:none}.orders-page .orders-list{padding:0 0 8rpx}.orders-page .order-card{border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);margin-bottom:24rpx;padding:28rpx;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.orders-page .order-card:active{-webkit-transform:scale(.98);-ms-transform:scale(.98);transform:scale(.98)}.orders-page .order-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:24rpx;padding-bottom:20rpx}.orders-page .order-date{color:var(--text-secondary);display:block;font-size:24rpx;min-width:0}.orders-page .order-card .badge{-ms-flex-align:center;-ms-flex-pack:center;-ms-flex-negative:0;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-shrink:0;flex-shrink:0;font-size:22rpx;font-weight:600;height:40rpx;-webkit-justify-content:center;justify-content:center;line-height:1;padding:0 16rpx}.orders-page .order-body{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;margin-bottom:24rpx}.orders-page .order-icon-wrapper{-ms-flex-align:center;-ms-flex-pack:center;-ms-flex-negative:0;-webkit-align-items:center;align-items:center;background:var(--bg-muted);border-radius:24rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;flex-shrink:0;height:96rpx;-webkit-justify-content:center;justify-content:center;width:96rpx}.orders-page .order-icon-img{height:56rpx;width:56rpx}.orders-page .order-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.orders-page .order-product{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;line-height:1.3;margin-bottom:8rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-page .order-sku{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.4;margin-bottom:6rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-page .order-meta{color:var(--text-muted);display:block;font-size:22rpx;font-variant-numeric:tabular-nums;line-height:1.4}.orders-page .order-footer{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-top:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;padding-top:20rpx}.orders-page .order-price-bar{-ms-flex-align:baseline;-ms-flex-negative:0;-webkit-align-items:baseline;align-items:baseline;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;flex-shrink:0}.orders-page .price-label{color:var(--text-secondary);font-size:24rpx;margin-right:8rpx}.orders-page .price-value{color:var(--accent-primary);font-size:34rpx;font-variant-numeric:tabular-nums;font-weight:800;line-height:1.2}.orders-page .order-actions{-ms-flex-pack:end;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12rpx;-webkit-justify-content:flex-end;justify-content:flex-end}.orders-page .order-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:26rpx;font-weight:600;height:64rpx;-webkit-justify-content:center;justify-content:center;line-height:1.2;padding:0 28rpx}.orders-page .empty-state{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--bg-muted);border-radius:24rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:80rpx 32rpx;text-align:center}.orders-page .empty-icon-img{height:88rpx;margin-bottom:24rpx;width:88rpx}.orders-page .empty-text{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;margin-bottom:12rpx}.orders-page .empty-sub{color:var(--text-secondary);display:block;font-size:26rpx;margin-bottom:32rpx}.orders-page .empty-state .btn-primary{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:30rpx;font-weight:600;height:88rpx;-webkit-justify-content:center;justify-content:center;min-width:280rpx;padding:0 48rpx} \ No newline at end of file +.orders-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;padding:0 32rpx calc(220rpx + env(safe-area-inset-bottom))}.orders-page .page-header{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:0;padding-bottom:32rpx;padding-top:0}.orders-page .page-title{color:var(--text-primary);display:block;font-size:56rpx;font-weight:800;letter-spacing:0;line-height:1.15}.orders-page .status-tabs{margin:8rpx 0 32rpx}.orders-page .tabs-scroll{white-space:nowrap}.orders-page .tab-item{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border);border-radius:999rpx;color:var(--text-secondary);display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:26rpx;font-weight:500;height:64rpx;-webkit-justify-content:center;justify-content:center;margin-right:16rpx;padding:0 32rpx}.orders-page .tab-item.active{background:var(--accent-primary);border-color:var(--accent-primary);color:var(--bg-page);font-weight:600}.orders-page .tab-label{color:inherit}.orders-page .tab-underline{display:none}.orders-page .orders-list{padding:0 0 8rpx}.orders-page .order-card{border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);margin-bottom:24rpx;padding:28rpx;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.orders-page .order-card:active{-webkit-transform:scale(.98);-ms-transform:scale(.98);transform:scale(.98)}.orders-page .order-header{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:24rpx;padding-bottom:20rpx}.orders-page .order-date{color:var(--text-secondary);display:block;font-size:24rpx;min-width:0}.orders-page .order-card .badge{-ms-flex-align:center;-ms-flex-pack:center;-ms-flex-negative:0;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-shrink:0;flex-shrink:0;font-size:22rpx;font-weight:600;height:40rpx;-webkit-justify-content:center;justify-content:center;line-height:1;padding:0 16rpx}.orders-page .order-body{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;margin-bottom:24rpx}.orders-page .order-icon-wrapper{-ms-flex-align:center;-ms-flex-pack:center;-ms-flex-negative:0;-webkit-align-items:center;align-items:center;background:var(--bg-muted);border-radius:24rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;flex-shrink:0;height:96rpx;-webkit-justify-content:center;justify-content:center;width:96rpx}.orders-page .order-icon-img{height:56rpx;width:56rpx}.orders-page .order-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.orders-page .order-product{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;line-height:1.3;margin-bottom:8rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-page .order-sku{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.4;margin-bottom:6rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-page .order-meta{color:var(--text-muted);display:block;font-size:22rpx;font-variant-numeric:tabular-nums;line-height:1.4}.orders-page .order-footer{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-top:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16rpx;-webkit-justify-content:space-between;justify-content:space-between;padding-top:20rpx}.orders-page .order-price-bar{-ms-flex-align:baseline;-ms-flex-negative:0;-webkit-align-items:baseline;align-items:baseline;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;flex-shrink:0}.orders-page .price-label{color:var(--text-secondary);font-size:24rpx;margin-right:8rpx}.orders-page .price-value{color:var(--accent-primary);font-size:34rpx;font-variant-numeric:tabular-nums;font-weight:800;line-height:1.2}.orders-page .order-actions{-ms-flex-pack:end;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12rpx;-webkit-justify-content:flex-end;justify-content:flex-end}.orders-page .order-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:26rpx;font-weight:600;height:64rpx;-webkit-justify-content:center;justify-content:center;line-height:1.2;padding:0 28rpx}.orders-page .empty-state{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:var(--bg-muted);border-radius:24rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:80rpx 32rpx;text-align:center}.orders-page .empty-icon-img{height:88rpx;margin-bottom:24rpx;width:88rpx}.orders-page .empty-text{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;margin-bottom:12rpx}.orders-page .empty-sub{color:var(--text-secondary);display:block;font-size:26rpx;margin-bottom:32rpx}.orders-page .empty-state .btn-primary{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-radius:999rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:30rpx;font-weight:600;height:88rpx;-webkit-justify-content:center;justify-content:center;min-width:280rpx;padding:0 48rpx} \ No newline at end of file diff --git a/dist/pages/product/index.js b/dist/pages/product/index.js index 0444129..b2b27ff 100644 --- a/dist/pages/product/index.js +++ b/dist/pages/product/index.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[612],{4120:function(s,e,a){var c=a(7842),r=a(5544),l=a(118),n=a(758),i=a.n(n),t=a(6540),d=a(5234),o=a(8594),m=a(9703),h=a(9201),x=a(5414),j=a(9674),p=a(3053),N=a(9513),u=a(4848);function S(){var s=(0,m.wR)(),e=(s.theme,s.resolvedTheme),a=(0,h.c)();(0,x.l)(e);var c=(0,t.useState)(!1),n=(0,r.A)(c,2),S=n[0],g=n[1],E=(0,t.useState)(1),Y=(0,r.A)(E,2),f=Y[0],v=Y[1],y=i().getCurrentInstance().router,b=y?y.params:void 0,k=b&&b.id?b.id:"",w=(0,d.y9)(k);if(!w)return(0,u.jsxs)(l.Ss,{className:"theme-".concat(e),children:[(0,u.jsx)(j.A,{}),(0,u.jsx)(p.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,u.jsx)(l.Ss,{className:"product-page",children:(0,u.jsx)(l.Ss,{className:"page-header",style:{marginTop:"".concat(a.statusBarHeight+12,"px")},children:(0,u.jsxs)(l.Ss,{className:"page-header-inner",children:[(0,u.jsx)(l.Ss,{className:"back-btn",onTap:function(){return i().navigateBack()},children:(0,u.jsx)(l.EY,{className:"back-arrow",children:"\u2190"})}),(0,u.jsx)(l.EY,{className:"nav-title",children:"\u5546\u54c1\u672a\u627e\u5230"}),(0,u.jsx)(l.Ss,{className:"nav-placeholder"})]})})})]});var T=w.specs&&w.specs.length>0?w.specs.find(function(s){return s[0].indexOf("\u5de5\u827a")>=0}):void 0,A=T?T[1]:"\u6fc0\u5149\u5fae\u96d5",B=function(){v(1),g(!0)},q=function(){(0,o.cY)(w,f),g(!1),i().showToast({title:"\u5df2\u52a0\u5165\u8bbe\u8ba1\u6e05\u5355 x".concat(f),icon:"success"}),setTimeout(function(){return i().navigateBack()},1200)},P=function(){i().navigateTo({url:"/pages/diy/index?source=product&productId=".concat(w.id,"&quantity=1")})},C=function(s){v(function(e){return Math.max(1,Math.min(99,e+s))})};return(0,u.jsxs)(l.Ss,{className:"theme-".concat(e),children:[(0,u.jsx)(j.A,{}),(0,u.jsx)(p.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,u.jsxs)(l.Ss,{className:"product-page",children:[(0,u.jsx)(l.Ss,{className:"page-header",style:{marginTop:"".concat(a.statusBarHeight+12,"px")},children:(0,u.jsxs)(l.Ss,{className:"page-header-inner",children:[(0,u.jsx)(l.Ss,{className:"back-btn",onTap:function(){return i().navigateBack()},children:(0,u.jsx)(l.EY,{className:"back-arrow",children:"\u2190"})}),(0,u.jsx)(l.EY,{className:"nav-title",children:"\u5546\u54c1\u8be6\u60c5"}),(0,u.jsx)(l.Ss,{className:"nav-placeholder"})]})}),(0,u.jsx)(l.Ss,{className:"hero-section",children:(0,u.jsx)(l.RC,{className:"hero-swiper",circular:!0,autoplay:!0,interval:3e3,duration:500,indicatorDots:!0,indicatorColor:"var(--border-strong)",indicatorActiveColor:"var(--accent-primary)",children:w.images&&w.images.length>0?w.images.map(function(s,e){return(0,u.jsx)(l.wu,{children:(0,u.jsx)(l.Ss,{className:"hero-block",children:(0,u.jsx)(l._V,{className:"hero-image",src:s,mode:"aspectFill"})})},e)}):(0,u.jsx)(l.wu,{children:(0,u.jsx)(l.Ss,{className:"hero-block hero-block-fallback",children:(0,u.jsx)(l._V,{className:"hero-fallback-icon",src:(0,d.QE)(w),mode:"aspectFit"})})})})}),(0,u.jsx)(l.Ss,{className:"detail-card surface-card",children:(0,u.jsxs)(l.Ss,{className:"price-line",children:[(0,u.jsxs)(l.Ss,{className:"price-left",children:[(0,u.jsx)(l.EY,{className:"detail-title",children:w.name}),(0,u.jsx)(l.EY,{className:"detail-desc",children:w.desc})]}),(0,u.jsxs)(l.Ss,{className:"price-right",children:[(0,u.jsxs)(l.EY,{className:"price",children:["\xa5",w.price]}),w.originalPrice&&w.originalPrice>w.price&&(0,u.jsxs)(l.EY,{className:"price-old",children:["\xa5",w.originalPrice]})]})]})}),(0,u.jsxs)(l.Ss,{className:"detail-card surface-card",children:[(0,u.jsxs)(l.Ss,{className:"spec-row",children:[(0,u.jsx)(l.EY,{className:"spec-key",children:"\u5355\u4ef7"}),(0,u.jsxs)(l.EY,{className:"spec-value",children:["\xa5",w.price]})]}),(0,u.jsxs)(l.Ss,{className:"spec-row",children:[(0,u.jsx)(l.EY,{className:"spec-key",children:"\u5de5\u671f"}),(0,u.jsx)(l.EY,{className:"spec-value",children:w.leadTime})]}),(0,u.jsxs)(l.Ss,{className:"spec-row",children:[(0,u.jsx)(l.EY,{className:"spec-key",children:"\u5c3a\u5bf8"}),(0,u.jsxs)(l.EY,{className:"spec-value",children:[w.mask.width," \xd7 ",w.mask.height," px"]})]}),(0,u.jsxs)(l.Ss,{className:"spec-row",children:[(0,u.jsx)(l.EY,{className:"spec-key",children:"\u5b9a\u5236\u5de5\u827a"}),(0,u.jsx)(l.EY,{className:"spec-value",children:A})]})]}),(0,u.jsxs)(l.Ss,{className:"detail-card surface-card",children:[(0,u.jsx)(l.EY,{className:"section-title",children:"\u5546\u54c1\u4ecb\u7ecd"}),(0,u.jsx)(l.EY,{className:"detail-text",children:w.description})]}),(0,u.jsxs)(N.A,{children:[(0,u.jsxs)(l.Ss,{className:"price-summary",children:[(0,u.jsx)(l.EY,{className:"summary-label",children:"\u8d77\u4ef7"}),(0,u.jsxs)(l.EY,{className:"summary-price",children:["\xa5",w.price]})]}),(0,u.jsx)(l.Ss,{className:"btn-secondary",onTap:B,children:(0,u.jsx)(l.EY,{children:"\u52a0\u5165\u8bbe\u8ba1\u6e05\u5355"})}),(0,u.jsx)(l.Ss,{className:"btn-primary",onTap:P,children:(0,u.jsx)(l.EY,{children:"\u7acb\u5373\u4e0b\u5355"})})]}),(0,u.jsx)(l.Ss,{className:"safe-bottom-placeholder"}),S&&(0,u.jsx)(l.Ss,{className:"modal-overlay",children:(0,u.jsxs)(l.Ss,{className:"modal-card surface-card",children:[(0,u.jsx)(l.EY,{className:"modal-title",children:"\u52a0\u5165\u8bbe\u8ba1\u6e05\u5355"}),(0,u.jsxs)(l.Ss,{className:"modal-product",children:[(0,u.jsx)(l._V,{className:"modal-icon-img",src:(0,d.QE)(w),mode:"aspectFit"}),(0,u.jsx)(l.EY,{className:"modal-name",children:w.name})]}),(0,u.jsxs)(l.Ss,{className:"quantity-row",children:[(0,u.jsx)(l.EY,{className:"qty-label",children:"\u6570\u91cf"}),(0,u.jsxs)(l.Ss,{className:"qty-control",children:[(0,u.jsx)(l.Ss,{className:"qty-btn",onTap:function(){return C(-1)},children:"\uff0d"}),(0,u.jsx)(l.EY,{className:"qty-num",children:f}),(0,u.jsx)(l.Ss,{className:"qty-btn",onTap:function(){return C(1)},children:"\uff0b"})]})]}),(0,u.jsxs)(l.Ss,{className:"modal-total",children:[(0,u.jsx)(l.EY,{className:"total-label",children:"\u5c0f\u8ba1"}),(0,u.jsxs)(l.EY,{className:"total-price",children:["\xa5",(w.price*f).toFixed(2)]})]}),(0,u.jsxs)(l.Ss,{className:"modal-actions",children:[(0,u.jsx)(l.Ss,{className:"btn-secondary",onTap:function(){return g(!1)},children:(0,u.jsx)(l.EY,{children:"\u53d6\u6d88"})}),(0,u.jsx)(l.Ss,{className:"btn-primary",onTap:q,children:(0,u.jsx)(l.EY,{children:"\u786e\u5b9a"})})]})]})})]})]})}var g={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u5546\u54c1\u8be6\u60c5"};Page((0,c.createPageConfig)(S,"pages/product/index",{root:{cn:[]}},g||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(4120)});s.O()}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[612],{4120:function(s,e,a){var c=a(7842),r=a(5544),l=a(118),n=a(758),i=a.n(n),t=a(6540),d=a(5234),o=a(8594),m=a(9703),h=a(9201),x=a(5414),j=a(9674),p=a(3053),u=a(9513),N=a(4848);function S(){var s=(0,m.wR)(),e=(s.theme,s.resolvedTheme),a=(0,h.c)();(0,x.l)(e);var c=(0,t.useState)(!1),n=(0,r.A)(c,2),S=n[0],g=n[1],E=(0,t.useState)(1),Y=(0,r.A)(E,2),f=Y[0],v=Y[1],y=i().getCurrentInstance().router,b=y?y.params:void 0,k=b&&b.id?b.id:"",w=(0,d.y9)(k);if(!w)return(0,N.jsxs)(l.Ss,{className:"theme-".concat(e),children:[(0,N.jsx)(j.A,{}),(0,N.jsx)(p.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,N.jsx)(l.Ss,{className:"product-page",children:(0,N.jsx)(l.Ss,{className:"page-header",style:{marginTop:"".concat(a.statusBarHeight+12,"px")},children:(0,N.jsxs)(l.Ss,{className:"page-header-inner",children:[(0,N.jsx)(l.Ss,{className:"back-btn",onTap:function(){return i().navigateBack()},children:(0,N.jsx)(l.EY,{className:"back-arrow",children:"\u2190"})}),(0,N.jsx)(l.EY,{className:"nav-title",children:"\u5546\u54c1\u672a\u627e\u5230"}),(0,N.jsx)(l.Ss,{className:"nav-placeholder"})]})})})]});var T=w.specs&&w.specs.length>0?w.specs.find(function(s){return s[0].indexOf("\u5de5\u827a")>=0}):void 0,A=T?T[1]:"\u6fc0\u5149\u5fae\u96d5",B=function(){v(1),g(!0)},q=function(){(0,o.cY)(w,f),g(!1),i().showToast({title:"\u5df2\u52a0\u5165\u8bbe\u8ba1\u6e05\u5355 x".concat(f),icon:"success"}),setTimeout(function(){return i().navigateBack()},1200)},P=function(){i().navigateTo({url:"/pages/diy/index?source=product&productId=".concat(w.id,"&quantity=1")})},C=function(s){v(function(e){return Math.max(1,Math.min(99,e+s))})};return(0,N.jsxs)(l.Ss,{className:"theme-".concat(e),children:[(0,N.jsx)(j.A,{}),(0,N.jsx)(p.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".page-header",showBack:!0}),(0,N.jsxs)(l.Ss,{className:"product-page",children:[(0,N.jsx)(l.Ss,{className:"page-header",style:{marginTop:"".concat(a.statusBarHeight+12,"px")},children:(0,N.jsxs)(l.Ss,{className:"page-header-inner",children:[(0,N.jsx)(l.Ss,{className:"back-btn",onTap:function(){return i().navigateBack()},children:(0,N.jsx)(l.EY,{className:"back-arrow",children:"\u2190"})}),(0,N.jsx)(l.EY,{className:"nav-title",children:"\u5546\u54c1\u8be6\u60c5"}),(0,N.jsx)(l.Ss,{className:"nav-placeholder"})]})}),(0,N.jsx)(l.Ss,{className:"hero-section",children:(0,N.jsx)(l.RC,{className:"hero-swiper",circular:!0,autoplay:!0,interval:3e3,duration:500,indicatorDots:!0,indicatorColor:"var(--border-strong)",indicatorActiveColor:"var(--accent-primary)",children:w.images&&w.images.length>0?w.images.map(function(s,e){return(0,N.jsx)(l.wu,{children:(0,N.jsx)(l.Ss,{className:"hero-block",children:(0,N.jsx)(l._V,{className:"hero-image",src:s,mode:"aspectFill"})})},e)}):(0,N.jsx)(l.wu,{children:(0,N.jsx)(l.Ss,{className:"hero-block hero-block-fallback",children:(0,N.jsx)(l._V,{className:"hero-fallback-icon",src:(0,d.QE)(w),mode:"aspectFit"})})})})}),(0,N.jsx)(l.Ss,{className:"detail-card surface-card",children:(0,N.jsxs)(l.Ss,{className:"price-line",children:[(0,N.jsxs)(l.Ss,{className:"price-left",children:[(0,N.jsx)(l.EY,{className:"detail-title",children:w.name}),(0,N.jsx)(l.EY,{className:"detail-desc",children:w.desc})]}),(0,N.jsxs)(l.Ss,{className:"price-right",children:[(0,N.jsxs)(l.EY,{className:"price",children:["\xa5",w.price]}),w.originalPrice&&w.originalPrice>w.price&&(0,N.jsxs)(l.EY,{className:"price-old",children:["\xa5",w.originalPrice]})]})]})}),(0,N.jsxs)(l.Ss,{className:"detail-card surface-card",children:[(0,N.jsxs)(l.Ss,{className:"spec-row",children:[(0,N.jsx)(l.EY,{className:"spec-key",children:"\u5355\u4ef7"}),(0,N.jsxs)(l.EY,{className:"spec-value",children:["\xa5",w.price]})]}),(0,N.jsxs)(l.Ss,{className:"spec-row",children:[(0,N.jsx)(l.EY,{className:"spec-key",children:"\u5de5\u671f"}),(0,N.jsx)(l.EY,{className:"spec-value",children:w.leadTime})]}),(0,N.jsxs)(l.Ss,{className:"spec-row",children:[(0,N.jsx)(l.EY,{className:"spec-key",children:"\u5c3a\u5bf8"}),(0,N.jsxs)(l.EY,{className:"spec-value",children:[w.mask.width," \xd7 ",w.mask.height," px"]})]}),(0,N.jsxs)(l.Ss,{className:"spec-row",children:[(0,N.jsx)(l.EY,{className:"spec-key",children:"\u5b9a\u5236\u5de5\u827a"}),(0,N.jsx)(l.EY,{className:"spec-value",children:A})]})]}),(0,N.jsxs)(l.Ss,{className:"detail-card surface-card",children:[(0,N.jsx)(l.EY,{className:"section-title",children:"\u5546\u54c1\u4ecb\u7ecd"}),(0,N.jsx)(l.EY,{className:"detail-text",children:w.description})]}),(0,N.jsxs)(u.A,{children:[(0,N.jsxs)(l.Ss,{className:"price-summary",children:[(0,N.jsx)(l.EY,{className:"summary-label",children:"\u8d77\u4ef7"}),(0,N.jsxs)(l.EY,{className:"summary-price",children:["\xa5",w.price]})]}),(0,N.jsx)(l.Ss,{className:"btn-secondary",onTap:B,children:(0,N.jsx)(l.EY,{children:"\u52a0\u5165\u8bbe\u8ba1\u6e05\u5355"})}),(0,N.jsx)(l.Ss,{className:"btn-primary",onTap:P,children:(0,N.jsx)(l.EY,{children:"\u7acb\u5373\u4e0b\u5355"})})]}),S&&(0,N.jsx)(l.Ss,{className:"modal-overlay",children:(0,N.jsxs)(l.Ss,{className:"modal-card surface-card",children:[(0,N.jsx)(l.EY,{className:"modal-title",children:"\u52a0\u5165\u8bbe\u8ba1\u6e05\u5355"}),(0,N.jsxs)(l.Ss,{className:"modal-product",children:[(0,N.jsx)(l._V,{className:"modal-icon-img",src:(0,d.QE)(w),mode:"aspectFit"}),(0,N.jsx)(l.EY,{className:"modal-name",children:w.name})]}),(0,N.jsxs)(l.Ss,{className:"quantity-row",children:[(0,N.jsx)(l.EY,{className:"qty-label",children:"\u6570\u91cf"}),(0,N.jsxs)(l.Ss,{className:"qty-control",children:[(0,N.jsx)(l.Ss,{className:"qty-btn",onTap:function(){return C(-1)},children:"\uff0d"}),(0,N.jsx)(l.EY,{className:"qty-num",children:f}),(0,N.jsx)(l.Ss,{className:"qty-btn",onTap:function(){return C(1)},children:"\uff0b"})]})]}),(0,N.jsxs)(l.Ss,{className:"modal-total",children:[(0,N.jsx)(l.EY,{className:"total-label",children:"\u5c0f\u8ba1"}),(0,N.jsxs)(l.EY,{className:"total-price",children:["\xa5",(w.price*f).toFixed(2)]})]}),(0,N.jsxs)(l.Ss,{className:"modal-actions",children:[(0,N.jsx)(l.Ss,{className:"btn-secondary",onTap:function(){return g(!1)},children:(0,N.jsx)(l.EY,{children:"\u53d6\u6d88"})}),(0,N.jsx)(l.Ss,{className:"btn-primary",onTap:q,children:(0,N.jsx)(l.EY,{children:"\u786e\u5b9a"})})]})]})})]})]})}var g={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u5546\u54c1\u8be6\u60c5"};Page((0,c.createPageConfig)(S,"pages/product/index",{root:{cn:[]}},g||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(4120)});s.O()}]); \ No newline at end of file diff --git a/dist/pages/product/index.wxss b/dist/pages/product/index.wxss index 0e064f0..d83339e 100644 --- a/dist/pages/product/index.wxss +++ b/dist/pages/product/index.wxss @@ -1 +1 @@ -.product-page{padding:0 32rpx 512rpx}.page-header{margin-bottom:24rpx;padding:0 24rpx 24rpx;position:relative;z-index:10}.page-header-inner{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;min-height:88rpx}.back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:50%;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;width:88rpx}.back-btn:active{-webkit-transform:scale(.96);-ms-transform:scale(.96);transform:scale(.96)}.back-arrow{color:var(--text-primary);font-size:36rpx;line-height:1}.nav-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:34rpx;font-weight:600;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.nav-placeholder{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:88rpx}.hero-section{width:100%}.hero-swiper{height:560rpx}.hero-block{background:var(--bg-muted);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);height:100%;overflow:hidden;position:relative}.hero-image{height:100%;width:100%}.hero-block-fallback{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:-webkit-linear-gradient(290deg,var(--accent-primary-strong),var(--accent-secondary));background:linear-gradient(160deg,var(--accent-primary-strong),var(--accent-secondary));display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center}.hero-fallback-icon{height:140rpx;margin-bottom:24rpx;width:140rpx}.detail-card{margin-top:24rpx;padding:32rpx}.price-line{-ms-flex-align:end;-ms-flex-pack:justify;-webkit-align-items:flex-end;align-items:flex-end;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between}.price-left{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.detail-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;line-height:1.3}.detail-desc{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.4;margin-top:8rpx}.price-right{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;text-align:right}.price{color:var(--accent-primary);display:block;font-size:40rpx;font-variant-numeric:tabular-nums;font-weight:800;line-height:1.2}.price-old{color:var(--text-muted);display:block;font-size:24rpx;font-variant-numeric:tabular-nums;margin-top:6rpx;text-decoration:line-through}.spec-row{-ms-flex-align:start;-ms-flex-pack:justify;-webkit-align-items:flex-start;align-items:flex-start;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;padding:24rpx 0}.spec-row:last-child{border-bottom:none;padding-bottom:0}.spec-key{color:var(--text-secondary);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:26rpx}.spec-value{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:26rpx;font-weight:600;text-align:right;word-break:break-all}.detail-card .section-title{font-size:32rpx;font-weight:700;margin-bottom:24rpx}.detail-text{color:var(--text-secondary);display:block;font-size:28rpx;line-height:1.8}.bottom-action-bar{gap:20rpx;padding-left:32rpx;padding-right:32rpx}.bottom-action-bar .price-summary{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0}.summary-label{color:var(--text-secondary);display:block;font-size:22rpx}.summary-price{color:var(--accent-primary);display:block;font-size:36rpx;font-variant-numeric:tabular-nums;font-weight:700}.summary-original{color:var(--text-muted);display:block;font-size:22rpx;font-variant-numeric:tabular-nums;margin-top:2rpx;text-decoration:line-through}.bottom-action-bar .btn-primary,.bottom-action-bar .btn-secondary{-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;line-height:1.2;padding:28rpx 0;text-align:center}.modal-overlay{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;padding:48rpx;z-index:1000}.modal-card{max-width:640rpx;padding:40rpx;width:100%}.modal-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;margin-bottom:24rpx;text-align:center}.modal-product{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:center;justify-content:center;margin-bottom:32rpx}.modal-icon-img{height:48rpx;width:48rpx}.modal-name{color:var(--text-primary);font-size:32rpx;font-weight:600}.quantity-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:32rpx}.qty-label{color:var(--text-secondary);font-size:28rpx}.qty-control{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx}.qty-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-input);border:1rpx solid var(--border);border-radius:16rpx;color:var(--text-primary);display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:32rpx;font-weight:600;height:60rpx;-webkit-justify-content:center;justify-content:center;width:60rpx}.qty-num{color:var(--text-primary);font-size:32rpx;font-weight:700;min-width:48rpx;text-align:center}.modal-total{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-top:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:32rpx;padding-top:24rpx}.total-label{color:var(--text-secondary);font-size:28rpx}.total-price{color:var(--accent-primary);font-size:36rpx;font-variant-numeric:tabular-nums;font-weight:800}.modal-actions{display:-webkit-flex;display:-ms-flexbox;display:flex;gap:20rpx}.modal-actions .btn-primary,.modal-actions .btn-secondary{-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;padding:24rpx 0;text-align:center} \ No newline at end of file +.product-page{padding:0 32rpx 512rpx}.page-header{margin-bottom:24rpx;padding:0 24rpx 24rpx;position:relative;z-index:10}.page-header-inner{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;min-height:88rpx}.back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:50%;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:80rpx;-webkit-justify-content:center;justify-content:center;width:80rpx}.back-btn:active{-webkit-transform:scale(.96);-ms-transform:scale(.96);transform:scale(.96)}.back-arrow{color:var(--text-primary);font-size:44rpx;font-weight:600;line-height:1}.nav-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:34rpx;font-weight:600;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.nav-placeholder{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:80rpx}.hero-section{width:100%}.hero-swiper{height:560rpx}.hero-block{background:var(--bg-muted);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);height:100%;overflow:hidden;position:relative}.hero-image{height:100%;width:100%}.hero-block-fallback{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:-webkit-linear-gradient(290deg,var(--accent-primary-strong),var(--accent-secondary));background:linear-gradient(160deg,var(--accent-primary-strong),var(--accent-secondary));display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center}.hero-fallback-icon{height:140rpx;margin-bottom:24rpx;width:140rpx}.detail-card{margin-top:24rpx;padding:32rpx}.price-line{-ms-flex-align:end;-ms-flex-pack:justify;-webkit-align-items:flex-end;align-items:flex-end;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between}.price-left{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.detail-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;line-height:1.3}.detail-desc{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.4;margin-top:8rpx}.price-right{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;text-align:right}.price{color:var(--accent-primary);display:block;font-size:40rpx;font-variant-numeric:tabular-nums;font-weight:800;line-height:1.2}.price-old{color:var(--text-muted);display:block;font-size:24rpx;font-variant-numeric:tabular-nums;margin-top:6rpx;text-decoration:line-through}.spec-row{-ms-flex-align:start;-ms-flex-pack:justify;-webkit-align-items:flex-start;align-items:flex-start;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx;-webkit-justify-content:space-between;justify-content:space-between;padding:24rpx 0}.spec-row:last-child{border-bottom:none;padding-bottom:0}.spec-key{color:var(--text-secondary);-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:26rpx}.spec-value{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:26rpx;font-weight:600;text-align:right;word-break:break-all}.detail-card .section-title{font-size:32rpx;font-weight:700;margin-bottom:24rpx}.detail-text{color:var(--text-secondary);display:block;font-size:28rpx;line-height:1.8}.bottom-action-bar{gap:20rpx;padding-left:32rpx;padding-right:32rpx}.bottom-action-bar .price-summary{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0}.summary-label{color:var(--text-secondary);display:block;font-size:22rpx}.summary-price{color:var(--accent-primary);display:block;font-size:36rpx;font-variant-numeric:tabular-nums;font-weight:700}.summary-original{color:var(--text-muted);display:block;font-size:22rpx;font-variant-numeric:tabular-nums;margin-top:2rpx;text-decoration:line-through}.bottom-action-bar .btn-primary,.bottom-action-bar .btn-secondary{-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;line-height:1.2;padding:28rpx 0;text-align:center}.modal-overlay{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;padding:48rpx;z-index:1000}.modal-card{max-width:640rpx;padding:40rpx;width:100%}.modal-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;margin-bottom:24rpx;text-align:center}.modal-product{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;-webkit-justify-content:center;justify-content:center;margin-bottom:32rpx}.modal-icon-img{height:48rpx;width:48rpx}.modal-name{color:var(--text-primary);font-size:32rpx;font-weight:600}.quantity-row{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:32rpx}.qty-label{color:var(--text-secondary);font-size:28rpx}.qty-control{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:24rpx}.qty-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-input);border:1rpx solid var(--border);border-radius:16rpx;color:var(--text-primary);display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:32rpx;font-weight:600;height:60rpx;-webkit-justify-content:center;justify-content:center;width:60rpx}.qty-num{color:var(--text-primary);font-size:32rpx;font-weight:700;min-width:48rpx;text-align:center}.modal-total{-ms-flex-align:center;-ms-flex-pack:justify;-webkit-align-items:center;align-items:center;border-top:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:32rpx;padding-top:24rpx}.total-label{color:var(--text-secondary);font-size:28rpx}.total-price{color:var(--accent-primary);font-size:36rpx;font-variant-numeric:tabular-nums;font-weight:800}.modal-actions{display:-webkit-flex;display:-ms-flexbox;display:flex;gap:20rpx}.modal-actions .btn-primary,.modal-actions .btn-secondary{-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;padding:24rpx 0;text-align:center} \ No newline at end of file diff --git a/dist/pages/service/index.js b/dist/pages/service/index.js index f958c1e..6e05b5a 100644 --- a/dist/pages/service/index.js +++ b/dist/pages/service/index.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[248],{5942:function(s,e,a){var c=a(7842),n=a(118),t=a(758),r=a.n(t),i=a(9703),l=a(9201),o=a(5414),m=a(9674),d=a(3053),h=a(8199),x=a(4848),j=[{q:"\u5b9a\u5236\u5468\u671f\u9700\u8981\u591a\u4e45\uff1f",a:"\u901a\u5e38\u4e0b\u5355\u540e3-5\u4e2a\u5de5\u4f5c\u65e5\u5185\u53d1\u8d27\uff0c\u6279\u91cf\u8ba2\u5355\uff0850\u4ef6\u4ee5\u4e0a\uff09\u53ef\u80fd\u9700\u89817-10\u4e2a\u5de5\u4f5c\u65e5\u3002"},{q:"\u53ef\u4ee5\u4fee\u6539\u8bbe\u8ba1\u7a3f\u5417\uff1f",a:"\u751f\u4ea7\u524d\u53ef\u968f\u65f6\u5728\u8bbe\u8ba1\u5de5\u4f5c\u53f0\u4fee\u6539\u3002\u786e\u8ba4\u4e0b\u5355\u540e\u8fdb\u5165\u6392\u961f\u751f\u4ea7\u9636\u6bb5\uff0c\u4e0d\u53ef\u518d\u4fee\u6539\u3002"},{q:"\u652f\u6301\u9000\u6b3e/\u552e\u540e\u5417\uff1f",a:"\u975e\u8d28\u91cf\u95ee\u9898\u5b9a\u5236\u5546\u54c1\u4e0d\u652f\u63017\u5929\u65e0\u7406\u7531\u9000\u6b3e\u3002\u5982\u6536\u5230\u5546\u54c1\u6709\u7834\u635f\u6216\u96d5\u523b\u7f3a\u9677\uff0c\u8bf7\u5728\u7b7e\u653648\u5c0f\u65f6\u5185\u8054\u7cfb\u5ba2\u670d\u5904\u7406\u3002"},{q:"\u53ef\u4ee5\u5f00\u53d1\u7968\u5417\uff1f",a:"\u652f\u6301\u5f00\u5177\u589e\u503c\u7a0e\u666e\u901a\u53d1\u7968\u3002\u8bf7\u5728\u4e0b\u5355\u65f6\u586b\u5199\u53d1\u7968\u4fe1\u606f\uff0c\u6216\u8054\u7cfb\u5ba2\u670d\u8865\u5f00\u3002"}];function N(){var s=(0,i.wR)(),e=(s.theme,s.resolvedTheme),a=(0,l.c)();return(0,o.l)(e),(0,x.jsxs)(n.Ss,{className:"theme-".concat(e),style:{minHeight:"100vh"},children:[(0,x.jsx)(m.A,{}),(0,x.jsx)(d.A,{title:"\u8054\u7cfb\u5ba2\u670d",targetSelector:".page-header.service-header",showBack:!0}),(0,x.jsxs)(n.Ss,{className:"service-page",children:[(0,x.jsxs)(n.Ss,{className:"page-header service-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:[(0,x.jsx)(n.Ss,{className:"back-btn",onTap:function(){return r().navigateBack()},children:(0,x.jsx)(n.EY,{className:"back-arrow",children:"\u2190"})}),(0,x.jsx)(n.EY,{className:"page-title",children:"\u8054\u7cfb\u5ba2\u670d"}),(0,x.jsx)(n.Ss,{className:"header-spacer"})]}),(0,x.jsxs)(n.Ss,{className:"service-hero surface-card",children:[(0,x.jsx)(n._V,{className:"service-hero-icon",src:(0,h.uq)("/icon/\u7535\u8bdd.png"),mode:"aspectFit"}),(0,x.jsx)(n.EY,{className:"service-title",children:"\u667a\u7ed8\u5fae\u523b\u5ba2\u670d\u4e2d\u5fc3"}),(0,x.jsx)(n.EY,{className:"service-desc",children:"\u5de5\u4f5c\u65e5 09:00 - 18:00 \u5728\u7ebf\u4e3a\u60a8\u670d\u52a1"}),(0,x.jsx)(n.Ss,{className:"btn-primary service-btn",onTap:function(){return r().showToast({title:"\u8df3\u8f6c\u5ba2\u670d\u4f1a\u8bdd",icon:"none"})},children:(0,x.jsx)(n.EY,{children:"\u53d1\u8d77\u54a8\u8be2"})})]}),(0,x.jsxs)(n.Ss,{className:"mt-20",children:[(0,x.jsx)(n.EY,{className:"section-title",children:"\u8054\u7cfb\u65b9\u5f0f"}),(0,x.jsxs)(n.Ss,{className:"contact-list surface-card",children:[(0,x.jsxs)(n.Ss,{className:"contact-item",children:[(0,x.jsx)(n._V,{className:"contact-icon-img",src:(0,h.uq)("/icon/\u7535\u8bdd.png"),mode:"aspectFit"}),(0,x.jsxs)(n.Ss,{className:"contact-info",children:[(0,x.jsx)(n.EY,{className:"contact-label",children:"\u5ba2\u670d\u7535\u8bdd"}),(0,x.jsx)(n.EY,{className:"contact-value",children:"400-XXX-XXXX"})]})]}),(0,x.jsxs)(n.Ss,{className:"contact-item contact-item-link",onTap:function(){return r().setClipboardData({data:"smart_engraving"})},children:[(0,x.jsx)(n._V,{className:"contact-icon-img",src:(0,h.uq)("/icon/\u8bcd\u4e91\u751f\u6210.png"),mode:"aspectFit"}),(0,x.jsxs)(n.Ss,{className:"contact-info",children:[(0,x.jsx)(n.EY,{className:"contact-label",children:"\u5ba2\u670d\u5fae\u4fe1"}),(0,x.jsx)(n.EY,{className:"contact-value",children:"smart_engraving\uff08\u70b9\u51fb\u590d\u5236\uff09"})]}),(0,x.jsx)(n.EY,{className:"contact-arrow",children:"\u203a"})]}),(0,x.jsxs)(n.Ss,{className:"contact-item",children:[(0,x.jsx)(n._V,{className:"contact-icon-img",src:(0,h.uq)("/icon/\u4f7f\u7528\u5e2e\u52a9.png"),mode:"aspectFit"}),(0,x.jsxs)(n.Ss,{className:"contact-info",children:[(0,x.jsx)(n.EY,{className:"contact-label",children:"\u5546\u52a1\u90ae\u7bb1"}),(0,x.jsx)(n.EY,{className:"contact-value",children:"biz@smart-engraving.com"})]})]})]})]}),(0,x.jsxs)(n.Ss,{className:"mt-20",children:[(0,x.jsx)(n.EY,{className:"section-title",children:"\u5e38\u89c1\u95ee\u9898"}),j.map(function(s,e){return(0,x.jsxs)(n.Ss,{className:"faq-card surface-card",children:[(0,x.jsxs)(n.EY,{className:"faq-q",children:["Q: ",s.q]}),(0,x.jsxs)(n.EY,{className:"faq-a",children:["A: ",s.a]})]},e)})]}),(0,x.jsxs)(n.Ss,{className:"enterprise-service surface-card mt-20 mb-20",children:[(0,x.jsxs)(n.Ss,{className:"flex-center",children:[(0,x.jsx)(n._V,{className:"enterprise-icon",src:(0,h.uq)("/icon/\u4f01\u4e1a\u6279\u91cf\u5b9a\u5236.png"),mode:"aspectFit"}),(0,x.jsx)(n.EY,{className:"enterprise-title",children:"\u4f01\u4e1a\u4e13\u5c5e\u5ba2\u6237\u7ecf\u7406"})]}),(0,x.jsx)(n.EY,{className:"enterprise-desc",children:"\u6279\u91cf\u8ba2\u5355\uff0850\u4ef6\u4ee5\u4e0a\uff09\u4eab\u4e13\u5c5e\u62a5\u4ef7\u3001\u4f18\u5148\u6392\u4ea7\u3001\u4e13\u4eba\u5bf9\u63a5"}),(0,x.jsx)(n.Ss,{className:"btn-secondary enterprise-btn",children:(0,x.jsx)(n.EY,{children:"\u9884\u7ea6\u4f01\u4e1a\u54a8\u8be2"})})]}),(0,x.jsx)(n.Ss,{style:{height:"80rpx"}})]})]})}var p={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u5ba2\u670d\u4e2d\u5fc3"};Page((0,c.createPageConfig)(N,"pages/service/index",{root:{cn:[]}},p||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(5942)});s.O()}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[248],{5942:function(s,e,a){var c=a(7842),n=a(118),t=a(758),r=a.n(t),i=a(9703),l=a(9201),o=a(5414),m=a(9674),d=a(3053),h=a(8199),x=a(4848),j=[{q:"\u5b9a\u5236\u5468\u671f\u9700\u8981\u591a\u4e45\uff1f",a:"\u901a\u5e38\u4e0b\u5355\u540e3-5\u4e2a\u5de5\u4f5c\u65e5\u5185\u53d1\u8d27\uff0c\u6279\u91cf\u8ba2\u5355\uff0850\u4ef6\u4ee5\u4e0a\uff09\u53ef\u80fd\u9700\u89817-10\u4e2a\u5de5\u4f5c\u65e5\u3002"},{q:"\u53ef\u4ee5\u4fee\u6539\u8bbe\u8ba1\u7a3f\u5417\uff1f",a:"\u751f\u4ea7\u524d\u53ef\u968f\u65f6\u5728\u8bbe\u8ba1\u5de5\u4f5c\u53f0\u4fee\u6539\u3002\u786e\u8ba4\u4e0b\u5355\u540e\u8fdb\u5165\u6392\u961f\u751f\u4ea7\u9636\u6bb5\uff0c\u4e0d\u53ef\u518d\u4fee\u6539\u3002"},{q:"\u652f\u6301\u9000\u6b3e/\u552e\u540e\u5417\uff1f",a:"\u975e\u8d28\u91cf\u95ee\u9898\u5b9a\u5236\u5546\u54c1\u4e0d\u652f\u63017\u5929\u65e0\u7406\u7531\u9000\u6b3e\u3002\u5982\u6536\u5230\u5546\u54c1\u6709\u7834\u635f\u6216\u96d5\u523b\u7f3a\u9677\uff0c\u8bf7\u5728\u7b7e\u653648\u5c0f\u65f6\u5185\u8054\u7cfb\u5ba2\u670d\u5904\u7406\u3002"},{q:"\u53ef\u4ee5\u5f00\u53d1\u7968\u5417\uff1f",a:"\u652f\u6301\u5f00\u5177\u589e\u503c\u7a0e\u666e\u901a\u53d1\u7968\u3002\u8bf7\u5728\u4e0b\u5355\u65f6\u586b\u5199\u53d1\u7968\u4fe1\u606f\uff0c\u6216\u8054\u7cfb\u5ba2\u670d\u8865\u5f00\u3002"}];function N(){var s=(0,i.wR)(),e=(s.theme,s.resolvedTheme),a=(0,l.c)();return(0,o.l)(e),(0,x.jsxs)(n.Ss,{className:"theme-".concat(e),style:{minHeight:"100vh"},children:[(0,x.jsx)(m.A,{}),(0,x.jsx)(d.A,{title:"\u8054\u7cfb\u5ba2\u670d",targetSelector:".page-header.service-header",showBack:!0}),(0,x.jsxs)(n.Ss,{className:"service-page",children:[(0,x.jsxs)(n.Ss,{className:"page-header service-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:[(0,x.jsx)(n.Ss,{className:"back-btn",onTap:function(){return r().navigateBack()},children:(0,x.jsx)(n.EY,{className:"back-arrow",children:"\u2190"})}),(0,x.jsx)(n.EY,{className:"page-title",children:"\u8054\u7cfb\u5ba2\u670d"}),(0,x.jsx)(n.Ss,{className:"header-spacer"})]}),(0,x.jsxs)(n.Ss,{className:"service-hero surface-card",children:[(0,x.jsx)(n._V,{className:"service-hero-icon",src:(0,h.uq)("/icon/\u7535\u8bdd.png"),mode:"aspectFit"}),(0,x.jsx)(n.EY,{className:"service-title",children:"\u667a\u7ed8\u5fae\u523b\u5ba2\u670d\u4e2d\u5fc3"}),(0,x.jsx)(n.EY,{className:"service-desc",children:"\u5de5\u4f5c\u65e5 09:00 - 18:00 \u5728\u7ebf\u4e3a\u60a8\u670d\u52a1"}),(0,x.jsx)(n.Ss,{className:"btn-primary service-btn",onTap:function(){return r().showToast({title:"\u8df3\u8f6c\u5ba2\u670d\u4f1a\u8bdd",icon:"none"})},children:(0,x.jsx)(n.EY,{children:"\u53d1\u8d77\u54a8\u8be2"})})]}),(0,x.jsxs)(n.Ss,{className:"mt-20",children:[(0,x.jsx)(n.EY,{className:"section-title",children:"\u8054\u7cfb\u65b9\u5f0f"}),(0,x.jsxs)(n.Ss,{className:"contact-list surface-card",children:[(0,x.jsxs)(n.Ss,{className:"contact-item",children:[(0,x.jsx)(n._V,{className:"contact-icon-img",src:(0,h.uq)("/icon/\u7535\u8bdd.png"),mode:"aspectFit"}),(0,x.jsxs)(n.Ss,{className:"contact-info",children:[(0,x.jsx)(n.EY,{className:"contact-label",children:"\u5ba2\u670d\u7535\u8bdd"}),(0,x.jsx)(n.EY,{className:"contact-value",children:"400-XXX-XXXX"})]})]}),(0,x.jsxs)(n.Ss,{className:"contact-item contact-item-link",onTap:function(){return r().setClipboardData({data:"smart_engraving"})},children:[(0,x.jsx)(n._V,{className:"contact-icon-img",src:(0,h.uq)("/icon/\u8bcd\u4e91\u751f\u6210.png"),mode:"aspectFit"}),(0,x.jsxs)(n.Ss,{className:"contact-info",children:[(0,x.jsx)(n.EY,{className:"contact-label",children:"\u5ba2\u670d\u5fae\u4fe1"}),(0,x.jsx)(n.EY,{className:"contact-value",children:"smart_engraving\uff08\u70b9\u51fb\u590d\u5236\uff09"})]}),(0,x.jsx)(n.EY,{className:"contact-arrow",children:"\u203a"})]}),(0,x.jsxs)(n.Ss,{className:"contact-item",children:[(0,x.jsx)(n._V,{className:"contact-icon-img",src:(0,h.uq)("/icon/\u4f7f\u7528\u5e2e\u52a9.png"),mode:"aspectFit"}),(0,x.jsxs)(n.Ss,{className:"contact-info",children:[(0,x.jsx)(n.EY,{className:"contact-label",children:"\u5546\u52a1\u90ae\u7bb1"}),(0,x.jsx)(n.EY,{className:"contact-value",children:"biz@smart-engraving.com"})]})]})]})]}),(0,x.jsxs)(n.Ss,{className:"mt-20",children:[(0,x.jsx)(n.EY,{className:"section-title",children:"\u5e38\u89c1\u95ee\u9898"}),j.map(function(s,e){return(0,x.jsxs)(n.Ss,{className:"faq-card surface-card",children:[(0,x.jsxs)(n.EY,{className:"faq-q",children:["Q: ",s.q]}),(0,x.jsxs)(n.EY,{className:"faq-a",children:["A: ",s.a]})]},e)})]}),(0,x.jsxs)(n.Ss,{className:"enterprise-service surface-card mt-20 mb-20",children:[(0,x.jsxs)(n.Ss,{className:"flex-center",children:[(0,x.jsx)(n._V,{className:"enterprise-icon",src:(0,h.uq)("/icon/\u4f01\u4e1a\u6279\u91cf\u5b9a\u5236.png"),mode:"aspectFit"}),(0,x.jsx)(n.EY,{className:"enterprise-title",children:"\u4f01\u4e1a\u4e13\u5c5e\u5ba2\u6237\u7ecf\u7406"})]}),(0,x.jsx)(n.EY,{className:"enterprise-desc",children:"\u6279\u91cf\u8ba2\u5355\uff0850\u4ef6\u4ee5\u4e0a\uff09\u4eab\u4e13\u5c5e\u62a5\u4ef7\u3001\u4f18\u5148\u6392\u4ea7\u3001\u4e13\u4eba\u5bf9\u63a5"}),(0,x.jsx)(n.Ss,{className:"btn-secondary enterprise-btn",children:(0,x.jsx)(n.EY,{children:"\u9884\u7ea6\u4f01\u4e1a\u54a8\u8be2"})})]})]})]})}var p={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u5ba2\u670d\u4e2d\u5fc3"};Page((0,c.createPageConfig)(N,"pages/service/index",{root:{cn:[]}},p||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(5942)});s.O()}]); \ No newline at end of file diff --git a/dist/pages/service/index.wxss b/dist/pages/service/index.wxss index 112632e..53e971b 100644 --- a/dist/pages/service/index.wxss +++ b/dist/pages/service/index.wxss @@ -1 +1 @@ -.service-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;padding:0 32rpx calc(24rpx + env(safe-area-inset-bottom))}.service-page .page-header.service-header{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin:0;padding-bottom:32rpx;padding-left:0;padding-right:0}.service-header .back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:50%;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;width:88rpx}.service-header .back-btn:active{-webkit-transform:scale(.96);-ms-transform:scale(.96);transform:scale(.96)}.service-header .back-arrow{color:var(--text-primary);font-size:36rpx;line-height:1}.service-header .page-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:44rpx;font-weight:700;letter-spacing:0;line-height:1.2;min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.service-header .header-spacer{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:88rpx}.service-hero{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:56rpx 40rpx;text-align:center}.service-hero-icon{height:88rpx;margin-bottom:24rpx;width:88rpx}.service-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;letter-spacing:0;margin-bottom:12rpx}.service-desc{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.5;margin-bottom:32rpx}.service-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center;min-width:280rpx;padding:0 48rpx}.service-page .section-title{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;letter-spacing:0;margin-bottom:24rpx}.contact-list.surface-card{overflow:hidden;padding:0 32rpx}.contact-item{-ms-flex-align:center;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:112rpx;padding:24rpx 0}.contact-item:last-child{border-bottom:none}.contact-item-link{-webkit-transition:background .16s ease;transition:background .16s ease}.contact-item-link:active{background:var(--bg-muted)}.contact-icon-img{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;height:48rpx;margin-right:24rpx;width:48rpx}.contact-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.contact-label{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.4;margin-bottom:4rpx}.contact-value{color:var(--text-primary);display:block;font-size:28rpx;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-arrow{-ms-flex-negative:0;color:var(--text-muted);-webkit-flex-shrink:0;flex-shrink:0;font-size:32rpx;line-height:1;margin-left:16rpx}.faq-card{display:block;margin-bottom:24rpx;padding:32rpx}.faq-q{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;letter-spacing:0;line-height:1.45;margin-bottom:12rpx}.faq-a{color:var(--text-secondary);display:block;font-size:26rpx;line-height:1.7}.enterprise-service{padding:32rpx}.enterprise-service .flex-center{-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;margin-bottom:12rpx}.enterprise-icon{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;height:40rpx;margin-right:12rpx;width:40rpx}.enterprise-title{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;letter-spacing:0}.enterprise-desc{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.6;margin-bottom:24rpx}.enterprise-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center} \ No newline at end of file +.service-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;padding:0 32rpx calc(24rpx + env(safe-area-inset-bottom))}.service-page .page-header.service-header{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin:0;padding-bottom:32rpx;padding-left:0;padding-right:0}.service-header .back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--bg-card);border:1rpx solid var(--border-strong);border-radius:50%;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:88rpx;-webkit-justify-content:center;justify-content:center;width:88rpx}.service-header .back-btn:active{-webkit-transform:scale(.96);-ms-transform:scale(.96);transform:scale(.96)}.service-header .back-arrow{color:var(--text-primary);font-size:36rpx;line-height:1}.service-header .page-title{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:34rpx;font-weight:700;letter-spacing:0;line-height:1.2;min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.service-header .header-spacer{-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:88rpx}.service-hero{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:56rpx 40rpx;text-align:center}.service-hero-icon{height:88rpx;margin-bottom:24rpx;width:88rpx}.service-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;letter-spacing:0;margin-bottom:12rpx}.service-desc{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.5;margin-bottom:32rpx}.service-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center;min-width:280rpx;padding:0 48rpx}.service-page .section-title{color:var(--text-primary);display:block;font-size:32rpx;font-weight:700;letter-spacing:0;margin-bottom:24rpx}.contact-list.surface-card{overflow:hidden;padding:0 32rpx}.contact-item{-ms-flex-align:center;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:112rpx;padding:24rpx 0}.contact-item:last-child{border-bottom:none}.contact-item-link{-webkit-transition:background .16s ease;transition:background .16s ease}.contact-item-link:active{background:var(--bg-muted)}.contact-icon-img{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;height:48rpx;margin-right:24rpx;width:48rpx}.contact-info{-webkit-flex:1;-ms-flex:1;flex:1;min-width:0}.contact-label{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.4;margin-bottom:4rpx}.contact-value{color:var(--text-primary);display:block;font-size:28rpx;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-arrow{-ms-flex-negative:0;color:var(--text-muted);-webkit-flex-shrink:0;flex-shrink:0;font-size:32rpx;line-height:1;margin-left:16rpx}.faq-card{display:block;margin-bottom:24rpx;padding:32rpx}.faq-q{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;letter-spacing:0;line-height:1.45;margin-bottom:12rpx}.faq-a{color:var(--text-secondary);display:block;font-size:26rpx;line-height:1.7}.enterprise-service{padding:32rpx}.enterprise-service .flex-center{-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;margin-bottom:12rpx}.enterprise-icon{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;height:40rpx;margin-right:12rpx;width:40rpx}.enterprise-title{color:var(--text-primary);display:block;font-size:30rpx;font-weight:700;letter-spacing:0}.enterprise-desc{color:var(--text-secondary);display:block;font-size:24rpx;line-height:1.6;margin-bottom:24rpx}.enterprise-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center} \ No newline at end of file diff --git a/dist/pages/shop/detail/index.js b/dist/pages/shop/detail/index.js index 1232a21..27d9506 100644 --- a/dist/pages/shop/detail/index.js +++ b/dist/pages/shop/detail/index.js @@ -1 +1 @@ -"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[158],{3483:function(s,e,a){var c=a(7842),t=a(5544),n=a(118),o=a(758),r=a.n(o),i=a(6540),l=a(5234),h=a(9201),p=a(5414),d=a(9703),m=a(9674),x=a(3053),g=a(9513),j=a(4848),u=function(s,e,a){return Math.min(Math.max(s,e),a)},N=function(s,e,a){return s+(e-s)*a},b=function(s){return 1-Math.pow(1-s,3)};function f(){var s=(0,d.wR)(),e=s.resolvedTheme,a=(0,i.useState)(667),c=(0,t.A)(a,2),o=c[0],f=c[1],y=(0,i.useState)(0),S=(0,t.A)(y,2),v=S[0],Y=S[1],k=(0,h.c)();(0,p.l)(e,{mode:"light"});var E=r().getCurrentInstance().router,w=E?E.params:void 0,P=w?w.id:"",O=l.zv.find(function(s){return s.id===P});(0,i.useEffect)(function(){try{var s=r().getSystemInfoSync();f(s.windowHeight)}catch(s){}},[]);var B=(0,i.useCallback)(function(s){var e=s.detail&&s.detail.scrollTop||0,a=1.2*o,c=u(e/a,0,1);Y(c)},[o]),T=(0,i.useMemo)(function(){var s=v,e=0,a=0;if(s<=.4){var c=b(s/.4);e=N(0,32,c),a=N(0,38,c)}else if(s<=.55){var t=(s-.4)/.15;e=N(32,34,t),a=N(38,41,t)}else e=34,a=41;var n=0;n=s<=.4?0:s<=.7?N(0,-75,(s-.4)/.3):-75;var o=1;o=s<=.35?1:s<=.48?u(1-(s-.35)/.13,0,1):0;var r=0;r=s<=.55?0:s<=.7?(s-.55)/.15:1;var i=1,l=0;if(s<=.05)i=0,l=60;else if(s<=.22){var h=(s-.05)/.17;i=b(h),l=N(60,0,b(h))}var p=1;return s<=.15&&(p=u(1-s/.15,0,1)),{topCrop:e,bottomCrop:a,translateY:n,heroInfoOpacity:o,bandOpacity:r,contentOpacity:i,contentOffset:l,backBtnOpacity:p,visibleHeight:100-e-a}},[v]),A=(0,i.useMemo)(function(){return O?O.tone:[28,22,18]},[O]);return O?(0,j.jsxs)(n.Ss,{className:"shop-detail-page theme-dark",children:[(0,j.jsx)(m.A,{darkTop:!0}),(0,j.jsx)(x.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".shop-back-btn",showBack:!0}),(0,j.jsxs)(n.Ss,{className:"shop-hero-fixed",children:[(0,j.jsx)(n.Ss,{className:"shop-hero-clip",style:{height:"".concat(o*T.visibleHeight/100,"px"),overflow:"hidden",transform:"translateY(".concat(o*T.translateY/100,"px)")},children:(0,j.jsx)(n._V,{className:"shop-hero-img",src:O.images&&O.images[0]||O.iconImg||"",mode:"aspectFill",style:{width:"100%",height:"".concat(o,"px"),position:"absolute",top:"".concat(-o*T.topCrop/100,"px"),left:0}})}),(0,j.jsx)(n.Ss,{className:"shop-hero-overlay",style:{background:"linear-gradient(to bottom, rgba(".concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0) 0%, rgba(").concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0.55) 40%, rgba(").concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0.95) 100%)")}}),(0,j.jsxs)(n.Ss,{className:"shop-hero-info",style:{opacity:T.heroInfoOpacity},children:[(0,j.jsx)(n.EY,{className:"shop-hero-title",children:O.name}),(0,j.jsx)(n.EY,{className:"shop-hero-subtitle",children:O.subtitle||O.desc}),(0,j.jsxs)(n.Ss,{className:"shop-hero-price-row",children:[(0,j.jsxs)(n.EY,{className:"shop-hero-price",children:["\xa5",O.price]}),O.originalPrice&&O.originalPrice>O.price&&(0,j.jsxs)(n.EY,{className:"shop-hero-original",children:["\xa5",O.originalPrice]})]})]})]}),(0,j.jsxs)(n.BM,{className:"shop-scroll",scrollY:!0,scrollEventThrottle:16,style:{height:"".concat(o,"px")},onScroll:B,children:[(0,j.jsx)(n.Ss,{style:{height:"".concat(.65*o,"px")}}),(0,j.jsxs)(n.Ss,{className:"shop-content",style:{backgroundColor:"rgb(".concat(A[0],", ").concat(A[1],", ").concat(A[2],")")},children:[(0,j.jsxs)(n.Ss,{className:"shop-band",style:{top:"".concat(k.statusBarHeight,"px"),opacity:T.bandOpacity,backgroundColor:"rgba(".concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0.88)"),backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:[(0,j.jsx)(n.EY,{className:"shop-band-title",children:O.name}),(0,j.jsx)(n.EY,{className:"shop-band-subtitle",children:O.subtitle||O.desc}),(0,j.jsxs)(n.Ss,{className:"shop-band-price-row",children:[(0,j.jsxs)(n.EY,{className:"shop-band-price",children:["\xa5",O.price]}),O.originalPrice&&O.originalPrice>O.price&&(0,j.jsxs)(n.EY,{className:"shop-band-original",children:["\xa5",O.originalPrice]})]})]}),(0,j.jsxs)(n.Ss,{className:"shop-detail-body",style:{opacity:T.contentOpacity,transform:"translateY(".concat(T.contentOffset,"px)")},children:[(0,j.jsxs)(n.Ss,{className:"shop-content-card",children:[O.story&&(0,j.jsxs)(n.Ss,{className:"shop-section",children:[(0,j.jsx)(n.EY,{className:"shop-section-title",children:"\u8bbe\u8ba1\u7406\u5ff5"}),(0,j.jsx)(n.EY,{className:"shop-section-text",children:O.story})]}),O.story&&O.scene&&(0,j.jsx)(n.Ss,{className:"shop-divider"}),O.scene&&(0,j.jsxs)(n.Ss,{className:"shop-section",children:[(0,j.jsx)(n.EY,{className:"shop-section-title",children:"\u4f7f\u7528\u573a\u666f"}),(0,j.jsx)(n.EY,{className:"shop-section-text",children:O.scene})]}),O.tags&&O.tags.length>0&&(0,j.jsx)(n.Ss,{className:"shop-section",children:(0,j.jsx)(n.Ss,{className:"shop-tag-row",children:O.tags.map(function(s){return(0,j.jsx)(n.Ss,{className:"shop-tag",children:(0,j.jsx)(n.EY,{className:"shop-tag-text",children:s})},s)})})}),(O.story||O.scene)&&O.tags&&O.tags.length>0&&(0,j.jsx)(n.Ss,{className:"shop-divider"}),(O.story||O.scene||O.tags&&O.tags.length>0)&&O.specs&&O.specs.length>0&&(0,j.jsx)(n.Ss,{className:"shop-divider"}),O.specs&&O.specs.length>0&&(0,j.jsxs)(n.Ss,{className:"shop-section",children:[(0,j.jsx)(n.EY,{className:"shop-section-title",children:"\u89c4\u683c\u53c2\u6570"}),(0,j.jsx)(n.Ss,{className:"shop-spec-table",children:O.specs.map(function(s){var e=(0,t.A)(s,2),a=e[0],c=e[1];return(0,j.jsxs)(n.Ss,{className:"shop-spec-row",children:[(0,j.jsx)(n.EY,{className:"shop-spec-key",children:a}),(0,j.jsx)(n.EY,{className:"shop-spec-val",children:c})]},a)})})]})]}),(0,j.jsx)(n.Ss,{className:"shop-bottom-spacer"})]})]})]},O.id),(0,j.jsx)(n.Ss,{className:"shop-back-btn",onTap:function(){return r().navigateBack()},style:{top:"".concat(k.backBtnPaddingTop,"px"),opacity:T.backBtnOpacity},children:(0,j.jsx)(n.EY,{className:"shop-back-arrow",children:"\u2190"})}),(0,j.jsxs)(g.A,{children:[(0,j.jsxs)(n.Ss,{className:"price-summary",children:[(0,j.jsx)(n.EY,{className:"summary-label",children:"\u8d77\u4ef7"}),(0,j.jsxs)(n.EY,{className:"summary-price",children:["\xa5",O.price]}),O.originalPrice&&O.originalPrice>O.price&&(0,j.jsxs)(n.EY,{className:"summary-original",children:["\xa5",O.originalPrice]})]}),(0,j.jsx)(n.Ss,{className:"btn-secondary",onTap:function(){return r().navigateBack()},children:(0,j.jsx)(n.EY,{children:"\u8fd4\u56de"})}),(0,j.jsx)(n.Ss,{className:"btn-primary",onTap:function(){return r().navigateTo({url:"/pages/product/index?id=".concat(O.id)})},children:(0,j.jsx)(n.EY,{children:"\u7acb\u5373\u5b9a\u5236"})})]}),(0,j.jsx)(n.Ss,{className:"safe-bottom-placeholder"})]}):(0,j.jsxs)(n.Ss,{className:"shop-detail-page theme-dark",children:[(0,j.jsx)(m.A,{darkTop:!0}),(0,j.jsx)(x.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".shop-back-btn",showBack:!0}),(0,j.jsx)(n.EY,{style:{color:"#fff",padding:"40rpx"},children:"\u5546\u54c1\u4e0d\u5b58\u5728"})]})}var y={navigationStyle:"custom",enablePageMeta:!0,navigationBarTextStyle:"white"};Page((0,c.createPageConfig)(f,"pages/shop/detail/index",{root:{cn:[]}},y||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(3483)});s.O()}]); \ No newline at end of file +"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[158],{3483:function(s,e,a){var c=a(7842),t=a(5544),n=a(118),o=a(758),r=a.n(o),i=a(6540),l=a(5234),h=a(9201),p=a(5414),d=a(9703),m=a(9674),x=a(3053),g=a(9513),u=a(4848),j=function(s,e,a){return Math.min(Math.max(s,e),a)},N=function(s,e,a){return s+(e-s)*a},b=function(s){return 1-Math.pow(1-s,3)};function f(){var s=(0,d.wR)(),e=s.resolvedTheme,a=(0,i.useState)(667),c=(0,t.A)(a,2),o=c[0],f=c[1],y=(0,i.useState)(0),S=(0,t.A)(y,2),v=S[0],Y=S[1],E=(0,h.c)();(0,p.l)(e,{mode:"light"});var k=r().getCurrentInstance().router,w=k?k.params:void 0,O=w?w.id:"",P=l.zv.find(function(s){return s.id===O});(0,i.useEffect)(function(){try{var s=r().getSystemInfoSync();f(s.windowHeight)}catch(s){}},[]);var B=(0,i.useCallback)(function(s){var e=s.detail&&s.detail.scrollTop||0,a=1.2*o,c=j(e/a,0,1);Y(c)},[o]),T=(0,i.useMemo)(function(){var s=v,e=0,a=0;if(s<=.4){var c=b(s/.4);e=N(0,32,c),a=N(0,38,c)}else if(s<=.55){var t=(s-.4)/.15;e=N(32,34,t),a=N(38,41,t)}else e=34,a=41;var n=0;n=s<=.4?0:s<=.7?N(0,-75,(s-.4)/.3):-75;var o=1;o=s<=.35?1:s<=.48?j(1-(s-.35)/.13,0,1):0;var r=0;r=s<=.55?0:s<=.7?(s-.55)/.15:1;var i=1,l=0;if(s<=.05)i=0,l=60;else if(s<=.22){var h=(s-.05)/.17;i=b(h),l=N(60,0,b(h))}var p=1;return s<=.15&&(p=j(1-s/.15,0,1)),{topCrop:e,bottomCrop:a,translateY:n,heroInfoOpacity:o,bandOpacity:r,contentOpacity:i,contentOffset:l,backBtnOpacity:p,visibleHeight:100-e-a}},[v]),A=(0,i.useMemo)(function(){return P?P.tone:[28,22,18]},[P]);return P?(0,u.jsxs)(n.Ss,{className:"shop-detail-page theme-dark",children:[(0,u.jsx)(m.A,{darkTop:!0}),(0,u.jsx)(x.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".shop-back-btn",showBack:!0}),(0,u.jsxs)(n.Ss,{className:"shop-hero-fixed",children:[(0,u.jsx)(n.Ss,{className:"shop-hero-clip",style:{height:"".concat(o*T.visibleHeight/100,"px"),overflow:"hidden",transform:"translateY(".concat(o*T.translateY/100,"px)")},children:(0,u.jsx)(n._V,{className:"shop-hero-img",src:P.images&&P.images[0]||P.iconImg||"",mode:"aspectFill",style:{width:"100%",height:"".concat(o,"px"),position:"absolute",top:"".concat(-o*T.topCrop/100,"px"),left:0}})}),(0,u.jsx)(n.Ss,{className:"shop-hero-overlay",style:{background:"linear-gradient(to bottom, rgba(".concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0) 0%, rgba(").concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0.55) 40%, rgba(").concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0.95) 100%)")}}),(0,u.jsxs)(n.Ss,{className:"shop-hero-info",style:{opacity:T.heroInfoOpacity},children:[(0,u.jsx)(n.EY,{className:"shop-hero-title",children:P.name}),(0,u.jsx)(n.EY,{className:"shop-hero-subtitle",children:P.subtitle||P.desc}),(0,u.jsxs)(n.Ss,{className:"shop-hero-price-row",children:[(0,u.jsxs)(n.EY,{className:"shop-hero-price",children:["\xa5",P.price]}),P.originalPrice&&P.originalPrice>P.price&&(0,u.jsxs)(n.EY,{className:"shop-hero-original",children:["\xa5",P.originalPrice]})]})]})]}),(0,u.jsxs)(n.BM,{className:"shop-scroll",scrollY:!0,scrollEventThrottle:16,style:{height:"".concat(o,"px")},onScroll:B,children:[(0,u.jsx)(n.Ss,{style:{height:"".concat(.65*o,"px")}}),(0,u.jsxs)(n.Ss,{className:"shop-content",style:{backgroundColor:"rgb(".concat(A[0],", ").concat(A[1],", ").concat(A[2],")")},children:[(0,u.jsxs)(n.Ss,{className:"shop-band",style:{top:"".concat(E.statusBarHeight,"px"),opacity:T.bandOpacity,backgroundColor:"rgba(".concat(A[0],", ").concat(A[1],", ").concat(A[2],", 0.88)"),backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:[(0,u.jsx)(n.EY,{className:"shop-band-title",children:P.name}),(0,u.jsx)(n.EY,{className:"shop-band-subtitle",children:P.subtitle||P.desc}),(0,u.jsxs)(n.Ss,{className:"shop-band-price-row",children:[(0,u.jsxs)(n.EY,{className:"shop-band-price",children:["\xa5",P.price]}),P.originalPrice&&P.originalPrice>P.price&&(0,u.jsxs)(n.EY,{className:"shop-band-original",children:["\xa5",P.originalPrice]})]})]}),(0,u.jsxs)(n.Ss,{className:"shop-detail-body",style:{opacity:T.contentOpacity,transform:"translateY(".concat(T.contentOffset,"px)")},children:[(0,u.jsxs)(n.Ss,{className:"shop-content-card",children:[P.story&&(0,u.jsxs)(n.Ss,{className:"shop-section",children:[(0,u.jsx)(n.EY,{className:"shop-section-title",children:"\u8bbe\u8ba1\u7406\u5ff5"}),(0,u.jsx)(n.EY,{className:"shop-section-text",children:P.story})]}),P.story&&P.scene&&(0,u.jsx)(n.Ss,{className:"shop-divider"}),P.scene&&(0,u.jsxs)(n.Ss,{className:"shop-section",children:[(0,u.jsx)(n.EY,{className:"shop-section-title",children:"\u4f7f\u7528\u573a\u666f"}),(0,u.jsx)(n.EY,{className:"shop-section-text",children:P.scene})]}),P.tags&&P.tags.length>0&&(0,u.jsx)(n.Ss,{className:"shop-section",children:(0,u.jsx)(n.Ss,{className:"shop-tag-row",children:P.tags.map(function(s){return(0,u.jsx)(n.Ss,{className:"shop-tag",children:(0,u.jsx)(n.EY,{className:"shop-tag-text",children:s})},s)})})}),(P.story||P.scene)&&P.tags&&P.tags.length>0&&(0,u.jsx)(n.Ss,{className:"shop-divider"}),(P.story||P.scene||P.tags&&P.tags.length>0)&&P.specs&&P.specs.length>0&&(0,u.jsx)(n.Ss,{className:"shop-divider"}),P.specs&&P.specs.length>0&&(0,u.jsxs)(n.Ss,{className:"shop-section",children:[(0,u.jsx)(n.EY,{className:"shop-section-title",children:"\u89c4\u683c\u53c2\u6570"}),(0,u.jsx)(n.Ss,{className:"shop-spec-table",children:P.specs.map(function(s){var e=(0,t.A)(s,2),a=e[0],c=e[1];return(0,u.jsxs)(n.Ss,{className:"shop-spec-row",children:[(0,u.jsx)(n.EY,{className:"shop-spec-key",children:a}),(0,u.jsx)(n.EY,{className:"shop-spec-val",children:c})]},a)})})]})]}),(0,u.jsx)(n.Ss,{className:"shop-bottom-spacer"})]})]})]},P.id),(0,u.jsx)(n.Ss,{className:"shop-back-btn",onTap:function(){return r().navigateBack()},style:{top:"".concat(E.menuButtonTop,"px"),opacity:T.backBtnOpacity},children:(0,u.jsx)(n.EY,{className:"shop-back-arrow",children:"\u2190"})}),(0,u.jsxs)(g.A,{children:[(0,u.jsxs)(n.Ss,{className:"price-summary",children:[(0,u.jsx)(n.EY,{className:"summary-label",children:"\u8d77\u4ef7"}),(0,u.jsxs)(n.EY,{className:"summary-price",children:["\xa5",P.price]}),P.originalPrice&&P.originalPrice>P.price&&(0,u.jsxs)(n.EY,{className:"summary-original",children:["\xa5",P.originalPrice]})]}),(0,u.jsx)(n.Ss,{className:"btn-secondary",onTap:function(){return r().navigateBack()},children:(0,u.jsx)(n.EY,{children:"\u8fd4\u56de"})}),(0,u.jsx)(n.Ss,{className:"btn-primary",onTap:function(){return r().navigateTo({url:"/pages/product/index?id=".concat(P.id)})},children:(0,u.jsx)(n.EY,{children:"\u7acb\u5373\u5b9a\u5236"})})]}),(0,u.jsx)(n.Ss,{className:"safe-bottom-placeholder"})]}):(0,u.jsxs)(n.Ss,{className:"shop-detail-page theme-dark",children:[(0,u.jsx)(m.A,{darkTop:!0}),(0,u.jsx)(x.A,{title:"\u5546\u54c1\u8be6\u60c5",targetSelector:".shop-back-btn",showBack:!0}),(0,u.jsx)(n.EY,{style:{color:"#fff",padding:"40rpx"},children:"\u5546\u54c1\u4e0d\u5b58\u5728"})]})}var y={navigationStyle:"custom",enablePageMeta:!0,navigationBarTextStyle:"white"};Page((0,c.createPageConfig)(f,"pages/shop/detail/index",{root:{cn:[]}},y||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(3483)});s.O()}]); \ No newline at end of file diff --git a/dist/pages/shop/detail/index.wxss b/dist/pages/shop/detail/index.wxss index c7a55dd..eaebe21 100644 --- a/dist/pages/shop/detail/index.wxss +++ b/dist/pages/shop/detail/index.wxss @@ -1 +1 @@ -.shop-detail-page{background:var(--bg-page);bottom:0;left:0;position:fixed;right:0;top:0}.shop-hero-fixed{height:65vh;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:0}.shop-hero-clip{bottom:0;left:0;position:absolute;right:0;top:0;will-change:height,transform}.shop-hero-img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%;will-change:top}.shop-hero-overlay{bottom:0;height:55%;left:0;pointer-events:none;position:absolute;right:0}.shop-hero-info{bottom:0;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:8rpx;left:0;padding:96rpx 40rpx calc(24rpx + env(safe-area-inset-bottom));position:absolute;right:0;z-index:2}.shop-hero-title{color:var(--text-primary);font-size:44rpx;font-weight:700;line-height:1.3}.shop-hero-subtitle{color:var(--text-secondary);font-size:24rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-hero-price-row{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseline;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-top:6rpx}.shop-hero-price{color:var(--accent-primary);font-size:44rpx;font-weight:700}.shop-hero-original{color:var(--text-muted);font-size:26rpx;text-decoration:line-through}.shop-scroll{position:relative;z-index:3}.shop-content{min-height:100vh;will-change:transform}.shop-band{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:10rpx;padding:24rpx 40rpx;position:-webkit-sticky;position:sticky;top:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity;z-index:4}.shop-band-title{color:var(--text-primary);font-size:40rpx;font-weight:700;line-height:1.3}.shop-band-subtitle{color:var(--text-secondary);font-size:24rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-band-price-row{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseline;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-top:6rpx}.shop-band-price{color:var(--accent-primary);font-size:40rpx;font-weight:700}.shop-band-original{color:var(--text-muted);font-size:26rpx;text-decoration:line-through}.shop-detail-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 32rpx calc(48rpx + env(safe-area-inset-bottom));will-change:opacity,transform}.shop-content-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:32rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);-webkit-box-sizing:border-box;box-sizing:border-box;padding:32rpx}.shop-section{margin-bottom:32rpx}.shop-section:last-child{margin-bottom:0}.shop-section-title{color:var(--text-primary);display:block;font-size:34rpx;font-weight:700;letter-spacing:0;margin:0 0 20rpx;padding-left:20rpx;position:relative}.shop-section-title::before{background:var(--accent-primary);border-radius:999rpx;bottom:8rpx;content:"";left:0;position:absolute;top:8rpx;width:6rpx}.shop-section-text{color:var(--text-secondary);display:block;font-size:28rpx;line-height:1.8}.shop-divider{background:var(--border);height:1rpx;margin:32rpx 0}.shop-tag-row{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16rpx;margin:20rpx 0}.shop-tag{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--accent-primary-soft);border:1rpx solid var(--accent-primary);border-radius:999rpx;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:22rpx;font-weight:600;height:56rpx;-webkit-justify-content:center;justify-content:center;padding:0 28rpx}.shop-tag-text{color:var(--accent-primary)}.shop-spec-table{background:var(--bg-muted);border:1rpx solid var(--border);border-radius:20rpx;overflow:hidden;width:100%}.shop-spec-row{border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;padding:24rpx 28rpx}.shop-spec-row:last-child{border-bottom:none}.shop-spec-key{color:var(--text-muted);font-size:24rpx;font-weight:500;width:35%}.shop-spec-val{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:26rpx;font-weight:500;word-break:break-all}.shop-bottom-spacer{height:200rpx}.shop-back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;backdrop-filter:blur(16rpx) saturate(1.4);-webkit-backdrop-filter:blur(16rpx) saturate(1.4);background:rgba(40,35,32,.5);border:1rpx solid var(--glass-line);border-radius:50%;-webkit-box-shadow:var(--shadow-elevated);box-shadow:var(--shadow-elevated);display:-webkit-flex;display:-ms-flexbox;display:flex;height:88rpx;-webkit-justify-content:center;justify-content:center;left:24rpx;position:fixed;top:calc(env(safe-area-inset-top, 20rpx) + 20rpx);-webkit-transition:opacity .2s ease,-webkit-transform .15s ease;transition:opacity .2s ease,-webkit-transform .15s ease;transition:opacity .2s ease,transform .15s ease;transition:opacity .2s ease,transform .15s ease,-webkit-transform .15s ease;width:88rpx;z-index:50}.shop-back-btn:active{-webkit-transform:scale(.92);-ms-transform:scale(.92);transform:scale(.92)}.shop-back-arrow{color:var(--text-primary);font-size:36rpx;line-height:1}.bottom-action-bar .price-summary{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0}.bottom-action-bar .btn-primary,.bottom-action-bar .btn-secondary{-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;line-height:1.2;padding:28rpx 0;text-align:center}.summary-label{color:var(--text-secondary);display:block;font-size:22rpx}.summary-price{color:var(--accent-primary);font-size:40rpx;font-weight:700}.summary-original{color:var(--text-muted);font-size:24rpx;text-decoration:line-through} \ No newline at end of file +.shop-detail-page{background:var(--bg-page);bottom:0;left:0;position:fixed;right:0;top:0}.shop-hero-fixed{height:65vh;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:0}.shop-hero-clip{bottom:0;left:0;position:absolute;right:0;top:0;will-change:height,transform}.shop-hero-img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%;will-change:top}.shop-hero-overlay{bottom:0;height:55%;left:0;pointer-events:none;position:absolute;right:0}.shop-hero-info{bottom:0;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:8rpx;left:0;padding:96rpx 40rpx calc(24rpx + env(safe-area-inset-bottom));position:absolute;right:0;z-index:2}.shop-hero-title{color:var(--text-primary);font-size:44rpx;font-weight:700;line-height:1.3}.shop-hero-subtitle{color:var(--text-secondary);font-size:24rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-hero-price-row{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseline;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-top:6rpx}.shop-hero-price{color:var(--accent-primary);font-size:44rpx;font-weight:700}.shop-hero-original{color:var(--text-muted);font-size:26rpx;text-decoration:line-through}.shop-scroll{position:relative;z-index:3}.shop-content{min-height:100vh;will-change:transform}.shop-band{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:10rpx;padding:24rpx 40rpx;position:-webkit-sticky;position:sticky;top:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity;z-index:4}.shop-band-title{color:var(--text-primary);font-size:40rpx;font-weight:700;line-height:1.3}.shop-band-subtitle{color:var(--text-secondary);font-size:24rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-band-price-row{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseline;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16rpx;margin-top:6rpx}.shop-band-price{color:var(--accent-primary);font-size:40rpx;font-weight:700}.shop-band-original{color:var(--text-muted);font-size:26rpx;text-decoration:line-through}.shop-detail-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 32rpx calc(48rpx + env(safe-area-inset-bottom));will-change:opacity,transform}.shop-content-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:32rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);-webkit-box-sizing:border-box;box-sizing:border-box;padding:32rpx}.shop-section{margin-bottom:32rpx}.shop-section:last-child{margin-bottom:0}.shop-section-title{color:var(--text-primary);display:block;font-size:34rpx;font-weight:700;letter-spacing:0;margin:0 0 20rpx;padding-left:20rpx;position:relative}.shop-section-title::before{background:var(--accent-primary);border-radius:999rpx;bottom:8rpx;content:"";left:0;position:absolute;top:8rpx;width:6rpx}.shop-section-text{color:var(--text-secondary);display:block;font-size:28rpx;line-height:1.8}.shop-divider{background:var(--border);height:1rpx;margin:32rpx 0}.shop-tag-row{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16rpx;margin:20rpx 0}.shop-tag{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:var(--accent-primary-soft);border:1rpx solid var(--accent-primary);border-radius:999rpx;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:22rpx;font-weight:600;height:56rpx;-webkit-justify-content:center;justify-content:center;padding:0 28rpx}.shop-tag-text{color:var(--accent-primary)}.shop-spec-table{background:var(--bg-muted);border:1rpx solid var(--border);border-radius:20rpx;overflow:hidden;width:100%}.shop-spec-row{border-bottom:1rpx solid var(--border);display:-webkit-flex;display:-ms-flexbox;display:flex;padding:24rpx 28rpx}.shop-spec-row:last-child{border-bottom:none}.shop-spec-key{color:var(--text-muted);font-size:24rpx;font-weight:500;width:35%}.shop-spec-val{color:var(--text-primary);-webkit-flex:1;-ms-flex:1;flex:1;font-size:26rpx;font-weight:500;word-break:break-all}.shop-bottom-spacer{height:200rpx}.shop-back-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;backdrop-filter:blur(16rpx) saturate(1.4);-webkit-backdrop-filter:blur(16rpx) saturate(1.4);background:rgba(40,35,32,.5);border:1rpx solid var(--glass-line);border-radius:50%;-webkit-box-shadow:var(--shadow-elevated);box-shadow:var(--shadow-elevated);display:-webkit-flex;display:-ms-flexbox;display:flex;height:80rpx;-webkit-justify-content:center;justify-content:center;left:30rpx;position:fixed;top:calc(env(safe-area-inset-top, 20rpx) + 20rpx);-webkit-transition:opacity .2s ease,-webkit-transform .15s ease;transition:opacity .2s ease,-webkit-transform .15s ease;transition:opacity .2s ease,transform .15s ease;transition:opacity .2s ease,transform .15s ease,-webkit-transform .15s ease;width:80rpx;z-index:50}.shop-back-btn:active{-webkit-transform:scale(.92);-ms-transform:scale(.92);transform:scale(.92)}.shop-back-arrow{color:var(--text-primary);font-size:44rpx;font-weight:600;line-height:1}.bottom-action-bar .price-summary{-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0}.bottom-action-bar .btn-primary,.bottom-action-bar .btn-secondary{-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;line-height:1.2;padding:28rpx 0;text-align:center}.summary-label{color:var(--text-secondary);display:block;font-size:22rpx}.summary-price{color:var(--accent-primary);font-size:40rpx;font-weight:700}.summary-original{color:var(--text-muted);font-size:24rpx;text-decoration:line-through} \ No newline at end of file diff --git a/dist/pages/shop/index.wxss b/dist/pages/shop/index.wxss index f8bbe74..226ddac 100644 --- a/dist/pages/shop/index.wxss +++ b/dist/pages/shop/index.wxss @@ -1 +1 @@ -.shop-list{padding:0 32rpx calc(220rpx + env(safe-area-inset-bottom))}.shop-header{padding:48rpx 0 32rpx;text-align:center}.shop-header-title{color:var(--text-primary);display:block;font-size:44rpx;font-weight:700;letter-spacing:0}.shop-header-sub{color:var(--text-secondary);display:block;font-size:24rpx;margin-top:8rpx}.shop-grid{display:grid;gap:24rpx;grid-template-columns:1fr 1fr}.shop-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);overflow:hidden;-webkit-transition:-webkit-transform .15s ease;transition:-webkit-transform .15s ease;transition:transform .15s ease;transition:transform .15s ease,-webkit-transform .15s ease}.shop-card:active{-webkit-transform:scale(.98);-ms-transform:scale(.98);transform:scale(.98)}.shop-card-img-wrap{aspect-ratio:1/1;background:var(--bg-muted);overflow:hidden}.shop-card-img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-transition:-webkit-transform .4s ease;transition:-webkit-transform .4s ease;transition:transform .4s ease;transition:transform .4s ease,-webkit-transform .4s ease;width:100%}.shop-card-body{padding:20rpx 24rpx 24rpx}.shop-card-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text-primary);display:-webkit-box;font-size:28rpx;font-weight:700;line-height:1.4;overflow:hidden}.shop-card-desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text-secondary);display:-webkit-box;font-size:24rpx;line-height:1.4;margin-top:8rpx;overflow:hidden}.shop-card-price{color:var(--accent-primary);display:block;font-size:32rpx;font-variant:tabular-nums;font-weight:700;margin-top:12rpx}@media (min-width:750rpx){.shop-page{-ms-flex-pack:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}} \ No newline at end of file +.shop-list{padding:0 32rpx calc(220rpx + env(safe-area-inset-bottom))}.shop-header{padding-bottom:32rpx}.shop-header-title{color:var(--text-primary);display:block;font-size:56rpx;font-weight:800;letter-spacing:0;line-height:1.15}.shop-header-sub{color:var(--text-secondary);display:block;font-size:24rpx;margin-top:8rpx}.shop-grid{display:grid;gap:24rpx;grid-template-columns:1fr 1fr}.shop-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);overflow:hidden;-webkit-transition:-webkit-transform .15s ease;transition:-webkit-transform .15s ease;transition:transform .15s ease;transition:transform .15s ease,-webkit-transform .15s ease}.shop-card:active{-webkit-transform:scale(.98);-ms-transform:scale(.98);transform:scale(.98)}.shop-card-img-wrap{aspect-ratio:1/1;background:var(--bg-muted);overflow:hidden}.shop-card-img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-transition:-webkit-transform .4s ease;transition:-webkit-transform .4s ease;transition:transform .4s ease;transition:transform .4s ease,-webkit-transform .4s ease;width:100%}.shop-card-body{padding:20rpx 24rpx 24rpx}.shop-card-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text-primary);display:-webkit-box;font-size:28rpx;font-weight:700;line-height:1.4;overflow:hidden}.shop-card-desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text-secondary);display:-webkit-box;font-size:24rpx;line-height:1.4;margin-top:8rpx;overflow:hidden}.shop-card-price{color:var(--accent-primary);display:block;font-size:32rpx;font-variant:tabular-nums;font-weight:700;margin-top:12rpx}@media (min-width:750rpx){.shop-page{-ms-flex-pack:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}} \ No newline at end of file diff --git a/dist/pages/userDatabase/index.wxss b/dist/pages/userDatabase/index.wxss index 0f5eed0..f2a7742 100644 --- a/dist/pages/userDatabase/index.wxss +++ b/dist/pages/userDatabase/index.wxss @@ -1 +1 @@ -.udb-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;padding:0 32rpx calc(24rpx + env(safe-area-inset-bottom))}.udb-lock-page{-ms-flex-pack:start;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;justify-content:flex-start}.udb-lock-card{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:48rpx;padding:64rpx 40rpx;text-align:center}.udb-lock-icon{height:96rpx;margin-bottom:24rpx;width:96rpx}.udb-lock-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;letter-spacing:0;margin-bottom:12rpx}.udb-lock-desc{color:var(--text-secondary);display:block;font-size:26rpx;line-height:1.6;margin-bottom:32rpx}.udb-password-input{background:var(--bg-input);border:1rpx solid var(--border);border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--text-primary);font-size:30rpx;height:88rpx;margin-bottom:24rpx;padding:0 24rpx;text-align:center;width:100%}.udb-password-input::-webkit-input-placeholder{color:var(--text-muted)}.udb-password-input::-moz-placeholder{color:var(--text-muted)}.udb-password-input:-ms-input-placeholder{color:var(--text-muted)}.udb-password-input::-ms-input-placeholder{color:var(--text-muted)}.udb-password-input::placeholder{color:var(--text-muted)}.udb-error{color:var(--danger);display:block;font-size:24rpx;line-height:1.5;margin-bottom:20rpx}.udb-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:30rpx;font-weight:600;height:96rpx;-webkit-justify-content:center;justify-content:center;width:100%}.page-header.udb-header{margin:0;min-height:88rpx;padding-bottom:24rpx;padding-left:0;padding-right:0}.udb-header .page-title{color:var(--text-primary);font-size:44rpx;font-weight:700;letter-spacing:0;text-align:center}.udb-toolbar{-ms-flex-pack:end;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-end;justify-content:flex-end;margin:8rpx 0 24rpx}.udb-add-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:26rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center;padding:0 32rpx}.udb-table{background:var(--bg-card);border:1rpx solid var(--border);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);overflow:hidden}.udb-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:112rpx;padding:16rpx 24rpx}.udb-row:last-child{border-bottom:none}.udb-header{background:var(--bg-input);min-height:80rpx}.udb-header .udb-col{color:var(--text-primary);font-size:24rpx;font-weight:700}.udb-col{-ms-flex-negative:0;color:var(--text-secondary);-webkit-flex-shrink:0;flex-shrink:0;font-size:24rpx;overflow:hidden;padding:0 8rpx;text-overflow:ellipsis;white-space:nowrap}.col-nick{-webkit-flex:0 0 24%;-ms-flex:0 0 24%;flex:0 0 24%}.col-id{-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%}.col-stats{-webkit-flex:0 0 18%;-ms-flex:0 0 18%;flex:0 0 18%;text-align:center}.col-action{-ms-flex-align:center;-ms-flex-pack:end;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12rpx;-webkit-justify-content:flex-end;justify-content:flex-end;min-width:0}.udb-row.active{background:var(--accent-secondary-soft)}.udb-link{background:var(--accent-secondary-soft);border-radius:999rpx;color:var(--accent-secondary);font-size:22rpx;font-weight:600;line-height:1.2;padding:10rpx 20rpx}.udb-danger{background:var(--danger-soft);color:var(--danger)}.udb-current{color:var(--accent-secondary);font-size:22rpx;font-weight:700}.udb-empty{color:var(--text-secondary);font-size:28rpx;padding:80rpx 24rpx;text-align:center}.udb-page .modal-overlay{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;padding:48rpx;z-index:1000}.udb-add-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:32rpx;-webkit-box-shadow:var(--shadow-elevated);box-shadow:var(--shadow-elevated);-webkit-box-sizing:border-box;box-sizing:border-box;max-width:640rpx;padding:40rpx;width:100%}.udb-add-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;letter-spacing:0;margin-bottom:32rpx;text-align:center}.udb-add-input{background:var(--bg-input);border:1rpx solid var(--border);border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--text-primary);font-size:28rpx;height:88rpx;margin-bottom:32rpx;padding:0 24rpx;width:100%}.udb-add-input::-webkit-input-placeholder{color:var(--text-muted)}.udb-add-input::-moz-placeholder{color:var(--text-muted)}.udb-add-input:-ms-input-placeholder{color:var(--text-muted)}.udb-add-input::-ms-input-placeholder{color:var(--text-muted)}.udb-add-input::placeholder{color:var(--text-muted)}.udb-add-actions{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:20rpx}.udb-add-actions .btn-primary,.udb-add-actions .btn-secondary{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center} \ No newline at end of file +.udb-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;padding:0 32rpx calc(24rpx + env(safe-area-inset-bottom))}.udb-lock-page{-ms-flex-pack:start;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;justify-content:flex-start}.udb-lock-card{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:48rpx;padding:64rpx 40rpx;text-align:center}.udb-lock-icon{height:96rpx;margin-bottom:24rpx;width:96rpx}.udb-lock-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;letter-spacing:0;margin-bottom:12rpx}.udb-lock-desc{color:var(--text-secondary);display:block;font-size:26rpx;line-height:1.6;margin-bottom:32rpx}.udb-password-input{background:var(--bg-input);border:1rpx solid var(--border);border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--text-primary);font-size:30rpx;height:88rpx;margin-bottom:24rpx;padding:0 24rpx;text-align:center;width:100%}.udb-password-input::-webkit-input-placeholder{color:var(--text-muted)}.udb-password-input::-moz-placeholder{color:var(--text-muted)}.udb-password-input:-ms-input-placeholder{color:var(--text-muted)}.udb-password-input::-ms-input-placeholder{color:var(--text-muted)}.udb-password-input::placeholder{color:var(--text-muted)}.udb-error{color:var(--danger);display:block;font-size:24rpx;line-height:1.5;margin-bottom:20rpx}.udb-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:30rpx;font-weight:600;height:96rpx;-webkit-justify-content:center;justify-content:center;width:100%}.page-header.udb-header{margin:0;min-height:88rpx;padding-bottom:24rpx;padding-left:0;padding-right:0}.udb-header .page-title{color:var(--text-primary);font-size:56rpx;font-weight:800;letter-spacing:0;line-height:1.15;text-align:left}.udb-toolbar{-ms-flex-pack:end;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-end;justify-content:flex-end;margin:8rpx 0 24rpx}.udb-add-btn{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:26rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center;padding:0 32rpx}.udb-table{background:var(--bg-card);border:1rpx solid var(--border);border-radius:24rpx;-webkit-box-shadow:var(--shadow-card);box-shadow:var(--shadow-card);overflow:hidden}.udb-row{-ms-flex-align:center;-webkit-align-items:center;align-items:center;border-bottom:1rpx solid var(--border);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:112rpx;padding:16rpx 24rpx}.udb-row:last-child{border-bottom:none}.udb-header{background:var(--bg-input);min-height:80rpx}.udb-header .udb-col{color:var(--text-primary);font-size:24rpx;font-weight:700}.udb-col{-ms-flex-negative:0;color:var(--text-secondary);-webkit-flex-shrink:0;flex-shrink:0;font-size:24rpx;overflow:hidden;padding:0 8rpx;text-overflow:ellipsis;white-space:nowrap}.col-nick{-webkit-flex:0 0 24%;-ms-flex:0 0 24%;flex:0 0 24%}.col-id{-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%}.col-stats{-webkit-flex:0 0 18%;-ms-flex:0 0 18%;flex:0 0 18%;text-align:center}.col-action{-ms-flex-align:center;-ms-flex-pack:end;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12rpx;-webkit-justify-content:flex-end;justify-content:flex-end;min-width:0}.udb-row.active{background:var(--accent-secondary-soft)}.udb-link{background:var(--accent-secondary-soft);border-radius:999rpx;color:var(--accent-secondary);font-size:22rpx;font-weight:600;line-height:1.2;padding:10rpx 20rpx}.udb-danger{background:var(--danger-soft);color:var(--danger)}.udb-current{color:var(--accent-secondary);font-size:22rpx;font-weight:700}.udb-empty{color:var(--text-secondary);font-size:28rpx;padding:80rpx 24rpx;text-align:center}.udb-page .modal-overlay{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;padding:48rpx;z-index:1000}.udb-add-card{background:var(--bg-card);border:1rpx solid var(--border);border-radius:32rpx;-webkit-box-shadow:var(--shadow-elevated);box-shadow:var(--shadow-elevated);-webkit-box-sizing:border-box;box-sizing:border-box;max-width:640rpx;padding:40rpx;width:100%}.udb-add-title{color:var(--text-primary);display:block;font-size:36rpx;font-weight:700;letter-spacing:0;margin-bottom:32rpx;text-align:center}.udb-add-input{background:var(--bg-input);border:1rpx solid var(--border);border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--text-primary);font-size:28rpx;height:88rpx;margin-bottom:32rpx;padding:0 24rpx;width:100%}.udb-add-input::-webkit-input-placeholder{color:var(--text-muted)}.udb-add-input::-moz-placeholder{color:var(--text-muted)}.udb-add-input:-ms-input-placeholder{color:var(--text-muted)}.udb-add-input::-ms-input-placeholder{color:var(--text-muted)}.udb-add-input::placeholder{color:var(--text-muted)}.udb-add-actions{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:20rpx}.udb-add-actions .btn-primary,.udb-add-actions .btn-secondary{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;font-size:28rpx;font-weight:600;height:80rpx;-webkit-justify-content:center;justify-content:center} \ No newline at end of file diff --git a/src/app.scss b/src/app.scss index 0f7b408..c6d6a27 100644 --- a/src/app.scss +++ b/src/app.scss @@ -201,10 +201,27 @@ page { padding-top: calc(env(safe-area-inset-top, 20px) + 96rpx); } -/* 返回按钮不单独占状态栏空间——父级 .page-header / .edit-header 已整体下移 */ +/* 返回按钮统一为 TopMask 同款圆形毛玻璃 */ .back-btn, -.edit-back { - display: inline-block; +.edit-back, +.shop-back-btn { + display: flex !important; + align-items: center !important; + justify-content: center !important; + border-radius: 50% !important; + background: rgba(255, 255, 255, 0.55) !important; + backdrop-filter: blur(32px) saturate(1.2) !important; + -webkit-backdrop-filter: blur(32px) saturate(1.2) !important; + border: 1rpx solid rgba(255, 255, 255, 0.55) !important; + box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.18), 0 4rpx 12rpx rgba(0, 0, 0, 0.08) !important; +} + +.theme-dark .back-btn, +.theme-dark .edit-back, +.theme-dark .shop-back-btn { + background: rgba(25, 25, 25, 0.55) !important; + border-color: rgba(255, 255, 255, 0.14) !important; + box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.5), 0 4rpx 12rpx rgba(0, 0, 0, 0.3) !important; } /* ========================================================== diff --git a/src/components/ScrollTopMask/index.scss b/src/components/ScrollTopMask/index.scss index dedee39..9e8d6ea 100644 --- a/src/components/ScrollTopMask/index.scss +++ b/src/components/ScrollTopMask/index.scss @@ -26,7 +26,6 @@ position: absolute; left: 0; right: 0; - bottom: 38%; text-align: center; font-size: 36rpx; font-weight: 600; diff --git a/src/components/ScrollTopMask/index.tsx b/src/components/ScrollTopMask/index.tsx index 1b569a9..6528bbf 100644 --- a/src/components/ScrollTopMask/index.tsx +++ b/src/components/ScrollTopMask/index.tsx @@ -111,6 +111,8 @@ export default function ScrollTopMask({ title, targetSelector = '.page-header', diff --git a/src/pages/designList/index.scss b/src/pages/designList/index.scss index dcb06a2..fe411ca 100644 --- a/src/pages/designList/index.scss +++ b/src/pages/designList/index.scss @@ -5,28 +5,23 @@ .page-header.design-header { display: flex; - align-items: center; + align-items: flex-end; min-height: 88rpx; - padding-bottom: 16rpx; -} - -.header-spacer { - width: 88rpx; - height: 88rpx; - flex-shrink: 0; + padding-bottom: 32rpx; } .header-title { flex: 1; - text-align: center; - font-size: 36rpx; - font-weight: 700; + font-size: 56rpx; + font-weight: 800; + line-height: 1.15; + letter-spacing: 0; color: var(--text-primary); } .header-manage { width: 88rpx; - text-align: center; + text-align: right; font-size: 28rpx; font-weight: 500; color: var(--accent-secondary); diff --git a/src/pages/designList/index.tsx b/src/pages/designList/index.tsx index acccafd..4d5e1d2 100644 --- a/src/pages/designList/index.tsx +++ b/src/pages/designList/index.tsx @@ -125,7 +125,6 @@ export default function DesignListPage() { - 我的设计清单 {managing ? '完成' : '管理'} diff --git a/src/pages/diy/index.tsx b/src/pages/diy/index.tsx index e2b6a55..d0fed59 100644 --- a/src/pages/diy/index.tsx +++ b/src/pages/diy/index.tsx @@ -279,7 +279,7 @@ export default function DIYPage() { - + 设计工作台 diff --git a/src/pages/orderDetail/index.scss b/src/pages/orderDetail/index.scss index d3090de..d0e8704 100644 --- a/src/pages/orderDetail/index.scss +++ b/src/pages/orderDetail/index.scss @@ -481,8 +481,3 @@ font-weight: 600; color: var(--accent-secondary); } - -/* --- 底部留白 --- */ -.page-bottom-spacer { - height: 48rpx; -} diff --git a/src/pages/orderDetail/index.tsx b/src/pages/orderDetail/index.tsx index f3c5501..c78ee3c 100644 --- a/src/pages/orderDetail/index.tsx +++ b/src/pages/orderDetail/index.tsx @@ -56,7 +56,7 @@ export default function OrderDetailPage() { return ( - + @@ -75,7 +75,7 @@ export default function OrderDetailPage() { return ( - + @@ -209,8 +209,6 @@ export default function OrderDetailPage() { - - {/* 地址选择底部弹窗 */} {showAddrPicker && ( diff --git a/src/pages/orders/index.scss b/src/pages/orders/index.scss index bc9b7e1..1d81b30 100644 --- a/src/pages/orders/index.scss +++ b/src/pages/orders/index.scss @@ -8,15 +8,16 @@ .orders-page .page-header { display: flex; align-items: flex-end; + padding-top: 0; padding-bottom: 32rpx; margin: 0; } .orders-page .page-title { display: block; - font-size: 44rpx; - font-weight: 700; - line-height: 1.2; + font-size: 56rpx; + font-weight: 800; + line-height: 1.15; color: var(--text-primary); letter-spacing: 0; } diff --git a/src/pages/product/index.scss b/src/pages/product/index.scss index 6e554fa..e70f36e 100644 --- a/src/pages/product/index.scss +++ b/src/pages/product/index.scss @@ -19,8 +19,8 @@ } .back-btn { - width: 88rpx; - height: 88rpx; + width: 80rpx; + height: 80rpx; flex: 0 0 auto; border-radius: 50%; background: var(--bg-card); @@ -36,7 +36,8 @@ } .back-arrow { - font-size: 36rpx; + font-size: 44rpx; + font-weight: 600; line-height: 1; color: var(--text-primary); } @@ -53,7 +54,7 @@ } .nav-placeholder { - width: 88rpx; + width: 80rpx; flex: 0 0 auto; } diff --git a/src/pages/product/index.tsx b/src/pages/product/index.tsx index e0a6e3d..c680424 100644 --- a/src/pages/product/index.tsx +++ b/src/pages/product/index.tsx @@ -28,7 +28,7 @@ export default function ProductPage() { return ( - + @@ -173,9 +173,6 @@ export default function ProductPage() { - {/* 安全区占位(防止内容被 action-bar 遮挡) */} - - {/* 数量选择弹窗 */} {showModal && ( diff --git a/src/pages/service/index.scss b/src/pages/service/index.scss index 9508be5..fe04a4a 100644 --- a/src/pages/service/index.scss +++ b/src/pages/service/index.scss @@ -46,7 +46,7 @@ flex: 1; min-width: 0; text-align: center; - font-size: 44rpx; + font-size: 34rpx; font-weight: 700; line-height: 1.2; color: var(--text-primary); diff --git a/src/pages/service/index.tsx b/src/pages/service/index.tsx index c18fef0..f79c7e3 100644 --- a/src/pages/service/index.tsx +++ b/src/pages/service/index.tsx @@ -95,7 +95,6 @@ export default function ServicePage() { - ) diff --git a/src/pages/settings/index.tsx b/src/pages/settings/index.tsx index d66f995..30304f3 100644 --- a/src/pages/settings/index.tsx +++ b/src/pages/settings/index.tsx @@ -142,6 +142,7 @@ export default function SettingsPage() { )} + {/* 底部留白:短内容页,为退出登录按钮与底部保留呼吸空间 */} {/* 编辑弹窗 */} diff --git a/src/pages/shop/detail/index.scss b/src/pages/shop/detail/index.scss index ada74fa..0f12da7 100644 --- a/src/pages/shop/detail/index.scss +++ b/src/pages/shop/detail/index.scss @@ -281,10 +281,10 @@ .shop-back-btn { position: fixed; top: calc(env(safe-area-inset-top, 20px) + 20rpx); - left: 24rpx; + left: 30rpx; z-index: 50; - width: 88rpx; - height: 88rpx; + width: 80rpx; + height: 80rpx; border-radius: 50%; background: rgba(40, 35, 32, 0.5); backdrop-filter: blur(16px) saturate(1.4); @@ -302,9 +302,10 @@ } .shop-back-arrow { - font-size: 36rpx; - color: var(--text-primary); + font-size: 44rpx; + font-weight: 600; line-height: 1; + color: var(--text-primary); } /* --- Bottom Action Bar — 毛玻璃由 BottomActionBar 提供,本地只补充价格摘要 --- */ diff --git a/src/pages/shop/detail/index.tsx b/src/pages/shop/detail/index.tsx index c9a0df1..e6232d5 100644 --- a/src/pages/shop/detail/index.tsx +++ b/src/pages/shop/detail/index.tsx @@ -277,7 +277,7 @@ export default function ShopDetailPage() { Taro.navigateBack()} - style={{ top: `${safe.backBtnPaddingTop}px`, opacity: heroStyles.backBtnOpacity }} + style={{ top: `${safe.menuButtonTop}px`, opacity: heroStyles.backBtnOpacity }} > diff --git a/src/pages/shop/index.scss b/src/pages/shop/index.scss index bad02a4..27c976d 100644 --- a/src/pages/shop/index.scss +++ b/src/pages/shop/index.scss @@ -8,15 +8,15 @@ } .shop-header { - text-align: center; - padding: 48rpx 0 32rpx; + padding-bottom: 32rpx; } .shop-header-title { - font-size: 44rpx; - font-weight: 700; + font-size: 56rpx; + font-weight: 800; color: var(--text-primary); letter-spacing: 0; + line-height: 1.15; display: block; } diff --git a/src/pages/userDatabase/index.scss b/src/pages/userDatabase/index.scss index 5037d4d..c94d7d5 100644 --- a/src/pages/userDatabase/index.scss +++ b/src/pages/userDatabase/index.scss @@ -94,11 +94,12 @@ } .udb-header .page-title { - text-align: center; - font-size: 44rpx; - font-weight: 700; + text-align: left; + font-size: 56rpx; + font-weight: 800; color: var(--text-primary); letter-spacing: 0; + line-height: 1.15; } /* 工具栏 */