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.
 
 
 
 
 
hezhiying/unpackage/dist/build/h5/static/js/pages-ChangePassword-Change...

1 lines
6.4 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-ChangePassword-ChangePassword"],{"34e7":function(n,e,s){var t=s("24fb");e=t(!1),e.push([n.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 主要颜色 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\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},"36da":function(n,e,s){"use strict";s.r(e);var t=s("c93e"),a=s.n(t);for(var o in t)["default"].indexOf(o)<0&&function(n){s.d(e,n,(function(){return t[n]}))}(o);e["default"]=a.a},"7b8d":function(n,e,s){"use strict";var t=s("b69c"),a=s.n(t);a.a},9144:function(n,e,s){"use strict";s.r(e);var t=s("c0a2"),a=s("36da");for(var o in a)["default"].indexOf(o)<0&&function(n){s.d(e,n,(function(){return a[n]}))}(o);s("7b8d");var r=s("f0c5"),i=Object(r["a"])(a["default"],t["b"],t["c"],!1,null,"4370268f",null,!1,t["a"],void 0);e["default"]=i.exports},b69c:function(n,e,s){var t=s("34e7");t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[n.i,t,""]]),t.locals&&(n.exports=t.locals);var a=s("4f06").default;a("9fa2c062",t,!0,{sourceMap:!1,shadowMode:!1})},c0a2:function(n,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return o})),s.d(e,"a",(function(){return t}));var t={uToast:s("2ce2").default},a=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=[]},c93e:function(n,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s("5af7"),a={data:function(){return{oldPassword:"",newPassword:"",renewPassword:"",oldPasswordFlag:!1,newPasswordFlag:!1,renewPasswordFlag:!1}},methods:{modifyPsw:function(){var n=this;this.newPassword==this.renewPassword?(0,t.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=a}}]);