64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
export interface Send发放优惠类回调类型 {
|
|
type: string;
|
|
timeStamp: number;
|
|
target: {
|
|
id: string;
|
|
dataset: Record<string, any>;
|
|
errcode: string;
|
|
msg: string;
|
|
send_coupon_result: Array<{
|
|
code: string;
|
|
coupon_code: string;
|
|
coupon_name: string;
|
|
discount: string;
|
|
end_time: string;
|
|
logo: string;
|
|
mch_simple_name: string;
|
|
message: string;
|
|
out_request_no: string;
|
|
stock_id: string;
|
|
use_condition: string;
|
|
}>;
|
|
};
|
|
currentTarget: {
|
|
id: string;
|
|
dataset: Record<string, any>;
|
|
};
|
|
mark: Record<string, any>;
|
|
detail: {
|
|
errcode: string;
|
|
msg: string;
|
|
send_coupon_result: Array<{
|
|
code: string;
|
|
coupon_code: string;
|
|
coupon_name: string;
|
|
discount: string;
|
|
end_time: string;
|
|
logo: string;
|
|
mch_simple_name: string;
|
|
message: string;
|
|
out_request_no: string;
|
|
stock_id: string;
|
|
use_condition: string;
|
|
}>;
|
|
};
|
|
touches: undefined;
|
|
changedTouches: undefined;
|
|
mut: boolean;
|
|
_requireActive: undefined;
|
|
preventDefault: Function;
|
|
stopPropagation: Function;
|
|
stopImmediatePropagation: Function;
|
|
}
|
|
|
|
export interface 发券接口返回数据类型 {
|
|
send_coupon_params: any; // 传给插件的参数串
|
|
sign: string; // 签名
|
|
send_coupon_merchant: string; // 商户号
|
|
suggest_immediate_use: boolean; // 是否建议立即使用
|
|
}
|
|
|
|
export type 代金券数据类型 = {
|
|
stock领券数据: 发券接口返回数据类型,
|
|
stock券状态: "待领券" | "已领券" | "发放中"
|
|
} |