}) | }) | ||||
const gotoNextStep = () => { | const gotoNextStep = () => { | ||||
uni.getSetting({ | |||||
uni.openBluetoothAdapter({ | |||||
success(res) { | success(res) { | ||||
console.log(res.authSetting) | |||||
if (res.authSetting['scope.bluetooth'] == true) { | |||||
uni.openBluetoothAdapter() | |||||
noticeUser(() => { | |||||
console.log("11111") | |||||
/* 判断是否打开蓝牙 */ | |||||
uni.getBluetoothAdapterState({ | |||||
success(res) { | |||||
console.log("2222", res) | |||||
//如果res.avaliable==false 说明没打开蓝牙 反之则打开 | |||||
if (res.available == false) { | |||||
uni.showToast({ | |||||
title: '请打开手机蓝牙', | |||||
icon: "error", | |||||
duration: 2000 | |||||
}) | |||||
return | |||||
} else { | |||||
navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`) | |||||
} | |||||
noticeUser(() => { | |||||
console.log("11111") | |||||
/* 判断是否打开蓝牙 */ | |||||
uni.getBluetoothAdapterState({ | |||||
success(res) { | |||||
console.log("2222", res) | |||||
//如果res.avaliable==false 说明没打开蓝牙 反之则打开 | |||||
if (res.available == false) { | |||||
uni.showToast({ | |||||
title: '请打开手机蓝牙', | |||||
icon: "error", | |||||
duration: 2000 | |||||
}) | |||||
return | |||||
} else { | |||||
navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`) | |||||
} | } | ||||
}) | |||||
}); | |||||
}else{ | |||||
uni.showModal({ | |||||
title: '提示', | |||||
content: '请打开蓝牙权限', | |||||
success: function (res) { | |||||
if (res.confirm) { | |||||
uni.openSetting({ | |||||
success(res) { | |||||
console.log("2222") | |||||
console.log(res.authSetting) | |||||
} | |||||
}); | |||||
} else if (res.cancel) { | |||||
console.log('用户点击取消'); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
}) | |||||
}); | |||||
}, | |||||
fail(err){ | |||||
uni.showModal({ | |||||
title: '提示', | |||||
content: '请打开蓝牙权限', | |||||
success: function (res) { | |||||
if (res.confirm) { | |||||
uni.openSetting({ | |||||
success(res) { | |||||
console.log("2222") | |||||
console.log(res.authSetting) | |||||
} | |||||
}); | |||||
} else if (res.cancel) { | |||||
console.log('用户点击取消'); | |||||
} | |||||
} | |||||
}); | |||||
} | } | ||||
}) | }) | ||||
} | } | ||||
</script> | </script> | ||||
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户名称: </view> | <view> 用户名称: </view> | ||||
<text>{{ orderInfos.ownerName }}</text> | |||||
<text>{{ orderInfos.customerName }}</text> | |||||
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户证件类型: </view> | <view> 用户证件类型: </view> | ||||
}) | }) | ||||
const orderInfos = reactive({ | const orderInfos = reactive({ | ||||
orderId: "", | orderId: "", | ||||
ownerName: "", | |||||
customerName: "", | |||||
ownerIdtype: "", | ownerIdtype: "", | ||||
ownerIdnum: "", | ownerIdnum: "", | ||||
vehiclePlate: "", | vehiclePlate: "", | ||||
let orderInfo = JSON.parse(res.bizContent); | let orderInfo = JSON.parse(res.bizContent); | ||||
console.log("获取订单详情", orderInfo); | console.log("获取订单详情", orderInfo); | ||||
orderInfos.orderId = orderInfo.orderId; | orderInfos.orderId = orderInfo.orderId; | ||||
orderInfos.ownerName = orderInfo.ownerName; | |||||
orderInfos.customerName = orderInfo.customerName; | |||||
orderInfos.ownerIdtype = orderInfo.ownerIdtype; | orderInfos.ownerIdtype = orderInfo.ownerIdtype; | ||||
orderInfos.ownerIdnum = desensitization(orderInfo.ownerIdnum); | orderInfos.ownerIdnum = desensitization(orderInfo.ownerIdnum); | ||||
orderInfos.vehiclePlate = orderInfo.vehiclePlate; | orderInfos.vehiclePlate = orderInfo.vehiclePlate; |
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户名称: </view> | <view> 用户名称: </view> | ||||
<text>{{ orderInfos.ownerName }}</text> | |||||
<text>{{ orderInfos.customerName }}</text> | |||||
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户证件类型: </view> | <view> 用户证件类型: </view> | ||||
}) | }) | ||||
const orderInfos = reactive({ | const orderInfos = reactive({ | ||||
orderId: "", | orderId: "", | ||||
ownerName: "", | |||||
customerName: "", | |||||
ownerIdtype: "", | ownerIdtype: "", | ||||
ownerIdnum: "", | ownerIdnum: "", | ||||
vehiclePlate: "", | vehiclePlate: "", | ||||
let orderInfo = JSON.parse(res.bizContent); | let orderInfo = JSON.parse(res.bizContent); | ||||
console.log(orderInfo); | console.log(orderInfo); | ||||
orderInfos.orderId = orderInfo.orderId; | orderInfos.orderId = orderInfo.orderId; | ||||
orderInfos.ownerName = orderInfo.ownerName; | |||||
orderInfos.customerName = orderInfo.customerName; | |||||
orderInfos.ownerIdtype = orderInfo.ownerIdtype; | orderInfos.ownerIdtype = orderInfo.ownerIdtype; | ||||
orderInfos.ownerIdnum = desensitization(orderInfo.ownerIdnum); | orderInfos.ownerIdnum = desensitization(orderInfo.ownerIdnum); | ||||
orderInfos.vehiclePlate = orderInfo.vehiclePlate; | orderInfos.vehiclePlate = orderInfo.vehiclePlate; |
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户名称: </view> | <view> 用户名称: </view> | ||||
<text>{{ orderInfos.ownerName }}</text> | |||||
<text>{{ orderInfos.customerName }}</text> | |||||
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户证件类型: </view> | <view> 用户证件类型: </view> | ||||
}) | }) | ||||
const orderInfos = reactive({ | const orderInfos = reactive({ | ||||
orderId: "", | orderId: "", | ||||
ownerName: "", | |||||
customerName: "", | |||||
ownerIdtype: "", | ownerIdtype: "", | ||||
ownerIdnum: "", | ownerIdnum: "", | ||||
vehiclePlate: "", | vehiclePlate: "", | ||||
let orderInfo = JSON.parse(res.bizContent); | let orderInfo = JSON.parse(res.bizContent); | ||||
console.log("orderInfo", orderInfo); | console.log("orderInfo", orderInfo); | ||||
orderInfos.orderId = orderInfo.orderId; | orderInfos.orderId = orderInfo.orderId; | ||||
orderInfos.ownerName = orderInfo.ownerName; | |||||
orderInfos.customerName = orderInfo.customerName; | |||||
orderInfos.ownerIdtype = orderInfo.ownerIdtype; | orderInfos.ownerIdtype = orderInfo.ownerIdtype; | ||||
orderInfos.ownerIdnum = desensitization(orderInfo.ownerIdnum); | orderInfos.ownerIdnum = desensitization(orderInfo.ownerIdnum); | ||||
orderInfos.vehiclePlate = orderInfo.vehiclePlate; | orderInfos.vehiclePlate = orderInfo.vehiclePlate; |
import popupBottom from "./components/popup-bottom.vue"; | import popupBottom from "./components/popup-bottom.vue"; | ||||
import { msg, getOrderTypeName, getCarTypeName, getOrderStatusName, getOrderTime } from "@/utils/utils"; | import { msg, getOrderTypeName, getCarTypeName, getOrderStatusName, getOrderTime } from "@/utils/utils"; | ||||
import { onLoad } from "@dcloudio/uni-app"; | import { onLoad } from "@dcloudio/uni-app"; | ||||
import {getCodeName} from "@/datas/queryKey.js"; | |||||
const state = reactive({ | const state = reactive({ | ||||
orderInfo: "", | orderInfo: "", | ||||
//是否显示更多订单信息 | //是否显示更多订单信息 | ||||
state.orderShowInfo[6].value = getOrderTime(state.orderInfo['insertTime']) | state.orderShowInfo[6].value = getOrderTime(state.orderInfo['insertTime']) | ||||
state.orderShowInfo[7].value = state.orderInfo['trackingNumber'] | state.orderShowInfo[7].value = state.orderInfo['trackingNumber'] | ||||
state.orderShowInfo[8].value = state.orderInfo['courierCompany'] | |||||
state.orderShowInfo[8].value = getCodeName('快递物流公司',state.orderInfo.courierCompany) | |||||
}) | }) | ||||
</script> | </script> | ||||