优化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user