diff --git a/components/userlist/index.vue b/components/userlist/index.vue index 082d86c..b482625 100644 --- a/components/userlist/index.vue +++ b/components/userlist/index.vue @@ -14,7 +14,7 @@ {{item.contacts}}{{item.phone}} {{item.grade_txt}} - 男 | 迪拜越野车 + {{item.sex_txt}} | 迪拜{{item.car_type_name}} {{item.describe}} - + {{$t('mine.kfphone')}} @@ -99,6 +99,9 @@ url: url }); }, + close() { + this.show = false + }, // 拨打电话 callPhone(phoneNumber) { this.show = false; @@ -230,12 +233,12 @@ top: 32%; } .son-img-bg { - width: 24px; - height: 24px; + width: 20px; + height: 20px; position: absolute; - top: 50%; + top: 45%; margin-top: -20rpx; - left: 12; + left: 12px; } span { margin-left: 68rpx; diff --git a/pages/login/index.vue b/pages/login/index.vue index c05787f..785c2f5 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -1,9 +1,11 @@ @@ -64,12 +68,57 @@ email: "1696136552@qq.com", password: "123456", pactChecked: false, + showlang: false, + columns: [ + [{ + label: '中文', + id: 'zh' + }, { + label: 'English', + id: 'en' + }, { + label: 'Russian', + id: 'ru' + }] + ], } }, onLoad() { }, methods: { + close(){ + this.showlang = false + }, + cancellang() { + this.showlang = false + }, + //语言切换事件 + confirmlang(e) { + this.$i18n.locale = e.value[0].id + this.showlang = false + this.list1 = [{ + name: this.$t('all'), + }, { + name: this.$t('followup'), + }, { + name: this.$t('deal') + }, { + name: this.$t('lost') + }]; + uni.setTabBarItem({ + index: 0, + text: this.$t('tabbar.home') + }) + uni.setTabBarItem({ + index: 1, + text: this.$t('tabbar.customer') + }) + uni.setTabBarItem({ + index: 2, + text: this.$t('tabbar.mine') + }) + }, pactChange() { this.pactChecked = !this.pactChecked }, @@ -141,6 +190,21 @@