You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
huazhiyu/unpackage/dist/build/h5/static/js/pages-ChangePassword-Change...

1 lines
6.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-ChangePassword-ChangePassword"],{"1b0a":function(n,e,s){"use strict";s.r(e);var a=s("eaea"),t=s.n(a);for(var o in a)["default"].indexOf(o)<0&&function(n){s.d(e,n,(function(){return a[n]}))}(o);e["default"]=t.a},5258:function(n,e,s){"use strict";s.d(e,"b",(function(){return t})),s.d(e,"c",(function(){return o})),s.d(e,"a",(function(){return a}));var a={uToast:s("69dd").default},t=function(){var n=this,e=n.$createElement,s=n._self._c||e;return s("v-uni-view",{staticClass:"page"},[s("v-uni-view",{staticClass:"setting-password"},[s("v-uni-view",{staticClass:"inpu-password"},[s("v-uni-text",[n._v("原始密码")]),s("v-uni-input",{attrs:{password:!n.oldPasswordFlag,placeholder:"请输入原始密码"},model:{value:n.oldPassword,callback:function(e){n.oldPassword=e},expression:"oldPassword"}}),s("v-uni-text",{staticClass:"iconfont",class:n.oldPasswordFlag?"icon-eye-on":"icon-eye-off",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.oldPasswordFlag=!n.oldPasswordFlag}}})],1),s("v-uni-view",{staticClass:"inpu-password"},[s("v-uni-text",[n._v("新密码")]),s("v-uni-input",{attrs:{password:!n.newPasswordFlag,placeholder:"请输入新密码"},model:{value:n.newPassword,callback:function(e){n.newPassword=e},expression:"newPassword"}}),s("v-uni-text",{staticClass:"iconfont",class:n.newPasswordFlag?"icon-eye-on":"icon-eye-off",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.newPasswordFlag=!n.newPasswordFlag}}})],1),s("v-uni-view",{staticClass:"inpu-password"},[s("v-uni-text",[n._v("确认密码")]),s("v-uni-input",{attrs:{password:!n.renewPasswordFlag,placeholder:"确认密码"},model:{value:n.renewPassword,callback:function(e){n.renewPassword=e},expression:"renewPassword"}}),s("v-uni-text",{staticClass:"iconfont",class:n.renewPasswordFlag?"icon-eye-on":"icon-eye-off",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.renewPasswordFlag=!n.renewPasswordFlag}}})],1)],1),s("v-uni-view",{staticClass:"btn",style:n.oldPassword&&n.newPassword&&n.renewPassword?"opacity:1":"opacity:0.4",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.oldPassword&&n.newPassword&&n.renewPassword&&n.modifyPsw()}}},[s("v-uni-text",[n._v("确认")])],1),s("u-toast",{ref:"uToast"})],1)},o=[]},"8d72":function(n,e,s){"use strict";var a=s("919c"),t=s.n(a);t.a},"919c":function(n,e,s){var a=s("a9e1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);var t=s("4f06").default;t("3c014c31",a,!0,{sourceMap:!1,shadowMode:!1})},a9e1:function(n,e,s){var a=s("24fb");e=a(!1),e.push([n.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 主要颜色 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page[data-v-4370268f]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f6f6f6}.code-get[data-v-4370268f]{width:100%;height:%?400?%;background-color:#fff;border-radius:0 0 %?20?% %?20?%}.code-get .phone[data-v-4370268f]{display:flex;align-items:center;padding:0 4%;height:%?100?%}.code-get .phone uni-text[data-v-4370268f]{font-size:%?28?%;color:#222}.code-get .code[data-v-4370268f]{display:flex;align-items:center;justify-content:space-between;padding:0 4%;height:%?100?%;border-bottom:%?2?% solid #f6f6f6}.code-get .code uni-input[data-v-4370268f]{width:70%;height:100%;color:#222;font-size:%?28?%}.code-get .code uni-text[data-v-4370268f]{font-size:%?28?%;color:#222}.code-get .btn[data-v-4370268f]{display:flex;align-items:center;justify-content:center;width:90%;height:%?70?%;margin:%?40?% auto;background:linear-gradient(90deg,#236030,#236030);border-radius:%?70?%;box-shadow:0 %?10?% %?10?% #236030}.code-get .btn uni-text[data-v-4370268f]{color:#fff;font-size:%?28?%}.setting-password[data-v-4370268f]{background-color:#fff;border-radius:%?10?%;margin:%?20?%}.setting-password .inpu-password[data-v-4370268f]{display:flex;align-items:center;padding:0 4%;height:%?100?%;border-bottom:%?2?% solid #f6f6f6}.setting-password .inpu-password uni-text[data-v-4370268f]{color:#959595;font-size:%?28?%;display:inline-block;width:%?120?%;text-align:right}.setting-password .inpu-password uni-input[data-v-4370268f]{margin-left:%?20?%;color:#222;font-size:%?28?%}.setting-password .inpu-password .icon[data-v-4370268f]{margin-left:%?20?%}.btn[data-v-4370268f]{display:flex;align-items:center;justify-content:center;width:90%;height:%?70?%;margin:%?0?% auto;background:linear-gradient(90deg,#236030,#236030);border-radius:%?70?%;box-shadow:0 %?10?% %?10?% #236030}.btn uni-text[data-v-4370268f]{color:#fff;font-size:%?28?%}',""]),n.exports=e},daaf:function(n,e,s){"use strict";s.r(e);var a=s("5258"),t=s("1b0a");for(var o in t)["default"].indexOf(o)<0&&function(n){s.d(e,n,(function(){return t[n]}))}(o);s("8d72");var i=s("f0c5"),d=Object(i["a"])(t["default"],a["b"],a["c"],!1,null,"4370268f",null,!1,a["a"],void 0);e["default"]=d.exports},eaea:function(n,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s("4838"),t={data:function(){return{oldPassword:"",newPassword:"",renewPassword:"",oldPasswordFlag:!1,newPasswordFlag:!1,renewPasswordFlag:!1}},methods:{modifyPsw:function(){var n=this;this.newPassword==this.renewPassword?(0,a.changePassword)({oldPassword:this.oldPassword,newPassword:this.newPassword}).then((function(e){1==e.code&&(n.$refs.uToast.show({message:e.msg}),setTimeout((function(){uni.navigateBack({delta:1})}),500))})):this.$refs.uToast.show({message:"两次输入密码不一致"})}},onLoad:function(n){}};e.default=t}}]);