小鹿骑行

This commit is contained in:
吴鹏 2025-06-07 13:47:14 +08:00
parent b465d27040
commit 2350478404
7 changed files with 562 additions and 456 deletions

View File

@ -1,7 +1,7 @@
const install = (Vue, vm) => { const install = (Vue, vm) => {
uni.setStorageSync('deptId', 100); uni.setStorageSync('deptId', 100);
Vue.prototype.$u.http.setConfig({ Vue.prototype.$u.http.setConfig({
// baseUrl: 'http://192.168.160.197:4101', //键辉本地 // baseUrl: 'http://192.168.2.89:4101', //键辉本地
// baseUrl: 'http://192.168.0.102:4101', //景森本地 // baseUrl: 'http://192.168.0.102:4101', //景森本地
baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 baseUrl: 'https://ele.ccttiot.com/prod-api', //线上
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上 // baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上

View File

@ -484,6 +484,7 @@
huiyuanlist:[], huiyuanlist:[],
huiyuanobj:{}, huiyuanobj:{},
zfflag:true, zfflag:true,
jieliuflag:true
} }
}, },
onLoad(option) { onLoad(option) {
@ -911,6 +912,8 @@
}, },
// //
btnzhifu() { btnzhifu() {
if(this.jieliuflag == true){
this.jieliuflag = false
if(this.bikeobj.onlineStatus == 0){ if(this.bikeobj.onlineStatus == 0){
if(this.ver_dataflag == 3){ if(this.ver_dataflag == 3){
this.getlyzf() this.getlyzf()
@ -1019,6 +1022,10 @@
this.getzf() this.getzf()
} }
} }
setTimeout(()=>{
this.jieliuflag = true
},5000)
}
}, },
// //
getlyzf(){ getlyzf(){

View File

@ -478,7 +478,6 @@
const power = device.remainingPower const power = device.remainingPower
return power >= minPower && power <= maxPower return power >= minPower && power <= maxPower
}) })
// //
this.status0 = [] this.status0 = []
this.status1 = [] this.status1 = []
@ -488,7 +487,6 @@
this.status8 = [] this.status8 = []
this.status9 = [] this.status9 = []
this.status6 = [] this.status6 = []
// //
this.listData.forEach(item => { this.listData.forEach(item => {
if (item.status == 0) { if (item.status == 0) {
@ -509,7 +507,6 @@
this.status9.push(item) this.status9.push(item)
} }
}) })
// //
this.markers = [] this.markers = []
this.markstause() this.markstause()
@ -533,7 +530,6 @@
} }
} }
}, },
getArea() { getArea() {
let id = this.areaId let id = this.areaId
this.$u.get(`/bst/area/${id}`).then((res) => { // this.$u.get(`/bst/area/${id}`).then((res) => { //
@ -679,9 +675,7 @@
width: 30, width: 30,
height: 34, height: 34,
// joinCluster: true, // joinCluster: true,
iconPath: item.onlineStatus == 0 ? iconPath: item.onlineStatus == 0 ? 'https://lxnapi.ccttiot.com/bike/img/static/uG13E7BpUFF44wVYC9no' : 'https://lxnapi.ccttiot.com/bike/img/static/uHQIdWCTmtUztl49wBKU',
'https://lxnapi.ccttiot.com/bike/img/static/uG13E7BpUFF44wVYC9no' :
'https://lxnapi.ccttiot.com/bike/img/static/uHQIdWCTmtUztl49wBKU',
callout: { callout: {
content: '' + parseInt(item.remainingPower) + '%', // content: '' + parseInt(item.remainingPower) + '%', //
color: '#2679D1', // color: '#2679D1', //
@ -702,9 +696,7 @@
width: 30, width: 30,
height: 34, height: 34,
// joinCluster: true, // joinCluster: true,
iconPath: item.onlineStatus == 0 ? iconPath: item.onlineStatus == 0 ? 'https://lxnapi.ccttiot.com/bike/img/static/uRod2zf3t9dAOYafWoWt' : 'https://lxnapi.ccttiot.com/bike/img/static/uZpXq3TBtM5gVgJJeImY',
'https://lxnapi.ccttiot.com/bike/img/static/uRod2zf3t9dAOYafWoWt' :
'https://lxnapi.ccttiot.com/bike/img/static/uZpXq3TBtM5gVgJJeImY',
callout: { callout: {
content: '' + parseInt(item.remainingPower) + '%', // content: '' + parseInt(item.remainingPower) + '%', //
color: '#2679D1', // color: '#2679D1', //
@ -794,13 +786,11 @@
this.status8 = [] this.status8 = []
this.status9 = [] this.status9 = []
this.status6 = [] this.status6 = []
// 使 // 使
if (this.allDeviceData.length > 0) { if (this.allDeviceData.length > 0) {
this.filterDevicesByPowerRange() this.filterDevicesByPowerRange()
return return
} }
if (this.statusidx != 7 && this.statusidx != 20 && this.statusidx != 10) { if (this.statusidx != 7 && this.statusidx != 20 && this.statusidx != 10) {
this.$u.get(`/bst/device/all?areaId=${this.areaId}&status=${this.statusidx}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true`).then((res) => { this.$u.get(`/bst/device/all?areaId=${this.areaId}&status=${this.statusidx}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -915,7 +905,7 @@
}, },
// //
calculateDistance(lat1, lon1, lat2, lon2) { calculateDistance(lat1, lon1, lat2, lon2) {
const p = 0.017453292519943295; // Math.PI / 180 const p = 0.017453292519943295 // Math.PI / 180
const c = Math.cos; const c = Math.cos;
const a = 0.5 - c((lat2 - lat1) * p) / 2 + const a = 0.5 - c((lat2 - lat1) * p) / 2 +
c(lat1 * p) * c(lat2 * p) * c(lat1 * p) * c(lat2 * p) *
@ -948,7 +938,7 @@
} else if (row.type == 3) { } else if (row.type == 3) {
type3Data.push(row) type3Data.push(row)
} }
console.log(row,'121212'); console.log(row,'121212')
newMarkers.push({ newMarkers.push({
id: row.id, id: row.id,
latitude: row.latitude, latitude: row.latitude,
@ -967,7 +957,7 @@
}, },
isParking: true isParking: true
}) })
console.log(newMarkers,'newMarkersnewMarkersnewMarkers'); console.log(newMarkers,'newMarkersnewMarkersnewMarkers')
}) })
this.$set(this, 'markers', [...this.markers, ...newMarkers]) this.$set(this, 'markers', [...this.markers, ...newMarkers])
const validBoundaries1 = type1Data.map(row => row.boundaryStr).filter(boundary => const validBoundaries1 = type1Data.map(row => row.boundaryStr).filter(boundary =>
@ -985,7 +975,7 @@
} }
}).catch(error => { }).catch(error => {
console.error("22222", error) console.error("22222", error)
}); })
}, },
convertBoundaryToPolyline(boundary) { convertBoundaryToPolyline(boundary) {
if (!boundary) return null if (!boundary) return null
@ -1032,33 +1022,27 @@
background: #FFFFFF80; background: #FFFFFF80;
border-radius: 0 40rpx 40rpx 0; border-radius: 0 40rpx 40rpx 0;
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3); box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3);
.scrollable-content::-webkit-scrollbar { .scrollable-content::-webkit-scrollbar {
display: none; display: none;
} }
.scrollable-content { .scrollable-content {
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
.divce_li:last-child { .divce_li:last-child {
border-bottom: 1rpx solid #fff; border-bottom: 1rpx solid #fff;
} }
.divce_li { .divce_li {
padding: 10rpx 0; padding: 10rpx 0;
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
border-bottom: 1rpx solid #D8D8D8; border-bottom: 1rpx solid #D8D8D8;
.left_img { .left_img {
image { image {
width: 44rpx; width: 44rpx;
height: 70rpx; height: 70rpx;
} }
} }
.right_cont { .right_cont {
margin-left: 20rpx; margin-left: 20rpx;
display: flex; display: flex;
@ -1066,29 +1050,23 @@
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
color: #3D3D3D; color: #3D3D3D;
.right_top { .right_top {
width: 100%; width: 100%;
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
.right_top_left { .right_top_left {
margin-left: auto; margin-left: auto;
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
image { image {
margin-right: 6rpx; margin-right: 6rpx;
width: 12rpx; width: 12rpx;
height: 26rpx; height: 26rpx;
} }
} }
.right_top_right {}
} }
.right_bot { .right_bot {
width: 100%; width: 100%;
display: flex; display: flex;
@ -1100,23 +1078,18 @@
} }
} }
} }
.decice_cont { .decice_cont {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
padding: 10rpx 28rpx; padding: 10rpx 28rpx;
.cont:nth-child(5n) { .cont:nth-child(5n) {
margin-right: 0; margin-right: 0;
} }
.cont { .cont {
margin-top: 8rpx; margin-top: 8rpx;
margin-right: 9rpx; margin-right: 9rpx;
// display: flex;
width: 130rpx; width: 130rpx;
.text { .text {
width: 100%; width: 100%;
text-align: center; text-align: center;
@ -1125,7 +1098,6 @@
line-height: 38rpx; line-height: 38rpx;
color: #3D3D3D; color: #3D3D3D;
} }
.act1 { .act1 {
color: #4C97E7; color: #4C97E7;
} }

View File

@ -8,6 +8,10 @@
<cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/uRiYQZQEb3l2LsltEsyW" <cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/uRiYQZQEb3l2LsltEsyW"
mode=""></cover-image> mode=""></cover-image>
</cover-view> </cover-view>
<cover-view class="park" style="bottom: 240rpx;width: 70rpx;height: 70rpx;right: 40rpx;" @click="btnsjyc">
<cover-image class="img" src="https://api.ccttiot.com/smartmeter/img/static/uBluMsnJyV5Judyx7SYx"
mode=""></cover-image>
</cover-view>
<!-- <cover-view class="track" @click="toTrack"> <!-- <cover-view class="track" @click="toTrack">
<cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/ufaAAtlirJYs1QwJF25P" <cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/ufaAAtlirJYs1QwJF25P"
mode=""></cover-image> mode=""></cover-image>
@ -434,7 +438,10 @@
deviceid: '', deviceid: '',
devicename: '', devicename: '',
devicesarr: [], devicesarr: [],
findDeviceTimer: null findDeviceTimer: null,
jieliuflag:true,
isMarkerVisible: true
} }
}, },
onLoad(e) { onLoad(e) {
@ -458,6 +465,24 @@
} }
}, },
methods: { methods: {
//
btnsjyc() {
this.isMarkerVisible = !this.isMarkerVisible;
this.markers = this.markers.map(item => {
if(item.id === 0.1) {
return {
...item,
alpha: this.isMarkerVisible ? 1 : 0, // 01
callout: {
...item.callout,
display: this.isMarkerVisible ? 'ALWAYS' : 'NONE'
}
}
}
return item;
});
this.$forceUpdate(); //
},
// //
btndd(){ btndd(){
uni.navigateTo({ uni.navigateTo({
@ -565,6 +590,8 @@
}, },
// //
lanya(num) { lanya(num) {
if(this.jieliuflag == true){
this.jieliuflag = false
if(num == 0){ if(num == 0){
uni.showLoading({ uni.showLoading({
title: '连接中...', // title: '连接中...', //
@ -617,6 +644,10 @@
duration: 2000 duration: 2000
}) })
} }
setTimeout(()=>{
this.jieliuflag = true
},1000)
}
}, },
getlanya() { getlanya() {
xBlufi.notifyStartDiscoverBle({ xBlufi.notifyStartDiscoverBle({
@ -834,12 +865,18 @@
this.showbtntip = false this.showbtntip = false
}, },
checkbtn(num) { checkbtn(num) {
if(this.jieliuflag = true){
this.jieliuflag = false
if (this.deviceInfos.status == 3 || this.deviceInfos.status == 2 || this.deviceInfos.status == 4) { if (this.deviceInfos.status == 3 || this.deviceInfos.status == 2 || this.deviceInfos.status == 4) {
this.showbtntip = true this.showbtntip = true
this.btnnum = num this.btnnum = num
} else { } else {
this.btn(num) this.btn(num)
} }
setTimeout(()=>{
this.jieliuflag = true
},3000)
}
}, },
putvehicle() { putvehicle() {
let data = { let data = {
@ -888,6 +925,8 @@
this.showvehicle = false this.showvehicle = false
}, },
btn(num) { btn(num) {
if(this.jieliuflag == true){
this.jieliuflag = false
this.showbtntip = false this.showbtntip = false
let data = [this.sn] let data = [this.sn]
if (num == 0) { if (num == 0) {
@ -904,7 +943,13 @@
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else if(res.code == 20001){ } else if(res.code == 20001){
setTimeout(()=>{
this.jieliuflag = true
},2000)
let that = this let that = this
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
@ -925,6 +970,9 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 1) { } else if (num == 1) {
@ -940,8 +988,14 @@
title: '操作成功', title: '操作成功',
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}); })
setTimeout(()=>{
this.jieliuflag = true
},2000)
}else if(res.code == 20001){ }else if(res.code == 20001){
setTimeout(()=>{
this.jieliuflag = true
},2000)
let that = this let that = this
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
@ -962,11 +1016,14 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 2) { } else if (num == 2) {
uni.showLoading({ uni.showLoading({
title: 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz加载中...' title: '加载中...'
}) })
this.$u.put('/bst/device/disable', data).then((res) => { this.$u.put('/bst/device/disable', data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -977,12 +1034,18 @@
}); });
// 线 // 线
this.deviceInfo() this.deviceInfo()
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 3) { } else if (num == 3) {
@ -996,14 +1059,20 @@
title: '解禁成功', title: '解禁成功',
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}); })
this.deviceInfo() this.deviceInfo()
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 4) { } else if (num == 4) {
@ -1017,14 +1086,20 @@
title: '操作成功', title: '操作成功',
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}); })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 5) { } else if (num == 5) {
@ -1039,12 +1114,18 @@
duration: 2000 duration: 2000
}); });
this.deviceInfo() this.deviceInfo()
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 6) { } else if (num == 6) {
@ -1059,12 +1140,18 @@
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 7) { } else if (num == 7) {
@ -1081,12 +1168,18 @@
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 3000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 9) { } else if (num == 9) {
@ -1101,12 +1194,18 @@
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} else if (num == 10) { } else if (num == 10) {
@ -1121,15 +1220,22 @@
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{
this.jieliuflag = true
},2000)
} }
}) })
} }
}
}, },
btnyc() { btnyc() {
this.titleflag = false this.titleflag = false
@ -1160,6 +1266,23 @@
this.getModelList() this.getModelList()
this.latitude = this.deviceInfos.latitude this.latitude = this.deviceInfos.latitude
this.longitude = this.deviceInfos.longitude this.longitude = this.deviceInfos.longitude
this.markers.push({
id: 0.1,
latitude: this.deviceInfos.mobileLat,
longitude: this.deviceInfos.mobileLon,
width: 40,
height: 47,
iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uvMzjOvKi58e8VAAS8t6',
callout: {
content: '手机定位', //
color: '#ffffff', //
fontSize: 10, //
borderRadius: 10, //
bgColor: '#000000', //
padding: 2, //
display: 'ALWAYS', //
}
})
if (this.deviceInfos.status == 0) { if (this.deviceInfos.status == 0) {
this.markers.push({ this.markers.push({
id: parseFloat(this.deviceInfos.sn), id: parseFloat(this.deviceInfos.sn),

View File

@ -132,13 +132,11 @@
<view class="yingshouprice" style="border: 0;"> <view class="yingshouprice" style="border: 0;">
折扣<span>{{orderxqobj.vipDiscountValue == null ? '--' : orderxqobj.vipDiscountValue + '折'}}</span> 折扣<span>{{orderxqobj.vipDiscountValue == null ? '--' : orderxqobj.vipDiscountValue + '折'}}</span>
</view> </view>
<view class="yingshouprice" style="border: 0;"> <!-- <view class="yingshouprice" style="border: 0;">
骑行费优惠<span>{{orderxqobj.ridingDiscount == null ? '0.00' : orderxqobj.ridingDiscount}}</span> 骑行费优惠<span>{{orderxqobj.ridingDiscount == null ? '0.00' : orderxqobj.ridingDiscount}}</span>
</view> -->
</view> </view>
</view> </view>
</view>
<view class="xingchengxx" style="padding-bottom: 30rpx;box-sizing: border-box;"> <view class="xingchengxx" style="padding-bottom: 30rpx;box-sizing: border-box;">
<view class="name"> <view class="name">
行程信息 行程信息
@ -1016,27 +1014,6 @@
}, },
unpass() { unpass() {
this.huancheflag = true this.huancheflag = true
// let data = {
// id: this.orderxqobj.id,
// pass: pass
// }
// this.$u.put('/bst/order/verify', data).then((res) => {
// if (res.code === 200) {
// uni.showToast({
// title: '',
// icon: 'success',
// duration: 2000
// })
// this.deviceInfo()
// this.getorderxq()
// } else {
// uni.showToast({
// title: res.msg,
// icon: 'none',
// duration: 2000
// })
// }
// })
}, },
parsePictures(pictureString) { parsePictures(pictureString) {
console.log(pictureString, '45454545454'); console.log(pictureString, '45454545454');

View File

@ -861,11 +861,11 @@
} }
} }
</script> </script>
<style lang="scss" > <style lang="scss">
page{ page{
background-color: #F7FAFE; background-color: #F7FAFE;
} }
.map { .map {
position: relative; position: relative;
width: 750rpx; width: 750rpx;
height: 752rpx; height: 752rpx;
@ -912,7 +912,7 @@ page{
-webkit-box-shadow: 0 0 20rpx #7C7C7C; -webkit-box-shadow: 0 0 20rpx #7C7C7C;
-moz-box-shadow: 0 0 20rpx #7C7C7C; -moz-box-shadow: 0 0 20rpx #7C7C7C;
} }
.kefutc{ .kefutc{
animation: fadeIn 0.5s ease-in-out forwards; animation: fadeIn 0.5s ease-in-out forwards;
position: fixed; position: fixed;
top: 660rpx; top: 660rpx;
@ -983,7 +983,7 @@ page{
background-color: rgba(0,0,0,0.3); background-color: rgba(0,0,0,0.3);
z-index: 9; z-index: 9;
} }
.page{ .page{
width: 750rpx; width: 750rpx;
background: #F7F7F7; background: #F7F7F7;
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;

View File

@ -346,10 +346,19 @@
}) })
that.getorderdevice() that.getorderdevice()
} else { } else {
uni.showToast({ uni.showModal({
title: res.msg, title: '提示',
icon: 'none', content: '设备离线,请前往车辆详情连接车辆操作',
duration: 2000 showCancel: false,
success: function(res) {
if (res.confirm) {
uni.switchTab({
url:'/pages/myorder/returned/index'
})
} else if (res.cancel) {
}
}
}) })
} }
}) })
@ -393,10 +402,19 @@
}) })
that.getorderdevice() that.getorderdevice()
} else { } else {
uni.showToast({ uni.showModal({
title: res.msg, title: '提示',
icon: 'none', content: '设备离线,请前往车辆详情连接车辆操作',
duration: 2000 showCancel: false,
success: function(res) {
if (res.confirm) {
uni.switchTab({
url:'/pages/myorder/returned/index'
})
} else if (res.cancel) {
}
}
}) })
} }
}) })
@ -499,10 +517,19 @@
that.orderflag = false that.orderflag = false
},1000) },1000)
} else { } else {
uni.showToast({ uni.showModal({
title: res.msg, title: '提示',
icon: 'none', content: '设备离线,请前往车辆详情连接车辆操作',
duration: 2000 showCancel: false,
success: function(res) {
if (res.confirm) {
uni.switchTab({
url:'/pages/myorder/returned/index'
})
} else if (res.cancel) {
}
}
}) })
} }
}) })