Commit f7d8d9b3 authored by youjie's avatar youjie

no message

parent 285baaaf
......@@ -77,7 +77,7 @@
getWeChatOpenId,getLoginAccounts
} from "../../api/index.js";
import {
loginByUnionId,SetFriend
loginByUnionId,SetFriend,GetUserInfoByUnionId
} from "../../api/erp.js";
export default {
components: {
......@@ -89,10 +89,6 @@
proxy
} = getCurrentInstance();
let data = reactive({
obj: {
Name: '',
Photo: '',
},
nickName:'',
AccountName:'',
OldUnionId:'',
......@@ -212,10 +208,16 @@
},
async getData() {
uni.showLoading()
let res = await GetFriend(data.msg);
if (res) {
let res = await GetUserInfoByUnionId(data.msg);
if (res.Code==1) {
uni.hideLoading()
data.nickName = res.Data.WeChatName
}else{
uni.hideLoading()
uni.showToast({
title: res.Message,
icon: "none",
});
}
},
};
......
......@@ -339,7 +339,7 @@
onShareAppMessage() {
return {
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: ``,
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