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
f7ae8564
Commit
f7ae8564
authored
May 31, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页补充
parent
cf273f90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
29 deletions
+13
-29
detail.vue
src/components/order/detail.vue
+11
-5
detail.vue
src/pages/order/detail.vue
+2
-24
No files found.
src/components/order/detail.vue
View file @
f7ae8564
...
...
@@ -70,10 +70,16 @@
default
()
{
return
{}
}
},
},
// true 显示「查看更多」按钮, false 显示「点击收起」按钮
readMore
:
{
type
:
Boolean
,
default
:
true
},
// 可以点击电话和地址
operate
:
{
type
:
Boolean
,
default
:
true
}
},
data
()
{
...
...
@@ -94,7 +100,7 @@
},
phoneIcon
()
{
//self-support/icon/dianhua-0@2x.png
if
(
this
.
isAllowDianhuaAndDaohang
)
{
if
(
this
.
operate
)
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua.png'
}
else
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua-d.png'
...
...
@@ -102,7 +108,7 @@
},
navigationIcon
()
{
//self-support/icon/daohang-0@2x.png
if
(
this
.
isAllowDianhuaAndDaohang
)
{
if
(
this
.
operate
)
{
return
process
.
uniEnv
.
qn_base_url
+
'daohang.png'
}
else
{
return
process
.
uniEnv
.
qn_base_url
+
'daohang-d.png'
...
...
@@ -111,7 +117,7 @@
},
methods
:
{
openLocation
(
address
)
{
if
(
this
.
isAllowDianhuaAndDaohang
)
{
if
(
this
.
operate
)
{
const
latitude
=
this
.
order
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
order
.
contactAddressLongitud
//res.longitude;
uni
.
openLocation
({
...
...
@@ -124,7 +130,7 @@
}
},
phoneToCustomer
(
phone
)
{
// 联系客户
if
(
this
.
isAllowDianhuaAndDaohang
)
{
if
(
this
.
operate
)
{
uni
.
makePhoneCall
({
phoneNumber
:
phone
,
//仅为示例
complete
()
{}
...
...
src/pages/order/detail.vue
View file @
f7ae8564
...
...
@@ -7,7 +7,7 @@
</view>
<view
class=
"content"
>
<view
class=
"card base-item"
>
<Detail
:order=
"order"
:readMore
.
sync=
"readMore"
></Detail>
<Detail
:order=
"order"
:readMore
.
sync=
"readMore"
:operate=
"isAllowDianhuaAndDaohang"
></Detail>
</view>
<!-- 从我的页面进来显示计算信息 -->
<view
v-if=
"isFromMine"
class=
"settlement-view"
>
...
...
@@ -475,7 +475,7 @@
this
.
allowFeedback
=
true
this
.
showCenterBtn
=
true
this
.
scenePhoto
=
true
this
.
readMore
=
tru
e
this
.
readMore
=
fals
e
this
.
isAllowDianhuaAndDaohang
=
true
}
else
{
this
.
isAllowDianhuaAndDaohang
=
true
...
...
@@ -878,28 +878,6 @@
}
}
// 页面公用css
.order-cell
{
font-size
:
26rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
48rpx
;
margin-bottom
:
10rpx
;
}
.between-cell
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.display-cell
{
display
:
flex
;
}
.cell-title
{
text-align
:
left
;
flex-shrink
:
0
;
}
.settlement-view
{
padding
:
30rpx
;
background-color
:
#FFFFFF
;
...
...
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