|
@@ -4,7 +4,7 @@ import {
|
|
|
buildReqReducer, reqChangePayPass,
|
|
buildReqReducer, reqChangePayPass,
|
|
|
reqFirstPayConfig,
|
|
reqFirstPayConfig,
|
|
|
reqGetAccountsPayInfo,
|
|
reqGetAccountsPayInfo,
|
|
|
- reqPaymentOrder,
|
|
|
|
|
|
|
+ reqPaymentOrder, reqPayOrderList,
|
|
|
reqRechargeConfig, reqWithdrawBaseInfo, reqWithdrawInfo, reqWithdrawTax
|
|
reqRechargeConfig, reqWithdrawBaseInfo, reqWithdrawInfo, reqWithdrawTax
|
|
|
} from "@features/api";
|
|
} from "@features/api";
|
|
|
import {getHttpMsg} from "@utils/helpers";
|
|
import {getHttpMsg} from "@utils/helpers";
|
|
@@ -85,6 +85,15 @@ const reducerPaymentOrder=(state,action,arg)=>{
|
|
|
}
|
|
}
|
|
|
const paymentOrderStatus=(state,status,arg)=>{
|
|
const paymentOrderStatus=(state,status,arg)=>{
|
|
|
state.status.PaymentOrder=status;
|
|
state.status.PaymentOrder=status;
|
|
|
|
|
+}
|
|
|
|
|
+const reducerPayOrderList=(state,action,arg)=>{
|
|
|
|
|
+ let payload=action.payload;
|
|
|
|
|
+ if (payload!=null&&payload.code===200){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+const payOrderListStatus=(state,status,arg)=>{
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
const reducerWithdrawTax=(state,action,arg)=>{
|
|
const reducerWithdrawTax=(state,action,arg)=>{
|
|
|
let payload=action.payload;
|
|
let payload=action.payload;
|
|
@@ -138,7 +147,8 @@ export const Pay=createSlice({
|
|
|
FirstPayConfig:REQ_STATUS.NONE,
|
|
FirstPayConfig:REQ_STATUS.NONE,
|
|
|
GetAccountsPayInfo:REQ_STATUS.NONE,
|
|
GetAccountsPayInfo:REQ_STATUS.NONE,
|
|
|
PaymentOrder:REQ_STATUS.NONE,
|
|
PaymentOrder:REQ_STATUS.NONE,
|
|
|
- ChangePayPass:REQ_STATUS.NONE
|
|
|
|
|
|
|
+ ChangePayPass:REQ_STATUS.NONE,
|
|
|
|
|
+ PayOrderList:REQ_STATUS.NONE
|
|
|
},
|
|
},
|
|
|
config:[],
|
|
config:[],
|
|
|
payconfig:null,
|
|
payconfig:null,
|
|
@@ -147,7 +157,8 @@ export const Pay=createSlice({
|
|
|
currPayOrder:null,
|
|
currPayOrder:null,
|
|
|
WithDrawTax:4,
|
|
WithDrawTax:4,
|
|
|
withdrawBaseInfo:null,
|
|
withdrawBaseInfo:null,
|
|
|
- withdrawInfo:null
|
|
|
|
|
|
|
+ withdrawInfo:null,
|
|
|
|
|
+ payOrderList:null
|
|
|
},
|
|
},
|
|
|
reducers: {
|
|
reducers: {
|
|
|
updatePayFinish:((state, action) => {
|
|
updatePayFinish:((state, action) => {
|
|
@@ -167,6 +178,7 @@ export const Pay=createSlice({
|
|
|
buildReqReducer(builder,reqWithdrawBaseInfo,reducerWithdrawBaseInfo,null);
|
|
buildReqReducer(builder,reqWithdrawBaseInfo,reducerWithdrawBaseInfo,null);
|
|
|
buildReqReducer(builder,reqWithdrawInfo,reducerWithdrawInfo,null);
|
|
buildReqReducer(builder,reqWithdrawInfo,reducerWithdrawInfo,null);
|
|
|
buildReqReducer(builder,reqChangePayPass,reducerChangePayPass,changePayPassStatus);
|
|
buildReqReducer(builder,reqChangePayPass,reducerChangePayPass,changePayPassStatus);
|
|
|
|
|
+ buildReqReducer(builder,reqPayOrderList,reducerPayOrderList,payOrderListStatus);
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
export const {updatePayFinish} = Pay.actions;
|
|
export const {updatePayFinish} = Pay.actions;
|
|
@@ -229,6 +241,9 @@ export const getWithdrawInfo=(state)=>{
|
|
|
export const getChangePayPassStatus=(state)=>{
|
|
export const getChangePayPassStatus=(state)=>{
|
|
|
return state.pay.status.ChangePayPass;
|
|
return state.pay.status.ChangePayPass;
|
|
|
}
|
|
}
|
|
|
|
|
+export const getPayOrderStatus=(state)=>{
|
|
|
|
|
+ return state.pay.status.PayOrderList;
|
|
|
|
|
+}
|
|
|
export default Pay.reducer;
|
|
export default Pay.reducer;
|
|
|
|
|
|
|
|
export const reqPayConfig=(dispatch,userInfo)=>{
|
|
export const reqPayConfig=(dispatch,userInfo)=>{
|