From 28f61be854b956afd5b2b071580adffe0802cbc5 Mon Sep 17 00:00:00 2001 From: smallpath Date: Thu, 30 Nov 2017 22:19:19 +0800 Subject: [PATCH] release(iOS): 0.9.2 --- ios/psnine/Info.plist | 4 ++-- psnine/container/statistics/Stats.ios.tsx | 2 +- psnine/container/user/Home.ios.tsx | 18 ++++++++++++++++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ios/psnine/Info.plist b/ios/psnine/Info.plist index 5d7dd01..05957b4 100644 --- a/ios/psnine/Info.plist +++ b/ios/psnine/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.9.0 + 0.9.2 CFBundleSignature ???? CFBundleURLTypes @@ -34,7 +34,7 @@ CFBundleVersion - 630 + 634 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/psnine/container/statistics/Stats.ios.tsx b/psnine/container/statistics/Stats.ios.tsx index 6fc8130..32ce437 100644 --- a/psnine/container/statistics/Stats.ios.tsx +++ b/psnine/container/statistics/Stats.ios.tsx @@ -265,7 +265,7 @@ class StatsHome extends Component { + flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.5)' }}> {rowData.platinum + ' '} {rowData.gold + ' '} diff --git a/psnine/container/user/Home.ios.tsx b/psnine/container/user/Home.ios.tsx index c54ff27..f32f821 100644 --- a/psnine/container/user/Home.ios.tsx +++ b/psnine/container/user/Home.ios.tsx @@ -221,7 +221,7 @@ export default class Home extends Component { + flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.5)' }}> {rowData.platinum + ' '} {rowData.gold + ' '} @@ -315,6 +315,13 @@ export default class Home extends Component { 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({ @@ -434,6 +441,13 @@ export default class Home extends Component { 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 ? ( @@ -456,7 +470,7 @@ export default class Home extends Component { 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}