Files
wechat_wc/dist/pages/index/index.js
T
fenjoyoung 8fdf0b1b4f feat(r3-order-pay): 结算与订单支付流程、支付倒计时/商品图组件,接口地址改为构建期注入
- 新增 PaymentCountdown、ProductImage 组件
- 完善 checkout/orders/orderDetail 订单支付链路与地址、商品、设计数据
- request 接口地址改为构建期注入并保留真实网络错误,默认兜底线上地址
- 同步重新构建 dist 产物
2026-09-13 14:50:39 +08:00

1 line
6.2 KiB
JavaScript

"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[421],{7265:function(e,s,a){var c=a(7842),i=a(5544),t=a(118),l=a(758),n=a.n(l),r=a(6540),o=a(5234),d=a(8199),m=a(2371),h=a(9703),g=a(9201),p=a(5414),u=a(9674),x=a(3053),j=a(1133),N=a(4848),b=[{title:"\u6bd5\u4e1a\u7eaa\u5ff5\u7b14\u8bb0\u672c",desc:"\u5168\u73ed\u540d\u5b57\u7ec4\u6210\u6821\u5fbd",priceText:"\xa545 \u8d77",categoryId:"notebook-large",image:(0,d.uq)("/img/book_small/The1.jpg")},{title:"\u94dc\u8d28\u676f\u57ab",desc:"\u91d1\u5c5e\u8d28\u611f\u684c\u9762\u827a\u672f",priceText:"\xa525 \u8d77",categoryId:"coaster",image:(0,d.uq)("/img/cup/The1.jpg")},{title:"\u7af9\u5236\u7b14\u76d2",desc:"\u81ea\u7136\u7af9\u7eb9\u6587\u623f\u96c5\u5668",priceText:"\xa575 \u8d77",categoryId:"penbox",image:(0,d.uq)("/img/penbox/The1.jpg")},{title:"\u4e66\u672c\u578b\u706f",desc:"\u6e29\u6696\u5149\u5f71\u70b9\u4eae\u5fc3\u610f",priceText:"\xa545 \u8d77",categoryId:"booklamp",image:(0,d.uq)("/img/booklight/The1.jpg")},{title:"\u60c5\u4fa3\u5b9a\u5236\u793c",desc:"\u4e24\u4e2a\u4eba\u7684\u540d\u5b57\u4ea4\u7ec7",priceText:"\xa545 \u8d77",categoryId:"notebook-large",image:(0,d.uq)("/img/book_big/The1.jpg")},{title:"\u4f01\u4e1a\u5e74\u4f1a\u793c",desc:"\u5458\u5de5\u540d\u5b57\u7ec4\u6210Logo",priceText:"\xa575 \u8d77",categoryId:"penbox",image:(0,d.uq)("/img/penbox/The2.jpg")}],f={"notebook-small":(0,d.uq)("/img/book_small/The1.jpg"),"notebook-large":(0,d.uq)("/img/book_big/The1.jpg"),coaster:(0,d.uq)("/img/cup/The1.jpg"),penbox:(0,d.uq)("/img/penbox/The1.jpg"),booklamp:(0,d.uq)("/img/booklight/The1.jpg")};function T(){var e=(0,h.wR)(),s=(e.theme,e.resolvedTheme),a=(0,g.c)();(0,p.l)(s);var c=(0,r.useState)(""),l=(0,i.A)(c,2),T=l[0],y=l[1],S=(0,r.useState)(o.R6),E=(0,i.A)(S,2),k=E[0],v=E[1];(0,r.useEffect)(function(){(0,m.j0)({page:1,pageSize:100}).then(function(e){return v(e.list)}).catch(function(){})},[]);var Y=function(e){n().navigateTo({url:"/pages/product/index?id=".concat(e)})},q=function(e){e.categoryId?Y(e.categoryId):n().showToast({title:"\u201c".concat(e.title,"\u201d\u5b9a\u5236\u901a\u9053\u5373\u5c06\u5f00\u653e"),icon:"none"})},w=T.trim()?k.filter(function(e){return e.name.includes(T)||e.desc.includes(T)}):k,I=function(e){y(e.detail.value)};return(0,N.jsxs)(t.Ss,{className:"theme-".concat(s),children:[(0,N.jsx)(u.A,{}),(0,N.jsx)(x.A,{title:"\u667a\u7ed8\u5fae\u523b",targetSelector:".home-header"}),(0,N.jsxs)(t.Ss,{className:"index-page",children:[(0,N.jsx)(t.Ss,{className:"home-header",style:{paddingTop:"".concat(a.statusBarHeight+12,"px")},children:(0,N.jsx)(t.EY,{className:"home-title",children:"\u667a\u7ed8\u5fae\u523b"})}),(0,N.jsxs)(t.Ss,{className:"searchbox",children:[(0,N.jsx)(t._V,{className:"search-icon-img",src:(0,d.uq)("/icon/\u641c\u7d22.svg"),mode:"aspectFit"}),(0,N.jsx)(t.pd,{className:"search-input",type:"text",placeholder:"\u641c\u7d22\u5b9a\u5236\u54c1\u7c7b\uff0c\u5982\u7b14\u8bb0\u672c\u3001\u676f\u57ab\u3001\u4e66\u706f",placeholderClass:"search-input-placeholder",value:T,onInput:I,confirmType:"search"})]}),T.trim()&&(0,N.jsx)(t.Ss,{className:"search-result-hint",children:(0,N.jsx)(t.EY,{className:"hint-text",children:w.length>0?"\u627e\u5230 ".concat(w.length," \u4e2a\u76f8\u5173\u54c1\u7c7b"):"\u6ca1\u6709\u627e\u5230\u76f8\u5173\u54c1\u7c7b\uff0c\u8bd5\u8bd5\u770b\u5176\u4ed6\u5173\u952e\u8bcd"})}),(0,N.jsxs)(t.Ss,{className:"showcase-section",children:[(0,N.jsx)(t.EY,{className:"home-section-title",children:"\u5b9a\u5236\u6210\u54c1\u5c55\u793a"}),(0,N.jsx)(t.RC,{className:"showcase-swiper",circular:!0,autoplay:!0,interval:3e3,duration:500,indicatorDots:!0,children:b.map(function(e,s){return(0,N.jsx)(t.wu,{className:"showcase-swiper-item",children:(0,N.jsxs)(t.Ss,{className:"hero-block",children:[(0,N.jsx)(j.A,{className:"hero-media",src:e.image,fallback:(0,o.QE)(o.R6.find(function(s){return s.id===e.categoryId})),mode:"aspectFill"}),(0,N.jsxs)(t.Ss,{className:"glass-overlay",children:[(0,N.jsx)(t.EY,{className:"hero-title",children:e.title}),(0,N.jsx)(t.EY,{className:"hero-desc",children:e.desc})]})]})},s)})})]}),(0,N.jsxs)(t.Ss,{className:"category-section",children:[(0,N.jsx)(t.EY,{className:"home-section-title",children:"\u70ed\u95e8\u54c1\u7c7b"}),(0,N.jsx)(t.Ss,{className:"home-grid",children:w.map(function(e){return(0,N.jsxs)(t.Ss,{className:"media-card",onTap:function(){return Y(e.id)},children:[(0,N.jsx)(t.Ss,{className:"media-card-image",children:(0,N.jsx)(j.A,{className:"media-card-img",src:f[e.id]||(0,d.uq)("/icon/\u56db\u89d2\u661f.svg"),fallback:(0,o.QE)(e),mode:"aspectFill"})}),(0,N.jsxs)(t.Ss,{className:"media-card-body",children:[(0,N.jsx)(t.EY,{className:"media-card-title",children:e.name}),(0,N.jsx)(t.EY,{className:"media-card-desc",children:e.desc}),(0,N.jsxs)(t.EY,{className:"media-card-price",children:["\xa5",e.price," \u8d77"]})]})]},e.id)})}),0===w.length&&(0,N.jsxs)(t.Ss,{className:"empty-category",children:[(0,N.jsx)(t._V,{className:"empty-icon-img",src:(0,d.uq)("/icon/\u641c\u7d22.svg"),mode:"aspectFit"}),(0,N.jsx)(t.EY,{className:"empty-text",children:"\u672a\u627e\u5230\u5339\u914d\u7684\u54c1\u7c7b"}),(0,N.jsx)(t.EY,{className:"empty-sub",children:"\u5c1d\u8bd5\u641c\u7d22\u201c\u7b14\u8bb0\u672c\u201d\u3001\u201c\u676f\u57ab\u201d\u7b49"})]})]}),(0,N.jsxs)(t.Ss,{className:"recommend-section",children:[(0,N.jsx)(t.EY,{className:"home-section-title",children:"\u4e3a\u4f60\u63a8\u8350"}),(0,N.jsx)(t.Ss,{className:"home-grid",children:b.slice(0,4).map(function(e,s){return(0,N.jsxs)(t.Ss,{className:"media-card",onTap:function(){return q(e)},children:[(0,N.jsx)(t.Ss,{className:"media-card-image",children:(0,N.jsx)(j.A,{className:"media-card-img",src:e.image,fallback:(0,o.QE)(o.R6.find(function(s){return s.id===e.categoryId})),mode:"aspectFill"})}),(0,N.jsxs)(t.Ss,{className:"media-card-body",children:[(0,N.jsx)(t.EY,{className:"media-card-title",children:e.title}),(0,N.jsx)(t.EY,{className:"media-card-desc",children:e.desc}),(0,N.jsx)(t.EY,{className:"media-card-price",children:e.priceText})]})]},s)})})]})]})]})}var y={navigationStyle:"custom",enablePageMeta:!0,navigationBarTitleText:"\u667a\u7ed8\u5fae\u523b"};Page((0,c.createPageConfig)(T,"pages/index/index",{root:{cn:[]}},y||{}))}},function(e){var s=function(s){return e(e.s=s)};e.O(0,[907,96,76],function(){return s(7265)});e.O()}]);