改接口
This commit is contained in:
parent
b2f85c35c3
commit
ca75e2674d
|
|
@ -156,6 +156,7 @@
|
|||
uping.value = false;
|
||||
uni.showLoading()
|
||||
|
||||
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/api/ocr/businessLicense`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -163,7 +164,9 @@
|
|||
header: {
|
||||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!JSON.parse(uploadRes.data).success) {
|
||||
uni.hideLoading()
|
||||
|
|
@ -206,6 +209,28 @@
|
|||
}
|
||||
const fontphoto = ref("");
|
||||
const savephoto = (filePath) => {
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('jg') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -214,7 +239,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message;
|
||||
|
|
|
|||
|
|
@ -279,6 +279,28 @@
|
|||
}
|
||||
const uping = ref(true)
|
||||
const savephoto = (filePath, type) => {
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('jg') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -287,7 +309,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
|
|
@ -305,7 +327,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
|
|
|
|||
|
|
@ -431,14 +431,14 @@
|
|||
return
|
||||
}
|
||||
|
||||
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
|
||||
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
|
||||
specialImgeshow.value = filePath;
|
||||
form.name = father.name;
|
||||
form.idCard = father.idNumber;
|
||||
form.homeAddress = father.address
|
||||
savephoto(filePath);
|
||||
}
|
||||
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
|
||||
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
|
||||
specialImgeshow.value = filePath;
|
||||
form.name = father.name;
|
||||
form.idCard = father.idNumber;
|
||||
form.homeAddress = father.address
|
||||
savephoto(filePath);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -453,6 +453,28 @@
|
|||
})
|
||||
}
|
||||
const savephoto = (filePath, type) => {
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('zz') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -461,7 +483,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
specialImge.value = JSON.parse(uploadRes.data).message
|
||||
|
|
@ -626,6 +648,7 @@
|
|||
width: 100%;
|
||||
height: 700rpx;
|
||||
}
|
||||
|
||||
.white-photo {
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
|
|
@ -640,6 +663,7 @@
|
|||
height: 200rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.photo-left {
|
||||
.photo-weight {
|
||||
font-size: 32rpx;
|
||||
|
|
|
|||
|
|
@ -213,8 +213,9 @@
|
|||
const photoclick = (element) => {
|
||||
if (element) {
|
||||
uni.previewImage({
|
||||
urls: [headImge.value, backImge.value,specialImgeshow.value], // 必填,所有要预览的图片地址数组
|
||||
current: targetphoto.value ? (targetphoto.value==1?backImge.value:specialImgeshow.value) : headImge.value, // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
urls: [headImge.value, backImge.value, specialImgeshow.value], // 必填,所有要预览的图片地址数组
|
||||
current: targetphoto.value ? (targetphoto.value == 1 ? backImge.value : specialImgeshow
|
||||
.value) : headImge.value, // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
indicator: 'default', // 可选,指示器样式,H5/App 有效,值为 'default'(圆点)或 'number'(数字)
|
||||
longPressActions: { // 可选,仅 App 支持,长按图片时弹出的操作项
|
||||
itemList: ['保存图片到相册'],
|
||||
|
|
@ -236,25 +237,25 @@
|
|||
}
|
||||
// specialImge
|
||||
targetphoto.value = number
|
||||
if (!number){
|
||||
if(headImge.value){
|
||||
if (!number) {
|
||||
if (headImge.value) {
|
||||
|
||||
bottomshow.value = true;
|
||||
}else{
|
||||
} else {
|
||||
getMessage()
|
||||
}
|
||||
}else if(number==1){
|
||||
if(backImge.value){
|
||||
} else if (number == 1) {
|
||||
if (backImge.value) {
|
||||
|
||||
bottomshow.value = true;
|
||||
}else{
|
||||
} else {
|
||||
getMessage()
|
||||
}
|
||||
}else if(number == 2){
|
||||
if(specialImge.value){
|
||||
} else if (number == 2) {
|
||||
if (specialImge.value) {
|
||||
|
||||
bottomshow.value = true;
|
||||
}else{
|
||||
} else {
|
||||
isspecial.value = true;
|
||||
getMessage()
|
||||
}
|
||||
|
|
@ -324,7 +325,7 @@
|
|||
uping.value = true;
|
||||
return
|
||||
}
|
||||
if(isspecial.value || targetphoto.value == 2){
|
||||
if (isspecial.value || targetphoto.value == 2) {
|
||||
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
|
||||
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
|
||||
// textArray[0] = father.name;
|
||||
|
|
@ -340,7 +341,7 @@
|
|||
savephoto(filePath, 2);
|
||||
}
|
||||
isspecial.value = false
|
||||
}else{
|
||||
} else {
|
||||
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
|
||||
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
|
||||
textArray[0] = father.name;
|
||||
|
|
@ -380,6 +381,28 @@
|
|||
}
|
||||
const uping = ref(true)
|
||||
const savephoto = (filePath, type) => {
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('zz') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -388,14 +411,14 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message
|
||||
} else if(type==1) {
|
||||
} else if (type == 1) {
|
||||
endphoto.value = JSON.parse(uploadRes.data).message
|
||||
} else if(type==2){
|
||||
} else if (type == 2) {
|
||||
specialImge.value = JSON.parse(uploadRes.data).message
|
||||
}
|
||||
uni.hideLoading()
|
||||
|
|
@ -408,14 +431,14 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message
|
||||
} else if(type==1) {
|
||||
} else if (type == 1) {
|
||||
endphoto.value = JSON.parse(uploadRes.data).message
|
||||
} else if(type==2){
|
||||
} else if (type == 2) {
|
||||
specialImge.value = JSON.parse(uploadRes.data).message
|
||||
}
|
||||
uping.value = true;
|
||||
|
|
|
|||
|
|
@ -270,6 +270,28 @@
|
|||
}
|
||||
const uping = ref(true)
|
||||
const savephoto = (filePath, type) => {
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('yg') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -278,7 +300,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
|
|
@ -296,7 +318,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
|
|
|
|||
|
|
@ -237,6 +237,28 @@
|
|||
}
|
||||
const uping = ref(true)
|
||||
const savephoto = (filePath, type) => {
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('yg') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -245,7 +267,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
|
|
@ -265,7 +287,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,8 @@
|
|||
onShow
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
media_base_url,base_url
|
||||
media_base_url,
|
||||
base_url
|
||||
} from '@/request/index.js'
|
||||
import {
|
||||
changemessage
|
||||
|
|
@ -210,6 +211,28 @@
|
|||
const fontphoto = ref("");
|
||||
const savephoto = (filePath) => {
|
||||
uping.value = false;
|
||||
// category: 'jg' | 'yg' | 'zz' | 'jhr'
|
||||
const now = new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 补0
|
||||
let path = '';
|
||||
|
||||
switch ('yg') {
|
||||
case 'jg': // 机构
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case 'yg': // 员工
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case 'zz': // 长者
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case 'jhr': // 监护人
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
@ -218,7 +241,7 @@
|
|||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
imgArray[imgetarget.value] = JSON.parse(uploadRes.data).message
|
||||
|
|
@ -276,9 +299,9 @@
|
|||
// title: "888888888888",
|
||||
// icon: 'error'
|
||||
// })
|
||||
console.log("AAAA",data,ukey.value)
|
||||
console.log("AAAA", data, ukey.value)
|
||||
changemessage(data, ukey.value).then(res => {
|
||||
console.log("BBBB",res)
|
||||
console.log("BBBB", res)
|
||||
// uni.showToast({
|
||||
// title: res,
|
||||
// // icon: 'error'
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -7052,7 +7052,7 @@ function isConsoleWritable() {
|
|||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.2.27,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_iKurH_";
|
||||
const id = "mp-weixin_bPP545";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
|
|
|||
|
|
@ -84,7 +84,9 @@ const _sfc_main = {
|
|||
header: {
|
||||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
if (!JSON.parse(uploadRes.data).success) {
|
||||
common_vendor.index.hideLoading();
|
||||
|
|
@ -126,6 +128,26 @@ const _sfc_main = {
|
|||
}
|
||||
const fontphoto = common_vendor.ref("");
|
||||
const savephoto = (filePath) => {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("jg") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -136,7 +158,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message;
|
||||
|
|
|
|||
|
|
@ -148,6 +148,26 @@ const _sfc_main = {
|
|||
}
|
||||
const uping = common_vendor.ref(true);
|
||||
const savephoto = (filePath, type) => {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("jg") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -158,7 +178,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
if (!type) {
|
||||
|
|
@ -178,7 +198,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes2) => {
|
||||
if (!type) {
|
||||
|
|
|
|||
|
|
@ -296,6 +296,26 @@ const _sfc_main = {
|
|||
});
|
||||
}
|
||||
const savephoto = (filePath, type) => {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("zz") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -306,7 +326,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
specialImge.value = JSON.parse(uploadRes.data).message;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ const _sfc_main = {
|
|||
});
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/addoldman/oldIDcard.vue:278", "拍照失败:", err);
|
||||
common_vendor.index.__f__("error", "at pages/addoldman/oldIDcard.vue:279", "拍照失败:", err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -177,6 +177,26 @@ const _sfc_main = {
|
|||
}
|
||||
const uping = common_vendor.ref(true);
|
||||
const savephoto = (filePath, type) => {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("zz") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -187,7 +207,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
if (!type) {
|
||||
|
|
@ -209,7 +229,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes2) => {
|
||||
if (!type) {
|
||||
|
|
@ -394,7 +414,7 @@ const _sfc_main = {
|
|||
});
|
||||
},
|
||||
fail: (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:630", "????", e);
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:653", "????", e);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -138,6 +138,26 @@ const _sfc_main = {
|
|||
}
|
||||
const uping = common_vendor.ref(true);
|
||||
const savephoto = (filePath, type) => {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("yg") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -148,7 +168,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
if (!type) {
|
||||
|
|
@ -168,7 +188,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes2) => {
|
||||
if (!type) {
|
||||
|
|
@ -278,7 +298,7 @@ const _sfc_main = {
|
|||
common_vendor.index.navigateBack();
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:418", "11", common_vendor.index.getStorageSync("backhuancun"));
|
||||
common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:440", "11", common_vendor.index.getStorageSync("backhuancun"));
|
||||
if (common_vendor.index.getStorageSync("backhuancun").name) {
|
||||
let data = common_vendor.index.getStorageSync("backhuancun");
|
||||
textArray[0] = data.name;
|
||||
|
|
|
|||
|
|
@ -117,6 +117,26 @@ const _sfc_main = {
|
|||
}
|
||||
const uping = common_vendor.ref(true);
|
||||
const savephoto = (filePath, type) => {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("yg") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -127,7 +147,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
if (!type) {
|
||||
|
|
@ -149,7 +169,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes2) => {
|
||||
if (!type) {
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ const _sfc_main = {
|
|||
});
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/addstaff/healthcertificate.vue:202", "拍照失败:", err);
|
||||
common_vendor.index.__f__("error", "at pages/addstaff/healthcertificate.vue:203", "拍照失败:", err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -78,6 +78,26 @@ const _sfc_main = {
|
|||
common_vendor.ref("");
|
||||
const savephoto = (filePath) => {
|
||||
uping.value = false;
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const yyyy = now.getFullYear();
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0");
|
||||
let path = "";
|
||||
switch ("yg") {
|
||||
case "jg":
|
||||
path = `${yyyy}/${mm}/jgxx/jg`;
|
||||
break;
|
||||
case "yg":
|
||||
path = `${yyyy}/${mm}/ygxx/yg`;
|
||||
break;
|
||||
case "zz":
|
||||
path = `${yyyy}/${mm}/zzxx/zz`;
|
||||
break;
|
||||
case "jhr":
|
||||
path = `${yyyy}/${mm}/zzxx/jhr`;
|
||||
break;
|
||||
default:
|
||||
path = `${yyyy}/${mm}/temp`;
|
||||
}
|
||||
common_vendor.index.uploadFile({
|
||||
url: `${request_index.base_url}/sys/common/upload`,
|
||||
// 替换为您的POST接口地址
|
||||
|
|
@ -88,7 +108,7 @@ const _sfc_main = {
|
|||
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
|
||||
},
|
||||
formData: {
|
||||
biz: `temp`
|
||||
biz: path
|
||||
},
|
||||
success: (uploadRes) => {
|
||||
imgArray[imgetarget.value] = JSON.parse(uploadRes.data).message;
|
||||
|
|
@ -120,9 +140,9 @@ const _sfc_main = {
|
|||
data.endTime = compontent_public_long.swapLongTerm(data.endTime);
|
||||
}
|
||||
data.orgCode = common_vendor.index.getStorageSync("changeyuangongorgCode");
|
||||
common_vendor.index.__f__("log", "at pages/addstaff/healthcertificate.vue:279", "AAAA", data, ukey.value);
|
||||
common_vendor.index.__f__("log", "at pages/addstaff/healthcertificate.vue:302", "AAAA", data, ukey.value);
|
||||
pages_addstaff_api_addjigou.changemessage(data, ukey.value).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/addstaff/healthcertificate.vue:281", "BBBB", res);
|
||||
common_vendor.index.__f__("log", "at pages/addstaff/healthcertificate.vue:304", "BBBB", res);
|
||||
if (res.result == "重复提交") {
|
||||
common_vendor.index.showToast({
|
||||
title: `重复提交`,
|
||||
|
|
|
|||
|
|
@ -5,11 +5,12 @@
|
|||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": false,
|
||||
"es6": true,
|
||||
"postcss": false,
|
||||
"minified": true,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true
|
||||
"bigPackageSizeSupport": true,
|
||||
"enhance": true
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "latest",
|
||||
|
|
|
|||
Loading…
Reference in New Issue