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
143c9416
Commit
143c9416
authored
May 31, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://git.banshouhui.com/lijundan/self-support
into dev
parents
7c393795
cf273f90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
486 additions
and
344 deletions
+486
-344
detail.vue
src/components/order/detail.vue
+274
-0
performanceRecord.vue
src/components/order/performanceRecord.vue
+203
-0
detail.vue
src/pages/order/detail.vue
+9
-344
No files found.
src/components/order/detail.vue
0 → 100644
View file @
143c9416
<
template
>
<view
class=
"card base-item"
>
<view
class=
"top-item"
>
<view
class=
"left"
>
<view
:class=
"['tag',
{'active': order.orderServiceType == '安装'}]">
{{
order
.
orderServiceType
}}
</view>
<text
class=
"title"
>
{{
order
.
categoryName
}}
</text>
</view>
<view
class=
"right"
>
{{
order
.
orderBusinessTypeText
}}
</view>
</view>
<view
class=
"order-cell"
>
<text>
工单编号:
</text>
<text>
{{
order
.
orderNumber
}}
</text>
</view>
<view
class=
"order-cell"
>
<text>
合作厂商:
</text>
<text>
{{
order
.
partnerCompanyName
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<view
class=
"left"
>
<text>
客户信息:
</text>
<text>
{{
order
.
contactName
}}
</text>
</view>
<image
style=
"width: 84rpx;height: 56rpx;"
:src=
"phoneIcon"
@
click=
"phoneToCustomer(order.contactPhone)"
>
</image>
</view>
<view
class=
"order-cell"
>
<text>
联系方式:
</text>
<text>
{{
order
.
contactPhone
}}
</text>
</view>
<view
class=
"between-cell address-cell"
>
<view
class=
"left-address"
>
<u-icon
name=
"map"
size=
"28"
></u-icon>
<text
class=
"address-txt"
>
{{
formatAddress
}}
</text>
</view>
<image
style=
"width: 84rpx;height: 56rpx;"
:src=
"navigationIcon"
@
click=
"openLocation(order.contactAddress)"
></image>
</view>
<view
v-if=
"readMore"
@
click=
"handleClick(false)"
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-down"
></u-icon>
<text
class=
"read-more-text"
>
查看更多
</text>
</view>
<view
v-else
class=
"order-item-more"
>
<view
class=
"line-view"
></view>
<view
class=
"order-cell between-cell"
>
<text
class=
"cell-title"
>
品牌:
</text>
<text>
{{
order
.
brandName
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<text
class=
"cell-title"
>
数量:
</text>
<text>
x
{{
order
.
orderProductCount
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<text
class=
"cell-title"
>
充电桩信息:
</text>
<text>
{{
order
.
serviceContent
}}
</text>
</view>
<view
class=
"read-more-toggle"
@
click=
"handleClick(true)"
>
<u-icon
name=
"arrow-up"
></u-icon>
<text
class=
"read-more-text"
>
点击收起
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
// 履约记录
order
:
{
type
:
Object
,
default
()
{
return
{}
}
},
readMore
:
{
type
:
Boolean
,
default
:
true
}
},
data
()
{
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
},
phoneIcon
()
{
//self-support/icon/dianhua-0@2x.png
if
(
this
.
isAllowDianhuaAndDaohang
)
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua.png'
}
else
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua-d.png'
}
},
navigationIcon
()
{
//self-support/icon/daohang-0@2x.png
if
(
this
.
isAllowDianhuaAndDaohang
)
{
return
process
.
uniEnv
.
qn_base_url
+
'daohang.png'
}
else
{
return
process
.
uniEnv
.
qn_base_url
+
'daohang-d.png'
}
},
},
methods
:
{
openLocation
(
address
)
{
if
(
this
.
isAllowDianhuaAndDaohang
)
{
const
latitude
=
this
.
order
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
order
.
contactAddressLongitud
//res.longitude;
uni
.
openLocation
({
latitude
:
Number
(
latitude
),
longitude
:
Number
(
longitude
),
success
:
function
()
{
console
.
log
(
'success'
);
}
});
}
},
phoneToCustomer
(
phone
)
{
// 联系客户
if
(
this
.
isAllowDianhuaAndDaohang
)
{
uni
.
makePhoneCall
({
phoneNumber
:
phone
,
//仅为示例
complete
()
{}
});
this
.
contactTime
()
}
},
contactTime
()
{
let
self
=
this
var
data
=
{}
if
(
this
.
submitType
===
"workerAppointment"
)
{
self
.
$u
.
api
.
contactTime
(
data
,
this
.
order
.
orderId
)
}
},
handleClick
(
val
)
{
this
.
$emit
(
'update:readMore'
,
val
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.base-item
{
padding-bottom
:
6rpx
;
background-color
:
#FFFFFF
;
margin-bottom
:
20rpx
;
padding
:
30rpx
30rpx
0
30rpx
;
border-radius
:
6px
;
.top-item
{
display
:
flex
;
justify-content
:
space-between
;
margin-bottom
:
30rpx
;
.left
{
display
:
flex
;
align-items
:
center
;
.tag
{
text-align
:
center
;
width
:
84rpx
;
height
:
40rpx
;
border-radius
:
8rpx
;
font-size
:
22rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
line-height
:
40rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
&
.active
{
background-image
:
linear-gradient
(
to
right
,
#2272FF
,
#47ABFF
);
}
}
.title
{
margin-left
:
20rpx
;
height
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
36rpx
;
}
}
.right
{
text-align
:
center
;
width
:
100rpx
;
height
:
40rpx
;
background
:
#F4F5F7
;
border-radius
:
22rpx
;
font-size
:
22rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
40rpx
;
}
}
.address-cell
{
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
24rpx
;
margin-top
:
20rpx
;
margin-bottom
:
40rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.left-address
{
display
:
flex
;
align-items
:
flex-start
;
.address-txt
{
line-height
:
30rpx
;
margin-left
:
8rpx
;
margin-right
:
30rpx
;
}
}
}
}
.read-more-toggle
{
text-align
:
center
;
color
:
#2272FF
;
font-size
:
26rpx
;
margin-top
:
30rpx
;
padding-bottom
:
30rpx
;
}
.read-more-text
{
padding-left
:
8rpx
;
}
.order-item-more
{
font-size
:
26rpx
;
color
:
#333333
;
text-align
:
right
;
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin-bottom
:
20rpx
;
}
}
.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
;
}
</
style
>
src/components/order/performanceRecord.vue
0 → 100644
View file @
143c9416
<
template
>
<view
class=
"order-record-view"
>
<view
class=
"top-item"
>
<text>
履约记录
</text>
</view>
<view
v-if=
"orderRecords.length == 0"
class=
"no-record-view"
>
当前暂无履约记录
</view>
<view
v-else
class=
"record-list-view"
>
<view
class=
"record-right-view"
>
<view
class=
"dashed-line-view"
></view>
<view
class=
"order-list"
>
<view
v-for=
"(record,index) in shwoOrderRecords"
:key=
"record.operationContent"
:class=
"['order-cell',
{'first': index == 0}]">
<view
class=
"node-view"
>
<view
class=
"node-border-view"
>
<view
class=
"node-middle-view"
></view>
</view>
</view>
<view
class=
"right-view"
>
<view
class=
"line-view-top"
>
<text>
{{
$u
.
timeFormat
(
record
.
operationDatetime
,
'yyyy.mm.dd hh:MM:ss'
)
}}
</text>
<text
style=
"color: red;"
>
{{
record
.
overTime
?
'超时'
:
''
}}{{
record
.
exception
?
'异常'
:
''
}}
</text>
<text
style=
"color: #2272FF;"
v-show=
"record.operationType==='报备' || record.operationType==='改约'"
>
跟进
</text>
</view>
<view
class=
"line-view-item"
>
<view>
<text>
{{
record
.
operationTypeText
}}
</text>
</view>
<view
class=
"item-operation-view"
v-show=
"record.operationType==='报备' || record.operationType==='预约'|| record.operationType==='改约'"
>
<text>
{{
record
.
operationType
===
'报备'
?
'下次联系时间:'
:
record
.
operationType
===
'改约'
?
'改约时间:'
:
''
}}
</text>
<text
style=
"color: #2272FF;word-break: break-all;"
>
{{
record
.
orderRecordRemark
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"orderRecords && orderRecords.length > showLenght"
@
click=
"readMoreRecord = !readMoreRecord"
>
<view
v-if=
"readMoreRecord"
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-down"
></u-icon>
<text
class=
"read-more-text"
>
查看更多
</text>
</view>
<view
v-else
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-up"
></u-icon>
<text
class=
"read-more-text"
>
点击收起
</text>
</view>
</view>
<view
v-else
style=
"height: 10rpx;"
></view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
// 履约记录
orderRecords
:
{
type
:
Array
,
default
()
{
return
[]
}
},
},
data
()
{
return
{
readMoreRecord
:
true
,
showLenght
:
5
,
}
},
computed
:
{
shwoOrderRecords
()
{
if
(
this
.
readMoreRecord
&&
this
.
orderRecords
&&
this
.
orderRecords
.
length
>
0
)
{
return
this
.
orderRecords
.
slice
(
0
,
this
.
showLenght
)
}
else
{
return
this
.
orderRecords
}
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.order-record-view
{
.top-item
{
font-size
:
32rpx
;
color
:
#333333
;
font-weight
:
bold
;
margin-bottom
:
20rpx
;
}
.no-record-view
{
font-size
:
26rpx
;
color
:
#333333
;
margin-top
:
30rpx
;
margin-bottom
:
30rpx
;
}
.record-list-view
{
position
:
relative
;
.record-right-view
{
position
:
relative
;
display
:
flex
;
justify-content
:
space-between
;
.dashed-line-view
{
position
:
absolute
;
width
:
2rpx
;
border-left
:
1px
dashed
#2272FF
;
height
:
100%
;
top
:
14rpx
;
left
:
11rpx
;
}
.order-list
{
width
:
100%
;
.order-cell
{
margin-top
:
50rpx
;
display
:
flex
;
&
.first
{
margin-top
:
0
;
}
.node-view
{
margin-right
:
18rpx
;
flex-shrink
:
0
;
margin-top
:
8rpx
;
.node-border-view
{
border
:
2rpx
solid
#2272FF
;
border-radius
:
11rpx
;
width
:
22rpx
;
height
:
22rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.node-middle-view
{
width
:
10rpx
;
height
:
10rpx
;
background-color
:
#2272FF
;
border-radius
:
5rpx
;
}
}
}
.right-view
{
width
:
100%
;
.line-view-top
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
color
:
#333333
;
font-size
:
28rpx
;
}
.line-view-item
{
color
:
#666666
;
font-size
:
26rpx
;
margin-top
:
10rpx
;
.item-operation-view
{
margin-top
:
20rpx
;
}
}
}
}
}
}
}
.read-more-toggle
{
text-align
:
center
;
color
:
#2272FF
;
font-size
:
26rpx
;
margin-top
:
30rpx
;
padding-bottom
:
30rpx
;
}
.read-more-text
{
padding-left
:
8rpx
;
}
.order-item-more
{
font-size
:
26rpx
;
color
:
#333333
;
text-align
:
right
;
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin-bottom
:
20rpx
;
}
}
}
</
style
>
src/pages/order/detail.vue
View file @
143c9416
...
@@ -7,70 +7,7 @@
...
@@ -7,70 +7,7 @@
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"card base-item"
>
<view
class=
"card base-item"
>
<view
class=
"top-item"
>
<Detail
:order=
"order"
:readMore
.
sync=
"readMore"
></Detail>
<view
class=
"left"
>
<view
:class=
"['tag',
{'active': order.orderServiceType == '安装'}]">
{{
order
.
orderServiceType
}}
</view>
<text
class=
"title"
>
{{
order
.
categoryName
}}
</text>
</view>
<view
class=
"right"
>
{{
order
.
orderBusinessTypeText
}}
</view>
</view>
<view
class=
"order-cell"
>
<text>
工单编号:
</text>
<text>
{{
order
.
orderNumber
}}
</text>
</view>
<view
class=
"order-cell"
>
<text>
合作厂商:
</text>
<text>
{{
order
.
partnerCompanyName
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<view
class=
"left"
>
<text>
客户信息:
</text>
<text>
{{
order
.
contactName
}}
</text>
</view>
<image
style=
"width: 84rpx;height: 56rpx;"
:src=
"phoneIcon"
@
click=
"phoneToCustomer(order.contactPhone)"
></image>
</view>
<view
class=
"order-cell"
>
<text>
联系方式:
</text>
<text>
{{
order
.
contactPhone
}}
</text>
</view>
<view
class=
"between-cell address-cell"
>
<view
class=
"left-address"
>
<u-icon
name=
"map"
size=
"28"
></u-icon>
<text
class=
"address-txt"
>
{{
formatAddress
}}
</text>
</view>
<image
style=
"width: 84rpx;height: 56rpx;"
:src=
"navigationIcon"
@
click=
"openLocation(order.contactAddress)"
></image>
</view>
<!--
<u-read-more
ref=
"uReadMore"
:show-height=
"40"
:shadowStyle=
"
{paddingTop: '0rpx',marginTop: '0rpx'}" close-text="查看更多" open-text="点击收起" toggle color="#2272FF" font-size="26"> -->
<view
v-if=
"readMore"
@
click=
"readMore = false"
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-down"
></u-icon>
<text
class=
"read-more-text"
>
查看更多
</text>
</view>
<view
v-else
class=
"order-item-more"
>
<view
class=
"line-view"
></view>
<view
class=
"order-cell between-cell"
>
<text
class=
"cell-title"
>
品牌:
</text>
<text>
{{
order
.
brandName
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<text
class=
"cell-title"
>
数量:
</text>
<text>
x
{{
order
.
orderProductCount
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<text
class=
"cell-title"
>
充电桩信息:
</text>
<text>
{{
order
.
serviceContent
}}
</text>
</view>
<!--
<view
class=
"order-cell between-cell"
>
<!--
<view
class=
"order-cell between-cell"
>
<text>
备注:
</text>
<text>
{{
order
.
serviceContent
}}
</text>
</view>
-->
<view
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-up"
></u-icon>
<text
class=
"read-more-text"
@
click=
"readMore = true"
>
点击收起
</text>
</view>
</view>
<!--
</u-read-more>
-->
</view>
</view>
<!-- 从我的页面进来显示计算信息 -->
<!-- 从我的页面进来显示计算信息 -->
<view
v-if=
"isFromMine"
class=
"settlement-view"
>
<view
v-if=
"isFromMine"
class=
"settlement-view"
>
...
@@ -94,43 +31,8 @@
...
@@ -94,43 +31,8 @@
<view
class=
"card appoint-item"
v-show=
"showTimeSelect"
>
<view
class=
"card appoint-item"
v-show=
"showTimeSelect"
>
<appoint-time
:dateList=
"dateList"
:timeList=
"timeList"
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
<appoint-time
:dateList=
"dateList"
:timeList=
"timeList"
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
</view>
</view>
<view
class=
"card order-item record-item"
>
<view
class=
"card record-item"
>
<view
class=
"top-item"
>
<Record
:orderRecords=
"orderRecords"
></Record>
<text
class=
"title"
>
履约记录
</text>
</view>
<view
v-if=
"orderRecords.length == 0"
class=
"no-record-view"
>
当前暂无履约记录
</view>
<view
v-else
>
<view
class=
"record-line-view"
>
<view
class=
"order-cell display-cell"
v-for=
"(record,index) in shwoOrderRecords"
:key=
"record.operationContent"
>
<view
class=
"node-view"
></view>
<view
class=
"line-view-left"
>
<text>
{{
$u
.
timeFormat
(
record
.
operationDatetime
,
'yyyy.mm.dd
\
n hh:MM:ss'
)
}}
</text>
</view>
<view
class=
"line-view-right"
>
<view>
<text>
{{
record
.
operationTypeText
}}
</text>
<text
style=
"color: red;"
>
{{
record
.
overTime
?
'(超时)'
:
''
}}{{
record
.
exception
?
'(异常)'
:
''
}}
</text>
<text
style=
"color: #2272FF;"
v-show=
"record.operationType==='报备' || record.operationType==='改约'"
>
(跟进)
</text>
</view>
<view
v-show=
"record.operationType==='报备' || record.operationType==='预约'|| record.operationType==='改约'"
>
<text>
{{
record
.
operationType
===
'报备'
?
'下次联系时间:'
:
record
.
operationType
===
'改约'
?
'改约时间:'
:
''
}}
</text>
<text
style=
"color: #2272FF;word-break: break-all;"
>
{{
record
.
orderRecordRemark
}}
</text>
</view>
</view>
</view>
</view>
<view
v-if=
"orderRecords && orderRecords.length > showLenght"
>
<view
v-if=
"readMoreRecord"
@
click=
"readMoreRecord = false"
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-down"
></u-icon>
<text
class=
"read-more-text"
>
查看更多
</text>
</view>
<view
v-else
class=
"read-more-toggle"
>
<u-icon
name=
"arrow-up"
></u-icon>
<text
class=
"read-more-text"
@
click=
"readMoreRecord = true"
>
点击收起
</text>
</view>
</view>
<view
v-else
style=
"height: 10rpx;"
></view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -198,21 +100,22 @@
...
@@ -198,21 +100,22 @@
// import PopView from "@/components/popView/index.vue"
// import PopView from "@/components/popView/index.vue"
import
baseFile
from
'@/components/upload/index'
import
baseFile
from
'@/components/upload/index'
import
Customer
from
"@/components/mine/customer.vue"
import
Customer
from
"@/components/mine/customer.vue"
import
Record
from
"@/components/order/performanceRecord.vue"
import
Detail
from
"@/components/order/detail.vue"
let
now
=
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
();
let
now
=
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
();
export
default
{
export
default
{
components
:
{
components
:
{
appointTime
,
appointTime
,
'take-photo'
:
takePhoto
,
'take-photo'
:
takePhoto
,
// PopView,
// PopView,
Customer
Customer
,
Record
,
Detail
},
},
mixins
:
[
baseFile
],
mixins
:
[
baseFile
],
data
()
{
data
()
{
return
{
return
{
readMore
:
true
,
readMore
:
true
,
readMoreRecord
:
true
,
showLenght
:
5
,
dateList
:
[
dateList
:
[
{
day
:
now
,
timeRange
:
[]},
{
day
:
now
,
timeRange
:
[]},
{
day
:
now
+
(
1
*
86400000
),
timeRange
:
[]},
{
day
:
now
+
(
1
*
86400000
),
timeRange
:
[]},
...
@@ -304,61 +207,13 @@
...
@@ -304,61 +207,13 @@
this
.
closeLocationChange
()
this
.
closeLocationChange
()
},
},
computed
:
{
computed
:
{
phoneIcon
()
{
//self-support/icon/dianhua-0@2x.png
if
(
this
.
isAllowDianhuaAndDaohang
){
return
process
.
uniEnv
.
qn_base_url
+
'dianhua.png'
}
else
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua-d.png'
}
},
navigationIcon
()
{
//self-support/icon/daohang-0@2x.png
if
(
this
.
isAllowDianhuaAndDaohang
){
return
process
.
uniEnv
.
qn_base_url
+
'daohang.png'
}
else
{
return
process
.
uniEnv
.
qn_base_url
+
'daohang-d.png'
}
},
centerButtonClass
()
{
centerButtonClass
()
{
let
btnClass
=
"appoint-btn"
let
btnClass
=
"appoint-btn"
return
btnClass
return
btnClass
},
},
shwoOrderRecords
()
{
if
(
this
.
readMoreRecord
&&
this
.
orderRecords
&&
this
.
orderRecords
.
length
>
0
)
{
return
this
.
orderRecords
.
slice
(
0
,
5
)
}
else
{
return
this
.
orderRecords
}
},
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
}
},
},
methods
:
{
methods
:
{
openLocation
(
address
){
if
(
this
.
isAllowDianhuaAndDaohang
){
const
latitude
=
this
.
order
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
order
.
contactAddressLongitud
//res.longitude;
uni
.
openLocation
({
latitude
:
Number
(
latitude
),
longitude
:
Number
(
longitude
),
success
:
function
()
{
console
.
log
(
'success'
);
}
});
}
},
updateLocation
(){
updateLocation
(){
let
self
=
this
let
self
=
this
wx
.
startLocationUpdate
({
wx
.
startLocationUpdate
({
...
@@ -391,23 +246,6 @@
...
@@ -391,23 +246,6 @@
console
.
log
(
"closeLocationChange"
)
console
.
log
(
"closeLocationChange"
)
wx
.
offLocationChange
(
this
.
_locationChangeFn
);
wx
.
offLocationChange
(
this
.
_locationChangeFn
);
},
},
phoneToCustomer
(
phone
){
// 联系客户
if
(
this
.
isAllowDianhuaAndDaohang
){
uni
.
makePhoneCall
({
phoneNumber
:
phone
,
//仅为示例
complete
()
{
}
});
this
.
contactTime
()
}
},
contactTime
()
{
let
self
=
this
var
data
=
{}
if
(
this
.
submitType
===
"workerAppointment"
){
self
.
$u
.
api
.
contactTime
(
data
,
this
.
order
.
orderId
)
}
},
handleClickRight
(
active
)
{
handleClickRight
(
active
)
{
this
.
scenePhoto
?
this
.
scenePhotoClick
()
:
this
.
take
()
this
.
scenePhoto
?
this
.
scenePhotoClick
()
:
this
.
take
()
},
},
...
@@ -940,179 +778,6 @@
...
@@ -940,179 +778,6 @@
border-radius
:
6px
;
border-radius
:
6px
;
}
}
.base-item
{
padding-bottom
:
6rpx
;
.top-item
{
display
:
flex
;
justify-content
:
space-between
;
margin-bottom
:
30rpx
;
.left
{
display
:
flex
;
align-items
:
center
;
.tag
{
text-align
:
center
;
width
:
84rpx
;
height
:
40rpx
;
border-radius
:
8rpx
;
font-size
:
22rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
line-height
:
40rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
&
.active
{
background-image
:
linear-gradient
(
to
right
,
#2272FF
,
#47ABFF
);
}
}
.title
{
margin-left
:
20rpx
;
height
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
36rpx
;
}
}
.right
{
text-align
:
center
;
width
:
100rpx
;
height
:
40rpx
;
background
:
#F4F5F7
;
border-radius
:
22rpx
;
font-size
:
22rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
40rpx
;
}
}
.address-cell
{
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
24rpx
;
margin-top
:
20rpx
;
margin-bottom
:
40rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.left-address
{
display
:
flex
;
align-items
:
flex-start
;
.address-txt
{
line-height
:
30rpx
;
margin-left
:
8rpx
;
margin-right
:
30rpx
;
}
}
}
}
.read-more-toggle
{
text-align
:
center
;
color
:
#2272FF
;
font-size
:
26rpx
;
margin-top
:
30rpx
;
padding-bottom
:
30rpx
;
}
.read-more-text
{
padding-left
:
8rpx
;
}
.order-item-more
{
font-size
:
26rpx
;
color
:
#333333
;
text-align
:
right
;
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin-bottom
:
20rpx
;
}
}
.order-item
{
padding-bottom
:
6rpx
;
.top-item
{
display
:
flex
;
justify-content
:
space-between
;
margin-bottom
:
20rpx
;
.title
{
height
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
36rpx
;
}
}
.no-record-view
{
font-size
:
26rpx
;
color
:
#333333
;
margin-top
:
30rpx
;
margin-bottom
:
30rpx
;
}
.record-line-view
{
padding-left
:
30rpx
;
position
:
relative
;
margin-left
:
6rpx
;
}
.line-view-left
{
width
:
170rpx
;
flex-shrink
:
0
;
}
.line-view-right
{
// text-align: right;
}
.
record-line-view
:
:
before
{
content
:
" "
;
position
:
absolute
;
left
:
0
;
top
:
20rpx
;
width
:
1px
;
bottom
:
20rpx
;
border-left
:
1px
dashed
#2272FF
;
transform-origin
:
0
0
;
transform
:
scaleX
(
0
.5
);
}
.node-view
{
margin-top
:
16rpx
;
position
:
absolute
;
left
:
-3px
;
background-color
:
#2272FF
;
border-radius
:
7rpx
;
width
:
14rpx
;
height
:
14rpx
;
z-index
:
1
;
}
// .address-cell {
// height: 24rpx;
// font-size: 24rpx;
// font-weight: 400;
// color: #333333;
// line-height: 24rpx;
// .left {
// .address-txt {
// margin-left: 8rpx;
// }
// }
// }
}
.record-item
{
.record-item
{
margin-bottom
:
0rpx
;
margin-bottom
:
0rpx
;
}
}
...
...
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