This commit is contained in:
吴鹏 2025-09-09 11:24:11 +08:00
parent ffd482bed1
commit e421e61c3f
13 changed files with 121 additions and 129 deletions

View File

@ -499,7 +499,10 @@
<view class="top"> <view class="top">
<image src="https://api.ccttiot.com/smartmeter/img/static/uft9oJbJIjOd6whGG3cM" mode=""></image> {{wenbentxt}} <image src="https://api.ccttiot.com/smartmeter/img/static/uft9oJbJIjOd6whGG3cM" mode=""></image> {{wenbentxt}}
</view> </view>
<image class="ddc" src="https://api.ccttiot.com/smartmeter/img/static/uKOCB6yMx4VMyBgblz3H" mode=""></image> <view class="" style="width: 100%;text-align: center;margin-top: 20rpx;font-size: 26rpx;color: #3D3D3D;">
骑行前请检查车轿刹车是否灵敏安全骑行
</view>
<image class="ddc" src="https://api.ccttiot.com/%E5%88%B9%E8%BD%A6-1756546350335.gif" mode=""></image>
</view> </view>
<view class="mask" style="z-index: 998;" v-if="wenbentxtflag"></view> <view class="mask" style="z-index: 998;" v-if="wenbentxtflag"></view>

View File

@ -108,10 +108,12 @@
list: [], list: [],
loading: false, loading: false,
finished: false, finished: false,
statusParam: '' statusParam: '',
areaId:''
} }
}, },
onLoad() { onLoad(option) {
this.areaId = option.areaId
this.getlist() this.getlist()
}, },
computed: { computed: {
@ -206,7 +208,7 @@
getlist() { getlist() {
if (this.loading) return; if (this.loading) return;
this.loading = true; this.loading = true;
const base = `/bst/complaint/list?pageNum=${this.pageNum}&pageSize=${this.pageSize}&orderByColumn=createTime&isAsc=desc`; const base = `/bst/complaint/list?pageNum=${this.pageNum}&pageSize=${this.pageSize}&orderByColumn=createTime&isAsc=desc&areaId=${this.areaId}`;
const url = this.statusParam ? `${base}&statusList=${encodeURIComponent(this.statusParam)}` : base; const url = this.statusParam ? `${base}&statusList=${encodeURIComponent(this.statusParam)}` : base;
this.$u.get(url).then((res) => { this.$u.get(url).then((res) => {
if (!res) return; if (!res) return;

View File

@ -162,7 +162,6 @@ let pollIntervalId = null; // 轮询interval
let rangeDebounceId = null; // debounce let rangeDebounceId = null; // debounce
var appMap = null; var appMap = null;
export default { export default {
data() { data() {
return { return {
bgc: { bgc: {
@ -199,8 +198,7 @@ let rangeDebounceId = null; // 滑动筛选debounce
showdevList: false, showdevList: false,
circles: [], // circles: [], //
qbobj:{}, qbobj:{},
sn:'' sn:'',
} }
}, },
components: { components: {
@ -305,8 +303,6 @@ let rangeDebounceId = null; // 滑动筛选debounce
return '禁用中' return '禁用中'
} }
}, },
onMapRegionChange(event) { onMapRegionChange(event) {
if (event.detail.type == 'end') { if (event.detail.type == 'end') {
this.getCenterLocation() this.getCenterLocation()
@ -333,8 +329,8 @@ let rangeDebounceId = null; // 滑动筛选debounce
fail: (err) => { fail: (err) => {
console.error('获取中心点定位失败:', err) console.error('获取中心点定位失败:', err)
} }
}) })
}, },
getCenter: function() { getCenter: function() {
var _that = this var _that = this
appMap.getCurrentCenter( appMap.getCurrentCenter(
@ -455,7 +451,7 @@ let rangeDebounceId = null; // 滑动筛选debounce
this.sn = getQueryParam(decodedValue, 's') this.sn = getQueryParam(decodedValue, 's')
console.log(this.sn,'....') console.log(this.sn,'....')
if (this.sn != '') { if (this.sn != '') {
this.$u.get('/bst/device?sn=' + this.sn).then((res) => { this.$u.get('/bst/device?sn=' + this.sn + '&supportLocation=true').then((res) => {
if (res.code === 200) { if (res.code === 200) {
console.log(res, 'rererer') console.log(res, 'rererer')
if (res.data.areaId == this.areaId) { if (res.data.areaId == this.areaId) {
@ -836,7 +832,7 @@ let rangeDebounceId = null; // 滑动筛选debounce
// 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&supportLocation=true`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.showmap = true this.showmap = true
this.allDeviceData = res.data // this.allDeviceData = res.data //
@ -865,7 +861,7 @@ let rangeDebounceId = null; // 滑动筛选debounce
} }
}) })
} else if (this.statusidx == 7) { } else if (this.statusidx == 7) {
this.$u.get(`/bst/device/all?areaId=${this.areaId}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true`).then((res) => { this.$u.get(`/bst/device/all?areaId=${this.areaId}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true&supportLocation=true`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.showmap = true this.showmap = true
this.allDeviceData = res.data // this.allDeviceData = res.data //
@ -894,7 +890,7 @@ let rangeDebounceId = null; // 滑动筛选debounce
} }
}) })
} else if (this.statusidx == 20 || this.statusidx == 10) { } else if (this.statusidx == 20 || this.statusidx == 10) {
this.$u.get(`/bst/device/all?areaId=${this.areaId}&onlineStatus=${this.statusidx == 20 ? 0 : 1}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true`).then((res) => { this.$u.get(`/bst/device/all?areaId=${this.areaId}&onlineStatus=${this.statusidx == 20 ? 0 : 1}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true&supportLocation=true`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.showmap = true this.showmap = true
this.allDeviceData = res.data // this.allDeviceData = res.data //

View File

@ -173,15 +173,15 @@ export default {
content: '确定要删除该记录吗?', content: '确定要删除该记录吗?',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
this.deleteParking(item.parkingId); this.deleteParking(item.id);
} }
} }
}); });
}, },
// //
deleteParking(parkingId) { deleteParking(id) {
this.$u.delete(`/appVerify/parking/${parkingId}`).then(res => { this.$u.delete(`/bst/areaSub/${id}`).then(res => {
if (res.code === 200) { if (res.code === 200) {
uni.showToast({ uni.showToast({
title: '删除成功', title: '删除成功',
@ -239,6 +239,8 @@ page {
.content { .content {
padding: 20rpx; padding: 20rpx;
background-color: #f5f5f5; background-color: #f5f5f5;
height: 68vh;
overflow: scroll;
} }
.list { .list {

View File

@ -303,7 +303,8 @@ export default {
areaId: this.areaId, areaId: this.areaId,
orderByColumn: this.typeSort, orderByColumn: this.typeSort,
refresh: true, refresh: true,
Keyword: this.searchKeyword Keyword: this.searchKeyword,
supportLocation:true
} }
this.selectedItems = [] this.selectedItems = []
@ -537,7 +538,8 @@ export default {
areaId: this.areaId, areaId: this.areaId,
// orderByColumn: this.typeSort, // orderByColumn: this.typeSort,
// refresh:true, // refresh:true,
Keyword:this.searchKeyword Keyword:this.searchKeyword,
supportLocation:true
} }
this.selectedItems = [] this.selectedItems = []
this.$u.get(`/bst/device/all`, data).then((res) => { this.$u.get(`/bst/device/all`, data).then((res) => {

View File

@ -85,11 +85,12 @@
会员中心 会员中心
</view> </view>
</view> </view>
<view class="cont" @click="btnts"> <view class="cont" style="position: relative;" @click="btnts">
<image src="https://api.ccttiot.com/smartmeter/img/static/usv2hT8WU6LTBQXemobM" mode=""></image> <image src="https://api.ccttiot.com/smartmeter/img/static/usv2hT8WU6LTBQXemobM" mode=""></image>
<view class="text"> <view class="text">
用户投诉 用户投诉
</view> </view>
<text style="position: absolute;top: 0;right: 0;display: inline-block;width: 30rpx;height: 30rpx;border-radius: 50%;color: #fff;text-align: center;line-height: 30rpx;background-color: red;font-size: 24rpx;">{{weinum}}</text>
</view> </view>
</view> </view>
<view class="top"> <view class="top">
@ -230,7 +231,8 @@ export default {
announcements: {}, announcements: {},
yyqid:'', yyqid:'',
userId:'', userId:'',
fuwuewm:false fuwuewm:false,
weinum:0
} }
}, },
onLoad(option) { onLoad(option) {
@ -253,6 +255,7 @@ export default {
console.log(this.areaId); console.log(this.areaId);
// this.getArea() // this.getArea()
this.getinfo() this.getinfo()
this.getweicl()
// this.getareaList() // this.getareaList()
} }
@ -267,6 +270,15 @@ export default {
} }
}, },
methods: { methods: {
//
getweicl(){
this.$u.get(`/dashboard/complaint/statusMap?areaId=${this.areaId}`).then(res => {
if (res.code== 200) {
const key = "1";
this.weinum = res.data[key]
}
})
},
// //
btnfuwuewm(){ btnfuwuewm(){
let that = this let that = this
@ -291,7 +303,7 @@ export default {
// //
btnts(){ btnts(){
uni.navigateTo({ uni.navigateTo({
url:'/page_fenbao/tousu/shlist' url:'/page_fenbao/tousu/shlist?areaId='+this.areaId
}) })
}, },
// //

View File

@ -206,7 +206,7 @@ export default {
}, },
methods: { methods: {
getDeviceInfo() { getDeviceInfo() {
this.$u.get(`/bst/device?id=${this.id}`).then((res) => { this.$u.get(`/bst/device?id=${this.id}&supportLocation=true`).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.vehicleNum = res.data.vehicleNum this.vehicleNum = res.data.vehicleNum
this.deviceNumber = res.data.sn this.deviceNumber = res.data.sn

View File

@ -1841,7 +1841,7 @@
}, },
deviceInfo() { deviceInfo() {
this.markers = [] this.markers = []
this.$u.get(`/bst/device?id=${this.sn}&refresh=true`).then((res) => { this.$u.get(`/bst/device?id=${this.sn}&refresh=true&supportLocation=true`).then((res) => {
console.log(res, 'rererer') console.log(res, 'rererer')
if (res.code === 200) { if (res.code === 200) {
if (res.data.music == 0) { if (res.data.music == 0) {

View File

@ -1635,8 +1635,6 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
// uni.hideLoading()
// this.bulebtn(4)
} }
}) })
} else if (num == 9) { } else if (num == 9) {
@ -1883,7 +1881,7 @@
if (this.buleclose == false && this.buleopen == false && this.bulerebort == false && if (this.buleclose == false && this.buleopen == false && this.bulerebort == false &&
this.bulering == false) { this.bulering == false) {
if (this.buletxt == '蓝牙连接中') { if (this.buletxt == '蓝牙连接中') {
this.buletxt = '蓝牙连接成功' this.buletxt = '蓝牙连接成功!'
} }
} }
if (this.buleclose) { if (this.buleclose) {
@ -2022,7 +2020,7 @@
deviceInfo() { deviceInfo() {
this.markers = []; this.markers = [];
this.polygon = []; // polygon this.polygon = []; // polygon
this.$u.get(`/bst/device?sn=${this.sn}`).then((res) => { this.$u.get(`/bst/device?sn=${this.sn}&supportLocation=true`).then((res) => {
console.log(res, 'rererer'); console.log(res, 'rererer');
if (res.code === 200) { if (res.code === 200) {
this.deviceInfos = res.data; this.deviceInfos = res.data;
@ -2229,18 +2227,15 @@
}, },
convertBoundaryToPolylines(boundaries, num) { convertBoundaryToPolylines(boundaries, num) {
if (!boundaries || !Array.isArray(boundaries)) return []; if (!boundaries || !Array.isArray(boundaries)) return [];
return boundaries.map(boundary => { return boundaries.map(boundary => {
if (!boundary) return null; if (!boundary) return null;
try { try {
const coords = JSON.parse(boundary); const coords = JSON.parse(boundary);
if (!Array.isArray(coords)) return null; if (!Array.isArray(coords)) return null;
const points = coords.map(coord => ({ const points = coords.map(coord => ({
latitude: coord[1], latitude: coord[1],
longitude: coord[0] longitude: coord[0]
})); }))
let style = {}; let style = {};
if (num === 1) { if (num === 1) {
style = { style = {
@ -2270,7 +2265,6 @@
borderColor: "#FFC107" borderColor: "#FFC107"
}; };
} }
return { return {
points: points, points: points,
...style ...style
@ -2293,8 +2287,7 @@
width: 20, width: 20,
height: 28.95, height: 28.95,
iconPath: item.type == 1 ? iconPath: item.type == 1 ?
'https://lxnapi.ccttiot.com/bike/img/static/up2xXqAgwCX5iER600k3' : item 'https://lxnapi.ccttiot.com/bike/img/static/up2xXqAgwCX5iER600k3' : item.type == 2 ?
.type == 2 ?
'https://lxnapi.ccttiot.com/bike/img/static/uDNY5Q4zOiZTCBTA2Jdq' : 'https://lxnapi.ccttiot.com/bike/img/static/uDNY5Q4zOiZTCBTA2Jdq' :
'https://lxnapi.ccttiot.com/bike/img/static/u53BAQcFIX3vxsCzEZ7t', 'https://lxnapi.ccttiot.com/bike/img/static/u53BAQcFIX3vxsCzEZ7t',
callout: { callout: {
@ -2302,8 +2295,7 @@
color: '#ffffff', color: '#ffffff',
fontSize: 14, fontSize: 14,
borderRadius: 10, borderRadius: 10,
bgColor: item.type == 1 ? '#3A7EDB' : item.type == 2 ? '#FF473E' : bgColor: item.type == 1 ? '#3A7EDB' : item.type == 2 ? '#FF473E' : '#FFC107',
'#FFC107',
padding: 6, padding: 6,
display: 'ALWAYS' display: 'ALWAYS'
}, },
@ -2335,7 +2327,6 @@
return null; return null;
} }
}, },
convertBoundaryToPolygons(boundaries, num) { convertBoundaryToPolygons(boundaries, num) {
if (!boundaries || !boundaries.length) return []; if (!boundaries || !boundaries.length) return [];
const colors = { const colors = {
@ -2353,28 +2344,27 @@
} }
}; };
return boundaries.map(boundary => { return boundaries.map(boundary => {
if (!boundary) return null; if (!boundary) return null
try { try {
const coords = JSON.parse(boundary); const coords = JSON.parse(boundary)
if (!Array.isArray(coords)) return null; if (!Array.isArray(coords)) return null
const points = coords.map(coord => ({ const points = coords.map(coord => ({
latitude: coord[1], latitude: coord[1],
longitude: coord[0] longitude: coord[0]
})); }))
return { return {
points: points, points: points,
fillColor: colors[num].fill, fillColor: colors[num].fill,
strokeColor: colors[num].stroke, strokeColor: colors[num].stroke,
strokeWidth: 1, strokeWidth: 1,
zIndex: 1 zIndex: 1
}; }
} catch (error) { } catch (error) {
console.error("Error converting boundary to polygons:", error); console.error("Error converting boundary to polygons:", error)
return null; return null
} }
}).filter(Boolean); }).filter(Boolean)
}, },
getParking() { getParking() {
@ -2383,32 +2373,29 @@
}; };
this.$u.get('/bst/areaSub/listByAreaId', data).then((res) => { this.$u.get('/bst/areaSub/listByAreaId', data).then((res) => {
if (res.code === 200) { if (res.code === 200) {
const filteredData = res.data.filter(item => item.status != 1); const filteredData = res.data.filter(item => item.status != 1)
const type1Data = []; const type1Data = []
const type2Data = []; const type2Data = []
const type3Data = []; const type3Data = []
filteredData.forEach(row => { filteredData.forEach(row => {
if (row.type == 1) type1Data.push(row); if (row.type == 1) type1Data.push(row)
else if (row.type == 2) type2Data.push(row); else if (row.type == 2) type2Data.push(row)
else if (row.type == 3) type3Data.push(row); else if (row.type == 3) type3Data.push(row)
}); })
// type1 // type1
const validBoundaries = type1Data.map(row => row.boundaryStr).filter(boundary => const validBoundaries = type1Data.map(row => row.boundaryStr).filter(boundary =>
typeof boundary === 'string' && boundary.trim() !== ''); typeof boundary === 'string' && boundary.trim() !== '')
const polygons = this.convertBoundaryToPolygons(validBoundaries, 1); const polygons = this.convertBoundaryToPolygons(validBoundaries, 1)
if (polygons && polygons.length > 0) { if (polygons && polygons.length > 0) {
this.polygon = this.polygon.concat(polygons); this.polygon = this.polygon.concat(polygons)
} }
// type2 // type2
const validBoundaries1 = type2Data.map(row => row.boundaryStr).filter(boundary => const validBoundaries1 = type2Data.map(row => row.boundaryStr).filter(boundary =>
typeof boundary === 'string' && boundary.trim() !== ''); typeof boundary === 'string' && boundary.trim() !== '')
const polygons1 = this.convertBoundaryToPolygons(validBoundaries1, 2); const polygons1 = this.convertBoundaryToPolygons(validBoundaries1, 2)
if (polygons1 && polygons1.length > 0) { if (polygons1 && polygons1.length > 0) {
this.polygon = this.polygon.concat(polygons1); this.polygon = this.polygon.concat(polygons1)
} }
// type3 // type3
const validBoundaries2 = type3Data.map(row => row.boundaryStr).filter(boundary => const validBoundaries2 = type3Data.map(row => row.boundaryStr).filter(boundary =>
typeof boundary === 'string' && boundary.trim() !== ''); typeof boundary === 'string' && boundary.trim() !== '');

View File

@ -259,7 +259,7 @@ export default {
name: this.devicename name: this.devicename
}) })
uni.reLaunch({ uni.reLaunch({
url:'/pages/myorder/returned/index' url:'/pages/index/index'
}) })
},1000) },1000)
}else{ }else{

View File

@ -13,26 +13,11 @@
</map> </map>
<view class="lticon"> <view class="lticon">
<image style="width: 80rpx;height: 80rpx;" src="https://api.ccttiot.com/smartmeter/img/static/ucMoHgzqfBeC1lh2vo4Q" @click="btnbz" mode=""></image> <image style="width: 80rpx;height: 80rpx;" src="https://api.ccttiot.com/smartmeter/img/static/ucMoHgzqfBeC1lh2vo4Q" @click="btnbz" mode=""></image>
<image style="width: 80rpx;height: 80rpx;" src="https://api.ccttiot.com/smartmeter/img/static/uaxzNTZkmyPdh90eae7m" @click="btnkefu" mode=""></image> <!-- <image style="width: 80rpx;height: 80rpx;" src="https://api.ccttiot.com/smartmeter/img/static/uc22ylFbNAU10aRjwdcq" @click="btnkefu" mode=""></image> -->
</view> </view>
<image style="width: 80rpx;height: 80rpx;position: fixed;right: 22rpx;bottom: 586rpx;" @click="toggleIconAndCallout" <image style="width: 80rpx;height: 80rpx;position: fixed;right: 22rpx;bottom: 840rpx;" @click="toggleIconAndCallout"
src="https://api.ccttiot.com/smartmeter/img/static/u6r5tQVe2VO6bvxTLeFT" mode=""></image> src="https://api.ccttiot.com/smartmeter/img/static/u6r5tQVe2VO6bvxTLeFT" mode=""></image>
<image style="width: 80rpx;height: 80rpx;position: fixed;right: 22rpx;bottom: 706rpx;" src="https://api.ccttiot.com/smartmeter/img/static/ug1ExhYsZmdWWjVvjjuk" @click="btnhuiz" mode=""></image> <image style="width: 80rpx;height: 80rpx;position: fixed;right: 22rpx;bottom: 740rpx;" src="https://api.ccttiot.com/smartmeter/img/static/ug1ExhYsZmdWWjVvjjuk" @click="btnhuiz" mode=""></image>
<!-- 右侧图标 -->
<view class="rticon">
<!-- <image v-if="rtindex != 1" src="https://api.ccttiot.com/smartmeter/img/static/uRtmbcCSrLLZ7hkGFeg2"
@click="btntap(1)" mode=""></image>
<image v-if="rtindex == 1" src="https://api.ccttiot.com/smartmeter/img/static/u8zXd0xYhLKD0BvgZDVv"
@click="btntap(1)" mode=""></image>
<image v-if="rtindex != 2" src="https://api.ccttiot.com/smartmeter/img/static/uySqZZMETPWLmP26Qajc"
@click="btntap(2)" mode=""></image>
<image v-if="rtindex == 2" :src="iconobj.bikertpicgl"
@click="btntap(2)" mode=""></image>
<image v-if="rtindex != 3" src="https://api.ccttiot.com/smartmeter/img/static/unaFMV8lmyqWVyY2uOhR"
@click="btntap(3)" mode=""></image>
<image v-if="rtindex == 3" src="https://api.ccttiot.com/smartmeter/img/static/uEWVQFGBf10XJn8aTlaZ"
@click="btntap(3)" mode=""></image> -->
</view>
<!-- 点击地图门店弹窗 --> <!-- 点击地图门店弹窗 -->
<view class="shoptc" v-if="shoptcflag" @click="btnmendain"> <view class="shoptc" v-if="shoptcflag" @click="btnmendain">
<view class="top"> <view class="top">
@ -161,13 +146,13 @@
<text v-if="orderobj.deviceRemainingPower >= 20 && orderobj.deviceRemainingPower < 50" style="color: #e87f25;">{{orderobj.deviceRemainingPower == null ? '--' : orderobj.deviceRemainingPower}}%</text> <text v-if="orderobj.deviceRemainingPower >= 20 && orderobj.deviceRemainingPower < 50" style="color: #e87f25;">{{orderobj.deviceRemainingPower == null ? '--' : orderobj.deviceRemainingPower}}%</text>
<text v-if="orderobj.deviceRemainingPower >= 0 && orderobj.deviceRemainingPower < 20 " style="color: #e81e1e;">{{orderobj.deviceRemainingPower == null ? '--' : orderobj.deviceRemainingPower}}%</text> <text v-if="orderobj.deviceRemainingPower >= 0 && orderobj.deviceRemainingPower < 20 " style="color: #e81e1e;">{{orderobj.deviceRemainingPower == null ? '--' : orderobj.deviceRemainingPower}}%</text>
</view> </view>
<view class="" style="margin-left: 20rpx;font-weight: 600;font-size: 28rpx;color: #3D3D3D;margin-top: 10rpx;"> <view class="" style="margin-left: 20rpx;font-weight: 600;font-size: 28rpx;color: #3D3D3D;">
可骑行约{{orderobj.deviceRemainEndurance == null ? '--' : orderobj.deviceRemainEndurance}}km 可骑行约{{orderobj.deviceRemainEndurance == null ? '--' : orderobj.deviceRemainEndurance}}km
</view> </view>
</view> </view>
<view class="" style="margin-top: 10rpx;color: #4C97E7;" @click="btnguzhang"> <view class="" style="font-size: 28rpx;color: #4297F3;display: flex;align-items: center;" @click="btnkefu">
故障上报 <image style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" src="https://api.ccttiot.com/smartmeter/img/static/utZyZyusfqjD0TO0iOgZ" mode=""></image> 联系客服
</view> </view>
</view> </view>
<view class="cont_li"> <view class="cont_li">
<view class="one"> <view class="one">
@ -189,7 +174,7 @@
</view> </view>
<view class="one"> <view class="one">
<view class="oneone"> <view class="oneone">
{{orderobj.orderDistance == null ? '0.00' : orderobj.orderDistance}} <text>km</text> {{orderobj.orderDistance == null ? '0.0' : (orderobj.orderDistance / 1000).toFixed(1)}} <text>km</text>
</view> </view>
<view class="twotwo"> <view class="twotwo">
骑行距离 骑行距离
@ -204,6 +189,7 @@
<view class="botbtn"> <view class="botbtn">
<view class="suocheanniu"> <view class="suocheanniu">
<image src="https://api.ccttiot.com/smartmeter/img/static/uYk2NdudtWdF6lvJCbSW" @click="btnxl" mode=""></image> <image src="https://api.ccttiot.com/smartmeter/img/static/uYk2NdudtWdF6lvJCbSW" @click="btnxl" mode=""></image>
<image src="https://api.ccttiot.com/smartmeter/img/static/ubg3Go1JkwJmzHxUqBdT" @click="btnghbike" mode=""></image>
<view class="jsdd" @click.stop="btnqd"> <view class="jsdd" @click.stop="btnqd">
{{orderobj.deviceLockStatus == 1 ? '临时锁车' : '开锁'}} {{orderobj.deviceLockStatus == 1 ? '临时锁车' : '开锁'}}
</view> </view>
@ -212,11 +198,16 @@
</view> </view>
</view> </view>
</view> </view>
<view class="" style="font-weight: 600;font-size: 32rpx;color: #4297F3;width: 100%;text-align: center;margin-top: 30rpx;" @click="btnghbike"> <!-- <view class="" style="font-weight: 600;font-size: 32rpx;color: #4297F3;width: 100%;text-align: center;margin-top: 30rpx;" @click="btnghbike">
换车骑行 换车
</view> </view> -->
<view class="" style="color: #7C7C7C;font-size: 24rpx;margin-top: 30rpx;width: 100%;text-align: center;"> <view class="" style="color: #7C7C7C;font-size: 24rpx;margin-top: 30rpx;width: 100%;text-align: center;display: flex;justify-content: space-between;padding: 0 50rpx;">
车牌{{orderobj.deviceVehicleNum == null ? '--' : orderobj.deviceVehicleNum}} <text style="margin-left: 40rpx;">SN{{orderobj.deviceSn == null ? '--' : orderobj.deviceSn}}</text> <view class="">
车牌{{orderobj.deviceVehicleNum == null ? '--' : orderobj.deviceVehicleNum}} <text style="margin-left: 40rpx;">SN{{orderobj.deviceSn == null ? '--' : orderobj.deviceSn}}</text>
</view>
<view class="" style="color: #4C97E7;" @click="btnguzhang">
故障上报
</view>
</view> </view>
</view> </view>
@ -250,8 +241,8 @@
需额外支付<text>{{fajinobj.manageFee > 0 ? fajinobj.manageFee : fajinobj.dispatchFee > 0 ? fajinobj.dispatchFee : ''}}</text><text 需额外支付<text>{{fajinobj.manageFee > 0 ? fajinobj.manageFee : fajinobj.dispatchFee > 0 ? fajinobj.dispatchFee : ''}}</text><text
@click="btntcd" v-if="fajinobj.dispatchFee > 0">查看最近停车点</text> <text v-if="fajinobj.manageFee > 0">请规范还车</text> @click="btntcd" v-if="fajinobj.dispatchFee > 0">查看最近停车点</text> <text v-if="fajinobj.manageFee > 0">请规范还车</text>
</view> </view>
<image src="https://api.ccttiot.com/%E5%88%B9%E8%BD%A6-1756546350335.gif" class="tcimg" mode="aspectFill"> <image v-if="fajinobj.manageFee > 0" src="https://api.ccttiot.com/smartmeter/img/static/u1JsP3mFqiYgfxrlfvA3" class="tcimg" mode="aspectFill"></image>
</image> <image v-if="fajinobj.dispatchFee > 0" src="https://api.ccttiot.com/smartmeter/img/static/uVZ6KuaUpYHJgOeSpbv4" class="tcimg" mode="aspectFill"></image>
<view class="btnan"> <view class="btnan">
<view class="fj" @click="btnfajin"> <view class="fj" @click="btnfajin">
缴纳罚金还车 缴纳罚金还车
@ -266,9 +257,14 @@
<!-- 统一动画 --> <!-- 统一动画 -->
<view class="tongyi" v-if="wenbentxtflag"> <view class="tongyi" v-if="wenbentxtflag">
<view class="top"> <view class="top">
<image src="https://api.ccttiot.com/smartmeter/img/static/uft9oJbJIjOd6whGG3cM" mode=""></image> {{wenbentxt}} <text class="percentage-text" @click="restartPercentageAnimation">{{Math.floor(percentage)}}%</text> <image src="https://api.ccttiot.com/smartmeter/img/static/uft9oJbJIjOd6whGG3cM" mode=""></image>
{{wenbentxt}} <text class="percentage-text" @click="restartPercentageAnimation">{{Math.floor(percentage)}}%</text>
</view> </view>
<image class="ddc" src="https://api.ccttiot.com/%E5%88%B9%E8%BD%A6-1756546350335.gif" mode=""></image> <view class="" style="width: 100%;text-align: center;margin-top: 20rpx;font-size: 26rpx;color: #3D3D3D;">
{{caozuotext}}
</view>
<image class="ddc" v-if="caozuotext == '骑行前请检查车轿刹车是否灵敏,安全骑行'" src="https://api.ccttiot.com/%E5%88%B9%E8%BD%A6-1756546350335.gif" mode=""></image>
<image class="ddc" v-else src="https://api.ccttiot.com/smartmeter/img/static/uKOCB6yMx4VMyBgblz3H" mode=""></image>
</view> </view>
<view class="mask" v-if="wenbentxtflag"></view> <view class="mask" v-if="wenbentxtflag"></view>
@ -288,7 +284,8 @@
还是不行查看教程 还是不行查看教程
</view> </view>
</view> </view>
<image class="ddc" style="margin-top: 20rpx;" src="https://api.ccttiot.com/%E5%88%B9%E8%BD%A6-1756546350335.gif" mode=""></image> <image class="ddc" v-if="caozuotext == '骑行前请检查车轿刹车是否灵敏,安全骑行'" src="https://api.ccttiot.com/%E5%88%B9%E8%BD%A6-1756546350335.gif" mode=""></image>
<image class="ddc" v-else src="https://api.ccttiot.com/smartmeter/img/static/uKOCB6yMx4VMyBgblz3H" mode=""></image>
<view class="anniu"> <view class="anniu">
<view class="lx" @click="btnkefu"> <view class="lx" @click="btnkefu">
联系客服 联系客服
@ -394,6 +391,7 @@
daohangflag:false, daohangflag:false,
distance:0, distance:0,
chexq:{}, chexq:{},
caozuotext:''
} }
}, },
onLoad() { onLoad() {
@ -1232,6 +1230,7 @@
}, },
// //
btnjsdd() { btnjsdd() {
this.caozuotext = '还车前请将车辆停放于运营区和停车区内'
if(this.jieshuflag == true){ if(this.jieshuflag == true){
this.jieshuflag = false this.jieshuflag = false
this.$u.get("/app/order/mineProcessing").then((res) => { this.$u.get("/app/order/mineProcessing").then((res) => {
@ -1653,6 +1652,7 @@
}, },
// //
btnghbike() { btnghbike() {
this.caozuotext = '换车前请将车辆停放于运营区和停车区内'
if(this.jiance == true){ if(this.jiance == true){
xBlufi.initXBlufi(1) xBlufi.initXBlufi(1)
xBlufi.notifyStartDiscoverBle({ xBlufi.notifyStartDiscoverBle({
@ -1676,7 +1676,7 @@
} }
}) })
let that = this let that = this
that.wenbentxt = '车辆连接中...' that.wenbentxt = '车辆锁车中...'
that.wenbentxtflag = true that.wenbentxtflag = true
let query = { let query = {
orderId: that.orderobj.orderId, orderId: that.orderobj.orderId,
@ -1690,7 +1690,7 @@
that.wenbentxt = '' that.wenbentxt = ''
that.wenbentxtflag = false that.wenbentxtflag = false
uni.showToast({ uni.showToast({
title: '临时锁车成功', title: '锁车成功',
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
@ -1742,7 +1742,7 @@
url: '/page_user/huanbike?sn=' + that.orderobj.deviceSn + '&orderid=' + that.orderobj.orderId + '&deviceid=' + that.deviceid + '&devicename=' + that.devicename url: '/page_user/huanbike?sn=' + that.orderobj.deviceSn + '&orderid=' + that.orderobj.orderId + '&deviceid=' + that.deviceid + '&devicename=' + that.devicename
}) })
}else{ }else{
that.wenbentxt = '蓝牙连接中...' that.wenbentxt = '车辆锁车中...'
const findDevice = () =>{ const findDevice = () =>{
that.ver_dataflag = 2 that.ver_dataflag = 2
const matchedDevice = that.devicesarr.find(device => { const matchedDevice = that.devicesarr.find(device => {
@ -1871,6 +1871,7 @@
}, },
// and // and
btnqd() { btnqd() {
this.caozuotext = '骑行前请检查车轿刹车是否灵敏,安全骑行'
if(this.jiance == true){ if(this.jiance == true){
xBlufi.initXBlufi(1) xBlufi.initXBlufi(1)
xBlufi.notifyStartDiscoverBle({ xBlufi.notifyStartDiscoverBle({
@ -3186,7 +3187,7 @@
.conts_box { .conts_box {
width: 100%; width: 100%;
height: 560rpx; height: 500rpx;
margin: 0 auto; margin: 0 auto;
margin-top: 38rpx; margin-top: 38rpx;
background: #FFFFFF; background: #FFFFFF;
@ -3221,7 +3222,6 @@
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #3D3D3D; color: #3D3D3D;
margin-top: 10rpx;
display: flex; display: flex;
align-items: center; align-items: center;
image{ image{
@ -3280,7 +3280,7 @@
height: 88rpx; height: 88rpx;
} }
.jsdd{ .jsdd{
width: 210rpx; width: 190rpx;
height: 88rpx; height: 88rpx;
background: rgba(76,151,231,0); background: rgba(76,151,231,0);
border-radius: 20rpx 20rpx 20rpx 20rpx; border-radius: 20rpx 20rpx 20rpx 20rpx;
@ -3295,7 +3295,7 @@
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: 36rpx;
color: #FFFFFF; color: #FFFFFF;
width: 300rpx; width: 240rpx;
height: 88rpx; height: 88rpx;
text-align: center; text-align: center;
line-height: 88rpx; line-height: 88rpx;
@ -3308,7 +3308,7 @@
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
margin-top: 30rpx; margin-top: 30rpx;
padding: 0 54rpx; padding: 0 30rpx;
} }
.imgpic{ .imgpic{
display: flex; display: flex;
@ -3776,29 +3776,24 @@
color: #0D75E5; color: #0D75E5;
margin-right: 20rpx; margin-right: 20rpx;
} }
.dizhi { .dizhi {
font-size: 28rpx; font-size: 28rpx;
color: #808080; color: #808080;
} }
} }
.top { .top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.name { .name {
font-size: 32rpx; font-size: 32rpx;
color: #3D3D3D; color: #3D3D3D;
font-weight: 600; font-weight: 600;
} }
.zu { .zu {
font-size: 24rpx; font-size: 24rpx;
color: #3D3D3D; color: #3D3D3D;
display: flex; display: flex;
align-items: center; align-items: center;
image { image {
width: 22rpx; width: 22rpx;
height: 22rpx; height: 22rpx;
@ -3806,7 +3801,6 @@
} }
} }
} }
.rticon { .rticon {
position: fixed; position: fixed;
right: 28rpx; right: 28rpx;
@ -3819,12 +3813,10 @@
margin-top: 32rpx; margin-top: 32rpx;
} }
} }
.lticon { .lticon {
position: fixed; position: fixed;
left: 28rpx; right: 20rpx;
top: 200rpx; bottom: 940rpx;
image { image {
width: 88rpx; width: 88rpx;
height: 88rpx; height: 88rpx;
@ -3832,7 +3824,6 @@
margin-top: 32rpx; margin-top: 32rpx;
} }
} }
.map { .map {
width: 100%; width: 100%;
height: 130vh; height: 130vh;

View File

@ -268,9 +268,8 @@
return label.includes(searchValue) || deptName.includes(searchValue); return label.includes(searchValue) || deptName.includes(searchValue);
}); });
} }
}, },
selectItem(item) { selectItem(item) {
this.confirm(item)
this.show = false this.show = false
this.searchKey = '' // this.searchKey = '' //
this.displayList = this.list // this.displayList = this.list //

View File

@ -103,7 +103,7 @@
<view class="container"> <view class="container">
<view class="scroll-text"> <view class="scroll-text">
<view class="scroll-item"> <view class="scroll-item">
{{announcements.noticeTitle == null ? '暂无最新公告' : announcements.noticeTitle}} {{announcements.noticeTitle == null ? '欢迎使用小鹿骑行' : announcements.noticeTitle}}
</view> </view>
</view> </view>
</view> </view>
@ -139,11 +139,11 @@
</view> </view>
</view> </view>
<view class="kuaijie"> <view class="kuaijie">
<image @click="btnpage(2)" style="height: 100rpx;margin-top: 16rpx;" src="https://api.ccttiot.com/smartmeter/img/static/udUQI8zA1tYUEndx9guO" mode=""></image> <!-- 订单 --> <image @click="btnpage(2)" src="https://api.ccttiot.com/smartmeter/img/static/uz1m5rLPQXfZ4DqusQAD" mode=""></image> <!-- 订单 -->
<image @click="btntiao(2)" src="https://api.ccttiot.com/smartmeter/img/static/uECTLFe6fzWgzNzVdsPs" mode=""></image> <!-- 使用帮助 --> <image @click="btntiao(2)" src="https://api.ccttiot.com/smartmeter/img/static/uEtD1Iy9b24neWNWZ32U" mode=""></image> <!-- 使用帮助 -->
<image @click="btnpage(4)" src="https://api.ccttiot.com/smartmeter/img/static/uPyDAy2sWgh4UkDr3yX4" mode=""></image> <!-- 编号开锁 --> <image @click="btnpage(4)" src="https://api.ccttiot.com/smartmeter/img/static/uSoJx3BETr3hfqKSW4hN" mode=""></image> <!-- 编号开锁 -->
<image @click="btntiao(3)" src="https://api.ccttiot.com/smartmeter/img/static/uxLGGshcH6nr557ffO5E" mode=""></image> <!-- 意见反馈 --> <image @click="btntiao(3)" src="https://api.ccttiot.com/smartmeter/img/static/uViw2fP4m96qI56WKgfO" mode=""></image> <!-- 意见反馈 -->
<image @click="btnkf" src="https://api.ccttiot.com/smartmeter/img/static/up53i8F9cn9wajU8dXuS" mode=""></image> <!-- 客服 --> <image @click="btnkf" src="https://api.ccttiot.com/smartmeter/img/static/ufnz4ed8lFPMObtApooR" mode=""></image> <!-- 客服 -->
</view> </view>
<!-- 商户轮播图 广告 --> <!-- 商户轮播图 广告 -->
<view class="guanggao"> <view class="guanggao">
@ -423,8 +423,6 @@
uni.setStorageSync('token', res.token) uni.setStorageSync('token', res.token)
taht.getinfo() taht.getinfo()
taht.getlunbo() taht.getlunbo()
}else{
taht.getinfo()
} }
}) })
} }
@ -1730,7 +1728,7 @@
margin-top: 32rpx; margin-top: 32rpx;
image{ image{
width: 96rpx; width: 96rpx;
height: 116rpx; height: 96rpx;
} }
} }
} }