优化代码
This commit is contained in:
@@ -16,11 +16,7 @@ const _sfc_main = {
|
||||
chatInfo: {},
|
||||
currentConversation: null,
|
||||
inid: null,
|
||||
chatPartnerinfo: {},
|
||||
// parentMessage: null,
|
||||
style: {
|
||||
backgroundColor: "#ffffff"
|
||||
}
|
||||
chatPartnerinfo: {}
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
@@ -194,15 +190,13 @@ const _sfc_main = {
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
const _component_NewAddedPk = common_vendor.resolveComponent("NewAddedPk");
|
||||
(_easycom_uni_easyinput2 + _easycom_uni_popup2 + _component_NewAddedPk)();
|
||||
(_easycom_uni_popup2 + _component_NewAddedPk)();
|
||||
}
|
||||
const _easycom_uni_easyinput = () => "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_easyinput + _easycom_uni_popup)();
|
||||
_easycom_uni_popup();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
@@ -215,27 +209,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
g: common_vendor.t($data.item.coin),
|
||||
h: common_vendor.t($data.item.pkNumber),
|
||||
i: common_vendor.s($data.style),
|
||||
j: common_vendor.o(($event) => $data.item.remark = $event),
|
||||
k: common_vendor.p({
|
||||
type: "textarea",
|
||||
placeholder: "备注",
|
||||
maxlength: "-1",
|
||||
disabled: "true",
|
||||
modelValue: $data.item.remark
|
||||
}),
|
||||
l: $data.item.senderId !== $data.id
|
||||
i: common_vendor.t($data.item.remark),
|
||||
j: $data.item.senderId !== $data.id
|
||||
}, $data.item.senderId !== $data.id ? {
|
||||
m: common_vendor.o(($event) => $options.openChat()),
|
||||
n: common_vendor.o(($event) => $options.open())
|
||||
k: common_vendor.o(($event) => $options.openChat()),
|
||||
l: common_vendor.o(($event) => $options.open())
|
||||
} : {}, {
|
||||
o: $data.list.length !== 0
|
||||
m: $data.list.length !== 0
|
||||
}, $data.list.length !== 0 ? {
|
||||
p: common_vendor.f($data.list, (item, index, i0) => {
|
||||
n: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return {
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
c: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
c: common_vendor.t($options.TimeFormatting(item.pkTime * 1e3)),
|
||||
d: common_vendor.t(item.coin),
|
||||
e: common_vendor.o(($event) => $options.Select(item.id, index), index),
|
||||
f: $data.selectedId === item.id ? "#b8ff8c74" : "#ffffff",
|
||||
@@ -243,20 +229,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
q: $data.list.length === 0
|
||||
o: $data.list.length === 0
|
||||
}, $data.list.length === 0 ? {} : {}, {
|
||||
r: common_vendor.o(($event) => $options.invite()),
|
||||
s: common_vendor.o(($event) => $options.close()),
|
||||
t: common_vendor.sr("popup", "9639f721-1"),
|
||||
v: common_vendor.p({
|
||||
p: common_vendor.o(($event) => $options.invite()),
|
||||
q: common_vendor.o(($event) => $options.close()),
|
||||
r: common_vendor.sr("popup", "9639f721-0"),
|
||||
s: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
}),
|
||||
w: common_vendor.sr("createModule", "9639f721-2"),
|
||||
x: common_vendor.o(($event) => $options.inviteHint()),
|
||||
y: common_vendor.o(($event) => $options.closeHint()),
|
||||
z: common_vendor.sr("popups", "9639f721-3"),
|
||||
A: common_vendor.p({
|
||||
t: common_vendor.sr("createModule", "9639f721-1"),
|
||||
v: common_vendor.o(($event) => $options.inviteHint()),
|
||||
w: common_vendor.o(($event) => $options.closeHint()),
|
||||
x: common_vendor.sr("popups", "9639f721-2"),
|
||||
y: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
})
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"navigationBarTitleText": "PK详情",
|
||||
"usingComponents": {
|
||||
"new-added-pk": "../NewAddedPk/NewAddedPk",
|
||||
"uni-easyinput": "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -310,11 +310,33 @@
|
||||
margin-top: 60rpx;
|
||||
width: 90%;
|
||||
}
|
||||
.Remarkscroll.data-v-9639f721{
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
}
|
||||
.Remarkscroll.data-v-9639f721 ::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
display: none;
|
||||
}
|
||||
.Remarkscss.data-v-9639f721{
|
||||
padding: 20rpx;
|
||||
word-break: break-all; /* 强制换行 */
|
||||
white-space: pre-line; /* 保留空白符并换行 */
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.buttonflex.data-v-9639f721{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 40rpx;
|
||||
}
|
||||
.button.data-v-9639f721 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 500rpx;
|
||||
}
|
||||
.accept.data-v-9639f721 {
|
||||
width: 325.38rpx;
|
||||
|
||||
Reference in New Issue
Block a user