Commit f7d8d9b3 authored by youjie's avatar youjie

no message

parent 285baaaf
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
getWeChatOpenId,getLoginAccounts getWeChatOpenId,getLoginAccounts
} from "../../api/index.js"; } from "../../api/index.js";
import { import {
loginByUnionId,SetFriend loginByUnionId,SetFriend,GetUserInfoByUnionId
} from "../../api/erp.js"; } from "../../api/erp.js";
export default { export default {
components: { components: {
...@@ -89,10 +89,6 @@ ...@@ -89,10 +89,6 @@
proxy proxy
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
obj: {
Name: '',
Photo: '',
},
nickName:'', nickName:'',
AccountName:'', AccountName:'',
OldUnionId:'', OldUnionId:'',
...@@ -212,10 +208,16 @@ ...@@ -212,10 +208,16 @@
}, },
async getData() { async getData() {
uni.showLoading() uni.showLoading()
let res = await GetFriend(data.msg); let res = await GetUserInfoByUnionId(data.msg);
if (res) { if (res.Code==1) {
uni.hideLoading() uni.hideLoading()
data.nickName = res.Data.WeChatName data.nickName = res.Data.WeChatName
}else{
uni.hideLoading()
uni.showToast({
title: res.Message,
icon: "none",
});
} }
}, },
}; };
......
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
onShareAppMessage() { onShareAppMessage() {
return { return {
title: "邀请好友", title: "邀请好友",
path:`/pages/FriendsAndRelatives/addFriendsAndRelatives??unionid=${encodeURIComponent(this.wxUserAuthInfo.unionid)}&AccountName=${encodeURIComponent(this.erpUserInfo.AccountName)}`, path:`/pages/FriendsAndRelatives/addFriendsAndRelatives??unionid=${this.wxUserAuthInfo.unionid}&AccountName=${this.erpUserInfo.AccountName}`,
query: ``, query: ``,
imageUrl: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png", imageUrl: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png",
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment