添加俄语版本
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<template #top>
|
||||
<view class="top">
|
||||
<!-- <view class="navbar">{{$t('customer.title')}}</view> -->
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" @clickLeft="leftClick" color="#fff" backgroundColor="#3471ff" :statusBar="true" :title="$t('customer.title')"></uni-nav-bar>
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" @clickLeft="leftClick" color="#fff" backgroundColor="rgba(52,113,255,0)" :statusBar="true" :title="$t('customer.title')"></uni-nav-bar>
|
||||
|
||||
<view class="topSearch">
|
||||
<view class="left">
|
||||
@@ -19,7 +19,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabsbg">
|
||||
<u-tabs :list="list1" :current="current" lineColor="#fff" :scrollable="false" @click="tabclick" :inactiveStyle="{color: '#fff'}" :activeStyle="{color: '#fff',fontWeight: '500',transform: 'scale(1.05)'}"></u-tabs>
|
||||
<u-tabs :list="list1" :current="current" lineColor="#fff" :scrollable="isey" @click="tabclick" :inactiveStyle="{color: '#fff'}" :activeStyle="{color: '#fff',fontWeight: '500',transform: 'scale(1.05)'}"></u-tabs>
|
||||
</view>
|
||||
</template>
|
||||
<view class="list">
|
||||
@@ -95,6 +95,7 @@
|
||||
columns:[],
|
||||
list1: [],
|
||||
datalist:[],
|
||||
isey:false
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -111,6 +112,12 @@
|
||||
uni.removeStorageSync('location')
|
||||
},
|
||||
onShow() {
|
||||
// var location = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale()
|
||||
// if(location=='ru'){
|
||||
// this.isey=true
|
||||
// }else{
|
||||
// this.isey=false
|
||||
// }
|
||||
this.queryList(1, 10)
|
||||
this.options1=[{
|
||||
text: this.$t('delete'),
|
||||
@@ -286,6 +293,12 @@
|
||||
uni-page-body {
|
||||
background-color: #F6F6F6 !important;
|
||||
}
|
||||
::v-deep .u-search__content__input{
|
||||
font-size: 24rpx !important;
|
||||
}
|
||||
::v-deep .u-tabs__wrapper__nav__item__text{
|
||||
font-size: 28rpx !important;
|
||||
}
|
||||
.u-swipe-action-item {
|
||||
margin-bottom: 10px;
|
||||
border-radius: 10px;
|
||||
@@ -362,6 +375,7 @@
|
||||
border-radius: 20px 0px 0px 20px;
|
||||
padding: 3px 10px;
|
||||
margin-right: -15px;
|
||||
text-align: right;
|
||||
}
|
||||
.right{
|
||||
display: flex;
|
||||
@@ -380,7 +394,7 @@
|
||||
justify-content: space-between;
|
||||
color: #222222;
|
||||
.name{
|
||||
font-size: 32rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
}
|
||||
@@ -390,6 +404,7 @@
|
||||
}
|
||||
.ststus{
|
||||
color: #666666;
|
||||
text-align: right;
|
||||
}
|
||||
.info,.desc{
|
||||
color: #78758E;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<z-paging ref="paging" v-model="datalist" @query="queryList" :empty-view-text="$t('Nodata')">
|
||||
<template #top>
|
||||
<view class="top">
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" @clickLeft="leftClick" color="#fff" backgroundColor="#3471ff" :statusBar="true" :title="$t('navbar.highseas')"></uni-nav-bar>
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" @clickLeft="leftClick" color="#fff" backgroundColor="rgba(52,113,255,0)" :statusBar="true" :title="$t('navbar.highseas')"></uni-nav-bar>
|
||||
</view>
|
||||
</template>
|
||||
<view class="list">
|
||||
|
||||
+16
-3
@@ -120,7 +120,11 @@
|
||||
}, {
|
||||
label: this.$t('en'),
|
||||
id: 'en'
|
||||
}]
|
||||
},{
|
||||
label: this.$t('ru'),
|
||||
id: 'ru'
|
||||
}
|
||||
]
|
||||
],
|
||||
columnstime:[
|
||||
[{
|
||||
@@ -193,8 +197,9 @@
|
||||
var that = this
|
||||
uni.setLocale(e.value[0].id)
|
||||
this.$i18n.locale = e.value[0].id
|
||||
// uni.setStorageSync('i18locale', e.value[0].id);
|
||||
uni.setStorageSync('i18locale', e.value[0].id);
|
||||
this.showlang = false
|
||||
console.log(uni.getLocale())
|
||||
this.columns =[
|
||||
[{
|
||||
label: this.$t('zh'),
|
||||
@@ -202,7 +207,11 @@
|
||||
}, {
|
||||
label: this.$t('en'),
|
||||
id: 'en'
|
||||
}]
|
||||
},{
|
||||
label: this.$t('ru'),
|
||||
id: 'ru'
|
||||
}
|
||||
]
|
||||
];
|
||||
this.columnstime =[
|
||||
[{
|
||||
@@ -442,6 +451,10 @@
|
||||
.grid-text {
|
||||
color: #222222;
|
||||
font-size: 24rpx;
|
||||
white-space: nowrap;
|
||||
width: 95%;
|
||||
overflow-x: scroll;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user