lockInfo.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <template>
  2. <view>
  3. <view class="page-role" v-if="!loading">
  4. <img class="img" src="@/assets/img/nonwhitelist/info.png" alt="">
  5. <view class="text1">{{permission?'暂无权限':'加载中...'}}</view>
  6. <view class="text2" v-if="permission" >此车位仅限车主及白名单用户使用</view>
  7. <view class="botton" v-if="permission">返回首页</view>
  8. </view>
  9. <view class="jpmain " v-else >
  10. <view class="gradient-header">
  11. <view class="jpback">
  12. </view>
  13. </view>
  14. <view class="page-top" v-if="id">
  15. <!-- <view class="name">
  16. <img class="img" src="@/assets/img/lockInfo/info1.png" alt="">
  17. </view> -->
  18. <view class="name">
  19. <img class="img img2" src="@/assets/img/lockInfo/info2.png" alt="">
  20. </view>
  21. <!-- <view class="name">
  22. <img class="img" src="@/assets/img/parkingDetails/item4.png" alt="">
  23. </view> -->
  24. <view class="value">
  25. 未降锁
  26. </view>
  27. </view>
  28. <view class="body">
  29. <view class="page" v-if="id">
  30. <view class="page-main">
  31. <view class="name">
  32. {{floorlockInfo.name}}<span class="tag">{{floorlockInfo.typeN}}</span>
  33. </view>
  34. <view class="value">
  35. <view class="jpbutton jpbutton1">
  36. <img class="img" src="@/assets/img/button/lock.png" alt="">
  37. 降锁
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="page">
  43. <view class="page-content">
  44. <view class="tip1">
  45. <view class="tip-title">温馨提示</view>
  46. <view class="step">
  47. 1、微信扫描位于充电桩立柱或站内墙面上的二维码。
  48. </view>
  49. <view class="step">
  50. 2、选择空闲车位。
  51. </view>
  52. <view class="step">
  53. 3、选择需要降锁的车位,点击“降锁”按钮。
  54. </view>
  55. <view class="step">
  56. 4、降锁完成后提示操作完成,并提示尽快停车。
  57. </view>
  58. </view>
  59. <view class="tip2">
  60. <view class="tip-title">温馨提示</view>
  61. <view class="step">1、顺利降锁后有三分钟时间,请及时就位;超时地锁自动升起,请重新扫码降锁。</view>
  62. <view class="step">2、请按降锁流程说明停车,严禁使用外力降锁。</view>
  63. <view class="step">3、地锁服务热线 400-0000-000</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. import * as API from '@/apis/pagejs/index.js'
  73. export default {
  74. data() {
  75. return {
  76. id: "",
  77. loading:false,
  78. permission:false,
  79. floorlockInfo: {}
  80. }
  81. },
  82. onLoad(op) {
  83. if (op.id) {
  84. this.id = op.id
  85. uni.setNavigationBarTitle({
  86. title: "加载中..."
  87. })
  88. this.getFloorlockDetails()
  89. } else {
  90. this.loading=true
  91. uni.setNavigationBarTitle({
  92. title: "降锁说明"
  93. })
  94. }
  95. },
  96. methods: {
  97. getFloorlockDetails() {
  98. uni.showLoading({
  99. title: "加载中",
  100. mask: true,
  101. })
  102. var obj = {
  103. id: this.id
  104. }
  105. API.floorlockDetails(obj).then((res) => {
  106. this.floorlockInfo = res.data.floorlockInfo
  107. if(this.floorlockInfo.type==1){
  108. uni.setNavigationBarTitle({
  109. title: this.floorlockInfo.parkingName
  110. })
  111. this.loading=true
  112. }else{
  113. this.permission=true
  114. }
  115. uni.hideLoading();
  116. }).catch(error => {
  117. uni.hideLoading();
  118. uni.showToast({
  119. title: error,
  120. icon: "none"
  121. })
  122. })
  123. }
  124. },
  125. }
  126. </script>
  127. <style>
  128. page {
  129. /* //background-color: rgba(242, 244, 246, 1); */
  130. }
  131. </style>
  132. <style scoped lang="scss">
  133. /* styles.css */
  134. .page-role {
  135. padding-top: 120rpx;
  136. display: flex;
  137. flex-direction: column;
  138. align-items: center;
  139. .img {
  140. width: 500rpx;
  141. height: 500rpx;
  142. }
  143. .text1 {
  144. color: rgba(51, 51, 51, 1);
  145. font-weight: bold;
  146. font-size: 48rpx;
  147. margin-bottom: 16rpx;
  148. }
  149. .text2 {
  150. color: rgba(51, 51, 51, 1);
  151. font-size: 36rpx;
  152. margin-bottom: 200rpx;
  153. }
  154. .botton {
  155. border-radius: 100rpx;
  156. width: 360rpx;
  157. text-align: center;
  158. border: 1px solid rgba(187, 187, 187, 1);
  159. color: rgba(22, 119, 255, 1);
  160. padding: 16rpx;
  161. }
  162. }
  163. .body {
  164. padding: 32rpx;
  165. }
  166. .gradient-header {
  167. height: 0px;
  168. }
  169. .jpback {
  170. height: 400rpx;
  171. background: linear-gradient(180deg, rgba(203, 234, 255, 1) 0%, rgba(203, 234, 255, 0) 100%);
  172. }
  173. .page-top {
  174. padding: 40rpx;
  175. padding-top: 120rpx;
  176. display: flex;
  177. flex-direction: column;
  178. align-items: center;
  179. .name {
  180. width: 320rpx;
  181. height: 320rpx;
  182. display: flex;
  183. align-items: flex-end;
  184. .img {
  185. width: 320rpx;
  186. height: 320rpx;
  187. }
  188. .img2 {
  189. width: 320rpx;
  190. height: 140rpx;
  191. }
  192. }
  193. .value {
  194. margin-top: 24rpx;
  195. font-size: 40rpx;
  196. font-weight: bold;
  197. color: #333333;
  198. }
  199. }
  200. .page {
  201. border-radius: 16rpx;
  202. background-color: rgba(255, 255, 255, 1);
  203. color: rgba(16, 16, 16, 1);
  204. padding: 32rpx;
  205. margin-bottom: 32rpx;
  206. font-size: 32rpx;
  207. color: rgb(16, 16, 16);
  208. .page-main {
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. .name {
  213. color: rgba(51, 51, 51, 1);
  214. font-size: 36rpx;
  215. display: flex;
  216. align-items: center;
  217. .tag {
  218. margin-left: 8rpx;
  219. color: rgba(119, 119, 119, 1);
  220. border-radius: 8rpx;
  221. padding: 1px 4rpx;
  222. font-size: 24rpx;
  223. border: 1px solid rgba(187, 187, 187, 1);
  224. }
  225. }
  226. }
  227. .page-content {
  228. .step {
  229. margin-bottom: 16rpx;
  230. }
  231. .tip-title {
  232. color: #101010;
  233. font-size: 36rpx;
  234. font-weight: bold;
  235. margin-bottom: 24rpx;
  236. }
  237. .tip1 {
  238. .step {
  239. color: #101010
  240. }
  241. border-bottom: 1px solid rgba(241, 241, 241, 1);
  242. margin-bottom: 24rpx;
  243. padding-bottom: 8rpx;
  244. }
  245. .tip2 {
  246. .step {
  247. color: #333333
  248. }
  249. }
  250. }
  251. }
  252. .jpbutton {
  253. border-radius: 100rpx;
  254. width: 160rpx;
  255. color: #fff;
  256. padding: 8rpx;
  257. display: flex;
  258. align-items: center;
  259. justify-content: center;
  260. .img {
  261. margin-right: 8rpx;
  262. width: 32rpx;
  263. height: 32rpx;
  264. }
  265. }
  266. .jpbutton1 {
  267. background-color: #2979FF;
  268. .img {
  269. width: 32rpx;
  270. height: 32rpx;
  271. }
  272. }
  273. .jpbutton2 {
  274. background-color: #2979FF;
  275. .img {
  276. width: 40rpx;
  277. height: 40rpx;
  278. animation: spin 2s linear infinite;
  279. /* 添加无限旋转动画 */
  280. }
  281. /* 定义旋转动画 */
  282. @keyframes spin {
  283. from {
  284. transform: rotate(0deg);
  285. /* 起始角度 */
  286. }
  287. to {
  288. transform: rotate(360deg);
  289. /* 结束角度 */
  290. }
  291. }
  292. }
  293. .jpbutton3 {
  294. background-color: #00B962;
  295. }
  296. .jpbutton4 {
  297. background-color: #A7A2A2;
  298. }
  299. </style>