|
|
@@ -35,8 +35,8 @@
|
|
|
<!-- 送车到站显示信息结束 -->
|
|
|
<!-- 上门取车显示信息开始 -->
|
|
|
<view class="car_data" v-if="form.checkType == 0">
|
|
|
- <view class="car_id user_name">
|
|
|
- <span>用户姓名:{{form.contactsName}}</span>
|
|
|
+ <view class="car_id user_name" >
|
|
|
+ <span style="display: block;padding: 0px;">用户姓名:{{form.contactsName}}</span>
|
|
|
<span class="call">
|
|
|
<image src="/static/order/call.png" mode=""></image> 联系客户
|
|
|
</span>
|
|
|
@@ -44,7 +44,7 @@
|
|
|
<view class="car_address">
|
|
|
<view class="address">
|
|
|
送/取车地址:{{form.carAddress}}
|
|
|
- <image src="/static/order/address.png" mode=""></image>
|
|
|
+ <image src="/static/order/address.png" mode="" @click="navigation"></image>
|
|
|
</view>
|
|
|
<view class="car_license">
|
|
|
车牌号:{{form.licenseNo}}
|
|
|
@@ -118,13 +118,13 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view class="item_child">
|
|
|
- <span>车辆信息:</span>
|
|
|
+ <view class="item_child" v-if="form.checkType<20">
|
|
|
+ <span>车辆类型:</span>
|
|
|
<view class="center">
|
|
|
{{form.carType?form.carType:'小型轿车'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item_child">
|
|
|
+ <view class="item_child" v-if="form.checkType<20">
|
|
|
<span>品牌型号:</span>
|
|
|
<view class="center">
|
|
|
{{form.brandModel}}
|
|
|
@@ -204,7 +204,7 @@
|
|
|
{{form.orderTime}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item_child">
|
|
|
+ <view class="item_child" v-if="form.payTime">
|
|
|
<span>付款时间:</span>
|
|
|
<view class="center">
|
|
|
{{form.payTime}}
|
|
|
@@ -227,7 +227,7 @@
|
|
|
{{item.date}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item_child">
|
|
|
+ <view class="item_child" v-if="item.payTime">
|
|
|
<span>付款时间:</span>
|
|
|
<view class="center">
|
|
|
{{item.payTime}}
|
|
|
@@ -528,25 +528,21 @@
|
|
|
this.getDeatil()
|
|
|
},
|
|
|
//商户去取车
|
|
|
- goGetCar(item) {
|
|
|
- console.log(item)
|
|
|
+ goGetCar() {
|
|
|
let data = {
|
|
|
taskId: this.form.taskId,
|
|
|
checkType: this.form.checkType,
|
|
|
paramState: '05', //商户接单成功
|
|
|
serveType: '01'
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
let that = this
|
|
|
- // uni.navigateTo({
|
|
|
- // url: (window.location.href = `https://uri.amap.com/navigation?to=${item.userLongitude},${item.userLatitude},${item.carAddress}&mode=car&policy=1&src=https://gawl.gazhcs.com/wap/index.html&callnative=0`)
|
|
|
- // })
|
|
|
-
|
|
|
+ console.log(this.form)
|
|
|
uni.openLocation({
|
|
|
- longitude: Number(item.userLongitude),
|
|
|
- latitude: Number(item.userLatitude),
|
|
|
- name: item.carAddres, // 位置名称
|
|
|
+ // longitude: Number(this.form.userLongitude),
|
|
|
+ // latitude: Number(this.form.userLatitude),
|
|
|
+ longitude: Number(this.form.userLongitude),
|
|
|
+ latitude: Number(this.form.userLatitude),
|
|
|
+ name: this.form.carAddres, // 位置名称
|
|
|
// address: e.F_Address, // 位置地点
|
|
|
success: function(res) {
|
|
|
console.log('打开系统位置地图成功')
|
|
|
@@ -563,6 +559,34 @@
|
|
|
},
|
|
|
})
|
|
|
},
|
|
|
+ //导航
|
|
|
+ navigation(){
|
|
|
+ console.log(this.form)
|
|
|
+ // uni.openLocation({
|
|
|
+ // longitude: Number(this.form.userLongitude),
|
|
|
+ // latitude: Number(this.form.userLatitude),
|
|
|
+ // name: this.form.carAddres, // 位置名称
|
|
|
+ // // address: e.F_Address, // 位置地点
|
|
|
+ // success: function(res) {
|
|
|
+ // console.log('打开系统位置地图成功')
|
|
|
+ // },
|
|
|
+ // fail: function(error) {
|
|
|
+ // console.log(error)
|
|
|
+ // },
|
|
|
+ // })
|
|
|
+ uni.openLocation({
|
|
|
+ longitude: Number(this.form.userLongitude),
|
|
|
+ latitude: Number(this.form.userLatitude),
|
|
|
+ name: this.form.carAddress, // 位置名称
|
|
|
+ // address: e.F_Address, // 位置地点
|
|
|
+ success: function(res) {
|
|
|
+ console.log('打开系统位置地图成功')
|
|
|
+ },
|
|
|
+ fail: function(error) {
|
|
|
+ console.log(error)
|
|
|
+ },
|
|
|
+ })
|
|
|
+ },
|
|
|
goAlso() {
|
|
|
let data = {
|
|
|
taskId: this.form.taskId,
|