功能:完善 YumiNail 全栈修复与打包
This commit is contained in:
@@ -290,22 +290,10 @@
|
||||
|
||||
<div class="social-login">
|
||||
<div class="divider">
|
||||
<span>其他登录方式</span>
|
||||
<span>微信手机号登录</span>
|
||||
</div>
|
||||
<div class="social-hint">
|
||||
网页端暂未开放第三方登录,微信手机号一键登录仅支持小程序。
|
||||
</div>
|
||||
<div class="social-buttons">
|
||||
<a-button shape="circle" size="large" class="social-circle-btn" @click="handleWeChatLogin">
|
||||
<WechatOutlined />
|
||||
</a-button>
|
||||
<a-button shape="circle" size="large" class="social-circle-btn" @click="handleQQLogin">
|
||||
<QqOutlined />
|
||||
</a-button>
|
||||
</div>
|
||||
<div class="social-button-captions">
|
||||
<span>微信登录(仅小程序)</span>
|
||||
<span>QQ 登录(暂未开放)</span>
|
||||
微信手机号授权登录请在小程序中使用;网页端可使用账号密码或验证码登录。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -398,7 +386,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { InfoCircleOutlined, LockOutlined, QqOutlined, UserOutlined, WechatOutlined } from '@ant-design/icons-vue'
|
||||
import { InfoCircleOutlined, LockOutlined, UserOutlined } from '@ant-design/icons-vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import type { Rule } from 'ant-design-vue/es/form'
|
||||
import { authApi } from '@/api/auth'
|
||||
@@ -454,7 +442,7 @@ let loginPhoneShopCheckTimer: number | undefined
|
||||
|
||||
const phoneRegex = /^1[3-9]\d{9}$/
|
||||
const verificationCodeRegex = /^\d{6}$/
|
||||
const loginShopUnsupportedMessage = '当前环境暂未开放登录前门店预加载,可直接登录;如账号绑定多家门店,登录后可在个人中心切换当前门店。'
|
||||
const loginShopUnsupportedMessage = '可直接登录;如账号绑定多家门店,登录后可在个人中心切换当前门店。'
|
||||
const loginShopPlaceholder = computed(() => {
|
||||
if (allowLoginShopless.value) {
|
||||
return '当前暂无启用店铺,可直接登录'
|
||||
@@ -926,14 +914,6 @@ const handleResetPassword = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const handleWeChatLogin = () => {
|
||||
message.info('网页端暂未开放微信登录,请使用账号密码、验证码登录,或前往小程序使用微信手机号一键登录')
|
||||
}
|
||||
|
||||
const handleQQLogin = () => {
|
||||
message.info('网页端暂未开放 QQ 登录,敬请期待')
|
||||
}
|
||||
|
||||
const handleRegisterAccountBlur = async () => {
|
||||
if (activeTab.value !== 'register' || !formData.account.trim()) {
|
||||
registerAccountStatus.value = null
|
||||
|
||||
@@ -193,10 +193,8 @@
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {
|
||||
BellOutlined,
|
||||
CreditCardOutlined,
|
||||
HeartOutlined,
|
||||
QuestionCircleOutlined,
|
||||
RightOutlined,
|
||||
SettingOutlined,
|
||||
ShopOutlined,
|
||||
@@ -307,46 +305,6 @@ const shopSwitchTip = computed(() => {
|
||||
return '当前暂无可用门店'
|
||||
})
|
||||
|
||||
const menuItems = [
|
||||
{
|
||||
key: 'orders',
|
||||
title: '我的订单',
|
||||
desc: '查看预约状态、取消订单',
|
||||
icon: ShoppingOutlined,
|
||||
bgColor: '#e6f7ff'
|
||||
},
|
||||
{
|
||||
key: 'wishlist',
|
||||
title: '我的收藏',
|
||||
desc: '快速回到喜欢的作品',
|
||||
icon: HeartOutlined,
|
||||
bgColor: '#fff1f0'
|
||||
},
|
||||
{
|
||||
key: 'coupons',
|
||||
title: '我的优惠券',
|
||||
desc: '查看可用优惠和 VIP 折扣',
|
||||
icon: CreditCardOutlined,
|
||||
bgColor: '#fff7e6'
|
||||
},
|
||||
{
|
||||
key: 'notifications',
|
||||
title: '消息通知',
|
||||
desc: '消息中心功能开发中',
|
||||
icon: BellOutlined,
|
||||
bgColor: '#f9f0ff'
|
||||
},
|
||||
{
|
||||
key: 'help',
|
||||
title: '帮助与支持',
|
||||
desc: '常见问题功能开发中',
|
||||
icon: QuestionCircleOutlined,
|
||||
bgColor: '#eef9ff'
|
||||
}
|
||||
]
|
||||
|
||||
void menuItems
|
||||
|
||||
const coreMenuItems = [
|
||||
{
|
||||
key: 'orders',
|
||||
@@ -595,10 +553,6 @@ const handleMenuClick = (key: string) => {
|
||||
router.push('/coupons')
|
||||
} else if (key === 'settings') {
|
||||
router.push('/settings')
|
||||
} else if (key === 'notifications') {
|
||||
message.info('消息通知功能开发中')
|
||||
} else if (key === 'help') {
|
||||
message.info('帮助中心功能开发中')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,23 +49,13 @@
|
||||
import { ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {
|
||||
BellOutlined,
|
||||
ClearOutlined,
|
||||
InfoCircleOutlined,
|
||||
LeftOutlined,
|
||||
LockOutlined,
|
||||
MessageOutlined,
|
||||
QuestionCircleOutlined,
|
||||
RightOutlined,
|
||||
SafetyOutlined,
|
||||
SoundOutlined
|
||||
} from '@ant-design/icons-vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const comingSoonDesc = '暂未开放,敬请期待'
|
||||
|
||||
const settingsSections = ref([
|
||||
{
|
||||
type: 'title',
|
||||
@@ -74,69 +64,12 @@ const settingsSections = ref([
|
||||
{
|
||||
key: 'account',
|
||||
title: '账号设置',
|
||||
desc: '修改密码、绑定手机号、管理账号安全项',
|
||||
desc: '管理手机号、登录密码和账号安全',
|
||||
icon: LockOutlined,
|
||||
bgColor: '#e6f7ff'
|
||||
},
|
||||
{
|
||||
type: 'title',
|
||||
title: '更多功能'
|
||||
},
|
||||
{
|
||||
key: 'notifications',
|
||||
title: '消息通知',
|
||||
desc: comingSoonDesc,
|
||||
icon: BellOutlined,
|
||||
bgColor: '#f6ffed'
|
||||
},
|
||||
{
|
||||
key: 'message-push',
|
||||
title: '消息推送',
|
||||
desc: comingSoonDesc,
|
||||
icon: MessageOutlined,
|
||||
bgColor: '#fffbe6'
|
||||
},
|
||||
{
|
||||
key: 'theme',
|
||||
title: '主题设置',
|
||||
desc: comingSoonDesc,
|
||||
icon: SoundOutlined,
|
||||
bgColor: '#f9f0ff'
|
||||
},
|
||||
{
|
||||
key: 'clear-cache',
|
||||
title: '缓存清理',
|
||||
desc: comingSoonDesc,
|
||||
icon: ClearOutlined,
|
||||
bgColor: '#fff2e8'
|
||||
},
|
||||
{
|
||||
key: 'privacy',
|
||||
title: '隐私政策',
|
||||
desc: comingSoonDesc,
|
||||
icon: SafetyOutlined,
|
||||
bgColor: '#e6f7ff'
|
||||
},
|
||||
{
|
||||
key: 'about',
|
||||
title: '关于我们',
|
||||
desc: comingSoonDesc,
|
||||
icon: InfoCircleOutlined,
|
||||
bgColor: '#f6ffed'
|
||||
},
|
||||
{
|
||||
key: 'help',
|
||||
title: '帮助中心',
|
||||
desc: comingSoonDesc,
|
||||
icon: QuestionCircleOutlined,
|
||||
bgColor: '#eef9ff'
|
||||
}
|
||||
])
|
||||
|
||||
const showComingSoon = () => {
|
||||
message.info('该功能暂未开放,敬请期待')
|
||||
}
|
||||
|
||||
const handleBackClick = () => {
|
||||
router.back()
|
||||
}
|
||||
@@ -146,8 +79,6 @@ const handleSettingClick = (key: string) => {
|
||||
router.push('/settings/account')
|
||||
return
|
||||
}
|
||||
|
||||
showComingSoon()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ import { ref, onMounted, inject } from 'vue'
|
||||
import { ArrowLeft, Delete, StarFilled } from '@element-plus/icons-vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import 'element-plus/es/components/message/style/css'
|
||||
import { wishlistApi, type WishlistItem } from '@/api/wishlist'
|
||||
import { cartApi } from '@/api/cart'
|
||||
import { fileApi } from '@/api/file'
|
||||
|
||||
@@ -228,7 +228,7 @@ const loadLoginShops = async (account = formState.account) => {
|
||||
if (isLoginShopPrefetchUnsupported(error)) {
|
||||
applyLoginShopSelection({
|
||||
allowShoplessLogin: true,
|
||||
message: '当前环境暂未开放登录前店铺预加载,可直接登录。',
|
||||
message: '可直接登录;如账号绑定多家门店,登录后可在个人中心切换当前门店。',
|
||||
shops: []
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -153,7 +153,7 @@ const insightItems = computed(() => {
|
||||
if (stats.totalProducts === 0) {
|
||||
items.push({
|
||||
title: '还没有可售作品',
|
||||
description: '可以先补充几款基础作品,首页和前台作品页会更完整,也更方便测试完整下单流程。'
|
||||
description: '先补充基础作品,首页和作品页会更完整,顾客也能更顺畅地下单。'
|
||||
})
|
||||
} else {
|
||||
items.push({
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
|
||||
<AdminMobileFab
|
||||
:visible="isMobile && activeTab === 'permissions' && hasPermission('permission:create') && !permissionModalVisible"
|
||||
label="鏂板鏉冮檺"
|
||||
label="新增权限"
|
||||
@click="showAddPermissionModal"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<div class="admin-mobile-card__rows">
|
||||
<div class="admin-mobile-card__row">
|
||||
<span>预计时长</span>
|
||||
<strong>{{ item.approximateDuration || '--' }} 分钟</strong>
|
||||
<strong>{{ formatDuration(item.approximateDuration) }}</strong>
|
||||
</div>
|
||||
<div class="admin-mobile-card__row">
|
||||
<span>互动数据</span>
|
||||
@@ -550,6 +550,14 @@ const nextRequestToken = (key: keyof typeof requestTokens) => {
|
||||
|
||||
const isLatestRequestToken = (key: keyof typeof requestTokens, token: number) => requestTokens[key] === token
|
||||
|
||||
const formatDuration = (value?: string | number | null) => {
|
||||
if (value === undefined || value === null || value === '') {
|
||||
return '--'
|
||||
}
|
||||
const text = String(value).trim()
|
||||
return text.includes('分钟') ? text : `${text}分钟`
|
||||
}
|
||||
|
||||
const viewFormState = reactive({
|
||||
shopId: undefined,
|
||||
title: '',
|
||||
|
||||
@@ -338,7 +338,7 @@
|
||||
|
||||
<AdminMobileFab
|
||||
:visible="isMobile && hasPermission('shop:create') && !modalVisible && !viewModalVisible"
|
||||
label="鏂板搴楅摵"
|
||||
label="新增店铺"
|
||||
@click="showAddModal"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user