Commit 5bc5ab9d by 姜雷

Merge branch 'test' into 'master'

Test See merge request !2
parents 061659e2 9d16899b
......@@ -179,6 +179,7 @@ class Index extends Component {
}
if (deviceInfoResponse) {
updateDeviceData(deviceInfoResponse);
updateDeviceData({originCode: equipmentNum});
} else {
resetDeviceData();
}
......
......@@ -61,7 +61,7 @@ class Pay extends Component {
const { payId } = this.state;
if (payId) {
getPayOrder({
equipmentNum: device.code,
equipmentNum: device.originCode,
equipmentPos: device.position,
payType: '2',
serviceId: device.serviceId,
......
......@@ -162,6 +162,7 @@ class ScanEnter extends Component {
}
if (deviceInfoResponse) {
updateDeviceData(deviceInfoResponse);
updateDeviceData({originCode: equipmentNum});
} else {
resetDeviceData();
}
......
import Action from '../../types/Store/Actions';
import { Device } from '../..//types/Device/Device';
import { Device } from '../../types/Device/Device';
export type DeviceState = StoreState<Device>;
export const INITIAL_STATE = {
originCode: '',
code: '',
isCurrentUserUsed: 0,
isOnline: 0,
......
......@@ -3,6 +3,7 @@ export type Rate = {
name: string;
};
export type Device = {
originCode: string,
code: string;
isCurrentUserUsed: number;
isOnline: number;
......
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