优化页面
This commit is contained in:
@@ -16,13 +16,14 @@ const _sfc_main = {
|
||||
InvitingPartyEventindex: null,
|
||||
chatInfo: {},
|
||||
currentConversation: null
|
||||
// parentMessage: null,
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item;
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:152", "接收到的数据:", this.item);
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:165", "接收到的数据:", this.item);
|
||||
});
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
@@ -38,6 +39,11 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//修改信息
|
||||
// onRecompose(item) {
|
||||
// this.parentMessage = item;
|
||||
// this.createModule.open();
|
||||
// },
|
||||
formatDate: components_formatDate.formatDate,
|
||||
TimeFormatting: components_TimeFormatting.TimeFormatting,
|
||||
Select(id, index) {
|
||||
@@ -61,6 +67,13 @@ const _sfc_main = {
|
||||
this.userlist();
|
||||
},
|
||||
invite() {
|
||||
if (this.item.pkTime !== this.list[this.InvitingPartyEventindex].pkTime) {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "请保持时间一致"
|
||||
});
|
||||
return;
|
||||
}
|
||||
const conversationID = `C2C${this.item.senderId}`;
|
||||
const myitem = JSON.stringify(this.list[this.InvitingPartyEventindex]);
|
||||
const youritem = JSON.stringify(this.item);
|
||||
@@ -93,7 +106,7 @@ const _sfc_main = {
|
||||
if (res.code === 200) {
|
||||
if (res.data.length !== 0) {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:235", "res.data", res.data);
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:253", "res.data", res.data);
|
||||
this.list = res.data;
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
@@ -117,9 +130,10 @@ const _sfc_main = {
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_viewm = common_vendor.resolveComponent("viewm");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
const _component_NewAddedPk = common_vendor.resolveComponent("NewAddedPk");
|
||||
(_easycom_uni_popup2 + _component_NewAddedPk)();
|
||||
(_component_viewm + _easycom_uni_popup2 + _component_NewAddedPk)();
|
||||
}
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
@@ -134,36 +148,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: common_vendor.t($data.item.anchorId),
|
||||
f: $data.item.sex === "1"
|
||||
}, $data.item.sex === "1" ? {
|
||||
g: common_assets._imports_2
|
||||
g: common_assets._imports_2,
|
||||
h: common_vendor.t($data.item.sex === "1" ? "男" : "女")
|
||||
} : {
|
||||
h: common_assets._imports_3
|
||||
i: common_assets._imports_3,
|
||||
j: common_vendor.t($data.item.sex === "2" ? "男" : "女")
|
||||
}, {
|
||||
i: common_vendor.t($data.item.country),
|
||||
j: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
k: common_assets._imports_4$2,
|
||||
l: common_vendor.t($data.item.coin),
|
||||
m: common_assets._imports_5$2,
|
||||
n: common_vendor.t($data.item.pkNumber),
|
||||
o: common_vendor.o$1(($event) => $options.openChat()),
|
||||
p: common_vendor.o$1(($event) => $options.open()),
|
||||
q: common_vendor.f($data.list, (item, index, i0) => {
|
||||
k: common_vendor.t($data.item.country),
|
||||
l: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
m: common_assets._imports_4$2,
|
||||
n: common_vendor.t($data.item.coin),
|
||||
o: common_assets._imports_5$2,
|
||||
p: common_vendor.t($data.item.pkNumber),
|
||||
q: $data.item.senderId !== $data.id
|
||||
}, $data.item.senderId !== $data.id ? {
|
||||
r: common_vendor.o$1(($event) => $options.openChat()),
|
||||
s: common_vendor.o$1(($event) => $options.open())
|
||||
} : {}, {
|
||||
t: 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)),
|
||||
d: common_vendor.t(item.coin),
|
||||
e: common_vendor.o$1(($event) => $options.Select(item.id, index)),
|
||||
f: $data.selectedId === item.id ? "2px solid red" : "2px solid #afafaf"
|
||||
c: common_vendor.t(item.coin),
|
||||
d: "9639f721-1-" + i0 + ",9639f721-0",
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
f: common_vendor.o$1(($event) => $options.Select(item.id, index)),
|
||||
g: $data.selectedId === item.id ? "#f6f6f6" : "#ffffff"
|
||||
};
|
||||
}),
|
||||
r: common_vendor.o$1(($event) => $options.invite()),
|
||||
s: common_vendor.o$1(($event) => $options.close()),
|
||||
t: common_vendor.sr("popup", "9639f721-0"),
|
||||
v: common_vendor.p({
|
||||
v: common_vendor.o$1(($event) => $options.invite()),
|
||||
w: common_vendor.o$1(($event) => $options.close()),
|
||||
x: common_vendor.sr("popup", "9639f721-0"),
|
||||
y: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
}),
|
||||
w: common_vendor.sr("createModule", "9639f721-1")
|
||||
z: common_vendor.sr("createModule", "9639f721-2")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9639f721"]]);
|
||||
|
||||
Reference in New Issue
Block a user