From 0bf163ccdb1f9b7a108d099edb4e5b285d9f4375 Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Wed, 21 Feb 2024 18:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E6=95=99=E7=BB=83=E9=A9=BE?= =?UTF-8?q?=E6=A0=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/utils.js | 12 +++- components/pozCard/pozCard.vue | 6 +- components/searchRow/searchRow.vue | 2 +- config/api.js | 13 +++- config/site.config.js | 2 +- package.json | 2 +- pages/carEntry/operaAppointment/comp/step1.vue | 1 - pages/indexEntry/enroll/registInfo/registInfo.vue | 4 +- .../enroll/uploadAvatar/uploadAvatar.vue | 74 +++------------------ pages/indexEntry/findCoach/comp/coachItem.vue | 33 ++++++--- pages/indexEntry/findCoach/findCoach.vue | 45 +++++-------- .../findShcool/coachComment/coachComment.vue | 24 ++++--- .../findShcool/coachComment/coachInfo.vue | 2 +- .../findShcool/shcoolDetail/comp/tab4.vue | 4 +- .../findShcool/shcoolDetail/shcoolDetail.vue | 5 +- pages/mineEntry/myEvaluate/comp/commentItem.vue | 10 +-- pages/mineEntry/myOrder/comp/opera.vue | 2 +- pages/mineEntry/myOrder/myOrder.vue | 19 ++---- pages/mineEntry/personaInfo/personaInfo.vue | 6 +- pages/mineEntry/refund/refund.vue | 1 + pages/tabbar/index/comp/coachItem.vue | 21 +++--- pages/tabbar/index/comp/schoolItem.vue | 13 ++-- pages/tabbar/index/index.vue | 40 +++++++---- pages/tabbar/learnCar/comp/subject0.vue | 5 +- pages/tabbar/learnCar/comp/topInfo.vue | 7 +- pages/tabbar/mine/index.scss | 4 +- pages/tabbar/mine/index.vue | 18 +++-- static/images/mineIcon/avatar.png | Bin 0 -> 12645 bytes 28 files changed, 187 insertions(+), 188 deletions(-) create mode 100644 static/images/mineIcon/avatar.png diff --git a/common/js/utils.js b/common/js/utils.js index 715f7ed..ef9ad33 100644 --- a/common/js/utils.js +++ b/common/js/utils.js @@ -124,7 +124,6 @@ const install = (Vue, vm) => { return } store.commit('updateNonPlatformStudent', false) - if( vm.vuex_userInfo.applyStep<2) { vm.$goPage('/pages/indexEntry/enroll/enroll') } @@ -134,6 +133,14 @@ const install = (Vue, vm) => { } } + let isImagePath = (path)=> { + // 定义常见的图片文件扩展名 + const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|svg)$/i; + + // 使用正则表达式进行匹配 + return imageExtensions.test(path); + } + @@ -147,7 +154,8 @@ const install = (Vue, vm) => { getDate, callPhone, truncateText, - clickSignUp + clickSignUp, + isImagePath } } diff --git a/components/pozCard/pozCard.vue b/components/pozCard/pozCard.vue index edad88a..ac9a15a 100644 --- a/components/pozCard/pozCard.vue +++ b/components/pozCard/pozCard.vue @@ -1,5 +1,5 @@