소스 검색

首页修复

yxb
不甘寂寞 2 년 전
부모
커밋
cf462c5601
6개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 1
    1
      datas/credentialType.js
  2. 1
    1
      datas/vehiclePlateColor.js
  3. 1
    1
      datas/vehicleType.js
  4. 1
    1
      pages/app/sign.vue
  5. 1
    1
      pages/index/index.vue
  6. 2
    2
      utils/network/request.js

+ 1
- 1
datas/credentialType.js 파일 보기

@@ -69,7 +69,7 @@ export const credentialType = [{
];

//获取证件类型名称
export const getCredentialType = (id: number) => {
export const getCredentialType = (id) => {
let types = credentialType.filter(item => item.id == id);
return types[0].type
}

+ 1
- 1
datas/vehiclePlateColor.js 파일 보기

@@ -41,7 +41,7 @@ export const vehiclePlateColor = [{
]

//获取车牌颜色
export const getVehiclePlateColor = (id: number) => {
export const getVehiclePlateColor = (id) => {
let colors = vehiclePlateColor.filter(item => item.id == id);
return colors[0].color
}

+ 1
- 1
datas/vehicleType.js 파일 보기

@@ -42,7 +42,7 @@ export const vehicleType = [
}
];
//获取车辆类型
export const getVehicleType = (id: number) => {
export const getVehicleType = (id) => {
let types = vehicleType.filter(item => item.id == id);
return types[0].title
}

+ 1
- 1
pages/app/sign.vue 파일 보기

@@ -64,7 +64,7 @@
uni.login({
provider: "weixin",
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`,
success: (res: any) => {
state.openid = res.data.openid;

+ 1
- 1
pages/index/index.vue 파일 보기

@@ -400,7 +400,7 @@ import { navTo,confirm } from "../../utils/utils";
}

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


+ 2
- 2
utils/network/request.js 파일 보기

@@ -35,8 +35,8 @@ export function request(code, 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是否为空
if (options.baseUrl) {
options.url = options.baseUrl

Loading…
취소
저장