Skip to content

Commit

Permalink
refactor: 优化通知时间的样式
Browse files Browse the repository at this point in the history
  • Loading branch information
airingursb committed Jun 16, 2018
1 parent 8664e8d commit 1e87e13
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
* Submit a pull request

## 2.0
### 2.0.5 / 2018-06-16

- 修复了重复登录的 bug
- 修复了无网络时无限加载的 bug
- 美化了样式

### 2.0.4 / 2018-05-27

- 新增了微信登录
Expand Down
Binary file not shown.
2 changes: 0 additions & 2 deletions ios/twolife.xcodeproj/xcshareddata/xcschemes/twolife.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand Down Expand Up @@ -84,7 +83,6 @@
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
2 changes: 1 addition & 1 deletion ios/twolife/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.4</string>
<string>2.0.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
10 changes: 5 additions & 5 deletions src/containers/notification/NotificationItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export default class NotificationItem extends Component {
const date = new Date(ts)
Y = date.getFullYear() + '-'
M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
D = date.getDate() + ' '
h = date.getHours() + ':'
m = date.getMinutes() + ':'
s = date.getSeconds()
return Y + M + D + h + m + s
D = (date.getDate() < 10 ? '0' + date.getDate(): date.getDate()) + ' '
h = (date.getHours() < 10 ? '0' + date.getHours(): date.getHours()) + ':'
m = (date.getMinutes() < 10 ? '0' + date.getMinutes(): date.getMinutes())
s = ':' + (date.getSeconds() < 10 ? '0' + date.getSeconds(): date.getSeconds())
return Y + M + D + h + m
}

_jumpWeb() {
Expand Down

0 comments on commit 1e87e13

Please sign in to comment.