diff --git a/components/chunLei-popups/chunLei-popups.vue b/components/chunLei-popups/chunLei-popups.vue new file mode 100644 index 0000000..bb8b15b --- /dev/null +++ b/components/chunLei-popups/chunLei-popups.vue @@ -0,0 +1,333 @@ + + + + + diff --git a/main.js b/main.js index c437ddf..ea38bc6 100644 --- a/main.js +++ b/main.js @@ -39,6 +39,7 @@ Vue.use(VueI18n); import ZH from './utils/locales/zh.js' import ZHF from './utils/locales/zh-F.js' import EN from './utils/locales/en.js' +import BY from './utils/locales/by.js' const i18n = new VueI18n({ locale: store.state.language, // 默认选择的语言 @@ -47,7 +48,8 @@ const i18n = new VueI18n({ messages: { 'zh-CN': ZH, 'zh-CNF': ZHF, - 'en': EN + 'en': EN, + 'by': BY } }) diff --git a/pages/menu/setting/lang/index.vue b/pages/menu/setting/lang/index.vue index b940961..ed6cb15 100644 --- a/pages/menu/setting/lang/index.vue +++ b/pages/menu/setting/lang/index.vue @@ -50,6 +50,11 @@ disabled: false, name: "c", }, + { + lang: this.$t('index').by, + disabled: false, + name: "D", + }, ], // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中 @@ -86,6 +91,11 @@ this.$store.commit('setLanguage', 'zh-CNF') uni.setStorageSync("language", 'zh-CNF') uni.setStorageSync('langTrue', '繁體中文') + }else if (this.langInfo.name == 'd'){ + this._i18n.locale = 'by' + this.$store.commit('setLanguage', 'by') + uni.setStorageSync("language", 'by') + uni.setStorageSync('langTrue', 'Русский') } uni.navigateBack(2) }, diff --git a/pages/register/index.css b/pages/register/index.css index ba53f32..b381094 100644 --- a/pages/register/index.css +++ b/pages/register/index.css @@ -4,10 +4,21 @@ margin-top: 20rpx; color: #2F80ED; } - +.renYou{ + width: 36rpx; + height: 20rpx; + position: absolute; + left: 30rpx; +} +.renYou2{ + width: 48rpx; + height: 48rpx; + position: absolute; + right: 30rpx; +} .main{ - margin-top: 120rpx; + margin-top: 80rpx; } .swiper-item .img1{ diff --git a/pages/register/index.vue b/pages/register/index.vue index 001f12a..8ab3df6 100644 --- a/pages/register/index.vue +++ b/pages/register/index.vue @@ -1,5 +1,18 @@