完善功能
This commit is contained in:
@ -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' },
|
||||
]
|
||||
},
|
||||
|
||||
// 选择菜单-拨打客服电话
|
||||
|
||||
Reference in New Issue
Block a user