123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view>
- <view v-if="switchLang == 'en'">
- <u-image src="../../static/pdf/xy.png" width="750rpx" mode="widthFix"></u-image>
- </view>
- <view v-else>
- <u-image src="../../static/pdf/xy.png" width="750rpx" mode="widthFix"></u-image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- switchLang: true
- }
- },
- onShow() {
- uni.setNavigationBarTitle({
- title: this.$t('agreement.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>
|