ソースを参照

增加修改密码

miaofuhao 1 年間 前
コミット
ec8c90d22e
共有29 個のファイルを変更した199 個の追加63 個の削除を含む
  1. 4 3
      manifest.json
  2. 7 0
      pages.json
  3. 128 0
      pages/personal/editPass/editPass.vue
  4. 1 1
      pages/personal/personal.vue
  5. BIN
      unpackage/cache/apk/__UNI__7FE043F_cm.apk
  6. 1 1
      unpackage/cache/apk/apkurl
  7. 1 1
      unpackage/cache/apk/cmManifestCache.json
  8. 1 1
      unpackage/cache/certdata
  9. 1 1
      unpackage/cache/wgt/__UNI__7FE043F/__uniappchooselocation.js
  10. 1 1
      unpackage/cache/wgt/__UNI__7FE043F/__uniappquill.js
  11. 1 1
      unpackage/cache/wgt/__UNI__7FE043F/__uniappquillimageresize.js
  12. 2 2
      unpackage/cache/wgt/__UNI__7FE043F/app-config-service.js
  13. 18 18
      unpackage/cache/wgt/__UNI__7FE043F/app-service.js
  14. 1 1
      unpackage/cache/wgt/__UNI__7FE043F/app-view.js
  15. 0 0
      unpackage/cache/wgt/__UNI__7FE043F/assets/uniicons.2579c7da.ttf
  16. 1 1
      unpackage/cache/wgt/__UNI__7FE043F/manifest.json
  17. 1 1
      unpackage/cache/wgt/__UNI__7FE043F/view.css
  18. 2 2
      unpackage/cache/wgt/__UNI__7FE043F/view.umd.min.js
  19. 1 1
      unpackage/dist/build/app-plus/__uniappchooselocation.js
  20. 1 1
      unpackage/dist/build/app-plus/__uniappquill.js
  21. 1 1
      unpackage/dist/build/app-plus/__uniappquillimageresize.js
  22. 2 2
      unpackage/dist/build/app-plus/app-config-service.js
  23. 18 18
      unpackage/dist/build/app-plus/app-service.js
  24. 1 1
      unpackage/dist/build/app-plus/app-view.js
  25. 0 0
      unpackage/dist/build/app-plus/assets/uniicons.2579c7da.ttf
  26. 1 1
      unpackage/dist/build/app-plus/manifest.json
  27. 1 1
      unpackage/dist/build/app-plus/view.css
  28. 2 2
      unpackage/dist/build/app-plus/view.umd.min.js
  29. BIN
      unpackage/release/apk/__UNI__7FE043F__20241018160939.apk

+ 4 - 3
manifest.json

@@ -2,8 +2,8 @@
2 2
     "name" : "人医服务",
3 3
     "appid" : "__UNI__7FE043F",
4 4
     "description" : "",
5
-    "versionName" : "1.0.0",
6
-    "versionCode" : "100",
5
+    "versionName" : "1.0.1",
6
+    "versionCode" : 101,
7 7
     "transformPx" : false,
8 8
     /* 5+App特有相关 */
9 9
     "app-plus" : {
@@ -38,7 +38,8 @@
38 38
                     "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
39 39
                     "<uses-feature android:name=\"android.hardware.camera\"/>",
40 40
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
41
-                ]
41
+                ],
42
+                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
42 43
             },
43 44
             /* ios打包配置 */
44 45
             "ios" : {

+ 7 - 0
pages.json

@@ -58,6 +58,13 @@
58 58
 				"navigationBarTitleText" : "工单详情",
59 59
 				"enablePullDownRefresh" : false
60 60
 			}
61
+		},
62
+		{
63
+			"path" : "pages/personal/editPass/editPass",
64
+			"style" : 
65
+			{
66
+				"navigationBarTitleText" : "修改密码"
67
+			}
61 68
 		}
62 69
 		
63 70
 	],

+ 128 - 0
pages/personal/editPass/editPass.vue

@@ -0,0 +1,128 @@
1
+<template>
2
+	<!-- <page-meta :root-font-size="getRootFontSize(1)"></page-meta> -->
3
+	<view id="wrap">
4
+		<view class="changeFont">
5
+			<view class="changeFont_left"><text style="color: #ff0000; ">*</text>原密码:</view>
6
+			<u--input v-model="oldpass" placeholder="原密码" type="password"/>
7
+		</view>
8
+		<view class="changeFont">
9
+			<view class="changeFont_left"><text style="color: #ff0000; ">*</text>新密码:</view>
10
+			<u--input v-model="newpass" placeholder="新密码" type="password"/>
11
+		</view>
12
+		<view class="changeFont">
13
+			<view class="changeFont_left"><text style="color: #ff0000; ">*</text>确认密码:</view>
14
+			<u--input v-model="confirmpass" placeholder="确认密码" type="password"/>
15
+		</view>
16
+		<view class="btnClass">
17
+			<wButton class="wbutton" text="保存" :rotate="isRotate" @click="saveFont"></wButton>
18
+		</view>
19
+
20
+	</view>
21
+</template>
22
+
23
+<script>
24
+	import wButton from '@/components/watch-login/watch-button.vue' //button
25
+	export default {
26
+		data() {
27
+			return {
28
+				isRotate: false, //是否加载旋转
29
+				oldpass:'',
30
+				newpass:'',
31
+				confirmpass:''
32
+			};
33
+		},
34
+		components: {
35
+			wButton,
36
+		},
37
+		onLoad() {},
38
+		methods: {
39
+			change(e) {
40
+				console.log("e:", e);
41
+			},
42
+			saveFont() {
43
+				// const reg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$/;
44
+				const reg = /\S{6,}/;
45
+				if(!this.oldpass){
46
+					this.$mHelper.toast("原密码不能为空");
47
+					return
48
+				}
49
+				if(!this.newpass){
50
+					this.$mHelper.toast("新密码不能为空");
51
+					return
52
+				}
53
+				if(this.newpass == this.oldpass){
54
+					this.$mHelper.toast("新密码不能和原密码相同!");
55
+					return
56
+				}
57
+				if(!this.confirmpass){
58
+					this.$mHelper.toast("确认密码不能为空");
59
+					return
60
+				}
61
+				if(this.confirmpass != this.newpass){
62
+					this.$mHelper.toast("两次密码不一致,请重新输入");
63
+					return
64
+				}
65
+				if(!reg.test(this.newpass) || !reg.test(this.confirmpass)){
66
+					this.$mHelper.toast("密码不符合规范,小于六位");
67
+					return
68
+				}
69
+				// /system/user/UpdatePwd?oldPwd=123456&Pwd=123456
70
+				const params={
71
+					oldPwd: this.oldpass,
72
+					Pwd: this.confirmpass,
73
+				}
74
+				this.$http.put("/system/user/UpdatePwd?oldPwd="+this.oldpass+'&Pwd='+this.confirmpass).then((response) => {
75
+					if (response.state == "success") {
76
+						uni.showModal({
77
+							title: '重置密码成功!',
78
+							content: '退出到登录页面',
79
+							showCancel:false,
80
+							success: (res) => {
81
+								if (res.confirm) {
82
+									uni.setStorageSync('Username', '');
83
+									uni.setStorageSync('Password', '');
84
+									uni.setStorageSync('token', '');
85
+									uni.setStorageSync('user', '');
86
+									uni.reLaunch({
87
+										url: '/pages/login/login'
88
+									});
89
+								} else if (res.cancel) {
90
+									console.log('用户点击取消');
91
+								}
92
+							}
93
+						});
94
+					}else{
95
+						this.$mHelper.toast(response.message);
96
+					}
97
+				})
98
+			},
99
+		}
100
+	}
101
+</script>
102
+
103
+<style scoped>
104
+	#wrap {
105
+		background: #fff;
106
+		padding: 15px;
107
+	}
108
+
109
+	.btnClass {
110
+		margin-top: 30px;
111
+	}
112
+
113
+	.fontContent {
114
+		margin-top: 30px;
115
+	}
116
+
117
+	.changeFont_left {
118
+		width: 25%;
119
+	}
120
+
121
+	.changeFont {
122
+		margin-top: 30px;
123
+		display: flex;
124
+		background: #fff;
125
+		line-height: 36px;
126
+
127
+	}
128
+</style>

+ 1 - 1
pages/personal/personal.vue

@@ -146,7 +146,7 @@
146 146
 			},
147 147
 			trunFontSizeSettingPass(){
148 148
 				uni.navigateTo({
149
-					url: "/pages/setting/fontSizeSettingPass/fontSizeSettingPass"
149
+					url: "/pages/personal/editPass/editPass"
150 150
 				})
151 151
 			},
152 152
 			touchHandle(e) {

BIN
unpackage/cache/apk/__UNI__7FE043F_cm.apk


+ 1 - 1
unpackage/cache/apk/apkurl

@@ -1 +1 @@
1
-https://app.liuyingyong.cn/build/download/f0c6d400-8c3b-11ef-a859-c7be0c1f5dd6
1
+https://app.liuyingyong.cn/build/download/524dd120-8d28-11ef-8a71-a1a796aa50f4

File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/apk/cmManifestCache.json


+ 1 - 1
unpackage/cache/certdata

@@ -1,3 +1,3 @@
1
-andrCertfile=/Users/weieryang/work/加一/codes/mt-visit-kf-app/cert/24edc4b34d90df1258ee04f6796e67cf.keystore
1
+andrCertfile=E:/2024/uniapp/mt-visit-kf-app/mt-visit-kf-app/cert/24edc4b34d90df1258ee04f6796e67cf.keystore
2 2
 andrCertAlias=__uni__7fe043f
3 3
 andrCertPass=kKagGpNDA/gvqgxbw8GZZw==

File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__7FE043F/__uniappchooselocation.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__7FE043F/__uniappquill.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__7FE043F/__uniappquillimageresize.js


File diff suppressed because it is too large
+ 2 - 2
unpackage/cache/wgt/__UNI__7FE043F/app-config-service.js


File diff suppressed because it is too large
+ 18 - 18
unpackage/cache/wgt/__UNI__7FE043F/app-service.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__7FE043F/app-view.js


unpackage/dist/build/app-plus/uni_modules/uni-icons/components/uni-icons/uniicons.ttf → unpackage/cache/wgt/__UNI__7FE043F/assets/uniicons.2579c7da.ttf


File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__7FE043F/manifest.json


File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__7FE043F/view.css


File diff suppressed because it is too large
+ 2 - 2
unpackage/cache/wgt/__UNI__7FE043F/view.umd.min.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/__uniappchooselocation.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/__uniappquill.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/__uniappquillimageresize.js


File diff suppressed because it is too large
+ 2 - 2
unpackage/dist/build/app-plus/app-config-service.js


File diff suppressed because it is too large
+ 18 - 18
unpackage/dist/build/app-plus/app-service.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/app-view.js


unpackage/cache/wgt/__UNI__7FE043F/uni_modules/uni-icons/components/uni-icons/uniicons.ttf → unpackage/dist/build/app-plus/assets/uniicons.2579c7da.ttf


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/manifest.json


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/view.css


File diff suppressed because it is too large
+ 2 - 2
unpackage/dist/build/app-plus/view.umd.min.js


BIN
unpackage/release/apk/__UNI__7FE043F__20241018160939.apk