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 @@