优化
This commit is contained in:
@@ -16,6 +16,7 @@ const _sfc_main = {
|
||||
chatInfo: {},
|
||||
currentConversation: null,
|
||||
inid: null,
|
||||
chatPartnerinfo: {},
|
||||
// parentMessage: null,
|
||||
style: {
|
||||
backgroundColor: "#ffffff"
|
||||
@@ -38,7 +39,18 @@ const _sfc_main = {
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item;
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:211", " itemDetail", data.item);
|
||||
components_request.request({
|
||||
url: "user/getUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: data.item.senderId
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.chatPartnerinfo = res.data;
|
||||
}
|
||||
});
|
||||
});
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
@@ -124,21 +136,16 @@ const _sfc_main = {
|
||||
},
|
||||
inviteHint() {
|
||||
this.$refs.popups.close();
|
||||
const conversationID = `C2C${this.item.senderId}`;
|
||||
const myitem = JSON.stringify(this.list[this.InvitingPartyEventindex]);
|
||||
const youritem = JSON.stringify(this.item);
|
||||
common_vendor.index.redirectTo({
|
||||
url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}&myitem=${myitem}&youritem=${youritem}`
|
||||
});
|
||||
JSON.stringify(this.list[this.InvitingPartyEventindex]);
|
||||
JSON.stringify(this.item);
|
||||
},
|
||||
// 打开邀请弹窗
|
||||
close() {
|
||||
this.$refs.popup.close();
|
||||
},
|
||||
openChat() {
|
||||
const conversationID = `C2C${this.item.senderId}`;
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}`
|
||||
common_vendor.wx$1.navigateTo({
|
||||
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`
|
||||
});
|
||||
},
|
||||
async userlist() {
|
||||
@@ -195,7 +202,7 @@ if (!Math) {
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o$1((...args) => $options.Returnfunc && $options.Returnfunc(...args)),
|
||||
a: common_vendor.o((...args) => $options.Returnfunc && $options.Returnfunc(...args)),
|
||||
b: $data.item.anchorIcon,
|
||||
c: common_vendor.t($data.item.disPlayId),
|
||||
d: $data.item.sex === "1"
|
||||
@@ -205,7 +212,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.t($data.item.coin),
|
||||
h: common_vendor.t($data.item.pkNumber),
|
||||
i: common_vendor.s($data.style),
|
||||
j: common_vendor.o$1(($event) => $data.item.remark = $event),
|
||||
j: common_vendor.o(($event) => $data.item.remark = $event),
|
||||
k: common_vendor.p({
|
||||
type: "textarea",
|
||||
placeholder: "备注",
|
||||
@@ -215,8 +222,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
l: $data.item.senderId !== $data.id
|
||||
}, $data.item.senderId !== $data.id ? {
|
||||
m: common_vendor.o$1(($event) => $options.openChat()),
|
||||
n: common_vendor.o$1(($event) => $options.open())
|
||||
m: common_vendor.o(($event) => $options.openChat()),
|
||||
n: common_vendor.o(($event) => $options.open())
|
||||
} : {}, {
|
||||
o: $data.list.length !== 0
|
||||
}, $data.list.length !== 0 ? {
|
||||
@@ -226,7 +233,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
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), index),
|
||||
e: common_vendor.o(($event) => $options.Select(item.id, index), index),
|
||||
f: $data.selectedId === item.id ? "#b8ff8c74" : "#ffffff",
|
||||
g: index
|
||||
};
|
||||
@@ -234,16 +241,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
} : {}, {
|
||||
q: $data.list.length === 0
|
||||
}, $data.list.length === 0 ? {} : {}, {
|
||||
r: common_vendor.o$1(($event) => $options.invite()),
|
||||
s: common_vendor.o$1(($event) => $options.close()),
|
||||
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({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
}),
|
||||
w: common_vendor.sr("createModule", "9639f721-2"),
|
||||
x: common_vendor.o$1(($event) => $options.inviteHint()),
|
||||
y: common_vendor.o$1(($event) => $options.closeHint()),
|
||||
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({
|
||||
type: "center",
|
||||
|
||||
Reference in New Issue
Block a user