<ion-view cache-view="false">
	<ion-nav-title>
		<h1 class="title">版本更新</h1>
	</ion-nav-title>
	<ion-nav-buttons side="left">
		<button class="button icon-left ion-ios-arrow-back button-clear sino-back-button"sino-go-back-button sino-nav-direction="back">设置</button>
	</ion-nav-buttons>

	<ion-content class="version" scroll="true" ng-init="getAppVersion()">
		<div class="seach-version-info" ng-if="versionLoading">
			<ion-spinner icon="ios" ng-if="versionLoading"></ion-spinner>
			<span>
				正在查看版本信息...
			<span>
		</div>
		<div class="card" ng-if="!versionLoading">
			<a class="item item-text-wrap" ng-if="updateFlag" sino-click="versionUpdate()">
				最新版本是{{appVersion.appVersion}}，点击更新
			</a>
			<div class="item item-text-wrap" ng-if="!updateFlag">
				当前版本{{appVersion.appVersion}}已经是最新版本，无需更新
			</div>
		</div>
		<div class="mobileoa-qrcode">
			<img src="images/commons/mobileoa_qrcode.png" style="max-width: 180px;">
		</div>
	</ion-content>
</ion-view>
