Files
soul-yongping/miniprogram/pages/about/about.js

50 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const app = getApp()
Page({
data: {
statusBarHeight: 44,
navBarHeight: 88,
authorInfo: {
name: '卡若',
description: '连续创业者,私域运营专家',
liveTime: '06:00-09:00',
platform: 'Soul派对房'
},
authorInitial: '卡',
stats: [
{ value: '55+', label: '真实案例', icon: '📖' },
{ value: '10000+', label: '派对房听众', icon: '👥' },
{ value: '15年', label: '创业经验', icon: '🏆' },
{ value: '3000万', label: '最高年流水', icon: '📈' }
],
milestones: [
{ year: '2007-2014', event: '游戏电竞创业历程,从魔兽世界代练起步' },
{ year: '2015', event: '转型电商,做天猫虚拟充值' },
{ year: '2016-2019', event: '深耕电商领域团队扩张到200人年流水3000万' },
{ year: '2019-2020', event: '公司变故,重整旗鼓' },
{ year: '2020-2025', event: '电竞、地摊、大健康、私域多领域探索' },
{ year: '2025.10.15', event: '在Soul派对房开启每日分享记录真实商业案例' }
]
},
onLoad() {
const statusBarHeight = app.globalData.statusBarHeight || 44
const navBarHeight = app.globalData.navBarHeight || (statusBarHeight + 44)
const authorInfo = this.data.authorInfo
const authorInitial = authorInfo.name ? authorInfo.name.charAt(0) : '卡'
this.setData({ statusBarHeight, navBarHeight, authorInitial })
},
goBack() {
wx.navigateBack({ fail: () => wx.switchTab({ url: '/pages/index/index' }) })
},
onJoinParty() {
wx.showToast({
title: '请关注小程序或联系客服加入派对群',
icon: 'none',
duration: 2500
})
}
})