Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李俊赕
self-support
Commits
2260f492
Commit
2260f492
authored
Nov 02, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 工单地址兼容
parent
b597ac3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
14 deletions
+26
-14
detail.vue
src/components/order/detail.vue
+13
-13
index.vue
src/components/order/index.vue
+13
-1
No files found.
src/components/order/detail.vue
View file @
2260f492
...
...
@@ -43,7 +43,7 @@
<view
class=
"between-cell address-cell"
>
<view
class=
"left-address"
>
<u-icon
name=
"map"
size=
"28"
></u-icon>
<text
class=
"address-txt"
>
{{
order
.
customer
Address
||
''
}}
</text>
<text
class=
"address-txt"
>
{{
format
Address
||
''
}}
</text>
</view>
<image
v-if=
"showOperate"
...
...
@@ -109,18 +109,18 @@ export default {
return
{}
},
computed
:
{
//
formatAddress() {
// let self = this
// let address =
''
// if (self.order
) {
// address = self.
order.contactProvinceText || ''
// address += self.
order.contactCityText || ''
// address += self.
order.contactCommunityText || ''
// address += self.
order.contactStreetText || ''
// address += self.
order.contactAddress || ''
//
}
//
return address
//
},
formatAddress
()
{
let
order
=
this
.
order
let
address
=
order
.
customerAddress
||
''
if
(
address
===
''
)
{
address
=
order
.
contactProvinceText
||
''
address
+=
order
.
contactCityText
||
''
address
+=
order
.
contactCommunityText
||
''
address
+=
order
.
contactStreetText
||
''
address
+=
order
.
contactAddress
||
''
}
return
address
},
phoneIcon
()
{
//self-support/icon/dianhua-0@2x.png
if
(
this
.
operate
)
{
...
...
src/components/order/index.vue
View file @
2260f492
...
...
@@ -45,7 +45,7 @@
:src=
"dizhiImage"
mode=
"widthFix"
></image>
<text>
{{
orderData
.
customer
Address
||
''
}}
</text>
<text>
{{
format
Address
||
''
}}
</text>
</view>
<view
v-if=
"showDistance"
class=
"address-right-view"
>
{{
orderDistance
}}
km
...
...
@@ -163,6 +163,18 @@ export default {
}
},
computed
:
{
formatAddress
()
{
let
order
=
this
.
orderData
let
address
=
order
.
customerAddress
||
''
if
(
address
===
''
)
{
address
=
order
.
contactProvinceText
||
''
address
+=
order
.
contactCityText
||
''
address
+=
order
.
contactCommunityText
||
''
address
+=
order
.
contactStreetText
||
''
address
+=
order
.
contactAddress
||
''
}
return
address
},
orderText
()
{
// 按钮文字
return
this
.
typeTexts
[
this
.
orderType
]
...
...
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