This commit is contained in:
pengxiaolong
2025-06-23 22:00:46 +08:00
parent acc81963e9
commit 36a240f854
79 changed files with 426 additions and 154 deletions

View File

@@ -179,6 +179,7 @@ export default {
};
},
onLoad(options) {
uni.getStorage({
key: "userinfo",
success: (res) => {
@@ -191,6 +192,14 @@ export default {
this.getPkmineInfo();
this.getPkIDInfo();
},
onShareAppMessage(res) {
if (res.from === 'menu') {
return {
title: '分享',
path: `${getCurrentPages()[getCurrentPages().length - 1].route}?customData=${JSON.stringify(this.customData)}`,
}
}
},
methods: {
//根据当前消息ID查询pk信息
async getPkIDInfo() {
@@ -213,7 +222,7 @@ export default {
data: {
id: this.customData.pkIdA,
},
userInfo: true,
userInfo: false,
}).then((res) => {
console.log(res.data);
this.SenderData = res.data;
@@ -227,7 +236,7 @@ export default {
data: {
id: this.customData.pkIdB,
},
userInfo: true,
userInfo: false,
}).then((res) => {
console.log(res.data);
this.ReceiverData = res.data;