Commit 401bb6d1 authored by youjie's avatar youjie

no message

parent 2cd4329d
...@@ -101,6 +101,9 @@ ...@@ -101,6 +101,9 @@
OldUnionId:'', OldUnionId:'',
NewUnionId:'' NewUnionId:''
}, },
msg: {
Unionid:''
}
}); });
const pages = getCurrentPages() // 获取栈实例 const pages = getCurrentPages() // 获取栈实例
const currentRoute = pages[pages.length - 1].route; // 获取当前页面路由 const currentRoute = pages[pages.length - 1].route; // 获取当前页面路由
...@@ -207,7 +210,14 @@ ...@@ -207,7 +210,14 @@
data.loading = true data.loading = true
}) })
}, },
async getData() {
uni.showLoading()
let res = await GetFriend(data.msg);
if (res) {
uni.hideLoading()
data.nickName = res.Data.WeChatName
}
},
}; };
let that = methods; let that = methods;
onMounted(() => { onMounted(() => {
...@@ -221,10 +231,10 @@ ...@@ -221,10 +231,10 @@
onLoad(options) { onLoad(options) {
this.OldUnionId = options.unionid this.OldUnionId = options.unionid
this.AccountName = options.AccountName this.AccountName = options.AccountName
this.nickName = options.nickName this.msg.Unionid = this.OldUnionId
}, },
onShow(){ onShow(){
this.getData()
}, },
onReachBottom() { onReachBottom() {
......
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
async QRcode(){ async QRcode(){
uni.showLoading() uni.showLoading()
let msg = { let msg = {
url: `/pages/FriendsAndRelatives/addFriendsAndRelatives?unionid=${data.wxUserAuthInfo.unionid}&AccountName=${data.erpUserInfo.AccountName}&nickName=${data.userWxInfo.nickName}`,//"www.baidu.com", url: `/pages/FriendsAndRelatives/addFriendsAndRelatives?unionid=${encodeURIComponent(data.wxUserAuthInfo.unionid)}&AccountName=${encodeURIComponent(data.erpUserInfo.AccountName)}`,//"www.baidu.com",
width: 200 width: 200
} }
let res = await CreateFriendQrCode(msg); let res = await CreateFriendQrCode(msg);
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
onShareAppMessage() { onShareAppMessage() {
return { return {
title: "邀请好友", title: "邀请好友",
query: `/pages/FriendsAndRelatives/addFriendsAndRelatives?unionid=${this.wxUserAuthInfo.unionid}&AccountName=${this.erpUserInfo.AccountName}&nickName=${this.userWxInfo.nickName}`, query: `/pages/FriendsAndRelatives/addFriendsAndRelatives?unionid=${this.wxUserAuthInfo.unionid}&AccountName=${this.erpUserInfo.AccountName}`,
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