Commit 397985d0 by 姜雷

支付接口添加参数区域id和名称

parent 6b4386ed
{
"name": "wx-school-app-public",
"version": "1.0.7",
"version": "1.0.8",
"private": true,
"description": "",
"scripts": {
......
......@@ -18,6 +18,12 @@ type Params = {
smaproPrepayConfigId: number;
// 预付配置id
areaId: number;
// 区域id
areaName: string;
// 区域名称
};
type ResponseData = {
outTradeNo: string;
......
......@@ -31,8 +31,14 @@ type DeviceInfoResponse = {
// 位置id
rates: RateInfoResponse[];
//是否纯蓝牙设备 1:是,0:否
// 是否纯蓝牙设备 1:是,0:否
isOnlyBluetooth: number;
// 区域id
areaId: number;
// 区域名称
areaName: string;
};
type RateInfoResponse = {
mark: string;
......
......@@ -736,6 +736,8 @@ class Pay extends Component {
serviceId: device.serviceId,
smaproCustomerId: customerId,
smaproPrepayConfigId: payId,
areaId: device.areaId,
areaName: device.areaName,
})
.then(res => {
console.log('res: ', res);
......
......@@ -18,6 +18,8 @@ export const INITIAL_STATE = {
serviceId: 0,
serviceName: '',
isOnlyBluetooth: 0,
areaId: 0,
areaName: '',
};
export const updateDeviceData = (entity: DeviceState): Action => ({
......
......@@ -21,4 +21,6 @@ export type Device = {
serviceId: number;
serviceName: string;
isOnlyBluetooth: number;
areaId: number;
areaName: string;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment