From 7ac81035b4c4fbc80c4c646a19ef6e72f183dfea Mon Sep 17 00:00:00 2001
From: xcbyy <2578898740@qq.com>
Date: Sat, 10 Oct 2026 15:37:41 +0800
Subject: [PATCH] feat(order): support balance payment, dynamic marketing
coupon recommendation, and quick activity picker
---
pwuniapp/common/api.js | 2 +
pwuniapp/common/icons.js | 15 ++
pwuniapp/pages/activity/create.vue | 140 ++++++++++-
pwuniapp/pages/order/create.vue | 320 +++++++++++++++++++++++++-
server/src/db/mysql.ts | 4 +-
server/src/db/repository.ts | 41 +++-
server/tests/content-security.spec.ts | 55 +++++
7 files changed, 559 insertions(+), 18 deletions(-)
diff --git a/pwuniapp/common/api.js b/pwuniapp/common/api.js
index 8975a6d..a6ec934 100644
--- a/pwuniapp/common/api.js
+++ b/pwuniapp/common/api.js
@@ -267,6 +267,8 @@ export function formatOrderData(raw) {
status: statusKey,
meetVenue: raw.location || raw.meetVenue || '北京市公开商圈',
expenseBurden: raw.expenseBurden || raw.expense_burden || 'AA制各自付',
+ payType: raw.payType || raw.pay_type || 'WECHAT',
+ couponDiscount: Number(raw.couponDiscount || raw.coupon_discount || 0),
verifyCode: raw.verifyCode || raw.verify_code || '',
remark: raw.remark || '',
createdAt: raw.createdAt || raw.created_at || '刚刚'
diff --git a/pwuniapp/common/icons.js b/pwuniapp/common/icons.js
index 2958fb3..041d61d 100644
--- a/pwuniapp/common/icons.js
+++ b/pwuniapp/common/icons.js
@@ -16,6 +16,21 @@ export const ICONS = {
`),
+ wallet: svgToUri(`
+
+ `),
+
+ wechat: svgToUri(`
+
+ `),
+
flame: svgToUri(`