This commit is contained in:
zoujiandong
2025-08-03 17:46:42 +08:00
parent 6e320c3944
commit e5979f605e
24 changed files with 162 additions and 101 deletions
+2 -2
View File
@@ -7317,9 +7317,9 @@ function isConsoleWritable() {
return isWritable;
}
function initRuntimeSocketService() {
const hosts = "192.168.100.165,127.0.0.1";
const hosts = "192.168.0.100,127.0.0.1";
const port = "8090";
const id = "mp-weixin_pETpDa";
const id = "mp-weixin_SRSp4k";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();
@@ -25,11 +25,16 @@ const _sfc_main = {
const useImg = common_vendor.ref("");
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
delta: 1,
fail() {
common_vendor.index.redirectTo({
url: "/pages/index/index"
});
}
});
};
const goHome = () => {
common_vendor.index.__f__("log", "at components/backDetailNav/backDetailNav.vue:62", props.navName);
common_vendor.index.__f__("log", "at components/backDetailNav/backDetailNav.vue:67", props.navName);
if (props.navName == "肝胆相照病例交流园地") {
common_vendor.index.reLaunch({
url: "/pages/caseTalk/caseTalk"
@@ -22,7 +22,12 @@ const _sfc_main = {
setup(__props) {
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
delta: 1,
fail() {
common_vendor.index.redirectTo({
url: "/pages/index/index"
});
}
});
};
return (_ctx, _cache) => {
+6 -1
View File
@@ -19,7 +19,12 @@ const _sfc_main = {
setup(__props) {
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
delta: 1,
fail() {
common_vendor.index.redirectTo({
url: "/pages/index/index"
});
}
});
};
return (_ctx, _cache) => {
@@ -64,7 +64,12 @@ const _sfc_main = {
};
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
delta: 1,
fail() {
common_vendor.index.redirectTo({
url: "/pages/index/index"
});
}
});
};
common_vendor.onLoad(() => {
+21 -21
View File
@@ -172,11 +172,11 @@ const _sfc_main = {
let imgHeight, imgWidth;
let font = "";
let fontColor = "#fff";
let strokeWidth = 3;
let strokeWidth = 10;
common_vendor.index.getImageInfo({
src: base64,
success: (imageRes) => {
let scale = 28;
let scale = imageRes.width / 800 * 30 > 12 ? imageRes.width / 800 * 30 : 12;
font = scale + "px Arial";
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:360", imageRes);
canvas.width = imageRes.width;
@@ -188,8 +188,8 @@ const _sfc_main = {
image.src = base64;
image.onload = () => {
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
let posXmargin = 10;
let posYmargin = 10;
let posXmargin = 20;
let posYmargin = 20;
let randomNumber = 3;
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:378", "randomNumber:" + randomNumber);
switch (randomNumber) {
@@ -197,8 +197,7 @@ const _sfc_main = {
let lt_x = posXmargin;
let lt_y = posYmargin + textHeight;
ctx.font = font;
ctx.fillStyle = fontColor;
ctx.storkStyle = "black";
ctx.storkStyle = "#000";
ctx.strokeWidth = strokeWidth;
ctx.fillStyle = "#fff";
ctx.fillText(maskText, lt_x, lt_y);
@@ -218,7 +217,7 @@ const _sfc_main = {
let rt_y = posYmargin + textHeight * 2;
ctx.font = font;
ctx.fillStyle = fontColor;
ctx.strokeStyle = "black";
ctx.strokeStyle = "#000";
ctx.strokeWidth = strokeWidth;
ctx.fillStyle = "#fff";
ctx.fillText(maskText, rt_x, rt_y);
@@ -226,14 +225,16 @@ const _sfc_main = {
ctx.save();
break;
case 3:
let rb_x = imgWidth - textWidth * 6 - posXmargin <= 0 ? 10 : imgWidth - 276 - posXmargin;
let rb_x = imgWidth - scale * 10 - posXmargin <= 0 ? 10 : imgWidth - scale * 10 - posXmargin;
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:426", rb_x);
let rb_y = imgHeight - posYmargin;
ctx.font = font;
ctx.fillStyle = fontColor;
ctx.strokeStyle = "black";
ctx.strokeWidth = strokeWidth;
ctx.strokeStyle = "#000";
ctx.fillStyle = "#fff";
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:433", "rb_x");
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:434", rb_x);
ctx.strokeText(maskText, rb_x, rb_y);
ctx.fillText(maskText, rb_x, rb_y);
break;
}
@@ -243,7 +244,7 @@ const _sfc_main = {
resolve(res2.tempFilePath);
},
fail: function(res2) {
common_vendor.index.__f__("error", "at components/pEditor/pEditor.vue:452", res2);
common_vendor.index.__f__("error", "at components/pEditor/pEditor.vue:456", res2);
}
});
};
@@ -257,7 +258,7 @@ const _sfc_main = {
return randomNumber;
};
const getImageFormat = (imageUrl) => {
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:544", imageUrl);
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:549", imageUrl);
const lastDotIndex = imageUrl.lastIndexOf(".");
if (lastDotIndex !== -1) {
return imageUrl.substring(lastDotIndex + 1);
@@ -294,7 +295,7 @@ const _sfc_main = {
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:584", err);
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:589", err);
}
});
});
@@ -306,7 +307,7 @@ const _sfc_main = {
title: "正在上传图片...",
mask: true
});
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:597", localIds);
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:602", localIds);
let promiseFun = [];
for (var i = 0; i < localIds.length; i++) {
let img = null;
@@ -315,8 +316,7 @@ const _sfc_main = {
}
Promise.all(promiseFun).then((res) => {
common_vendor.index.showToast({
duration: 1e3,
message: "上传成功",
title: "上传成功",
icon: "none"
});
});
@@ -378,7 +378,7 @@ const _sfc_main = {
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:678", err);
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:682", err);
}
});
});
@@ -401,7 +401,7 @@ const _sfc_main = {
//从相册选择
extension: [".mp4", ".webm", ".ogg"],
success: function(res) {
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:700", res.tempFilePath);
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:704", res.tempFilePath);
HandleAddVideo(res.tempFilePath);
}
});
@@ -413,12 +413,12 @@ const _sfc_main = {
showTitle.value = true;
};
const alertTitle = () => {
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:714", "qqqqqq");
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:718", "qqqqqq");
showTitle.value = true;
};
const initData = (data) => {
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:718", "init");
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:719", data);
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:722", "init");
common_vendor.index.__f__("log", "at components/pEditor/pEditor.vue:723", data);
htmlContent.value = data;
};
__expose({ initData });
+14 -15
View File
@@ -402,11 +402,11 @@ const _sfc_main = {
let imgHeight, imgWidth;
let font = "";
let fontColor = "#fff";
let strokeWidth = 5;
let strokeWidth = 10;
common_vendor.index.getImageInfo({
src: base64,
success: (imageRes) => {
let scale = 28;
let scale = imageRes.width / 800 * 30 > 12 ? imageRes.width / 800 * 30 : 12;
font = scale + "px Arial";
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1051", imageRes);
canvas.width = imageRes.width;
@@ -418,8 +418,8 @@ const _sfc_main = {
image.src = base64;
image.onload = () => {
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
let posXmargin = 10;
let posYmargin = 10;
let posXmargin = 20;
let posYmargin = 20;
let randomNumber = 3;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1069", "randomNumber:" + randomNumber);
switch (randomNumber) {
@@ -427,8 +427,7 @@ const _sfc_main = {
let lt_x = posXmargin;
let lt_y = posYmargin + textHeight;
ctx.font = font;
ctx.fillStyle = fontColor;
ctx.storkStyle = "black";
ctx.storkStyle = "#000";
ctx.strokeWidth = strokeWidth;
ctx.fillStyle = "#fff";
ctx.fillText(maskText, lt_x, lt_y);
@@ -456,16 +455,16 @@ const _sfc_main = {
ctx.save();
break;
case 3:
let rb_x = imgWidth - 276 - posXmargin <= 0 ? 10 : imgWidth - 276 - posXmargin;
let rb_x = imgWidth - scale * 10 - posXmargin <= 0 ? 10 : imgWidth - scale * 10 - posXmargin;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1117", rb_x);
let rb_y = imgHeight - posYmargin;
ctx.font = font;
ctx.fillStyle = fontColor;
ctx.strokeStyle = "black";
ctx.strokeWidth = strokeWidth;
ctx.strokeStyle = "#000";
ctx.fillStyle = "#fff";
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1124", "rb_x");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1125", rb_x);
ctx.strokeText(maskText, rb_x, rb_y);
ctx.fillText(maskText, rb_x, rb_y);
break;
}
@@ -475,7 +474,7 @@ const _sfc_main = {
resolve(res2.tempFilePath);
},
fail: function(res2) {
common_vendor.index.__f__("error", "at pages/detail/detail.vue:1145", res2);
common_vendor.index.__f__("error", "at pages/detail/detail.vue:1147", res2);
}
});
};
@@ -485,7 +484,7 @@ const _sfc_main = {
});
};
const readImages = async (localIds) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1243", localIds);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1245", localIds);
let promiseFun = [];
for (var i = 0; i < localIds.length; i++) {
let img = null;
@@ -525,12 +524,12 @@ const _sfc_main = {
success(res) {
if (res.statusCode === 204) {
let url = host + "/" + dir + filename + imgType;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1345", url);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1347", url);
imgList.value = [url];
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1350", err);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1352", err);
}
});
});
@@ -539,8 +538,8 @@ const _sfc_main = {
};
const handleUpload = (file) => {
let File2 = file.file;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1359", 111);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1360", File2);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1361", 111);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1362", File2);
readImages(File2);
};
const generateRandomNumber = () => {
+21 -16
View File
@@ -135,7 +135,12 @@ const _sfc_main = {
};
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
delta: 1,
fail() {
common_vendor.index.redirectTo({
url: "/pages/index/index"
});
}
});
};
const editorCotent = common_vendor.ref("");
@@ -143,15 +148,15 @@ const _sfc_main = {
showEditor.value = false;
};
const changeEditor = (data) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:682", "content");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:683", data.content);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:687", "content");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:688", data.content);
showEditor.value = false;
if (data.type == "info") {
form.exchange_content = data.content;
infoHeight.value = 600;
editorCtx.value.initHtml(data.content, async (videoUrl) => {
let res = "";
common_vendor.index.__f__("log", "at pages/publish/publish.vue:692", videoface.value);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:697", videoface.value);
res = await editorCtx.value.createCoverThumbnail(videoface.value);
return res;
}, async () => {
@@ -162,7 +167,7 @@ const _sfc_main = {
setTimeout(() => {
const query = common_vendor.wx$1.createSelectorQuery();
query.select("#infoContent").boundingClientRect(function(rect) {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:708", rect.height);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:713", rect.height);
infoHeight.value = rect.height + 10;
}).exec();
}, 1e3);
@@ -181,7 +186,7 @@ const _sfc_main = {
setTimeout(() => {
const query = common_vendor.wx$1.createSelectorQuery();
query.select("#resultContent").boundingClientRect(function(rect) {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:734", rect.height);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:739", rect.height);
resultHeight.value = rect.height + 10;
toTop();
}).exec();
@@ -194,7 +199,7 @@ const _sfc_main = {
showDraft.value = true;
};
const epaste = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:751", e);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:756", e);
};
const alertVote = () => {
if (exchange_id.value) {
@@ -299,7 +304,7 @@ const _sfc_main = {
}
};
const ready = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:870", e);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:875", e);
editorCtx.value = e;
common_vendor.index.hideKeyboard();
toTop();
@@ -317,9 +322,9 @@ const _sfc_main = {
isFocusInfo.value = true;
const res = await editorCtx.value.getLastContent();
editorCotent.value = editorCtx.value.exportHtml(res.html);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:906", "focus");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:907", "editorCotent.value");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:908", editorCotent.value);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:911", "focus");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:912", "editorCotent.value");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:913", editorCotent.value);
showEditor.value = true;
editorType.value = "info";
};
@@ -371,7 +376,7 @@ const _sfc_main = {
};
const getExchangeDetail = (id) => {
api_api.api.getExchangeDetail(id).then((res) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1017", res.data.data);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1022", res.data.data);
let {
exchange_content,
exchange_title,
@@ -432,7 +437,7 @@ const _sfc_main = {
};
const confirmDel = () => {
showModal.value = false;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1090", delType.value);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1095", delType.value);
if (delType.value == "delDraft") {
delDraft(delId.value);
} else if (delType.value == "saveDraft") {
@@ -443,7 +448,7 @@ const _sfc_main = {
showModal.value = false;
if (delType.value == "saveDraft") {
goBack();
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1102", "wee");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1107", "wee");
}
};
const cancelConfirmPublish = () => {
@@ -610,7 +615,7 @@ const _sfc_main = {
break;
}
}
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1446", caseValue1);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1451", caseValue1);
getCaseLabel(2, e);
};
const groupChange2 = (e) => {
@@ -709,7 +714,7 @@ const _sfc_main = {
}
}
labelList.value = labelList.value.filter((item, index) => labelList.value.findIndex((i) => i.app_iden === item.app_iden) === index);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1564", labelList.value);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1569", labelList.value);
showCase.value = false;
};
const closeCase = () => {