This commit is contained in:
zoujiandong 2025-07-25 17:21:39 +08:00
parent 05ef454ac8
commit 607ff57b2f
5 changed files with 69 additions and 57 deletions

View File

@ -374,8 +374,9 @@
</view> </view>
</view> </view>
<view class="sendbox"> <view class="sendbox">
<view class="left"> <view class="left" :class="{disabled:imgList.length>=1}">
<up-upload <up-upload
:disabled="imgList.length>=1"
:show-upload-list="false" :show-upload-list="false"
@afterRead="afterRead" @afterRead="afterRead"
name="imgupload" name="imgupload"
@ -385,6 +386,7 @@
height="77rpx" height="77rpx"
> >
<up--image <up--image
:src="uploadImg" :src="uploadImg"
mode="widthFix" mode="widthFix"
width="40rpx" width="40rpx"
@ -2014,6 +2016,11 @@ const readRecord= async()=>{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin: 0 30rpx 30rpx; margin: 0 30rpx 30rpx;
.left.disabled{
:deep(.u-image__image){
opacity: 0.5;
}
}
.btn { .btn {
width: 120rpx; width: 120rpx;
height: 58rpx; height: 58rpx;

File diff suppressed because one or more lines are too long

View File

@ -147,7 +147,7 @@ const _sfc_main = {
}; };
const getUserPoint = () => { const getUserPoint = () => {
api_api.api.getUserPoint().then((res) => { api_api.api.getUserPoint().then((res) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:732", res.data.data); common_vendor.index.__f__("log", "at pages/detail/detail.vue:734", res.data.data);
point.value = res.data.data; point.value = res.data.data;
}); });
}; };
@ -320,18 +320,18 @@ const _sfc_main = {
}; };
const close = () => { const close = () => {
showCommentDialog.value = false; showCommentDialog.value = false;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:925", "close"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:927", "close");
}; };
const openDeal = () => { const openDeal = () => {
showDeal.value = true; showDeal.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:930", "open"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:932", "open");
}; };
const closeDeal = () => { const closeDeal = () => {
showDeal.value = false; showDeal.value = false;
}; };
const openMore = () => { const openMore = () => {
showMore.value = true; showMore.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:938", "open"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:940", "open");
}; };
const closeMore = () => { const closeMore = () => {
showMore.value = false; showMore.value = false;
@ -369,12 +369,12 @@ const _sfc_main = {
success(res) { success(res) {
if (res.statusCode === 204) { if (res.statusCode === 204) {
let url = host + "/" + dir + filename + imgType; let url = host + "/" + dir + filename + imgType;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1289", url); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1291", url);
imgList.value = [url]; imgList.value = [url];
} }
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1294", err); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1296", err);
} }
}); });
}); });
@ -393,8 +393,8 @@ const _sfc_main = {
return "unknown"; return "unknown";
}; };
const afterRead = (file, lists, name) => { const afterRead = (file, lists, name) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1313", lists); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1315", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1314", name); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1316", name);
handleUpload(file); handleUpload(file);
}; };
const delImg = (index) => { const delImg = (index) => {
@ -981,6 +981,7 @@ const _sfc_main = {
}), }),
ap: common_vendor.o(afterRead), ap: common_vendor.o(afterRead),
aq: common_vendor.p({ aq: common_vendor.p({
disabled: imgList.value.length >= 1,
["show-upload-list"]: false, ["show-upload-list"]: false,
name: "imgupload", name: "imgupload",
multiple: true, multiple: true,
@ -988,10 +989,11 @@ const _sfc_main = {
width: "40rpx", width: "40rpx",
height: "77rpx" height: "77rpx"
}), }),
ar: common_vendor.o(sendComment), ar: imgList.value.length >= 1 ? 1 : "",
as: common_vendor.o(close), as: common_vendor.o(sendComment),
at: common_vendor.o(open), at: common_vendor.o(close),
av: common_vendor.p({ av: common_vendor.o(open),
aw: common_vendor.p({
zIndex: 99, zIndex: 99,
overlayStyle: { overlayStyle: {
zIndex: 98 zIndex: 98
@ -1002,20 +1004,20 @@ const _sfc_main = {
closeable: true, closeable: true,
mode: "bottom" mode: "bottom"
}), }),
aw: level.value == 2 && is_author.value ax: level.value == 2 && is_author.value
}, level.value == 2 && is_author.value ? { }, level.value == 2 && is_author.value ? {
ax: common_vendor.t(is_top.value ? "取消置顶" : "置顶"), ay: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
ay: common_vendor.o(toggleTop) az: common_vendor.o(toggleTop)
} : {}, { } : {}, {
az: common_vendor.o(openCommentDialog), aA: common_vendor.o(openCommentDialog),
aA: is_author.value || user_id.value == comment_userId.value aB: is_author.value || user_id.value == comment_userId.value
}, is_author.value || user_id.value == comment_userId.value ? { }, is_author.value || user_id.value == comment_userId.value ? {
aB: common_vendor.o(delComment) aC: common_vendor.o(delComment)
} : {}, { } : {}, {
aC: common_vendor.o(closeDealPop), aD: common_vendor.o(closeDealPop),
aD: common_vendor.o(closeDeal), aE: common_vendor.o(closeDeal),
aE: common_vendor.o(openDeal), aF: common_vendor.o(openDeal),
aF: common_vendor.p({ aG: common_vendor.p({
zIndex: 60, zIndex: 60,
overlayStyle: { overlayStyle: {
zIndex: 59 zIndex: 59
@ -1025,41 +1027,41 @@ const _sfc_main = {
round: 10, round: 10,
mode: "bottom" mode: "bottom"
}), }),
aG: common_vendor.p({ aH: common_vendor.p({
name: "close", name: "close",
color: "#666", color: "#666",
size: "20" size: "20"
}), }),
aH: common_vendor.o(closeMore), aI: common_vendor.o(closeMore),
aI: common_vendor.p({ aJ: common_vendor.p({
src: common_vendor.unref(common_assets.headImg), src: common_vendor.unref(common_assets.headImg),
width: "86rpx", width: "86rpx",
height: "86rpx", height: "86rpx",
radius: "50%" radius: "50%"
}), }),
aJ: common_vendor.t(mainCommentObj.user_name), aK: common_vendor.t(mainCommentObj.user_name),
aK: user_id.value == mainCommentObj.user_id aL: user_id.value == mainCommentObj.user_id
}, user_id.value == mainCommentObj.user_id ? { }, user_id.value == mainCommentObj.user_id ? {
aL: common_vendor.p({ aM: common_vendor.p({
src: common_vendor.unref(common_assets.selfImg), src: common_vendor.unref(common_assets.selfImg),
width: "69rpx", width: "69rpx",
height: "31rpx" height: "31rpx"
}) })
} : {}, { } : {}, {
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.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: common_vendor.t(mainCommentObj.content),
aO: mainCommentObj.comment_image aP: mainCommentObj.comment_image
}, mainCommentObj.comment_image ? { }, mainCommentObj.comment_image ? {
aP: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)), aQ: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
aQ: common_vendor.p({ aR: common_vendor.p({
src: mainCommentObj.comment_image, src: mainCommentObj.comment_image,
radius: "16rpx", radius: "16rpx",
width: "150rpx", width: "150rpx",
height: "150rpx" height: "150rpx"
}) })
} : {}, { } : {}, {
aR: common_vendor.t(formatDate(mainCommentObj.created_at)), aS: common_vendor.t(formatDate(mainCommentObj.created_at)),
aS: common_vendor.f(childList.value, (cell, index, i0) => { aT: common_vendor.f(childList.value, (cell, index, i0) => {
return common_vendor.e({ return common_vendor.e({
a: "eca06f3c-36-" + i0 + ",eca06f3c-31", a: "eca06f3c-36-" + i0 + ",eca06f3c-31",
b: common_vendor.t(cell.user_name), b: common_vendor.t(cell.user_name),
@ -1089,23 +1091,23 @@ const _sfc_main = {
m: cell.comment_id m: cell.comment_id
}); });
}), }),
aT: common_vendor.p({ aU: common_vendor.p({
src: common_vendor.unref(common_assets.headImg), src: common_vendor.unref(common_assets.headImg),
width: "86rpx", width: "86rpx",
height: "86rpx", height: "86rpx",
radius: "50%" radius: "50%"
}), }),
aU: common_vendor.o(($event) => _ctx.value = $event), aV: common_vendor.o(($event) => _ctx.value = $event),
aV: common_vendor.p({ aW: common_vendor.p({
readonly: true, readonly: true,
placeholder: "@" + mainCommentObj.user_name + "", placeholder: "@" + mainCommentObj.user_name + "",
border: "surround", border: "surround",
modelValue: _ctx.value modelValue: _ctx.value
}), }),
aW: common_vendor.o(showReplyPop), aX: common_vendor.o(showReplyPop),
aX: common_vendor.o(closeMore), aY: common_vendor.o(closeMore),
aY: common_vendor.o(openMore), aZ: common_vendor.o(openMore),
aZ: common_vendor.p({ ba: common_vendor.p({
zIndex: 10, zIndex: 10,
overlayStyle: { overlayStyle: {
zIndex: 9 zIndex: 9
@ -1115,26 +1117,26 @@ const _sfc_main = {
round: 10, round: 10,
mode: "bottom" mode: "bottom"
}), }),
ba: common_vendor.t(point.value), bb: common_vendor.t(point.value),
bb: common_vendor.o(($event) => changePoint("minus")), bc: common_vendor.o(($event) => changePoint("minus")),
bc: common_vendor.o(inputPoint), bd: common_vendor.o(inputPoint),
bd: common_vendor.o(($event) => givePointValue.value = $event), be: common_vendor.o(($event) => givePointValue.value = $event),
be: common_vendor.p({ bf: common_vendor.p({
placeholder: "请输入打赏积分", placeholder: "请输入打赏积分",
type: "number", type: "number",
border: "surround", border: "surround",
modelValue: givePointValue.value modelValue: givePointValue.value
}), }),
bf: common_vendor.o(($event) => changePoint("add")), bg: common_vendor.o(($event) => changePoint("add")),
bg: common_vendor.o(($event) => showGive.value = false), bh: common_vendor.o(($event) => showGive.value = false),
bh: common_vendor.o(confirmGive), bi: common_vendor.o(confirmGive),
bi: common_vendor.p({ bj: common_vendor.p({
show: showGive.value, show: showGive.value,
["mask-click-able"]: true ["mask-click-able"]: true
}), }),
bj: common_vendor.o(($event) => showModal.value = false), bk: common_vendor.o(($event) => showModal.value = false),
bk: common_vendor.o(confirmDel), bl: common_vendor.o(confirmDel),
bl: common_vendor.p({ bm: common_vendor.p({
show: showModal.value, show: showModal.value,
["mask-click-able"]: true ["mask-click-able"]: true
}) })

File diff suppressed because one or more lines are too long

View File

@ -385,6 +385,9 @@
justify-content: space-between; justify-content: space-between;
margin: 0 30rpx 30rpx; margin: 0 30rpx 30rpx;
} }
.sendbox .left.disabled.data-v-eca06f3c .u-image__image {
opacity: 0.5;
}
.sendbox .btn.data-v-eca06f3c { .sendbox .btn.data-v-eca06f3c {
width: 120rpx; width: 120rpx;
height: 58rpx; height: 58rpx;