forked from gzzfw/frontEnd/gzDyh

xusd
2024-09-08 5424fb6cc7c907ec12025e96bb41146b28e5582c
gz-wxparty/pages/me/index.js
@@ -12,7 +12,11 @@
// 获取用户信息
function getUserInfoApi() {
   return $$.request({ url: 'paUser/personal', type: 'get', service: 'cust' });
  return $$.request({
    url: 'paUser/personal',
    type: 'get',
    service: 'cust'
  });
}
Page({
@@ -27,7 +31,9 @@
   // 点击完善资料
   handleGo() {
      let visible = this.data.userInfo.realStatus === '1';
      wx.navigateTo({ url: visible ? '../../pages/perfectInformation/index?type=improvedata' : '../../pages/perfectInformation/index' });
    wx.navigateTo({
      url: visible ? '../../pages/perfectInformation/index?type=improvedata' : '../../pages/perfectInformation/index'
    });
   },
   // 退出登录
@@ -52,11 +58,15 @@
      const res = await getUserInfoApi();
      $$.hideLoading();
      if (res.type) {
         this.setData({ userInfo: res.data });
      this.setData({
        userInfo: res.data
      });
      }
   },
   onLoad: function () {
  onLoad: function () {},
  onShow(options) {
      this.getUserInfo();
   },
});