Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-customer-new-master
Commits
8127a461
Commit
8127a461
authored
Dec 04, 2024
by
Smile
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户端设置、创建订单部分样式多语言适配
parent
60eb92cd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
16 deletions
+31
-16
address_add.vue
src/pages/address_add/address_add.vue
+18
-8
changeTel.vue
src/pages/changeTel/changeTel.vue
+2
-2
cityListPicker.vue
src/pages/my_info/cityListPicker.vue
+5
-2
site.vue
src/pages/site/site.vue
+1
-0
telcode.vue
src/pages/telcode/telcode.vue
+3
-2
create_order.css
src/static/css/create_order.css
+1
-1
index.css
src/static/css/index.css
+1
-1
No files found.
src/pages/address_add/address_add.vue
View file @
8127a461
...
...
@@ -2,8 +2,8 @@
<view>
<dHeader
:title=
"$lang.lang.addressInfo.addInfo"
></dHeader>
<view
class=
"container"
>
<uni-forms
ref=
"form"
:model=
"form"
:label-width=
"80"
:rules=
"rules"
>
<uni-forms-item
<uni-forms
ref=
"form"
:model=
"form"
:rules=
"rules"
>
<uni-forms-item
class=
"custom-label-width"
:label=
"$lang.lang.addressInfo.consignee"
required
name=
"name"
...
...
@@ -121,8 +121,22 @@ export default {
created
()
{
this
.
getCountry
();
},
mounted
()
{
this
.
updateLabels
();
},
methods
:
{
updateLabels
()
{
this
.
$nextTick
(()
=>
{
const
labels
=
this
.
$el
.
querySelectorAll
(
'
.uni-forms-item__label
'
);
labels
.
forEach
(
label
=>
{
// 移除 width 样式
label
.
style
.
removeProperty
(
'
width
'
);
// 设置 min-width 样式
label
.
style
.
minWidth
=
'
70px
'
;
});
console
.
log
(
labels
);
});
},
saveAddress
()
{
this
.
$refs
.
form
.
validate
().
then
(
async
(
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -162,12 +176,8 @@ export default {
});
if
(
i
>=
0
)
this
.
areaIndex
=
i
;
data
.
forEach
((
item
)
=>
{
const
str
=
item
.
tel
+
"
"
+
item
.
nameZh
;
if
(
this
.
$lang
.
locale
==
"
zh
"
)
{
this
.
areaName
.
push
(
str
);
}
else
{
const
str
=
item
.
tel
+
"
"
+
item
[
this
.
$lang
.
name
];
this
.
areaName
.
push
(
str
);
}
});
}
}
catch
(
error
)
{}
...
...
src/pages/changeTel/changeTel.vue
View file @
8127a461
...
...
@@ -106,7 +106,7 @@
if
(
res
.
code
==
0
&&
res
.
data
.
length
>
0
){
for
(
let
i
in
res
.
data
){
that
.
areaData
.
push
(
res
.
data
[
i
].
tel
)
that
.
areaName
.
push
(
'
+
'
+
res
.
data
[
i
].
tel
+
'
'
+
res
.
data
[
i
][
th
is
.
$lang
.
name
])
that
.
areaName
.
push
(
'
+
'
+
res
.
data
[
i
].
tel
+
'
'
+
res
.
data
[
i
][
th
at
.
$lang
.
name
])
}
}
})
...
...
@@ -287,7 +287,7 @@ page{
padding
:
0
10
upx
;
margin-right
:
20
upx
;
font-size
:
var
(
--f26
);
width
:
20
%
;
min-width
:
21
%
;
}
.login-phone
.login-area
text
{
margin-right
:
10
upx
;
...
...
src/pages/my_info/cityListPicker.vue
View file @
8127a461
...
...
@@ -6,7 +6,7 @@
<view
@
click=
"hiddeDatePicker"
class=
"pickerCancel"
>
{{
$lang
.
lang
.
myInfo
.
cancel
}}
</view>
<!-- 输入框 -->
<input
style=
"width: 70%
"
class=
"pickerInput
"
:placeholder=
"$lang.lang.myInfo.placeholder"
:show-action=
"false"
v-model=
"searchValue"
...
...
@@ -175,7 +175,10 @@ export default {
text-decoration
:
none
;
padding
:
0rpx
8rpx
;
}
.pickerInput
{
width
:
60%
;
text-align
:
center
;
}
.pickerConfirm
{
font-size
:
30rpx
;
color
:
#2979ff
;
...
...
src/pages/site/site.vue
View file @
8127a461
...
...
@@ -418,6 +418,7 @@ export default {
const
data
=
this
.
languages
[
e
.
detail
.
value
].
value
;
this
.
locale
=
data
uni
.
setStorageSync
(
'
locale
'
,
data
)
uni
.
setLocale
(
data
);
this
.
$lang
.
setLang
(
data
)
this
.
getIdcard
()
;(
this
.
companyNotice
=
this
.
$lang
.
lang
.
site
.
unauth
),
...
...
src/pages/telcode/telcode.vue
View file @
8127a461
...
...
@@ -249,15 +249,16 @@ page{
.login-phone
.login-area
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
left
;
font-size
:
var
(
--f30
);
/* background-color: #27417C; */
border-radius
:
60
upx
;
height
:
50
upx
;
margin-top
:
24
upx
;
padding
:
0
10
upx
;
//
padding
:
0
10
upx
;
margin-right
:
20
upx
;
font-size
:
var
(
--f26
);
min-width
:
12%
;
}
.login-phone
.login-area
text
{
margin-right
:
10
upx
;
...
...
src/static/css/create_order.css
View file @
8127a461
...
...
@@ -403,7 +403,7 @@ textarea{
width
:
48
upx
;
}
.corder-checkbox
label
{
width
:
45
%
;
width
:
100
%
;
display
:
flex
;
align-items
:
center
;
font-size
:
12px
;
...
...
src/static/css/index.css
View file @
8127a461
...
...
@@ -440,7 +440,7 @@ page{
position
:
absolute
;
top
:
4
upx
;
right
:
44
upx
;
width
:
18
upx
!important
;
width
:
20
upx
!important
;
height
:
18
upx
!important
;
border-radius
:
50%
;
background-color
:
#FF0000
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment