8.3
This commit is contained in:
+346
-179
@@ -2,6 +2,7 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const utils_throttle = require("../../utils/throttle.js");
|
||||
if (!Array) {
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
@@ -37,13 +38,14 @@ const backDetailNav = () => "../../components/backDetailNav/backDetailNav.js";
|
||||
const _sfc_main = {
|
||||
__name: "detail",
|
||||
setup(__props) {
|
||||
const isArticleAuthor = common_vendor.ref(false);
|
||||
const isH5 = common_vendor.ref(false);
|
||||
const user_id = common_vendor.ref("");
|
||||
const doctor_id = common_vendor.ref("");
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
const imgList = common_vendor.ref([]);
|
||||
const showCanvas = common_vendor.ref(false);
|
||||
const showCanvas = common_vendor.ref(true);
|
||||
const showCommentDialog = common_vendor.ref(false);
|
||||
const givePointValue = common_vendor.ref(5);
|
||||
common_vendor.ref(0);
|
||||
@@ -68,7 +70,7 @@ const _sfc_main = {
|
||||
const is_top = common_vendor.ref(false);
|
||||
const option_id = common_vendor.ref("");
|
||||
const point = common_vendor.ref(0);
|
||||
const comment_userId = common_vendor.ref("");
|
||||
const comment_doctorId = common_vendor.ref("");
|
||||
const commentTextarea = common_vendor.ref(null);
|
||||
const confirmGive = () => {
|
||||
showGive.value = false;
|
||||
@@ -131,23 +133,36 @@ const _sfc_main = {
|
||||
api_api.api.getArticleDetail(id2).then((res) => {
|
||||
let result = res.data.data;
|
||||
Object.assign(info, result);
|
||||
for (let i = 0; i < info.author.length; i++) {
|
||||
if (info.author[i].doctor_id == doctor_id.value) {
|
||||
isArticleAuthor.value = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const getVideoDetail = (id2) => {
|
||||
api_api.api.getVideoDetail(id2).then((res) => {
|
||||
let result = res.data.data;
|
||||
Object.assign(info, result);
|
||||
for (let i = 0; i < info.author.length; i++) {
|
||||
if (info.author[i].doctor_id == doctor_id.value) {
|
||||
isArticleAuthor.value = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const getExchangeDetail = (id2) => {
|
||||
api_api.api.getExchangeDetail(id2).then((res) => {
|
||||
let result = res.data.data;
|
||||
Object.assign(info, result);
|
||||
if (info.doctor_id == doctor_id.value) {
|
||||
isArticleAuthor.value = true;
|
||||
}
|
||||
});
|
||||
};
|
||||
const getUserPoint = () => {
|
||||
api_api.api.getUserPoint().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:737", res.data.data);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:760", res.data.data);
|
||||
point.value = res.data.data;
|
||||
});
|
||||
};
|
||||
@@ -179,13 +194,37 @@ const _sfc_main = {
|
||||
showGive.value = false;
|
||||
});
|
||||
};
|
||||
const getQueryParam = (param, link) => {
|
||||
const url = link;
|
||||
const regex = new RegExp("[?&]" + param + "=([^&#]*)", "i");
|
||||
const result = regex.exec(url);
|
||||
return result ? decodeURIComponent(result[1]) : null;
|
||||
};
|
||||
common_vendor.onLoad((options) => {
|
||||
id.value = options.id;
|
||||
type.value = options.type;
|
||||
if (options.scene) {
|
||||
var decodedURL = decodeURIComponent(options.scene);
|
||||
let idStr = getQueryParam("id", decodedURL);
|
||||
let typeStr = getQueryParam("type", decodedURL);
|
||||
if (idStr) {
|
||||
id.value = idStr;
|
||||
}
|
||||
if (typeStr) {
|
||||
if (typeStr == 1) {
|
||||
type.value = "article";
|
||||
} else if (typeStr == 2) {
|
||||
type.value = "video";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
id.value = options.id;
|
||||
type.value = options.type;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:829", "id:" + id.value);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:830", "type:" + type.value);
|
||||
readRecord();
|
||||
let userInfo = common_vendor.index.getStorageSync("userInfo");
|
||||
if (userInfo.user_id) {
|
||||
user_id.value = userInfo.user_id;
|
||||
if (userInfo.doctor_id) {
|
||||
doctor_id.value = userInfo.doctor_id;
|
||||
}
|
||||
});
|
||||
const clearComment = () => {
|
||||
@@ -193,6 +232,7 @@ const _sfc_main = {
|
||||
imgList.value = [];
|
||||
content.value = "";
|
||||
root_id.value = null;
|
||||
placeholder.value = "请输入评论内容";
|
||||
reply_name.value = "";
|
||||
level.value = 1;
|
||||
};
|
||||
@@ -213,7 +253,7 @@ const _sfc_main = {
|
||||
};
|
||||
const alertDeal = (parentId, rootId, name, top, commentLevel, userId) => {
|
||||
parent_id.value = parentId;
|
||||
comment_userId.value = userId;
|
||||
comment_doctorId.value = userId;
|
||||
root_id.value = rootId;
|
||||
reply_name.value = name;
|
||||
level.value = commentLevel;
|
||||
@@ -320,18 +360,18 @@ const _sfc_main = {
|
||||
};
|
||||
const close = () => {
|
||||
showCommentDialog.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:930", "close");
|
||||
clearComment();
|
||||
};
|
||||
const openDeal = () => {
|
||||
showDeal.value = true;
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:935", "open");
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:992", "open");
|
||||
};
|
||||
const closeDeal = () => {
|
||||
showDeal.value = false;
|
||||
};
|
||||
const openMore = () => {
|
||||
showMore.value = true;
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:943", "open");
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1000", "open");
|
||||
};
|
||||
const closeMore = () => {
|
||||
showMore.value = false;
|
||||
@@ -342,8 +382,124 @@ const _sfc_main = {
|
||||
urls: [url]
|
||||
});
|
||||
};
|
||||
const handleUpload = (file) => {
|
||||
let File2 = file.file;
|
||||
const fillTextToImgWx = (base64) => {
|
||||
let maskText = "@肝胆相照临床病例库";
|
||||
return new Promise((resolve, reject) => {
|
||||
common_vendor.wx$1.createSelectorQuery().select("#watermarkCanvas").fields({
|
||||
node: true,
|
||||
size: true
|
||||
}).exec((res) => {
|
||||
const canvas = res[0].node;
|
||||
const ctx = canvas.getContext("2d");
|
||||
let textMetrics = ctx.measureText(maskText);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1025", textMetrics);
|
||||
let {
|
||||
width: textWidth,
|
||||
actualBoundingBoxAscent,
|
||||
actualBoundingBoxDescent
|
||||
} = textMetrics;
|
||||
let textHeight = actualBoundingBoxAscent ? actualBoundingBoxAscent + actualBoundingBoxDescent : textMetrics.fontBoundingBoxAscent + textMetrics.fontBoundingBoxDescent;
|
||||
let imgHeight, imgWidth;
|
||||
let font = "";
|
||||
let fontColor = "#fff";
|
||||
let strokeWidth = 5;
|
||||
common_vendor.index.getImageInfo({
|
||||
src: base64,
|
||||
success: (imageRes) => {
|
||||
let scale = 28;
|
||||
font = scale + "px Arial";
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1051", imageRes);
|
||||
canvas.width = imageRes.width;
|
||||
canvas.height = imageRes.height;
|
||||
imgHeight = imageRes.height;
|
||||
imgWidth = imageRes.width;
|
||||
const image = canvas.createImage();
|
||||
image.src = "";
|
||||
image.src = base64;
|
||||
image.onload = () => {
|
||||
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
|
||||
let posXmargin = 10;
|
||||
let posYmargin = 10;
|
||||
let randomNumber = 3;
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1069", "randomNumber:" + randomNumber);
|
||||
switch (randomNumber) {
|
||||
case 0:
|
||||
let lt_x = posXmargin;
|
||||
let lt_y = posYmargin + textHeight;
|
||||
ctx.font = font;
|
||||
ctx.fillStyle = fontColor;
|
||||
ctx.storkStyle = "black";
|
||||
ctx.strokeWidth = strokeWidth;
|
||||
ctx.fillStyle = "#fff";
|
||||
ctx.fillText(maskText, lt_x, lt_y);
|
||||
break;
|
||||
case 1:
|
||||
let lb_x = posXmargin;
|
||||
let lb_y = imgHeight - posYmargin;
|
||||
ctx.font = font;
|
||||
ctx.fillStyle = fontColor;
|
||||
ctx.strokeStyle = "black";
|
||||
ctx.strokeWidth = strokeWidth;
|
||||
ctx.fillStyle = "#fff";
|
||||
ctx.fillText(maskText, lb_x, lb_y);
|
||||
break;
|
||||
case 2:
|
||||
let rt_x = imgWidth - textWidth * 2.9 - posXmargin <= 0 ? 10 : imgWidth - textWidth * 2.9 - posXmargin;
|
||||
let rt_y = posYmargin + textHeight * 2;
|
||||
ctx.font = font;
|
||||
ctx.fillStyle = fontColor;
|
||||
ctx.strokeStyle = "#000";
|
||||
ctx.strokeWidth = strokeWidth;
|
||||
ctx.fillStyle = "#fff";
|
||||
ctx.fillText(maskText, rt_x, rt_y);
|
||||
ctx.restore();
|
||||
ctx.save();
|
||||
break;
|
||||
case 3:
|
||||
let rb_x = imgWidth - 276 - posXmargin <= 0 ? 10 : imgWidth - 276 - 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.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.fillText(maskText, rb_x, rb_y);
|
||||
break;
|
||||
}
|
||||
common_vendor.wx$1.canvasToTempFilePath({
|
||||
canvas,
|
||||
success: function(res2) {
|
||||
resolve(res2.tempFilePath);
|
||||
},
|
||||
fail: function(res2) {
|
||||
common_vendor.index.__f__("error", "at pages/detail/detail.vue:1145", res2);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
const readImages = async (localIds) => {
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1243", localIds);
|
||||
let promiseFun = [];
|
||||
for (var i = 0; i < localIds.length; i++) {
|
||||
let img = null;
|
||||
img = await fillTextToImgWx(localIds[i].url);
|
||||
promiseFun.push(getOss(img));
|
||||
}
|
||||
Promise.all(promiseFun).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "上传成功",
|
||||
icon: "none"
|
||||
});
|
||||
});
|
||||
};
|
||||
const getOss = (temurl) => {
|
||||
api_api.api.getOss({
|
||||
scene: 1
|
||||
}).then((rep) => {
|
||||
@@ -353,12 +509,12 @@ const _sfc_main = {
|
||||
let time = common_vendor.dayjs().format("YYYYMMDDHHmmss");
|
||||
let random = generateRandomNumber();
|
||||
let filename = time + random;
|
||||
let imgType = "." + getImageFormat(File2[0].url);
|
||||
let imgType = "." + getImageFormat(temurl);
|
||||
return new Promise((resolve, reject) => {
|
||||
common_vendor.index.uploadFile({
|
||||
url: host,
|
||||
// 仅为示例,非真实的接口地址
|
||||
filePath: File2[0].url,
|
||||
filePath: temurl,
|
||||
name: "file",
|
||||
formData: {
|
||||
OSSAccessKeyId: access_id,
|
||||
@@ -369,18 +525,24 @@ 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:1294", url);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1345", url);
|
||||
imgList.value = [url];
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1299", err);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1350", err);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
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);
|
||||
readImages(File2);
|
||||
};
|
||||
const generateRandomNumber = () => {
|
||||
let randomNumber = Math.floor(1e3 + Math.random() * 9e3);
|
||||
return randomNumber;
|
||||
@@ -393,8 +555,6 @@ const _sfc_main = {
|
||||
return "unknown";
|
||||
};
|
||||
const afterRead = (file, lists, name) => {
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1318", lists);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1319", name);
|
||||
handleUpload(file);
|
||||
};
|
||||
const delImg = (index) => {
|
||||
@@ -613,7 +773,7 @@ const _sfc_main = {
|
||||
is_top.value ? cancelTopExchangeComment(parent_id.value) : topExchangeComment(parent_id.value);
|
||||
}
|
||||
};
|
||||
const sendComment = () => {
|
||||
const sendComment = utils_throttle.throttle(() => {
|
||||
if (!content.value) {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
@@ -640,7 +800,7 @@ const _sfc_main = {
|
||||
} else {
|
||||
addExchangeComment(id.value, postData);
|
||||
}
|
||||
};
|
||||
});
|
||||
const formatHtml = (val) => {
|
||||
if (/^回复.+:/.test(val)) {
|
||||
return val.replace(
|
||||
@@ -703,57 +863,57 @@ const _sfc_main = {
|
||||
radius: "50%"
|
||||
}),
|
||||
c: common_vendor.o(open),
|
||||
d: common_vendor.p({
|
||||
d: common_vendor.o(open),
|
||||
e: common_vendor.p({
|
||||
disabled: true,
|
||||
focus: false,
|
||||
type: "text",
|
||||
placeholderClass: "placeholderClass",
|
||||
placeholder: "对病例发表您的看法"
|
||||
}),
|
||||
e: common_vendor.o(open),
|
||||
f: common_vendor.o(open),
|
||||
g: common_vendor.o(toggleCollect),
|
||||
h: common_vendor.p({
|
||||
g: common_vendor.o(open),
|
||||
h: common_vendor.o(toggleCollect),
|
||||
i: common_vendor.p({
|
||||
src: info.is_collect ? common_vendor.unref(common_assets.collectonImg) : common_vendor.unref(common_assets.collectImg),
|
||||
width: "70rpx",
|
||||
height: "70rpx"
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
j: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.shangImg),
|
||||
mode: "widthFix",
|
||||
width: "169rpx",
|
||||
height: "77rpx"
|
||||
}),
|
||||
j: common_vendor.o(openGivePop),
|
||||
k: type.value == "video"
|
||||
k: common_vendor.o(openGivePop),
|
||||
l: type.value == "video"
|
||||
}, type.value == "video" ? {
|
||||
l: common_vendor.t(info.video_title)
|
||||
m: common_vendor.t(info.video_title)
|
||||
} : type.value == "article" ? {
|
||||
n: common_vendor.t(info.article_title)
|
||||
o: common_vendor.t(info.article_title)
|
||||
} : {
|
||||
o: common_vendor.t(info.exchange_title)
|
||||
p: common_vendor.t(info.exchange_title)
|
||||
}, {
|
||||
m: type.value == "article",
|
||||
p: type.value == "video" || type.value == "article"
|
||||
n: type.value == "article",
|
||||
q: type.value == "video" || type.value == "article"
|
||||
}, type.value == "video" || type.value == "article" ? {
|
||||
q: common_vendor.f(info.author, (item, k0, i0) => {
|
||||
r: common_vendor.f(info.author, (item, k0, i0) => {
|
||||
return {
|
||||
a: "eca06f3c-6-" + i0 + ",eca06f3c-0",
|
||||
b: common_vendor.t(item.doctor_name),
|
||||
c: common_vendor.t(item.hospital_name)
|
||||
b: common_vendor.p({
|
||||
src: item.avatar ? item.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "46rpx",
|
||||
height: "46rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
c: common_vendor.t(item.doctor_name),
|
||||
d: common_vendor.t(item.hospital_name),
|
||||
e: item
|
||||
};
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
mode: "widthFix",
|
||||
width: "46rpx",
|
||||
height: "46rpx",
|
||||
radius: "50%"
|
||||
})
|
||||
} : {
|
||||
s: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
mode: "widthFix",
|
||||
src: info.avatar ? info.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "46rpx",
|
||||
height: "46rpx",
|
||||
radius: "50%"
|
||||
@@ -805,12 +965,12 @@ const _sfc_main = {
|
||||
content: fromatImg(info.exchange_summary)
|
||||
})
|
||||
} : {}, {
|
||||
O: info.case_exchange_vote && info.case_exchange_vote.vote_title
|
||||
}, info.case_exchange_vote && info.case_exchange_vote.vote_title ? common_vendor.e({
|
||||
P: info.case_exchange_vote.is_have_voted != 1
|
||||
}, info.case_exchange_vote.is_have_voted != 1 ? {
|
||||
Q: common_vendor.t(info.case_exchange_vote.vote_title),
|
||||
R: common_vendor.f(info.case_exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
|
||||
O: info.exchange_vote && info.exchange_vote.vote_title
|
||||
}, info.exchange_vote && info.exchange_vote.vote_title ? common_vendor.e({
|
||||
P: info.exchange_vote.is_have_voted != 1
|
||||
}, info.exchange_vote.is_have_voted != 1 ? {
|
||||
Q: common_vendor.t(info.exchange_vote.vote_title),
|
||||
R: common_vendor.f(info.exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
|
||||
return {
|
||||
a: "eca06f3c-16-" + i0 + ",eca06f3c-15",
|
||||
b: common_vendor.p({
|
||||
@@ -828,8 +988,8 @@ const _sfc_main = {
|
||||
}),
|
||||
U: common_vendor.o(addVote)
|
||||
} : {
|
||||
V: common_vendor.t(info.case_exchange_vote.vote_title),
|
||||
W: common_vendor.f(info.case_exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
|
||||
V: common_vendor.t(info.exchange_vote.vote_title),
|
||||
W: common_vendor.f(info.exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.option_value),
|
||||
b: common_vendor.t(item.proportion),
|
||||
@@ -849,91 +1009,98 @@ const _sfc_main = {
|
||||
aa: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: "eca06f3c-18-" + i0 + ",eca06f3c-0",
|
||||
b: common_vendor.t(item.user_name),
|
||||
c: user_id.value == item.user_id
|
||||
}, user_id.value == item.user_id ? {
|
||||
d: "eca06f3c-19-" + i0 + ",eca06f3c-0",
|
||||
e: common_vendor.p({
|
||||
b: common_vendor.p({
|
||||
src: item.avatar ? item.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
c: common_vendor.t(item.user_name),
|
||||
d: doctor_id.value == item.doctor_id
|
||||
}, doctor_id.value == item.doctor_id ? {
|
||||
e: "eca06f3c-19-" + i0 + ",eca06f3c-0",
|
||||
f: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.selfImg),
|
||||
width: "69rpx",
|
||||
height: "31rpx"
|
||||
})
|
||||
} : {}, {
|
||||
f: common_vendor.o(($event) => alertDeal(item.comment_id, item.comment_id, item.user_name, item.is_top, 2, item.user_id), item.comment_id),
|
||||
g: common_vendor.t(item.content),
|
||||
h: item.comment_image
|
||||
g: common_vendor.o(($event) => alertDeal(item.comment_id, item.comment_id, item.user_name, item.is_top, 2, item.doctor_id), item.comment_id),
|
||||
h: common_vendor.t(item.content),
|
||||
i: item.comment_image
|
||||
}, item.comment_image ? {
|
||||
i: common_vendor.o(($event) => previewImg(item.comment_image), item.comment_id),
|
||||
j: "eca06f3c-20-" + i0 + ",eca06f3c-0",
|
||||
k: common_vendor.p({
|
||||
j: common_vendor.o(($event) => previewImg(item.comment_image), item.comment_id),
|
||||
k: "eca06f3c-20-" + i0 + ",eca06f3c-0",
|
||||
l: common_vendor.p({
|
||||
src: item.comment_image,
|
||||
radius: "16rpx",
|
||||
width: "150rpx",
|
||||
height: "150rpx"
|
||||
})
|
||||
} : {}, {
|
||||
l: common_vendor.t(formatDate(item.created_at)),
|
||||
m: item.sub_comment && item.sub_comment.length > 0
|
||||
m: common_vendor.t(formatDate(item.created_at)),
|
||||
n: item.sub_comment && item.sub_comment.length > 0
|
||||
}, item.sub_comment && item.sub_comment.length > 0 ? {
|
||||
n: common_vendor.f(item.sub_comment.slice(0, 3), (cell, index2, i1) => {
|
||||
o: common_vendor.f(item.sub_comment.slice(0, 3), (cell, index2, i1) => {
|
||||
return common_vendor.e({
|
||||
a: "eca06f3c-21-" + i0 + "-" + i1 + ",eca06f3c-0",
|
||||
b: common_vendor.t(cell.user_name),
|
||||
c: user_id.value == cell.user_id
|
||||
}, user_id.value == cell.user_id ? {
|
||||
d: "eca06f3c-22-" + i0 + "-" + i1 + ",eca06f3c-0",
|
||||
e: common_vendor.p({
|
||||
b: common_vendor.p({
|
||||
src: cell.avatar ? cell.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
c: common_vendor.t(cell.user_name),
|
||||
d: doctor_id.value == cell.doctor_id
|
||||
}, doctor_id.value == cell.doctor_id ? {
|
||||
e: "eca06f3c-22-" + i0 + "-" + i1 + ",eca06f3c-0",
|
||||
f: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.selfImg),
|
||||
width: "69rpx",
|
||||
height: "31rpx"
|
||||
})
|
||||
} : {}, {
|
||||
f: common_vendor.o(($event) => alertDeal(cell.comment_id, cell.root_id, cell.user_name, cell.is_top, 3, cell.user_id), cell.comment_id),
|
||||
g: formatHtml(cell.content),
|
||||
h: cell.comment_image
|
||||
g: common_vendor.o(($event) => alertDeal(cell.comment_id, cell.root_id, cell.user_name, cell.is_top, 3, cell.doctor_id), cell.comment_id),
|
||||
h: formatHtml(cell.content),
|
||||
i: cell.comment_image
|
||||
}, cell.comment_image ? {
|
||||
i: common_vendor.o(($event) => previewImg(cell.comment_image), cell.comment_id),
|
||||
j: "eca06f3c-23-" + i0 + "-" + i1 + ",eca06f3c-0",
|
||||
k: common_vendor.p({
|
||||
j: common_vendor.o(($event) => previewImg(cell.comment_image), cell.comment_id),
|
||||
k: "eca06f3c-23-" + i0 + "-" + i1 + ",eca06f3c-0",
|
||||
l: common_vendor.p({
|
||||
src: cell.comment_image,
|
||||
radius: "16rpx",
|
||||
width: "150rpx",
|
||||
height: "150rpx"
|
||||
})
|
||||
} : {}, {
|
||||
l: common_vendor.t(formatDate(cell.created_at)),
|
||||
m: cell.comment_id
|
||||
m: common_vendor.t(formatDate(cell.created_at)),
|
||||
n: cell.comment_id
|
||||
});
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
})
|
||||
} : {}, {
|
||||
p: item.sub_comment.length > 3
|
||||
}, item.sub_comment.length > 3 ? {
|
||||
q: common_vendor.o(($event) => openMorePop(item, item.sub_comment, index), item.comment_id)
|
||||
q: "eca06f3c-24-" + i0 + ",eca06f3c-0",
|
||||
r: common_vendor.p({
|
||||
name: "arrow-down",
|
||||
color: "#3cc7c0",
|
||||
size: "38rpx"
|
||||
}),
|
||||
s: common_vendor.o(($event) => openMorePop(item, item.sub_comment, index), item.comment_id)
|
||||
} : {}, {
|
||||
r: item.comment_id
|
||||
t: item.comment_id
|
||||
});
|
||||
}),
|
||||
ab: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
ac: common_vendor.sr(paging, "eca06f3c-0", {
|
||||
ab: common_vendor.sr(paging, "eca06f3c-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
ad: common_vendor.o(queryList),
|
||||
ae: common_vendor.o(($event) => dataList.value = $event),
|
||||
af: common_vendor.p({
|
||||
ac: common_vendor.o(queryList),
|
||||
ad: common_vendor.o(($event) => dataList.value = $event),
|
||||
ae: common_vendor.p({
|
||||
["inside-more"]: true,
|
||||
["loading-more-no-more-text"]: "咱也是有底线的!",
|
||||
["auto-show-back-to-top"]: false,
|
||||
["refresher-out-rate"]: "0.8",
|
||||
["empty-view-super-style"]: {
|
||||
"paddingBottom": "140rpx"
|
||||
},
|
||||
@@ -947,11 +1114,11 @@ const _sfc_main = {
|
||||
},
|
||||
modelValue: dataList.value
|
||||
}),
|
||||
ag: common_vendor.sr(commentTextarea, "eca06f3c-25,eca06f3c-24", {
|
||||
af: common_vendor.sr(commentTextarea, "eca06f3c-26,eca06f3c-25", {
|
||||
"k": "commentTextarea"
|
||||
}),
|
||||
ah: common_vendor.o(($event) => content.value = $event),
|
||||
ai: common_vendor.p({
|
||||
ag: common_vendor.o(($event) => content.value = $event),
|
||||
ah: common_vendor.p({
|
||||
focus: false,
|
||||
height: "200",
|
||||
cursorSpacing: "240",
|
||||
@@ -960,30 +1127,30 @@ const _sfc_main = {
|
||||
placeholder: placeholder.value,
|
||||
modelValue: content.value
|
||||
}),
|
||||
aj: imgList.value.length > 0
|
||||
ai: imgList.value.length > 0
|
||||
}, imgList.value.length > 0 ? {
|
||||
ak: common_vendor.o(($event) => previewImg(imgList.value[0])),
|
||||
al: common_vendor.p({
|
||||
aj: common_vendor.o(($event) => previewImg(imgList.value[0])),
|
||||
ak: common_vendor.p({
|
||||
src: imgList.value[0],
|
||||
radius: "6",
|
||||
width: "150rpx",
|
||||
height: "150rpx"
|
||||
}),
|
||||
am: common_vendor.p({
|
||||
al: common_vendor.p({
|
||||
name: "close-circle",
|
||||
color: "#666",
|
||||
size: "16"
|
||||
}),
|
||||
an: common_vendor.o(delImg)
|
||||
am: common_vendor.o(delImg)
|
||||
} : {}, {
|
||||
ao: common_vendor.p({
|
||||
an: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.uploadImg),
|
||||
mode: "widthFix",
|
||||
width: "40rpx",
|
||||
height: "77rpx"
|
||||
}),
|
||||
ap: common_vendor.o(afterRead),
|
||||
aq: common_vendor.p({
|
||||
ao: common_vendor.o(afterRead),
|
||||
ap: common_vendor.p({
|
||||
disabled: imgList.value.length >= 1,
|
||||
["show-upload-list"]: false,
|
||||
name: "imgupload",
|
||||
@@ -992,11 +1159,11 @@ const _sfc_main = {
|
||||
width: "40rpx",
|
||||
height: "77rpx"
|
||||
}),
|
||||
ar: imgList.value.length >= 1 ? 1 : "",
|
||||
as: common_vendor.o(sendComment),
|
||||
at: common_vendor.o(close),
|
||||
av: common_vendor.o(open),
|
||||
aw: common_vendor.p({
|
||||
aq: imgList.value.length >= 1 ? 1 : "",
|
||||
ar: common_vendor.o((...args) => common_vendor.unref(sendComment) && common_vendor.unref(sendComment)(...args)),
|
||||
as: common_vendor.o(close),
|
||||
at: common_vendor.o(open),
|
||||
av: common_vendor.p({
|
||||
zIndex: 99,
|
||||
overlayStyle: {
|
||||
zIndex: 98
|
||||
@@ -1007,20 +1174,20 @@ const _sfc_main = {
|
||||
closeable: true,
|
||||
mode: "bottom"
|
||||
}),
|
||||
ax: level.value == 2 && is_author.value
|
||||
}, level.value == 2 && is_author.value ? {
|
||||
ay: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
|
||||
az: common_vendor.o(toggleTop)
|
||||
aw: level.value == 2 && isArticleAuthor.value
|
||||
}, level.value == 2 && isArticleAuthor.value ? {
|
||||
ax: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
|
||||
ay: common_vendor.o(toggleTop)
|
||||
} : {}, {
|
||||
aA: common_vendor.o(openCommentDialog),
|
||||
aB: is_author.value || user_id.value == comment_userId.value
|
||||
}, is_author.value || user_id.value == comment_userId.value ? {
|
||||
aC: common_vendor.o(delComment)
|
||||
az: common_vendor.o(openCommentDialog),
|
||||
aA: isArticleAuthor.value || doctor_id.value == comment_doctorId.value
|
||||
}, isArticleAuthor.value || doctor_id.value == comment_doctorId.value ? {
|
||||
aB: common_vendor.o(delComment)
|
||||
} : {}, {
|
||||
aD: common_vendor.o(closeDealPop),
|
||||
aE: common_vendor.o(closeDeal),
|
||||
aF: common_vendor.o(openDeal),
|
||||
aG: common_vendor.p({
|
||||
aC: common_vendor.o(closeDealPop),
|
||||
aD: common_vendor.o(closeDeal),
|
||||
aE: common_vendor.o(openDeal),
|
||||
aF: common_vendor.p({
|
||||
zIndex: 60,
|
||||
overlayStyle: {
|
||||
zIndex: 59
|
||||
@@ -1030,87 +1197,87 @@ const _sfc_main = {
|
||||
round: 10,
|
||||
mode: "bottom"
|
||||
}),
|
||||
aH: common_vendor.p({
|
||||
aG: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#666",
|
||||
size: "20"
|
||||
}),
|
||||
aI: common_vendor.o(closeMore),
|
||||
aJ: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
aH: common_vendor.o(closeMore),
|
||||
aI: common_vendor.p({
|
||||
src: mainCommentObj.avatar ? mainCommentObj.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
aK: common_vendor.t(mainCommentObj.user_name),
|
||||
aL: user_id.value == mainCommentObj.user_id
|
||||
}, user_id.value == mainCommentObj.user_id ? {
|
||||
aM: common_vendor.p({
|
||||
aJ: common_vendor.t(mainCommentObj.user_name),
|
||||
aK: doctor_id.value == mainCommentObj.doctor_id
|
||||
}, doctor_id.value == mainCommentObj.doctor_id ? {
|
||||
aL: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.selfImg),
|
||||
width: "69rpx",
|
||||
height: "31rpx"
|
||||
})
|
||||
} : {}, {
|
||||
aN: common_vendor.o(($event) => alertDeal(mainCommentObj.comment_id, mainCommentObj.comment_id, mainCommentObj.user_name, mainCommentObj.is_top, 2, mainCommentObj.user_id)),
|
||||
aO: common_vendor.t(mainCommentObj.content),
|
||||
aP: mainCommentObj.comment_image
|
||||
aM: common_vendor.o(($event) => alertDeal(mainCommentObj.comment_id, mainCommentObj.comment_id, mainCommentObj.user_name, mainCommentObj.is_top, 2, mainCommentObj.doctor_id)),
|
||||
aN: common_vendor.t(mainCommentObj.content),
|
||||
aO: mainCommentObj.comment_image
|
||||
}, mainCommentObj.comment_image ? {
|
||||
aQ: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
|
||||
aR: common_vendor.p({
|
||||
aP: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
|
||||
aQ: common_vendor.p({
|
||||
src: mainCommentObj.comment_image,
|
||||
radius: "16rpx",
|
||||
width: "150rpx",
|
||||
height: "150rpx"
|
||||
})
|
||||
} : {}, {
|
||||
aS: common_vendor.t(formatDate(mainCommentObj.created_at)),
|
||||
aT: common_vendor.f(childList.value, (cell, index, i0) => {
|
||||
aR: common_vendor.t(formatDate(mainCommentObj.created_at)),
|
||||
aS: common_vendor.f(childList.value, (cell, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: "eca06f3c-36-" + i0 + ",eca06f3c-31",
|
||||
b: common_vendor.t(cell.user_name),
|
||||
c: user_id.value == cell.user_id
|
||||
}, user_id.value == cell.user_id ? {
|
||||
d: "eca06f3c-37-" + i0 + ",eca06f3c-31",
|
||||
e: common_vendor.p({
|
||||
a: "eca06f3c-37-" + i0 + ",eca06f3c-32",
|
||||
b: common_vendor.p({
|
||||
src: cell.avatar ? cell.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
c: common_vendor.t(cell.user_name),
|
||||
d: doctor_id.value == cell.doctor_id
|
||||
}, doctor_id.value == cell.doctor_id ? {
|
||||
e: "eca06f3c-38-" + i0 + ",eca06f3c-32",
|
||||
f: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.selfImg),
|
||||
width: "69rpx",
|
||||
height: "31rpx"
|
||||
})
|
||||
} : {}, {
|
||||
f: common_vendor.o(($event) => alertDeal(cell.comment_id, cell.root_id, cell.user_name, cell.is_top, 3, cell.user_id), cell.comment_id),
|
||||
g: formatHtml(cell.content),
|
||||
h: cell.comment_image
|
||||
g: common_vendor.o(($event) => alertDeal(cell.comment_id, cell.root_id, cell.user_name, cell.is_top, 3, cell.doctor_id), cell.comment_id),
|
||||
h: formatHtml(cell.content),
|
||||
i: cell.comment_image
|
||||
}, cell.comment_image ? {
|
||||
i: common_vendor.o(($event) => previewImg(cell.comment_image), cell.comment_id),
|
||||
j: "eca06f3c-38-" + i0 + ",eca06f3c-31",
|
||||
k: common_vendor.p({
|
||||
j: common_vendor.o(($event) => previewImg(cell.comment_image), cell.comment_id),
|
||||
k: "eca06f3c-39-" + i0 + ",eca06f3c-32",
|
||||
l: common_vendor.p({
|
||||
src: cell.comment_image,
|
||||
radius: "16rpx",
|
||||
width: "150rpx",
|
||||
height: "150rpx"
|
||||
})
|
||||
} : {}, {
|
||||
l: common_vendor.t(formatDate(cell.created_at)),
|
||||
m: cell.comment_id
|
||||
m: common_vendor.t(formatDate(cell.created_at)),
|
||||
n: cell.comment_id
|
||||
});
|
||||
}),
|
||||
aT: common_vendor.o(($event) => _ctx.value = $event),
|
||||
aU: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
aV: common_vendor.o(($event) => _ctx.value = $event),
|
||||
aW: common_vendor.p({
|
||||
readonly: true,
|
||||
placeholder: "@" + mainCommentObj.user_name + ":",
|
||||
border: "surround",
|
||||
modelValue: _ctx.value
|
||||
}),
|
||||
aX: common_vendor.o(showReplyPop),
|
||||
aY: common_vendor.o(closeMore),
|
||||
aZ: common_vendor.o(openMore),
|
||||
ba: common_vendor.p({
|
||||
aV: common_vendor.o(showReplyPop),
|
||||
aW: common_vendor.o(closeMore),
|
||||
aX: common_vendor.o(openMore),
|
||||
aY: common_vendor.p({
|
||||
zIndex: 10,
|
||||
overlayStyle: {
|
||||
zIndex: 9
|
||||
@@ -1120,26 +1287,26 @@ const _sfc_main = {
|
||||
round: 10,
|
||||
mode: "bottom"
|
||||
}),
|
||||
bb: common_vendor.t(point.value),
|
||||
bc: common_vendor.o(($event) => changePoint("minus")),
|
||||
bd: common_vendor.o(inputPoint),
|
||||
be: common_vendor.o(($event) => givePointValue.value = $event),
|
||||
bf: common_vendor.p({
|
||||
aZ: common_vendor.t(point.value),
|
||||
ba: common_vendor.o(($event) => changePoint("minus")),
|
||||
bb: common_vendor.o(inputPoint),
|
||||
bc: common_vendor.o(($event) => givePointValue.value = $event),
|
||||
bd: common_vendor.p({
|
||||
placeholder: "请输入打赏积分",
|
||||
type: "number",
|
||||
border: "surround",
|
||||
modelValue: givePointValue.value
|
||||
}),
|
||||
bg: common_vendor.o(($event) => changePoint("add")),
|
||||
bh: common_vendor.o(($event) => showGive.value = false),
|
||||
bi: common_vendor.o(confirmGive),
|
||||
bj: common_vendor.p({
|
||||
be: common_vendor.o(($event) => changePoint("add")),
|
||||
bf: common_vendor.o(($event) => showGive.value = false),
|
||||
bg: common_vendor.o(confirmGive),
|
||||
bh: common_vendor.p({
|
||||
show: showGive.value,
|
||||
["mask-click-able"]: true
|
||||
}),
|
||||
bk: common_vendor.o(($event) => showModal.value = false),
|
||||
bl: common_vendor.o(confirmDel),
|
||||
bm: common_vendor.p({
|
||||
bi: common_vendor.o(($event) => showModal.value = false),
|
||||
bj: common_vendor.o(confirmDel),
|
||||
bk: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true
|
||||
})
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -456,6 +456,15 @@
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
}
|
||||
.bottom .iptbox .iptcon.data-v-eca06f3c {
|
||||
position: relative;
|
||||
}
|
||||
.bottom .iptbox .iptcon .maskipt.data-v-eca06f3c {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
.bottom .iptbox .ipt.data-v-eca06f3c {
|
||||
margin-left: 15rpx;
|
||||
}
|
||||
@@ -523,4 +532,10 @@
|
||||
}
|
||||
.deal .num.data-v-eca06f3c {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.iconbox.data-v-eca06f3c {
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
.data-v-eca06f3c ._root {
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
Reference in New Issue
Block a user