123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <template>
- <view>
- <u-navbar title="设备列表" ></u-navbar>
- <view class="main">
- <view class="tabs">
- <u-picker v-model="tabsFrom.show1"
- :default-selector="[tabsFrom.show1Index]"
- mode="selector" :range="tabsFrom.selector1" range-key="label" @confirm="selector1confirm" ></u-picker>
- <u-picker-select title="日期选择" v-model="tabsFrom.show2"
- :defaultTime="tabsFrom.show2Index" :endYear="endYear"
- mode="time" :params="params" @confirm="selector2confirm" @reset="selector2reset" ></u-picker-select>
-
- <view class="tabsItem" @click="tabsFrom.show1=!tabsFrom.show1">{{tabsFrom.show1Text}} <u-icon name="arrow-up"
- v-if="tabsFrom.show1"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
- <view class="tabsItem" @click="tabsFrom.show2=!tabsFrom.show2">{{tabsFrom.show2Text}} <u-icon name="arrow-up"
- v-if="tabsFrom.show2"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
-
- <view class="tabsItem" @click="tabsFrom.show3=!tabsFrom.show3">{{tabsFrom.show3Text}} <u-icon name="arrow-up"
- v-if="tabsFrom.show3"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
- </view>
-
- <view class="list">
- <view class="line">
- <view class="body">
- <view class="imgclass">
- <image class="img" src="@/assets/img/deviceTab/index2-1.svg" mode=""></image>
- </view>
- <view class="item">
- <view class="name">
- <view class="text">软件园</view>
- <view class="tag">私人车位</view>
- </view>
- <view class="value">
- 占用9
- </view>
- </view>
- </view>
- <view class="goto">
- <view class="dian"></view>
- <view class="text">在线</view>
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
- </view>
- </view>
-
- <view class="line">
- <view class="body">
- <view class="imgclass">
- <image class="img" src="@/assets/img/deviceTab/index2-1.svg" mode=""></image>
- </view>
- <view class="item">
- <view class="name">
- <view class="text">软件园</view>
- <view class="tag">私人车位</view>
- </view>
- <view class="value">
- 占用9<span>/</span>
- 占用9<span>/</span>
- 共9台
- </view>
- </view>
- </view>
- <view class="goto">
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
- </view>
- </view>
-
- </view>
-
- <view class="floating-button" @click="gotoUrl('pages/deviceTab/bindLock')">
- <view class="button">
- <img class="img" src="@/assets/img/deviceTab/index2-2.svg" alt="">
-
- 绑定新地锁
- </view>
-
- </view>
-
-
- </view>
-
- </view>
- </template>
- <script>
- import * as API from '@/apis/pagejs/deviceTab.js'
-
-
- export default {
-
- data() {
- return {
- title:"场站列表",
- tabsFrom: {
- show1: false,
- show1Index:0,
- show2Index:'',
- show2: false,
- show1Text: "全部场站",
- show2Text: "全部类型",
- show3Text: "全部状态",
- selector1:[
- {
- label: '全部类型',
- value: '',
- },
- {
- label: '线上充值',
- value: '1',
- },
- {
- label: '线下充值',
- value: '2',
- },
- ]
- },
- };
- }
- }
- </script>
- <style scoped lang="scss">
- .main{
- background-color: #fff;
- .line{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 32rpx;
- border-bottom: 1px solid rgba(245,245,245,1);
- .goto{
- display: flex;
- align-items: center;
- .dian{
- width: 16rpx;
- height: 16rpx;
- border-radius: 50px;
- background-color: rgba(184,184,184,1);
- margin-right: 16rpx;
- }
- .text{
- margin-right: 16rpx;
- font-size: 24rpx;
- }
- }
- .body{
- display: flex;
- align-items: center;
-
- .imgclass{
- display: flex;
- align-items: center;
- justify-content: center;
- width: 72rpx;
- height: 72rpx;
- border-radius: 4px;
- background-color: rgba(219,234,255,1);
- }
- .item{
- margin-left: 16rpx;
-
- .name{
- color: rgba(51,51,51,1);
- font-size: 28rpx;
- display: flex;
- align-items: center;
- .tag{
- border-radius: 4px;
- background-color: rgba(22,119,255,1);
- color: rgba(255,255,255,1);
- font-size: 22rpx;
- padding:1px 8rpx;
- margin-left: 8rpx;
- }
- }
- .value{
- color: rgba(119,119,119,1);
- font-size: 24rpx;
-
- }
- }
-
- }
- }
- .img{
- width: 48rpx;
- height: 48rpx;
- }
- }
-
- .tabs{
- border-bottom: 1px solid rgba(232,232,232,1);
- height: 96rpx;
- line-height: 96rpx;
- background-color: #fff;
- border-top: 1px solid rgba(241,241,241,1);
- display: flex;
- justify-content: space-around;
- .tabsItem{
- color: rgba(51,51,51,1);
- font-size: 14px;
- }
-
- }
-
- .floating-button {
- position: fixed;
- bottom: 120rpx;
- width: 100%;
- display: flex;
-
- justify-content: center;
-
- .button {
- border-radius: 50px;
- background-color: rgba(49, 51, 52, 1);
- color: rgba(255, 255, 255, 1);
- font-size: 28rpx;
- width: 240rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 12rpx;
-
- .img {
- width: 40rpx;
- height: 40rpx;
- margin-right: 8rpx;
- }
- }
- }
- </style>
|