]; | ]; | ||||
//获取证件类型名称 | //获取证件类型名称 | ||||
export const getCredentialType = (id: number) => { | |||||
export const getCredentialType = (id) => { | |||||
let types = credentialType.filter(item => item.id == id); | let types = credentialType.filter(item => item.id == id); | ||||
return types[0].type | return types[0].type | ||||
} | } |
] | ] | ||||
//获取车牌颜色 | //获取车牌颜色 | ||||
export const getVehiclePlateColor = (id: number) => { | |||||
export const getVehiclePlateColor = (id) => { | |||||
let colors = vehiclePlateColor.filter(item => item.id == id); | let colors = vehiclePlateColor.filter(item => item.id == id); | ||||
return colors[0].color | return colors[0].color | ||||
} | } |
} | } | ||||
]; | ]; | ||||
//获取车辆类型 | //获取车辆类型 | ||||
export const getVehicleType = (id: number) => { | |||||
export const getVehicleType = (id) => { | |||||
let types = vehicleType.filter(item => item.id == id); | let types = vehicleType.filter(item => item.id == id); | ||||
return types[0].title | return types[0].title | ||||
} | } |
uni.login({ | uni.login({ | ||||
provider: "weixin", | provider: "weixin", | ||||
success: function(e) { | success: function(e) { | ||||
wx.request({ | |||||
uni.request({ | |||||
url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | ||||
success: (res: any) => { | success: (res: any) => { | ||||
state.openid = res.data.openid; | state.openid = res.data.openid; |
} | } | ||||
.banner swiper { | .banner swiper { | ||||
height: 568rpx; | |||||
height: 470rpx; | |||||
width: 750rpx; | width: 750rpx; | ||||
} | } | ||||
} | } | ||||
//Url 地址 | //Url 地址 | ||||
//options.url = envs[process.env.NODE_ENV].baseUrl || '' + options.url | //options.url = envs[process.env.NODE_ENV].baseUrl || '' + options.url | ||||
options.url = 'http://192.168.100.63:8087/ifzt/api/interfaceMidGroundIn' | |||||
// options.url = 'http://222.85.144.89:19002/ifzt/api/interfaceMidGroundIn' | |||||
// options.url = 'http://192.168.100.63:8087/ifzt/api/interfaceMidGroundIn' | |||||
options.url = 'http://222.85.144.89:19002/ifzt/api/interfaceMidGroundIn' | |||||
//判断baseUri是否为空 | //判断baseUri是否为空 | ||||
if (options.baseUrl) { | if (options.baseUrl) { | ||||
options.url = options.baseUrl | options.url = options.baseUrl |