@zhangcf233/pay 1.0.4 → 1.0.6

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.
@@ -1,5 +1,5 @@
1
1
  import { Price } from "./price";
2
- export type PayCreateType = "agent" | "vip";
2
+ export type PayCreateType = "agent" | "user";
3
3
  export type PayAllConfigType = {
4
4
  [key in PayCreateType]: Config;
5
5
  };
@@ -0,0 +1,10 @@
1
+ import { Channel } from "../@types";
2
+ /** 当前支持的渠道类型*/
3
+ export declare const EnableChannel: {
4
+ alipay: (options: import("./pay").BasePayOptions) => Promise<{
5
+ status: boolean;
6
+ message: string;
7
+ } | undefined>;
8
+ };
9
+ /** 过滤当前支持的渠道*/
10
+ export default function (list: Channel[]): Channel[];
@@ -16,6 +16,7 @@ export default class PayPopup extends Vue {
16
16
  mounted(): Promise<void>;
17
17
  initLoad(): void;
18
18
  onClose(): void;
19
+ onClosed(): void;
19
20
  onTopup(): Promise<void>;
20
21
  /** 余额变动*/
21
22
  onBanlanceChange(money: number): void;
@@ -1,23 +1,9 @@
1
1
  import { Config } from "./@types";
2
2
  export declare const BaseTheme = "orange";
3
3
  export declare const AgentConfig: Config;
4
- export declare const VipConfig: Config;
4
+ export declare const UserConfig: Config;
5
5
  /** 完整支付配置*/
6
6
  export declare const PayAllConfig: {
7
7
  readonly agent: Config;
8
- readonly vip: {
9
- readonly needId: true;
10
- readonly balance: {
11
- readonly disabled: true;
12
- };
13
- readonly price: {
14
- readonly disabled: true;
15
- };
16
- readonly channel: {
17
- readonly api: "/SystemPayment/GetVipList";
18
- };
19
- readonly pay: {
20
- readonly key: "vipId";
21
- };
22
- };
8
+ readonly user: Config;
23
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangcf233/pay",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "dist/pay.umd.js",
5
5
  "module": "dist/pay.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -11,32 +11,30 @@
11
11
  "scripts": {
12
12
  "build:types": "vue-tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
13
13
  "build": " vite build && npm run build:types",
14
- "publish": "npm publish --access public"
14
+ "link": "npm run build && npm link"
15
15
  },
16
16
  "peerDependencies": {
17
- "vant": "^2.13.9"
17
+ "vant": "^2.13.8",
18
+ "vue": "^2.6.14",
19
+ "vue-class-component": "^7.2.3",
20
+ "vue-property-decorator": "^9.1.2",
21
+ "vue-template-compiler": "^2.6.14"
18
22
  },
19
23
  "devDependencies": {
24
+ "rollup-plugin-visualizer": "^6.0.3",
20
25
  "sass": "^1.89.2",
21
26
  "sass-loader": "^12.0.0",
22
27
  "typescript": "^5.9.2",
23
28
  "vite": "^4.0.0",
29
+ "vite-plugin-css-injected-by-js": "^3.5.2",
24
30
  "vite-plugin-vue2": "^2.0.0",
25
- "vue-class-component": "^7.2.3",
26
- "vue-property-decorator": "^9.1.2",
27
- "vue-template-compiler": "^2.6.14",
28
31
  "vue-tsc": "^3.0.5"
29
32
  },
30
- "dependencies": {
31
- "vite-plugin-css-injected-by-js": "^3.5.2",
32
- "vue": "^2.7.16"
33
- },
34
33
  "exports": {
35
34
  ".": {
36
35
  "import": "./dist/pay.es.js",
37
36
  "require": "./dist/pay.umd.js",
38
37
  "types": "./dist/types/index.d.ts"
39
- },
40
- "./style.css": "./dist/style.css"
38
+ }
41
39
  }
42
- }
40
+ }