优化代码

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() {

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,7 @@
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
}
.popup-Hintcontent.data-v-9639f721{
.popup-Hintcontent.data-v-9639f721 {
width: 600rpx;
height: 500rpx;
background-repeat: no-repeat;
@@ -73,7 +73,7 @@
font-weight: bold;
margin-bottom: 30rpx;
}
.popup-texts.data-v-9639f721{
.popup-texts.data-v-9639f721 {
margin-left: 50rpx;
color: #7e7e7e;
font-size: 26rpx;
@@ -310,7 +310,7 @@
margin-top: 60rpx;
width: 90%;
}
.Remarkscroll.data-v-9639f721{
.Remarkscroll.data-v-9639f721 {
width: 100%;
height: 300rpx;
}
@@ -320,14 +320,14 @@
color: transparent;
display: none;
}
.Remarkscss.data-v-9639f721{
.Remarkscss.data-v-9639f721 {
padding: 20rpx;
word-break: break-all; /* 强制换行 */
white-space: pre-line; /* 保留空白符并换行 */
width: 100%;
font-size: 28rpx;
}
.buttonflex.data-v-9639f721{
.buttonflex.data-v-9639f721 {
position: fixed;
left: 0;
right: 0;