<template>
	<view>
		<view v-if="switchLang == 'en'">
			<u-image src="../../static/pdf/zc.png" width="750rpx" mode="widthFix"></u-image>
		</view>
		<view v-else>
			<u-image src="../../static/pdf/zc.png" width="750rpx" mode="widthFix"></u-image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				switchLang: 'en'
			}
		},
		onShow() {
			uni.setNavigationBarTitle({
			    title: this.$t('policy.title')
			});
			
			let self = this
			uni.getStorage({
			    key: 'lang',
			    success: function (res) {
					if (res.data && res.data === 'en') {
						self.switchLang = 'en'
					} else {
						self.switchLang = 'zh'
					}
			    }
			});
		}
	}
</script>

<style lang="scss">

</style>
