@huyooo/ui 2.1.20 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1387,6 +1387,7 @@ export type Api = {
1387
1387
  body: {
1388
1388
  packageId: string;
1389
1389
  payType: "alipay" | "weixinpay";
1390
+ amountFen?: number;
1390
1391
  subjectUserId?: string;
1391
1392
  };
1392
1393
  return: any;
@@ -1397,6 +1398,7 @@ export type Api = {
1397
1398
  post: {
1398
1399
  body: {
1399
1400
  packageId: string;
1401
+ amountFen?: number;
1400
1402
  subjectUserId?: string;
1401
1403
  };
1402
1404
  return: any;
@@ -4425,6 +4427,7 @@ export interface ApiClient {
4425
4427
  post: (body: {
4426
4428
  packageId: string;
4427
4429
  payType: "alipay" | "weixinpay";
4430
+ amountFen?: number;
4428
4431
  subjectUserId?: string;
4429
4432
  }, config?: RequestConfig) => RequestBuilder<any>;
4430
4433
  };
@@ -4432,6 +4435,7 @@ export interface ApiClient {
4432
4435
  /** 创建支付宝扫码支付订单(当面付) */
4433
4436
  post: (body: {
4434
4437
  packageId: string;
4438
+ amountFen?: number;
4435
4439
  subjectUserId?: string;
4436
4440
  }, config?: RequestConfig) => RequestBuilder<any>;
4437
4441
  };
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DbkGYZ2f.js";
1
+ import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrauYUc_.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
@@ -0,0 +1,9 @@
1
+ /** 充值赠送预览:与 billing-server rechargeGiftService 同口径 */
2
+ export interface RechargeGiftPreviewSettings {
3
+ giftUnitAmountFen: number;
4
+ bonusPointsPerUnit: number;
5
+ }
6
+ /** 按实付金额计算赠送积分 */
7
+ export declare function calcRechargeBonusPoints(priceFen: number, settings: RechargeGiftPreviewSettings): number;
8
+ /** 自定义充值基础积分 */
9
+ export declare function calcCustomRechargeBasePoints(amountFen: number, pointsPerYuan: number): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "2.1.20",
3
+ "version": "2.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [