Skip to content

Commit cb3eb78

Browse files
author
uniquexiaobai
committed
update
1 parent d709a6c commit cb3eb78

29 files changed

+810
-478
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
### 微信小程序试玩,踩坑中。。。
1+
### GitHub Feed 小程序版
22
参考:[react-native-gitfeed](https://github.com/xiekw2010/react-native-gitfeed)
33

44
![](./screenshots/githubfeed.gif)
5+
6+
### 已完成的功能
7+
![](./screenshots/feed.png)
8+
![](./screenshots/famous.png)
9+
![](./screenshots/explore.png)
10+
![](./screenshots/user.png)
11+
12+
### 一些痛点
13+
- 不支持 WebView ,故不能使用 OAuth2 获得 GitHub 授权,目前会有每小时 60 次的 API 请求限制 ;
14+
- wx.request() 这个网络请求的 API 封装的太简单粗暴,以至于不能获取响应头中的其他域,如 Link ;
15+
- 不支持 ES2015 原生的 Promise,故不得不引入第三方的 Promise 库,此处使用的是 bluebird ;

app.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,42 @@
1212
],
1313

1414
"window":{
15-
"backgroundTextStyle": "light",
16-
"navigationBarTitleText": "github-feed",
17-
"navigationBarTextStyle": "white",
1815
"navigationBarBackgroundColor": "#4078C0",
16+
"navigationBarTitleText": "Github Feed",
17+
"navigationBarTextStyle": "white",
18+
"backgroundTextStyle": "light",
1919
"enablePullDownRefresh": true
2020
},
2121

2222
"tabBar": {
2323
"color": "#9A9A9A",
2424
"selectedColor": "#4078c0",
25+
"backgroundColor": "#F7F7FA",
2526
"borderStyle": "white",
2627
"list": [
2728
{
2829
"pagePath": "pages/index/index",
2930
"text": "Feed",
3031
"iconPath": "images/tab/index.png",
31-
"selectedIconPath": "images/tab/index_blue.png"
32+
"selectedIconPath": "images/tab/index@active.png"
3233
},
3334
{
3435
"pagePath": "pages/explore/explore",
3536
"text": "Explore",
3637
"iconPath": "images/tab/explore.png",
37-
"selectedIconPath": "images/tab/explore_blue.png"
38+
"selectedIconPath": "images/tab/explore@active.png"
3839
},
3940
{
4041
"pagePath": "pages/famous/famous",
4142
"text": "Famous",
4243
"iconPath": "images/tab/famous.png",
43-
"selectedIconPath": "images/tab/famous_blue.png"
44+
"selectedIconPath": "images/tab/famous@active.png"
4445
},
4546
{
4647
"pagePath": "pages/me/me",
4748
"text": "Me",
4849
"iconPath": "images/tab/me.png",
49-
"selectedIconPath": "images/tab/me_blue.png"
50+
"selectedIconPath": "images/tab/me@active.png"
5051
}
5152
]
5253
}

images/tab/explore.png

-182 Bytes
Loading

images/tab/explore@active.png

1.24 KB
Loading

images/tab/explore_blue.png

-1.44 KB
Binary file not shown.

images/tab/famous.png

-248 Bytes
Loading

images/tab/famous@active.png

1.43 KB
Loading

images/tab/famous_blue.png

-1.67 KB
Binary file not shown.

images/tab/index.png

-258 Bytes
Loading

images/tab/index@active.png

830 Bytes
Loading

0 commit comments

Comments
 (0)