统一最后提交一次,此账号电脑以后不再做修改
fix(login): 修复登录逻辑和图片上传返回值处理 - 修改login.vue中的系统信息获取方式,添加操作系统类型判断 - 修复detail.vue中图片上传接口返回值解析问题 - 添加控制台日志用于调试图片路径处理流程 - 更新manifest.json应用名称为"秦港安全" - 更新版本号至2.3.9并添加定位权限配置 - 修复request.js中API响应数据解密和解析逻辑dev-2.0
parent
c41133d536
commit
e9a0908bb1
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"name" : "秦港双控-监管端",
|
||||
"name" : "秦港安全",
|
||||
"appid" : "__UNI__DB65C6B",
|
||||
"description" : "秦港双控-监管端",
|
||||
"versionName" : "01.00.59",
|
||||
"versionCode" : 59,
|
||||
"versionName" : "2.3.9",
|
||||
"versionCode" : 249,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关
|
||||
android:value="uni.UN5E8A412|__UNI__DB65C6B|124611200205|common" */
|
||||
|
|
@ -33,6 +33,8 @@
|
|||
/* android打包配置 */
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
|
|
|
|||
|
|
@ -162,3 +162,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,14 @@ export default {
|
|||
});
|
||||
uni.setStorageSync('token', token);
|
||||
uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss"));
|
||||
if (firstLogin === 1) {
|
||||
const { osName } = await uni.getSystemInfoSync();
|
||||
let osInt;
|
||||
if (osName === "android") {
|
||||
osInt = "1";
|
||||
} else {
|
||||
osInt = "2";
|
||||
}
|
||||
if (firstLogin === 1 && osInt === "1") {
|
||||
uni.$u.route({
|
||||
url: '/pages/login/change-password/change-password',
|
||||
type: 'reLaunch'
|
||||
|
|
|
|||
|
|
@ -747,18 +747,21 @@ export default {
|
|||
if (this.form.situationList[i].IMAGE[0]?.imagePath) {
|
||||
imagePath = this.form.situationList[i].IMAGE[0].imagePath
|
||||
} else if (this.form.situationList[i].IMAGE.length) {
|
||||
const { imgUrl } = await uploadSmd({
|
||||
let imgUrl = await uploadSmd({
|
||||
filePath: this.form.situationList[i].IMAGE[0].url,
|
||||
name: "file",
|
||||
});
|
||||
imagePath = imgUrl;
|
||||
imagePath = imgUrl.imgUrl;
|
||||
}
|
||||
console.info('imagePath',imagePath)
|
||||
situations.push({
|
||||
imagePath: imagePath,
|
||||
...this.form.situationList[i],
|
||||
IMAGE: null
|
||||
})
|
||||
}
|
||||
console.info('situations',situations)
|
||||
|
||||
for (let i = 0; i < this.form.inspectorList.length; i++) {
|
||||
if (!this.form.inspectorList[i].INSPECTION_USER_NAME) {
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -1,19 +1,12 @@
|
|||
import store from '../store/index'
|
||||
|
||||
// export var requestPath = 'http://192.168.192.201:8992/qa-regulatory-gwj/'; // 后台请求地址
|
||||
export var requestPath = 'https://skqhdg.porthebei.com:9005/regulatory_gwj_2.0/'; // 后台请求地址
|
||||
// export var requestPath = 'http://192.168.151.75:8092/';
|
||||
|
||||
let videoApiPath = 'https://arqsp.qhdsafety.com:10010'; // 视频平台后台请求地址
|
||||
import dayjs from "dayjs";
|
||||
import { setRefreshToken } from "@/api";
|
||||
import {decryptAes} from "@/utils/aes_secret";
|
||||
// export var requestPath = 'https://skqhdg.porthebei.com:9005/qa-regulatory-gwj/'; // 后台请求地址
|
||||
import store from '../store/index'
|
||||
|
||||
export var requestPath = 'http://192.168.192.201:8992/regulatory_gwj_2.0/';
|
||||
// export var requestPath = 'https://skqhdg.porthebei.com:9005/regulatory_gwj_2.0/'; // 后台请求地址
|
||||
export var requestPath = 'https://skqhdg.porthebei.com:9005/regulatory_gwj_2.0/';
|
||||
|
||||
let videoApiPath = 'https://arqsp.qhdsafety.com:10010'; // 视频平台后台请求地址
|
||||
|
||||
function logOut(reject,data) {
|
||||
uni.showToast({
|
||||
title: '登录失效,请重新登录',
|
||||
|
|
@ -115,9 +108,9 @@ function upload(url, data) {
|
|||
'token': uni.getStorageSync('token') || ''
|
||||
},
|
||||
success: (res) => {
|
||||
res.data = decryptAes(res.data);
|
||||
res.data = decryptAes(JSON.parse(res.data));
|
||||
uni.hideLoading();
|
||||
const data = JSON.parse(res.data)
|
||||
const data = res.data
|
||||
if (data.result === 'success') {
|
||||
resolve(data)
|
||||
} else {
|
||||
|
|
@ -161,9 +154,9 @@ function uploads(url, data) {
|
|||
'token': uni.getStorageSync('token') || ''
|
||||
},
|
||||
success: (res) => {
|
||||
res.data = decryptAes(res.data);
|
||||
res.data = decryptAes(JSON.parse(res.data));
|
||||
uni.hideLoading();
|
||||
const data = JSON.parse(res.data)
|
||||
const data = res.data
|
||||
if (data.result === 'success') {
|
||||
resolve(data)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue