111
This commit is contained in:
parent
05ef454ac8
commit
607ff57b2f
@ -374,8 +374,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="sendbox">
|
||||
<view class="left">
|
||||
<view class="left" :class="{disabled:imgList.length>=1}">
|
||||
<up-upload
|
||||
:disabled="imgList.length>=1"
|
||||
:show-upload-list="false"
|
||||
@afterRead="afterRead"
|
||||
name="imgupload"
|
||||
@ -385,6 +386,7 @@
|
||||
height="77rpx"
|
||||
>
|
||||
<up--image
|
||||
|
||||
:src="uploadImg"
|
||||
mode="widthFix"
|
||||
width="40rpx"
|
||||
@ -2014,6 +2016,11 @@ const readRecord= async()=>{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0 30rpx 30rpx;
|
||||
.left.disabled{
|
||||
:deep(.u-image__image){
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
width: 120rpx;
|
||||
height: 58rpx;
|
||||
|
||||
File diff suppressed because one or more lines are too long
110
unpackage/dist/dev/mp-weixin/pages/detail/detail.js
vendored
110
unpackage/dist/dev/mp-weixin/pages/detail/detail.js
vendored
@ -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:732", res.data.data);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:734", res.data.data);
|
||||
point.value = res.data.data;
|
||||
});
|
||||
};
|
||||
@ -320,18 +320,18 @@ const _sfc_main = {
|
||||
};
|
||||
const close = () => {
|
||||
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 = () => {
|
||||
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 = () => {
|
||||
showDeal.value = false;
|
||||
};
|
||||
const openMore = () => {
|
||||
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 = () => {
|
||||
showMore.value = false;
|
||||
@ -369,12 +369,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:1289", url);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1291", url);
|
||||
imgList.value = [url];
|
||||
}
|
||||
},
|
||||
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";
|
||||
};
|
||||
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:1314", name);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1315", lists);
|
||||
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1316", name);
|
||||
handleUpload(file);
|
||||
};
|
||||
const delImg = (index) => {
|
||||
@ -981,6 +981,7 @@ const _sfc_main = {
|
||||
}),
|
||||
ap: common_vendor.o(afterRead),
|
||||
aq: common_vendor.p({
|
||||
disabled: imgList.value.length >= 1,
|
||||
["show-upload-list"]: false,
|
||||
name: "imgupload",
|
||||
multiple: true,
|
||||
@ -988,10 +989,11 @@ const _sfc_main = {
|
||||
width: "40rpx",
|
||||
height: "77rpx"
|
||||
}),
|
||||
ar: common_vendor.o(sendComment),
|
||||
as: common_vendor.o(close),
|
||||
at: common_vendor.o(open),
|
||||
av: common_vendor.p({
|
||||
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({
|
||||
zIndex: 99,
|
||||
overlayStyle: {
|
||||
zIndex: 98
|
||||
@ -1002,20 +1004,20 @@ const _sfc_main = {
|
||||
closeable: true,
|
||||
mode: "bottom"
|
||||
}),
|
||||
aw: level.value == 2 && is_author.value
|
||||
ax: level.value == 2 && is_author.value
|
||||
}, level.value == 2 && is_author.value ? {
|
||||
ax: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
|
||||
ay: common_vendor.o(toggleTop)
|
||||
ay: common_vendor.t(is_top.value ? "取消置顶" : "置顶"),
|
||||
az: common_vendor.o(toggleTop)
|
||||
} : {}, {
|
||||
az: common_vendor.o(openCommentDialog),
|
||||
aA: is_author.value || user_id.value == comment_userId.value
|
||||
aA: common_vendor.o(openCommentDialog),
|
||||
aB: 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(closeDeal),
|
||||
aE: common_vendor.o(openDeal),
|
||||
aF: common_vendor.p({
|
||||
aD: common_vendor.o(closeDealPop),
|
||||
aE: common_vendor.o(closeDeal),
|
||||
aF: common_vendor.o(openDeal),
|
||||
aG: common_vendor.p({
|
||||
zIndex: 60,
|
||||
overlayStyle: {
|
||||
zIndex: 59
|
||||
@ -1025,41 +1027,41 @@ const _sfc_main = {
|
||||
round: 10,
|
||||
mode: "bottom"
|
||||
}),
|
||||
aG: common_vendor.p({
|
||||
aH: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#666",
|
||||
size: "20"
|
||||
}),
|
||||
aH: common_vendor.o(closeMore),
|
||||
aI: common_vendor.p({
|
||||
aI: common_vendor.o(closeMore),
|
||||
aJ: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
aJ: common_vendor.t(mainCommentObj.user_name),
|
||||
aK: user_id.value == mainCommentObj.user_id
|
||||
aK: common_vendor.t(mainCommentObj.user_name),
|
||||
aL: 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),
|
||||
width: "69rpx",
|
||||
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.t(mainCommentObj.content),
|
||||
aO: mainCommentObj.comment_image
|
||||
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
|
||||
}, mainCommentObj.comment_image ? {
|
||||
aP: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
|
||||
aQ: common_vendor.p({
|
||||
aQ: common_vendor.o(($event) => previewImg(mainCommentObj.comment_image)),
|
||||
aR: common_vendor.p({
|
||||
src: mainCommentObj.comment_image,
|
||||
radius: "16rpx",
|
||||
width: "150rpx",
|
||||
height: "150rpx"
|
||||
})
|
||||
} : {}, {
|
||||
aR: common_vendor.t(formatDate(mainCommentObj.created_at)),
|
||||
aS: common_vendor.f(childList.value, (cell, index, i0) => {
|
||||
aS: common_vendor.t(formatDate(mainCommentObj.created_at)),
|
||||
aT: 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),
|
||||
@ -1089,23 +1091,23 @@ const _sfc_main = {
|
||||
m: cell.comment_id
|
||||
});
|
||||
}),
|
||||
aT: common_vendor.p({
|
||||
aU: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.headImg),
|
||||
width: "86rpx",
|
||||
height: "86rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
aU: common_vendor.o(($event) => _ctx.value = $event),
|
||||
aV: common_vendor.p({
|
||||
aV: common_vendor.o(($event) => _ctx.value = $event),
|
||||
aW: common_vendor.p({
|
||||
readonly: true,
|
||||
placeholder: "@" + mainCommentObj.user_name + ":",
|
||||
border: "surround",
|
||||
modelValue: _ctx.value
|
||||
}),
|
||||
aW: common_vendor.o(showReplyPop),
|
||||
aX: common_vendor.o(closeMore),
|
||||
aY: common_vendor.o(openMore),
|
||||
aZ: common_vendor.p({
|
||||
aX: common_vendor.o(showReplyPop),
|
||||
aY: common_vendor.o(closeMore),
|
||||
aZ: common_vendor.o(openMore),
|
||||
ba: common_vendor.p({
|
||||
zIndex: 10,
|
||||
overlayStyle: {
|
||||
zIndex: 9
|
||||
@ -1115,26 +1117,26 @@ const _sfc_main = {
|
||||
round: 10,
|
||||
mode: "bottom"
|
||||
}),
|
||||
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({
|
||||
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({
|
||||
placeholder: "请输入打赏积分",
|
||||
type: "number",
|
||||
border: "surround",
|
||||
modelValue: givePointValue.value
|
||||
}),
|
||||
bf: common_vendor.o(($event) => changePoint("add")),
|
||||
bg: common_vendor.o(($event) => showGive.value = false),
|
||||
bh: common_vendor.o(confirmGive),
|
||||
bi: common_vendor.p({
|
||||
bg: common_vendor.o(($event) => changePoint("add")),
|
||||
bh: common_vendor.o(($event) => showGive.value = false),
|
||||
bi: common_vendor.o(confirmGive),
|
||||
bj: common_vendor.p({
|
||||
show: showGive.value,
|
||||
["mask-click-able"]: true
|
||||
}),
|
||||
bj: common_vendor.o(($event) => showModal.value = false),
|
||||
bk: common_vendor.o(confirmDel),
|
||||
bl: common_vendor.p({
|
||||
bk: common_vendor.o(($event) => showModal.value = false),
|
||||
bl: common_vendor.o(confirmDel),
|
||||
bm: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true
|
||||
})
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -385,6 +385,9 @@
|
||||
justify-content: space-between;
|
||||
margin: 0 30rpx 30rpx;
|
||||
}
|
||||
.sendbox .left.disabled.data-v-eca06f3c .u-image__image {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.sendbox .btn.data-v-eca06f3c {
|
||||
width: 120rpx;
|
||||
height: 58rpx;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user