Commit 9b1d61eb authored by LeeJiancong's avatar LeeJiancong

处理全局布局样式和修改支付策略接口和配置等

parent 700ce345
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-08-10 14:41:27 * @Date: 2020-08-10 14:41:27
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-20 19:07:46 * @LastEditTime: 2020-08-18 14:55:46
*/ */
/** /**
* 用于在项目开始前获取所有的配置 * 用于在项目开始前获取所有的配置
...@@ -57,7 +57,7 @@ async function batchAxiosHttps() { ...@@ -57,7 +57,7 @@ async function batchAxiosHttps() {
for (const subItem in serviceConfig[item]) { for (const subItem in serviceConfig[item]) {
try { try {
const data = await axios(serviceConfig[item][subItem]) const data = await axios(serviceConfig[item][subItem])
asyncHttpQueue[item][subItem] = data.data asyncHttpQueue[item][subItem] = data.data.data
} catch(err) { } catch(err) {
console.log(serviceConfig[item][subItem].url) console.log(serviceConfig[item][subItem].url)
console.log(err.response.data) console.log(err.response.data)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-08-13 09:50:41 * @Date: 2020-08-13 09:50:41
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-20 20:09:43 * @LastEditTime: 2020-08-21 15:05:26
*/ */
import React, { useEffect, useState, useRef } from 'react' import React, { useEffect, useState, useRef } from 'react'
import { Card, Button, Tabs, Radio, Space, Row, Col, Table,Popconfirm } from 'antd' import { Card, Button, Tabs, Radio, Space, Row, Col, Table,Popconfirm } from 'antd'
...@@ -22,7 +22,8 @@ import '../components/PayForm/components/index.less' ...@@ -22,7 +22,8 @@ import '../components/PayForm/components/index.less'
const payActions = createFormActions() const payActions = createFormActions()
const { TabPane } = Tabs const { TabPane } = Tabs
const { onFieldValueChange$ } = FormEffectHooks const { onFieldValueChange$ } = FormEffectHooks
const TabList:any = GlobalConfig.payConfig.payPlatformPayConfig.data || [] const TabList:any = GlobalConfig.payConfig.payPlatformPayConfig || []
console.log('初始化payConfig',GlobalConfig.payConfig.payPlatformPayConfig)
const PaySetting: React.FC<{}> = () => { const PaySetting: React.FC<{}> = () => {
const ref = useRef<any>({}) const ref = useRef<any>({})
const [mode, setmode] = useState<number>(0) const [mode, setmode] = useState<number>(0)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-08-06 11:12:18 * @Date: 2020-08-06 11:12:18
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-20 19:18:53 * @LastEditTime: 2020-08-21 15:08:14
*/ */
import React, { useState, useEffect } from 'react' import React, { useState, useEffect } from 'react'
import { ISchema } from '@formily/antd' import { ISchema } from '@formily/antd'
...@@ -17,9 +17,9 @@ let currentTab; ...@@ -17,9 +17,9 @@ let currentTab;
export const strategyDetailTab = (props: any, usePageStatus: any) => { export const strategyDetailTab = (props: any, usePageStatus: any) => {
//新增时候就初始化 //新增时候就初始化
let baseList: any = GlobalConfig.payConfig.payInitializeConfig.data let baseList: any = GlobalConfig.payConfig.payInitializeConfig || []
console.log('baseList', JSON.stringify(baseList)) console.log('初始化', JSON.stringify(baseList))
// baseList[2].ruleConfigurations = [{value:1,label:"1",platformType:1}] // baseList[2].ruleConfigurations = [{value:1,label:"1",platformType:1}]
let tabItem = {}, Tab1 = {}, arr = [] let tabItem = {}, Tab1 = {}, arr = []
baseList.map((item, index) => { baseList.map((item, index) => {
......
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