From a14266bce84532f4445dfc1ddaa9a9a9c89ac839 Mon Sep 17 00:00:00 2001 From: ctw <> Date: Fri, 3 Jan 2025 16:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=BA=97=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 13 ++++++ src/pages/humanFace/apply.vue | 8 +--- src/pages/humanFace/list.vue | 2 +- src/pages/tabbar/shop.vue | 77 +++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 src/pages/tabbar/shop.vue diff --git a/src/pages.json b/src/pages.json index 974bde0..55154ef 100644 --- a/src/pages.json +++ b/src/pages.json @@ -16,6 +16,13 @@ "disableScroll": true } }, + { + "path": "pages/tabbar/shop", + "style": { + "navigationBarTitleText": "商店", + "disableScroll": true + } + }, { "path": "pages/tabbar/order", "style": { @@ -251,6 +258,12 @@ "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-select.png" }, + { + "pagePath": "pages/tabbar/shop", + "text": "商店", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home-select.png" + }, { "pagePath": "pages/tabbar/order", "text": "订单", diff --git a/src/pages/humanFace/apply.vue b/src/pages/humanFace/apply.vue index f19ae3f..421bf7b 100644 --- a/src/pages/humanFace/apply.vue +++ b/src/pages/humanFace/apply.vue @@ -4,7 +4,7 @@ import { onLoad, onShow } from "@dcloudio/uni-app"; import { isEmpty } from "radash"; import { hooks, router } from "@@/index"; -import { applyApi, faceApi } from "@@/api"; +import { faceApi } from "@@/api"; const uploadPhotoBaseUrl = import.meta.env.VITE_APP_DEV_SERVICE; const state = reactive({ @@ -17,11 +17,7 @@ const applyForm = reactive({ }); const uploadFileUrl = ref(""); const applyFormRules = reactive({ - faceImg: [ - { required: true, message: "请上传人脸图片" }, - { required: true, min: 1, message: "最少上传1张人脸图片" }, - { required: true, max: 10, message: "最多上传10张人脸图片" }, - ], + faceImg: [{ required: true, message: "请上传人脸图片" }], }); onLoad(async (options: any) => { const { type, id } = options; diff --git a/src/pages/humanFace/list.vue b/src/pages/humanFace/list.vue index 0e2bf35..5d0d08f 100644 --- a/src/pages/humanFace/list.vue +++ b/src/pages/humanFace/list.vue @@ -43,7 +43,7 @@ import { faceApi } from "@@/api"; const state = reactive({ pa: { - // status: data.tabs[0].id, + pagesize: 10, }, }); diff --git a/src/pages/tabbar/shop.vue b/src/pages/tabbar/shop.vue new file mode 100644 index 0000000..938247e --- /dev/null +++ b/src/pages/tabbar/shop.vue @@ -0,0 +1,77 @@ + + +