feat: 增加店长审核模式与门店经营有效期

This commit is contained in:
2026-10-26 21:12:50 +08:00
parent 0151367333
commit fd9ff73c00
33 changed files with 855 additions and 39 deletions
@@ -14,7 +14,9 @@ Page({
timer: null,
smsExpanded: false,
unbindMode: false,
closureRequest: null
closureRequest: null,
businessExpireDateText: '',
businessExpiryStatusText: ''
},
onShow() { this.loadProfile(); this.loadClosureRequest() },
@@ -62,7 +64,13 @@ Page({
this.setData({ loading: true })
try {
const profile = await profileCache.getProfile(options)
this.setData({ profile, 'smsForm.phone': profile.phone || '' })
const businessExpireDateText = profile.shopBusinessExpireTime ? String(profile.shopBusinessExpireTime).slice(0, 10) : '未设置'
const businessExpiryStatusText = profile.shopBusinessExpired
? '已过期,暂不能新增预约'
: Number.isFinite(Number(profile.shopBusinessRemainingDays))
? `剩余 ${profile.shopBusinessRemainingDays} 天`
: '有效期未设置'
this.setData({ profile, businessExpireDateText, businessExpiryStatusText, 'smsForm.phone': profile.phone || '' })
const app = getApp()
const session = auth.getSession()
app.setSession({ ...session, userInfo: { ...(session.userInfo || {}), ...profile } })