Skip to content

Commit

Permalink
release(iOS): 0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpath committed Nov 30, 2017
1 parent af68def commit 28f61be
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ios/psnine/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>0.9.0</string>
<string>0.9.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>630</string>
<string>634</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
2 changes: 1 addition & 1 deletion psnine/container/statistics/Stats.ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class StatsHome extends Component<any, any> {
<View style={{ flex: 1, padding: 5}}>
<View borderRadius={20} style={{ marginTop: 10,
paddingHorizontal: 10, alignSelf: 'center', alignContent: 'center',
flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.3)' }}>
flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.5)' }}>
<Text style={{ height: 30, textAlignVertical: 'center', textAlign: 'center', padding: 5}}>
<Text style={{ flex: 1, color: trophyColor1, marginVertical: 2, textAlign: 'center', fontSize: 15 }}>{rowData.platinum + ' '}</Text>
<Text style={{ flex: 1, color: trophyColor2, marginVertical: 2, textAlign: 'center', fontSize: 15 }}>{rowData.gold + ' '}</Text>
Expand Down
18 changes: 16 additions & 2 deletions psnine/container/user/Home.ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default class Home extends Component<any, any> {
<View style={{ flex: 1, padding: 5}}>
<View borderRadius={20} style={{ marginTop: 10,
paddingHorizontal: 10, alignSelf: 'center', alignContent: 'center',
flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.3)' }}>
flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.5)' }}>
<Text style={{ height: 30, textAlignVertical: 'center', textAlign: 'center', padding: 5}}>
<Text style={{ flex: 1, color: trophyColor1, marginVertical: 2, textAlign: 'center', fontSize: 15 }}>{rowData.platinum + ' '}</Text>
<Text style={{ flex: 1, color: trophyColor2, marginVertical: 2, textAlign: 'center', fontSize: 15 }}>{rowData.gold + ' '}</Text>
Expand Down Expand Up @@ -315,6 +315,13 @@ export default class Home extends Component<any, any> {
const psnid = params.URL.split('/').filter(item => item.trim()).pop()
// alert(index)
switch (index) {
case 5:
this.props.navigation.navigate('Stats', {
URL: params.URL,
psnid,
title: `${psnid} 奖杯统计`
})
return
case 4:
// if (psnid === modeInfo.settingInfo.psnid) return global.toast('不可以屏蔽自己')
block({
Expand Down Expand Up @@ -434,6 +441,13 @@ export default class Home extends Component<any, any> {
const { modeInfo } = this.props.screenProps
const { data: source } = this.state

const psnid = modeInfo.settingInfo.psnid.toLowerCase()
const toolbar: any = this.toolbar.slice()
if (psnid === 'secondlife_xhm') {
toolbar.push({
title: '奖杯统计', show: 'never'
})
}
// console.log(JSON.stringify(profileToolbar))
return source.playerInfo && this.state.leftIcon && !this.state.isLoading ? (
<View style={{flex: 1}}>
Expand All @@ -456,7 +470,7 @@ export default class Home extends Component<any, any> {
iconColor={modeInfo.isNightMode ? '#000' : '#fff'}
title={`${params.title}`}
titleColor={modeInfo.isNightMode ? '#000' : '#fff'}
actions={this.toolbar}
actions={toolbar}
onIconClicked={this.onIconClicked}
style={{backgroundColor: 'transparent' }}
onActionSelected={this._onActionSelected}
Expand Down

0 comments on commit 28f61be

Please sign in to comment.