111
This commit is contained in:
parent
55f3974337
commit
00cb6ab410
|
@ -98,7 +98,7 @@
|
||||||
.cont {
|
.cont {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
// left: 60rpx;
|
// left: 60rpx;
|
||||||
bottom: 10rpx;
|
bottom: 0rpx;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 118rpx;
|
height: 118rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="编号开锁" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'height='36'></u-navbar>
|
<u-navbar title="编号开锁" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'height='40'></u-navbar>
|
||||||
<view class="cont">
|
<view class="cont">
|
||||||
<view class="tit">
|
<view class="tit">
|
||||||
输入编号开锁
|
输入编号开锁
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="ipt">
|
<view class="ipt">
|
||||||
|
|
||||||
<input type="text" class="ips" v-model="code" placeholder="请输入车辆二维码下方编号" placeholder-style='font-weight: 400;font-size: 36rpx;color: #808080;' />
|
<input type="text" class="ips" v-model="sn" placeholder="请输入车辆二维码下方编号" placeholder-style='font-weight: 400;font-size: 36rpx;color: #808080;' />
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" @click="sub">
|
<view class="btn" @click="sub">
|
||||||
确认开锁
|
确认开锁
|
||||||
|
@ -27,21 +27,84 @@
|
||||||
bgc: {
|
bgc: {
|
||||||
backgroundColor: "#fff",
|
backgroundColor: "#fff",
|
||||||
},
|
},
|
||||||
code:''
|
sn:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sub(){
|
sub(){
|
||||||
if(this.code==''){
|
if(this.sn==''){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入设备编号',
|
title: '请输入设备编号',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
uni.navigateTo({
|
let that = this
|
||||||
url:'/pages/index/index?sn='+this.code
|
if(uni.getStorageSync('token')){
|
||||||
})
|
this.$u.get('/app/device/info?sn=' + this.sn).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/index/index?sn='+this.code
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
wx.login({
|
||||||
|
success(res) {
|
||||||
|
if (res.code) {
|
||||||
|
console.log('登录!', res);
|
||||||
|
let data = {
|
||||||
|
wxOpenId: res.code,
|
||||||
|
|
||||||
|
};
|
||||||
|
let areaId=uni.getStorageSync('areaId');
|
||||||
|
that.$u.post('/loginByopenid?jsCode='+res.code+'&areaId='+areaId).then(res=>{
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 200) {
|
||||||
|
uni.setStorageSync('token', res.token);
|
||||||
|
that.$u.get('/app/device/info?sn=' + that.sn).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/index/index?sn='+this.code
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
}else if(res.code == 501){
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}else {
|
||||||
|
// console.log("老用户登录",res.data)
|
||||||
|
uni.redirectTo({
|
||||||
|
url:'/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="费用明细" :border-bottom="false" :background="bgc" title-color='#fff' title-size='36' height='36'></u-navbar>
|
<u-navbar title="费用明细" :border-bottom="false" :background="bgc" title-color='#fff' title-size='36' height='40'></u-navbar>
|
||||||
<view class="tit">
|
<view class="tit">
|
||||||
<view class="left">电单车</view>
|
<view class="left">电单车</view>
|
||||||
<!-- <view class="right">查看计费规则 ></view> -->
|
<!-- <view class="right">查看计费规则 ></view> -->
|
||||||
|
@ -160,3 +160,140 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" >
|
||||||
|
page{
|
||||||
|
background-color: #F7FAFE;
|
||||||
|
}
|
||||||
|
.page{
|
||||||
|
// width: 750rpx;
|
||||||
|
width: 750rpx;
|
||||||
|
// height: 530rpx;
|
||||||
|
background: linear-gradient( 180deg, #4C97E7 0.1%, rgba(255,255,255,0) 40%), #FFFFFF;
|
||||||
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
.tit{
|
||||||
|
margin-left: 86rpx;
|
||||||
|
margin-right: 86rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
.left{
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.right{
|
||||||
|
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.data{
|
||||||
|
margin-left: 86rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #808080;
|
||||||
|
}
|
||||||
|
.card{
|
||||||
|
padding:34rpx 44rpx ;
|
||||||
|
margin: 68rpx auto;
|
||||||
|
width: 672rpx;
|
||||||
|
// height: 458rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0,0,0,0.08);
|
||||||
|
border-radius: 32rpx 32rpx 32rpx 32rpx;
|
||||||
|
.card_tit{
|
||||||
|
width: 112rpx;
|
||||||
|
height: 38rpx;
|
||||||
|
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
|
||||||
|
background: linear-gradient( 0deg, #B1C3FF 0.1%, rgba(255,255,255,0) 40%), #FFFFFF;
|
||||||
|
}
|
||||||
|
.cont{
|
||||||
|
padding: 32rpx 28rpx;
|
||||||
|
margin-top: 26rpx;
|
||||||
|
width: 586rpx;
|
||||||
|
// height: 228rpx;
|
||||||
|
background: #F3F3F3;
|
||||||
|
border-radius: 26rpx 26rpx 26rpx 26rpx;
|
||||||
|
.cont_box{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
.cont_left{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.cont_right{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tip{
|
||||||
|
margin-top: 32rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #808080;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
.price{
|
||||||
|
margin-top: 28rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
.prices{
|
||||||
|
margin-left: auto;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
span{
|
||||||
|
margin-left: 2rpx;
|
||||||
|
margin-right: 2rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.showmore{
|
||||||
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
.icon-xiangshang1{
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.icon-xiangxia1{
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.info_cont{
|
||||||
|
margin-top: 12rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
.cont_left{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.cont_right{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="查看停车点" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
<u-navbar title="查看停车点" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
||||||
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
||||||
<view class="bottom_box">
|
<view class="bottom_box">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="编号开锁" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
<u-navbar title="编号开锁" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
||||||
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline">
|
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline">
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="我的订单" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="我的订单" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="card" v-for="(item, index) in computedList" :key="index">
|
<view class="card" v-for="(item, index) in computedList" :key="index">
|
||||||
<view class="top_li">
|
<view class="top_li">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
时间:{{ item.payTime }}
|
时间:{{ item.createTime }}
|
||||||
</view>
|
</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
时长:{{ item.duration }}
|
时长:{{ item.duration }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="故障上报" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="故障上报" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="cardbox">
|
<view class="cardbox">
|
||||||
<view class="tip">
|
<view class="tip">
|
||||||
<view class="ipnt">*</view>故障车编号
|
<view class="ipnt">*</view>故障车编号
|
||||||
|
@ -290,7 +290,7 @@
|
||||||
btn() {
|
btn() {
|
||||||
let _this = this
|
let _this = this
|
||||||
let math = 'static/' + _this.$u.guid(20)
|
let math = 'static/' + _this.$u.guid(20)
|
||||||
uni.chooseMessageFile({
|
uni.chooseImage({
|
||||||
count: 9,
|
count: 9,
|
||||||
type: 'all',
|
type: 'all',
|
||||||
success(res) {
|
success(res) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="认证" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="认证" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="ipt_box">
|
<view class="ipt_box">
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
|
@ -75,7 +75,9 @@
|
||||||
};
|
};
|
||||||
this.$u.get('/appVerify/user/authentication?', data).then((res) => {
|
this.$u.get('/appVerify/user/authentication?', data).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.getisInOrder()
|
uni.navigateBack({
|
||||||
|
delta: 1 // delta值为1时表示返回的页面层数
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="计费规则" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="计费规则" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="cont" style="margin-top: 50rpx;">
|
<view class="cont" style="margin-top: 50rpx;">
|
||||||
<view class="tit" style="margin-top: 50rpx;">
|
<view class="tit" style="margin-top: 50rpx;">
|
||||||
骑行服务费
|
骑行服务费
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="开锁" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
<u-navbar title="开锁" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
||||||
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
||||||
<view class="bot_btn">
|
<view class="bot_btn">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="确认开锁" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
<u-navbar title="确认开锁" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
||||||
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
||||||
<view class="bot_btn">
|
<view class="bot_btn">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="问题上报详情" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="问题上报详情" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="cont">
|
<view class="cont">
|
||||||
<view class="cont_top">
|
<view class="cont_top">
|
||||||
<view class="tit">
|
<view class="tit">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="问题上报记录" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="问题上报记录" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="card" v-for="(item,index) in list" :key="index" @click="topage(item)" v-if="list.length>=0">
|
<view class="card" v-for="(item,index) in list" :key="index" @click="topage(item)" v-if="list.length>=0">
|
||||||
<view class="top_li">
|
<view class="top_li">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
|
@ -11,8 +11,10 @@
|
||||||
处理完成 <view class="iconfont icon-xiangyou1"></view>
|
处理完成 <view class="iconfont icon-xiangyou1"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="info" v-if="!item.address">
|
||||||
<view class="info">
|
反馈地点:--
|
||||||
|
</view>
|
||||||
|
<view class="info" v-if="item.address">
|
||||||
反馈地点:{{item.address}}
|
反馈地点:{{item.address}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="行程结束" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
<u-navbar title="行程结束" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
||||||
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
|
||||||
<view class="bot_btn" v-if="false">
|
<view class="bot_btn" v-if="false">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="用车指南" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="用车指南" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="cont">
|
<view class="cont">
|
||||||
<view class="tit">
|
<view class="tit">
|
||||||
请在运营区内骑行,否则将断电
|
请在运营区内骑行,否则将断电
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="押金" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="押金" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='36'></u-navbar>
|
height='40'></u-navbar>
|
||||||
<view class="norecord" v-if="userinfo.balance==0">
|
<view class="norecord" v-if="userinfo.balance==0">
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<view class="tit">充值押金</view>
|
<view class="tit">充值押金</view>
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
bgc: {
|
bgc: {
|
||||||
backgroundColor: "#7bb2ec",
|
backgroundColor: "#F7FAFE",
|
||||||
},
|
},
|
||||||
show: false,
|
show: false,
|
||||||
bindDeviceNum: null,
|
bindDeviceNum: null,
|
||||||
|
@ -221,13 +221,15 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
sub4() {
|
sub4() {
|
||||||
|
let id = uni.getStorageSync('areaId');
|
||||||
let data = {
|
let data = {
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
|
|
||||||
// ruleId: this.freeInfo.ruleId,
|
// ruleId: this.freeInfo.ruleId,
|
||||||
money: this.areaInfo.deposit,
|
money: this.areaInfo.deposit,
|
||||||
mark: "押金充值",
|
mark: "押金充值",
|
||||||
type: '4'
|
type: '4',
|
||||||
|
areaId:this.areaId
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,15 @@
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<!-- <u-navbar :is-back="false" title="共享电动车" :border-bottom="false" :background="bgc" title-color='#2E4975'
|
<!-- <u-navbar :is-back="false" title="共享电动车" :border-bottom="false" :background="bgc" title-color='#2E4975'
|
||||||
title-size='36' height='36'></u-navbar> -->
|
title-size='36' height='36'></u-navbar> -->
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" show-location v-if="showmap"
|
||||||
:show-location="true" :markers="markers" :polygons="polyline" @markertap="onMarkerTap">
|
:latitude="latitude" :longitude="longitude" :show-location="true" :markers="markers" :polygons="polyline"
|
||||||
|
@markertap="onMarkerTap">
|
||||||
|
|
||||||
</map>
|
</map>
|
||||||
|
<view class="my-location">
|
||||||
|
<view class="img" src="https://course.jchen.art/static/images/icon-location.png"
|
||||||
|
@click="getMyLocation"></view>
|
||||||
|
</view>
|
||||||
<view class="botmbox2" v-if="showdevice">
|
<view class="botmbox2" v-if="showdevice">
|
||||||
<view class="close" @click="close()">
|
<view class="close" @click="close()">
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uBeBBKwQu2K2ZBdT7iN7" mode=""></image>
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uBeBBKwQu2K2ZBdT7iN7" mode=""></image>
|
||||||
|
@ -90,7 +96,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="center" >
|
<view class="center">
|
||||||
<!-- <view class="card" :class="freeListIndex==0?'act1':''" @click="freeListIndex=0" v-if="orderinfo.ruleId==null">
|
<!-- <view class="card" :class="freeListIndex==0?'act1':''" @click="freeListIndex=0" v-if="orderinfo.ruleId==null">
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/uYg1WNJJH1VK7RdldKE1" mode=""
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uYg1WNJJH1VK7RdldKE1" mode=""
|
||||||
v-if="freeListIndex==0"></image>
|
v-if="freeListIndex==0"></image>
|
||||||
|
@ -127,29 +133,29 @@
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</view>
|
</view>
|
||||||
<view style="padding: 18rpx;">
|
<view style="padding: 18rpx;">
|
||||||
<view class="nmtxt">
|
<view class="nmtxt">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
起步价
|
起步价
|
||||||
|
</view>
|
||||||
|
<view class="right">
|
||||||
|
{{item.ridingRuleJson.startingPrice}}元(含{{item.ridingRuleJson.startingTime}}<span
|
||||||
|
v-if="item.rentalUnit=='minutes'">分钟</span><span
|
||||||
|
v-if="item.rentalUnit=='hours'">小时</span><span
|
||||||
|
v-if="item.rentalUnit=='day'">天</span>)
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="nmtxt">
|
||||||
{{item.ridingRuleJson.startingPrice}}元(含{{item.ridingRuleJson.startingTime}}<span
|
<view class="left">
|
||||||
v-if="item.rentalUnit=='minutes'">分钟</span><span
|
超出费
|
||||||
v-if="item.rentalUnit=='hours'">小时</span><span
|
</view>
|
||||||
v-if="item.rentalUnit=='day'">天</span>)
|
<view class="right">
|
||||||
|
{{item.ridingRuleJson.timeoutPrice}}元/{{ item.ridingRuleJson.timeoutTime}}<span
|
||||||
|
v-if="item.rentalUnit=='minutes'">分钟</span><span
|
||||||
|
v-if="item.rentalUnit=='hours'">小时</span><span
|
||||||
|
v-if="item.rentalUnit=='day'">天</span>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="nmtxt">
|
|
||||||
<view class="left">
|
|
||||||
超出费
|
|
||||||
</view>
|
|
||||||
<view class="right">
|
|
||||||
{{item.ridingRuleJson.timeoutPrice}}元/{{ item.ridingRuleJson.timeoutTime}}<span
|
|
||||||
v-if="item.rentalUnit=='minutes'">分钟</span><span
|
|
||||||
v-if="item.rentalUnit=='hours'">小时</span><span
|
|
||||||
v-if="item.rentalUnit=='day'">天</span>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- <view class="tips" @click.stop='feedetail(item,index+1)'>
|
<!-- <view class="tips" @click.stop='feedetail(item,index+1)'>
|
||||||
查看详情 <view class="iconfont icon-chakanxiangqing"></view>
|
查看详情 <view class="iconfont icon-chakanxiangqing"></view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
@ -317,8 +323,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="botmbox" v-if="showindex==0">
|
<view class="botmbox" v-if="showindex==0">
|
||||||
<view class="top_btn" @click="qecodelock()">
|
<view class="top_btn" @click="qecodelock()">
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/un6Wi8CefEjy04qzvn67" mode=""
|
<image src="https://api.ccttiot.com/smartmeter/img/static/un6Wi8CefEjy04qzvn67" mode=""></image>
|
||||||
></image>
|
|
||||||
扫码开锁
|
扫码开锁
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -639,7 +644,8 @@
|
||||||
areaInfo: {},
|
areaInfo: {},
|
||||||
// feeInfo:{},
|
// feeInfo:{},
|
||||||
showfeeDetail: false,
|
showfeeDetail: false,
|
||||||
seeDetail:false
|
seeDetail: false,
|
||||||
|
showmap:true
|
||||||
|
|
||||||
// userId:this.$store.getters.userId,
|
// userId:this.$store.getters.userId,
|
||||||
}
|
}
|
||||||
|
@ -652,51 +658,51 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
console.log(e,'eeeeeeeeeeeeeeeeeee');
|
console.log(e, 'eeeeeeeeeeeeeeeeeee');
|
||||||
if(e.q){
|
if (e.q) {
|
||||||
let qParam = e.q;
|
let qParam = e.q;
|
||||||
|
|
||||||
// 第2步: URL解码q参数
|
// 第2步: URL解码q参数
|
||||||
let decodedUrl = decodeURIComponent(qParam);
|
let decodedUrl = decodeURIComponent(qParam);
|
||||||
|
|
||||||
// 第3步: 使用正则表达式解析解码后的URL并提取查询参数
|
// 第3步: 使用正则表达式解析解码后的URL并提取查询参数
|
||||||
let sn = null;
|
let sn = null;
|
||||||
let queryParams = decodedUrl.split('?')[1];
|
let queryParams = decodedUrl.split('?')[1];
|
||||||
if (queryParams) {
|
if (queryParams) {
|
||||||
let params = queryParams.split('&');
|
let params = queryParams.split('&');
|
||||||
params.forEach(param => {
|
params.forEach(param => {
|
||||||
let [key, value] = param.split('=');
|
let [key, value] = param.split('=');
|
||||||
if (key === 'sn') {
|
if (key === 'sn') {
|
||||||
sn = value;
|
sn = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.sn = sn
|
this.sn = sn
|
||||||
if(this.sn!=''){
|
if (this.sn != '') {
|
||||||
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(!this.orderinfo.status){
|
if (!this.orderinfo.status) {
|
||||||
this.deviceInfo()
|
this.deviceInfo()
|
||||||
this.showdevice = true
|
this.showdevice = true
|
||||||
this.deviceIndex = 1
|
this.deviceIndex = 1
|
||||||
this.type = 1
|
this.type = 1
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (e.sn) {
|
if (e.sn) {
|
||||||
this.sn = e.sn
|
this.sn = e.sn
|
||||||
if(this.sn!=''){
|
if (this.sn != '') {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(!this.orderinfo.status){
|
if (!this.orderinfo.status) {
|
||||||
this.deviceInfo()
|
this.deviceInfo()
|
||||||
this.showdevice = true
|
this.showdevice = true
|
||||||
this.deviceIndex = 1
|
this.deviceIndex = 1
|
||||||
this.type = 1
|
this.type = 1
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
|
@ -705,15 +711,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if(this.seeDetail==false){
|
if (this.seeDetail == false) {
|
||||||
if (uni.getStorageSync('token')) {
|
|
||||||
this.$store.dispatch('userInfo', this.$u).then(() => {
|
|
||||||
|
|
||||||
// 执行其他操作...
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
if (uni.getStorageSync('role')) {
|
if (uni.getStorageSync('role')) {
|
||||||
let abb = uni.getStorageSync('role')
|
let abb = uni.getStorageSync('role')
|
||||||
|
|
||||||
|
@ -732,10 +731,14 @@
|
||||||
that.gps.longitude = lb.longitude;
|
that.gps.longitude = lb.longitude;
|
||||||
// that.gps.latitude = '26.940805',
|
// that.gps.latitude = '26.940805',
|
||||||
// that.gps.longitude = '120.356157';
|
// that.gps.longitude = '120.356157';
|
||||||
that.latitude= lb.latitude
|
that.latitude = Number( lb.latitude.toFixed(5)) - 0.005
|
||||||
that.longitude= lb.longitude
|
that.longitude = Number( lb.longitude.toFixed(5)) + 0.005
|
||||||
|
console.log(that.areaInfo,'that.areaInfo');
|
||||||
|
if(!that.areaInfo.areaId){
|
||||||
|
that.getArea()
|
||||||
|
}
|
||||||
// that.getmarks()
|
// that.getmarks()
|
||||||
that.getArea()
|
|
||||||
|
|
||||||
//
|
//
|
||||||
},
|
},
|
||||||
|
@ -785,14 +788,20 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getMyLocation() {
|
||||||
|
uni.createMapContext("map", this).moveToLocation({
|
||||||
|
longitude: this.longitude,
|
||||||
|
latitude: this.latitude,
|
||||||
|
});
|
||||||
|
},
|
||||||
// 查看费用详情
|
// 查看费用详情
|
||||||
tofeeDetail(){
|
tofeeDetail() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/page_user/ckmx?orderId='+this.orderinfo.orderNo
|
url: '/page_user/ckmx?orderId=' + this.orderinfo.orderNo
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 扫码开锁
|
// 扫码开锁
|
||||||
qecodelock(){
|
qecodelock() {
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
onlyFromCamera: true,
|
onlyFromCamera: true,
|
||||||
scanType: ['qrCode'],
|
scanType: ['qrCode'],
|
||||||
|
@ -801,23 +810,23 @@
|
||||||
let sn = null;
|
let sn = null;
|
||||||
let queryParams = res.result.split('?')[1];
|
let queryParams = res.result.split('?')[1];
|
||||||
if (queryParams) {
|
if (queryParams) {
|
||||||
let params = queryParams.split('&');
|
let params = queryParams.split('&');
|
||||||
params.forEach(param => {
|
params.forEach(param => {
|
||||||
let [key, value] = param.split('=');
|
let [key, value] = param.split('=');
|
||||||
if (key === 'sn') {
|
if (key === 'sn') {
|
||||||
sn = value;
|
sn = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sn = sn
|
this.sn = sn
|
||||||
if(this.sn!=''){
|
if (this.sn != '') {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(!this.orderinfo.status){
|
if (!this.orderinfo.status) {
|
||||||
this.deviceInfo()
|
this.deviceInfo()
|
||||||
this.showdevice = true
|
this.showdevice = true
|
||||||
this.deviceIndex = 1
|
this.deviceIndex = 1
|
||||||
this.type = 1
|
this.type = 1
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
|
@ -835,15 +844,15 @@
|
||||||
},
|
},
|
||||||
feedetail(item, index) {
|
feedetail(item, index) {
|
||||||
this.freeInfo = item
|
this.freeInfo = item
|
||||||
this.seeDetail=true
|
this.seeDetail = true
|
||||||
try {
|
try {
|
||||||
const itemStr = encodeURIComponent(JSON.stringify(item));
|
const itemStr = encodeURIComponent(JSON.stringify(item));
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/page_user/jfgz?item=${itemStr}`
|
url: `/page_user/jfgz?item=${itemStr}`
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error serializing item:', error);
|
console.error('Error serializing item:', error);
|
||||||
}
|
}
|
||||||
// this.showfeeDetail = true
|
// this.showfeeDetail = true
|
||||||
this.freeListIndex = index
|
this.freeListIndex = index
|
||||||
},
|
},
|
||||||
|
@ -892,7 +901,7 @@
|
||||||
},
|
},
|
||||||
// 套餐直接开锁
|
// 套餐直接开锁
|
||||||
sub6() {
|
sub6() {
|
||||||
if(this.orderinfo.ruleId){
|
if (this.orderinfo.ruleId) {
|
||||||
let data = {
|
let data = {
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
sn: this.sn,
|
sn: this.sn,
|
||||||
|
@ -912,7 +921,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择套餐',
|
title: '请选择套餐',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
@ -995,7 +1004,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
starTime() {
|
starTime() {
|
||||||
this.seeDetail=false
|
this.seeDetail = false
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.timer = null
|
this.timer = null
|
||||||
this.$u.get('/app/device/info?sn=' + this.orderinfo.sn).then((res) => {
|
this.$u.get('/app/device/info?sn=' + this.orderinfo.sn).then((res) => {
|
||||||
|
@ -1230,27 +1239,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新money值
|
// 更新money值
|
||||||
this.money = totalCharge+this.orderinfo.appointmentFee
|
this.money = totalCharge + this.orderinfo.appointmentFee
|
||||||
} else if (this.orderinfo.rule.ridingRule == 2) {
|
} else if (this.orderinfo.rule.ridingRule == 2) {
|
||||||
const ridingRuleJson = JSON.parse(this.orderinfo.rule.ridingRuleJson);
|
const ridingRuleJson = JSON.parse(this.orderinfo.rule.ridingRuleJson);
|
||||||
const rules = ridingRuleJson.rule;
|
const rules = ridingRuleJson.rule;
|
||||||
let totalCharge = 0;
|
let totalCharge = 0;
|
||||||
|
|
||||||
for (let rule of rules) {
|
for (let rule of rules) {
|
||||||
const start = parseFloat(rule.start);
|
const start = parseFloat(rule.start);
|
||||||
const end = parseFloat(rule.end);
|
const end = parseFloat(rule.end);
|
||||||
const eachUnit = parseFloat(rule.eachUnit);
|
const eachUnit = parseFloat(rule.eachUnit);
|
||||||
const fee = parseFloat(rule.fee);
|
const fee = parseFloat(rule.fee);
|
||||||
|
|
||||||
if (totalTime > start && (end === 9999 || totalTime <= end)) {
|
if (totalTime > start && (end === 9999 || totalTime <= end)) {
|
||||||
// 所有时间都按照该区间的费率来计算
|
// 所有时间都按照该区间的费率来计算
|
||||||
totalCharge = Math.ceil(totalTime / eachUnit) * fee;
|
totalCharge = Math.ceil(totalTime / eachUnit) * fee;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新money值
|
// 更新money值
|
||||||
this.money = totalCharge+this.orderinfo.appointmentFee
|
this.money = totalCharge + this.orderinfo.appointmentFee
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新时间字符串
|
// 更新时间字符串
|
||||||
|
@ -1390,9 +1399,44 @@
|
||||||
// url:''
|
// url:''
|
||||||
// })
|
// })
|
||||||
} else if (num == 1) {
|
} else if (num == 1) {
|
||||||
uni.navigateTo({
|
let that = this
|
||||||
url: '/page_user/yj'
|
wx.login({
|
||||||
})
|
success(res) {
|
||||||
|
if (res.code) {
|
||||||
|
console.log('登录!', res);
|
||||||
|
let data = {
|
||||||
|
wxOpenId: res.code,
|
||||||
|
|
||||||
|
};
|
||||||
|
let areaId=uni.getStorageSync('areaId');
|
||||||
|
that.$u.post('/loginByopenid?jsCode='+res.code+'&areaId='+areaId).then(res=>{
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 200) {
|
||||||
|
uni.setStorageSync('token', res.token);
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/page_user/yj'
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
}else if(res.code == 501){
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}else {
|
||||||
|
// console.log("老用户登录",res.data)
|
||||||
|
uni.redirectTo({
|
||||||
|
url:'/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
} else if (num == 2) {
|
} else if (num == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_user/jfgz'
|
url: '/page_user/jfgz'
|
||||||
|
@ -1467,8 +1511,9 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
sub5() {
|
sub5() {
|
||||||
if( this.orderinfo.ruleId){
|
if (this.orderinfo.ruleId) {
|
||||||
this.$u.post('/appVerify/device/appointment?userId=' + this.userId + '&sn=' + this.sn + '&ruleId=' + this
|
this.$u.post('/appVerify/device/appointment?userId=' + this.userId + '&sn=' + this.sn + '&ruleId=' +
|
||||||
|
this
|
||||||
.orderinfo.ruleId + '&type=2' + '&orderNo=' + this.orderinfo.orderNo).then((res) => {
|
.orderinfo.ruleId + '&type=2' + '&orderNo=' + this.orderinfo.orderNo).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
@ -1488,7 +1533,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择套餐',
|
title: '请选择套餐',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
@ -1499,7 +1544,7 @@
|
||||||
},
|
},
|
||||||
// 确认开锁
|
// 确认开锁
|
||||||
sub1() {
|
sub1() {
|
||||||
if(this.freeInfo.ruleId){
|
if (this.freeInfo.ruleId) {
|
||||||
let data = {
|
let data = {
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
sn: this.sn,
|
sn: this.sn,
|
||||||
|
@ -1511,7 +1556,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
this.$u.post('/appVerify/device/snSwitch', data).then((res) => {
|
this.$u.post('/appVerify/device/snSwitch', data).then((res) => {
|
||||||
this.seeDetail=false
|
this.seeDetail = false
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.getisInOrder()
|
this.getisInOrder()
|
||||||
|
|
||||||
|
@ -1523,7 +1568,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择套餐',
|
title: '请选择套餐',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
@ -1534,7 +1579,7 @@
|
||||||
},
|
},
|
||||||
// 开锁购买套餐
|
// 开锁购买套餐
|
||||||
sub2() {
|
sub2() {
|
||||||
if(this.freeInfo.ruleId){
|
if (this.freeInfo.ruleId) {
|
||||||
let data = {
|
let data = {
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
sn: this.sn,
|
sn: this.sn,
|
||||||
|
@ -1583,7 +1628,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择套餐',
|
title: '请选择套餐',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
@ -1594,7 +1639,7 @@
|
||||||
},
|
},
|
||||||
// 确认预约
|
// 确认预约
|
||||||
sub3() {
|
sub3() {
|
||||||
if(this.freeInfo.ruleId){
|
if (this.freeInfo.ruleId) {
|
||||||
let data = {
|
let data = {
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
sn: this.sn,
|
sn: this.sn,
|
||||||
|
@ -1606,9 +1651,10 @@
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
this.$u.post('/appVerify/device/appointment?userId=' + this.userId + '&sn=' + this.sn + '&ruleId=' + this
|
this.$u.post('/appVerify/device/appointment?userId=' + this.userId + '&sn=' + this.sn + '&ruleId=' +
|
||||||
|
this
|
||||||
.freeInfo.ruleId).then((res) => {
|
.freeInfo.ruleId).then((res) => {
|
||||||
this.seeDetail=false
|
this.seeDetail = false
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '预约中...'
|
title: '预约中...'
|
||||||
|
@ -1627,7 +1673,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择套餐',
|
title: '请选择套餐',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
@ -1639,7 +1685,7 @@
|
||||||
},
|
},
|
||||||
// 预约购买套餐
|
// 预约购买套餐
|
||||||
sub4() {
|
sub4() {
|
||||||
if(this.freeInfo.ruleId){
|
if (this.freeInfo.ruleId) {
|
||||||
let data = {
|
let data = {
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
sn: this.sn,
|
sn: this.sn,
|
||||||
|
@ -1690,7 +1736,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择套餐',
|
title: '请选择套餐',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
@ -1700,7 +1746,7 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
getisInOrder() {
|
getisInOrder() {
|
||||||
if(this.userId){
|
if (this.userId) {
|
||||||
this.$u.post('/app/user/isInOrder?userId=' + this.userId, ).then((res) => {
|
this.$u.post('/app/user/isInOrder?userId=' + this.userId, ).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
// this.freList=res.rows
|
// this.freList=res.rows
|
||||||
|
@ -1824,7 +1870,7 @@
|
||||||
findBike() {
|
findBike() {
|
||||||
this.$u.post('/app/device/ring?sn=' + this.sn).then((res) => {
|
this.$u.post('/app/device/ring?sn=' + this.sn).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.deviceInfos = res.data
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1832,21 +1878,87 @@
|
||||||
if (e.type === 'markertap') {
|
if (e.type === 'markertap') {
|
||||||
console.log('点击了标记:', e.markerId);
|
console.log('点击了标记:', e.markerId);
|
||||||
// 这里可以根据需要处理点击标记的逻辑
|
// 这里可以根据需要处理点击标记的逻辑
|
||||||
// 阻止事件冒泡
|
// 阻止事件冒泡\
|
||||||
this.showindex = 0
|
|
||||||
this.showdevice = true
|
|
||||||
this.sn = e.markerId
|
this.sn = e.markerId
|
||||||
this.deviceInfo()
|
this.deviceInfo()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
deviceInfo() {
|
deviceInfo() {
|
||||||
this.$u.get('/app/device/info?sn=' + this.sn).then((res) => {
|
let that = this
|
||||||
if (res.code === 200) {
|
if(uni.getStorageSync('token')){
|
||||||
this.deviceInfos = res.data
|
this.$u.get('/app/device/info?sn=' + this.sn).then((res) => {
|
||||||
}
|
if (res.code === 200) {
|
||||||
})
|
this.deviceInfos = res.data
|
||||||
|
this.showindex = 0
|
||||||
|
this.showdevice = true
|
||||||
|
}else{
|
||||||
|
this.showdevice = false
|
||||||
|
this.deviceIndex = 0
|
||||||
|
this.type = 0
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
wx.login({
|
||||||
|
success(res) {
|
||||||
|
if (res.code) {
|
||||||
|
console.log('登录!', res);
|
||||||
|
let data = {
|
||||||
|
wxOpenId: res.code,
|
||||||
|
|
||||||
|
};
|
||||||
|
let areaId=uni.getStorageSync('areaId');
|
||||||
|
that.$u.post('/loginByopenid?jsCode='+res.code+'&areaId='+areaId).then(res=>{
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 200) {
|
||||||
|
uni.setStorageSync('token', res.token);
|
||||||
|
that.$u.get('/app/device/info?sn=' + that.sn).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
that.deviceInfos = res.data
|
||||||
|
that.showindex = 0
|
||||||
|
that.showdevice = true
|
||||||
|
}else{
|
||||||
|
that.showdevice = false
|
||||||
|
that.deviceIndex = 0
|
||||||
|
that.type = 0
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
}else if(res.code == 501){
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}else {
|
||||||
|
// console.log("老用户登录",res.data)
|
||||||
|
uni.redirectTo({
|
||||||
|
url:'/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// onMapTap(e) {
|
// onMapTap(e) {
|
||||||
// console.log('点击了地图非标记区域:', e);
|
// console.log('点击了地图非标记区域:', e);
|
||||||
|
@ -1854,9 +1966,9 @@
|
||||||
// },
|
// },
|
||||||
getmarks() {
|
getmarks() {
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
areaId: this.areaInfo.areaId
|
areaId: this.areaInfo.areaId
|
||||||
}
|
}
|
||||||
this.$u.get(`/app/allVehicleByArea`, data).then((res) => {
|
this.$u.get(`/app/allVehicleByArea`, data).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.listData = res.data;
|
this.listData = res.data;
|
||||||
|
@ -1878,7 +1990,7 @@
|
||||||
longitude: parseFloat(item.longitude),
|
longitude: parseFloat(item.longitude),
|
||||||
// title: item.deviceName,
|
// title: item.deviceName,
|
||||||
width: 40,
|
width: 40,
|
||||||
height: 40,
|
height: 28,
|
||||||
iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uF9qLejuAZErNTrRuHq7',
|
iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uF9qLejuAZErNTrRuHq7',
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -1891,9 +2003,36 @@
|
||||||
// 处理接口请求失败的情况
|
// 处理接口请求失败的情况
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getinfo() {
|
||||||
|
if (uni.getStorageSync('token')) {
|
||||||
|
this.$u.get("/getAppInfo").then((res) => {
|
||||||
|
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$store.commit('SET_USERID', res.user.userId);
|
||||||
|
// this.userinfo = res.user
|
||||||
|
// if (this.areaInfo.authentication == 1) {
|
||||||
|
// if (res.user.isAuthentication == 0) {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/page_user/idcard_test"
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
} else {
|
||||||
|
// setTimeout(()=>{
|
||||||
|
// this.getinfo()
|
||||||
|
// this.getlist()
|
||||||
|
// },1000)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
getArea() {
|
getArea() {
|
||||||
|
this.showmap=false
|
||||||
// 发送请求获取数据
|
// 发送请求获取数据
|
||||||
this.$u.get('/app/area/info?', this.gps).then((res) => {
|
this.$u.get('/app/area/info?', this.gps).then((res) => {
|
||||||
|
this.showmap=true
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
// 处理接口返回的数据,将边界数据转换为地图组件需要的折线结构
|
// 处理接口返回的数据,将边界数据转换为地图组件需要的折线结构
|
||||||
const polylines = this.convertBoundaryToPolyline(res.data.boundaryStr)
|
const polylines = this.convertBoundaryToPolyline(res.data.boundaryStr)
|
||||||
|
@ -1905,6 +2044,7 @@
|
||||||
this.polyline.push(polylines)
|
this.polyline.push(polylines)
|
||||||
// console.log(this.areaInfo, 'areaInfoareaInfo');
|
// console.log(this.areaInfo, 'areaInfoareaInfo');
|
||||||
uni.setStorageSync('areaId', res.data.areaId);
|
uni.setStorageSync('areaId', res.data.areaId);
|
||||||
|
this.getinfo()
|
||||||
this.getmarks()
|
this.getmarks()
|
||||||
this.getlist()
|
this.getlist()
|
||||||
this.getParking()
|
this.getParking()
|
||||||
|
@ -2052,6 +2192,25 @@
|
||||||
.page {
|
.page {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
|
||||||
|
.my-location {
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
right: 30rpx;
|
||||||
|
bottom: 300rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
z-index: 10;
|
||||||
|
.img {
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.feeDetail {
|
.feeDetail {
|
||||||
padding: 36rpx 22rpx;
|
padding: 36rpx 22rpx;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -2071,7 +2230,7 @@
|
||||||
.close {
|
.close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 20rpx;
|
top: 20rpx;
|
||||||
right: 20rpx;
|
right: 40rpx;
|
||||||
width: 30rpx;
|
width: 30rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
}
|
}
|
||||||
|
@ -2153,9 +2312,9 @@
|
||||||
.close {
|
.close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 20rpx;
|
top: 20rpx;
|
||||||
right: 20rpx;
|
right: 30rpx;
|
||||||
width: 30rpx;
|
width: 35rpx;
|
||||||
height: 30rpx;
|
height: 35rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page1 {
|
.page1 {
|
||||||
|
@ -2195,8 +2354,8 @@
|
||||||
|
|
||||||
.cent_bot {
|
.cent_bot {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
color: #808080;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2205,6 +2364,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
margin-right: 35rpx;
|
||||||
width: 160rpx;
|
width: 160rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
@ -2282,6 +2442,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
padding-bottom: 2rpx;
|
||||||
width: 338rpx;
|
width: 338rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
border-radius: 45rpx 45rpx 45rpx 45rpx;
|
border-radius: 45rpx 45rpx 45rpx 45rpx;
|
||||||
|
@ -2295,6 +2456,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
padding-bottom: 2rpx;
|
||||||
width: 338rpx;
|
width: 338rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
background: #4C97E7;
|
background: #4C97E7;
|
||||||
|
@ -2410,108 +2572,108 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
overflow-x: auto; // 添加水平滚动条
|
overflow-x: auto; // 添加水平滚动条
|
||||||
margin-bottom: 200rpx;
|
margin-bottom: 200rpx;
|
||||||
white-space: nowrap; // 确保子元素不换行
|
white-space: nowrap; // 确保子元素不换行
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
width: 500rpx !important; // 确保宽度被应用
|
width: 500rpx !important; // 确保宽度被应用
|
||||||
height: 288rpx;
|
height: 288rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08);
|
box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08);
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
border: 2rpx solid #fff;
|
border: 2rpx solid #fff;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 82rpx;
|
width: 82rpx;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tips_btn {
|
.tips_btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 350rpx;
|
width: 350rpx;
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
background: #4C97E7;
|
background: #4C97E7;
|
||||||
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tit {
|
.tit {
|
||||||
padding: 18rpx 0 0 18rpx;
|
padding: 18rpx 0 0 18rpx;
|
||||||
width: 350rpx;
|
width: 350rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nmtxt {
|
.nmtxt {
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 22rpx;
|
margin-top: 22rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red {
|
.red {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #FF4444;
|
color: #FF4444;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tip {
|
.tip {
|
||||||
margin-top: 14rpx;
|
margin-top: 14rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
color: #808080;
|
color: #808080;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tips {
|
.tips {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
|
|
||||||
.icon-chakanxiangqing {
|
.icon-chakanxiangqing {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.act1 {
|
.act1 {
|
||||||
border: 2rpx solid #4C97E7;
|
border: 2rpx solid #4C97E7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,28 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page" >
|
||||||
|
|
||||||
|
|
||||||
<u-navbar title="地图" :is-back='false' :border-bottom="false" :background="bgc" title-color='#2E4975'
|
<u-navbar title="地图" :is-back='false' :border-bottom="false" :background="bgc" title-color='#2E4975'
|
||||||
title-size='36' height='36'></u-navbar>
|
title-size='36' height='36'></u-navbar>
|
||||||
|
<view @touchmove.stop.prevent="() => {}">
|
||||||
<view class="slider">
|
<view class="slider">
|
||||||
<view class="tit">
|
<view class="tit">
|
||||||
电量区间
|
电量区间
|
||||||
</view>
|
</view>
|
||||||
<slider-range :value="rangeValue" :min="rangeMin" :max="rangMax" :step="1" :bar-height="3" :block-size="20"
|
<view style="width: 650rpx;">
|
||||||
background-color="#EEEEF6" active-color="#4C97E7" :format="format" :decorationVisible="true"
|
<slider-range :value="rangeValue" :min="rangeMin" :max="rangMax" :step="1" :bar-height="3" :block-size="20"
|
||||||
@change="handleRangeChange"></slider-range>
|
background-color="#EEEEF6" active-color="#4C97E7" :format="format" :decorationVisible="true"
|
||||||
|
@change="handleRangeChange"></slider-range>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
|
||||||
:show-location="true" :markers="markers" :polygons="polyline" @markertap="onMarkerTap" >
|
:show-location="true" :markers="markers" :polygons="polyline" @markertap="onMarkerTap" >
|
||||||
</map>
|
</map>
|
||||||
|
|
||||||
|
<view @touchmove.stop.prevent="() => {}">
|
||||||
<view class="btn_box">
|
<view class="btn_box">
|
||||||
<view class="btn1">
|
<view class="btn1">
|
||||||
车辆扫码
|
车辆扫码
|
||||||
|
@ -97,6 +105,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<tab-bar :indexs='1' style=""></tab-bar>
|
<tab-bar :indexs='1' style=""></tab-bar>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -641,7 +651,7 @@
|
||||||
|
|
||||||
.cont {
|
.cont {
|
||||||
margin-top: 18rpx;
|
margin-top: 18rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 9rpx;
|
||||||
// display: flex;
|
// display: flex;
|
||||||
width: 130rpx;
|
width: 130rpx;
|
||||||
|
|
||||||
|
@ -693,6 +703,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.slider {
|
.slider {
|
||||||
|
padding: 15rpx 0 0 15rpx;
|
||||||
.tit {
|
.tit {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
@ -700,7 +711,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
width: 752rpx;
|
width: 752rpx;
|
||||||
height: 150rpx;
|
height:160rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.07);
|
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.07);
|
||||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
|
|
@ -230,7 +230,7 @@
|
||||||
console.error("Error fetching area data:", error);
|
console.error("Error fetching area data:", error);
|
||||||
});
|
});
|
||||||
}else if(num==4){
|
}else if(num==4){
|
||||||
this.$u.post('/appVerify/device/ring?sn='+this.sn).then((res) => {
|
this.$u.get('/appVerify/device/ring?sn='+this.sn).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
// 处理接口返回的数据,将边界数据转换为地图组件需要的折线结构
|
// 处理接口返回的数据,将边界数据转换为地图组件需要的折线结构
|
||||||
this.deviceInfo()
|
this.deviceInfo()
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
<view class="iconfont icon-xiangxia1"></view>
|
<view class="iconfont icon-xiangxia1"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="stause_li" style="margin-left: 50rpx;" @click="showdsc=true">
|
<view class="stause_li" style="margin-left: 50rpx;" @click="showdsc=true">
|
||||||
{{sctit}} <view class="iconfont icon-xiangxia1"></view>
|
{{sctit}}
|
||||||
|
<view class="iconfont icon-xiangxia1"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -183,12 +184,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
ban(){
|
ban() {
|
||||||
let data={
|
let data = {
|
||||||
disableType:'disable',
|
disableType: 'disable',
|
||||||
sns:this.selectedItems.join(',')
|
sns: this.selectedItems.join(',')
|
||||||
}
|
}
|
||||||
this.$u.post(`/appVerify/device/disable?sns=`+data.sns+'&disableType=disable').then((res) => {
|
this.$u.post(`/appVerify/device/disable?sns=` + data.sns + '&disableType=disable').then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.closestep()
|
this.closestep()
|
||||||
this.getDevice()
|
this.getDevice()
|
||||||
|
@ -199,12 +200,12 @@
|
||||||
// 处理接口请求失败的情况
|
// 处理接口请求失败的情况
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
pick(){
|
pick() {
|
||||||
let data={
|
let data = {
|
||||||
disableType:'enable',
|
disableType: 'enable',
|
||||||
sns:this.selectedItems.join(',')
|
sns: this.selectedItems.join(',')
|
||||||
}
|
}
|
||||||
this.$u.post(`/appVerify/device/disable?sns=`+data.sns+'&disableType=enable').then((res) => {
|
this.$u.post(`/appVerify/device/disable?sns=` + data.sns + '&disableType=enable').then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.closestep()
|
this.closestep()
|
||||||
this.getDevice()
|
this.getDevice()
|
||||||
|
@ -217,7 +218,7 @@
|
||||||
// 处理接口请求失败的情况
|
// 处理接口请求失败的情况
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
confirms(e){
|
confirms(e) {
|
||||||
|
|
||||||
this.scidx = e[0].value
|
this.scidx = e[0].value
|
||||||
this.sctit = e[0].label
|
this.sctit = e[0].label
|
||||||
|
@ -288,7 +289,7 @@
|
||||||
let data = {
|
let data = {
|
||||||
powerStart: '',
|
powerStart: '',
|
||||||
powerEnd: '',
|
powerEnd: '',
|
||||||
sort:this.scidx,
|
sort: this.scidx,
|
||||||
status: this.typeidx
|
status: this.typeidx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,13 +400,27 @@
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #808080;
|
color: #808080;
|
||||||
|
white-space: nowrap;
|
||||||
|
/* 禁止换行 */
|
||||||
|
overflow: hidden;
|
||||||
|
/* 超出部分隐藏 */
|
||||||
|
text-overflow: ellipsis;
|
||||||
span {
|
span {
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
|
white-space: nowrap;
|
||||||
|
/* 禁止换行 */
|
||||||
|
overflow: hidden;
|
||||||
|
/* 超出部分隐藏 */
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
white-space: nowrap;
|
||||||
|
/* 禁止换行 */
|
||||||
|
overflow: hidden;
|
||||||
|
/* 超出部分隐藏 */
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -246,7 +246,9 @@
|
||||||
if (this.typeindex == 1) {
|
if (this.typeindex == 1) {
|
||||||
this.operatingData()
|
this.operatingData()
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.infoList = []
|
this.infoList = []
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user