优化代码

This commit is contained in:
pengxiaolong
2025-08-05 22:05:56 +08:00
parent 3eddd94922
commit 40c3282515
86 changed files with 1700 additions and 399 deletions

View File

@@ -3,6 +3,7 @@ const common_vendor = require("../../common/vendor.js");
const components_formatDate = require("../../components/formatDate.js");
const components_TimeFormatting = require("../../components/TimeFormatting.js");
const components_request = require("../../components/request.js");
const components_VerifyLogin = require("../../components/VerifyLogin.js");
const NewAddedPk = () => "../NewAddedPk/NewAddedPk2.js";
const _sfc_main = {
data() {
@@ -29,6 +30,7 @@ const _sfc_main = {
},
onLoad(options) {
this.inid = options.inid;
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:194", this.inid);
if (this.inid) {
this.GetonShareAppMessagedata();
}
@@ -41,7 +43,7 @@ const _sfc_main = {
data: {
id: data.item.senderId
},
userInfo: true
userInfo: false
}).then((res) => {
if (res.code === 200) {
this.chatPartnerinfo = res.data;
@@ -114,8 +116,10 @@ const _sfc_main = {
});
},
open() {
this.$refs.popup.open("center");
this.userlist();
components_VerifyLogin.VerifyLogin(this.item.id).then((res) => {
this.$refs.popup.open("center");
this.userlist();
});
},
invite() {
if (this.InvitingPartyEventindex === null) {
@@ -144,8 +148,10 @@ const _sfc_main = {
this.$refs.popup.close();
},
openChat() {
common_vendor.wx$1.navigateTo({
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`
components_VerifyLogin.VerifyLogin(this.item.id).then((res) => {
common_vendor.wx$1.navigateTo({
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`
});
});
},
async userlist() {