命令行提交

This commit is contained in:
zoujiandong
2025-08-05 11:27:40 +08:00
parent 430a4a1491
commit 8dadc2be09
19 changed files with 529 additions and 195 deletions
+93 -90
View File
@@ -75,7 +75,6 @@ const _sfc_main = {
const commentTextarea = common_vendor.ref(null);
const isLock = common_vendor.ref(false);
const confirmGive = () => {
showGive.value = false;
givePoint();
};
const oldScrollTop = common_vendor.ref(0);
@@ -100,7 +99,7 @@ const _sfc_main = {
return common_vendor.dayjs(date).format("YYYY-MM-DD HH:mm");
};
const scrolltolower = (rootId) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:694", isLock.value);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:693", isLock.value);
if (!isLock.value) {
let page = mainCommentObj.sub_page + 1;
mainCommentObj.sub_page = page;
@@ -117,27 +116,6 @@ const _sfc_main = {
}
}
};
const inputPoint = (val) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:715", val);
if (givePointValue.value <= 1) {
common_vendor.index.showToast({
icon: "none",
title: "每次打赏积分必须大于0"
});
setTimeout(() => {
givePointValue.value = 1;
});
}
if (!/^[1-9]\d*$/.test(val)) {
common_vendor.index.showToast({
icon: "none",
title: "每次打赏积分必须是大于0的整数"
});
setTimeout(() => {
givePointValue.value = 5;
});
}
};
const changePoint = (type2) => {
if (type2 == "minus") {
if (givePointValue.value > 5) {
@@ -198,6 +176,29 @@ const _sfc_main = {
});
};
const givePoint = () => {
if (givePointValue.value == null) {
common_vendor.index.showToast({
icon: "none",
title: "每次打赏积分必须大于0"
});
return false;
}
if (givePointValue.value <= 1) {
givePointValue.value = 1;
common_vendor.index.showToast({
icon: "none",
title: "每次打赏积分必须大于0"
});
return false;
}
if (!/^[1-9]\d*$/.test(givePointValue.value)) {
common_vendor.index.showToast({
icon: "none",
title: "每次打赏积分必须是大于0的整数"
});
givePointValue.value = null;
return false;
}
if (point.value < givePointValue.value) {
common_vendor.index.showToast({
icon: "none",
@@ -222,6 +223,7 @@ const _sfc_main = {
icon: "none",
title: "打赏成功!"
});
givePointValue.value = 5;
showGive.value = false;
});
};
@@ -539,7 +541,7 @@ const _sfc_main = {
resolve(res2.tempFilePath);
},
fail: function(res2) {
common_vendor.index.__f__("error", "at pages/detail/detail.vue:1228", res2);
common_vendor.index.__f__("error", "at pages/detail/detail.vue:1230", res2);
}
});
};
@@ -1028,8 +1030,8 @@ const _sfc_main = {
} : {}, {
P: info.exchange_vote && info.exchange_vote.vote_title
}, info.exchange_vote && info.exchange_vote.vote_title ? common_vendor.e({
Q: info.exchange_vote.is_have_voted != 1
}, info.exchange_vote.is_have_voted != 1 ? {
Q: info.exchange_vote.is_have_voted == 0
}, info.exchange_vote.is_have_voted == 0 ? {
R: common_vendor.t(info.exchange_vote.vote_title),
S: common_vendor.f(info.exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
return {
@@ -1047,27 +1049,29 @@ const _sfc_main = {
placement: "column",
modelValue: option_id.value
}),
V: common_vendor.o(addVote)
} : {
W: common_vendor.t(info.exchange_vote.vote_title),
X: common_vendor.f(info.exchange_vote.case_exchange_vote_option, (item, k0, i0) => {
V: common_vendor.o(($event) => addVote())
} : {}, {
W: info.exchange_vote.is_enabled == 0 || info.exchange_vote.is_have_voted == 1
}, info.exchange_vote.is_enabled == 0 || info.exchange_vote.is_have_voted == 1 ? {
X: common_vendor.t(info.exchange_vote.vote_title),
Y: 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),
c: item.option_id
};
}),
Y: _ctx.proportion / 100
}) : {}), {
Z: _ctx.proportion / 100
} : {}) : {}), {
J: type.value == "article",
Z: common_vendor.p({
aa: common_vendor.p({
src: common_vendor.unref(common_assets.commentImg),
mode: "widthFix",
width: "50rpx",
height: "50rpx"
}),
aa: common_vendor.t(total.value),
ab: common_vendor.f(dataList.value, (item, index, i0) => {
ab: common_vendor.t(total.value),
ac: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e({
a: "eca06f3c-18-" + i0 + ",eca06f3c-0",
b: common_vendor.p({
@@ -1152,12 +1156,12 @@ const _sfc_main = {
t: item.comment_id
});
}),
ac: common_vendor.sr(paging, "eca06f3c-0", {
ad: 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({
ae: common_vendor.o(queryList),
af: common_vendor.o(($event) => dataList.value = $event),
ag: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: false,
@@ -1175,11 +1179,11 @@ const _sfc_main = {
},
modelValue: dataList.value
}),
ag: common_vendor.sr(commentTextarea, "eca06f3c-26,eca06f3c-25", {
ah: common_vendor.sr(commentTextarea, "eca06f3c-26,eca06f3c-25", {
"k": "commentTextarea"
}),
ah: common_vendor.o(($event) => content.value = $event),
ai: common_vendor.p({
ai: common_vendor.o(($event) => content.value = $event),
aj: common_vendor.p({
focus: false,
height: "200",
cursorSpacing: 240,
@@ -1188,30 +1192,30 @@ const _sfc_main = {
placeholder: placeholder.value,
modelValue: content.value
}),
aj: imgList.value.length > 0
ak: imgList.value.length > 0
}, imgList.value.length > 0 ? {
ak: common_vendor.o(($event) => previewImg(imgList.value[0])),
al: common_vendor.p({
al: common_vendor.o(($event) => previewImg(imgList.value[0])),
am: common_vendor.p({
src: imgList.value[0],
radius: "6",
width: "150rpx",
height: "150rpx"
}),
am: common_vendor.p({
an: common_vendor.p({
name: "close-circle",
color: "#666",
size: "16"
}),
an: common_vendor.o(delImg)
ao: common_vendor.o(delImg)
} : {}, {
ao: common_vendor.p({
ap: 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({
aq: common_vendor.o(afterRead),
ar: common_vendor.p({
disabled: imgList.value.length >= 1,
["show-upload-list"]: false,
name: "imgupload",
@@ -1220,11 +1224,11 @@ const _sfc_main = {
width: "40rpx",
height: "77rpx"
}),
ar: imgList.value.length >= 1 ? 1 : "",
as: common_vendor.o((...args) => common_vendor.unref(sendComment) && common_vendor.unref(sendComment)(...args)),
at: common_vendor.o(close),
av: common_vendor.o(open),
aw: common_vendor.p({
as: imgList.value.length >= 1 ? 1 : "",
at: common_vendor.o((...args) => common_vendor.unref(sendComment) && common_vendor.unref(sendComment)(...args)),
av: common_vendor.o(close),
aw: common_vendor.o(open),
ax: common_vendor.p({
zIndex: 99,
overlayStyle: {
zIndex: 98
@@ -1235,20 +1239,20 @@ const _sfc_main = {
closeable: true,
mode: "bottom"
}),
ax: level.value == 2 && isArticleAuthor.value
ay: level.value == 2 && isArticleAuthor.value
}, level.value == 2 && isArticleAuthor.value ? {
ay: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
az: common_vendor.o(toggleTop)
az: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
aA: common_vendor.o(toggleTop)
} : {}, {
aA: common_vendor.o(openCommentDialog),
aB: isArticleAuthor.value || doctor_id.value == comment_doctorId.value
aB: common_vendor.o(openCommentDialog),
aC: isArticleAuthor.value || doctor_id.value == comment_doctorId.value
}, isArticleAuthor.value || doctor_id.value == comment_doctorId.value ? {
aC: common_vendor.o(delComment)
aD: common_vendor.o(delComment)
} : {}, {
aD: common_vendor.o(closeDealPop),
aE: common_vendor.o(closeDeal),
aF: common_vendor.o(openDeal),
aG: common_vendor.p({
aE: common_vendor.o(closeDealPop),
aF: common_vendor.o(closeDeal),
aG: common_vendor.o(openDeal),
aH: common_vendor.p({
zIndex: 60,
overlayStyle: {
zIndex: 59
@@ -1258,41 +1262,41 @@ const _sfc_main = {
round: 10,
mode: "bottom"
}),
aH: common_vendor.p({
aI: common_vendor.p({
name: "close",
color: "#666",
size: "20"
}),
aI: common_vendor.o(closeMore),
aJ: common_vendor.p({
aJ: common_vendor.o(closeMore),
aK: 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: doctor_id.value == mainCommentObj.doctor_id
aL: common_vendor.t(mainCommentObj.user_name),
aM: doctor_id.value == mainCommentObj.doctor_id
}, doctor_id.value == mainCommentObj.doctor_id ? {
aM: common_vendor.p({
aN: 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.doctor_id)),
aO: common_vendor.t(mainCommentObj.content),
aP: mainCommentObj.comment_image
aO: common_vendor.o(($event) => alertDeal(mainCommentObj.comment_id, mainCommentObj.comment_id, mainCommentObj.user_name, mainCommentObj.is_top, 2, mainCommentObj.doctor_id)),
aP: common_vendor.t(mainCommentObj.content),
aQ: mainCommentObj.comment_image
}, mainCommentObj.comment_image ? {
aQ: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
aR: common_vendor.p({
aR: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
aS: 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) => {
aT: common_vendor.t(formatDate(mainCommentObj.created_at)),
aU: common_vendor.f(childList.value, (cell, index, i0) => {
return common_vendor.e({
a: "eca06f3c-37-" + i0 + ",eca06f3c-32",
b: common_vendor.p({
@@ -1328,20 +1332,20 @@ const _sfc_main = {
n: cell.comment_id
});
}),
aU: scrollTop.value,
aV: common_vendor.o(scroll),
aW: common_vendor.o(($event) => scrolltolower(mainCommentObj.comment_id)),
aX: common_vendor.o(($event) => value.value = $event),
aY: common_vendor.p({
aV: scrollTop.value,
aW: common_vendor.o(scroll),
aX: common_vendor.o(($event) => scrolltolower(mainCommentObj.comment_id)),
aY: common_vendor.o(($event) => value.value = $event),
aZ: common_vendor.p({
readonly: true,
placeholder: "@" + mainCommentObj.user_name + ":",
border: "surround",
modelValue: value.value
}),
aZ: common_vendor.o(showReplyPop),
ba: common_vendor.o(closeMore),
bb: common_vendor.o(openMore),
bc: common_vendor.p({
ba: common_vendor.o(showReplyPop),
bb: common_vendor.o(closeMore),
bc: common_vendor.o(openMore),
bd: common_vendor.p({
zIndex: 10,
overlayStyle: {
zIndex: 9
@@ -1351,9 +1355,8 @@ const _sfc_main = {
round: 10,
mode: "bottom"
}),
bd: common_vendor.t(point.value),
be: common_vendor.o(($event) => changePoint("minus")),
bf: common_vendor.o(inputPoint),
be: common_vendor.t(point.value),
bf: common_vendor.o(($event) => changePoint("minus")),
bg: common_vendor.o(($event) => givePointValue.value = $event),
bh: common_vendor.p({
placeholder: "请输入打赏积分",
File diff suppressed because one or more lines are too long