/**
 * Soul创业实验 - 关于作者页
 */
const app = getApp()

Page({
  data: {
    statusBarHeight: 44,
    author: {
      name: '卡若',
      avatar: 'K',
      title: 'Soul派对房主理人',
      bio: '每天早上6点到9点，在Soul派对房分享真实的创业故事。专注私域运营与项目变现，用"云阿米巴"模式帮助创业者构建可持续的商业体系。',
      stats: [
        { label: '派对房分享', value: '500+' },
        { label: '直播天数', value: '365+' },
        { label: '商业案例', value: '62+' }
      ],
      contact: {
        wechat: '28533368',
        phone: '15880802661'
      }
    }
  },

  onLoad() {
    this.setData({
      statusBarHeight: app.globalData.statusBarHeight
    })
  },

  // 复制微信号
  copyWechat() {
    wx.setClipboardData({
      data: this.data.author.contact.wechat,
      success: () => wx.showToast({ title: '微信号已复制', icon: 'success' })
    })
  },

  // 拨打电话
  callPhone() {
    wx.makePhoneCall({
      phoneNumber: this.data.author.contact.phone
    })
  },

  // 返回
  goBack() {
    wx.navigateBack()
  }
})
