Skip to content

Commit

Permalink
完成直接账号密码登陆🐱
Browse files Browse the repository at this point in the history
  • Loading branch information
czy0729 committed Jul 11, 2019
1 parent 76dc3bd commit 8e5a768
Show file tree
Hide file tree
Showing 9 changed files with 415 additions and 244 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"description": "A React Native App for https://bangumi.tv ",
"githubUrl": "https://github.com/czy0729/Bangumi"
}
}
}
2 changes: 1 addition & 1 deletion components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: czy0729
* @Date: 2019-03-19 01:43:43
* @Last Modified by: czy0729
* @Last Modified time: 2019-06-22 14:17:41
* @Last Modified time: 2019-07-11 22:36:08
*/
import React from 'react'
import {
Expand Down
2 changes: 1 addition & 1 deletion navigations.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-06-02 14:42:28
* @Last Modified by: czy0729
* @Last Modified time: 2019-07-08 23:52:21
* @Last Modified time: 2019-07-12 00:37:34
*/
export default {
initialRouteName: 'HomeTab', // HomeTab
Expand Down
4 changes: 2 additions & 2 deletions navigations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-03-29 10:38:12
* @Last Modified by: czy0729
* @Last Modified time: 2019-07-08 23:52:46
* @Last Modified time: 2019-07-11 22:15:31
*/
import React from 'react'
import { StyleSheet, View } from 'react-native'
Expand Down Expand Up @@ -81,7 +81,7 @@ const HomeStack = createStackNavigator(
Calendar,
Discovery,
HomeTab,
Login: LoginV2,
Login,
LoginV2,
Mono,
Notify,
Expand Down
4 changes: 2 additions & 2 deletions screens/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-03-31 10:25:46
* @Last Modified by: czy0729
* @Last Modified time: 2019-06-23 22:12:47
* @Last Modified time: 2019-07-12 00:37:52
*/
import React from 'react'
import { View } from 'react-native'
Expand Down Expand Up @@ -75,7 +75,7 @@ class Auth extends React.Component {
_.mt.md
]}
shadow
onPress={() => navigation.push('Login')}
onPress={() => navigation.push('LoginV2')}
>
现在登录
</Button>
Expand Down
5 changes: 3 additions & 2 deletions screens/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-03-13 08:34:37
* @Last Modified by: czy0729
* @Last Modified time: 2019-06-25 19:50:56
* @Last Modified time: 2019-07-12 00:42:09
*/
import React from 'react'
import { StyleSheet, View } from 'react-native'
Expand All @@ -11,6 +11,7 @@ import PropTypes from 'prop-types'
import { observer } from 'mobx-react'
import { Image } from '@components'
import { IconTabBar, IconTabsHeader, ManageModal } from '@screens/_'
import { userStore } from '@stores'
import { inject, withTabsHeader } from '@utils/decorators'
import { hm } from '@utils/fetch'
import { IOS } from '@constants'
Expand Down Expand Up @@ -74,7 +75,7 @@ class Home extends React.Component {
}

setTimeout(() => {
hm(`?id=${$.userInfo.userId}`, title)
hm(`?id=${userStore.myUserId}`, title)
}, 4000)
}

Expand Down
Loading

0 comments on commit 8e5a768

Please sign in to comment.