From df16ec5855e2c139848e92d314ed1e7e2f40522b Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 17 Feb 2025 10:52:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(goods):=20=E6=B7=BB=E5=8A=A0=20fddCheck=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B9=B6=E4=BC=98=E5=8C=96=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E7=BB=84=E4=BB=B6-=20=E5=9C=A8=20goods=20API=20=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20fddCheck=20=E6=8E=A5=E5=8F=A3=20-=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20waterfallFlow=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20-=20=E4=BF=AE=E6=94=B9=20login=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=AD=20pane=20=E5=88=87=E6=8D=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91=20-=20=E9=87=8D=E6=9E=84=20profile=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96=E5=92=8C=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91=20-=20=E6=9B=B4=E6=96=B0=20realAuth?= =?UTF-8?q?=20=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91=EF=BC=8C=E9=9B=86?= =?UTF-8?q?=E6=88=90=20fddCheck=E6=8E=A5=E5=8F=A3=20-=20=E5=9C=A8=20i18n?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E4=B8=AD=E6=B7=BB=E5=8A=A0=20profile=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9B=B8=E5=85=B3=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/goods/index.js | 8 ++++++++ app/components/waterfallFlow/index.vue | 1 - app/layouts/README.md | 15 --------------- app/pages/login/index.vue | 4 ++-- app/pages/profile/index.vue | 9 ++------- app/pages/realAuth/index.vue | 8 +++++++- i18n/locales/zh-CN.json | 4 +++- 7 files changed, 22 insertions(+), 27 deletions(-) delete mode 100644 app/layouts/README.md diff --git a/app/api/goods/index.js b/app/api/goods/index.js index fb25bf1..3e2a5e7 100644 --- a/app/api/goods/index.js +++ b/app/api/goods/index.js @@ -61,4 +61,12 @@ export async function signOffline(data) { method: 'POST', data }) +} +export async function fddCheck(data) { + + return await request( { + url:'/api/v1/m/user/fdd/check', + method: 'POST', + data + }) } \ No newline at end of file diff --git a/app/components/waterfallFlow/index.vue b/app/components/waterfallFlow/index.vue index cfc506c..a3c5b43 100644 --- a/app/components/waterfallFlow/index.vue +++ b/app/components/waterfallFlow/index.vue @@ -69,5 +69,4 @@ onMounted(() => { break-inside: avoid; } -/* 默认样式可以移到使用组件时自定义 */ \ No newline at end of file diff --git a/app/layouts/README.md b/app/layouts/README.md deleted file mode 100644 index ff0c124..0000000 --- a/app/layouts/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Layouts - -Vue components in this dir are used as layouts. - -By default, `default.vue` will be used unless an alternative is specified in the route meta. - -```vue - -``` - -Learn more on diff --git a/app/pages/login/index.vue b/app/pages/login/index.vue index bda8b11..3ef7bf1 100644 --- a/app/pages/login/index.vue +++ b/app/pages/login/index.vue @@ -142,7 +142,7 @@ const goLogin =async () => { -
+
@@ -170,7 +170,7 @@ const goLogin =async () => {
-
+
{{ $t('login.hasSendTo') }}
+{{ selectedZone }} {{ phoneNum }}
diff --git a/app/pages/profile/index.vue b/app/pages/profile/index.vue index 592eada..5bdbdcb 100644 --- a/app/pages/profile/index.vue +++ b/app/pages/profile/index.vue @@ -17,7 +17,6 @@ const localState = ref({ refreshing: false }) -// 简化分组排序函数 const groupByDate = (data) => { if (!Array.isArray(data)) return [] @@ -31,7 +30,6 @@ const groupByDate = (data) => { }, {})).sort((a, b) => new Date(b.userCreatedAt) - new Date(a.userCreatedAt)) } -// 获取数据 const fetchData = async () => { try { const res = await userArtworks({}) @@ -43,18 +41,15 @@ const fetchData = async () => { } } -// 刷新处理 const onRefresh = async () => { localState.value.refreshing = true await fetchData() localState.value.refreshing = false } -// 导航函数 const goPay = () => router.push('/signature/protocol') const goDetail = (item) => router.push({ path: '/artDetail', query: { uuid: item.uuid } }) -// 初始化 fetchData() @@ -88,8 +83,8 @@ fetchData()
-
您暂无拍品
-
快去竞拍吧
+
{{$t('profile.text1')}}
+
{{$t('profile.text2')}}
diff --git a/app/pages/realAuth/index.vue b/app/pages/realAuth/index.vue index f1118e1..24be68f 100644 --- a/app/pages/realAuth/index.vue +++ b/app/pages/realAuth/index.vue @@ -7,6 +7,7 @@ import detail from './components/detail.vue' import {authStore} from "@/stores/auth/index.js"; import XVanDate from '@/components/x-van-date/index.vue' import XVanSelect from '@/components/x-van-select/index.vue' +import {fddCheck} from "~/api/goods/index.js"; const router = useRouter(); const { locale } = useI18n() const {userInfo}= authStore() @@ -43,6 +44,7 @@ function isFormComplete(obj) { } return true; } + const statusCode=ref(0) const confirm=async ()=>{ const thatForm=active.value===0?form1.value:form.value @@ -52,7 +54,11 @@ const confirm=async ()=>{ if (res.status===0){ userInfo.value=res.data message.success(t('realAuth.success_mess')) - statusCode.value=1 + /*statusCode.value=1*/ + const res1=await fddCheck() + if (res1.status===0){ + console.log('res1',res1) + } } }else { message.error(t('realAuth.cnTabDesc')) diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 0e808ea..758a8f2 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -34,7 +34,9 @@ }, "profile": { "name": "姓名", - "phone": "手机号" + "phone": "手机号", + "text1": "您暂无拍品", + "text2": "快去竞拍吧" }, "error_page": { "back_btn": "返回",