Skip to content

Commit 7025b42

Browse files
committed
update to new model
1 parent a00218c commit 7025b42

File tree

11 files changed

+75
-223
lines changed

11 files changed

+75
-223
lines changed

src/.DS_Store

0 Bytes
Binary file not shown.

src/actioncenter/ActionCenter.model.js

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export default {
2929
})
3030
yield put(successAction)
3131

32+
33+
34+
3235
},
3336

3437

src/assets/OSSPictureEdit/index.js

-66
This file was deleted.

src/assets/OSSPictureEdit/index.less

-25
This file was deleted.

src/axios/config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//savefileifnotexist
2-
export const SYSTEM_SHORT_NAME = "cis" //Use for requssting different apps
3-
export const SYSTEM_LOCAL_NAME = "代审车服务平台"
4-
export const BUILD_TIIME="Wed May 23 23:43:38 CST 2018"
2+
export const SYSTEM_SHORT_NAME = "pulupulu" //Use for requssting different apps
3+
export const SYSTEM_LOCAL_NAME = "濮瑞游戏"
4+
export const BUILD_TIIME="Sun Jun 03 14:12:35 CST 2018"
55
export const MEDIA_UPLOAD_URL="https://www.doublechaintech.com/mss/upload.html"
66
export const MEDIA_PREFIX="https://www.doublechaintech.com/mss/"
77

src/axios/tools.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import axios from 'axios';
66
import { message } from 'antd';
77
import {SYSTEM_SHORT_NAME} from './config'
8-
8+
import moment from 'moment';
99
import SystemConfig from './config'
1010
import PictureEdit from '../components/PictureEdit'
1111
import ImageUpload from '../components/ImageUpload'
@@ -81,9 +81,10 @@ export const getURLPrefix = () => {
8181
return `http://${url.hostname}:8080/naf/`
8282
}
8383
if (url.hostname === "localhost") {
84-
return `https://xm.jl51.com.cn/cis/`
84+
//return `https://xm.jl51.com.cn/cis/`
8585
//return `http://www.yourongzhixing.com/dssc/`
8686
//return `https://www.kxbbt.com/bbt/`
87+
return "http://t420.doublechaintech.cn:18080/pulupulu/"
8788
//return `http://${url.hostname}:8080/naf/`
8889
}
8990
//return `http://xm.jl51.com.cn/cis/`
@@ -103,15 +104,23 @@ export const joinParameters = (parameters) => {
103104
const result = arr.join(';')
104105
return result
105106
}
107+
const formatPostData = (value) => {
108+
console.log("value", value)
109+
if(value._isAMomentObject){
110+
return moment(value).format('YYYY-MM-DDTHH:mm:ss');
111+
}
112+
return value
106113

114+
}
107115
export const joinPostParameters = (parameters) => {
108116
const obj = parameters // {value1: 'prop1', value2: 'prop2', value3: 'prop3'}
109117
const arr = []
110118
for (const key in obj) {
111119
if (obj.hasOwnProperty(key)) {
112120
const value = obj[key]
121+
const postValue = formatPostData(value)
113122
if (!Array.isArray(value)) {
114-
arr.push(key + '=' + encodeURIComponent(value))
123+
arr.push(key + '=' + encodeURIComponent(postValue))
115124
continue
116125
}
117126
for (const subKey in value) {

src/components/ImagePreview/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class ImagePreview extends React.Component {
4040

4141

4242
return (
43-
<div className="clearfix" style={{"text-align":"center"}}>
43+
<div className="clearfix" style={{textAlign:"center"}}>
4444
<img
4545
src={imageLocation}
4646
style={{height:80, width:80}}

src/custcomponents/router.js

+52-120
Original file line numberDiff line numberDiff line change
@@ -11,68 +11,34 @@ import GlobalComponents from './'
1111

1212
function RouterConfig({ history }) {
1313

14-
const {CarInspectionPlatformBizApp} = GlobalComponents
15-
const {ProvinceBizApp} = GlobalComponents
14+
const {GamePlatformBizApp} = GlobalComponents
1615
const {CityBizApp} = GlobalComponents
17-
const {AvailableProductBizApp} = GlobalComponents
18-
const {AvailableVehicleTypeBizApp} = GlobalComponents
19-
const {AvailableVehicleUseCharacterBizApp} = GlobalComponents
20-
const {ContractBizApp} = GlobalComponents
21-
const {ServicePriceBizApp} = GlobalComponents
22-
const {AvailableServiceBizApp} = GlobalComponents
23-
const {ProductPriceBizApp} = GlobalComponents
24-
const {AvailableInsuranceBizApp} = GlobalComponents
25-
const {VehicleRepairingAllowanceBizApp} = GlobalComponents
26-
const {AvailableHandOverItemBizApp} = GlobalComponents
16+
const {StoreBizApp} = GlobalComponents
17+
const {GameCategoryBizApp} = GlobalComponents
18+
const {GameBizApp} = GlobalComponents
19+
const {GameSessionBizApp} = GlobalComponents
20+
const {GameSessionRecordBizApp} = GlobalComponents
21+
const {GamePlayerRecordBizApp} = GlobalComponents
22+
const {RearrangeSessionTicketRecordBizApp} = GlobalComponents
23+
const {GameTokenBizApp} = GlobalComponents
24+
const {GameTicketBizApp} = GlobalComponents
25+
const {OnlineOrderBizApp} = GlobalComponents
26+
const {OnlineOrderPaymentBizApp} = GlobalComponents
27+
const {OnlineOrderRedeemHistoryBizApp} = GlobalComponents
28+
const {TicketPrintingBizApp} = GlobalComponents
29+
const {TicketPrintingHistoryBizApp} = GlobalComponents
30+
const {OfflineStoreOrderBizApp} = GlobalComponents
2731
const {CustomerBizApp} = GlobalComponents
28-
const {VehicleServiceCompanyBizApp} = GlobalComponents
29-
const {ServiceCompanyAuthenticationInfoBizApp} = GlobalComponents
30-
const {VehicleInspectionPlateNumberPatternBizApp} = GlobalComponents
31-
const {FileInspectionPlateNumberPatternBizApp} = GlobalComponents
32-
const {VehicleServiceCompanyBusinessScopeBizApp} = GlobalComponents
33-
const {CompanyQrcodePromotionRecordBizApp} = GlobalComponents
34-
const {VehicleServiceCompanyDispatcherBizApp} = GlobalComponents
35-
const {CompanyDiscountBizApp} = GlobalComponents
36-
const {VehicleServiceCompanyEmployeeBizApp} = GlobalComponents
37-
const {ServiceOrderFilterBizApp} = GlobalComponents
38-
const {CompanyEmployeeQualificationBizApp} = GlobalComponents
39-
const {CompanyEmployeeServingBizApp} = GlobalComponents
40-
const {CompanyEmployeeTerminationBizApp} = GlobalComponents
41-
const {EmployeeDrivingLicenseBizApp} = GlobalComponents
42-
const {InspectionStationBizApp} = GlobalComponents
43-
const {VehicleInfoBizApp} = GlobalComponents
44-
const {VehicleInspectionOrderBizApp} = GlobalComponents
45-
const {VehicleInspectionInsuranceOrderBizApp} = GlobalComponents
46-
const {VehicleInspectionOrderChargeBizApp} = GlobalComponents
47-
const {VehicleInspectionOrderServiceLogBizApp} = GlobalComponents
48-
const {VehicleInspectionOrderPaymentBizApp} = GlobalComponents
49-
const {HandOverChecklistItemBizApp} = GlobalComponents
50-
const {ServiceVehicleMovementC2mBizApp} = GlobalComponents
51-
const {ServiceVehicleMovementM2mBizApp} = GlobalComponents
52-
const {ServiceVehicleMovementM2cBizApp} = GlobalComponents
53-
const {ServiceFileMovementC2mBizApp} = GlobalComponents
54-
const {ServiceFileMovementM2mBizApp} = GlobalComponents
55-
const {ServiceFileMovementM2cBizApp} = GlobalComponents
56-
const {HandOverChecklistResultBizApp} = GlobalComponents
57-
const {ServiceInsuranceForInspectionBizApp} = GlobalComponents
58-
const {ServiceVehicleInspectionBizApp} = GlobalComponents
59-
const {ServiceFileInspectionBizApp} = GlobalComponents
60-
const {ServiceVehicleRepairingBizApp} = GlobalComponents
61-
const {RepairingAllowanceItemBizApp} = GlobalComponents
62-
const {VehicleRepairingPaymentBizApp} = GlobalComponents
63-
const {AvailableReviewItemBizApp} = GlobalComponents
64-
const {OrderReviewResultBizApp} = GlobalComponents
65-
const {AvailableRatingItemBizApp} = GlobalComponents
66-
const {OrderRatingResultBizApp} = GlobalComponents
67-
const {PreorderPromotionBizApp} = GlobalComponents
68-
const {OrderDiscountCouponBizApp} = GlobalComponents
69-
const {VehicleInspectionOrderCouponBizApp} = GlobalComponents
70-
const {AccountBizApp} = GlobalComponents
71-
const {ServiceCompanyAccountBizApp} = GlobalComponents
72-
const {RepairingCompanyAccountBizApp} = GlobalComponents
73-
const {InsuranceServiceAccountBizApp} = GlobalComponents
74-
const {MainOrderAccountBizApp} = GlobalComponents
75-
const {InspectionStationAccountBizApp} = GlobalComponents
32+
const {CouponBizApp} = GlobalComponents
33+
const {VipLevelBizApp} = GlobalComponents
34+
const {PlayerBizApp} = GlobalComponents
35+
const {EmployeeBizApp} = GlobalComponents
36+
const {AdBizApp} = GlobalComponents
37+
const {BannerBizApp} = GlobalComponents
38+
const {NewsBizApp} = GlobalComponents
39+
const {NewsContentBizApp} = GlobalComponents
40+
const {CampaignBizApp} = GlobalComponents
41+
const {ActionTokenBizApp} = GlobalComponents
7642
const {UserDomainBizApp} = GlobalComponents
7743
const {SecUserBizApp} = GlobalComponents
7844
const {SecUserBlockingBizApp} = GlobalComponents
@@ -92,68 +58,34 @@ function RouterConfig({ history }) {
9258
<Router history={history}>
9359
<Switch>
9460
<Route path="/home" component={Launcher} />
95-
<Route path="/carInspectionPlatform/" component={CarInspectionPlatformBizApp} />
96-
<Route path="/province/" component={ProvinceBizApp} />
61+
<Route path="/gamePlatform/" component={GamePlatformBizApp} />
9762
<Route path="/city/" component={CityBizApp} />
98-
<Route path="/availableProduct/" component={AvailableProductBizApp} />
99-
<Route path="/availableVehicleType/" component={AvailableVehicleTypeBizApp} />
100-
<Route path="/availableVehicleUseCharacter/" component={AvailableVehicleUseCharacterBizApp} />
101-
<Route path="/contract/" component={ContractBizApp} />
102-
<Route path="/servicePrice/" component={ServicePriceBizApp} />
103-
<Route path="/availableService/" component={AvailableServiceBizApp} />
104-
<Route path="/productPrice/" component={ProductPriceBizApp} />
105-
<Route path="/availableInsurance/" component={AvailableInsuranceBizApp} />
106-
<Route path="/vehicleRepairingAllowance/" component={VehicleRepairingAllowanceBizApp} />
107-
<Route path="/availableHandOverItem/" component={AvailableHandOverItemBizApp} />
63+
<Route path="/store/" component={StoreBizApp} />
64+
<Route path="/gameCategory/" component={GameCategoryBizApp} />
65+
<Route path="/game/" component={GameBizApp} />
66+
<Route path="/gameSession/" component={GameSessionBizApp} />
67+
<Route path="/gameSessionRecord/" component={GameSessionRecordBizApp} />
68+
<Route path="/gamePlayerRecord/" component={GamePlayerRecordBizApp} />
69+
<Route path="/rearrangeSessionTicketRecord/" component={RearrangeSessionTicketRecordBizApp} />
70+
<Route path="/gameToken/" component={GameTokenBizApp} />
71+
<Route path="/gameTicket/" component={GameTicketBizApp} />
72+
<Route path="/onlineOrder/" component={OnlineOrderBizApp} />
73+
<Route path="/onlineOrderPayment/" component={OnlineOrderPaymentBizApp} />
74+
<Route path="/onlineOrderRedeemHistory/" component={OnlineOrderRedeemHistoryBizApp} />
75+
<Route path="/ticketPrinting/" component={TicketPrintingBizApp} />
76+
<Route path="/ticketPrintingHistory/" component={TicketPrintingHistoryBizApp} />
77+
<Route path="/offlineStoreOrder/" component={OfflineStoreOrderBizApp} />
10878
<Route path="/customer/" component={CustomerBizApp} />
109-
<Route path="/vehicleServiceCompany/" component={VehicleServiceCompanyBizApp} />
110-
<Route path="/serviceCompanyAuthenticationInfo/" component={ServiceCompanyAuthenticationInfoBizApp} />
111-
<Route path="/vehicleInspectionPlateNumberPattern/" component={VehicleInspectionPlateNumberPatternBizApp} />
112-
<Route path="/fileInspectionPlateNumberPattern/" component={FileInspectionPlateNumberPatternBizApp} />
113-
<Route path="/vehicleServiceCompanyBusinessScope/" component={VehicleServiceCompanyBusinessScopeBizApp} />
114-
<Route path="/companyQrcodePromotionRecord/" component={CompanyQrcodePromotionRecordBizApp} />
115-
<Route path="/vehicleServiceCompanyDispatcher/" component={VehicleServiceCompanyDispatcherBizApp} />
116-
<Route path="/companyDiscount/" component={CompanyDiscountBizApp} />
117-
<Route path="/vehicleServiceCompanyEmployee/" component={VehicleServiceCompanyEmployeeBizApp} />
118-
<Route path="/serviceOrderFilter/" component={ServiceOrderFilterBizApp} />
119-
<Route path="/companyEmployeeQualification/" component={CompanyEmployeeQualificationBizApp} />
120-
<Route path="/companyEmployeeServing/" component={CompanyEmployeeServingBizApp} />
121-
<Route path="/companyEmployeeTermination/" component={CompanyEmployeeTerminationBizApp} />
122-
<Route path="/employeeDrivingLicense/" component={EmployeeDrivingLicenseBizApp} />
123-
<Route path="/inspectionStation/" component={InspectionStationBizApp} />
124-
<Route path="/vehicleInfo/" component={VehicleInfoBizApp} />
125-
<Route path="/vehicleInspectionOrder/" component={VehicleInspectionOrderBizApp} />
126-
<Route path="/vehicleInspectionInsuranceOrder/" component={VehicleInspectionInsuranceOrderBizApp} />
127-
<Route path="/vehicleInspectionOrderCharge/" component={VehicleInspectionOrderChargeBizApp} />
128-
<Route path="/vehicleInspectionOrderServiceLog/" component={VehicleInspectionOrderServiceLogBizApp} />
129-
<Route path="/vehicleInspectionOrderPayment/" component={VehicleInspectionOrderPaymentBizApp} />
130-
<Route path="/handOverChecklistItem/" component={HandOverChecklistItemBizApp} />
131-
<Route path="/serviceVehicleMovementC2m/" component={ServiceVehicleMovementC2mBizApp} />
132-
<Route path="/serviceVehicleMovementM2m/" component={ServiceVehicleMovementM2mBizApp} />
133-
<Route path="/serviceVehicleMovementM2c/" component={ServiceVehicleMovementM2cBizApp} />
134-
<Route path="/serviceFileMovementC2m/" component={ServiceFileMovementC2mBizApp} />
135-
<Route path="/serviceFileMovementM2m/" component={ServiceFileMovementM2mBizApp} />
136-
<Route path="/serviceFileMovementM2c/" component={ServiceFileMovementM2cBizApp} />
137-
<Route path="/handOverChecklistResult/" component={HandOverChecklistResultBizApp} />
138-
<Route path="/serviceInsuranceForInspection/" component={ServiceInsuranceForInspectionBizApp} />
139-
<Route path="/serviceVehicleInspection/" component={ServiceVehicleInspectionBizApp} />
140-
<Route path="/serviceFileInspection/" component={ServiceFileInspectionBizApp} />
141-
<Route path="/serviceVehicleRepairing/" component={ServiceVehicleRepairingBizApp} />
142-
<Route path="/repairingAllowanceItem/" component={RepairingAllowanceItemBizApp} />
143-
<Route path="/vehicleRepairingPayment/" component={VehicleRepairingPaymentBizApp} />
144-
<Route path="/availableReviewItem/" component={AvailableReviewItemBizApp} />
145-
<Route path="/orderReviewResult/" component={OrderReviewResultBizApp} />
146-
<Route path="/availableRatingItem/" component={AvailableRatingItemBizApp} />
147-
<Route path="/orderRatingResult/" component={OrderRatingResultBizApp} />
148-
<Route path="/preorderPromotion/" component={PreorderPromotionBizApp} />
149-
<Route path="/orderDiscountCoupon/" component={OrderDiscountCouponBizApp} />
150-
<Route path="/vehicleInspectionOrderCoupon/" component={VehicleInspectionOrderCouponBizApp} />
151-
<Route path="/account/" component={AccountBizApp} />
152-
<Route path="/serviceCompanyAccount/" component={ServiceCompanyAccountBizApp} />
153-
<Route path="/repairingCompanyAccount/" component={RepairingCompanyAccountBizApp} />
154-
<Route path="/insuranceServiceAccount/" component={InsuranceServiceAccountBizApp} />
155-
<Route path="/mainOrderAccount/" component={MainOrderAccountBizApp} />
156-
<Route path="/inspectionStationAccount/" component={InspectionStationAccountBizApp} />
79+
<Route path="/coupon/" component={CouponBizApp} />
80+
<Route path="/vipLevel/" component={VipLevelBizApp} />
81+
<Route path="/player/" component={PlayerBizApp} />
82+
<Route path="/employee/" component={EmployeeBizApp} />
83+
<Route path="/ad/" component={AdBizApp} />
84+
<Route path="/banner/" component={BannerBizApp} />
85+
<Route path="/news/" component={NewsBizApp} />
86+
<Route path="/newsContent/" component={NewsContentBizApp} />
87+
<Route path="/campaign/" component={CampaignBizApp} />
88+
<Route path="/actionToken/" component={ActionTokenBizApp} />
15789
<Route path="/userDomain/" component={UserDomainBizApp} />
15890
<Route path="/secUser/" component={SecUserBizApp} />
15991
<Route path="/secUserBlocking/" component={SecUserBlockingBizApp} />

src/index.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta http-equiv="X-UA-Compatible" content="IE=edge">
99
<meta name="viewport" content="width=device-width, initial-scale=1">
1010
<script type="text/javascript" src="aliyun-oss-4.4.4.min.js"></script>
11-
<title>代审车服务平台</title>
11+
<title>濮瑞游戏</title>
1212
<link href="./css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
1313
<link rel="icon" href="favicon.png" type="image/x-icon">
1414
<script type="text/javascript" src="aliyun-oss-4.4.4.min.js"></script>

src/launcher/HomeScreen.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class HomeScreen extends React.Component {
6565
const appList = this.props.launcher.data.userAppList;
6666
const calcLink = this.calcLink;
6767
const { systemName }=this.props.launcher;
68-
return (<div style={{ backgroundImage: "url('home-background.png')","height":"100%"}} >
68+
return (<div style={{"height":"100%"}} >
6969
<Row key="1" >
7070
<Col className="gutter-row" span={24} >
7171
<TopMenu {...this.props} />
@@ -76,8 +76,7 @@ class HomeScreen extends React.Component {
7676
<h1>{systemName}</h1>
7777
</Col>
7878
</Row>
79-
<Row key="3" gutter={16} justify="center" align="center"
80-
>
79+
<Row key="3" gutter={16} justify="center" align="center" >
8180
{appList.map((app, i) => (
8281
<Col key={i} className="gutter-row" span={6} style={{ textAlign: "center"}}
8382
onClick={(e)=>this.gotoApp(e,app)}

src/launcher/TopMenu.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TopMenu extends React.Component {
3939
onClick={this.handleClick}
4040
selectedKeys={[this.state.current]}
4141
mode="horizontal"
42-
theme="dark"
42+
theme="light"
4343
>
4444

4545
<Menu.Item key="app1" >

0 commit comments

Comments
 (0)