|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
<ujp-navbar title="我的充电桩">
|
|
|
- <view slot="right" v-if="false" >
|
|
|
+ <view slot="right" >
|
|
|
|
|
|
- <view @click="adddevice('','')"
|
|
|
+ <view @click="popupShow=true"
|
|
|
style="margin-right: 10px;" >
|
|
|
- 激活设备<u-icon name="plus"></u-icon>
|
|
|
+ 筛选<u-icon name="plus"></u-icon>
|
|
|
|
|
|
</view>
|
|
|
|
|
@@ -13,7 +13,50 @@
|
|
|
|
|
|
</ujp-navbar>
|
|
|
|
|
|
-
|
|
|
+ <u-popup v-model="popupShow" mode="bottom" border-radius="20" >
|
|
|
+ <view class="popup-screen">
|
|
|
+ <view class="screen">
|
|
|
+ <view class="screen-item">
|
|
|
+ <view class="screen-head">站点名称</view>
|
|
|
+ <view class="screen-main">
|
|
|
+ <u-search v-model="nameTemp"
|
|
|
+ @custom="form.name=nameTemp,getList(true)"
|
|
|
+ @search="form.name=nameTemp,getList(true)" placeholder="按站点名称搜索" />
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="screen-item">
|
|
|
+ <view class="screen-head">站点类型</view>
|
|
|
+ <view class="screen-main">
|
|
|
+ <view class="screen-entry "
|
|
|
+ @click="form.no='',getList(true)"
|
|
|
+ :class="{
|
|
|
+ active:form.no==''
|
|
|
+ }"
|
|
|
+
|
|
|
+ >全部</view>
|
|
|
+
|
|
|
+ <view class="screen-entry "
|
|
|
+ v-for="(item,i) in ['A','B','C','D','E']"
|
|
|
+ @click="form.no=item,getList(true)"
|
|
|
+ :class="{
|
|
|
+ active:form.no==item
|
|
|
+ }"
|
|
|
+
|
|
|
+ >{{item}}类</view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="screen-foot">
|
|
|
+ <view class="screen-btn-l" @click="resetBtn" v-if="0" >重置</view>
|
|
|
+ <view class="screen-btn-r" @click="popupShow=false" >关闭</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<view class="deviceList" >
|
|
|
<view style="text-align: center;margin-top: 100px" v-if="!list.length">
|
|
|
<img src="@/assets/img/blankpage.png">
|
|
@@ -76,8 +119,14 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ popupShow:false,
|
|
|
+ name:"",
|
|
|
+ nameTemp:"",
|
|
|
+ no:"",
|
|
|
form: {
|
|
|
-
|
|
|
+ name:"",
|
|
|
+
|
|
|
+ no:"",
|
|
|
},
|
|
|
startDate:'',
|
|
|
endDate:'',
|
|
@@ -325,4 +374,67 @@
|
|
|
background:url(../../assets/img/charging_type_bike.png) no-repeat #fff;
|
|
|
background-size:100%;
|
|
|
}
|
|
|
+ .popup-screen{
|
|
|
+ padding: 20px;
|
|
|
+ position: relative;
|
|
|
+ .screen{
|
|
|
+ padding-bottom: 60px;
|
|
|
+ }
|
|
|
+ .screen-item{
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .screen-head{
|
|
|
+ margin-bottom: 8px;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ .screen-main{
|
|
|
+ display: flex;
|
|
|
+ // display: -webkit-box;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ }
|
|
|
+ .screen-entry{
|
|
|
+ width: 29%;
|
|
|
+ padding:6px 0;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+
|
|
|
+ background-color: #F2F5FA ;
|
|
|
+ text-align: center;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ border-radius: 3px;
|
|
|
+
|
|
|
+ margin-right: 6px;
|
|
|
+
|
|
|
+ }
|
|
|
+ .screen-entry.active{
|
|
|
+ background-color: #185AC6;
|
|
|
+ color:#fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .screen-foot{
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ display: flex;
|
|
|
+ height:50px;
|
|
|
+ border-top: 1px solid #ededed;
|
|
|
+ justify-content: space-around;
|
|
|
+ .screen-btn-l{
|
|
|
+ background-color: #fff;
|
|
|
+ flex: 0.2;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 50px;
|
|
|
+ }
|
|
|
+ .screen-btn-r{
|
|
|
+ flex: 0.8;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 50px;
|
|
|
+ background-color: #185AC6;
|
|
|
+ color:#fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|