Skip to content

Commit

Permalink
add video play part
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiYz committed Apr 17, 2019
1 parent 1619425 commit 77a65e3
Show file tree
Hide file tree
Showing 26 changed files with 300 additions and 28 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# NetEaseCloudMusic
网易云音乐RN版

##截图
<p>
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/find.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/findBottom.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/topList.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/toplistBottom.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/topListDetail.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/Dj.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/djType.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/payQuality.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/mv.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/mvTop.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/mvPlay.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/mvFullScreen.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/mine.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/playlist.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshots/audioPlay.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/friends.png" width="207" height="448" />
<img alt="NetEaseCloudMusic" src="https://raw.githubusercontent.com/DaiYz/NetEaseCloudMusic/master/screenshot/account.png" width="207" height="448" /></p>

## 运行
```
git clone https://github.com/DaiYz/NetEaseCloudMusic
Expand Down
2 changes: 1 addition & 1 deletion application/components/navHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NavHeader extends React.Component {
>
{headerLeftIcon}
</TouchableOpacity>
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }} >
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', marginHorizontal: 14 }} >
{
renderHeaderTitle ? renderHeaderTitle()
: <Text style={[{ color: '#fff', fontSize: 16, fontWeight: '500' }, titleStyle]} numberOfLines={1}>{headerTitle}</Text>
Expand Down
1 change: 1 addition & 0 deletions application/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class HomeScreen extends Component {
const { app, account } = this.props
await hydrate('authToken', account)
await hydrate('appTheme', app)
await hydrate('playMode', app)
app.init(account.authToken, app.appTheme)
}

Expand Down
18 changes: 15 additions & 3 deletions application/source/svg/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion application/stores/stroe.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class app {
id: '121212121',
playing: false
}
@observable playMode = 0
@persist @observable playMode = 0
@observable audioPause = false
@observable currentTheme = '蓝色主题'

@action.bound changeTheme (type: String) {
Expand Down Expand Up @@ -65,6 +66,11 @@ class app {
}
this.playMode += 1
}

@action.bound isAudioPlay (status) {
console.log(status)
this.audioPause = status
}
}

export default app
1 change: 1 addition & 0 deletions application/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ export default {
comment: sessionMethodBuild(`${BaseUrl}/comment`), // comment 评论
simi: sessionMethodBuild(`${BaseUrl}/simi`), // 相似
playlist: sessionMethodBuild(`${BaseUrl}/playlist`), // 歌单
song: sessionMethodBuild(`${BaseUrl}/song`), // 歌单
personalized: sessionMethodBuild(`${BaseUrl}/personalized`) // 个性化推荐
}
Loading

0 comments on commit 77a65e3

Please sign in to comment.