From eee1a9d0eb0b0a32eaf5538bcc55471bb820afac Mon Sep 17 00:00:00 2001
From: zhouyuan777/zhouyuan777 <1069065057@qq.com>
Date: Mon, 9 May 2022 11:49:59 +0800
Subject: [PATCH] add
---
src/pages.json | 9 +
src/pages/Login/Register.vue | 16 +-
src/pages/Login/RemeberPW.vue | 20 +-
src/pages/PersonalCenter/PersonalCenter.vue | 9 +-
src/pages/PersonalCenter/ReEditSingleInfo.vue | 3 +-
src/pages/PersonalCenter/changePasw.vue | 174 ++++++++++++++++++
src/pages/improveData/improveData.vue | 20 +-
src/pages/literFamily/ActJianDetail.vue | 1 +
src/pages/literFamily/literFamily.vue | 5 +-
9 files changed, 232 insertions(+), 25 deletions(-)
create mode 100644 src/pages/PersonalCenter/changePasw.vue
diff --git a/src/pages.json b/src/pages.json
index fdae5b0..91226f1 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -428,6 +428,15 @@
}
}
+ ,{
+ "path" : "pages/PersonalCenter/changePasw",
+ "style" :
+ {
+ "navigationBarTitleText": "修改密码",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black", //导航栏标题颜色及状态栏前景颜色,仅支持 black/white
diff --git a/src/pages/Login/Register.vue b/src/pages/Login/Register.vue
index 4cace7f..ae5d824 100644
--- a/src/pages/Login/Register.vue
+++ b/src/pages/Login/Register.vue
@@ -69,19 +69,19 @@
'pasw': [{
required: true,
message: '请填写密码',
- trigger: ['blur']
+ trigger: ['blur','change']
}, {
- min: 8,
- max: 30,
- message: '密码长度应大于等于8个字符小于30个字符!',
- trigger: "blur"
+ min: 6,
+ max: 20,
+ message: '密码长度应大于等于6个字符小于20个字符!',
+ trigger: ['blur','change']
}, {
- trigger: ['blur'],
+ trigger: ['blur','change'],
validator: (rule, value, callback) => {
var passwordreg =
- /^(?!([a-zA-Z]+|[a-z\d]+|[a-z~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+|[A-Z\d]+|[A-Z~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+|[\d~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+)$)[a-zA-Z\d~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+$/;
+ /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{6,20}$/;
if (!passwordreg.test(value)) {
- callback(new Error('密码必须由大写字母、小写字母、数字、特殊符号中的2种及以上类型组成!'))
+ callback(new Error('密码包含 数字,英文,字符中的两种以上'))
} else {
callback()
}
diff --git a/src/pages/Login/RemeberPW.vue b/src/pages/Login/RemeberPW.vue
index 312364a..4c29088 100644
--- a/src/pages/Login/RemeberPW.vue
+++ b/src/pages/Login/RemeberPW.vue
@@ -69,24 +69,24 @@
'pasw': [{
required: true,
message: '请填写密码',
- trigger: ['blur']
+ trigger: ['blur','change']
}, {
- min: 8,
- max: 30,
- message: '密码长度应大于等于8个字符小于30个字符!',
- trigger: "blur"
+ min: 6,
+ max: 20,
+ message: '密码长度应大于等于6个字符小于20个字符!',
+ trigger: ['blur','change']
}, {
- trigger: ['blur'],
+ trigger: ['blur','change'],
validator: (rule, value, callback) => {
var passwordreg =
- /^(?!([a-zA-Z]+|[a-z\d]+|[a-z~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+|[A-Z\d]+|[A-Z~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+|[\d~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+)$)[a-zA-Z\d~`@#\$%\^&\*\(\)_\-\+=\{\[\}\]\|\\:;\"\'<,>\.\?\/\!]+$/;
+ /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{6,20}$/;
if (!passwordreg.test(value)) {
- callback(new Error('密码必须由大写字母、小写字母、数字、特殊符号中的2种及以上类型组成!'))
+ callback(new Error('密码包含 数字,英文,字符中的两种以上'))
} else {
callback()
}
}
-
+
}],
'repasw': [{
required: true,
@@ -153,6 +153,6 @@
diff --git a/src/pages/PersonalCenter/PersonalCenter.vue b/src/pages/PersonalCenter/PersonalCenter.vue
index df88e6c..98fe78e 100644
--- a/src/pages/PersonalCenter/PersonalCenter.vue
+++ b/src/pages/PersonalCenter/PersonalCenter.vue
@@ -72,7 +72,7 @@
-->
-
+
密码
{{userInfoObj.pasw}}
@@ -284,7 +284,8 @@
this.http.request('/user/userInfo', {}, "GET").then((res) => {
console.log("res", res.data);
this.userInfoObj = res.data
- this.imgUrl=baseurl+JSON.parse(this.userInfoObj.images)[0]
+ // this.imgUrl=baseurl+JSON.parse(this.userInfoObj.images)[0]
+ this.imgUrl= JSON.parse(this.userInfoObj.images)[0]
}).catch((error) => {
uni.showToast({
@@ -292,6 +293,10 @@
})
})
+ },goChangePasw(){
+ uni.navigateTo({
+ url:'/pages/PersonalCenter/changePasw'
+ })
}
},
onReady() {
diff --git a/src/pages/PersonalCenter/ReEditSingleInfo.vue b/src/pages/PersonalCenter/ReEditSingleInfo.vue
index 6257dd0..55745f8 100644
--- a/src/pages/PersonalCenter/ReEditSingleInfo.vue
+++ b/src/pages/PersonalCenter/ReEditSingleInfo.vue
@@ -196,7 +196,8 @@
},
timeMode: 'date', //时间选择器模式 date tiem
postFileList2: [], //用来上传的数组
- baseurl: http.config.baseUrl.replace('/h5/api', ''),
+ // baseurl: http.config.baseUrl.replace('/h5/api', ''),
+ baseurl:'',
fileList4: [], //头像上传
fileList1: [], //资质证 实景照
fileList2: [], //代表作照片
diff --git a/src/pages/PersonalCenter/changePasw.vue b/src/pages/PersonalCenter/changePasw.vue
new file mode 100644
index 0000000..42b1dd4
--- /dev/null
+++ b/src/pages/PersonalCenter/changePasw.vue
@@ -0,0 +1,174 @@
+
+
+
+
+ 修改密码
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/improveData/improveData.vue b/src/pages/improveData/improveData.vue
index 5a683b7..1dbb8aa 100644
--- a/src/pages/improveData/improveData.vue
+++ b/src/pages/improveData/improveData.vue
@@ -437,10 +437,26 @@
},
rules: {
'userInfo.pasw': [{
- type: 'string',
required: true,
- message: '密码不能为空',
+ message: '请填写密码',
trigger: ['blur','change']
+ }, {
+ min: 6,
+ max: 20,
+ message: '密码长度应大于等于6个字符小于20个字符!',
+ trigger: ['blur','change']
+ }, {
+ trigger: ['blur','change'],
+ validator: (rule, value, callback) => {
+ var passwordreg =
+ /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{6,20}$/;
+ if (!passwordreg.test(value)) {
+ callback(new Error('密码包含 数字,英文,字符中的两种以上'))
+ } else {
+ callback()
+ }
+ }
+
}],
'userInfo.serverInstrutor': [{
type: 'string',
diff --git a/src/pages/literFamily/ActJianDetail.vue b/src/pages/literFamily/ActJianDetail.vue
index 58db5e2..b48cc0f 100644
--- a/src/pages/literFamily/ActJianDetail.vue
+++ b/src/pages/literFamily/ActJianDetail.vue
@@ -109,6 +109,7 @@
if (res.code == 200) {
console.log(res.data)
this.actDetObj = res.data
+ // console.log("actObj");
// _this.load = false
}
}).catch(e => {
diff --git a/src/pages/literFamily/literFamily.vue b/src/pages/literFamily/literFamily.vue
index f0383eb..abbd380 100644
--- a/src/pages/literFamily/literFamily.vue
+++ b/src/pages/literFamily/literFamily.vue
@@ -75,8 +75,8 @@
-
-
+
+
@@ -131,6 +131,7 @@
if (res.code == 200) {
console.log(res.data)
this.jianAct = res.data.records
+// picture
_this.load = false
}