deviceList.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view>
  3. <u-navbar title="设备列表" ></u-navbar>
  4. <view class="main">
  5. <view class="tabs">
  6. <u-picker v-model="tabsFrom.show1"
  7. :default-selector="[tabsFrom.show1Index]"
  8. mode="selector" :range="tabsFrom.selector1" range-key="label" @confirm="selector1confirm" ></u-picker>
  9. <u-picker-select title="日期选择" v-model="tabsFrom.show2"
  10. :defaultTime="tabsFrom.show2Index" :endYear="endYear"
  11. mode="time" :params="params" @confirm="selector2confirm" @reset="selector2reset" ></u-picker-select>
  12. <view class="tabsItem" @click="tabsFrom.show1=!tabsFrom.show1">{{tabsFrom.show1Text}} <u-icon name="arrow-up"
  13. v-if="tabsFrom.show1"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
  14. <view class="tabsItem" @click="tabsFrom.show2=!tabsFrom.show2">{{tabsFrom.show2Text}} <u-icon name="arrow-up"
  15. v-if="tabsFrom.show2"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
  16. <view class="tabsItem" @click="tabsFrom.show3=!tabsFrom.show3">{{tabsFrom.show3Text}} <u-icon name="arrow-up"
  17. v-if="tabsFrom.show3"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
  18. </view>
  19. <view class="list">
  20. <view class="line">
  21. <view class="body">
  22. <view class="imgclass">
  23. <image class="img" src="@/assets/img/deviceTab/index2-1.svg" mode=""></image>
  24. </view>
  25. <view class="item">
  26. <view class="name">
  27. <view class="text">软件园</view>
  28. <view class="tag">私人车位</view>
  29. </view>
  30. <view class="value">
  31. 占用9
  32. </view>
  33. </view>
  34. </view>
  35. <view class="goto">
  36. <view class="dian"></view>
  37. <view class="text">在线</view>
  38. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  39. </view>
  40. </view>
  41. <view class="line">
  42. <view class="body">
  43. <view class="imgclass">
  44. <image class="img" src="@/assets/img/deviceTab/index2-1.svg" mode=""></image>
  45. </view>
  46. <view class="item">
  47. <view class="name">
  48. <view class="text">软件园</view>
  49. <view class="tag">私人车位</view>
  50. </view>
  51. <view class="value">
  52. 占用9<span>/</span>
  53. 占用9<span>/</span>
  54. 共9台
  55. </view>
  56. </view>
  57. </view>
  58. <view class="goto">
  59. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="floating-button" @click="gotoUrl('pages/deviceTab/bindLock')">
  64. <view class="button">
  65. <img class="img" src="@/assets/img/deviceTab/index2-2.svg" alt="">
  66. 绑定新地锁
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import * as API from '@/apis/pagejs/deviceTab.js'
  74. export default {
  75. data() {
  76. return {
  77. title:"场站列表",
  78. tabsFrom: {
  79. show1: false,
  80. show1Index:0,
  81. show2Index:'',
  82. show2: false,
  83. show1Text: "全部场站",
  84. show2Text: "全部类型",
  85. show3Text: "全部状态",
  86. selector1:[
  87. {
  88. label: '全部类型',
  89. value: '',
  90. },
  91. {
  92. label: '线上充值',
  93. value: '1',
  94. },
  95. {
  96. label: '线下充值',
  97. value: '2',
  98. },
  99. ]
  100. },
  101. };
  102. }
  103. }
  104. </script>
  105. <style scoped lang="scss">
  106. .main{
  107. background-color: #fff;
  108. .line{
  109. display: flex;
  110. justify-content: space-between;
  111. align-items: center;
  112. padding: 32rpx;
  113. border-bottom: 1px solid rgba(245,245,245,1);
  114. .goto{
  115. display: flex;
  116. align-items: center;
  117. .dian{
  118. width: 16rpx;
  119. height: 16rpx;
  120. border-radius: 50px;
  121. background-color: rgba(184,184,184,1);
  122. margin-right: 16rpx;
  123. }
  124. .text{
  125. margin-right: 16rpx;
  126. font-size: 24rpx;
  127. }
  128. }
  129. .body{
  130. display: flex;
  131. align-items: center;
  132. .imgclass{
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. width: 72rpx;
  137. height: 72rpx;
  138. border-radius: 4px;
  139. background-color: rgba(219,234,255,1);
  140. }
  141. .item{
  142. margin-left: 16rpx;
  143. .name{
  144. color: rgba(51,51,51,1);
  145. font-size: 28rpx;
  146. display: flex;
  147. align-items: center;
  148. .tag{
  149. border-radius: 4px;
  150. background-color: rgba(22,119,255,1);
  151. color: rgba(255,255,255,1);
  152. font-size: 22rpx;
  153. padding:1px 8rpx;
  154. margin-left: 8rpx;
  155. }
  156. }
  157. .value{
  158. color: rgba(119,119,119,1);
  159. font-size: 24rpx;
  160. }
  161. }
  162. }
  163. }
  164. .img{
  165. width: 48rpx;
  166. height: 48rpx;
  167. }
  168. }
  169. .tabs{
  170. border-bottom: 1px solid rgba(232,232,232,1);
  171. height: 96rpx;
  172. line-height: 96rpx;
  173. background-color: #fff;
  174. border-top: 1px solid rgba(241,241,241,1);
  175. display: flex;
  176. justify-content: space-around;
  177. .tabsItem{
  178. color: rgba(51,51,51,1);
  179. font-size: 14px;
  180. }
  181. }
  182. .floating-button {
  183. position: fixed;
  184. bottom: 120rpx;
  185. width: 100%;
  186. display: flex;
  187. justify-content: center;
  188. .button {
  189. border-radius: 50px;
  190. background-color: rgba(49, 51, 52, 1);
  191. color: rgba(255, 255, 255, 1);
  192. font-size: 28rpx;
  193. width: 240rpx;
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. padding: 12rpx;
  198. .img {
  199. width: 40rpx;
  200. height: 40rpx;
  201. margin-right: 8rpx;
  202. }
  203. }
  204. }
  205. </style>