Skip to content

Commit c4e20ba

Browse files
author
uniquexiaobai
committed
add user/orgs and styles/color
1 parent 5a22879 commit c4e20ba

25 files changed

+138
-45
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"pages/settings/settings",
88
"pages/auth/onboard/onboard",
99
"pages/repo/repo",
10+
"pages/org/org",
1011
"pages/user/user"
1112
],
1213

app.wxss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import './styles/main.wxss';
2+
13
.container {
24
position: absolute;
35
top: 0;
@@ -29,3 +31,5 @@
2931
view, text {
3032
font-family: 'Segoe UI', '微软雅黑';
3133
}
34+
35+

pages/explore/explore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Page({
4949
this.setData({
5050
items: res.data
5151
});
52+
this.hideLoadingToast();
5253
}
53-
this.hideLoadingToast();
5454
});
5555
},
5656

pages/explore/explore.wxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
<image class="avatar" mode="aspectFit" src="{{item.owner.avatar_url}}"></image>
2121
</navigator>
2222
<view class="col" style="flex: 1">
23-
<text class="full_name">{{item.full_name}}</text>
24-
<text class="language">{{item.language ? item.language : ''}}</text>
23+
<text class="color_blue full_name">{{item.full_name}}</text>
24+
<text class="color_gray language">{{item.language ? item.language : ''}}</text>
2525
</view>
26-
<view class="stargazers_count">{{item.stargazers_count}}</view>
26+
<view class="color_gray stargazers_count">{{item.stargazers_count}}</view>
2727
</view>
2828
</navigator>
2929
</block>

pages/explore/explore.wxss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ scroll-view {
2828
}
2929
.full_name {
3030
font-size: 25rpx;
31-
color: #4078c0;
3231
}
3332
.language {
3433
margin-top: 5rpx;
35-
color: #9A9A9A;
3634
font-size: 20rpx;
3735
}
3836
.stargazers_count {
39-
color: #9A9A9A;
4037
font-size: 20rpx;
4138
}
4239
.avatar {

pages/famous/famous.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Page({
4949
page: 1,
5050
incomplete_results: res.data.incomplete_results
5151
});
52+
this.hideLoadingToast();
5253
}
53-
this.hideLoadingToast();
5454
});
5555
},
5656

pages/famous/famous.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<navigator url="../user/user?user_name={{item.login}}">
1818
<view class="row user_item">
1919
<image class="avatar" mode="aspectFit" src="{{item.avatar_url}}"></image>
20-
<text class="col justify_center username">{{item.login}}</text>
20+
<text class="col justify_center color_black username">{{item.login}}</text>
2121
</view>
2222
</navigator>
2323
</block>

pages/famous/famous.wxss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ scroll-view {
2828
.username {
2929
font-size: 25rpx;
3030
font-weight: bold;
31-
color: #333333;
3231
}

pages/index/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Page({
4848
this.setData({
4949
items: this.data.items.concat(res.data)
5050
});
51+
this.hideLoadingToast();
5152
}
52-
this.hideLoadingToast();
5353
});
5454
},
5555

0 commit comments

Comments
 (0)