完善功能

This commit is contained in:
wangxiaowei
2026-04-13 14:17:04 +08:00
parent 6262eb10a2
commit ee209bdb7b
10 changed files with 212 additions and 31 deletions

View File

@ -268,7 +268,7 @@
import { toast } from '@/utils/toast'
import { router } from '@/utils/tools'
import { useUserStore } from '@/store'
import { getUserInfo, getMyCoupon, claimMyCoupon, getUserMember } from '@/api/user'
import { getUserInfo, getMyCoupon, claimMyCoupon, getUserMember, getConfig } from '@/api/user'
import type { IUserResult } from '@/api/types/user'
const OSS = inject('OSS')
@ -394,6 +394,14 @@
getUserMember().then(res => {
expireTime.value = res?.data?.expiration_time
})
// 获取配置项
getConfig().then(res => {
const serviceMobile = res.service_telephone
if (serviceMobile) {
sheetMenu.value = [{ name: serviceMobile }]
}
})
},
/**
@ -424,9 +432,6 @@
// 点击显示客服电话
handleShowService: () => {
showServiceMobile.value = true
sheetMenu.value = [
{ name: '13000000000' },
]
},
// 选择菜单-拨打客服电话