| @@ -71,7 +71,7 @@ export default class MyPage extends Component { | |||
| totalBytes:0 | |||
| }, | |||
| macAddress: '', | |||
| versionInfo:'Unknown' | |||
| versionInfo:'未知' | |||
| }; | |||
| } | |||
| @@ -79,28 +79,28 @@ export default class MyPage extends Component { | |||
| codePushStatusDidChange(syncStatus) { | |||
| switch(syncStatus) { | |||
| case CodePush.SyncStatus.CHECKING_FOR_UPDATE: | |||
| this.setState({ syncMessage: "Checking for update." }); | |||
| this.setState({ syncMessage: "检查更新" }); | |||
| break; | |||
| case CodePush.SyncStatus.DOWNLOADING_PACKAGE: | |||
| this.setState({ syncMessage: "Downloading package." }); | |||
| this.setState({ syncMessage: "下载更新" }); | |||
| break; | |||
| case CodePush.SyncStatus.AWAITING_USER_ACTION: | |||
| this.setState({ syncMessage: "Awaiting user action." }); | |||
| this.setState({ syncMessage: "等待用户操作" }); | |||
| break; | |||
| case CodePush.SyncStatus.INSTALLING_UPDATE: | |||
| this.setState({ syncMessage: "Installing update." }); | |||
| this.setState({ syncMessage: "安装更新" }); | |||
| break; | |||
| case CodePush.SyncStatus.UP_TO_DATE: | |||
| this.setState({ syncMessage: "App up to date.", progress: false }); | |||
| this.setState({ syncMessage: "已更新到最新程序", progress: false }); | |||
| break; | |||
| case CodePush.SyncStatus.UPDATE_IGNORED: | |||
| this.setState({ syncMessage: "Update cancelled by user.", progress: false }); | |||
| this.setState({ syncMessage: "更新被取消", progress: false }); | |||
| break; | |||
| case CodePush.SyncStatus.UPDATE_INSTALLED: | |||
| this.setState({ syncMessage: "Update installed and will be applied on restart.", progress: false }); | |||
| this.setState({ syncMessage: "更新已安装,重启应用后生效", progress: false }); | |||
| break; | |||
| case CodePush.SyncStatus.UNKNOWN_ERROR: | |||
| this.setState({ syncMessage: "An unknown error occurred.", progress: false }); | |||
| this.setState({ syncMessage: "未知错误", progress: false }); | |||
| break; | |||
| } | |||
| } | |||
| @@ -288,7 +288,7 @@ getContentViewItem(contentItem, annomation) { | |||
| merchantName = contentItem.target.merchantVoList[0].merchantName; | |||
| return ( | |||
| <Animatable.View animation={annomation} style={styles.contentItem}> | |||
| <Animatable.View animation={annomation} easing="ease-out" duration={1500} delay={500} style={styles.contentItem}> | |||
| <ImageBackground source={require('./image/item-background.png')} resizeMode='center' style={styles.contentItemDownLayer} > | |||
| @@ -299,11 +299,11 @@ getContentViewItem(contentItem, annomation) { | |||
| <Text style={styles.contentItemTopDetailRemark} numberOfLines={1} ellipsizeMode="tail">{contentItem.target.remark}</Text> | |||
| <View style={styles.contentItemTopDetailPrice}> | |||
| <View style={styles.contentItemTopDetailCurPrice}> | |||
| <Text style={styles.contentItemTopDetailCurPriceStr}>{contentItem.target.priceStr}</Text> | |||
| <Text style={styles.contentItemTopDetailCurPriceStr}>{contentItem.target.salePriceStr}</Text> | |||
| <Text style={styles.contentItemTopDetailCurPriceStrUnit}>元</Text> | |||
| </View> | |||
| <View style={styles.contentItemTopDetailSalePrice}> | |||
| <Text style={styles.contentItemTopDetailSalePriceStr} >{contentItem.target.salePriceStr}元</Text> | |||
| <Text style={styles.contentItemTopDetailSalePriceStr} >{contentItem.target.priceStr}元</Text> | |||
| </View> | |||
| </View> | |||
| </View> | |||
| @@ -527,7 +527,7 @@ render() { | |||
| textAlign :'center', | |||
| textAlignVertical:'center', | |||
| fontSize: 16/PixelRatio.get(), | |||
| color : 'black', | |||
| color : 'white', | |||
| backgroundColor:'transparent' | |||
| }, | |||
| @@ -536,7 +536,7 @@ render() { | |||
| textAlign :'center', | |||
| textAlignVertical:'center', | |||
| fontSize: 16/PixelRatio.get(), | |||
| color : 'black', | |||
| color : 'white', | |||
| backgroundColor:'transparent' | |||
| }, | |||