This commit is contained in:
tx 2024-12-19 10:16:17 +08:00
parent 51d047b3ff
commit c4ab198423
9 changed files with 931 additions and 662 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@
"pages": [{ "pages": [{
"path": "admin_index", "path": "admin_index",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -41,7 +41,7 @@
{ {
"path": "admin_order", "path": "admin_order",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -49,7 +49,7 @@
{ {
"path": "admin_worke", "path": "admin_worke",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -191,7 +191,7 @@
"pages": [{ "pages": [{
"path": "fix_index", "path": "fix_index",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -199,7 +199,7 @@
{ {
"path": "repair/repair_index", "path": "repair/repair_index",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -207,7 +207,7 @@
{ {
"path": "repair/repair_detail", "path": "repair/repair_detail",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -223,7 +223,7 @@
{ {
"path": "myVip_index", "path": "myVip_index",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -232,7 +232,7 @@
"path" : "buyCard", "path" : "buyCard",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -241,7 +241,7 @@
"path" : "checkCard", "path" : "checkCard",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -250,7 +250,7 @@
"path" : "vip_index", "path" : "vip_index",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -259,7 +259,7 @@
"path" : "financialStatement", "path" : "financialStatement",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -268,7 +268,7 @@
"path" : "vip_his", "path" : "vip_his",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -277,7 +277,7 @@
"path" : "card_his", "path" : "card_his",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -293,7 +293,7 @@
{ {
"path": "shgl", "path": "shgl",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -302,7 +302,7 @@
"path" : "shDetail", "path" : "shDetail",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -311,7 +311,7 @@
"path" : "financialStatement", "path" : "financialStatement",
"style" : "style" :
{ {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -371,7 +371,7 @@
"pages": [{ "pages": [{
"path": "upload", "path": "upload",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -379,7 +379,7 @@
{ {
"path": "bhks", "path": "bhks",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -387,7 +387,7 @@
{ {
"path": "gzsb", "path": "gzsb",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -395,7 +395,7 @@
{ {
"path": "jfgz", "path": "jfgz",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -403,7 +403,7 @@
{ {
"path": "yczn", "path": "yczn",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -412,7 +412,7 @@
{ {
"path": "xcjs", "path": "xcjs",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -420,7 +420,7 @@
{ {
"path": "ckmx", "path": "ckmx",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -428,7 +428,7 @@
{ {
"path": "qsdetail", "path": "qsdetail",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -436,7 +436,7 @@
{ {
"path": "qsrecord", "path": "qsrecord",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -444,7 +444,7 @@
{ {
"path": "good_list", "path": "good_list",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -452,7 +452,7 @@
{ {
"path": "yj", "path": "yj",
"style": { "style": {
"navigationBarTitleText": "上传", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }

View File

@ -2885,6 +2885,7 @@ export default {
// 使this.$setVue // 使this.$setVue
this.$set(this, 'markers', this.markers); this.$set(this, 'markers', this.markers);
} }
console.log(this.markers,'aaa');
} }
}).catch(error => { }).catch(error => {
console.error("Error fetching device data:", error); console.error("Error fetching device data:", error);

View File

@ -192,13 +192,16 @@
</view> </view>
<view class="pages2" v-if="deptId==101"> <view class="pages2" v-if="deptId==101&&pageindex==0">
<view class="imgbox"> <view class="imgbox">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uX6A5Dlyr4lvGFNuqfPK" mode=""></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/uX6A5Dlyr4lvGFNuqfPK" mode=""></image>
</view> </view>
<button class="button" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber"> <button class="button" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
授权登录 授权登录
</button> </button>
<!-- <view class="tipss" @click="pageindex=1" style="width: 100%;text-align: center;margin-top: 50rpx;color: #ccc;">
手机号登录
</view> -->
<!-- <view class="button1" @click="back"> <!-- <view class="button1" @click="back">
取消登录 取消登录
</view> --> </view> -->

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<view class="toptit" @click="shows()"> <view class="toptit" @click="shows()">
{{areaInfo.areaName}} {{ areaInfo.areaName }}
</view> </view>
<!-- <u-navbar :is-back='false' title="工作台" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36' <!-- <u-navbar :is-back='false' title="工作台" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
height='45'></u-navbar> --> height='45'></u-navbar> -->
@ -11,21 +11,21 @@
<image src="https://lxnapi.ccttiot.com/bike/img/static/uMlgu6j9jnDqP1ZFL7xj" mode=""></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/uMlgu6j9jnDqP1ZFL7xj" mode=""></image>
应用入口 应用入口
</view> </view>
<view class="app_box" v-if="menuList.length>0"> <view class="app_box" v-if="menuList.length > 0">
<view class="cont" @click="topage(0)" v-if="hasMenuPermission('运营数据') "> <view class="cont" @click="topage(0)" v-if="hasMenuPermission('运营数据')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/unnmUkUif2eWNKFq9fdg" mode=""></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/unnmUkUif2eWNKFq9fdg" mode=""></image>
<view class="text"> <view class="text">
运营数据 运营数据
</view> </view>
</view> </view>
<view class="cont" @click="topage(8)" v-if="hasMenuPermission('财务报表')"> <view class="cont" @click="topage(8)" v-if="hasMenuPermission('财务报表')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/upJFJIIZ4hbSEuchNQi3" mode=""></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/upJFJIIZ4hbSEuchNQi3" mode=""></image>
<view class="text"> <view class="text">
财务报表 财务报表
</view> </view>
</view> </view>
<view class="cont" @click="topage(2)" v-if="hasMenuPermission('设备管理')"> <view class="cont" @click="topage(2)" v-if="hasMenuPermission('设备管理')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uNfRjhtxYmMPKaX4DqTS" mode=""></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/uNfRjhtxYmMPKaX4DqTS" mode=""></image>
<view class="text"> <view class="text">
设备管理 设备管理
@ -38,307 +38,431 @@
用户页面 用户页面
</view> </view>
</view> </view>
<view class="cont" @click="topage(5)" v-if="hasMenuPermission('车辆绑定')"> <!-- <view class="cont" @click="topage(5)" v-if="hasMenuPermission('车辆绑定')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uM4rBBaXc7b3TmsqQTvz" mode=""></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/uM4rBBaXc7b3TmsqQTvz" mode=""></image>
<view class="text"> <view class="text">
车辆绑定 车辆绑定
</view> </view>
</view> </view> -->
<view class="cont" @click="topage(6)" v-if="hasMenuPermission('账户明细')"> <view class="cont" @click="topage(6)" v-if="hasMenuPermission('账户明细')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/u47okd0YdEQBsyhLlQIt" mode="" style="width: 50rpx;height: 50rpx;"></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/u47okd0YdEQBsyhLlQIt" mode=""
style="width: 50rpx;height: 50rpx;"></image>
<view class="text"> <view class="text">
账户明细 账户明细
</view> </view>
</view> </view>
<view class="cont" @click="topage(7)" v-if="hasMenuPermission('故障审核')" > <view class="cont" @click="topage(7)" v-if="hasMenuPermission('故障审核')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/u47okd0YdEQBsyhLlQIt" mode="" style="width: 50rpx;height: 50rpx;"></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/u47okd0YdEQBsyhLlQIt" mode=""
style="width: 50rpx;height: 50rpx;"></image>
<view class="text"> <view class="text">
故障审核 故障审核
</view> </view>
</view> </view>
<view class="cont" @click="topage(9)" v-if="hasMenuPermission('车型管理')"> <view class="cont" @click="topage(9)" v-if="hasMenuPermission('车型管理')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/ufE1T9RDOm7OmhLgTzXi" mode="" style="width: 100%;height: 100%;"></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/ufE1T9RDOm7OmhLgTzXi" mode=""
style="width: 100%;height: 100%;"></image>
</view> </view>
<view class="cont" @click="topage(10)" v-if="hasMenuPermission('收费模版')"> <view class="cont" @click="topage(10)" v-if="hasMenuPermission('收费模版')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uqG3ZQWu986qU0gU9vbb" mode="" style="width: 100%;height: 100%;"></image> <image src="https://lxnapi.ccttiot.com/bike/img/static/uqG3ZQWu986qU0gU9vbb" mode=""
style="width: 100%;height: 100%;"></image>
</view> </view>
<view class="cont" @click="topage(11)" style="width: 96rpx;height: 96rpx;" v-if="hasMenuPermission('运营设置')"> <view class="cont" @click="topage(11)" style="width: 96rpx;height: 96rpx;"
<image src="https://lxnapi.ccttiot.com/bike/img/static/uqCr4GrXEx6irmRNNsfM" mode="" style="width: 96rpx;height: 96rpx;"></image> v-if="hasMenuPermission('运营设置')">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uqCr4GrXEx6irmRNNsfM" mode=""
style="width: 96rpx;height: 96rpx;"></image>
</view> </view>
</view> </view>
</view> </view>
<u-select v-model="show" :list="list" title='选择运营区' @confirm="confirm"></u-select> <u-select v-model="show" :list="list" title='选择运营区' @confirm="confirm" v-if="list.length <= 5"></u-select>
<!-- 自定义选择器 -->
<view class="custom-select" v-if="show && list.length > 5">
<view class="mask" @click="show = false"></view>
<view class="select-content">
<view class="select-header">
<text>选择运营区</text>
<text class="close" @click="show = false">×</text>
</view>
<view class="search-box">
<input type="text" v-model="searchKey" placeholder="搜索运营区" @input="handleSearch" />
</view>
<scroll-view scroll-y class="select-list">
<view class="select-item" v-for="item in displayList" :key="item.value" @click="selectItem(item)"
:class="{ 'highlight': searchKey && item.label.includes(searchKey) }">
{{ item.label }}
<view style="font-size: 24rpx;color: #999;margin-left: auto;"> {{ item.deptName }}</view>
</view>
</scroll-view>
</view>
</view>
<TabBar :indexs='0' style=""></TabBar> <TabBar :indexs='0' style=""></TabBar>
</view> </view>
</template> </template>
<script> <script>
import TabBar from '@/pages_admin/components/tab-bar/tab-bar.vue'; import TabBar from '@/pages_admin/components/tab-bar/tab-bar.vue';
export default { export default {
components: { TabBar }, components: { TabBar },
data() { data() {
return { return {
bgc: { bgc: {
backgroundColor: "#FFFFFF", backgroundColor: "#FFFFFF",
}, },
sn:'', sn: '',
areaId:0, areaId: 0,
areaInfo:{}, areaInfo: {},
list: [], list: [],
show: false, show: false,
info:{}, info: {},
userinfo:{}, userinfo: {},
deptId:null, deptId: null,
menuList:[] menuList: [],
searchKey: '',
displayList: [], //
}
},
onShow() {
this.deptId = uni.getStorageSync('deptId');
this.$store.dispatch('userInfo', this.$u).then(() => {
// ...
});
if (uni.getStorageSync('adminAreaid')) {
this.areaId = uni.getStorageSync('adminAreaid')
this.getArea()
this.getinfo()
this.getareaList()
this.getareaInfo()
}
},
computed: {
userId() {
return this.$store.getters.userId;
},
// maskedPhoneNumber() {
// if (!this.info.phonenumber) return '';
// return this.info.phonenumber.slice(0, 3) + '****' + this.info.phonenumber.slice(7);
// },
// maskedName() {
// if (!this.info.realName) return '';
// return this.info.realName.charAt(0) + '*'.repeat(this.info.realName.length - 1);
// },
//
filteredList() {
if (!this.searchKey) return this.list;
return this.list.filter(item =>
item.label.toLowerCase().includes(this.searchKey.toLowerCase())
);
}
},
methods: {
handleSearch(e) {
const value = e.detail.value;
if (!value) {
//
this.displayList = this.list;
} else {
//
this.displayList = this.list.filter(item =>
item.label.toLowerCase().includes(value.toLowerCase()) ||
item.deptName.toLowerCase().includes(value.toLowerCase())
);
} }
}, },
onShow() {
this.deptId = uni.getStorageSync('deptId');
this.$store.dispatch('userInfo', this.$u).then(() => {
// ... selectItem(item) {
this.confirm([item]);
this.show = false;
this.searchKey = ''; //
this.displayList = this.list; //
},
hasMenuPermission(menuName) {
return this.menuList.some(item => item.menuName === menuName);
},
getinfo() {
this.$u.get("/getAppInfo").then((res) => {
if (res.code == 200) {
this.userinfo = res.user
this.menuList = res.menu
console.log(this.menuList, 'menuListmenuListmenuListmenuList');
} else {
// setTimeout(() => {
// this.getinfo()
// }, 200)
}
}); });
if(uni.getStorageSync('adminAreaid')){ },
this.areaId = uni.getStorageSync('adminAreaid') getareaInfo() {
this.getArea() this.$u.get('/appVerify/getDept').then((res) => {
this.getinfo() if (res.code == 200) {
this.getareaList() this.info = res.data
this.getareaInfo() console.log(this.userId, 'userIduserIduserId');
}
}).catch(error => {
console.error("Error fetching area data:", error);
});
},
shows() {
if (this.list.length < 2) {
} else {
this.show = true
} }
},
getareaList() {
this.$u.get('/appVerify/getAreaList').then((res) => {
if (res.code == 200) {
this.list = res.data.map(item => ({
value: item.areaId,
label: item.areaName,
deptName: item.deptName
}));
this.displayList = this.list; //
}
}).catch(error => {
console.error("Error fetching area data:", error);
});
},
confirm(e) {
// console.log(e);
uni.setStorageSync('adminAreaid', e[0].value);
this.areaId = e[0].value
this.getArea()
}, },
computed: { getArea() {
userId() {
return this.$store.getters.userId; let id = this.areaId
}, this.$u.get("/app/area/" + id).then((res) => {
if (res.code == 200) {
this.areaInfo = res.data
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
});
}
});
}, },
methods: { topage(num) {
hasMenuPermission(menuName) { if (num == 0) {
return this.menuList.some(item => item.menuName === menuName); uni.navigateTo({
}, url: '/pages_admin/worke/worke_Operation'
getinfo() { })
this.$u.get("/getAppInfo").then((res) => { } else if (num == 1) {
uni.navigateTo({
if (res.code == 200) { url: '/pages_admin/worke/worke_income'
})
this.userinfo = res.user } else if (num == 2) {
this.menuList=res.menu uni.navigateTo({
console.log(this.menuList,'menuListmenuListmenuListmenuList'); url: '/pages_admin/worke/woke_deviceMgmt'
} else { })
// setTimeout(() => { } else if (num == 3) {
// this.getinfo() uni.navigateTo({
// }, 200) url: '/pages_admin/worke/worke_user'
})
} } else if (num == 4) {
}); uni.navigateTo({
}, url: '/pages/index/index'
getareaInfo() { })
this.$u.get('/appVerify/getDept').then((res) => { } else if (num == 5) {
if (res.code == 200) { uni.navigateTo({
this.info=res.data url: '/pages_admin/worke/bind_sn'
console.log(this.userId,'userIduserIduserId'); })
}
}).catch(error => {
console.error("Error fetching area data:", error);
});
},
shows(){
if(this.list.length<2){
}else{
this.show =true
}
},
getareaList(){
this.$u.get('/appVerify/getAreaList').then((res) => {
if(res.code==200){
this.list = res.data.map(item => ({
value: item.areaId,
label: item.areaName
}));
}
}).catch(error => {
console.error("Error fetching area data:", error);
});
},
confirm(e){
// console.log(e);
uni.setStorageSync('adminAreaid', e[0].value);
this.areaId= e[0].value
this.getArea()
},
getArea() {
let id = this.areaId
this.$u.get("/app/area/" + id).then((res) => {
if (res.code == 200) {
this.areaInfo=res.data
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
});
}
});
},
topage(num){
if(num==0){
uni.navigateTo({
url:'/pages_admin/worke/worke_Operation'
})
}else if(num==1){
uni.navigateTo({
url:'/pages_admin/worke/worke_income'
})
}else if(num==2){
uni.navigateTo({
url:'/pages_admin/worke/woke_deviceMgmt'
})
}else if(num==3){
uni.navigateTo({
url:'/pages_admin/worke/worke_user'
})
}else if(num==4){
uni.navigateTo({
url:'/pages/index/index'
})
}else if(num==5){
uni.navigateTo({
url:'/pages_admin/worke/bind_sn'
})
// uni.scanCode({
// onlyFromCamera: true,
// scanType: ['qrCode'],
// success: res => {
// let sn = null;
// let queryParams = res.result.split('?')[1];
// if (queryParams) {
// let params = queryParams.split('&');
// params.forEach(param => {
// let [key, value] = param.split('=');
// if (key === 'sn') {
// sn = value;
// }
// });
// }
// this.sn = sn
// console.log(res.result);
// if (this.sn != '') {
// }
// },
// fail: err => {
// console.error('', err);
// uni.showToast({
// title: '',
// icon: 'none'
// });
// }
// });
}else if(num==6){
uni.navigateTo({
url:'/pages_admin/worke/AccountDetails'
})
}else if(num==7){
uni.navigateTo({
url:'/pages_adminSet/shgl'
})
}else if(num==8){
uni.navigateTo({
url:'/pages_adminSet/financialStatement'
})
}else if(num==9){
uni.navigateTo({
url:'/pages_adminSet/CarModel'
})
}else if(num==10){
uni.navigateTo({
url:'/pages_adminSet/ChargingTemplate'
})
}else if(num==11){
uni.navigateTo({
url:'/pages_adminSet/sysSet'
})
}
} else if (num == 6) {
uni.navigateTo({
url: '/pages_admin/worke/AccountDetails'
})
} else if (num == 7) {
uni.navigateTo({
url: '/pages_adminSet/shgl'
})
} else if (num == 8) {
uni.navigateTo({
url: '/pages_adminSet/financialStatement'
})
} else if (num == 9) {
uni.navigateTo({
url: '/pages_adminSet/CarModel'
})
} else if (num == 10) {
uni.navigateTo({
url: '/pages_adminSet/ChargingTemplate'
})
} else if (num == 11) {
uni.navigateTo({
url: '/pages_adminSet/sysSet'
})
} }
} }
} }
}
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
background-color: #FFFFFF; background-color: #FFFFFF;
}
.custom-select {
.mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
} }
.page { .select-content {
width: 750rpx; position: fixed;
.toptit{ left: 0;
margin-top: 100rpx; right: 0;
margin-left: 100rpx; bottom: 0;
font-size: 38rpx; background: #fff;
} border-radius: 20rpx 20rpx 0 0;
.cont_box{ z-index: 1000;
padding: 46rpx 50rpx; height: 50vh; //
margin: 68rpx auto; // min-height: 400rpx; //
width: 680rpx; display: flex;
// height: 600rpx; flex-direction: column;
background: #FFFFFF; padding-bottom: 20rpx;
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0,0,0,0.07);
border-radius: 24rpx 24rpx 24rpx 24rpx;
.top{
width: 100%;
display: flex;
flex-wrap: nowrap;
align-items: center;
image{
margin-right: 16rpx;
width: 32rpx;
height: 32rpx;
}
font-weight: 500;
font-size: 32rpx;
color: #3D3D3D;
.select-header {
padding: 20rpx 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #eee;
.close {
font-size: 40rpx;
color: #999;
} }
.app_box{ }
.search-box {
padding: 15rpx 20rpx;
border-bottom: 1px solid #eee;
input {
width: 100%;
height: 60rpx;
background: #f5f5f5;
border-radius: 30rpx;
padding: 0 30rpx;
font-size: 28rpx;
}
}
.select-list {
flex: 1;
max-height: calc(50vh - 140rpx);
min-height: 260rpx; //
.select-item {
display: flex;
// flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 20rpx 30rpx;
border-bottom: 1px solid #eee;
font-size: 28rpx;
&.highlight {
background-color: #f0f9ff;
color: #2d8cf0;
}
&:active {
background: #f5f5f5;
}
}
}
}
}
.page {
width: 750rpx;
.toptit {
margin-top: 100rpx;
margin-left: 100rpx;
font-size: 38rpx;
}
.cont_box {
padding: 46rpx 50rpx;
margin: 68rpx auto;
width: 680rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.07);
border-radius: 24rpx 24rpx 24rpx 24rpx;
.top {
width: 100%;
display: flex;
flex-wrap: nowrap;
align-items: center;
image {
margin-right: 16rpx;
width: 32rpx;
height: 32rpx;
}
font-weight: 500;
font-size: 32rpx;
color: #3D3D3D;
}
.app_box {
display: flex;
flex-wrap: wrap;
.cont:nth-child(4n) {
margin-right: 0;
}
.cont {
margin-right: 60rpx;
margin-top: 70rpx;
width: 96rpx;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.cont:nth-child(4n) { justify-content: center;
margin-right: 0;
image {
width: 54rpx;
height: 52rpx;
} }
.cont{
margin-right: 60rpx; .text {
margin-top: 70rpx; margin-top: 14rpx;
width: 96rpx; font-weight: 400;
display: flex; font-size: 24rpx;
flex-wrap: wrap; color: #3D3D3D;
justify-content: center;
image{
width: 54rpx;
height: 52rpx;
}
.text{
margin-top: 14rpx;
font-weight: 400;
font-size: 24rpx;
color: #3D3D3D;
}
} }
} }
} }
} }
}
</style> </style>

View File

@ -23,9 +23,9 @@
<view class="info_li"> <view class="info_li">
<view class="half_infoli"> <view class="half_infoli">
车牌号<span v-if="deviceInfos.vehicleNum">{{deviceInfos.vehicleNum}}</span> SN<span>{{deviceInfos.sn}}</span>
<span v-else>--</span>
</view> </view>
<view class="half_infoli"> <view class="half_infoli">
MAC<span>{{deviceInfos.mac}}</span> MAC<span>{{deviceInfos.mac}}</span>
@ -33,7 +33,8 @@
</view> </view>
<view class="info_li"> <view class="info_li">
<view class="half_infoli"> <view class="half_infoli">
SN<span>{{deviceInfos.sn}}</span> 车牌号<span v-if="deviceInfos.vehicleNum">{{deviceInfos.vehicleNum}}</span>
<span v-else>--</span>
</view> </view>
<view class="half_infoli"> <view class="half_infoli">
车辆型号 车辆型号
@ -75,6 +76,19 @@
</view> </view>
</view> </view>
<view class="info_li">
<view class="half_infoli">
电池电压
<span v-if="deviceInfos.voltage">{{deviceInfos.voltage}}V</span>
<span v-else>--</span>
</view>
<view class="half_infoli">
4G信号
<span v-if="deviceInfos.satellites">{{deviceInfos.satellites}}</span>
<span v-else>--</span>
</view>
</view>
<!-- <view class="info_li"> <!-- <view class="info_li">
异常原因<span>已完成</span> 异常原因<span>已完成</span>
@ -110,6 +124,11 @@
<span v-if="deviceInfos.lastTime">{{deviceInfos.lastTime}}</span> <span v-if="deviceInfos.lastTime">{{deviceInfos.lastTime}}</span>
<span v-else>--</span> <span v-else>--</span>
</view> </view>
<!-- <view class="info_li">
最后在线时间
<span v-if="deviceInfos.lastOnlineTime">{{deviceInfos.lastOnlineTime}}</span>
<span v-else>--</span>
</view> -->
</view> </view>
</view> </view>
<view class="info_card" style="margin-top: 20rpx;" v-if="deviceInfos.etOrders[0]&&deviceInfos.sn"> <view class="info_card" style="margin-top: 20rpx;" v-if="deviceInfos.etOrders[0]&&deviceInfos.sn">

View File

@ -170,7 +170,7 @@
}, },
backPage(){ backPage(){
uni.redirectTo({ uni.redirectTo({
url:'/pages_admin/admin_worke' url:'/page_user/my'
}) })
}, },
toControl(){ toControl(){

View File

@ -669,7 +669,7 @@
border: 1rpx solid #ccc; border: 1rpx solid #ccc;
border-radius: 20rpx; border-radius: 20rpx;
width: 400rpx; width: 400rpx;
text-align: right; text-align: left;
/* 输入框内容靠右显示 */ /* 输入框内容靠右显示 */
} }
} }

View File

@ -774,7 +774,7 @@
border: 1rpx solid #ccc; border: 1rpx solid #ccc;
border-radius: 20rpx; border-radius: 20rpx;
width: 200rpx; width: 250rpx;
} }
@ -831,7 +831,7 @@
border: 1rpx solid #ccc; border: 1rpx solid #ccc;
border-radius: 20rpx; border-radius: 20rpx;
width: 400rpx; width: 400rpx;
text-align: right; text-align: left;
/* 输入框内容靠右显示 */ /* 输入框内容靠右显示 */
} }
} }