// pages/profile/user-info/user-info.ts
Page({
  data: {
    username: '管理员'
  },

  onLoad() {
    const username = wx.getStorageSync('username') || '管理员';
    this.setData({ username });
  },

  handleSave() {
    wx.showLoading({
      title: '保存中...',
      mask: true
    });

    setTimeout(() => {
      wx.hideLoading();
      wx.showToast({
        title: '保存成功',
        icon: 'success'
      });
    }, 1000);
  }
});
