diff --git a/src/utils/global.js b/src/utils/global.js index c01d56bb..e93ad963 100644 --- a/src/utils/global.js +++ b/src/utils/global.js @@ -9,3 +9,7 @@ export default export const REGION = { YI_LONG_XIAN: '仪陇', } + +export const REGEXP = { + PASSWORD: /^(?=.*\d)(?=.*[a-zA-Z])(?=.*[~!@#$%^&*])[\da-zA-Z~!@#$%^&*]{8,}$/, +}; diff --git a/src/views/sunVillage_info/passWord.vue b/src/views/sunVillage_info/passWord.vue index a8ce0f94..bb9e30df 100644 --- a/src/views/sunVillage_info/passWord.vue +++ b/src/views/sunVillage_info/passWord.vue @@ -5,14 +5,14 @@
保存
- +
- + - + - +
@@ -27,11 +27,21 @@ @@ -176,7 +197,7 @@ left: 0PX; } /deep/ .van-field__error-message{ - display: none; + /*display: none;*/ } } diff --git a/src/views/yinnong/password.vue b/src/views/yinnong/password.vue index bf9875d6..289c2b56 100644 --- a/src/views/yinnong/password.vue +++ b/src/views/yinnong/password.vue @@ -6,7 +6,7 @@ @click-left="$router.back(-1)" /> - + - + - +