forked from shen100/wemall
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
刘珅
committed
Apr 2, 2017
1 parent
4180ef2
commit 8f4b29e
Showing
31 changed files
with
372 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ dist | |
.idea | ||
*.swp | ||
.bashrc | ||
debug | ||
debug | ||
client/javascripts/admin1 | ||
client/javascripts/admin2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
REQUEST_USER_ANALYZE | ||
} from '../constants'; | ||
|
||
function receiveUserAnalyze(json) { | ||
return { | ||
type: REQUEST_USER_ANALYZE, | ||
userAnalyze: { | ||
todayNewUser : json.todayNewUser, | ||
yesterdayNewUser : json.yesterdayNewUser, | ||
todayPurchaseUser : json.todayPurchaseUser, | ||
yesterdayPurchaseUser : json.yesterdayPurchaseUser | ||
} | ||
}; | ||
} | ||
|
||
export default function() { | ||
return dispatch => { | ||
var url = config.sitePath + '/admin/user/analyze'; | ||
return fetch(url) | ||
.then(response => response.json()) | ||
.then(json => dispatch(receiveUserAnalyze(json.data))) | ||
}; | ||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export const SET_TODAY_ORDER_COUNT = 'setTodayOrderCount'; | ||
|
||
export const SET_TODAY_TOTAL_SALE = 'setTodayTotalSale'; | ||
|
||
export const SET_TOTAL_ORDER_COUNT = 'setTotalOrderCount'; | ||
|
||
export const SET_TOTAL_SALE = 'setTotalSale'; | ||
|
||
export const SET_WEMALL_VERSION = 'setWemallVersion'; | ||
|
||
export const SET_WEMALL_NEW_VERSION = 'setWemallNewVersion'; | ||
|
||
export const SET_SYSTEM_TIME = 'setSysTemTime'; | ||
|
||
export const SET_WEMALL_OFFICIAL = 'setWemallOfficial'; | ||
|
||
export const SET_TODAY_NEW_USER = 'setTodayNewUser'; | ||
|
||
export const REQUEST_USER_ANALYZE = 'requestUserAnalyze'; | ||
|
||
|
||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React, { Component } from 'react'; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
{this.props.children} | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.