The product page loads a shop's claimable coupons through the shared client and claims them in place; the buyer coupon list reads owned snapshots with their claimed/redeemed/expired state. Checkout offers each shop order at most one owned coupon and submits only the choice; the pay page and order detail render the server-persisted discount and reduced total, never a client figure. Coupon fixtures leave the pages; the fixed-data adapter still serves the coupon domain as the rollback path. The demo seed creates two deterministic templates and claims them for the demo customer.
79 lines
2.8 KiB
TypeScript
79 lines
2.8 KiB
TypeScript
export default {
|
|
en: {
|
|
checkout: {
|
|
title: "Confirm order",
|
|
steps: { cart: "Cart", order: "Confirm order", payment: "Payment", complete: "Complete" },
|
|
address: "Shipping address",
|
|
defaultAddress: "Default",
|
|
orderPreview: "Order details",
|
|
shop: "Shop",
|
|
remark: "Order remark",
|
|
remarkPlaceholder: "Add a note for the seller (optional)",
|
|
total: "Order total",
|
|
submit: "Place order",
|
|
noItems: "There are no items to check out.",
|
|
backToCart: "Back to cart",
|
|
loadError: "Unable to load the order.",
|
|
submitError: "Unable to place the order.",
|
|
addressRequired: "Please select or fill in a shipping address.",
|
|
noSavedAddress: "No saved address. Please enter one below.",
|
|
paymentTitle: "Choose payment",
|
|
balance: "Balance payment",
|
|
wechat: "WeChat Pay",
|
|
alipay: "Alipay",
|
|
payTitle: "Pay for your order",
|
|
orderNo: "Order no.",
|
|
coupon: "Coupon",
|
|
noCoupon: "No coupon",
|
|
couponDiscount: "Coupon discount",
|
|
grandTotal: "Total payment",
|
|
confirmPay: "Confirm payment",
|
|
noPendingOrders: "There are no orders waiting for payment.",
|
|
backHome: "Back to home",
|
|
payError: "Unable to complete payment.",
|
|
successTitle: "Payment successful",
|
|
successMessage: "Your order has been paid successfully.",
|
|
viewOrders: "View orders",
|
|
continueShopping: "Continue shopping",
|
|
},
|
|
},
|
|
zh: {
|
|
checkout: {
|
|
title: "确认订单",
|
|
steps: { cart: "购物车", order: "确认订单", payment: "支付", complete: "完成" },
|
|
address: "收货地址",
|
|
defaultAddress: "默认地址",
|
|
orderPreview: "订单商品",
|
|
shop: "店铺",
|
|
remark: "订单备注",
|
|
remarkPlaceholder: "给卖家留言(选填)",
|
|
total: "订单总额",
|
|
submit: "提交订单",
|
|
noItems: "暂无可结算的商品。",
|
|
backToCart: "返回购物车",
|
|
loadError: "订单信息加载失败,请稍后重试。",
|
|
submitError: "订单提交失败,请稍后重试。",
|
|
addressRequired: "请选择或填写收货地址。",
|
|
noSavedAddress: "暂无收货地址,请在下方填写。",
|
|
paymentTitle: "选择支付方式",
|
|
balance: "余额支付",
|
|
wechat: "微信支付",
|
|
alipay: "支付宝",
|
|
payTitle: "订单支付",
|
|
orderNo: "订单号",
|
|
coupon: "优惠券",
|
|
noCoupon: "不使用优惠券",
|
|
couponDiscount: "优惠券抵扣",
|
|
grandTotal: "应付总额",
|
|
confirmPay: "确认支付",
|
|
noPendingOrders: "暂无待支付订单。",
|
|
backHome: "返回首页",
|
|
payError: "支付失败,请稍后重试。",
|
|
successTitle: "订单支付成功",
|
|
successMessage: "您的订单已支付成功。",
|
|
viewOrders: "查看订单",
|
|
continueShopping: "继续购物",
|
|
},
|
|
},
|
|
};
|