forked from zhengxiaowai/weapp-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
完成 starts 页面的语言筛选和下拉加载更多功能,fix 跳转登录后没有数据问题
- Loading branch information
1 parent
b9deb27
commit 4e798eb
Showing
11 changed files
with
290 additions
and
21 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 |
---|---|---|
|
@@ -35,3 +35,4 @@ jspm_packages | |
|
||
# Optional REPL history | ||
.node_repl_history | ||
.DS_Store |
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 |
---|---|---|
|
@@ -32,5 +32,6 @@ | |
"iconPath":"images/profile.png", | ||
"selectedIconPath":"images/profileHL.png" | ||
}] | ||
} | ||
}, | ||
"debug": true | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 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,76 @@ | ||
.picker-section { | ||
border-bottom: 1px solid #c7c7c7; | ||
padding: 0rpx 10rpx 10rpx 10rpx; | ||
} | ||
|
||
.flex { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
|
||
.flex-flex { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.flex-warp-top { | ||
margin-bottom: 16rpx; | ||
color: #4078C0; | ||
} | ||
|
||
.flex-warp-mid { | ||
font-size: 28rpx; | ||
color: #666; | ||
margin-bottom: 16rpx; | ||
} | ||
|
||
.flex-warp-bottom { | ||
justify-content: flex-end; | ||
font-size: 26rpx; | ||
color: #888; | ||
} | ||
|
||
.flex-warp-right { | ||
margin-left: 10rpx; | ||
} | ||
|
||
.point { | ||
margin-left: 10rpx; | ||
margin-right: 10rpx; | ||
} | ||
|
||
.starts-image { | ||
margin-left: 10rpx; | ||
} | ||
|
||
.icon-book { | ||
width: 24px; | ||
height: 24px; | ||
} | ||
|
||
.icon-start { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
|
||
.repo-item { | ||
padding: 30rpx; | ||
border-bottom: 1px solid #c7c7c7; | ||
} | ||
|
||
.load-more-wrap{ | ||
text-align: center; | ||
padding: 10px 20px 20px 20px; | ||
} | ||
|
||
.load-content{ | ||
padding: 5px; | ||
color: #666; | ||
} | ||
|
||
.loading-text{ | ||
font-size: 26rpx; | ||
display: inline-block; | ||
vertical-align: middle; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.repo-item { | ||
padding: 30rpx 30rpx 30rpx 30rpx; | ||
padding: 30rpx; | ||
border-bottom: 1px solid #c7c7c7; | ||
} | ||
|
||
|
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,29 @@ | ||
|
||
|
||
|
||
module.exports = function(linkHeaders) { | ||
links = linkHeaders.split(','); | ||
|
||
var linkObjs = {} | ||
|
||
links.forEach(item => { | ||
var regKey = /rel="(.*?)"/; | ||
var regValue = /\<(.*?)\>/; | ||
|
||
var v = regValue.exec(item) | ||
if (v) { | ||
v = v[1]; | ||
} | ||
|
||
var k = regKey.exec(item) | ||
if (k) { | ||
k = k[1]; | ||
} | ||
|
||
linkObjs[k] = v; | ||
}) | ||
|
||
return linkObjs; | ||
|
||
} | ||
|
Oops, something went wrong.