|
@@ -35,38 +35,21 @@
|
|
|
<van-row class="contentBox">
|
|
|
<van-row class="system">
|
|
|
<van-row type="flex" gutter="22" class="menu">
|
|
|
- <!-- <van-col span="6" class="function" @click="sm('https://smartpark.caih.com/h5/#/licence',1)">
|
|
|
- <van-image :src="require('../../assets/image/ic_车辆登记备份@3x.png')" />
|
|
|
- <div class="title">车牌登记</div>
|
|
|
- </van-col> -->
|
|
|
+
|
|
|
<van-col span="6" class="function" @click="ykt">
|
|
|
<van-image :src="require('../../assets/image/ic_一卡通备份@3x.png')" />
|
|
|
<div class="title">余额管理</div>
|
|
|
</van-col>
|
|
|
- <!-- <van-col span="6" class="function" @click="sm('https://smartpark.caih.com/h5/#/visitorApply',2)">
|
|
|
- <van-image :src="require('../../assets/image/ic_访客登记备份@3x.png')" />
|
|
|
- <div class="title">访客登记</div>
|
|
|
- </van-col> -->
|
|
|
- <!-- <van-col span="6" class="function" @click="sm('https://smartpark.caih.com/h5/#/safeIndex',3)" v-if="people57 == '1'">
|
|
|
- <van-image :src="require('../../assets/image/ic_综合安防备份@3x.png')" />
|
|
|
- <div class="title">综合安防</div>
|
|
|
- </van-col> -->
|
|
|
- <!-- <van-col span="6" class="function" @click="dc" >
|
|
|
- <van-image :src="require('../../assets/image/ic_点餐服务备份@3x.png')" />
|
|
|
- <div class="title">点餐服务</div>
|
|
|
- </van-col> -->
|
|
|
+
|
|
|
<van-col span="6" class="function" @click="pc" v-if="pcy">
|
|
|
<van-image :src="require('../../assets/image/ic_配餐服务备份@3x.png')" />
|
|
|
<div class="title">配餐服务</div>
|
|
|
</van-col>
|
|
|
- <van-col span="6" class="function" @click="yddp('http://10.21.39.1:8280/#/index')" v-if="MT57">
|
|
|
+ <van-col span="6" class="function" @click="yddp(linkUrl+'#/index')" v-if="MT57">
|
|
|
<van-image :src="require('../../assets/image/yd.png')" />
|
|
|
<div class="title">运营中心</div>
|
|
|
</van-col>
|
|
|
- <!-- <van-col span="6" class="function" v-if="people57 == '1'">
|
|
|
- <van-image :src="require('../../assets/image/function/icon11.png')" />
|
|
|
- <div class="title">预约场地</div>
|
|
|
- </van-col> -->
|
|
|
+
|
|
|
</van-row>
|
|
|
</van-row>
|
|
|
<van-row class="record">
|
|
@@ -148,6 +131,7 @@ import { encrypt, decrypt } from '../../utils/jsencrypt';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ linkUrl:process.env.VUE_APP_YYZX_BASE_API,
|
|
|
//个人信息
|
|
|
portrait57:undefined,
|
|
|
nickName57:undefined,
|
|
@@ -231,7 +215,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
//车牌号查询
|
|
|
- axios.post(`https://smartpark.caih.com/ykt/api/thirdparty/v1/openInterface/getPlateNumber`,
|
|
|
+ axios.post(`${process.env.VUE_APP_CARD_BASE_API}api/thirdparty/v1/openInterface/getPlateNumber`,
|
|
|
{
|
|
|
"nonce": Cookies.get("nonce57"),
|
|
|
"timestamp": Cookies.get("timestamp57"),
|
|
@@ -255,7 +239,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
//通行记录
|
|
|
- axios.post(`https://smartpark.caih.com/ykt/api/thirdparty/v1/openInterface/getAccessTraffic?page=0&size=6&sort=id,desc`,
|
|
|
+ axios.post(`${process.env.VUE_APP_CARD_BASE_API}api/thirdparty/v1/openInterface/getAccessTraffic?page=0&size=6&sort=id,desc`,
|
|
|
{
|
|
|
"nonce": Cookies.get("nonce57"),
|
|
|
"timestamp": Cookies.get("timestamp57"),
|
|
@@ -277,7 +261,7 @@ export default {
|
|
|
Toast(err.response.data.message)
|
|
|
})
|
|
|
//停车记录
|
|
|
- axios.post(`https://smartpark.caih.com/ykt/api/thirdparty/v1/openInterface/getParkingTrafficByUserNumber?page=0&size=6&sort=id,desc`,
|
|
|
+ axios.post(`${process.env.VUE_APP_CARD_BASE_API}api/thirdparty/v1/openInterface/getParkingTrafficByUserNumber?page=0&size=6&sort=id,desc`,
|
|
|
{
|
|
|
"nonce": Cookies.get("nonce57"),
|
|
|
"timestamp": Cookies.get("timestamp57"),
|
|
@@ -325,7 +309,7 @@ export default {
|
|
|
})
|
|
|
//访客查询
|
|
|
|
|
|
- axios.post(`https://smartpark.caih.com/ykt/api/thirdparty/v1/openInterface/getVisitant?page=0&size=10`,
|
|
|
+ axios.post(`${process.env.VUE_APP_CARD_BASE_API}api/thirdparty/v1/openInterface/getVisitant?page=0&size=10`,
|
|
|
{
|
|
|
timestamp:Cookies.get("timestamp57"),
|
|
|
nonce:Cookies.get("nonce57"),
|
|
@@ -362,13 +346,13 @@ export default {
|
|
|
type:"wx_yt"
|
|
|
}
|
|
|
if(id == 1){
|
|
|
- window.location.href = `https://smartpark.caih.com/h5/#/parkingAdministration?param=${encodeURIComponent(JSON.stringify(param))}`
|
|
|
+ window.location.href = `${process.env.VUE_APP_BASE_API}h5/#/parkingAdministration?param=${encodeURIComponent(JSON.stringify(param))}`
|
|
|
}
|
|
|
if(id == 2){
|
|
|
this.$router.push({ path: `/record?id=2`})
|
|
|
}
|
|
|
if(id == 3){
|
|
|
- window.location.href = `https://smartpark.caih.com/h5/#/myVisitor?param=${encodeURIComponent(JSON.stringify(param))}`
|
|
|
+ window.location.href = `${process.env.VUE_APP_BASE_API}h5/#/myVisitor?param=${encodeURIComponent(JSON.stringify(param))}`
|
|
|
}
|
|
|
|
|
|
|
|
@@ -382,13 +366,13 @@ export default {
|
|
|
let params = JSON.stringify({nonce:this.nonce,timestamp:this.timestamp,query:{userId:this.userId}})
|
|
|
this.formData.append('params', params)// 参数
|
|
|
this.formData.append('multipartFile', param.file)// 参数
|
|
|
- axios.post(`https://smartpark.caih.com/zkxt/api/thirdparty/v1/user/edit/zkuser/picture` ,this.formData,
|
|
|
+ axios.post(`${process.env.VUE_APP_CONTROL_BASE_API}api/thirdparty/v1/user/edit/zkuser/picture` ,this.formData,
|
|
|
{headers: {
|
|
|
'Content-Type': "multipart/form-data",
|
|
|
"XYTACCESSTOKEN":this.token
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- axios.get(`https://smartpark.caih.com/zkxt/api/thirdparty/v1/user/appLogin?name=${this.username}&pass=${this.password}`).then(res => {
|
|
|
+ axios.get(`${process.env.VUE_APP_CONTROL_BASE_API}api/thirdparty/v1/user/appLogin?name=${this.username}&pass=${this.password}`).then(res => {
|
|
|
if (res?.data?.data?.data?.cipher) {
|
|
|
localStorage.setItem("cipher57",res?.data?.data?.data?.cipher)
|
|
|
localStorage.setItem("classify","1")
|
|
@@ -426,7 +410,6 @@ export default {
|
|
|
},
|
|
|
//世茂
|
|
|
sm(url){
|
|
|
- // https://smartpark.caih.com/h5/#/myVisitor 访客申请列表页
|
|
|
let param = {
|
|
|
userid:encrypt(Cookies.get("username57")),
|
|
|
password:Cookies.get("password57"),
|