diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index b97bd45..b74d440 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -1,7 +1,7 @@
const install = (Vue, vm) => {
uni.setStorageSync('deptId', 100);
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: 'https://ele.ccttiot.com/prod-api', //线上
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
diff --git a/page_fenbao/storedlist/trueorder.vue b/page_fenbao/storedlist/trueorder.vue
index 434323e..7976ace 100644
--- a/page_fenbao/storedlist/trueorder.vue
+++ b/page_fenbao/storedlist/trueorder.vue
@@ -484,6 +484,7 @@
huiyuanlist:[],
huiyuanobj:{},
zfflag:true,
+ jieliuflag:true
}
},
onLoad(option) {
@@ -911,113 +912,119 @@
},
// 点击进行支付
btnzhifu() {
- if(this.bikeobj.onlineStatus == 0){
- if(this.ver_dataflag == 3){
- this.getlyzf()
- }else{
- uni.showLoading({
- title: '车辆连接中...',
- mask: true
- })
- setTimeout(()=>{
- if(this.ver_dataflag == 3){
- uni.hideLoading()
- }else{
- uni.hideLoading()
- let that = this
- uni.showModal({
- title: '提示',
- content: '连接失败,是否重新连接?',
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
- that.btnzhifu()
- } else if (res.cancel) {
-
- }
- }
- })
- }
- },10000)
- }
- }else{
- if (this.bikeobj.areaAuthentication == true) { //判断是否需要实名认证
- this.$u.get("/getInfo").then(res => {
- if (res.code == 200) {
- if (res.user.isReal == false) { //未实名需要去实名才能进行下单
+ if(this.jieliuflag == true){
+ this.jieliuflag = false
+ if(this.bikeobj.onlineStatus == 0){
+ if(this.ver_dataflag == 3){
+ this.getlyzf()
+ }else{
+ uni.showLoading({
+ title: '车辆连接中...',
+ mask: true
+ })
+ setTimeout(()=>{
+ if(this.ver_dataflag == 3){
+ uni.hideLoading()
+ }else{
+ uni.hideLoading()
+ let that = this
uni.showModal({
title: '提示',
- content: '您当前还未实名认证,是否前去实名认证?',
+ content: '连接失败,是否重新连接?',
showCancel: true,
success: function(res) {
if (res.confirm) {
- uni.navigateTo({
- url: '/page_user/shiming'
- })
+ that.btnzhifu()
} else if (res.cancel) {
-
+
}
}
})
- }else{
- if (this.checked == false) {
- let that = this
+ }
+ },10000)
+ }
+ }else{
+ if (this.bikeobj.areaAuthentication == true) { //判断是否需要实名认证
+ this.$u.get("/getInfo").then(res => {
+ if (res.code == 200) {
+ if (res.user.isReal == false) { //未实名需要去实名才能进行下单
uni.showModal({
title: '提示',
- content: '您是否已经阅读完,并且同意此《电动车租赁协议》?',
+ content: '您当前还未实名认证,是否前去实名认证?',
showCancel: true,
success: function(res) {
if (res.confirm) {
- that.checked = true
- uni.showLoading({
- title: '加载中...',
- mask: true
+ uni.navigateTo({
+ url: '/page_user/shiming'
})
- that.getzf()
- uni.hideLoading()
} else if (res.cancel) {
- console.log('取消') // 用户点击取消
+
}
}
})
- } else {
+ }else{
+ if (this.checked == false) {
+ let that = this
+ uni.showModal({
+ title: '提示',
+ content: '您是否已经阅读完,并且同意此《电动车租赁协议》?',
+ showCancel: true,
+ success: function(res) {
+ if (res.confirm) {
+ that.checked = true
+ uni.showLoading({
+ title: '加载中...',
+ mask: true
+ })
+ that.getzf()
+ uni.hideLoading()
+ } else if (res.cancel) {
+ console.log('取消') // 用户点击取消
+ }
+ }
+ })
+ } else {
+ uni.showLoading({
+ title: '加载中...',
+ mask: true
+ })
+ this.getzf()
+ }
+ }
+ }else if(res.code == 401){
+ this.logoflag = true
+ }
+ })
+ } else if (this.checked == false) {
+ let that = this
+ uni.showModal({
+ title: '提示',
+ content: '您是否已经阅读完,并且同意此《电动车租赁协议》?',
+ showCancel: true,
+ success: function(res) {
+ if (res.confirm) {
+ that.checked = true
uni.showLoading({
title: '加载中...',
mask: true
})
- this.getzf()
+ that.getzf()
+ } else if (res.cancel) {
+ console.log('取消') // 用户点击取消
}
}
- }else if(res.code == 401){
- this.logoflag = true
- }
- })
- } else if (this.checked == false) {
- let that = this
- uni.showModal({
- title: '提示',
- content: '您是否已经阅读完,并且同意此《电动车租赁协议》?',
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
- that.checked = true
- uni.showLoading({
- title: '加载中...',
- mask: true
- })
- that.getzf()
- } else if (res.cancel) {
- console.log('取消') // 用户点击取消
- }
- }
- })
- } else {
- uni.showLoading({
- title: '加载中...',
- mask: true
- })
- this.getzf()
+ })
+ } else {
+ uni.showLoading({
+ title: '加载中...',
+ mask: true
+ })
+ this.getzf()
+ }
}
+ setTimeout(()=>{
+ this.jieliuflag = true
+ },5000)
}
},
// 蓝牙支付
diff --git a/page_shanghu/admin_index.vue b/page_shanghu/admin_index.vue
index d10d82f..59e8105 100644
--- a/page_shanghu/admin_index.vue
+++ b/page_shanghu/admin_index.vue
@@ -478,7 +478,6 @@
const power = device.remainingPower
return power >= minPower && power <= maxPower
})
-
// 重置状态数组
this.status0 = []
this.status1 = []
@@ -488,7 +487,6 @@
this.status8 = []
this.status9 = []
this.status6 = []
-
// 重新分类设备
this.listData.forEach(item => {
if (item.status == 0) {
@@ -509,7 +507,6 @@
this.status9.push(item)
}
})
-
// 更新地图标记
this.markers = []
this.markstause()
@@ -533,7 +530,6 @@
}
}
},
-
getArea() {
let id = this.areaId
this.$u.get(`/bst/area/${id}`).then((res) => { //查询停车列表
@@ -679,9 +675,7 @@
width: 30,
height: 34,
// joinCluster: true,
- iconPath: item.onlineStatus == 0 ?
- 'https://lxnapi.ccttiot.com/bike/img/static/uG13E7BpUFF44wVYC9no' :
- 'https://lxnapi.ccttiot.com/bike/img/static/uHQIdWCTmtUztl49wBKU',
+ iconPath: item.onlineStatus == 0 ? 'https://lxnapi.ccttiot.com/bike/img/static/uG13E7BpUFF44wVYC9no' : 'https://lxnapi.ccttiot.com/bike/img/static/uHQIdWCTmtUztl49wBKU',
callout: {
content: '' + parseInt(item.remainingPower) + '%', // 修改为你想要显示的文字内容
color: '#2679D1', // 修改为文字颜色
@@ -702,9 +696,7 @@
width: 30,
height: 34,
// joinCluster: true,
- iconPath: item.onlineStatus == 0 ?
- 'https://lxnapi.ccttiot.com/bike/img/static/uRod2zf3t9dAOYafWoWt' :
- 'https://lxnapi.ccttiot.com/bike/img/static/uZpXq3TBtM5gVgJJeImY',
+ iconPath: item.onlineStatus == 0 ? 'https://lxnapi.ccttiot.com/bike/img/static/uRod2zf3t9dAOYafWoWt' : 'https://lxnapi.ccttiot.com/bike/img/static/uZpXq3TBtM5gVgJJeImY',
callout: {
content: '' + parseInt(item.remainingPower) + '%', // 修改为你想要显示的文字内容
color: '#2679D1', // 修改为文字颜色
@@ -794,13 +786,11 @@
this.status8 = []
this.status9 = []
this.status6 = []
-
// 如果已经有数据,直接使用本地筛选
if (this.allDeviceData.length > 0) {
this.filterDevicesByPowerRange()
return
}
-
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) => {
if (res.code == 200) {
@@ -915,7 +905,7 @@
},
// 计算两点间的距离
calculateDistance(lat1, lon1, lat2, lon2) {
- const p = 0.017453292519943295; // Math.PI / 180
+ const p = 0.017453292519943295 // Math.PI / 180
const c = Math.cos;
const a = 0.5 - c((lat2 - lat1) * p) / 2 +
c(lat1 * p) * c(lat2 * p) *
@@ -948,7 +938,7 @@
} else if (row.type == 3) {
type3Data.push(row)
}
- console.log(row,'121212');
+ console.log(row,'121212')
newMarkers.push({
id: row.id,
latitude: row.latitude,
@@ -967,7 +957,7 @@
},
isParking: true
})
- console.log(newMarkers,'newMarkersnewMarkersnewMarkers');
+ console.log(newMarkers,'newMarkersnewMarkersnewMarkers')
})
this.$set(this, 'markers', [...this.markers, ...newMarkers])
const validBoundaries1 = type1Data.map(row => row.boundaryStr).filter(boundary =>
@@ -985,7 +975,7 @@
}
}).catch(error => {
console.error("22222", error)
- });
+ })
},
convertBoundaryToPolyline(boundary) {
if (!boundary) return null
@@ -1032,33 +1022,27 @@
background: #FFFFFF80;
border-radius: 0 40rpx 40rpx 0;
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3);
-
.scrollable-content::-webkit-scrollbar {
display: none;
}
-
.scrollable-content {
height: 100%;
overflow-y: auto;
-
.divce_li:last-child {
border-bottom: 1rpx solid #fff;
}
-
.divce_li {
padding: 10rpx 0;
display: flex;
flex-wrap: nowrap;
align-items: center;
border-bottom: 1rpx solid #D8D8D8;
-
.left_img {
image {
width: 44rpx;
height: 70rpx;
}
}
-
.right_cont {
margin-left: 20rpx;
display: flex;
@@ -1066,29 +1050,23 @@
font-weight: 400;
font-size: 24rpx;
color: #3D3D3D;
-
.right_top {
width: 100%;
display: flex;
flex-wrap: nowrap;
align-items: center;
-
.right_top_left {
margin-left: auto;
display: flex;
flex-wrap: nowrap;
align-items: center;
-
image {
margin-right: 6rpx;
width: 12rpx;
height: 26rpx;
}
}
-
- .right_top_right {}
}
-
.right_bot {
width: 100%;
display: flex;
@@ -1100,23 +1078,18 @@
}
}
}
-
.decice_cont {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 10rpx 28rpx;
-
.cont:nth-child(5n) {
margin-right: 0;
}
-
.cont {
margin-top: 8rpx;
margin-right: 9rpx;
- // display: flex;
width: 130rpx;
-
.text {
width: 100%;
text-align: center;
@@ -1125,7 +1098,6 @@
line-height: 38rpx;
color: #3D3D3D;
}
-
.act1 {
color: #4C97E7;
}
diff --git a/page_shanghu/guanli/device_detail.vue b/page_shanghu/guanli/device_detail.vue
index 426109c..3e45e01 100644
--- a/page_shanghu/guanli/device_detail.vue
+++ b/page_shanghu/guanli/device_detail.vue
@@ -8,6 +8,10 @@
+
+
+
-
-
行程信息
@@ -1016,27 +1014,6 @@
},
unpass() {
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) {
console.log(pictureString, '45454545454');
diff --git a/page_user/yongche/orderxq.vue b/page_user/yongche/orderxq.vue
index bb9b3e5..7c27636 100644
--- a/page_user/yongche/orderxq.vue
+++ b/page_user/yongche/orderxq.vue
@@ -861,11 +861,11 @@
}
}
-