File tree Expand file tree Collapse file tree 4 files changed +35
-29
lines changed Expand file tree Collapse file tree 4 files changed +35
-29
lines changed Original file line number Diff line number Diff line change 4
4
<image class =" logo" src =" https://cdn.uviewui.com/uview/common/logo.png" mode =" widthFix" ></image >
5
5
<view class =" nav-info" >
6
6
<view class =" nav-title__text" >
7
- {{$t('common.title')}}
7
+ <!-- {{$t('common.title')}} -->
8
+ {{title}}
8
9
</view >
9
10
<view class =" nav-slogan" >
10
- {{$t('common.intro')}}
11
+ <!-- {{$t('common.intro')}} -->
12
+ {{desc}}
11
13
</view >
12
14
</view >
13
15
</view >
14
16
<view class =" nav-desc" >
15
17
{{desc}}
16
18
</view >
17
- <view class =" lang" @tap =" switchLang" >
19
+ <!-- < view class="lang" @tap="switchLang">
18
20
<u-icon size="46" color="warning" :name="lang"></u-icon>
19
- </view >
21
+ </view> -->
20
22
</view >
21
23
</template >
22
24
27
29
title: String ,
28
30
},
29
31
computed: {
30
- lang () {
31
- return this .$i18n .locale == ' zh' ? ' zh' : ' en' ;
32
- }
32
+ // lang() {
33
+ // return this.$i18n.locale == 'zh' ? 'zh' : 'en';
34
+ // }
33
35
},
34
36
methods: {
35
- switchLang () {
36
- this .$i18n .locale = this .$i18n .locale == ' en' ? ' zh' : ' en' ;
37
- this .vuex_tabbar [0 ].text = this .$t (' nav.components' )
38
- this .vuex_tabbar [1 ].text = this .$t (' nav.js' )
39
- this .vuex_tabbar [2 ].text = this .$t (' nav.template' )
40
- uni .setNavigationBarTitle ({
41
- title: this .$t (this .title )
42
- });
43
- }
37
+ // switchLang() {
38
+ // this.$i18n.locale = this.$i18n.locale == 'en' ? 'zh' : 'en';
39
+ // this.vuex_tabbar[0].text = this.$t('nav.components')
40
+ // this.vuex_tabbar[1].text = this.$t('nav.js')
41
+ // this.vuex_tabbar[2].text = this.$t('nav.template')
42
+ // uni.setNavigationBarTitle({
43
+ // title: this.$t(this.title)
44
+ // });
45
+ // }
44
46
}
45
47
}
46
48
</script >
Original file line number Diff line number Diff line change 20
20
data() {
21
21
return {
22
22
list: list,
23
- // desc: '众多组件覆盖开发过程的各个需求,组件功能丰富,多端兼容。让你快速集成,开箱即用。',
23
+ desc: '众多组件覆盖开发过程的各个需求,组件功能丰富,多端兼容。让你快速集成,开箱即用。',
24
24
}
25
25
},
26
26
computed: {
29
29
return 'https://cdn.uviewui.com/uview/example/' + path + '.png';
30
30
}
31
31
},
32
- desc() {
33
- return this.$t('components.desc');
34
- }
32
+ // desc() {
33
+ // return this.$t('components.desc');
34
+ // }
35
35
},
36
36
onShow() {
37
- uni.setNavigationBarTitle({
38
- title: this.$t('nav.components')
39
- });
37
+ // uni.setNavigationBarTitle({
38
+ // title: this.$t('nav.components')
39
+ // });
40
40
},
41
41
created() {
42
-
42
+ //console.log(this.abc);
43
43
},
44
44
methods: {
45
45
openPage(path) {
46
- this.$u.route({
46
+ this.$u.route({
47
47
url: path
48
48
})
49
49
},
50
50
getGroupTitle(item) {
51
- return this.$i18n.locale == 'zh' ? item.groupName : item.groupName_en
51
+ // return this.$i18n.locale == 'zh' ? item.groupName : item.groupName_en
52
+ return item.groupName;
52
53
},
53
54
getFieldTitle(item) {
54
- return this.$i18n.locale == 'zh' ? item.title : item.title_en
55
+ // return this.$i18n.locale == 'zh' ? item.title : item.title_en
56
+ return item.title;
55
57
}
56
58
}
57
59
}
Original file line number Diff line number Diff line change 141
141
@import " ../../libs/css/style.components.scss" ;
142
142
143
143
.u-badge {
144
+ /* #ifndef APP-NVUE */
144
145
display : inline-flex ;
146
+ /* #endif */
145
147
justify-content : center ;
146
148
align-items : center ;
147
149
line-height : 24 rpx;
207
209
// }
208
210
209
211
.u-info {
210
- background : $u-type-info ;
212
+ background-color : $u-type-info ;
211
213
color : #fff ;
212
214
}
213
215
</style >
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ const $u = {
113
113
}
114
114
115
115
const install = Vue => {
116
- Vue . mixin ( mixin )
116
+ Vue . mixin ( mixin )
117
117
if ( Vue . prototype . openShare ) {
118
118
Vue . mixin ( mpShare ) ;
119
119
}
You can’t perform that action at this time.
0 commit comments