This commit is contained in:
zoujiandong
2025-07-18 13:30:14 +08:00
parent 293b3e6a35
commit 9b4734acc5
58 changed files with 1790 additions and 311 deletions
+128 -115
View File
@@ -31,9 +31,9 @@ const _easycom_up_upload = () => "../../node-modules/uview-plus/components/u-upl
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
if (!Math) {
(backNav + _easycom_up__image + _easycom_up_input + _easycom_up_icon + _easycom_up_parse + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_image + _easycom_z_paging + _easycom_up__textarea + _easycom_up_upload + _easycom_up_popup + _easycom_up_overlay)();
(backDetailNav + _easycom_up__image + _easycom_up_input + _easycom_up_icon + _easycom_up_parse + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_image + _easycom_z_paging + _easycom_up__textarea + _easycom_up_upload + _easycom_up_popup + _easycom_up_overlay)();
}
const backNav = () => "../../components/backNav/backNav.js";
const backDetailNav = () => "../../components/backDetailNav/backDetailNav.js";
const _sfc_main = {
__name: "detail",
setup(__props) {
@@ -147,7 +147,7 @@ const _sfc_main = {
};
const getUserPoint = () => {
api_api.api.getUserPoint().then((res) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:722", res.data.data);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:735", res.data.data);
point.value = res.data.data;
});
};
@@ -327,18 +327,18 @@ const _sfc_main = {
};
const close = () => {
showCommentDialog.value = false;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:920", "close");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:933", "close");
};
const openDeal = () => {
showDeal.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:925", "open");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:938", "open");
};
const closeDeal = () => {
showDeal.value = false;
};
const openMore = () => {
showMore.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:933", "open");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:946", "open");
};
const closeMore = () => {
showMore.value = false;
@@ -376,12 +376,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:1284", url);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1297", url);
imgList.value = [url];
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1289", err);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1302", err);
}
});
});
@@ -400,8 +400,8 @@ const _sfc_main = {
return "unknown";
};
const afterRead = (file, lists, name) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1308", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1309", name);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1321", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1322", name);
handleUpload(file);
};
const delImg = (index) => {
@@ -733,72 +733,85 @@ const _sfc_main = {
o: common_vendor.t(info.exchange_title)
}, {
m: type.value == "article",
p: common_vendor.f(info.author, (item, k0, i0) => {
p: type.value == "video" || type.value == "article"
}, type.value == "video" || type.value == "article" ? {
q: 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)
};
}),
q: common_vendor.p({
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",
width: "46rpx",
height: "46rpx",
radius: "50%"
}),
r: common_vendor.p({
t: common_vendor.t(info.user_name),
v: common_vendor.t(info.hospital_name)
}, {
w: common_vendor.p({
name: "eye",
color: "#6B7280",
size: "28rpx"
}),
s: common_vendor.t(info.read_num),
t: common_vendor.p({
x: common_vendor.t(info.read_num),
y: common_vendor.p({
name: info.is_collect ? "heart-fill" : "heart",
color: info.is_collect ? "red" : "#6B7280",
size: "28rpx"
}),
v: common_vendor.t(info.collect_num),
w: common_vendor.p({
z: common_vendor.t(info.collect_num),
A: common_vendor.p({
name: "clock",
color: "#6B7280",
size: "28rpx"
}),
x: common_vendor.t(formatDay(info.push_date)),
y: showCanvas.value
B: common_vendor.t(formatDay(info.push_date)),
C: showCanvas.value
}, showCanvas.value ? {} : {}, {
z: type.value == "video" && !isH5.value
D: type.value == "video" && !isH5.value
}, type.value == "video" && !isH5.value ? {
A: "playerContext" + info.video_no,
B: "playerId" + info.video_no,
C: info.video_no
E: "playerContext" + info.video_no,
F: "playerId" + info.video_no,
G: info.video_no
} : {}, {
D: type.value == "video" && isH5.value
H: type.value == "video" && isH5.value
}, type.value == "video" && isH5.value ? {} : type.value == "article" ? {
F: common_vendor.p({
J: common_vendor.p({
content: fromatImg(info.article_content)
})
} : common_vendor.e({
G: info.exchange_content
K: info.exchange_content
}, info.exchange_content ? {
H: common_vendor.p({
L: common_vendor.p({
content: fromatImg(info.exchange_content)
})
} : {}, {
I: info.exchange_summary
M: info.exchange_summary
}, info.exchange_summary ? {
J: common_vendor.p({
N: common_vendor.p({
content: fromatImg(info.exchange_summary)
})
} : {}, {
K: info.case_exchange_vote && info.case_exchange_vote.vote_title
O: info.case_exchange_vote && info.case_exchange_vote.vote_title
}, info.case_exchange_vote && info.case_exchange_vote.vote_title ? common_vendor.e({
L: info.case_exchange_vote.is_have_voted != 1
P: info.case_exchange_vote.is_have_voted != 1
}, info.case_exchange_vote.is_have_voted != 1 ? {
M: common_vendor.t(info.case_exchange_vote.vote_title),
N: common_vendor.f(info.case_exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
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) => {
return {
a: "eca06f3c-15-" + i0 + ",eca06f3c-14",
a: "eca06f3c-16-" + i0 + ",eca06f3c-15",
b: common_vendor.p({
activeColor: "#3CC7C0",
label: item.option_value,
@@ -807,38 +820,38 @@ const _sfc_main = {
c: item.option_id
};
}),
O: common_vendor.o(($event) => option_id.value = $event),
P: common_vendor.p({
S: common_vendor.o(($event) => option_id.value = $event),
T: common_vendor.p({
placement: "column",
modelValue: option_id.value
}),
Q: common_vendor.o(addVote)
U: common_vendor.o(addVote)
} : {
R: common_vendor.t(info.case_exchange_vote.vote_title),
S: common_vendor.f(info.case_exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
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) => {
return {
a: common_vendor.t(item.option_value),
b: common_vendor.t(item.proportion),
c: item.option_id
};
}),
T: _ctx.proportion / 100
X: _ctx.proportion / 100
}) : {}), {
E: type.value == "article",
U: common_vendor.p({
I: type.value == "article",
Y: common_vendor.p({
src: common_vendor.unref(common_assets.commentImg),
mode: "widthFix",
width: "50rpx",
height: "50rpx"
}),
V: common_vendor.t(total.value),
W: common_vendor.f(dataList.value, (item, index, i0) => {
Z: common_vendor.t(total.value),
aa: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e({
a: "eca06f3c-17-" + i0 + ",eca06f3c-0",
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-18-" + i0 + ",eca06f3c-0",
d: "eca06f3c-19-" + i0 + ",eca06f3c-0",
e: common_vendor.p({
src: common_vendor.unref(common_assets.selfImg),
width: "69rpx",
@@ -850,7 +863,7 @@ const _sfc_main = {
h: item.comment_image
}, item.comment_image ? {
i: common_vendor.o(($event) => previewImg(item.comment_image), item.comment_id),
j: "eca06f3c-19-" + i0 + ",eca06f3c-0",
j: "eca06f3c-20-" + i0 + ",eca06f3c-0",
k: common_vendor.p({
src: item.comment_image,
radius: "16rpx",
@@ -863,11 +876,11 @@ const _sfc_main = {
}, item.sub_comment && item.sub_comment.length > 0 ? {
n: common_vendor.f(item.sub_comment.slice(0, 3), (cell, index2, i1) => {
return common_vendor.e({
a: "eca06f3c-20-" + i0 + "-" + i1 + ",eca06f3c-0",
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-21-" + i0 + "-" + i1 + ",eca06f3c-0",
d: "eca06f3c-22-" + i0 + "-" + i1 + ",eca06f3c-0",
e: common_vendor.p({
src: common_vendor.unref(common_assets.selfImg),
width: "69rpx",
@@ -879,7 +892,7 @@ const _sfc_main = {
h: cell.comment_image
}, cell.comment_image ? {
i: common_vendor.o(($event) => previewImg(cell.comment_image), cell.comment_id),
j: "eca06f3c-22-" + i0 + "-" + i1 + ",eca06f3c-0",
j: "eca06f3c-23-" + i0 + "-" + i1 + ",eca06f3c-0",
k: common_vendor.p({
src: cell.comment_image,
radius: "16rpx",
@@ -905,18 +918,18 @@ const _sfc_main = {
r: item.comment_id
});
}),
X: common_vendor.p({
ab: common_vendor.p({
src: common_vendor.unref(common_assets.headImg),
width: "86rpx",
height: "86rpx",
radius: "50%"
}),
Y: common_vendor.sr(paging, "eca06f3c-0", {
ac: common_vendor.sr(paging, "eca06f3c-0", {
"k": "paging"
}),
Z: common_vendor.o(queryList),
aa: common_vendor.o(($event) => dataList.value = $event),
ab: common_vendor.p({
ad: common_vendor.o(queryList),
ae: common_vendor.o(($event) => dataList.value = $event),
af: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: false,
@@ -933,40 +946,40 @@ const _sfc_main = {
},
modelValue: dataList.value
}),
ac: common_vendor.sr(commentTextarea, "eca06f3c-24,eca06f3c-23", {
ag: common_vendor.sr(commentTextarea, "eca06f3c-25,eca06f3c-24", {
"k": "commentTextarea"
}),
ad: common_vendor.o(($event) => content.value = $event),
ae: common_vendor.p({
ah: common_vendor.o(($event) => content.value = $event),
ai: common_vendor.p({
focus: false,
height: "200",
placeholder: placeholder.value,
modelValue: content.value
}),
af: imgList.value.length > 0
aj: imgList.value.length > 0
}, imgList.value.length > 0 ? {
ag: common_vendor.o(($event) => previewImg(imgList.value[0])),
ah: common_vendor.p({
ak: common_vendor.o(($event) => previewImg(imgList.value[0])),
al: common_vendor.p({
src: imgList.value[0],
radius: "6",
width: "150rpx",
height: "150rpx"
}),
ai: common_vendor.p({
am: common_vendor.p({
name: "close-circle",
color: "#666",
size: "16"
}),
aj: common_vendor.o(delImg)
an: common_vendor.o(delImg)
} : {}, {
ak: common_vendor.p({
ao: common_vendor.p({
src: common_vendor.unref(common_assets.uploadImg),
mode: "widthFix",
width: "40rpx",
height: "77rpx"
}),
al: common_vendor.o(afterRead),
am: common_vendor.p({
ap: common_vendor.o(afterRead),
aq: common_vendor.p({
["show-upload-list"]: false,
name: "imgupload",
multiple: true,
@@ -974,10 +987,10 @@ const _sfc_main = {
width: "40rpx",
height: "77rpx"
}),
an: common_vendor.o(sendComment),
ao: common_vendor.o(close),
ap: common_vendor.o(open),
aq: common_vendor.p({
ar: common_vendor.o(sendComment),
as: common_vendor.o(close),
at: common_vendor.o(open),
av: common_vendor.p({
zIndex: 99,
overlayStyle: {
zIndex: 98
@@ -988,20 +1001,20 @@ const _sfc_main = {
closeable: true,
mode: "bottom"
}),
ar: level.value == 2 && is_author.value
aw: level.value == 2 && is_author.value
}, level.value == 2 && is_author.value ? {
as: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
at: common_vendor.o(toggleTop)
ax: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
ay: common_vendor.o(toggleTop)
} : {}, {
av: common_vendor.o(openCommentDialog),
aw: is_author.value || user_id.value == comment_userId.value
az: common_vendor.o(openCommentDialog),
aA: is_author.value || user_id.value == comment_userId.value
}, is_author.value || user_id.value == comment_userId.value ? {
ax: common_vendor.o(delComment)
aB: common_vendor.o(delComment)
} : {}, {
ay: common_vendor.o(closeDealPop),
az: common_vendor.o(closeDeal),
aA: common_vendor.o(openDeal),
aB: 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
@@ -1011,47 +1024,47 @@ const _sfc_main = {
round: 10,
mode: "bottom"
}),
aC: common_vendor.p({
aG: common_vendor.p({
name: "close",
color: "#666",
size: "20"
}),
aD: common_vendor.o(closeMore),
aE: common_vendor.p({
aH: common_vendor.o(closeMore),
aI: common_vendor.p({
src: common_vendor.unref(common_assets.headImg),
width: "86rpx",
height: "86rpx",
radius: "50%"
}),
aF: common_vendor.t(mainCommentObj.user_name),
aG: user_id.value == mainCommentObj.user_id
aJ: common_vendor.t(mainCommentObj.user_name),
aK: user_id.value == mainCommentObj.user_id
}, user_id.value == mainCommentObj.user_id ? {
aH: common_vendor.p({
aL: common_vendor.p({
src: common_vendor.unref(common_assets.selfImg),
width: "69rpx",
height: "31rpx"
})
} : {}, {
aI: common_vendor.o(($event) => alertDeal(mainCommentObj.comment_id, mainCommentObj.comment_id, mainCommentObj.user_name, mainCommentObj.is_top, 2, mainCommentObj.user_id)),
aJ: common_vendor.t(mainCommentObj.content),
aK: mainCommentObj.comment_image
aM: common_vendor.o(($event) => alertDeal(mainCommentObj.comment_id, mainCommentObj.comment_id, mainCommentObj.user_name, mainCommentObj.is_top, 2, mainCommentObj.user_id)),
aN: common_vendor.t(mainCommentObj.content),
aO: mainCommentObj.comment_image
}, mainCommentObj.comment_image ? {
aL: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
aM: 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"
})
} : {}, {
aN: common_vendor.t(formatDate(mainCommentObj.created_at)),
aO: 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-35-" + i0 + ",eca06f3c-30",
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-36-" + i0 + ",eca06f3c-30",
d: "eca06f3c-37-" + i0 + ",eca06f3c-31",
e: common_vendor.p({
src: common_vendor.unref(common_assets.selfImg),
width: "69rpx",
@@ -1063,7 +1076,7 @@ const _sfc_main = {
h: cell.comment_image
}, cell.comment_image ? {
i: common_vendor.o(($event) => previewImg(cell.comment_image), cell.comment_id),
j: "eca06f3c-37-" + i0 + ",eca06f3c-30",
j: "eca06f3c-38-" + i0 + ",eca06f3c-31",
k: common_vendor.p({
src: cell.comment_image,
radius: "16rpx",
@@ -1075,23 +1088,23 @@ const _sfc_main = {
m: cell.comment_id
});
}),
aP: common_vendor.p({
aT: common_vendor.p({
src: common_vendor.unref(common_assets.headImg),
width: "86rpx",
height: "86rpx",
radius: "50%"
}),
aQ: common_vendor.o(($event) => _ctx.value = $event),
aR: common_vendor.p({
aU: common_vendor.o(($event) => _ctx.value = $event),
aV: common_vendor.p({
readonly: true,
placeholder: "@" + mainCommentObj.user_name + ":",
border: "surround",
modelValue: _ctx.value
}),
aS: common_vendor.o(showReplyPop),
aT: common_vendor.o(closeMore),
aU: common_vendor.o(openMore),
aV: common_vendor.p({
aW: common_vendor.o(showReplyPop),
aX: common_vendor.o(closeMore),
aY: common_vendor.o(openMore),
aZ: common_vendor.p({
zIndex: 10,
overlayStyle: {
zIndex: 9
@@ -1101,26 +1114,26 @@ const _sfc_main = {
round: 10,
mode: "bottom"
}),
aW: common_vendor.t(point.value),
aX: common_vendor.o(($event) => changePoint("minus")),
aY: common_vendor.o(inputPoint),
aZ: common_vendor.o(($event) => givePointValue.value = $event),
ba: common_vendor.p({
ba: common_vendor.t(point.value),
bb: common_vendor.o(($event) => changePoint("minus")),
bc: common_vendor.o(inputPoint),
bd: common_vendor.o(($event) => givePointValue.value = $event),
be: common_vendor.p({
placeholder: "请输入打赏积分",
type: "number",
border: "surround",
modelValue: givePointValue.value
}),
bb: common_vendor.o(($event) => changePoint("add")),
bc: common_vendor.o(($event) => showGive.value = false),
bd: common_vendor.o(confirmGive),
be: common_vendor.p({
bf: common_vendor.o(($event) => changePoint("add")),
bg: common_vendor.o(($event) => showGive.value = false),
bh: common_vendor.o(confirmGive),
bi: common_vendor.p({
show: showGive.value,
["mask-click-able"]: true
}),
bf: common_vendor.o(($event) => showModal.value = false),
bg: common_vendor.o(confirmDel),
bh: common_vendor.p({
bj: common_vendor.o(($event) => showModal.value = false),
bk: common_vendor.o(confirmDel),
bl: common_vendor.p({
show: showModal.value,
["mask-click-able"]: true
})
+1 -1
View File
@@ -15,6 +15,6 @@
"up-upload": "../../node-modules/uview-plus/components/u-upload/u-upload",
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
"back-nav": "../../components/backNav/backNav"
"back-detail-nav": "../../components/backDetailNav/backDetailNav"
}
}
File diff suppressed because one or more lines are too long