Commit b266b6f8 authored by youjie's avatar youjie

no message

parent ae3fa07c
...@@ -214,6 +214,7 @@ ...@@ -214,6 +214,7 @@
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
msg: { msg: {
UnionId:'',
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
}, },
...@@ -307,6 +308,7 @@ ...@@ -307,6 +308,7 @@
}; };
}, },
onLoad(options) { onLoad(options) {
this.msg.UnionId = uni.getStorageSync('wxUserAuthInfo').unionid
// uni.setNavigationBarTitle({ // uni.setNavigationBarTitle({
// title: this.pageTitle // title: this.pageTitle
// }); // });
......
...@@ -226,6 +226,7 @@ ...@@ -226,6 +226,7 @@
proxy proxy
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
UnionId:'',
QRcodeImg:'', QRcodeImg:'',
showPopup:false, showPopup:false,
colors:['#9ADBC5','#87DDEA','#FE8D6F','#F986AA','#FDC453'], colors:['#9ADBC5','#87DDEA','#FE8D6F','#F986AA','#FDC453'],
...@@ -287,7 +288,9 @@ ...@@ -287,7 +288,9 @@
}, },
async getData() { async getData() {
uni.showLoading() uni.showLoading()
let res = await GetMyCenterInfo({}); let res = await GetMyCenterInfo({
UnionId: data.UnionId
});
if (res) { if (res) {
uni.hideLoading() uni.hideLoading()
data.pageData = res.Data; data.pageData = res.Data;
...@@ -325,6 +328,9 @@ ...@@ -325,6 +328,9 @@
...methods ...methods
}; };
}, },
onLoad(options) {
this.UnionId = uni.getStorageSync('wxUserAuthInfo').unionid
},
onShow() { onShow() {
if(uni.getStorageSync('userInfo') && !uni.getStorageSync('erpUserInfo')){ if(uni.getStorageSync('userInfo') && !uni.getStorageSync('erpUserInfo')){
uni.reLaunch({ uni.reLaunch({
......
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