Files
medical-mall/unpackage/cache/.app-android/sourcemap/pages/user/change-password.kt.map

1 line
3.8 KiB
Plaintext

{"version":3,"sources":["pages/user/change-password.uvue","pages/user/terms.uvue","uni_modules/ak-req/ak-req.uts"],"sourcesContent":["<template>\r\n <view class=\"page-container\">\r\n <view class=\"form-group\">\r\n <view class=\"input-item\">\r\n <text class=\"label\">旧密码</text>\r\n <input class=\"input\" type=\"password\" placeholder=\"请输入旧密码\" v-model=\"oldPassword\" />\r\n </view>\r\n <view class=\"input-item\">\r\n <text class=\"label\">新密码</text>\r\n <input class=\"input\" type=\"password\" placeholder=\"请输入新密码\" v-model=\"newPassword\" />\r\n </view>\r\n <view class=\"input-item\">\r\n <text class=\"label\">确认密码</text>\r\n <input class=\"input\" type=\"password\" placeholder=\"请再次输入新密码\" v-model=\"confirmPassword\" />\r\n </view>\r\n </view>\r\n \r\n <button class=\"submit-btn\" @click=\"handleSubmit\">确认修改</button>\r\n </view>\r\n</template>\r\n\r\n<script setup lang=\"uts\">\r\nimport { ref } from 'vue'\r\n\r\nconst oldPassword = ref<string>('')\r\nconst newPassword = ref<string>('')\r\nconst confirmPassword = ref<string>('')\r\n\r\nconst handleSubmit = async (): Promise<void> => {\r\n if (oldPassword.value == '' || newPassword.value == '' || confirmPassword.value == '') {\r\n uni.showToast({\r\n title: '请填写完整信息',\r\n icon: 'none'\r\n })\r\n return\r\n }\r\n \r\n if (newPassword.value != confirmPassword.value) {\r\n uni.showToast({\r\n title: '两次输入的密码不一致',\r\n icon: 'none'\r\n })\r\n return\r\n }\r\n \r\n uni.showLoading({ title: '提交中...' })\r\n \r\n uni.hideLoading()\r\n \r\n uni.showToast({\r\n title: '修改成功',\r\n icon: 'success'\r\n })\r\n \r\n setTimeout(() => {\r\n uni.navigateBack()\r\n }, 1500)\r\n}\r\n</script>\r\n\r\n<style>\r\n.page-container {\r\n padding: 20px;\r\n background-color: #f5f5f5;\r\n flex: 1;\r\n}\r\n\r\n.form-group {\r\n background-color: #fff;\r\n border-radius: 8px;\r\n padding: 0 15px;\r\n margin-bottom: 30px;\r\n}\r\n\r\n.input-item {\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n height: 50px;\r\n border-bottom: 1px solid #eee;\r\n}\r\n\r\n.input-item:last-child {\r\n border-bottom: none;\r\n}\r\n\r\n.label {\r\n width: 80px;\r\n font-size: 14px;\r\n color: #333;\r\n}\r\n\r\n.input {\r\n flex: 1;\r\n font-size: 14px;\r\n}\r\n\r\n.submit-btn {\r\n background-color: #007aff;\r\n color: #fff;\r\n border-radius: 25px;\r\n font-size: 16px;\r\n padding: 12px;\r\n text-align: center;\r\n}\r\n</style>\r\n",null,null],"names":[],"mappings":";;;;;;;;;;;;;;+BA+CM,eAAA;;+BAFA,eAAA;;;;;;;;;;YArBN,IAAM,cAAc,IAAI,MAAM,EAAE;YAChC,IAAM,cAAc,IAAI,MAAM,EAAE;YAChC,IAAM,kBAAkB,IAAI,MAAM,EAAE;YAEpC,IAAM,eAAe,OAAU,WAAQ,IAAI,EAAI;gBAAA,OAAA,eAAA;wBAC7C,IAAI,YAAY,KAAK,CAAA,EAAA,CAAI,GAAE,EAAA,CAAI,YAAY,KAAK,CAAA,EAAA,CAAI,GAAE,EAAA,CAAI,gBAAgB,KAAK,CAAA,EAAA,CAAI,IAAI;2DAEnF,QAAO,WACP,OAAM;4BAER;;wBAGF,IAAI,YAAY,KAAK,CAAA,EAAA,CAAI,gBAAgB,KAAK,EAAE;2DAE5C,QAAO,cACP,OAAM;4BAER;;wBAGE,mCAAc,QAAO;wBAErB;uDAGF,QAAO,QACP,OAAM;wBAGR,WAAW,KAAK;;wBAEhB;0BAAG,IAAI;iBACR;YAAD;;uBAxDE,IAiBO,QAAA,IAjBD,WAAM,mBAAgB;oBAC1B,IAaO,QAAA,IAbD,WAAM,eAAY;wBACtB,IAGO,QAAA,IAHD,WAAM,eAAY;4BACtB,IAA8B,QAAA,IAAxB,WAAM,UAAQ;4BACpB,IAAkF,SAAA,IAA3E,WAA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