11
This commit is contained in:
parent
fcef0605e0
commit
8cef1a3f14
|
@ -13,13 +13,13 @@
|
|||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uAjjz6wpQALYAGUDx5UL" mode=""></image>
|
||||
</view>
|
||||
<view class="tip_txt" style="font-weight: 600;font-size: 32rpx;color: #3D3D3D;">
|
||||
保持车辆录像的完整清晰
|
||||
保持车辆录像的完整清晰,不要随意拍摄,确保视频中车辆出境,并且出现车牌号
|
||||
</view>
|
||||
<view class="vadio_png">
|
||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uVuGMvfe3xlz3x8WSmcC" mode=""></image>
|
||||
</view>
|
||||
|
||||
<view class="btn" @click="sub">
|
||||
<view class="btn" @click="sub" :class='videoUrl!="" ? "act1": ""'>
|
||||
提交
|
||||
</view>
|
||||
</view>
|
||||
|
@ -78,7 +78,7 @@
|
|||
// uni.hideLoading()
|
||||
if (res.code === 200) {
|
||||
// this.freList=res.rows
|
||||
this.orderinfo=res.data
|
||||
this.orderinfo=res.data[0]
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
|
@ -218,13 +218,16 @@
|
|||
justify-content: center;
|
||||
width: 680rpx;
|
||||
height: 90rpx;
|
||||
background: #64B6A7;
|
||||
background: rgba(100,182,167,0.5);
|
||||
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||
|
||||
font-weight: 500;
|
||||
font-size: 40rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.act1{
|
||||
background: #64B6A7;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -148,6 +148,15 @@
|
|||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "worke/AccountDetails",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
}
|
||||
// {
|
||||
// "path" : "worke/bind_sn",
|
||||
|
|
|
@ -33,15 +33,15 @@
|
|||
</view>
|
||||
<view class="iconfont icon-xiangyou1"></view>
|
||||
</view>
|
||||
<view class="order_tips" :class="{ collapsed: isCollapsed }" v-if="orderinfo.status" @click="starTime">
|
||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/ukbZbyKgdFhB84ZAidyf" mode=""></image>
|
||||
<view class="order_tips_txt" :class="{ collapsed: isCollapsed }">
|
||||
您有正在骑行中的订单.....
|
||||
</view>
|
||||
<view class="iconfont icon-xiangyou1" v-if="!isCollapsed" @click="toggleOrderTips"></view>
|
||||
<view class="iconfont icon-xiangzuo" v-if="isCollapsed" @click="toggleOrderTips"></view>
|
||||
|
||||
</view>
|
||||
<view class="order_tips" :class="{ collapsed: isCollapsed }" v-if="orderinfo.status" @click="starTime">
|
||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/ukbZbyKgdFhB84ZAidyf" mode=""></image>
|
||||
<view class="order_tips_txt" :class="{ collapsed: isCollapsed }">
|
||||
您有正在骑行中的订单.....
|
||||
</view>
|
||||
<view class="iconfont icon-xiangyou1" v-if="!isCollapsed" @click="toggleOrderTips"></view>
|
||||
<view class="iconfont icon-xiangzuo" v-if="isCollapsed" @click="toggleOrderTips"></view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
@ -158,7 +158,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="center">
|
||||
|
||||
|
||||
<view class="card" v-for="(item,index ) in freList" :key="index"
|
||||
@click.stop="changefree(item,index+1)" :class="freeListIndex==index+1?'act1':''">
|
||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uPtfF3jVLMVvEYpilzTk" mode=""
|
||||
|
@ -837,10 +837,10 @@
|
|||
<image src="https://lxnapi.ccttiot.com/bike/img/static/ugvqmfB3QYujZ6SnfTia" mode=""></image>
|
||||
</view>
|
||||
<view class="btn_box">
|
||||
|
||||
|
||||
<view class="btn4" @click="maskloading=false">
|
||||
返回
|
||||
|
||||
|
||||
</view>
|
||||
<view class="btn3" @click="tovadio()">
|
||||
去拍照
|
||||
|
@ -980,7 +980,7 @@
|
|||
toploadtxt: "开锁中0%",
|
||||
loadimg: 'https://lxnapi.ccttiot.com/bike/img/static/uRxPPoVoqmnmng6wKlij',
|
||||
tiptxt: '请定点停放,规范用车',
|
||||
maskepage:0 ,
|
||||
maskepage: 0,
|
||||
backgps: {},
|
||||
buletxt: '',
|
||||
|
||||
|
@ -1011,8 +1011,8 @@
|
|||
duration: 0,
|
||||
showordertxt: true,
|
||||
orderwidth: 688,
|
||||
|
||||
isCollapsed: false
|
||||
|
||||
isCollapsed: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -1265,17 +1265,17 @@
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
tovadio(){
|
||||
tovadio() {
|
||||
// this.seeDetail=true
|
||||
this.maskepage=0
|
||||
this.maskloading=false
|
||||
this.maskepage = 0
|
||||
this.maskloading = false
|
||||
uni.navigateTo({
|
||||
url:'/page_user/vadio_back'
|
||||
url: '/page_user/vadio_back'
|
||||
})
|
||||
},
|
||||
toggleOrderTips() {
|
||||
this.isCollapsed = !this.isCollapsed;
|
||||
},
|
||||
toggleOrderTips() {
|
||||
this.isCollapsed = !this.isCollapsed;
|
||||
},
|
||||
toggleTips() {
|
||||
if (this.showordertxt) {
|
||||
// 当内容显示时,缩小动画
|
||||
|
@ -1912,10 +1912,10 @@
|
|||
}, 2100);
|
||||
|
||||
} else if (num == 4) {
|
||||
if(this.areaInfo.returnVerify==0&&this.orderinfo.videoUrl!=''){
|
||||
if (this.areaInfo.returnVerify == 1 && !this.orderinfo.videoUrl) {
|
||||
this.maskloading = true
|
||||
this.maskepage=8
|
||||
}else{
|
||||
this.maskepage = 8
|
||||
} else {
|
||||
//还车校验
|
||||
this.maskloading = true;
|
||||
let percentage = 0;
|
||||
|
@ -1931,9 +1931,9 @@
|
|||
setTimeout(() => {
|
||||
this.cheackgps();
|
||||
}, 2100);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -4619,7 +4619,8 @@
|
|||
url: '/page_user/gzsb'
|
||||
})
|
||||
} else if (num == 6) {
|
||||
console.log('点击了');
|
||||
// console.log('点击了');
|
||||
this.sn = ''
|
||||
uni.navigateTo({
|
||||
url: '/pages/my'
|
||||
})
|
||||
|
@ -4684,6 +4685,12 @@
|
|||
icon: 'none',
|
||||
duration: 4000
|
||||
});
|
||||
} else if (this.deviceInfos.status == 6) {
|
||||
uni.showToast({
|
||||
title: '车辆调度中,请使用其他车辆',
|
||||
icon: 'none',
|
||||
duration: 4000
|
||||
});
|
||||
} else if (this.deviceInfos.status == 8) {
|
||||
uni.showToast({
|
||||
title: '车辆下线中,请使用其他车辆',
|
||||
|
@ -4792,6 +4799,13 @@
|
|||
icon: 'none',
|
||||
duration: 4000
|
||||
});
|
||||
} else if (this.deviceInfos.status ==
|
||||
6) {
|
||||
uni.showToast({
|
||||
title: '车辆调度中,请使用其他车辆',
|
||||
icon: 'none',
|
||||
duration: 4000
|
||||
});
|
||||
} else if (this.deviceInfos
|
||||
.status ==
|
||||
8) {
|
||||
|
@ -5197,60 +5211,63 @@
|
|||
// }
|
||||
// }
|
||||
.order_tips {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
// margin-top: 20rpx;
|
||||
margin-left: 34rpx;
|
||||
padding: 28rpx 41rpx;
|
||||
width: 688rpx;
|
||||
height: 110rpx;
|
||||
background: #3D3D3D;
|
||||
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3);
|
||||
border-radius: 53rpx;
|
||||
transition: width 0.5s, padding 0.5s;
|
||||
|
||||
&.collapsed {
|
||||
width: 192rpx;
|
||||
padding: 28rpx 20rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
margin-right: 34rpx;
|
||||
width: 44rpx;
|
||||
height: 51rpx;
|
||||
transition: margin-right 0.5s;
|
||||
|
||||
.order_tips.collapsed & {
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.order_tips_txt {
|
||||
font-weight: 400;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF;
|
||||
transition: opacity 0.5s, max-width 0.5s;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
||||
&.collapsed {
|
||||
opacity: 0;
|
||||
max-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-xiangyou1 {
|
||||
margin-left: auto;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.icon-xiangzuo{
|
||||
margin-left: auto;
|
||||
font-size: 38rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
// margin-top: 20rpx;
|
||||
margin-left: 34rpx;
|
||||
padding: 28rpx 41rpx;
|
||||
width: 688rpx;
|
||||
height: 110rpx;
|
||||
// background: #3D3D3D;
|
||||
background: rgba(61, 61, 61, 0.8);
|
||||
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3);
|
||||
border-radius: 53rpx;
|
||||
transition: width 0.5s, padding 0.5s;
|
||||
|
||||
&.collapsed {
|
||||
width: 192rpx;
|
||||
padding: 28rpx 20rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
margin-right: 34rpx;
|
||||
width: 44rpx;
|
||||
height: 51rpx;
|
||||
transition: margin-right 0.5s;
|
||||
|
||||
.order_tips.collapsed & {
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.order_tips_txt {
|
||||
font-weight: 400;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF;
|
||||
transition: opacity 0.5s, max-width 0.5s;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
||||
&.collapsed {
|
||||
opacity: 0;
|
||||
max-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-xiangyou1 {
|
||||
margin-left: auto;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.icon-xiangzuo {
|
||||
margin-left: auto;
|
||||
font-size: 38rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
.swiper_tips {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
@ -5259,7 +5276,7 @@
|
|||
margin: 0 auto;
|
||||
width: 688rpx;
|
||||
height: 72rpx;
|
||||
background: #3D3D3D;
|
||||
background: rgba(61, 61, 61, 0.8);
|
||||
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3);
|
||||
border-radius: 53rpx 53rpx 53rpx 53rpx;
|
||||
|
||||
|
@ -6424,7 +6441,7 @@
|
|||
justify-content: center;
|
||||
width: 470rpx;
|
||||
height: 90rpx;
|
||||
background: #1E807A ;
|
||||
background: #1E807A;
|
||||
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||
font-weight: 500;
|
||||
font-size: 40rpx;
|
||||
|
|
|
@ -229,7 +229,7 @@
|
|||
<view class="iconfont icon-xiangyou1" ></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="type_cont">
|
||||
<view class="type_cont" v-if="info.role==3||info.role==2">
|
||||
<view class="type_li" @click="topage(8)" v-if="info.role==3||info.role==2">
|
||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uyA3Cjjryy4Z9fCjs15Z" mode=""></image>
|
||||
运维人员
|
||||
|
|
|
@ -115,6 +115,14 @@
|
|||
{{deviceNum.allNum}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="cont" @click="changeidx('6')">
|
||||
<view class="text" :class="statusidx==6?'act1':''">
|
||||
调度中
|
||||
</view>
|
||||
<view class="text" :class="statusidx==6?'act1':''">
|
||||
{{deviceNum.dispatchNum}}
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="cont">
|
||||
<view class="text">
|
||||
调度设备
|
||||
|
@ -583,6 +591,27 @@
|
|||
}
|
||||
})
|
||||
})
|
||||
this.status6.forEach(item => {
|
||||
this.markers.push({
|
||||
id: parseFloat(item.sn),
|
||||
latitude: parseFloat(item.latitude),
|
||||
longitude: parseFloat(item.longitude),
|
||||
// title: item.deviceName,
|
||||
width: 40,
|
||||
height: 40,
|
||||
// joinCluster: true,
|
||||
iconPath: 'https://lxnapi.ccttiot.com/bike/img/static/u1UD93BU1vfshWFoDwgX',
|
||||
callout: {
|
||||
content: '调度中' , // 修改为你想要显示的文字内容
|
||||
color: '#2679D1', // 修改为文字颜色
|
||||
fontSize: 14, // 修改为文字大小
|
||||
borderRadius: 10, // 修改为气泡圆角大小
|
||||
bgColor: '#D4ECFF', // 修改为气泡背景颜色
|
||||
padding: 6, // 修改为气泡内边距
|
||||
display: 'ALWAYS', // 修改为气泡的显示策略
|
||||
}
|
||||
})
|
||||
})
|
||||
this.status8.forEach(item => {
|
||||
this.markers.push({
|
||||
id: parseFloat(item.sn),
|
||||
|
@ -636,6 +665,7 @@
|
|||
this.status4 = [];
|
||||
this.status8 = [];
|
||||
this.status9 = [];
|
||||
this.status6 = [];
|
||||
let data = {
|
||||
powerStart: this.rangeValue[0],
|
||||
powerEnd: this.rangeValue[1],
|
||||
|
@ -662,7 +692,9 @@
|
|||
this.status3.push(item);
|
||||
} else if (item.status == 4) {
|
||||
this.status4.push(item);
|
||||
} else if (item.status == 8) {
|
||||
}else if (item.status == 6) {
|
||||
this.status6.push(item);
|
||||
} else if (item.status == 8) {
|
||||
this.status8.push(item);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,6 +83,18 @@
|
|||
<view class="yuan" style="background: green;"></view>
|
||||
已完成
|
||||
</view>
|
||||
<view class="top_info_right" v-if="item.status==5" style="color: #FFCC00;">
|
||||
<view class="yuan" style="background: #FFCC00;"></view>
|
||||
待审核
|
||||
</view>
|
||||
<view class="top_info_right" v-if="item.status==6" style="color: #FF4444;">
|
||||
<view class="yuan" style="background: #FF4444;"></view>
|
||||
有损坏
|
||||
</view>
|
||||
<view class="top_info_right" v-if="item.status==7" style="color: #64B6A8;">
|
||||
<view class="yuan" style="background: #64B6A8;"></view>
|
||||
待官方审核
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="lines"></view>
|
||||
|
@ -147,13 +159,13 @@
|
|||
<view class="btn" v-if="item.status==4" @click="showtks(item)">
|
||||
退款
|
||||
</view>
|
||||
<view class="btn_line">
|
||||
<view class="btn_line" v-if="item.status==0||item.status==1||item.status==2||item.status==3||item.status==4">
|
||||
|
||||
</view>
|
||||
<!-- <view class="btn" v-if="item.status==4" style="width: 100%;">
|
||||
<view class="btn" v-if="item.status==5||item.status==6||item.status==7" style="width: 100%;" @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view> -->
|
||||
<view class="btn" @click="toOrderDetail(item.orderNo)">
|
||||
</view>
|
||||
<view class="btn" v-else @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
</view>
|
||||
|
@ -242,11 +254,13 @@
|
|||
<view class="btn" v-if="item.status==4" @click="showtks(item)">
|
||||
退款
|
||||
</view>
|
||||
<view class="btn_line">
|
||||
|
||||
<view class="btn_line" v-if="item.status==0||item.status==1||item.status==2||item.status==3||item.status==4">
|
||||
|
||||
</view>
|
||||
|
||||
<view class="btn" @click="toOrderDetail(item.orderNo)">
|
||||
<view class="btn" v-if="item.status==5||item.status==6||item.status==7" style="width: 100%;" @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
<view class="btn" v-else @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
</view>
|
||||
|
@ -334,11 +348,13 @@
|
|||
<view class="btn" v-if="item.status==4" @click="showtks(item)">
|
||||
退款
|
||||
</view>
|
||||
<view class="btn_line">
|
||||
|
||||
<view class="btn_line" v-if="item.status==0||item.status==1||item.status==2||item.status==3||item.status==4">
|
||||
|
||||
</view>
|
||||
|
||||
<view class="btn" @click="toOrderDetail(item.orderNo)">
|
||||
<view class="btn" v-if="item.status==5||item.status==6||item.status==7" style="width: 100%;" @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
<view class="btn" v-else @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
</view>
|
||||
|
@ -424,10 +440,13 @@
|
|||
<view class="btn" v-if="item.status==4" @click="showtks(item)">
|
||||
退款
|
||||
</view>
|
||||
<view class="btn_line">
|
||||
|
||||
<view class="btn_line" v-if="item.status==0||item.status==1||item.status==2||item.status==3||item.status==4">
|
||||
|
||||
</view>
|
||||
<view class="btn" @click="toOrderDetail(item.orderNo)">
|
||||
<view class="btn" v-if="item.status==5||item.status==6||item.status==7" style="width: 100%;" @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
<view class="btn" v-else @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
</view>
|
||||
|
@ -455,6 +474,18 @@
|
|||
<view class="yuan" style="background: green;"></view>
|
||||
已完成
|
||||
</view>
|
||||
<view class="top_info_right" v-if="item.status==5" style="color: #FFCC00;">
|
||||
<view class="yuan" style="background: #FFCC00;"></view>
|
||||
待审核
|
||||
</view>
|
||||
<view class="top_info_right" v-if="item.status==6" style="color: #FF4444;">
|
||||
<view class="yuan" style="background: #FF4444;"></view>
|
||||
有损坏
|
||||
</view>
|
||||
<view class="top_info_right" v-if="item.status==7" style="color: #64B6A8;">
|
||||
<view class="yuan" style="background: #64B6A8;"></view>
|
||||
待官方审核
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="lines"></view>
|
||||
|
@ -519,15 +550,15 @@
|
|||
<view class="btn" v-if="item.status==4" @click="showtks(item)">
|
||||
退款
|
||||
</view>
|
||||
<view class="btn_line">
|
||||
|
||||
</view>
|
||||
<!-- <view class="btn" v-if="item.status==4" style="width: 100%;">
|
||||
查看详情
|
||||
</view> -->
|
||||
<view class="btn" @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
<view class="btn_line" v-if="item.status==0||item.status==1||item.status==2||item.status==3||item.status==4">
|
||||
|
||||
</view>
|
||||
<view class="btn" v-if="item.status==5||item.status==6||item.status==7" style="width: 100%;" @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
<view class="btn" v-else @click="toOrderDetail(item.orderNo)">
|
||||
查看详情
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -1122,7 +1153,7 @@
|
|||
data = {
|
||||
vehicleNum: this.searchKeyword,
|
||||
type: '1',
|
||||
statusList: '5,6',
|
||||
statusList: '5,6,7',
|
||||
startTime: this.firsTime,
|
||||
endTime: this.lasTime,
|
||||
areaId: this.areaId
|
||||
|
|
|
@ -48,6 +48,12 @@
|
|||
车辆绑定
|
||||
</view>
|
||||
</view>
|
||||
<view class="cont" @click="topage(6)">
|
||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/u47okd0YdEQBsyhLlQIt" mode="" style="width: 50rpx;height: 50rpx;"></image>
|
||||
<view class="text">
|
||||
账户明细
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-select v-model="show" :list="list" title='选择运营区' @confirm="confirm"></u-select>
|
||||
|
@ -190,6 +196,10 @@
|
|||
// });
|
||||
// }
|
||||
// });
|
||||
}else if(num==6){
|
||||
uni.navigateTo({
|
||||
url:'/pages_admin/worke/AccountDetails'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1238,6 +1238,25 @@
|
|||
display: 'ALWAYS', // 修改为气泡的显示策略
|
||||
}
|
||||
})
|
||||
}else if (this.deviceInfos.status == 6) {
|
||||
this.markers.push({
|
||||
id: parseFloat(this.deviceInfos.sn),
|
||||
latitude: parseFloat(this.deviceInfos.latitude),
|
||||
longitude: parseFloat(this.deviceInfos.longitude),
|
||||
// title: item.deviceName,
|
||||
width: 40,
|
||||
height: 40,
|
||||
iconPath: 'https://lxnapi.ccttiot.com/bike/img/static/u1UD93BU1vfshWFoDwgX',
|
||||
callout: {
|
||||
content: '调度中', // 修改为你想要显示的文字内容
|
||||
color: '#2679D1', // 修改为文字颜色
|
||||
fontSize: 14, // 修改为文字大小
|
||||
borderRadius: 10, // 修改为气泡圆角大小
|
||||
bgColor: '#D4ECFF', // 修改为气泡背景颜色
|
||||
padding: 6, // 修改为气泡内边距
|
||||
display: 'ALWAYS', // 修改为气泡的显示策略
|
||||
}
|
||||
})
|
||||
} else if (this.deviceInfos.status == 8) {
|
||||
this.markers.push({
|
||||
id: parseFloat(this.deviceInfos.sn),
|
||||
|
|
|
@ -130,10 +130,13 @@
|
|||
<view class="vadio_type" style="color: #64B6A8;background: #E2FFFA;" v-if="orderInfo.status==4">
|
||||
审核通过
|
||||
</view>
|
||||
<view class="vadio_type" style="color: #64B6A8;background: #E2FFFA;" v-if="orderInfo.status==7">
|
||||
待官方审核
|
||||
</view>
|
||||
</view>
|
||||
<view class="vadio_box" v-if="orderInfo.videoUrl!=''">
|
||||
|
||||
<video src="https://lxnapi.ccttiot.com/bike/vadio/static/u4NKq2eQVg0QkrLP6Syw" controls="controls"
|
||||
<video :src="orderInfo.videoUrl" controls="controls"
|
||||
style="width: 100%;" @fullscreenchange="handleFullscreenChange"></video>
|
||||
|
||||
<view class="vadio_li">
|
||||
|
@ -155,6 +158,9 @@
|
|||
<view class="vadio_btn" style="background: #FF4444;" @click="unpass" v-if="orderInfo.status==5">
|
||||
有损坏
|
||||
</view>
|
||||
<view class="vadio_btn" style="background: #64B6A8 ;" @click="showck=true" v-if="orderInfo.status==6">
|
||||
押金扣款
|
||||
</view>
|
||||
<view class="vadio_btn" style="background: #64B6A8 ;" @click="callPhone">
|
||||
电话沟通
|
||||
</view>
|
||||
|
@ -370,7 +376,7 @@
|
|||
show: false,
|
||||
_mapContext: null,
|
||||
showpark: true,
|
||||
showck:true,
|
||||
showck:false,
|
||||
money:'',
|
||||
areaNum:1
|
||||
|
||||
|
@ -426,6 +432,30 @@
|
|||
},
|
||||
methods: {
|
||||
ckmoney(){
|
||||
if(this.money!=''){
|
||||
let data ={
|
||||
orderNo:this.orderId,
|
||||
status: "7" ,
|
||||
deductionAmount:this.money,
|
||||
audioFiles:''
|
||||
}
|
||||
this.$u.put("/appVerify/order/submitAudit" ,data ).then((res) => {
|
||||
if (res.code === 200) {
|
||||
// 处理接口返回的数据,将边界数据转换为地图组件需要的折线结构
|
||||
this.getOrderDetail()
|
||||
this.showck=false
|
||||
}
|
||||
}).catch(error => {
|
||||
this.showck=false
|
||||
console.error("Error fetching area data:", error);
|
||||
});
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '扣款金额不能为空',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
unpass(){
|
||||
|
|
442
pages_admin/worke/AccountDetails.vue
Normal file
442
pages_admin/worke/AccountDetails.vue
Normal file
|
@ -0,0 +1,442 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-navbar title="账户明细" :border-bottom="false" :background="bgc" title-color='#000' title-size='36' height='45'
|
||||
back-icon-color='#000'></u-navbar>
|
||||
|
||||
<view class="account_box">
|
||||
<view class="txt">
|
||||
账户余额
|
||||
</view>
|
||||
<view class="num">
|
||||
{{info.balance}}元
|
||||
</view>
|
||||
</view>
|
||||
<view class="ipt_box">
|
||||
<view class="ipt">
|
||||
<u-input v-model="amount" :border="border" placeholder='请输入提现金额'
|
||||
placeholder-style="font-size: 32rpx;color: #A6A6A6;" @input="ckinpt()" />
|
||||
</view>
|
||||
|
||||
<view class="txt" style="margin-left: auto;margin-right: 20rpx;">
|
||||
元
|
||||
</view>
|
||||
</view>
|
||||
<view class="info_card">
|
||||
<view class="info_li">
|
||||
<view class="text">提现金额:{{price}}元</view>
|
||||
<view class="txt">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info_li">
|
||||
<view class="text">实际到账:{{realprice}}元</view>
|
||||
<!-- <view class="txt" @click="showtip=!showtip">
|
||||
查看明细 <u-icon name="arrow-down" v-show="showtip"></u-icon> <u-icon name="arrow-up" v-show="showtip==false"></u-icon>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="info_li">
|
||||
<view class="text">提现手续费:{{Quantity}}元</view>
|
||||
<!-- <view class="txt">
|
||||
(单价{{eleprice}}元/度)
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="tip" v-if="showtip">
|
||||
<view class="tip_txt">
|
||||
手续费:{{xsf}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="patBtn" @click="payBtn()">
|
||||
立即提现
|
||||
</view>
|
||||
<view class="licot">
|
||||
<view class="li_box" v-for="(item,index) in list" :key="index">
|
||||
<view class="box_top">
|
||||
<view class="top_left">
|
||||
{{status(item.busType)}}
|
||||
</view>
|
||||
<view class="top_right" v-if="item.type==1">
|
||||
+{{item.amount}}
|
||||
</view>
|
||||
<view class="top_right" v-if="item.type==2" style="color: #3D3D3D;">
|
||||
-{{item.amount}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="box_bot">
|
||||
<view class="bot_left">
|
||||
{{formatDate(item.createTime)}}
|
||||
</view>
|
||||
<view class="bot_right">
|
||||
余额{{item.operatorBalance}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
bgc: {
|
||||
backgroundColor: "#fff",
|
||||
},
|
||||
showtip: false,
|
||||
areaId: null,
|
||||
amount: '',
|
||||
list: [],
|
||||
pageNum: 1,
|
||||
pageSize: 25,
|
||||
info:{},
|
||||
price:0,
|
||||
realprice:0,
|
||||
Quantity:0,
|
||||
border: false,
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
|
||||
|
||||
},
|
||||
onShow() {
|
||||
if (uni.getStorageSync('adminAreaid')) {
|
||||
this.areaId = uni.getStorageSync('adminAreaid')
|
||||
this.getlist()
|
||||
}
|
||||
this.getareaInfo()
|
||||
},
|
||||
onReachBottom() {
|
||||
// 触底时增加 pageNum 并调用 getlist 获取更多数据
|
||||
this.pageNum++;
|
||||
this.getlist();
|
||||
},
|
||||
methods: {
|
||||
ckinpt() {
|
||||
|
||||
if( parseFloat(this.amount)> parseFloat(this.info.balance)){
|
||||
|
||||
uni.showToast({
|
||||
title: '提现金额不能大于账户余额',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.amount=''
|
||||
}
|
||||
const floatValue = parseFloat(this.amount);
|
||||
const decimalPart = this.amount.split('.')[1];
|
||||
if (decimalPart && decimalPart.length > 2) {
|
||||
// 如果小数点后三位之后存在值,则截取小数点后三位之前的部分
|
||||
uni.showToast({
|
||||
title: '金额只能精确到小数点后两位',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.amount = floatValue.toFixed(2).slice(0, -1);
|
||||
}
|
||||
|
||||
// 调用 checkPrice() 方法
|
||||
this.checkPrice();
|
||||
},
|
||||
checkPrice(){
|
||||
if(this.amount!=''){
|
||||
this.price= parseFloat(this.amount);
|
||||
}else{
|
||||
this.price=0.00
|
||||
}
|
||||
|
||||
|
||||
let abb=this.amount * (parseFloat(this.info.handlingCharge)/1000)
|
||||
this.Quantity= abb.toFixed(2)
|
||||
let aaa =this.amount-this.Quantity
|
||||
this.realprice=aaa.toFixed(2)
|
||||
},
|
||||
status(type) {
|
||||
if (type == 1) {
|
||||
return '骑行订单'
|
||||
} else if (type == 2) {
|
||||
return '押金订单'
|
||||
} else if (type == 3) {
|
||||
return '押金订单退款'
|
||||
} else if (type ==4 ) {
|
||||
return '骑行订单退款'
|
||||
} else if (type == 5) {
|
||||
return '提现'
|
||||
}
|
||||
|
||||
},
|
||||
formatDate(value) {
|
||||
if (!value) return '';
|
||||
let date = new Date(value);
|
||||
let month = date.getMonth() + 1; // 月份从0开始计数,所以加1
|
||||
let day = date.getDate();
|
||||
let hours = date.getHours();
|
||||
let minutes = date.getMinutes();
|
||||
|
||||
// 确保月份、日期、小时和分钟都是两位数
|
||||
month = month < 10 ? '0' + month : month;
|
||||
day = day < 10 ? '0' + day : day;
|
||||
hours = hours < 10 ? '0' + hours : hours;
|
||||
minutes = minutes < 10 ? '0' + minutes : minutes;
|
||||
|
||||
return `${month}-${day} ${hours}:${minutes}`;
|
||||
},
|
||||
payBtn() {
|
||||
if(this.realprice!=0){
|
||||
let data = {
|
||||
amount: this.realprice
|
||||
}
|
||||
this.$u.post('/system/withdraw').then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.amount=''
|
||||
this.Quantity=0
|
||||
this.realprice=0
|
||||
this.price=0
|
||||
this.getareaInfo()
|
||||
this.getlist()
|
||||
uni.showToast({
|
||||
title: '提现成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error("Error fetching area data:", error);
|
||||
});
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '提现金额不能为0',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
getareaInfo() {
|
||||
this.$u.get('/appVerify/getDept').then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.info=res.data
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error("Error fetching area data:", error);
|
||||
});
|
||||
},
|
||||
getlist() {
|
||||
let data = {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
areaId: this.areaId
|
||||
};
|
||||
this.$u.get('/appVerify/flowList?', data).then((res) => {
|
||||
if (res.code == 200) {
|
||||
// 确保合并新获取的数据
|
||||
this.list = this.list.concat(res.rows);
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error("Error fetching area data:", error);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F7FAFE;
|
||||
}
|
||||
|
||||
.page {
|
||||
|
||||
// width: 750rpx;
|
||||
.licot {
|
||||
margin-top: 38rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
|
||||
.li_box {
|
||||
|
||||
padding: 38rpx 28rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: #ccc 2rpx solid;
|
||||
background: #FFFFFF;
|
||||
|
||||
.box_top {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
|
||||
.top_left {
|
||||
font-weight: 400;
|
||||
font-size: 32rpx;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
|
||||
.top_right {
|
||||
font-weight: 400;
|
||||
font-size: 32rpx;
|
||||
color: #12D2AC;
|
||||
}
|
||||
}
|
||||
|
||||
.box_bot {
|
||||
margin-top: 12rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
|
||||
.bot_left {
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #909090;
|
||||
}
|
||||
|
||||
.bot_right {
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #909090;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.account_box {
|
||||
padding: 38rpx;
|
||||
margin: 0 auto;
|
||||
margin-top: 38rpx;
|
||||
width: 676rpx;
|
||||
height: 196rpx;
|
||||
background: #12D2AC;
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
|
||||
.txt {
|
||||
width: 100%;
|
||||
font-weight: 400;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.num {
|
||||
margin-top: 10rpx;
|
||||
width: 100%;
|
||||
font-weight: 400;
|
||||
font-size: 48rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
.patBtn {
|
||||
margin: 0 auto;
|
||||
margin-top: 38rpx;
|
||||
// position: fixed;
|
||||
// bottom: 100rpx;
|
||||
// left: 80rpx;
|
||||
// margin-top: 152rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 590rpx;
|
||||
height: 84rpx;
|
||||
background: #12D2AC;
|
||||
border-radius: 50rpx;
|
||||
font-weight: 400;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF
|
||||
}
|
||||
|
||||
.info_card {
|
||||
margin: 0 auto;
|
||||
margin-top: 38rpx;
|
||||
// margin-top: 46rpx;
|
||||
padding: 20rpx 28rpx 40rpx 36rpx;
|
||||
width: 676rpx;
|
||||
// height: 266rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.info_li {
|
||||
margin-top: 30rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.text {
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #383838;
|
||||
}
|
||||
|
||||
.txt {
|
||||
font-weight: 400;
|
||||
font-size: 20rpx;
|
||||
color: #383838;
|
||||
}
|
||||
}
|
||||
|
||||
.tip {
|
||||
padding-top: 15rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 576rpx;
|
||||
height: 70rpx;
|
||||
background-image: url('https://api.ccttiot.com/smartmeter/img/static/uGcjoIs6xOPFWN6mJT8l');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
.tip_txt {
|
||||
|
||||
margin-left: 38rpx;
|
||||
font-weight: 400;
|
||||
font-size: 20rpx;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ipt_box {
|
||||
margin: 0 auto;
|
||||
margin-top: 50rpx;
|
||||
width: 676rpx;
|
||||
height: 122rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
margin-top: 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-weight: 400;
|
||||
font-size: 32rpx;
|
||||
color: #A6A6A6;
|
||||
|
||||
.ipt {
|
||||
margin-left: 20rpx;
|
||||
margin-right: 10rpx;
|
||||
|
||||
/deep/.u-input__input {
|
||||
font-size: 32rpx !important;
|
||||
color: #A6A6A6 !important;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user