diff --git a/App.js b/App.js index 6bf1ef2..23fd4bc 100644 --- a/App.js +++ b/App.js @@ -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 ( - + @@ -299,11 +299,11 @@ getContentViewItem(contentItem, annomation) { {contentItem.target.remark} - {contentItem.target.priceStr} + {contentItem.target.salePriceStr} - {contentItem.target.salePriceStr}元 + {contentItem.target.priceStr}元 @@ -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' }, diff --git a/image/background.png b/image/background.png index 178d87f..1eb28ab 100644 Binary files a/image/background.png and b/image/background.png differ