liyongli il y a 1 an
Parent
commit
2fd02c2268
1 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 7 4
      pages/us/index.js

+ 7 - 4
pages/us/index.js

@@ -13,7 +13,7 @@ Page({
     baseUrl: __wxConfig.accountInfo.icon || ""
   },
 
-  toLogin(){
+  toLogin() {
     const pages = getCurrentPages();
     const thisPage = pages[pages.length - 1];
     wx.reLaunch({
@@ -24,8 +24,7 @@ Page({
   /**
    * 生命周期函数--监听页面加载
    */
-  onLoad(options) {
-  },
+  onLoad(options) {},
 
   /**
    * 生命周期函数--监听页面初次渲染完成
@@ -38,7 +37,11 @@ Page({
    * 生命周期函数--监听页面显示
    */
   onShow() {
-
+    this.setData({
+      userUrl: wx.getStorageSync('userUrl') || '',
+      phone: wx.getStorageSync('phone') || '',
+      userGroup: wx.getStorageSync('userGroup') || '',
+    })
   },
 
   /**