Skip to content

Commit

Permalink
[feat]release v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
renyuzhuo committed Feb 1, 2020
1 parent f805ebf commit ad0b731
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ GitHub 小程序有很多,但推荐热点项目的往往是拉取 [GitHub Tren
5. 你可以方便 Star 或 Fork 你所感兴趣的项目,提 Issues 或针对 Issues 进行评论,也可方便 Follow 某人,相关邮箱或主页虽不可在小程序内直接操作,但点击后都可复制邮箱或主页链接,方便操作。
6. 请您自己去发现

## 小程序码(近期开发完成,暂未审核通过,先请试用体验版)
## 小程序码

<img width='200' src='https://api.renyuzhuo.cn/code.jpg'><br/><img width='200' src='https://user-images.githubusercontent.com/7275046/73512828-14679480-4426-11ea-8870-096d6e52f82c.png'>
<img width='200' src='https://api.renyuzhuo.cn/code.jpg'>

## 预览截图

Expand Down
9 changes: 8 additions & 1 deletion src/pages/repo/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ class Repo extends Component {

generatePoster(imgUrl) {
const { repo } = this.state
let goodsWords = [
'Stay hungry. Stay foolish.',
'Talk is cheap. Show me the code.',
'生活除了工作,还有诗和远方',
'愿你出走半生,归来仍是少年',
'E=mc²'
]
const data = {
background: '#f7f7f7',
width: '750rpx',
Expand Down Expand Up @@ -470,7 +477,7 @@ class Repo extends Component {
},
{
type: 'text',
text: '开源的世界,有你才更精彩',
text: goodsWords[Math.floor((Math.random() * 5))],
css: {
bottom: '60rpx',
left: '375rpx',
Expand Down
11 changes: 9 additions & 2 deletions src/pages/top/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class Repo extends Component {
this.setState({
readme: base64_decode(readme)
})
}else{
} else {
this.setState({
readme: null
})
Expand Down Expand Up @@ -373,6 +373,13 @@ class Repo extends Component {

generatePoster(imgUrl) {
const { repo } = this.state
let goodsWords = [
'Stay hungry. Stay foolish.',
'Talk is cheap. Show me the code.',
'生活除了工作,还有诗和远方',
'愿你出走半生,归来仍是少年',
'E=mc²'
]
const data = {
background: '#f7f7f7',
width: '750rpx',
Expand Down Expand Up @@ -507,7 +514,7 @@ class Repo extends Component {
},
{
type: 'text',
text: '开源的世界,有你才更精彩',
text: goodsWords[Math.floor((Math.random() * 5))],
css: {
bottom: '60rpx',
left: '375rpx',
Expand Down

0 comments on commit ad0b731

Please sign in to comment.