Selaa lähdekoodia

首页修复

yxb
不甘寂寞 2 vuotta sitten
vanhempi
commit
cf462c5601

+ 1
- 1
datas/credentialType.js Näytä tiedosto

]; ];


//获取证件类型名称 //获取证件类型名称
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
} }

+ 1
- 1
datas/vehiclePlateColor.js Näytä tiedosto

] ]


//获取车牌颜色 //获取车牌颜色
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
} }

+ 1
- 1
datas/vehicleType.js Näytä tiedosto

} }
]; ];
//获取车辆类型 //获取车辆类型
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
} }

+ 1
- 1
pages/app/sign.vue Näytä tiedosto

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;

+ 1
- 1
pages/index/index.vue Näytä tiedosto

} }


.banner swiper { .banner swiper {
height: 568rpx;
height: 470rpx;
width: 750rpx; width: 750rpx;
} }



+ 2
- 2
utils/network/request.js Näytä tiedosto

} }
//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

Loading…
Peruuta
Tallenna