一、地址
停车场系统源码-前后端完全开源的智慧停车场管理系统源码, 停车场系统源码,停车源码,停车场源码,停车系统源码
二、内容简介
- 停车场系统兼容性强,已经兼容市面上主流相机SDK,用户可以根据自己的需求自行扩展
- 支持根据当前位置搜索附近的停车场,可以在线预约停车位
- 用户可以在手机上查询自己的停车记录
- 岗亭端可以根据实时查看停车场的数据记录,实时查看车位情况
- 兼容安卓、苹果和H5
停车场系统源码,停车源码,停车场源码,停车系统源码
三、环境要求
三、图片展示
停车场系统源码,停车源码,停车场源码,停车系统源码
<template>
<view class="content">
<view class="headline">
<view class="" @click="openPayment">
<image src="../../static/images/icon_sf.png"></image>
<view class="">停车缴费</view>
</view>
<view class="" @click="openParkingRecord">
<image src="../../static/images/icon_record.png"></image>
<view class="">停车记录</view>
</view>
<view class="" @click="paymentOnBehalf">
<image src="../../static/images/icon_charges.png"></image>
<view class="">他人代缴</view>
</view>
<view class="" @click="parkingSearch">
<image src="../../static/make.png"></image>
<view class="">预约车位</view>
</view>
</view>
<view class="hint">
<image src="../../static/bad.png"></image>
<view>更多功能,请下载app体验</view>
<button open-type="getUserInfo">点我进行授权</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello',
userInfo: null
}
},
onShow() {
uni.setStorageSync("token","")
this.token = uni.getStorageSync("token");
},
onLoad(e) {
var self = this;
wx.login({
success (res) {
if (res.code) {
//发起网络请求
const code = res.code
wx.getUserInfo({
success: res => {
wx.request({
url: self.serviceUrl+'auth/getWxBaseUserInfoByCodeAndLoginType',
method:"GET",
data: {
code: code,
loginType:"mp",
encryptedData: res.encryptedData,
iv: res.iv,
},
success: (e) => {
uni.setStorageSync("token","Bearer "+e.data.token.jwt_token);
},
})
}
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
// var url = window.location.search;
// url = decodeURIComponent(url)
// var theRequest = new Object();
// if (url.indexOf("?") != -1) {
// var str = url.substr(1);
// var strs = str.split("&");
// for (var i = 0; i < strs.length; i++) {
// theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
// }
// }
// var userInfo = JSON.parse(theRequest.userInfo);
// uni.setStorageSync("userInfo",userInfo)
// var token = JSON.parse(theRequest.jwt_token).jwt_token;
// uni.setStorageSync("token","Bearer "+token)
},
methods: {
//获取用户信息
getWxBaseUserInfoByCode(code){
uni.request({
url:this.serviceUrl+"auth/getWxBaseUserInfoByCode",
method: "GET",
data:{
code:code,
},
header: {
'Content-type': 'application/x-www-form-urlencoded',
"Authorization": this.token
},
success: (res) => {
console.log(res)
if(res.statusCode==200){
}
},
fail(res) {
uni.showToast({
title: '网络错误!',
icon:"none"
})
}
})
},
paymentOnBehalf(){
uni.navigateTo({
url:"../paymentOnBehalf/paymentOnBehalf"
})
},
parkingSearch(){
uni.navigateTo({
url:"../newUI/parkingSearch/parkingSearch"
})
},
openParkingRecord(){
uni.navigateTo({
url:"../parkingRecord/parkingRecord"