优化代码
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"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user