| | |
| | | <template> |
| | | <view class="uni-page-login-language"> |
| | | <view class="uni-page-login-language" :class="largeMode?'large-mode':''"> |
| | | <view class="uni-line" v-for="item in langList" :key='item.value' @click="clickLanguage(item.value)"><text |
| | | class="name">{{item.name }}</text> <uni-icons v-if="curLang==item.value " type="checkmarkempty" |
| | | :size="20"></uni-icons> </view> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | largeMode: getApp().globalData.largeMode || false, |
| | | langList: [{ |
| | | value: "zh-Hans", |
| | | name: "中文简体" |
| | |
| | | }, |
| | | }, |
| | | onLoad() { |
| | | |
| | | |
| | | this.curLang = uni.getLocale() |
| | | this.oldLang = this.curLang |
| | | }, |